]> git.ipfire.org Git - thirdparty/gcc.git/blob - libmpx/configure
Makefile.def: Add libmpx.
[thirdparty/gcc.git] / libmpx / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for package-unused version-unused.
4 #
5 # Report bugs to <libmpx>.
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 libmpx about your
240 $0: system, including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
243 fi
244 exit 1
245 fi
246 fi
247 fi
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
253
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
261 {
262 { eval $1=; unset $1;}
263 }
264 as_unset=as_fn_unset
265
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
270 {
271 return $1
272 } # as_fn_set_status
273
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
278 {
279 set +e
280 as_fn_set_status $1
281 exit $1
282 } # as_fn_exit
283
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
288 {
289
290 case $as_dir in #(
291 -*) as_dir=./$as_dir;;
292 esac
293 test -d "$as_dir" || eval $as_mkdir_p || {
294 as_dirs=
295 while :; do
296 case $as_dir in #(
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 *) as_qdir=$as_dir;;
299 esac
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\/\)[^/].*/{
312 s//\1/
313 q
314 }
315 /^X\(\/\/\)$/{
316 s//\1/
317 q
318 }
319 /^X\(\/\).*/{
320 s//\1/
321 q
322 }
323 s/.*/./; q'`
324 test -d "$as_dir" && break
325 done
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328
329
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
339 {
340 eval $1+=\$2
341 }'
342 else
343 as_fn_append ()
344 {
345 eval $1=\$$1\$2
346 }
347 fi # as_fn_append
348
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 eval 'as_fn_arith ()
356 {
357 as_val=$(( $* ))
358 }'
359 else
360 as_fn_arith ()
361 {
362 as_val=`expr "$@" || test $? -eq 1`
363 }
364 fi # as_fn_arith
365
366
367 # as_fn_error ERROR [LINENO LOG_FD]
368 # ---------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with status $?, using 1 if that was 0.
372 as_fn_error ()
373 {
374 as_status=$?; test $as_status -eq 0 && as_status=1
375 if test "$3"; then
376 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
378 fi
379 $as_echo "$as_me: error: $1" >&2
380 as_fn_exit $as_status
381 } # as_fn_error
382
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 as_expr=expr
386 else
387 as_expr=false
388 fi
389
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 as_basename=basename
392 else
393 as_basename=false
394 fi
395
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_dirname=dirname
398 else
399 as_dirname=false
400 fi
401
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
408 s//\1/
409 q
410 }
411 /^X\/\(\/\/\)$/{
412 s//\1/
413 q
414 }
415 /^X\/\(\/\).*/{
416 s//\1/
417 q
418 }
419 s/.*/./; q'`
420
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
427
428
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
435 p
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
441 b
442 :lineno
443 N
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
455 . "./$as_me.lineno"
456 # Exit status is that of the last command.
457 exit
458 }
459
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
465 xy) ECHO_C='\c';;
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467 ECHO_T=' ';;
468 esac;;
469 *)
470 ECHO_N='-n';;
471 esac
472
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
476 else
477 rm -f conf$$.dir
478 mkdir conf$$.dir 2>/dev/null
479 fi
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s='ln -s'
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488 as_ln_s='cp -p'
489 elif ln conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s=ln
491 else
492 as_ln_s='cp -p'
493 fi
494 else
495 as_ln_s='cp -p'
496 fi
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
499
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
502 else
503 test -d ./-p && rmdir ./-p
504 as_mkdir_p=false
505 fi
506
507 if test -x / >/dev/null 2>&1; then
508 as_test_x='test -x'
509 else
510 if ls -dL / >/dev/null 2>&1; then
511 as_ls_L_option=L
512 else
513 as_ls_L_option=
514 fi
515 as_test_x='
516 eval sh -c '\''
517 if test -d "$1"; then
518 test -d "$1/.";
519 else
520 case $1 in #(
521 -*)set "./$1";;
522 esac;
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
525 '\'' sh
526 '
527 fi
528 as_executable_p=$as_test_x
529
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535
536 SHELL=${CONFIG_SHELL-/bin/sh}
537
538
539 exec 7<&0 </dev/null 6>&1
540
541 # Name of the host.
542 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543 # so uname gets run too.
544 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545
546 #
547 # Initializations.
548 #
549 ac_default_prefix=/usr/local
550 ac_clean_files=
551 ac_config_libobj_dir=.
552 LIBOBJS=
553 cross_compiling=no
554 subdirs=
555 MFLAGS=
556 MAKEFLAGS=
557
558 # Identity of this package.
559 PACKAGE_NAME='package-unused'
560 PACKAGE_TARNAME='package-unused'
561 PACKAGE_VERSION='version-unused'
562 PACKAGE_STRING='package-unused version-unused'
563 PACKAGE_BUGREPORT='libmpx'
564 PACKAGE_URL=''
565
566 # Factoring default headers for most tests.
567 ac_includes_default="\
568 #include <stdio.h>
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
571 #endif
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
574 #endif
575 #ifdef STDC_HEADERS
576 # include <stdlib.h>
577 # include <stddef.h>
578 #else
579 # ifdef HAVE_STDLIB_H
580 # include <stdlib.h>
581 # endif
582 #endif
583 #ifdef HAVE_STRING_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
585 # include <memory.h>
586 # endif
587 # include <string.h>
588 #endif
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
591 #endif
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
594 #endif
595 #ifdef HAVE_STDINT_H
596 # include <stdint.h>
597 #endif
598 #ifdef HAVE_UNISTD_H
599 # include <unistd.h>
600 #endif"
601
602 ac_subst_vars='am__EXEEXT_FALSE
603 am__EXEEXT_TRUE
604 LTLIBOBJS
605 LIBOBJS
606 XCFLAGS
607 enable_static
608 enable_shared
609 CXXCPP
610 OTOOL64
611 OTOOL
612 LIPO
613 NMEDIT
614 DSYMUTIL
615 OBJDUMP
616 LN_S
617 NM
618 ac_ct_DUMPBIN
619 DUMPBIN
620 LD
621 FGREP
622 SED
623 LIBTOOL
624 RANLIB
625 AR
626 AS
627 CCASFLAGS
628 CCAS
629 ac_ct_CXX
630 CXXFLAGS
631 CXX
632 toolexeclibdir
633 toolexecdir
634 EGREP
635 GREP
636 CPP
637 OBJEXT
638 EXEEXT
639 ac_ct_CC
640 CPPFLAGS
641 LDFLAGS
642 CFLAGS
643 CC
644 MAINT
645 MAINTAINER_MODE_FALSE
646 MAINTAINER_MODE_TRUE
647 multi_basedir
648 am__untar
649 am__tar
650 AMTAR
651 am__leading_dot
652 SET_MAKE
653 AWK
654 mkdir_p
655 MKDIR_P
656 INSTALL_STRIP_PROGRAM
657 STRIP
658 install_sh
659 MAKEINFO
660 AUTOHEADER
661 AUTOMAKE
662 AUTOCONF
663 ACLOCAL
664 VERSION
665 PACKAGE
666 CYGPATH_W
667 am__isrc
668 INSTALL_DATA
669 INSTALL_SCRIPT
670 INSTALL_PROGRAM
671 link_libmpx
672 LIBMPX_SUPPORTED_FALSE
673 LIBMPX_SUPPORTED_TRUE
674 LIBSTDCXX_RAW_CXX_LDFLAGS
675 LIBSTDCXX_RAW_CXX_CXXFLAGS
676 target_noncanonical
677 target_os
678 target_vendor
679 target_cpu
680 target
681 host_os
682 host_vendor
683 host_cpu
684 host
685 build_os
686 build_vendor
687 build_cpu
688 build
689 target_alias
690 host_alias
691 build_alias
692 LIBS
693 ECHO_T
694 ECHO_N
695 ECHO_C
696 DEFS
697 mandir
698 localedir
699 libdir
700 psdir
701 pdfdir
702 dvidir
703 htmldir
704 infodir
705 docdir
706 oldincludedir
707 includedir
708 localstatedir
709 sharedstatedir
710 sysconfdir
711 datadir
712 datarootdir
713 libexecdir
714 sbindir
715 bindir
716 program_transform_name
717 prefix
718 exec_prefix
719 PACKAGE_URL
720 PACKAGE_BUGREPORT
721 PACKAGE_STRING
722 PACKAGE_VERSION
723 PACKAGE_TARNAME
724 PACKAGE_NAME
725 PATH_SEPARATOR
726 SHELL'
727 ac_subst_files=''
728 ac_user_opts='
729 enable_option_checking
730 enable_version_specific_runtime_libs
731 enable_multilib
732 enable_maintainer_mode
733 enable_shared
734 enable_static
735 with_pic
736 enable_fast_install
737 with_gnu_ld
738 enable_libtool_lock
739 '
740 ac_precious_vars='build_alias
741 host_alias
742 target_alias
743 CC
744 CFLAGS
745 LDFLAGS
746 LIBS
747 CPPFLAGS
748 CPP
749 CXXCPP'
750
751
752 # Initialize some variables set by options.
753 ac_init_help=
754 ac_init_version=false
755 ac_unrecognized_opts=
756 ac_unrecognized_sep=
757 # The variables have the same names as the options, with
758 # dashes changed to underlines.
759 cache_file=/dev/null
760 exec_prefix=NONE
761 no_create=
762 no_recursion=
763 prefix=NONE
764 program_prefix=NONE
765 program_suffix=NONE
766 program_transform_name=s,x,x,
767 silent=
768 site=
769 srcdir=
770 verbose=
771 x_includes=NONE
772 x_libraries=NONE
773
774 # Installation directory options.
775 # These are left unexpanded so users can "make install exec_prefix=/foo"
776 # and all the variables that are supposed to be based on exec_prefix
777 # by default will actually change.
778 # Use braces instead of parens because sh, perl, etc. also accept them.
779 # (The list follows the same order as the GNU Coding Standards.)
780 bindir='${exec_prefix}/bin'
781 sbindir='${exec_prefix}/sbin'
782 libexecdir='${exec_prefix}/libexec'
783 datarootdir='${prefix}/share'
784 datadir='${datarootdir}'
785 sysconfdir='${prefix}/etc'
786 sharedstatedir='${prefix}/com'
787 localstatedir='${prefix}/var'
788 includedir='${prefix}/include'
789 oldincludedir='/usr/include'
790 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
791 infodir='${datarootdir}/info'
792 htmldir='${docdir}'
793 dvidir='${docdir}'
794 pdfdir='${docdir}'
795 psdir='${docdir}'
796 libdir='${exec_prefix}/lib'
797 localedir='${datarootdir}/locale'
798 mandir='${datarootdir}/man'
799
800 ac_prev=
801 ac_dashdash=
802 for ac_option
803 do
804 # If the previous option needs an argument, assign it.
805 if test -n "$ac_prev"; then
806 eval $ac_prev=\$ac_option
807 ac_prev=
808 continue
809 fi
810
811 case $ac_option in
812 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
813 *) ac_optarg=yes ;;
814 esac
815
816 # Accept the important Cygnus configure options, so we can diagnose typos.
817
818 case $ac_dashdash$ac_option in
819 --)
820 ac_dashdash=yes ;;
821
822 -bindir | --bindir | --bindi | --bind | --bin | --bi)
823 ac_prev=bindir ;;
824 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
825 bindir=$ac_optarg ;;
826
827 -build | --build | --buil | --bui | --bu)
828 ac_prev=build_alias ;;
829 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
830 build_alias=$ac_optarg ;;
831
832 -cache-file | --cache-file | --cache-fil | --cache-fi \
833 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
834 ac_prev=cache_file ;;
835 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
836 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
837 cache_file=$ac_optarg ;;
838
839 --config-cache | -C)
840 cache_file=config.cache ;;
841
842 -datadir | --datadir | --datadi | --datad)
843 ac_prev=datadir ;;
844 -datadir=* | --datadir=* | --datadi=* | --datad=*)
845 datadir=$ac_optarg ;;
846
847 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
848 | --dataroo | --dataro | --datar)
849 ac_prev=datarootdir ;;
850 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
851 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
852 datarootdir=$ac_optarg ;;
853
854 -disable-* | --disable-*)
855 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
856 # Reject names that are not valid shell variable names.
857 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
858 as_fn_error "invalid feature name: $ac_useropt"
859 ac_useropt_orig=$ac_useropt
860 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
861 case $ac_user_opts in
862 *"
863 "enable_$ac_useropt"
864 "*) ;;
865 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
866 ac_unrecognized_sep=', ';;
867 esac
868 eval enable_$ac_useropt=no ;;
869
870 -docdir | --docdir | --docdi | --doc | --do)
871 ac_prev=docdir ;;
872 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
873 docdir=$ac_optarg ;;
874
875 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
876 ac_prev=dvidir ;;
877 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
878 dvidir=$ac_optarg ;;
879
880 -enable-* | --enable-*)
881 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
882 # Reject names that are not valid shell variable names.
883 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
884 as_fn_error "invalid feature name: $ac_useropt"
885 ac_useropt_orig=$ac_useropt
886 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
887 case $ac_user_opts in
888 *"
889 "enable_$ac_useropt"
890 "*) ;;
891 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
892 ac_unrecognized_sep=', ';;
893 esac
894 eval enable_$ac_useropt=\$ac_optarg ;;
895
896 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
897 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
898 | --exec | --exe | --ex)
899 ac_prev=exec_prefix ;;
900 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
901 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
902 | --exec=* | --exe=* | --ex=*)
903 exec_prefix=$ac_optarg ;;
904
905 -gas | --gas | --ga | --g)
906 # Obsolete; use --with-gas.
907 with_gas=yes ;;
908
909 -help | --help | --hel | --he | -h)
910 ac_init_help=long ;;
911 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
912 ac_init_help=recursive ;;
913 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
914 ac_init_help=short ;;
915
916 -host | --host | --hos | --ho)
917 ac_prev=host_alias ;;
918 -host=* | --host=* | --hos=* | --ho=*)
919 host_alias=$ac_optarg ;;
920
921 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
922 ac_prev=htmldir ;;
923 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
924 | --ht=*)
925 htmldir=$ac_optarg ;;
926
927 -includedir | --includedir | --includedi | --included | --include \
928 | --includ | --inclu | --incl | --inc)
929 ac_prev=includedir ;;
930 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
931 | --includ=* | --inclu=* | --incl=* | --inc=*)
932 includedir=$ac_optarg ;;
933
934 -infodir | --infodir | --infodi | --infod | --info | --inf)
935 ac_prev=infodir ;;
936 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
937 infodir=$ac_optarg ;;
938
939 -libdir | --libdir | --libdi | --libd)
940 ac_prev=libdir ;;
941 -libdir=* | --libdir=* | --libdi=* | --libd=*)
942 libdir=$ac_optarg ;;
943
944 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
945 | --libexe | --libex | --libe)
946 ac_prev=libexecdir ;;
947 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
948 | --libexe=* | --libex=* | --libe=*)
949 libexecdir=$ac_optarg ;;
950
951 -localedir | --localedir | --localedi | --localed | --locale)
952 ac_prev=localedir ;;
953 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
954 localedir=$ac_optarg ;;
955
956 -localstatedir | --localstatedir | --localstatedi | --localstated \
957 | --localstate | --localstat | --localsta | --localst | --locals)
958 ac_prev=localstatedir ;;
959 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
960 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
961 localstatedir=$ac_optarg ;;
962
963 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
964 ac_prev=mandir ;;
965 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
966 mandir=$ac_optarg ;;
967
968 -nfp | --nfp | --nf)
969 # Obsolete; use --without-fp.
970 with_fp=no ;;
971
972 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
973 | --no-cr | --no-c | -n)
974 no_create=yes ;;
975
976 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
977 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
978 no_recursion=yes ;;
979
980 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
981 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
982 | --oldin | --oldi | --old | --ol | --o)
983 ac_prev=oldincludedir ;;
984 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
985 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
986 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
987 oldincludedir=$ac_optarg ;;
988
989 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
990 ac_prev=prefix ;;
991 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
992 prefix=$ac_optarg ;;
993
994 -program-prefix | --program-prefix | --program-prefi | --program-pref \
995 | --program-pre | --program-pr | --program-p)
996 ac_prev=program_prefix ;;
997 -program-prefix=* | --program-prefix=* | --program-prefi=* \
998 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
999 program_prefix=$ac_optarg ;;
1000
1001 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1002 | --program-suf | --program-su | --program-s)
1003 ac_prev=program_suffix ;;
1004 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1005 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1006 program_suffix=$ac_optarg ;;
1007
1008 -program-transform-name | --program-transform-name \
1009 | --program-transform-nam | --program-transform-na \
1010 | --program-transform-n | --program-transform- \
1011 | --program-transform | --program-transfor \
1012 | --program-transfo | --program-transf \
1013 | --program-trans | --program-tran \
1014 | --progr-tra | --program-tr | --program-t)
1015 ac_prev=program_transform_name ;;
1016 -program-transform-name=* | --program-transform-name=* \
1017 | --program-transform-nam=* | --program-transform-na=* \
1018 | --program-transform-n=* | --program-transform-=* \
1019 | --program-transform=* | --program-transfor=* \
1020 | --program-transfo=* | --program-transf=* \
1021 | --program-trans=* | --program-tran=* \
1022 | --progr-tra=* | --program-tr=* | --program-t=*)
1023 program_transform_name=$ac_optarg ;;
1024
1025 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1026 ac_prev=pdfdir ;;
1027 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1028 pdfdir=$ac_optarg ;;
1029
1030 -psdir | --psdir | --psdi | --psd | --ps)
1031 ac_prev=psdir ;;
1032 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1033 psdir=$ac_optarg ;;
1034
1035 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1036 | -silent | --silent | --silen | --sile | --sil)
1037 silent=yes ;;
1038
1039 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1040 ac_prev=sbindir ;;
1041 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1042 | --sbi=* | --sb=*)
1043 sbindir=$ac_optarg ;;
1044
1045 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1046 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1047 | --sharedst | --shareds | --shared | --share | --shar \
1048 | --sha | --sh)
1049 ac_prev=sharedstatedir ;;
1050 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1051 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1052 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1053 | --sha=* | --sh=*)
1054 sharedstatedir=$ac_optarg ;;
1055
1056 -site | --site | --sit)
1057 ac_prev=site ;;
1058 -site=* | --site=* | --sit=*)
1059 site=$ac_optarg ;;
1060
1061 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1062 ac_prev=srcdir ;;
1063 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1064 srcdir=$ac_optarg ;;
1065
1066 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1067 | --syscon | --sysco | --sysc | --sys | --sy)
1068 ac_prev=sysconfdir ;;
1069 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1070 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1071 sysconfdir=$ac_optarg ;;
1072
1073 -target | --target | --targe | --targ | --tar | --ta | --t)
1074 ac_prev=target_alias ;;
1075 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1076 target_alias=$ac_optarg ;;
1077
1078 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1079 verbose=yes ;;
1080
1081 -version | --version | --versio | --versi | --vers | -V)
1082 ac_init_version=: ;;
1083
1084 -with-* | --with-*)
1085 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1086 # Reject names that are not valid shell variable names.
1087 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1088 as_fn_error "invalid package name: $ac_useropt"
1089 ac_useropt_orig=$ac_useropt
1090 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1091 case $ac_user_opts in
1092 *"
1093 "with_$ac_useropt"
1094 "*) ;;
1095 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1096 ac_unrecognized_sep=', ';;
1097 esac
1098 eval with_$ac_useropt=\$ac_optarg ;;
1099
1100 -without-* | --without-*)
1101 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1102 # Reject names that are not valid shell variable names.
1103 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1104 as_fn_error "invalid package name: $ac_useropt"
1105 ac_useropt_orig=$ac_useropt
1106 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1107 case $ac_user_opts in
1108 *"
1109 "with_$ac_useropt"
1110 "*) ;;
1111 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1112 ac_unrecognized_sep=', ';;
1113 esac
1114 eval with_$ac_useropt=no ;;
1115
1116 --x)
1117 # Obsolete; use --with-x.
1118 with_x=yes ;;
1119
1120 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1121 | --x-incl | --x-inc | --x-in | --x-i)
1122 ac_prev=x_includes ;;
1123 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1124 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1125 x_includes=$ac_optarg ;;
1126
1127 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1128 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1129 ac_prev=x_libraries ;;
1130 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1131 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1132 x_libraries=$ac_optarg ;;
1133
1134 -*) as_fn_error "unrecognized option: \`$ac_option'
1135 Try \`$0 --help' for more information."
1136 ;;
1137
1138 *=*)
1139 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1140 # Reject names that are not valid shell variable names.
1141 case $ac_envvar in #(
1142 '' | [0-9]* | *[!_$as_cr_alnum]* )
1143 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1144 esac
1145 eval $ac_envvar=\$ac_optarg
1146 export $ac_envvar ;;
1147
1148 *)
1149 # FIXME: should be removed in autoconf 3.0.
1150 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1151 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1152 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1153 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1154 ;;
1155
1156 esac
1157 done
1158
1159 if test -n "$ac_prev"; then
1160 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1161 as_fn_error "missing argument to $ac_option"
1162 fi
1163
1164 if test -n "$ac_unrecognized_opts"; then
1165 case $enable_option_checking in
1166 no) ;;
1167 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1168 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1169 esac
1170 fi
1171
1172 # Check all directory arguments for consistency.
1173 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1174 datadir sysconfdir sharedstatedir localstatedir includedir \
1175 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1176 libdir localedir mandir
1177 do
1178 eval ac_val=\$$ac_var
1179 # Remove trailing slashes.
1180 case $ac_val in
1181 */ )
1182 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1183 eval $ac_var=\$ac_val;;
1184 esac
1185 # Be sure to have absolute directory names.
1186 case $ac_val in
1187 [\\/$]* | ?:[\\/]* ) continue;;
1188 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1189 esac
1190 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1191 done
1192
1193 # There might be people who depend on the old broken behavior: `$host'
1194 # used to hold the argument of --host etc.
1195 # FIXME: To remove some day.
1196 build=$build_alias
1197 host=$host_alias
1198 target=$target_alias
1199
1200 # FIXME: To remove some day.
1201 if test "x$host_alias" != x; then
1202 if test "x$build_alias" = x; then
1203 cross_compiling=maybe
1204 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1205 If a cross compiler is detected then cross compile mode will be used." >&2
1206 elif test "x$build_alias" != "x$host_alias"; then
1207 cross_compiling=yes
1208 fi
1209 fi
1210
1211 ac_tool_prefix=
1212 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1213
1214 test "$silent" = yes && exec 6>/dev/null
1215
1216
1217 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1218 ac_ls_di=`ls -di .` &&
1219 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1220 as_fn_error "working directory cannot be determined"
1221 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1222 as_fn_error "pwd does not report name of working directory"
1223
1224
1225 # Find the source files, if location was not specified.
1226 if test -z "$srcdir"; then
1227 ac_srcdir_defaulted=yes
1228 # Try the directory containing this script, then the parent directory.
1229 ac_confdir=`$as_dirname -- "$as_myself" ||
1230 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1231 X"$as_myself" : 'X\(//\)[^/]' \| \
1232 X"$as_myself" : 'X\(//\)$' \| \
1233 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1234 $as_echo X"$as_myself" |
1235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1236 s//\1/
1237 q
1238 }
1239 /^X\(\/\/\)[^/].*/{
1240 s//\1/
1241 q
1242 }
1243 /^X\(\/\/\)$/{
1244 s//\1/
1245 q
1246 }
1247 /^X\(\/\).*/{
1248 s//\1/
1249 q
1250 }
1251 s/.*/./; q'`
1252 srcdir=$ac_confdir
1253 if test ! -r "$srcdir/$ac_unique_file"; then
1254 srcdir=..
1255 fi
1256 else
1257 ac_srcdir_defaulted=no
1258 fi
1259 if test ! -r "$srcdir/$ac_unique_file"; then
1260 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1261 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1262 fi
1263 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1264 ac_abs_confdir=`(
1265 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1266 pwd)`
1267 # When building in place, set srcdir=.
1268 if test "$ac_abs_confdir" = "$ac_pwd"; then
1269 srcdir=.
1270 fi
1271 # Remove unnecessary trailing slashes from srcdir.
1272 # Double slashes in file names in object file debugging info
1273 # mess up M-x gdb in Emacs.
1274 case $srcdir in
1275 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1276 esac
1277 for ac_var in $ac_precious_vars; do
1278 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1279 eval ac_env_${ac_var}_value=\$${ac_var}
1280 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1281 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1282 done
1283
1284 #
1285 # Report the --help message.
1286 #
1287 if test "$ac_init_help" = "long"; then
1288 # Omit some internal or obsolete options to make the list less imposing.
1289 # This message is too long to be a string in the A/UX 3.1 sh.
1290 cat <<_ACEOF
1291 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1292
1293 Usage: $0 [OPTION]... [VAR=VALUE]...
1294
1295 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1296 VAR=VALUE. See below for descriptions of some of the useful variables.
1297
1298 Defaults for the options are specified in brackets.
1299
1300 Configuration:
1301 -h, --help display this help and exit
1302 --help=short display options specific to this package
1303 --help=recursive display the short help of all the included packages
1304 -V, --version display version information and exit
1305 -q, --quiet, --silent do not print \`checking...' messages
1306 --cache-file=FILE cache test results in FILE [disabled]
1307 -C, --config-cache alias for \`--cache-file=config.cache'
1308 -n, --no-create do not create output files
1309 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1310
1311 Installation directories:
1312 --prefix=PREFIX install architecture-independent files in PREFIX
1313 [$ac_default_prefix]
1314 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1315 [PREFIX]
1316
1317 By default, \`make install' will install all the files in
1318 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1319 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1320 for instance \`--prefix=\$HOME'.
1321
1322 For better control, use the options below.
1323
1324 Fine tuning of the installation directories:
1325 --bindir=DIR user executables [EPREFIX/bin]
1326 --sbindir=DIR system admin executables [EPREFIX/sbin]
1327 --libexecdir=DIR program executables [EPREFIX/libexec]
1328 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1329 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1330 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1331 --libdir=DIR object code libraries [EPREFIX/lib]
1332 --includedir=DIR C header files [PREFIX/include]
1333 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1334 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1335 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1336 --infodir=DIR info documentation [DATAROOTDIR/info]
1337 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1338 --mandir=DIR man documentation [DATAROOTDIR/man]
1339 --docdir=DIR documentation root [DATAROOTDIR/doc/package-unused]
1340 --htmldir=DIR html documentation [DOCDIR]
1341 --dvidir=DIR dvi documentation [DOCDIR]
1342 --pdfdir=DIR pdf documentation [DOCDIR]
1343 --psdir=DIR ps documentation [DOCDIR]
1344 _ACEOF
1345
1346 cat <<\_ACEOF
1347
1348 Program names:
1349 --program-prefix=PREFIX prepend PREFIX to installed program names
1350 --program-suffix=SUFFIX append SUFFIX to installed program names
1351 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1352
1353 System types:
1354 --build=BUILD configure for building on BUILD [guessed]
1355 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1356 --target=TARGET configure for building compilers for TARGET [HOST]
1357 _ACEOF
1358 fi
1359
1360 if test -n "$ac_init_help"; then
1361 case $ac_init_help in
1362 short | recursive ) echo "Configuration of package-unused version-unused:";;
1363 esac
1364 cat <<\_ACEOF
1365
1366 Optional Features:
1367 --disable-option-checking ignore unrecognized --enable/--with options
1368 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1369 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1370 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1371 --enable-multilib build many library versions (default)
1372 --enable-maintainer-mode enable make rules and dependencies not useful
1373 (and sometimes confusing) to the casual installer
1374 --enable-shared[=PKGS] build shared libraries [default=yes]
1375 --enable-static[=PKGS] build static libraries [default=yes]
1376 --enable-fast-install[=PKGS]
1377 optimize for fast installation [default=yes]
1378 --disable-libtool-lock avoid locking (might break parallel builds)
1379
1380 Optional Packages:
1381 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1382 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1383 --with-pic try to use only PIC/non-PIC objects [default=use
1384 both]
1385 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1386
1387 Some influential environment variables:
1388 CC C compiler command
1389 CFLAGS C compiler flags
1390 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1391 nonstandard directory <lib dir>
1392 LIBS libraries to pass to the linker, e.g. -l<library>
1393 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1394 you have headers in a nonstandard directory <include dir>
1395 CPP C preprocessor
1396 CXX C++ compiler command
1397 CXXFLAGS C++ compiler flags
1398 CXXCPP C++ preprocessor
1399
1400 Use these variables to override the choices made by `configure' or to help
1401 it to find libraries and programs with nonstandard names/locations.
1402
1403 Report bugs to <libmpx>.
1404 _ACEOF
1405 ac_status=$?
1406 fi
1407
1408 if test "$ac_init_help" = "recursive"; then
1409 # If there are subdirs, report their specific --help.
1410 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1411 test -d "$ac_dir" ||
1412 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1413 continue
1414 ac_builddir=.
1415
1416 case "$ac_dir" in
1417 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1418 *)
1419 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1420 # A ".." for each directory in $ac_dir_suffix.
1421 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1422 case $ac_top_builddir_sub in
1423 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1424 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1425 esac ;;
1426 esac
1427 ac_abs_top_builddir=$ac_pwd
1428 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1429 # for backward compatibility:
1430 ac_top_builddir=$ac_top_build_prefix
1431
1432 case $srcdir in
1433 .) # We are building in place.
1434 ac_srcdir=.
1435 ac_top_srcdir=$ac_top_builddir_sub
1436 ac_abs_top_srcdir=$ac_pwd ;;
1437 [\\/]* | ?:[\\/]* ) # Absolute name.
1438 ac_srcdir=$srcdir$ac_dir_suffix;
1439 ac_top_srcdir=$srcdir
1440 ac_abs_top_srcdir=$srcdir ;;
1441 *) # Relative name.
1442 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1443 ac_top_srcdir=$ac_top_build_prefix$srcdir
1444 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1445 esac
1446 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1447
1448 cd "$ac_dir" || { ac_status=$?; continue; }
1449 # Check for guested configure.
1450 if test -f "$ac_srcdir/configure.gnu"; then
1451 echo &&
1452 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1453 elif test -f "$ac_srcdir/configure"; then
1454 echo &&
1455 $SHELL "$ac_srcdir/configure" --help=recursive
1456 else
1457 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1458 fi || ac_status=$?
1459 cd "$ac_pwd" || { ac_status=$?; break; }
1460 done
1461 fi
1462
1463 test -n "$ac_init_help" && exit $ac_status
1464 if $ac_init_version; then
1465 cat <<\_ACEOF
1466 package-unused configure version-unused
1467 generated by GNU Autoconf 2.64
1468
1469 Copyright (C) 2009 Free Software Foundation, Inc.
1470 This configure script is free software; the Free Software Foundation
1471 gives unlimited permission to copy, distribute and modify it.
1472 _ACEOF
1473 exit
1474 fi
1475
1476 ## ------------------------ ##
1477 ## Autoconf initialization. ##
1478 ## ------------------------ ##
1479
1480 # ac_fn_c_try_compile LINENO
1481 # --------------------------
1482 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1483 ac_fn_c_try_compile ()
1484 {
1485 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1486 rm -f conftest.$ac_objext
1487 if { { ac_try="$ac_compile"
1488 case "(($ac_try" in
1489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1490 *) ac_try_echo=$ac_try;;
1491 esac
1492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1493 $as_echo "$ac_try_echo"; } >&5
1494 (eval "$ac_compile") 2>conftest.err
1495 ac_status=$?
1496 if test -s conftest.err; then
1497 grep -v '^ *+' conftest.err >conftest.er1
1498 cat conftest.er1 >&5
1499 mv -f conftest.er1 conftest.err
1500 fi
1501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1502 test $ac_status = 0; } && {
1503 test -z "$ac_c_werror_flag" ||
1504 test ! -s conftest.err
1505 } && test -s conftest.$ac_objext; then :
1506 ac_retval=0
1507 else
1508 $as_echo "$as_me: failed program was:" >&5
1509 sed 's/^/| /' conftest.$ac_ext >&5
1510
1511 ac_retval=1
1512 fi
1513 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1514 return $ac_retval
1515
1516 } # ac_fn_c_try_compile
1517
1518 # ac_fn_c_try_cpp LINENO
1519 # ----------------------
1520 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1521 ac_fn_c_try_cpp ()
1522 {
1523 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1524 if { { ac_try="$ac_cpp conftest.$ac_ext"
1525 case "(($ac_try" in
1526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1527 *) ac_try_echo=$ac_try;;
1528 esac
1529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1530 $as_echo "$ac_try_echo"; } >&5
1531 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1532 ac_status=$?
1533 if test -s conftest.err; then
1534 grep -v '^ *+' conftest.err >conftest.er1
1535 cat conftest.er1 >&5
1536 mv -f conftest.er1 conftest.err
1537 fi
1538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1539 test $ac_status = 0; } >/dev/null && {
1540 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1541 test ! -s conftest.err
1542 }; then :
1543 ac_retval=0
1544 else
1545 $as_echo "$as_me: failed program was:" >&5
1546 sed 's/^/| /' conftest.$ac_ext >&5
1547
1548 ac_retval=1
1549 fi
1550 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1551 return $ac_retval
1552
1553 } # ac_fn_c_try_cpp
1554
1555 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1556 # -------------------------------------------------------
1557 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1558 # the include files in INCLUDES and setting the cache variable VAR
1559 # accordingly.
1560 ac_fn_c_check_header_mongrel ()
1561 {
1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1565 $as_echo_n "checking for $2... " >&6; }
1566 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1567 $as_echo_n "(cached) " >&6
1568 fi
1569 eval ac_res=\$$3
1570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1571 $as_echo "$ac_res" >&6; }
1572 else
1573 # Is the header compilable?
1574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1575 $as_echo_n "checking $2 usability... " >&6; }
1576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1577 /* end confdefs.h. */
1578 $4
1579 #include <$2>
1580 _ACEOF
1581 if ac_fn_c_try_compile "$LINENO"; then :
1582 ac_header_compiler=yes
1583 else
1584 ac_header_compiler=no
1585 fi
1586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1588 $as_echo "$ac_header_compiler" >&6; }
1589
1590 # Is the header present?
1591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1592 $as_echo_n "checking $2 presence... " >&6; }
1593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1594 /* end confdefs.h. */
1595 #include <$2>
1596 _ACEOF
1597 if ac_fn_c_try_cpp "$LINENO"; then :
1598 ac_header_preproc=yes
1599 else
1600 ac_header_preproc=no
1601 fi
1602 rm -f conftest.err conftest.$ac_ext
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1604 $as_echo "$ac_header_preproc" >&6; }
1605
1606 # So? What about this header?
1607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1608 yes:no: )
1609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1610 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1612 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1613 ;;
1614 no:yes:* )
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1616 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1618 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1620 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1622 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1624 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1625 ( cat <<\_ASBOX
1626 ## --------------------- ##
1627 ## Report this to libmpx ##
1628 ## --------------------- ##
1629 _ASBOX
1630 ) | sed "s/^/$as_me: WARNING: /" >&2
1631 ;;
1632 esac
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1634 $as_echo_n "checking for $2... " >&6; }
1635 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1636 $as_echo_n "(cached) " >&6
1637 else
1638 eval "$3=\$ac_header_compiler"
1639 fi
1640 eval ac_res=\$$3
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1642 $as_echo "$ac_res" >&6; }
1643 fi
1644 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1645
1646 } # ac_fn_c_check_header_mongrel
1647
1648 # ac_fn_c_try_run LINENO
1649 # ----------------------
1650 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1651 # that executables *can* be run.
1652 ac_fn_c_try_run ()
1653 {
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 if { { ac_try="$ac_link"
1656 case "(($ac_try" in
1657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658 *) ac_try_echo=$ac_try;;
1659 esac
1660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661 $as_echo "$ac_try_echo"; } >&5
1662 (eval "$ac_link") 2>&5
1663 ac_status=$?
1664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1666 { { case "(($ac_try" in
1667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668 *) ac_try_echo=$ac_try;;
1669 esac
1670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671 $as_echo "$ac_try_echo"; } >&5
1672 (eval "$ac_try") 2>&5
1673 ac_status=$?
1674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675 test $ac_status = 0; }; }; then :
1676 ac_retval=0
1677 else
1678 $as_echo "$as_me: program exited with status $ac_status" >&5
1679 $as_echo "$as_me: failed program was:" >&5
1680 sed 's/^/| /' conftest.$ac_ext >&5
1681
1682 ac_retval=$ac_status
1683 fi
1684 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1685 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1686 return $ac_retval
1687
1688 } # ac_fn_c_try_run
1689
1690 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1691 # -------------------------------------------------------
1692 # Tests whether HEADER exists and can be compiled using the include files in
1693 # INCLUDES, setting the cache variable VAR accordingly.
1694 ac_fn_c_check_header_compile ()
1695 {
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1698 $as_echo_n "checking for $2... " >&6; }
1699 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1700 $as_echo_n "(cached) " >&6
1701 else
1702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1703 /* end confdefs.h. */
1704 $4
1705 #include <$2>
1706 _ACEOF
1707 if ac_fn_c_try_compile "$LINENO"; then :
1708 eval "$3=yes"
1709 else
1710 eval "$3=no"
1711 fi
1712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1713 fi
1714 eval ac_res=\$$3
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1716 $as_echo "$ac_res" >&6; }
1717 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1718
1719 } # ac_fn_c_check_header_compile
1720
1721 # ac_fn_c_try_link LINENO
1722 # -----------------------
1723 # Try to link conftest.$ac_ext, and return whether this succeeded.
1724 ac_fn_c_try_link ()
1725 {
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 rm -f conftest.$ac_objext conftest$ac_exeext
1728 if { { ac_try="$ac_link"
1729 case "(($ac_try" in
1730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1731 *) ac_try_echo=$ac_try;;
1732 esac
1733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1734 $as_echo "$ac_try_echo"; } >&5
1735 (eval "$ac_link") 2>conftest.err
1736 ac_status=$?
1737 if test -s conftest.err; then
1738 grep -v '^ *+' conftest.err >conftest.er1
1739 cat conftest.er1 >&5
1740 mv -f conftest.er1 conftest.err
1741 fi
1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743 test $ac_status = 0; } && {
1744 test -z "$ac_c_werror_flag" ||
1745 test ! -s conftest.err
1746 } && test -s conftest$ac_exeext && {
1747 test "$cross_compiling" = yes ||
1748 $as_test_x conftest$ac_exeext
1749 }; then :
1750 ac_retval=0
1751 else
1752 $as_echo "$as_me: failed program was:" >&5
1753 sed 's/^/| /' conftest.$ac_ext >&5
1754
1755 ac_retval=1
1756 fi
1757 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1758 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1759 # interfere with the next link command; also delete a directory that is
1760 # left behind by Apple's compiler. We do this before executing the actions.
1761 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1762 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1763 return $ac_retval
1764
1765 } # ac_fn_c_try_link
1766
1767 # ac_fn_c_check_func LINENO FUNC VAR
1768 # ----------------------------------
1769 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1770 ac_fn_c_check_func ()
1771 {
1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1774 $as_echo_n "checking for $2... " >&6; }
1775 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1776 $as_echo_n "(cached) " >&6
1777 else
1778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1779 /* end confdefs.h. */
1780 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1782 #define $2 innocuous_$2
1783
1784 /* System header to define __stub macros and hopefully few prototypes,
1785 which can conflict with char $2 (); below.
1786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1787 <limits.h> exists even on freestanding compilers. */
1788
1789 #ifdef __STDC__
1790 # include <limits.h>
1791 #else
1792 # include <assert.h>
1793 #endif
1794
1795 #undef $2
1796
1797 /* Override any GCC internal prototype to avoid an error.
1798 Use char because int might match the return type of a GCC
1799 builtin and then its argument prototype would still apply. */
1800 #ifdef __cplusplus
1801 extern "C"
1802 #endif
1803 char $2 ();
1804 /* The GNU C library defines this for functions which it implements
1805 to always fail with ENOSYS. Some functions are actually named
1806 something starting with __ and the normal name is an alias. */
1807 #if defined __stub_$2 || defined __stub___$2
1808 choke me
1809 #endif
1810
1811 int
1812 main ()
1813 {
1814 return $2 ();
1815 ;
1816 return 0;
1817 }
1818 _ACEOF
1819 if ac_fn_c_try_link "$LINENO"; then :
1820 eval "$3=yes"
1821 else
1822 eval "$3=no"
1823 fi
1824 rm -f core conftest.err conftest.$ac_objext \
1825 conftest$ac_exeext conftest.$ac_ext
1826 fi
1827 eval ac_res=\$$3
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1829 $as_echo "$ac_res" >&6; }
1830 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1831
1832 } # ac_fn_c_check_func
1833
1834 # ac_fn_cxx_try_compile LINENO
1835 # ----------------------------
1836 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1837 ac_fn_cxx_try_compile ()
1838 {
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 rm -f conftest.$ac_objext
1841 if { { ac_try="$ac_compile"
1842 case "(($ac_try" in
1843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844 *) ac_try_echo=$ac_try;;
1845 esac
1846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847 $as_echo "$ac_try_echo"; } >&5
1848 (eval "$ac_compile") 2>conftest.err
1849 ac_status=$?
1850 if test -s conftest.err; then
1851 grep -v '^ *+' conftest.err >conftest.er1
1852 cat conftest.er1 >&5
1853 mv -f conftest.er1 conftest.err
1854 fi
1855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856 test $ac_status = 0; } && {
1857 test -z "$ac_cxx_werror_flag" ||
1858 test ! -s conftest.err
1859 } && test -s conftest.$ac_objext; then :
1860 ac_retval=0
1861 else
1862 $as_echo "$as_me: failed program was:" >&5
1863 sed 's/^/| /' conftest.$ac_ext >&5
1864
1865 ac_retval=1
1866 fi
1867 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1868 return $ac_retval
1869
1870 } # ac_fn_cxx_try_compile
1871
1872 # ac_fn_cxx_try_cpp LINENO
1873 # ------------------------
1874 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1875 ac_fn_cxx_try_cpp ()
1876 {
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 if { { ac_try="$ac_cpp conftest.$ac_ext"
1879 case "(($ac_try" in
1880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1881 *) ac_try_echo=$ac_try;;
1882 esac
1883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884 $as_echo "$ac_try_echo"; } >&5
1885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1886 ac_status=$?
1887 if test -s conftest.err; then
1888 grep -v '^ *+' conftest.err >conftest.er1
1889 cat conftest.er1 >&5
1890 mv -f conftest.er1 conftest.err
1891 fi
1892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1893 test $ac_status = 0; } >/dev/null && {
1894 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1895 test ! -s conftest.err
1896 }; then :
1897 ac_retval=0
1898 else
1899 $as_echo "$as_me: failed program was:" >&5
1900 sed 's/^/| /' conftest.$ac_ext >&5
1901
1902 ac_retval=1
1903 fi
1904 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1905 return $ac_retval
1906
1907 } # ac_fn_cxx_try_cpp
1908
1909 # ac_fn_cxx_try_link LINENO
1910 # -------------------------
1911 # Try to link conftest.$ac_ext, and return whether this succeeded.
1912 ac_fn_cxx_try_link ()
1913 {
1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915 rm -f conftest.$ac_objext conftest$ac_exeext
1916 if { { ac_try="$ac_link"
1917 case "(($ac_try" in
1918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1919 *) ac_try_echo=$ac_try;;
1920 esac
1921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1922 $as_echo "$ac_try_echo"; } >&5
1923 (eval "$ac_link") 2>conftest.err
1924 ac_status=$?
1925 if test -s conftest.err; then
1926 grep -v '^ *+' conftest.err >conftest.er1
1927 cat conftest.er1 >&5
1928 mv -f conftest.er1 conftest.err
1929 fi
1930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1931 test $ac_status = 0; } && {
1932 test -z "$ac_cxx_werror_flag" ||
1933 test ! -s conftest.err
1934 } && test -s conftest$ac_exeext && {
1935 test "$cross_compiling" = yes ||
1936 $as_test_x conftest$ac_exeext
1937 }; then :
1938 ac_retval=0
1939 else
1940 $as_echo "$as_me: failed program was:" >&5
1941 sed 's/^/| /' conftest.$ac_ext >&5
1942
1943 ac_retval=1
1944 fi
1945 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1946 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1947 # interfere with the next link command; also delete a directory that is
1948 # left behind by Apple's compiler. We do this before executing the actions.
1949 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1950 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1951 return $ac_retval
1952
1953 } # ac_fn_cxx_try_link
1954 cat >config.log <<_ACEOF
1955 This file contains any messages produced by compilers while
1956 running configure, to aid debugging if configure makes a mistake.
1957
1958 It was created by package-unused $as_me version-unused, which was
1959 generated by GNU Autoconf 2.64. Invocation command line was
1960
1961 $ $0 $@
1962
1963 _ACEOF
1964 exec 5>>config.log
1965 {
1966 cat <<_ASUNAME
1967 ## --------- ##
1968 ## Platform. ##
1969 ## --------- ##
1970
1971 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1972 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1973 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1974 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1975 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1976
1977 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1978 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1979
1980 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1981 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1982 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1983 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1984 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1985 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1986 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1987
1988 _ASUNAME
1989
1990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1991 for as_dir in $PATH
1992 do
1993 IFS=$as_save_IFS
1994 test -z "$as_dir" && as_dir=.
1995 $as_echo "PATH: $as_dir"
1996 done
1997 IFS=$as_save_IFS
1998
1999 } >&5
2000
2001 cat >&5 <<_ACEOF
2002
2003
2004 ## ----------- ##
2005 ## Core tests. ##
2006 ## ----------- ##
2007
2008 _ACEOF
2009
2010
2011 # Keep a trace of the command line.
2012 # Strip out --no-create and --no-recursion so they do not pile up.
2013 # Strip out --silent because we don't want to record it for future runs.
2014 # Also quote any args containing shell meta-characters.
2015 # Make two passes to allow for proper duplicate-argument suppression.
2016 ac_configure_args=
2017 ac_configure_args0=
2018 ac_configure_args1=
2019 ac_must_keep_next=false
2020 for ac_pass in 1 2
2021 do
2022 for ac_arg
2023 do
2024 case $ac_arg in
2025 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2026 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2027 | -silent | --silent | --silen | --sile | --sil)
2028 continue ;;
2029 *\'*)
2030 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2031 esac
2032 case $ac_pass in
2033 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2034 2)
2035 as_fn_append ac_configure_args1 " '$ac_arg'"
2036 if test $ac_must_keep_next = true; then
2037 ac_must_keep_next=false # Got value, back to normal.
2038 else
2039 case $ac_arg in
2040 *=* | --config-cache | -C | -disable-* | --disable-* \
2041 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2042 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2043 | -with-* | --with-* | -without-* | --without-* | --x)
2044 case "$ac_configure_args0 " in
2045 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2046 esac
2047 ;;
2048 -* ) ac_must_keep_next=true ;;
2049 esac
2050 fi
2051 as_fn_append ac_configure_args " '$ac_arg'"
2052 ;;
2053 esac
2054 done
2055 done
2056 { ac_configure_args0=; unset ac_configure_args0;}
2057 { ac_configure_args1=; unset ac_configure_args1;}
2058
2059 # When interrupted or exit'd, cleanup temporary files, and complete
2060 # config.log. We remove comments because anyway the quotes in there
2061 # would cause problems or look ugly.
2062 # WARNING: Use '\'' to represent an apostrophe within the trap.
2063 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2064 trap 'exit_status=$?
2065 # Save into config.log some information that might help in debugging.
2066 {
2067 echo
2068
2069 cat <<\_ASBOX
2070 ## ---------------- ##
2071 ## Cache variables. ##
2072 ## ---------------- ##
2073 _ASBOX
2074 echo
2075 # The following way of writing the cache mishandles newlines in values,
2076 (
2077 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2078 eval ac_val=\$$ac_var
2079 case $ac_val in #(
2080 *${as_nl}*)
2081 case $ac_var in #(
2082 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2083 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2084 esac
2085 case $ac_var in #(
2086 _ | IFS | as_nl) ;; #(
2087 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2088 *) { eval $ac_var=; unset $ac_var;} ;;
2089 esac ;;
2090 esac
2091 done
2092 (set) 2>&1 |
2093 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2094 *${as_nl}ac_space=\ *)
2095 sed -n \
2096 "s/'\''/'\''\\\\'\'''\''/g;
2097 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2098 ;; #(
2099 *)
2100 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2101 ;;
2102 esac |
2103 sort
2104 )
2105 echo
2106
2107 cat <<\_ASBOX
2108 ## ----------------- ##
2109 ## Output variables. ##
2110 ## ----------------- ##
2111 _ASBOX
2112 echo
2113 for ac_var in $ac_subst_vars
2114 do
2115 eval ac_val=\$$ac_var
2116 case $ac_val in
2117 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2118 esac
2119 $as_echo "$ac_var='\''$ac_val'\''"
2120 done | sort
2121 echo
2122
2123 if test -n "$ac_subst_files"; then
2124 cat <<\_ASBOX
2125 ## ------------------- ##
2126 ## File substitutions. ##
2127 ## ------------------- ##
2128 _ASBOX
2129 echo
2130 for ac_var in $ac_subst_files
2131 do
2132 eval ac_val=\$$ac_var
2133 case $ac_val in
2134 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2135 esac
2136 $as_echo "$ac_var='\''$ac_val'\''"
2137 done | sort
2138 echo
2139 fi
2140
2141 if test -s confdefs.h; then
2142 cat <<\_ASBOX
2143 ## ----------- ##
2144 ## confdefs.h. ##
2145 ## ----------- ##
2146 _ASBOX
2147 echo
2148 cat confdefs.h
2149 echo
2150 fi
2151 test "$ac_signal" != 0 &&
2152 $as_echo "$as_me: caught signal $ac_signal"
2153 $as_echo "$as_me: exit $exit_status"
2154 } >&5
2155 rm -f core *.core core.conftest.* &&
2156 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2157 exit $exit_status
2158 ' 0
2159 for ac_signal in 1 2 13 15; do
2160 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2161 done
2162 ac_signal=0
2163
2164 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2165 rm -f -r conftest* confdefs.h
2166
2167 $as_echo "/* confdefs.h */" > confdefs.h
2168
2169 # Predefined preprocessor variables.
2170
2171 cat >>confdefs.h <<_ACEOF
2172 #define PACKAGE_NAME "$PACKAGE_NAME"
2173 _ACEOF
2174
2175 cat >>confdefs.h <<_ACEOF
2176 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2177 _ACEOF
2178
2179 cat >>confdefs.h <<_ACEOF
2180 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2181 _ACEOF
2182
2183 cat >>confdefs.h <<_ACEOF
2184 #define PACKAGE_STRING "$PACKAGE_STRING"
2185 _ACEOF
2186
2187 cat >>confdefs.h <<_ACEOF
2188 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2189 _ACEOF
2190
2191 cat >>confdefs.h <<_ACEOF
2192 #define PACKAGE_URL "$PACKAGE_URL"
2193 _ACEOF
2194
2195
2196 # Let the site file select an alternate cache file if it wants to.
2197 # Prefer an explicitly selected file to automatically selected ones.
2198 ac_site_file1=NONE
2199 ac_site_file2=NONE
2200 if test -n "$CONFIG_SITE"; then
2201 ac_site_file1=$CONFIG_SITE
2202 elif test "x$prefix" != xNONE; then
2203 ac_site_file1=$prefix/share/config.site
2204 ac_site_file2=$prefix/etc/config.site
2205 else
2206 ac_site_file1=$ac_default_prefix/share/config.site
2207 ac_site_file2=$ac_default_prefix/etc/config.site
2208 fi
2209 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2210 do
2211 test "x$ac_site_file" = xNONE && continue
2212 if test -r "$ac_site_file"; then
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2214 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2215 sed 's/^/| /' "$ac_site_file" >&5
2216 . "$ac_site_file"
2217 fi
2218 done
2219
2220 if test -r "$cache_file"; then
2221 # Some versions of bash will fail to source /dev/null (special
2222 # files actually), so we avoid doing that.
2223 if test -f "$cache_file"; then
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2225 $as_echo "$as_me: loading cache $cache_file" >&6;}
2226 case $cache_file in
2227 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2228 *) . "./$cache_file";;
2229 esac
2230 fi
2231 else
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2233 $as_echo "$as_me: creating cache $cache_file" >&6;}
2234 >$cache_file
2235 fi
2236
2237 # Check that the precious variables saved in the cache have kept the same
2238 # value.
2239 ac_cache_corrupted=false
2240 for ac_var in $ac_precious_vars; do
2241 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2242 eval ac_new_set=\$ac_env_${ac_var}_set
2243 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2244 eval ac_new_val=\$ac_env_${ac_var}_value
2245 case $ac_old_set,$ac_new_set in
2246 set,)
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2248 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2249 ac_cache_corrupted=: ;;
2250 ,set)
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2252 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2253 ac_cache_corrupted=: ;;
2254 ,);;
2255 *)
2256 if test "x$ac_old_val" != "x$ac_new_val"; then
2257 # differences in whitespace do not lead to failure.
2258 ac_old_val_w=`echo x $ac_old_val`
2259 ac_new_val_w=`echo x $ac_new_val`
2260 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2262 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2263 ac_cache_corrupted=:
2264 else
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2266 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2267 eval $ac_var=\$ac_old_val
2268 fi
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2270 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2272 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2273 fi;;
2274 esac
2275 # Pass precious variables to config.status.
2276 if test "$ac_new_set" = set; then
2277 case $ac_new_val in
2278 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2279 *) ac_arg=$ac_var=$ac_new_val ;;
2280 esac
2281 case " $ac_configure_args " in
2282 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2283 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2284 esac
2285 fi
2286 done
2287 if $ac_cache_corrupted; then
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2291 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2292 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2293 fi
2294 ## -------------------- ##
2295 ## Main body of script. ##
2296 ## -------------------- ##
2297
2298 ac_ext=c
2299 ac_cpp='$CPP $CPPFLAGS'
2300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2303
2304
2305
2306
2307
2308
2309 # -------
2310 # Options
2311 # -------
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2313 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2314 # Check whether --enable-version-specific-runtime-libs was given.
2315 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2316 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2317 yes) version_specific_libs=yes ;;
2318 no) version_specific_libs=no ;;
2319 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2320 esac
2321 else
2322 version_specific_libs=no
2323 fi
2324
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2326 $as_echo "$version_specific_libs" >&6; }
2327
2328 # Do not delete or change the following two lines. For why, see
2329 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2330 ac_aux_dir=
2331 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2332 for ac_t in install-sh install.sh shtool; do
2333 if test -f "$ac_dir/$ac_t"; then
2334 ac_aux_dir=$ac_dir
2335 ac_install_sh="$ac_aux_dir/$ac_t -c"
2336 break 2
2337 fi
2338 done
2339 done
2340 if test -z "$ac_aux_dir"; then
2341 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2342 fi
2343
2344 # These three variables are undocumented and unsupported,
2345 # and are intended to be withdrawn in a future Autoconf release.
2346 # They can cause serious problems if a builder's source tree is in a directory
2347 # whose full name contains unusual characters.
2348 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2349 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2350 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2351
2352
2353 # Make sure we can run config.sub.
2354 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2355 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2356
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2358 $as_echo_n "checking build system type... " >&6; }
2359 if test "${ac_cv_build+set}" = set; then :
2360 $as_echo_n "(cached) " >&6
2361 else
2362 ac_build_alias=$build_alias
2363 test "x$ac_build_alias" = x &&
2364 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2365 test "x$ac_build_alias" = x &&
2366 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2367 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2368 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2369
2370 fi
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2372 $as_echo "$ac_cv_build" >&6; }
2373 case $ac_cv_build in
2374 *-*-*) ;;
2375 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2376 esac
2377 build=$ac_cv_build
2378 ac_save_IFS=$IFS; IFS='-'
2379 set x $ac_cv_build
2380 shift
2381 build_cpu=$1
2382 build_vendor=$2
2383 shift; shift
2384 # Remember, the first character of IFS is used to create $*,
2385 # except with old shells:
2386 build_os=$*
2387 IFS=$ac_save_IFS
2388 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2389
2390
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2392 $as_echo_n "checking host system type... " >&6; }
2393 if test "${ac_cv_host+set}" = set; then :
2394 $as_echo_n "(cached) " >&6
2395 else
2396 if test "x$host_alias" = x; then
2397 ac_cv_host=$ac_cv_build
2398 else
2399 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2400 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2401 fi
2402
2403 fi
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2405 $as_echo "$ac_cv_host" >&6; }
2406 case $ac_cv_host in
2407 *-*-*) ;;
2408 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2409 esac
2410 host=$ac_cv_host
2411 ac_save_IFS=$IFS; IFS='-'
2412 set x $ac_cv_host
2413 shift
2414 host_cpu=$1
2415 host_vendor=$2
2416 shift; shift
2417 # Remember, the first character of IFS is used to create $*,
2418 # except with old shells:
2419 host_os=$*
2420 IFS=$ac_save_IFS
2421 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2422
2423
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2425 $as_echo_n "checking target system type... " >&6; }
2426 if test "${ac_cv_target+set}" = set; then :
2427 $as_echo_n "(cached) " >&6
2428 else
2429 if test "x$target_alias" = x; then
2430 ac_cv_target=$ac_cv_host
2431 else
2432 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2433 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2434 fi
2435
2436 fi
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2438 $as_echo "$ac_cv_target" >&6; }
2439 case $ac_cv_target in
2440 *-*-*) ;;
2441 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2442 esac
2443 target=$ac_cv_target
2444 ac_save_IFS=$IFS; IFS='-'
2445 set x $ac_cv_target
2446 shift
2447 target_cpu=$1
2448 target_vendor=$2
2449 shift; shift
2450 # Remember, the first character of IFS is used to create $*,
2451 # except with old shells:
2452 target_os=$*
2453 IFS=$ac_save_IFS
2454 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2455
2456
2457 # The aliases save the names the user supplied, while $host etc.
2458 # will get canonicalized.
2459 test -n "$target_alias" &&
2460 test "$program_prefix$program_suffix$program_transform_name" = \
2461 NONENONEs,x,x, &&
2462 program_prefix=${target_alias}-
2463
2464 target_alias=${target_alias-$host_alias}
2465
2466 case ${build_alias} in
2467 "") build_noncanonical=${build} ;;
2468 *) build_noncanonical=${build_alias} ;;
2469 esac
2470
2471 case ${host_alias} in
2472 "") host_noncanonical=${build_noncanonical} ;;
2473 *) host_noncanonical=${host_alias} ;;
2474 esac
2475
2476 case ${target_alias} in
2477 "") target_noncanonical=${host_noncanonical} ;;
2478 *) target_noncanonical=${target_alias} ;;
2479 esac
2480
2481
2482
2483
2484
2485 LIBSTDCXX_RAW_CXX_CXXFLAGS="\
2486 -I\$(top_builddir)/../libstdc++-v3/include \
2487 -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \
2488 -I\$(top_srcdir)/../libstdc++-v3/libsupc++"
2489 LIBSTDCXX_RAW_CXX_LDFLAGS="\
2490 \$(top_builddir)/../libstdc++-v3/src/libstdc++.la"
2491
2492
2493
2494
2495 # See if supported.
2496 unset LIBMPX_SUPPORTED
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target support for Intel MPX runtime library" >&5
2498 $as_echo_n "checking for target support for Intel MPX runtime library... " >&6; }
2499 echo "int isizeof (void *) == 4 ? 1 : -1 = { __x86_64__ };" > conftest.c
2500 if { ac_try='${CC} ${CFLAGS} -c -o conftest.o conftest.c 1>&5'
2501 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
2502 (eval $ac_try) 2>&5
2503 ac_status=$?
2504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2505 test $ac_status = 0; }; }
2506 then
2507 LIBMPX_SUPPORTED=no
2508 else
2509 LIBMPX_SUPPORTED=yes
2510 fi
2511 rm -f conftest.o conftest.c
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBMPX_SUPPORTED" >&5
2513 $as_echo "$LIBMPX_SUPPORTED" >&6; }
2514 if test "x$LIBMPX_SUPPORTED" = "xyes"; then
2515 LIBMPX_SUPPORTED_TRUE=
2516 LIBMPX_SUPPORTED_FALSE='#'
2517 else
2518 LIBMPX_SUPPORTED_TRUE='#'
2519 LIBMPX_SUPPORTED_FALSE=
2520 fi
2521
2522
2523 link_libmpx="-lpthread"
2524
2525
2526 am__api_version='1.11'
2527
2528 # Find a good install program. We prefer a C program (faster),
2529 # so one script is as good as another. But avoid the broken or
2530 # incompatible versions:
2531 # SysV /etc/install, /usr/sbin/install
2532 # SunOS /usr/etc/install
2533 # IRIX /sbin/install
2534 # AIX /bin/install
2535 # AmigaOS /C/install, which installs bootblocks on floppy discs
2536 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2537 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2538 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2539 # OS/2's system install, which has a completely different semantic
2540 # ./install, which can be erroneously created by make from ./install.sh.
2541 # Reject install programs that cannot install multiple files.
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2543 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2544 if test -z "$INSTALL"; then
2545 if test "${ac_cv_path_install+set}" = set; then :
2546 $as_echo_n "(cached) " >&6
2547 else
2548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549 for as_dir in $PATH
2550 do
2551 IFS=$as_save_IFS
2552 test -z "$as_dir" && as_dir=.
2553 # Account for people who put trailing slashes in PATH elements.
2554 case $as_dir/ in #((
2555 ./ | .// | /[cC]/* | \
2556 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2557 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2558 /usr/ucb/* ) ;;
2559 *)
2560 # OSF1 and SCO ODT 3.0 have their own names for install.
2561 # Don't use installbsd from OSF since it installs stuff as root
2562 # by default.
2563 for ac_prog in ginstall scoinst install; do
2564 for ac_exec_ext in '' $ac_executable_extensions; do
2565 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2566 if test $ac_prog = install &&
2567 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2568 # AIX install. It has an incompatible calling convention.
2569 :
2570 elif test $ac_prog = install &&
2571 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2572 # program-specific install script used by HP pwplus--don't use.
2573 :
2574 else
2575 rm -rf conftest.one conftest.two conftest.dir
2576 echo one > conftest.one
2577 echo two > conftest.two
2578 mkdir conftest.dir
2579 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2580 test -s conftest.one && test -s conftest.two &&
2581 test -s conftest.dir/conftest.one &&
2582 test -s conftest.dir/conftest.two
2583 then
2584 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2585 break 3
2586 fi
2587 fi
2588 fi
2589 done
2590 done
2591 ;;
2592 esac
2593
2594 done
2595 IFS=$as_save_IFS
2596
2597 rm -rf conftest.one conftest.two conftest.dir
2598
2599 fi
2600 if test "${ac_cv_path_install+set}" = set; then
2601 INSTALL=$ac_cv_path_install
2602 else
2603 # As a last resort, use the slow shell script. Don't cache a
2604 # value for INSTALL within a source directory, because that will
2605 # break other packages using the cache if that directory is
2606 # removed, or if the value is a relative name.
2607 INSTALL=$ac_install_sh
2608 fi
2609 fi
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2611 $as_echo "$INSTALL" >&6; }
2612
2613 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2614 # It thinks the first close brace ends the variable substitution.
2615 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2616
2617 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2618
2619 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2620
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2622 $as_echo_n "checking whether build environment is sane... " >&6; }
2623 # Just in case
2624 sleep 1
2625 echo timestamp > conftest.file
2626 # Reject unsafe characters in $srcdir or the absolute working directory
2627 # name. Accept space and tab only in the latter.
2628 am_lf='
2629 '
2630 case `pwd` in
2631 *[\\\"\#\$\&\'\`$am_lf]*)
2632 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2633 esac
2634 case $srcdir in
2635 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2636 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2637 esac
2638
2639 # Do `set' in a subshell so we don't clobber the current shell's
2640 # arguments. Must try -L first in case configure is actually a
2641 # symlink; some systems play weird games with the mod time of symlinks
2642 # (eg FreeBSD returns the mod time of the symlink's containing
2643 # directory).
2644 if (
2645 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2646 if test "$*" = "X"; then
2647 # -L didn't work.
2648 set X `ls -t "$srcdir/configure" conftest.file`
2649 fi
2650 rm -f conftest.file
2651 if test "$*" != "X $srcdir/configure conftest.file" \
2652 && test "$*" != "X conftest.file $srcdir/configure"; then
2653
2654 # If neither matched, then we have a broken ls. This can happen
2655 # if, for instance, CONFIG_SHELL is bash and it inherits a
2656 # broken ls alias from the environment. This has actually
2657 # happened. Such a system could not be considered "sane".
2658 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2659 alias in your environment" "$LINENO" 5
2660 fi
2661
2662 test "$2" = conftest.file
2663 )
2664 then
2665 # Ok.
2666 :
2667 else
2668 as_fn_error "newly created file is older than distributed files!
2669 Check your system clock" "$LINENO" 5
2670 fi
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2672 $as_echo "yes" >&6; }
2673 test "$program_prefix" != NONE &&
2674 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2675 # Use a double $ so make ignores it.
2676 test "$program_suffix" != NONE &&
2677 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2678 # Double any \ or $.
2679 # By default was `s,x,x', remove it if useless.
2680 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2681 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2682
2683 # expand $ac_aux_dir to an absolute path
2684 am_aux_dir=`cd $ac_aux_dir && pwd`
2685
2686 if test x"${MISSING+set}" != xset; then
2687 case $am_aux_dir in
2688 *\ * | *\ *)
2689 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2690 *)
2691 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2692 esac
2693 fi
2694 # Use eval to expand $SHELL
2695 if eval "$MISSING --run true"; then
2696 am_missing_run="$MISSING --run "
2697 else
2698 am_missing_run=
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2700 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2701 fi
2702
2703 if test x"${install_sh}" != xset; then
2704 case $am_aux_dir in
2705 *\ * | *\ *)
2706 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2707 *)
2708 install_sh="\${SHELL} $am_aux_dir/install-sh"
2709 esac
2710 fi
2711
2712 # Installed binaries are usually stripped using `strip' when the user
2713 # run `make install-strip'. However `strip' might not be the right
2714 # tool to use in cross-compilation environments, therefore Automake
2715 # will honor the `STRIP' environment variable to overrule this program.
2716 if test "$cross_compiling" != no; then
2717 if test -n "$ac_tool_prefix"; then
2718 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2719 set dummy ${ac_tool_prefix}strip; ac_word=$2
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2721 $as_echo_n "checking for $ac_word... " >&6; }
2722 if test "${ac_cv_prog_STRIP+set}" = set; then :
2723 $as_echo_n "(cached) " >&6
2724 else
2725 if test -n "$STRIP"; then
2726 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2727 else
2728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2729 for as_dir in $PATH
2730 do
2731 IFS=$as_save_IFS
2732 test -z "$as_dir" && as_dir=.
2733 for ac_exec_ext in '' $ac_executable_extensions; do
2734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2735 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2737 break 2
2738 fi
2739 done
2740 done
2741 IFS=$as_save_IFS
2742
2743 fi
2744 fi
2745 STRIP=$ac_cv_prog_STRIP
2746 if test -n "$STRIP"; then
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2748 $as_echo "$STRIP" >&6; }
2749 else
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2751 $as_echo "no" >&6; }
2752 fi
2753
2754
2755 fi
2756 if test -z "$ac_cv_prog_STRIP"; then
2757 ac_ct_STRIP=$STRIP
2758 # Extract the first word of "strip", so it can be a program name with args.
2759 set dummy strip; ac_word=$2
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2761 $as_echo_n "checking for $ac_word... " >&6; }
2762 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2763 $as_echo_n "(cached) " >&6
2764 else
2765 if test -n "$ac_ct_STRIP"; then
2766 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2767 else
2768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769 for as_dir in $PATH
2770 do
2771 IFS=$as_save_IFS
2772 test -z "$as_dir" && as_dir=.
2773 for ac_exec_ext in '' $ac_executable_extensions; do
2774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2775 ac_cv_prog_ac_ct_STRIP="strip"
2776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2777 break 2
2778 fi
2779 done
2780 done
2781 IFS=$as_save_IFS
2782
2783 fi
2784 fi
2785 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2786 if test -n "$ac_ct_STRIP"; then
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2788 $as_echo "$ac_ct_STRIP" >&6; }
2789 else
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2791 $as_echo "no" >&6; }
2792 fi
2793
2794 if test "x$ac_ct_STRIP" = x; then
2795 STRIP=":"
2796 else
2797 case $cross_compiling:$ac_tool_warned in
2798 yes:)
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2800 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2801 ac_tool_warned=yes ;;
2802 esac
2803 STRIP=$ac_ct_STRIP
2804 fi
2805 else
2806 STRIP="$ac_cv_prog_STRIP"
2807 fi
2808
2809 fi
2810 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2811
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2813 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2814 if test -z "$MKDIR_P"; then
2815 if test "${ac_cv_path_mkdir+set}" = set; then :
2816 $as_echo_n "(cached) " >&6
2817 else
2818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2820 do
2821 IFS=$as_save_IFS
2822 test -z "$as_dir" && as_dir=.
2823 for ac_prog in mkdir gmkdir; do
2824 for ac_exec_ext in '' $ac_executable_extensions; do
2825 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2826 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2827 'mkdir (GNU coreutils) '* | \
2828 'mkdir (coreutils) '* | \
2829 'mkdir (fileutils) '4.1*)
2830 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2831 break 3;;
2832 esac
2833 done
2834 done
2835 done
2836 IFS=$as_save_IFS
2837
2838 fi
2839
2840 if test "${ac_cv_path_mkdir+set}" = set; then
2841 MKDIR_P="$ac_cv_path_mkdir -p"
2842 else
2843 # As a last resort, use the slow shell script. Don't cache a
2844 # value for MKDIR_P within a source directory, because that will
2845 # break other packages using the cache if that directory is
2846 # removed, or if the value is a relative name.
2847 test -d ./--version && rmdir ./--version
2848 MKDIR_P="$ac_install_sh -d"
2849 fi
2850 fi
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2852 $as_echo "$MKDIR_P" >&6; }
2853
2854 mkdir_p="$MKDIR_P"
2855 case $mkdir_p in
2856 [\\/$]* | ?:[\\/]*) ;;
2857 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2858 esac
2859
2860 for ac_prog in gawk mawk nawk awk
2861 do
2862 # Extract the first word of "$ac_prog", so it can be a program name with args.
2863 set dummy $ac_prog; ac_word=$2
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2865 $as_echo_n "checking for $ac_word... " >&6; }
2866 if test "${ac_cv_prog_AWK+set}" = set; then :
2867 $as_echo_n "(cached) " >&6
2868 else
2869 if test -n "$AWK"; then
2870 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2871 else
2872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873 for as_dir in $PATH
2874 do
2875 IFS=$as_save_IFS
2876 test -z "$as_dir" && as_dir=.
2877 for ac_exec_ext in '' $ac_executable_extensions; do
2878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2879 ac_cv_prog_AWK="$ac_prog"
2880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2881 break 2
2882 fi
2883 done
2884 done
2885 IFS=$as_save_IFS
2886
2887 fi
2888 fi
2889 AWK=$ac_cv_prog_AWK
2890 if test -n "$AWK"; then
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2892 $as_echo "$AWK" >&6; }
2893 else
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2895 $as_echo "no" >&6; }
2896 fi
2897
2898
2899 test -n "$AWK" && break
2900 done
2901
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2903 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2904 set x ${MAKE-make}
2905 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2906 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2907 $as_echo_n "(cached) " >&6
2908 else
2909 cat >conftest.make <<\_ACEOF
2910 SHELL = /bin/sh
2911 all:
2912 @echo '@@@%%%=$(MAKE)=@@@%%%'
2913 _ACEOF
2914 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2915 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2916 *@@@%%%=?*=@@@%%%*)
2917 eval ac_cv_prog_make_${ac_make}_set=yes;;
2918 *)
2919 eval ac_cv_prog_make_${ac_make}_set=no;;
2920 esac
2921 rm -f conftest.make
2922 fi
2923 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2925 $as_echo "yes" >&6; }
2926 SET_MAKE=
2927 else
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2929 $as_echo "no" >&6; }
2930 SET_MAKE="MAKE=${MAKE-make}"
2931 fi
2932
2933 rm -rf .tst 2>/dev/null
2934 mkdir .tst 2>/dev/null
2935 if test -d .tst; then
2936 am__leading_dot=.
2937 else
2938 am__leading_dot=_
2939 fi
2940 rmdir .tst 2>/dev/null
2941
2942 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2943 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2944 # is not polluted with repeated "-I."
2945 am__isrc=' -I$(srcdir)'
2946 # test to see if srcdir already configured
2947 if test -f $srcdir/config.status; then
2948 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2949 fi
2950 fi
2951
2952 # test whether we have cygpath
2953 if test -z "$CYGPATH_W"; then
2954 if (cygpath --version) >/dev/null 2>/dev/null; then
2955 CYGPATH_W='cygpath -w'
2956 else
2957 CYGPATH_W=echo
2958 fi
2959 fi
2960
2961
2962 # Define the identity of the package.
2963 PACKAGE='package-unused'
2964 VERSION='version-unused'
2965
2966
2967 cat >>confdefs.h <<_ACEOF
2968 #define PACKAGE "$PACKAGE"
2969 _ACEOF
2970
2971
2972 cat >>confdefs.h <<_ACEOF
2973 #define VERSION "$VERSION"
2974 _ACEOF
2975
2976 # Some tools Automake needs.
2977
2978 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2979
2980
2981 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2982
2983
2984 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2985
2986
2987 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2988
2989
2990 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2991
2992 # We need awk for the "check" target. The system "awk" is bad on
2993 # some platforms.
2994 # Always define AMTAR for backward compatibility.
2995
2996 AMTAR=${AMTAR-"${am_missing_run}tar"}
2997
2998 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2999
3000
3001
3002
3003
3004 # Default to --enable-multilib
3005 # Check whether --enable-multilib was given.
3006 if test "${enable_multilib+set}" = set; then :
3007 enableval=$enable_multilib; case "$enableval" in
3008 yes) multilib=yes ;;
3009 no) multilib=no ;;
3010 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3011 esac
3012 else
3013 multilib=yes
3014 fi
3015
3016
3017 # We may get other options which we leave undocumented:
3018 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3019 # See config-ml.in if you want the gory details.
3020
3021 if test "$srcdir" = "."; then
3022 if test "$with_target_subdir" != "."; then
3023 multi_basedir="$srcdir/$with_multisrctop../.."
3024 else
3025 multi_basedir="$srcdir/$with_multisrctop.."
3026 fi
3027 else
3028 multi_basedir="$srcdir/.."
3029 fi
3030
3031
3032 # Even if the default multilib is not a cross compilation,
3033 # it may be that some of the other multilibs are.
3034 if test $cross_compiling = no && test $multilib = yes \
3035 && test "x${with_multisubdir}" != x ; then
3036 cross_compiling=maybe
3037 fi
3038
3039 ac_config_commands="$ac_config_commands default-1"
3040
3041
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3043 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3044 # Check whether --enable-maintainer-mode was given.
3045 if test "${enable_maintainer_mode+set}" = set; then :
3046 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3047 else
3048 USE_MAINTAINER_MODE=no
3049 fi
3050
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3052 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3053 if test $USE_MAINTAINER_MODE = yes; then
3054 MAINTAINER_MODE_TRUE=
3055 MAINTAINER_MODE_FALSE='#'
3056 else
3057 MAINTAINER_MODE_TRUE='#'
3058 MAINTAINER_MODE_FALSE=
3059 fi
3060
3061 MAINT=$MAINTAINER_MODE_TRUE
3062
3063
3064
3065 ac_ext=c
3066 ac_cpp='$CPP $CPPFLAGS'
3067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3070 if test -n "$ac_tool_prefix"; then
3071 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3072 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3074 $as_echo_n "checking for $ac_word... " >&6; }
3075 if test "${ac_cv_prog_CC+set}" = set; then :
3076 $as_echo_n "(cached) " >&6
3077 else
3078 if test -n "$CC"; then
3079 ac_cv_prog_CC="$CC" # Let the user override the test.
3080 else
3081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082 for as_dir in $PATH
3083 do
3084 IFS=$as_save_IFS
3085 test -z "$as_dir" && as_dir=.
3086 for ac_exec_ext in '' $ac_executable_extensions; do
3087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3088 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3090 break 2
3091 fi
3092 done
3093 done
3094 IFS=$as_save_IFS
3095
3096 fi
3097 fi
3098 CC=$ac_cv_prog_CC
3099 if test -n "$CC"; then
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3101 $as_echo "$CC" >&6; }
3102 else
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3104 $as_echo "no" >&6; }
3105 fi
3106
3107
3108 fi
3109 if test -z "$ac_cv_prog_CC"; then
3110 ac_ct_CC=$CC
3111 # Extract the first word of "gcc", so it can be a program name with args.
3112 set dummy gcc; ac_word=$2
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3114 $as_echo_n "checking for $ac_word... " >&6; }
3115 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3116 $as_echo_n "(cached) " >&6
3117 else
3118 if test -n "$ac_ct_CC"; then
3119 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3120 else
3121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122 for as_dir in $PATH
3123 do
3124 IFS=$as_save_IFS
3125 test -z "$as_dir" && as_dir=.
3126 for ac_exec_ext in '' $ac_executable_extensions; do
3127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3128 ac_cv_prog_ac_ct_CC="gcc"
3129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3130 break 2
3131 fi
3132 done
3133 done
3134 IFS=$as_save_IFS
3135
3136 fi
3137 fi
3138 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3139 if test -n "$ac_ct_CC"; then
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3141 $as_echo "$ac_ct_CC" >&6; }
3142 else
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3144 $as_echo "no" >&6; }
3145 fi
3146
3147 if test "x$ac_ct_CC" = x; then
3148 CC=""
3149 else
3150 case $cross_compiling:$ac_tool_warned in
3151 yes:)
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3154 ac_tool_warned=yes ;;
3155 esac
3156 CC=$ac_ct_CC
3157 fi
3158 else
3159 CC="$ac_cv_prog_CC"
3160 fi
3161
3162 if test -z "$CC"; then
3163 if test -n "$ac_tool_prefix"; then
3164 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3165 set dummy ${ac_tool_prefix}cc; ac_word=$2
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3167 $as_echo_n "checking for $ac_word... " >&6; }
3168 if test "${ac_cv_prog_CC+set}" = set; then :
3169 $as_echo_n "(cached) " >&6
3170 else
3171 if test -n "$CC"; then
3172 ac_cv_prog_CC="$CC" # Let the user override the test.
3173 else
3174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175 for as_dir in $PATH
3176 do
3177 IFS=$as_save_IFS
3178 test -z "$as_dir" && as_dir=.
3179 for ac_exec_ext in '' $ac_executable_extensions; do
3180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3181 ac_cv_prog_CC="${ac_tool_prefix}cc"
3182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3183 break 2
3184 fi
3185 done
3186 done
3187 IFS=$as_save_IFS
3188
3189 fi
3190 fi
3191 CC=$ac_cv_prog_CC
3192 if test -n "$CC"; then
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3194 $as_echo "$CC" >&6; }
3195 else
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197 $as_echo "no" >&6; }
3198 fi
3199
3200
3201 fi
3202 fi
3203 if test -z "$CC"; then
3204 # Extract the first word of "cc", so it can be a program name with args.
3205 set dummy cc; ac_word=$2
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3207 $as_echo_n "checking for $ac_word... " >&6; }
3208 if test "${ac_cv_prog_CC+set}" = set; then :
3209 $as_echo_n "(cached) " >&6
3210 else
3211 if test -n "$CC"; then
3212 ac_cv_prog_CC="$CC" # Let the user override the test.
3213 else
3214 ac_prog_rejected=no
3215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3216 for as_dir in $PATH
3217 do
3218 IFS=$as_save_IFS
3219 test -z "$as_dir" && as_dir=.
3220 for ac_exec_ext in '' $ac_executable_extensions; do
3221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3222 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3223 ac_prog_rejected=yes
3224 continue
3225 fi
3226 ac_cv_prog_CC="cc"
3227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3228 break 2
3229 fi
3230 done
3231 done
3232 IFS=$as_save_IFS
3233
3234 if test $ac_prog_rejected = yes; then
3235 # We found a bogon in the path, so make sure we never use it.
3236 set dummy $ac_cv_prog_CC
3237 shift
3238 if test $# != 0; then
3239 # We chose a different compiler from the bogus one.
3240 # However, it has the same basename, so the bogon will be chosen
3241 # first if we set CC to just the basename; use the full file name.
3242 shift
3243 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3244 fi
3245 fi
3246 fi
3247 fi
3248 CC=$ac_cv_prog_CC
3249 if test -n "$CC"; then
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3251 $as_echo "$CC" >&6; }
3252 else
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254 $as_echo "no" >&6; }
3255 fi
3256
3257
3258 fi
3259 if test -z "$CC"; then
3260 if test -n "$ac_tool_prefix"; then
3261 for ac_prog in cl.exe
3262 do
3263 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3264 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3266 $as_echo_n "checking for $ac_word... " >&6; }
3267 if test "${ac_cv_prog_CC+set}" = set; then :
3268 $as_echo_n "(cached) " >&6
3269 else
3270 if test -n "$CC"; then
3271 ac_cv_prog_CC="$CC" # Let the user override the test.
3272 else
3273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274 for as_dir in $PATH
3275 do
3276 IFS=$as_save_IFS
3277 test -z "$as_dir" && as_dir=.
3278 for ac_exec_ext in '' $ac_executable_extensions; do
3279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3280 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3282 break 2
3283 fi
3284 done
3285 done
3286 IFS=$as_save_IFS
3287
3288 fi
3289 fi
3290 CC=$ac_cv_prog_CC
3291 if test -n "$CC"; then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3293 $as_echo "$CC" >&6; }
3294 else
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296 $as_echo "no" >&6; }
3297 fi
3298
3299
3300 test -n "$CC" && break
3301 done
3302 fi
3303 if test -z "$CC"; then
3304 ac_ct_CC=$CC
3305 for ac_prog in cl.exe
3306 do
3307 # Extract the first word of "$ac_prog", so it can be a program name with args.
3308 set dummy $ac_prog; ac_word=$2
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3310 $as_echo_n "checking for $ac_word... " >&6; }
3311 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3312 $as_echo_n "(cached) " >&6
3313 else
3314 if test -n "$ac_ct_CC"; then
3315 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3316 else
3317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3318 for as_dir in $PATH
3319 do
3320 IFS=$as_save_IFS
3321 test -z "$as_dir" && as_dir=.
3322 for ac_exec_ext in '' $ac_executable_extensions; do
3323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3324 ac_cv_prog_ac_ct_CC="$ac_prog"
3325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3326 break 2
3327 fi
3328 done
3329 done
3330 IFS=$as_save_IFS
3331
3332 fi
3333 fi
3334 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3335 if test -n "$ac_ct_CC"; then
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3337 $as_echo "$ac_ct_CC" >&6; }
3338 else
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3340 $as_echo "no" >&6; }
3341 fi
3342
3343
3344 test -n "$ac_ct_CC" && break
3345 done
3346
3347 if test "x$ac_ct_CC" = x; then
3348 CC=""
3349 else
3350 case $cross_compiling:$ac_tool_warned in
3351 yes:)
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3354 ac_tool_warned=yes ;;
3355 esac
3356 CC=$ac_ct_CC
3357 fi
3358 fi
3359
3360 fi
3361
3362
3363 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3365 as_fn_error "no acceptable C compiler found in \$PATH
3366 See \`config.log' for more details." "$LINENO" 5; }
3367
3368 # Provide some information about the compiler.
3369 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3370 set X $ac_compile
3371 ac_compiler=$2
3372 for ac_option in --version -v -V -qversion; do
3373 { { ac_try="$ac_compiler $ac_option >&5"
3374 case "(($ac_try" in
3375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376 *) ac_try_echo=$ac_try;;
3377 esac
3378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3379 $as_echo "$ac_try_echo"; } >&5
3380 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3381 ac_status=$?
3382 if test -s conftest.err; then
3383 sed '10a\
3384 ... rest of stderr output deleted ...
3385 10q' conftest.err >conftest.er1
3386 cat conftest.er1 >&5
3387 rm -f conftest.er1 conftest.err
3388 fi
3389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3390 test $ac_status = 0; }
3391 done
3392
3393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3394 /* end confdefs.h. */
3395
3396 int
3397 main ()
3398 {
3399
3400 ;
3401 return 0;
3402 }
3403 _ACEOF
3404 ac_clean_files_save=$ac_clean_files
3405 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3406 # Try to create an executable without -o first, disregard a.out.
3407 # It will help us diagnose broken compilers, and finding out an intuition
3408 # of exeext.
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3410 $as_echo_n "checking for C compiler default output file name... " >&6; }
3411 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3412
3413 # The possible output files:
3414 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3415
3416 ac_rmfiles=
3417 for ac_file in $ac_files
3418 do
3419 case $ac_file in
3420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3421 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3422 esac
3423 done
3424 rm -f $ac_rmfiles
3425
3426 if { { ac_try="$ac_link_default"
3427 case "(($ac_try" in
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3430 esac
3431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3432 $as_echo "$ac_try_echo"; } >&5
3433 (eval "$ac_link_default") 2>&5
3434 ac_status=$?
3435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3436 test $ac_status = 0; }; then :
3437 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3438 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3439 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3440 # so that the user can short-circuit this test for compilers unknown to
3441 # Autoconf.
3442 for ac_file in $ac_files ''
3443 do
3444 test -f "$ac_file" || continue
3445 case $ac_file in
3446 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3447 ;;
3448 [ab].out )
3449 # We found the default executable, but exeext='' is most
3450 # certainly right.
3451 break;;
3452 *.* )
3453 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3454 then :; else
3455 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3456 fi
3457 # We set ac_cv_exeext here because the later test for it is not
3458 # safe: cross compilers may not add the suffix if given an `-o'
3459 # argument, so we may need to know it at that point already.
3460 # Even if this section looks crufty: it has the advantage of
3461 # actually working.
3462 break;;
3463 * )
3464 break;;
3465 esac
3466 done
3467 test "$ac_cv_exeext" = no && ac_cv_exeext=
3468
3469 else
3470 ac_file=''
3471 fi
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3473 $as_echo "$ac_file" >&6; }
3474 if test -z "$ac_file"; then :
3475 $as_echo "$as_me: failed program was:" >&5
3476 sed 's/^/| /' conftest.$ac_ext >&5
3477
3478 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3479 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3480 { as_fn_set_status 77
3481 as_fn_error "C compiler cannot create executables
3482 See \`config.log' for more details." "$LINENO" 5; }; }
3483 fi
3484 ac_exeext=$ac_cv_exeext
3485
3486 # Check that the compiler produces executables we can run. If not, either
3487 # the compiler is broken, or we cross compile.
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3489 $as_echo_n "checking whether the C compiler works... " >&6; }
3490 # If not cross compiling, check that we can run a simple program.
3491 if test "$cross_compiling" != yes; then
3492 if { ac_try='./$ac_file'
3493 { { case "(($ac_try" in
3494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495 *) ac_try_echo=$ac_try;;
3496 esac
3497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3498 $as_echo "$ac_try_echo"; } >&5
3499 (eval "$ac_try") 2>&5
3500 ac_status=$?
3501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3502 test $ac_status = 0; }; }; then
3503 cross_compiling=no
3504 else
3505 if test "$cross_compiling" = maybe; then
3506 cross_compiling=yes
3507 else
3508 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3510 as_fn_error "cannot run C compiled programs.
3511 If you meant to cross compile, use \`--host'.
3512 See \`config.log' for more details." "$LINENO" 5; }
3513 fi
3514 fi
3515 fi
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3517 $as_echo "yes" >&6; }
3518
3519 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3520 ac_clean_files=$ac_clean_files_save
3521 # Check that the compiler produces executables we can run. If not, either
3522 # the compiler is broken, or we cross compile.
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3524 $as_echo_n "checking whether we are cross compiling... " >&6; }
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3526 $as_echo "$cross_compiling" >&6; }
3527
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3529 $as_echo_n "checking for suffix of executables... " >&6; }
3530 if { { ac_try="$ac_link"
3531 case "(($ac_try" in
3532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3533 *) ac_try_echo=$ac_try;;
3534 esac
3535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3536 $as_echo "$ac_try_echo"; } >&5
3537 (eval "$ac_link") 2>&5
3538 ac_status=$?
3539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3540 test $ac_status = 0; }; then :
3541 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3542 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3543 # work properly (i.e., refer to `conftest.exe'), while it won't with
3544 # `rm'.
3545 for ac_file in conftest.exe conftest conftest.*; do
3546 test -f "$ac_file" || continue
3547 case $ac_file in
3548 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3549 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3550 break;;
3551 * ) break;;
3552 esac
3553 done
3554 else
3555 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3556 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3557 as_fn_error "cannot compute suffix of executables: cannot compile and link
3558 See \`config.log' for more details." "$LINENO" 5; }
3559 fi
3560 rm -f conftest$ac_cv_exeext
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3562 $as_echo "$ac_cv_exeext" >&6; }
3563
3564 rm -f conftest.$ac_ext
3565 EXEEXT=$ac_cv_exeext
3566 ac_exeext=$EXEEXT
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3568 $as_echo_n "checking for suffix of object files... " >&6; }
3569 if test "${ac_cv_objext+set}" = set; then :
3570 $as_echo_n "(cached) " >&6
3571 else
3572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3573 /* end confdefs.h. */
3574
3575 int
3576 main ()
3577 {
3578
3579 ;
3580 return 0;
3581 }
3582 _ACEOF
3583 rm -f conftest.o conftest.obj
3584 if { { ac_try="$ac_compile"
3585 case "(($ac_try" in
3586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587 *) ac_try_echo=$ac_try;;
3588 esac
3589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3590 $as_echo "$ac_try_echo"; } >&5
3591 (eval "$ac_compile") 2>&5
3592 ac_status=$?
3593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3594 test $ac_status = 0; }; then :
3595 for ac_file in conftest.o conftest.obj conftest.*; do
3596 test -f "$ac_file" || continue;
3597 case $ac_file in
3598 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3599 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3600 break;;
3601 esac
3602 done
3603 else
3604 $as_echo "$as_me: failed program was:" >&5
3605 sed 's/^/| /' conftest.$ac_ext >&5
3606
3607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3609 as_fn_error "cannot compute suffix of object files: cannot compile
3610 See \`config.log' for more details." "$LINENO" 5; }
3611 fi
3612 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3613 fi
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3615 $as_echo "$ac_cv_objext" >&6; }
3616 OBJEXT=$ac_cv_objext
3617 ac_objext=$OBJEXT
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3619 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3620 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3621 $as_echo_n "(cached) " >&6
3622 else
3623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624 /* end confdefs.h. */
3625
3626 int
3627 main ()
3628 {
3629 #ifndef __GNUC__
3630 choke me
3631 #endif
3632
3633 ;
3634 return 0;
3635 }
3636 _ACEOF
3637 if ac_fn_c_try_compile "$LINENO"; then :
3638 ac_compiler_gnu=yes
3639 else
3640 ac_compiler_gnu=no
3641 fi
3642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3643 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3644
3645 fi
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3647 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3648 if test $ac_compiler_gnu = yes; then
3649 GCC=yes
3650 else
3651 GCC=
3652 fi
3653 ac_test_CFLAGS=${CFLAGS+set}
3654 ac_save_CFLAGS=$CFLAGS
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3656 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3657 if test "${ac_cv_prog_cc_g+set}" = set; then :
3658 $as_echo_n "(cached) " >&6
3659 else
3660 ac_save_c_werror_flag=$ac_c_werror_flag
3661 ac_c_werror_flag=yes
3662 ac_cv_prog_cc_g=no
3663 CFLAGS="-g"
3664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3665 /* end confdefs.h. */
3666
3667 int
3668 main ()
3669 {
3670
3671 ;
3672 return 0;
3673 }
3674 _ACEOF
3675 if ac_fn_c_try_compile "$LINENO"; then :
3676 ac_cv_prog_cc_g=yes
3677 else
3678 CFLAGS=""
3679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3680 /* end confdefs.h. */
3681
3682 int
3683 main ()
3684 {
3685
3686 ;
3687 return 0;
3688 }
3689 _ACEOF
3690 if ac_fn_c_try_compile "$LINENO"; then :
3691
3692 else
3693 ac_c_werror_flag=$ac_save_c_werror_flag
3694 CFLAGS="-g"
3695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696 /* end confdefs.h. */
3697
3698 int
3699 main ()
3700 {
3701
3702 ;
3703 return 0;
3704 }
3705 _ACEOF
3706 if ac_fn_c_try_compile "$LINENO"; then :
3707 ac_cv_prog_cc_g=yes
3708 fi
3709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3710 fi
3711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3712 fi
3713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3714 ac_c_werror_flag=$ac_save_c_werror_flag
3715 fi
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3717 $as_echo "$ac_cv_prog_cc_g" >&6; }
3718 if test "$ac_test_CFLAGS" = set; then
3719 CFLAGS=$ac_save_CFLAGS
3720 elif test $ac_cv_prog_cc_g = yes; then
3721 if test "$GCC" = yes; then
3722 CFLAGS="-g -O2"
3723 else
3724 CFLAGS="-g"
3725 fi
3726 else
3727 if test "$GCC" = yes; then
3728 CFLAGS="-O2"
3729 else
3730 CFLAGS=
3731 fi
3732 fi
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3734 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3735 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3736 $as_echo_n "(cached) " >&6
3737 else
3738 ac_cv_prog_cc_c89=no
3739 ac_save_CC=$CC
3740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3741 /* end confdefs.h. */
3742 #include <stdarg.h>
3743 #include <stdio.h>
3744 #include <sys/types.h>
3745 #include <sys/stat.h>
3746 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3747 struct buf { int x; };
3748 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3749 static char *e (p, i)
3750 char **p;
3751 int i;
3752 {
3753 return p[i];
3754 }
3755 static char *f (char * (*g) (char **, int), char **p, ...)
3756 {
3757 char *s;
3758 va_list v;
3759 va_start (v,p);
3760 s = g (p, va_arg (v,int));
3761 va_end (v);
3762 return s;
3763 }
3764
3765 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3766 function prototypes and stuff, but not '\xHH' hex character constants.
3767 These don't provoke an error unfortunately, instead are silently treated
3768 as 'x'. The following induces an error, until -std is added to get
3769 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3770 array size at least. It's necessary to write '\x00'==0 to get something
3771 that's true only with -std. */
3772 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3773
3774 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3775 inside strings and character constants. */
3776 #define FOO(x) 'x'
3777 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3778
3779 int test (int i, double x);
3780 struct s1 {int (*f) (int a);};
3781 struct s2 {int (*f) (double a);};
3782 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3783 int argc;
3784 char **argv;
3785 int
3786 main ()
3787 {
3788 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3789 ;
3790 return 0;
3791 }
3792 _ACEOF
3793 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3794 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3795 do
3796 CC="$ac_save_CC $ac_arg"
3797 if ac_fn_c_try_compile "$LINENO"; then :
3798 ac_cv_prog_cc_c89=$ac_arg
3799 fi
3800 rm -f core conftest.err conftest.$ac_objext
3801 test "x$ac_cv_prog_cc_c89" != "xno" && break
3802 done
3803 rm -f conftest.$ac_ext
3804 CC=$ac_save_CC
3805
3806 fi
3807 # AC_CACHE_VAL
3808 case "x$ac_cv_prog_cc_c89" in
3809 x)
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3811 $as_echo "none needed" >&6; } ;;
3812 xno)
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3814 $as_echo "unsupported" >&6; } ;;
3815 *)
3816 CC="$CC $ac_cv_prog_cc_c89"
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3818 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3819 esac
3820 if test "x$ac_cv_prog_cc_c89" != xno; then :
3821
3822 fi
3823
3824 ac_ext=c
3825 ac_cpp='$CPP $CPPFLAGS'
3826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3829
3830
3831 ac_ext=c
3832 ac_cpp='$CPP $CPPFLAGS'
3833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3837 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3838 # On Suns, sometimes $CPP names a directory.
3839 if test -n "$CPP" && test -d "$CPP"; then
3840 CPP=
3841 fi
3842 if test -z "$CPP"; then
3843 if test "${ac_cv_prog_CPP+set}" = set; then :
3844 $as_echo_n "(cached) " >&6
3845 else
3846 # Double quotes because CPP needs to be expanded
3847 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3848 do
3849 ac_preproc_ok=false
3850 for ac_c_preproc_warn_flag in '' yes
3851 do
3852 # Use a header file that comes with gcc, so configuring glibc
3853 # with a fresh cross-compiler works.
3854 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3855 # <limits.h> exists even on freestanding compilers.
3856 # On the NeXT, cc -E runs the code through the compiler's parser,
3857 # not just through cpp. "Syntax error" is here to catch this case.
3858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3859 /* end confdefs.h. */
3860 #ifdef __STDC__
3861 # include <limits.h>
3862 #else
3863 # include <assert.h>
3864 #endif
3865 Syntax error
3866 _ACEOF
3867 if ac_fn_c_try_cpp "$LINENO"; then :
3868
3869 else
3870 # Broken: fails on valid input.
3871 continue
3872 fi
3873 rm -f conftest.err conftest.$ac_ext
3874
3875 # OK, works on sane cases. Now check whether nonexistent headers
3876 # can be detected and how.
3877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3878 /* end confdefs.h. */
3879 #include <ac_nonexistent.h>
3880 _ACEOF
3881 if ac_fn_c_try_cpp "$LINENO"; then :
3882 # Broken: success on invalid input.
3883 continue
3884 else
3885 # Passes both tests.
3886 ac_preproc_ok=:
3887 break
3888 fi
3889 rm -f conftest.err conftest.$ac_ext
3890
3891 done
3892 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3893 rm -f conftest.err conftest.$ac_ext
3894 if $ac_preproc_ok; then :
3895 break
3896 fi
3897
3898 done
3899 ac_cv_prog_CPP=$CPP
3900
3901 fi
3902 CPP=$ac_cv_prog_CPP
3903 else
3904 ac_cv_prog_CPP=$CPP
3905 fi
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3907 $as_echo "$CPP" >&6; }
3908 ac_preproc_ok=false
3909 for ac_c_preproc_warn_flag in '' yes
3910 do
3911 # Use a header file that comes with gcc, so configuring glibc
3912 # with a fresh cross-compiler works.
3913 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3914 # <limits.h> exists even on freestanding compilers.
3915 # On the NeXT, cc -E runs the code through the compiler's parser,
3916 # not just through cpp. "Syntax error" is here to catch this case.
3917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3918 /* end confdefs.h. */
3919 #ifdef __STDC__
3920 # include <limits.h>
3921 #else
3922 # include <assert.h>
3923 #endif
3924 Syntax error
3925 _ACEOF
3926 if ac_fn_c_try_cpp "$LINENO"; then :
3927
3928 else
3929 # Broken: fails on valid input.
3930 continue
3931 fi
3932 rm -f conftest.err conftest.$ac_ext
3933
3934 # OK, works on sane cases. Now check whether nonexistent headers
3935 # can be detected and how.
3936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3937 /* end confdefs.h. */
3938 #include <ac_nonexistent.h>
3939 _ACEOF
3940 if ac_fn_c_try_cpp "$LINENO"; then :
3941 # Broken: success on invalid input.
3942 continue
3943 else
3944 # Passes both tests.
3945 ac_preproc_ok=:
3946 break
3947 fi
3948 rm -f conftest.err conftest.$ac_ext
3949
3950 done
3951 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3952 rm -f conftest.err conftest.$ac_ext
3953 if $ac_preproc_ok; then :
3954
3955 else
3956 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3957 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3958 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3959 See \`config.log' for more details." "$LINENO" 5; }
3960 fi
3961
3962 ac_ext=c
3963 ac_cpp='$CPP $CPPFLAGS'
3964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3967
3968
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3970 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3971 if test "${ac_cv_path_GREP+set}" = set; then :
3972 $as_echo_n "(cached) " >&6
3973 else
3974 if test -z "$GREP"; then
3975 ac_path_GREP_found=false
3976 # Loop through the user's path and test for each of PROGNAME-LIST
3977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3978 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3979 do
3980 IFS=$as_save_IFS
3981 test -z "$as_dir" && as_dir=.
3982 for ac_prog in grep ggrep; do
3983 for ac_exec_ext in '' $ac_executable_extensions; do
3984 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3985 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3986 # Check for GNU ac_path_GREP and select it if it is found.
3987 # Check for GNU $ac_path_GREP
3988 case `"$ac_path_GREP" --version 2>&1` in
3989 *GNU*)
3990 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3991 *)
3992 ac_count=0
3993 $as_echo_n 0123456789 >"conftest.in"
3994 while :
3995 do
3996 cat "conftest.in" "conftest.in" >"conftest.tmp"
3997 mv "conftest.tmp" "conftest.in"
3998 cp "conftest.in" "conftest.nl"
3999 $as_echo 'GREP' >> "conftest.nl"
4000 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4001 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4002 as_fn_arith $ac_count + 1 && ac_count=$as_val
4003 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4004 # Best one so far, save it but keep looking for a better one
4005 ac_cv_path_GREP="$ac_path_GREP"
4006 ac_path_GREP_max=$ac_count
4007 fi
4008 # 10*(2^10) chars as input seems more than enough
4009 test $ac_count -gt 10 && break
4010 done
4011 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4012 esac
4013
4014 $ac_path_GREP_found && break 3
4015 done
4016 done
4017 done
4018 IFS=$as_save_IFS
4019 if test -z "$ac_cv_path_GREP"; then
4020 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4021 fi
4022 else
4023 ac_cv_path_GREP=$GREP
4024 fi
4025
4026 fi
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4028 $as_echo "$ac_cv_path_GREP" >&6; }
4029 GREP="$ac_cv_path_GREP"
4030
4031
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4033 $as_echo_n "checking for egrep... " >&6; }
4034 if test "${ac_cv_path_EGREP+set}" = set; then :
4035 $as_echo_n "(cached) " >&6
4036 else
4037 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4038 then ac_cv_path_EGREP="$GREP -E"
4039 else
4040 if test -z "$EGREP"; then
4041 ac_path_EGREP_found=false
4042 # Loop through the user's path and test for each of PROGNAME-LIST
4043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4044 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4045 do
4046 IFS=$as_save_IFS
4047 test -z "$as_dir" && as_dir=.
4048 for ac_prog in egrep; do
4049 for ac_exec_ext in '' $ac_executable_extensions; do
4050 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4051 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4052 # Check for GNU ac_path_EGREP and select it if it is found.
4053 # Check for GNU $ac_path_EGREP
4054 case `"$ac_path_EGREP" --version 2>&1` in
4055 *GNU*)
4056 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4057 *)
4058 ac_count=0
4059 $as_echo_n 0123456789 >"conftest.in"
4060 while :
4061 do
4062 cat "conftest.in" "conftest.in" >"conftest.tmp"
4063 mv "conftest.tmp" "conftest.in"
4064 cp "conftest.in" "conftest.nl"
4065 $as_echo 'EGREP' >> "conftest.nl"
4066 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4067 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4068 as_fn_arith $ac_count + 1 && ac_count=$as_val
4069 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4070 # Best one so far, save it but keep looking for a better one
4071 ac_cv_path_EGREP="$ac_path_EGREP"
4072 ac_path_EGREP_max=$ac_count
4073 fi
4074 # 10*(2^10) chars as input seems more than enough
4075 test $ac_count -gt 10 && break
4076 done
4077 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4078 esac
4079
4080 $ac_path_EGREP_found && break 3
4081 done
4082 done
4083 done
4084 IFS=$as_save_IFS
4085 if test -z "$ac_cv_path_EGREP"; then
4086 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4087 fi
4088 else
4089 ac_cv_path_EGREP=$EGREP
4090 fi
4091
4092 fi
4093 fi
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4095 $as_echo "$ac_cv_path_EGREP" >&6; }
4096 EGREP="$ac_cv_path_EGREP"
4097
4098
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4100 $as_echo_n "checking for ANSI C header files... " >&6; }
4101 if test "${ac_cv_header_stdc+set}" = set; then :
4102 $as_echo_n "(cached) " >&6
4103 else
4104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105 /* end confdefs.h. */
4106 #include <stdlib.h>
4107 #include <stdarg.h>
4108 #include <string.h>
4109 #include <float.h>
4110
4111 int
4112 main ()
4113 {
4114
4115 ;
4116 return 0;
4117 }
4118 _ACEOF
4119 if ac_fn_c_try_compile "$LINENO"; then :
4120 ac_cv_header_stdc=yes
4121 else
4122 ac_cv_header_stdc=no
4123 fi
4124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4125
4126 if test $ac_cv_header_stdc = yes; then
4127 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129 /* end confdefs.h. */
4130 #include <string.h>
4131
4132 _ACEOF
4133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4134 $EGREP "memchr" >/dev/null 2>&1; then :
4135
4136 else
4137 ac_cv_header_stdc=no
4138 fi
4139 rm -f conftest*
4140
4141 fi
4142
4143 if test $ac_cv_header_stdc = yes; then
4144 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146 /* end confdefs.h. */
4147 #include <stdlib.h>
4148
4149 _ACEOF
4150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4151 $EGREP "free" >/dev/null 2>&1; then :
4152
4153 else
4154 ac_cv_header_stdc=no
4155 fi
4156 rm -f conftest*
4157
4158 fi
4159
4160 if test $ac_cv_header_stdc = yes; then
4161 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4162 if test "$cross_compiling" = yes; then :
4163 :
4164 else
4165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4166 /* end confdefs.h. */
4167 #include <ctype.h>
4168 #include <stdlib.h>
4169 #if ((' ' & 0x0FF) == 0x020)
4170 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4171 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4172 #else
4173 # define ISLOWER(c) \
4174 (('a' <= (c) && (c) <= 'i') \
4175 || ('j' <= (c) && (c) <= 'r') \
4176 || ('s' <= (c) && (c) <= 'z'))
4177 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4178 #endif
4179
4180 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4181 int
4182 main ()
4183 {
4184 int i;
4185 for (i = 0; i < 256; i++)
4186 if (XOR (islower (i), ISLOWER (i))
4187 || toupper (i) != TOUPPER (i))
4188 return 2;
4189 return 0;
4190 }
4191 _ACEOF
4192 if ac_fn_c_try_run "$LINENO"; then :
4193
4194 else
4195 ac_cv_header_stdc=no
4196 fi
4197 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4198 conftest.$ac_objext conftest.beam conftest.$ac_ext
4199 fi
4200
4201 fi
4202 fi
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4204 $as_echo "$ac_cv_header_stdc" >&6; }
4205 if test $ac_cv_header_stdc = yes; then
4206
4207 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4208
4209 fi
4210
4211 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4212 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4213 inttypes.h stdint.h unistd.h
4214 do :
4215 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4216 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4217 "
4218 eval as_val=\$$as_ac_Header
4219 if test "x$as_val" = x""yes; then :
4220 cat >>confdefs.h <<_ACEOF
4221 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4222 _ACEOF
4223
4224 fi
4225
4226 done
4227
4228
4229
4230 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4231 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4232 MINIX=yes
4233 else
4234 MINIX=
4235 fi
4236
4237
4238 if test "$MINIX" = yes; then
4239
4240 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4241
4242
4243 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4244
4245
4246 $as_echo "#define _MINIX 1" >>confdefs.h
4247
4248 fi
4249
4250
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4252 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4253 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4254 $as_echo_n "(cached) " >&6
4255 else
4256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257 /* end confdefs.h. */
4258
4259 # define __EXTENSIONS__ 1
4260 $ac_includes_default
4261 int
4262 main ()
4263 {
4264
4265 ;
4266 return 0;
4267 }
4268 _ACEOF
4269 if ac_fn_c_try_compile "$LINENO"; then :
4270 ac_cv_safe_to_define___extensions__=yes
4271 else
4272 ac_cv_safe_to_define___extensions__=no
4273 fi
4274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4275 fi
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4277 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4278 test $ac_cv_safe_to_define___extensions__ = yes &&
4279 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4280
4281 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4282
4283 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4284
4285 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4286
4287 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4288
4289
4290
4291 for ac_func in secure_getenv
4292 do :
4293 ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
4294 if test "x$ac_cv_func_secure_getenv" = x""yes; then :
4295 cat >>confdefs.h <<_ACEOF
4296 #define HAVE_SECURE_GETENV 1
4297 _ACEOF
4298
4299 fi
4300 done
4301
4302
4303 # Calculate toolexeclibdir
4304 # Also toolexecdir, though it's only used in toolexeclibdir
4305 case ${version_specific_libs} in
4306 yes)
4307 # Need the gcc compiler version to know where to install libraries
4308 # and header files if --enable-version-specific-runtime-libs option
4309 # is selected.
4310 toolexecdir='$(libdir)/gcc/$(target_alias)'
4311 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4312 ;;
4313 no)
4314 if test -n "$with_cross_host" &&
4315 test x"$with_cross_host" != x"no"; then
4316 # Install a library built with a cross compiler in tooldir, not libdir.
4317 toolexecdir='$(exec_prefix)/$(target_alias)'
4318 toolexeclibdir='$(toolexecdir)/lib'
4319 else
4320 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4321 toolexeclibdir='$(libdir)'
4322 fi
4323 multi_os_directory=`$CC -print-multi-os-directory`
4324 case $multi_os_directory in
4325 .) ;; # Avoid trailing /.
4326 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4327 esac
4328 ;;
4329 esac
4330
4331
4332
4333 # Check for programs.
4334
4335
4336 ac_ext=c
4337 ac_cpp='$CPP $CPPFLAGS'
4338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4341 if test -n "$ac_tool_prefix"; then
4342 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4343 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4345 $as_echo_n "checking for $ac_word... " >&6; }
4346 if test "${ac_cv_prog_CC+set}" = set; then :
4347 $as_echo_n "(cached) " >&6
4348 else
4349 if test -n "$CC"; then
4350 ac_cv_prog_CC="$CC" # Let the user override the test.
4351 else
4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353 for as_dir in $PATH
4354 do
4355 IFS=$as_save_IFS
4356 test -z "$as_dir" && as_dir=.
4357 for ac_exec_ext in '' $ac_executable_extensions; do
4358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4359 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4361 break 2
4362 fi
4363 done
4364 done
4365 IFS=$as_save_IFS
4366
4367 fi
4368 fi
4369 CC=$ac_cv_prog_CC
4370 if test -n "$CC"; then
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4372 $as_echo "$CC" >&6; }
4373 else
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4375 $as_echo "no" >&6; }
4376 fi
4377
4378
4379 fi
4380 if test -z "$ac_cv_prog_CC"; then
4381 ac_ct_CC=$CC
4382 # Extract the first word of "gcc", so it can be a program name with args.
4383 set dummy gcc; ac_word=$2
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4385 $as_echo_n "checking for $ac_word... " >&6; }
4386 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4387 $as_echo_n "(cached) " >&6
4388 else
4389 if test -n "$ac_ct_CC"; then
4390 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4391 else
4392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393 for as_dir in $PATH
4394 do
4395 IFS=$as_save_IFS
4396 test -z "$as_dir" && as_dir=.
4397 for ac_exec_ext in '' $ac_executable_extensions; do
4398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4399 ac_cv_prog_ac_ct_CC="gcc"
4400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4401 break 2
4402 fi
4403 done
4404 done
4405 IFS=$as_save_IFS
4406
4407 fi
4408 fi
4409 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4410 if test -n "$ac_ct_CC"; then
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4412 $as_echo "$ac_ct_CC" >&6; }
4413 else
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4415 $as_echo "no" >&6; }
4416 fi
4417
4418 if test "x$ac_ct_CC" = x; then
4419 CC=""
4420 else
4421 case $cross_compiling:$ac_tool_warned in
4422 yes:)
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4425 ac_tool_warned=yes ;;
4426 esac
4427 CC=$ac_ct_CC
4428 fi
4429 else
4430 CC="$ac_cv_prog_CC"
4431 fi
4432
4433 if test -z "$CC"; then
4434 if test -n "$ac_tool_prefix"; then
4435 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4436 set dummy ${ac_tool_prefix}cc; ac_word=$2
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4438 $as_echo_n "checking for $ac_word... " >&6; }
4439 if test "${ac_cv_prog_CC+set}" = set; then :
4440 $as_echo_n "(cached) " >&6
4441 else
4442 if test -n "$CC"; then
4443 ac_cv_prog_CC="$CC" # Let the user override the test.
4444 else
4445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446 for as_dir in $PATH
4447 do
4448 IFS=$as_save_IFS
4449 test -z "$as_dir" && as_dir=.
4450 for ac_exec_ext in '' $ac_executable_extensions; do
4451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4452 ac_cv_prog_CC="${ac_tool_prefix}cc"
4453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4454 break 2
4455 fi
4456 done
4457 done
4458 IFS=$as_save_IFS
4459
4460 fi
4461 fi
4462 CC=$ac_cv_prog_CC
4463 if test -n "$CC"; then
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4465 $as_echo "$CC" >&6; }
4466 else
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4468 $as_echo "no" >&6; }
4469 fi
4470
4471
4472 fi
4473 fi
4474 if test -z "$CC"; then
4475 # Extract the first word of "cc", so it can be a program name with args.
4476 set dummy cc; ac_word=$2
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4478 $as_echo_n "checking for $ac_word... " >&6; }
4479 if test "${ac_cv_prog_CC+set}" = set; then :
4480 $as_echo_n "(cached) " >&6
4481 else
4482 if test -n "$CC"; then
4483 ac_cv_prog_CC="$CC" # Let the user override the test.
4484 else
4485 ac_prog_rejected=no
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 for as_dir in $PATH
4488 do
4489 IFS=$as_save_IFS
4490 test -z "$as_dir" && as_dir=.
4491 for ac_exec_ext in '' $ac_executable_extensions; do
4492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4493 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4494 ac_prog_rejected=yes
4495 continue
4496 fi
4497 ac_cv_prog_CC="cc"
4498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4499 break 2
4500 fi
4501 done
4502 done
4503 IFS=$as_save_IFS
4504
4505 if test $ac_prog_rejected = yes; then
4506 # We found a bogon in the path, so make sure we never use it.
4507 set dummy $ac_cv_prog_CC
4508 shift
4509 if test $# != 0; then
4510 # We chose a different compiler from the bogus one.
4511 # However, it has the same basename, so the bogon will be chosen
4512 # first if we set CC to just the basename; use the full file name.
4513 shift
4514 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4515 fi
4516 fi
4517 fi
4518 fi
4519 CC=$ac_cv_prog_CC
4520 if test -n "$CC"; then
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4522 $as_echo "$CC" >&6; }
4523 else
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4525 $as_echo "no" >&6; }
4526 fi
4527
4528
4529 fi
4530 if test -z "$CC"; then
4531 if test -n "$ac_tool_prefix"; then
4532 for ac_prog in cl.exe
4533 do
4534 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4535 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4537 $as_echo_n "checking for $ac_word... " >&6; }
4538 if test "${ac_cv_prog_CC+set}" = set; then :
4539 $as_echo_n "(cached) " >&6
4540 else
4541 if test -n "$CC"; then
4542 ac_cv_prog_CC="$CC" # Let the user override the test.
4543 else
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 for as_dir in $PATH
4546 do
4547 IFS=$as_save_IFS
4548 test -z "$as_dir" && as_dir=.
4549 for ac_exec_ext in '' $ac_executable_extensions; do
4550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4551 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4553 break 2
4554 fi
4555 done
4556 done
4557 IFS=$as_save_IFS
4558
4559 fi
4560 fi
4561 CC=$ac_cv_prog_CC
4562 if test -n "$CC"; then
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4564 $as_echo "$CC" >&6; }
4565 else
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4567 $as_echo "no" >&6; }
4568 fi
4569
4570
4571 test -n "$CC" && break
4572 done
4573 fi
4574 if test -z "$CC"; then
4575 ac_ct_CC=$CC
4576 for ac_prog in cl.exe
4577 do
4578 # Extract the first word of "$ac_prog", so it can be a program name with args.
4579 set dummy $ac_prog; ac_word=$2
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4581 $as_echo_n "checking for $ac_word... " >&6; }
4582 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4583 $as_echo_n "(cached) " >&6
4584 else
4585 if test -n "$ac_ct_CC"; then
4586 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4587 else
4588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589 for as_dir in $PATH
4590 do
4591 IFS=$as_save_IFS
4592 test -z "$as_dir" && as_dir=.
4593 for ac_exec_ext in '' $ac_executable_extensions; do
4594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4595 ac_cv_prog_ac_ct_CC="$ac_prog"
4596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4597 break 2
4598 fi
4599 done
4600 done
4601 IFS=$as_save_IFS
4602
4603 fi
4604 fi
4605 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4606 if test -n "$ac_ct_CC"; then
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4608 $as_echo "$ac_ct_CC" >&6; }
4609 else
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4611 $as_echo "no" >&6; }
4612 fi
4613
4614
4615 test -n "$ac_ct_CC" && break
4616 done
4617
4618 if test "x$ac_ct_CC" = x; then
4619 CC=""
4620 else
4621 case $cross_compiling:$ac_tool_warned in
4622 yes:)
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4625 ac_tool_warned=yes ;;
4626 esac
4627 CC=$ac_ct_CC
4628 fi
4629 fi
4630
4631 fi
4632
4633
4634 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4636 as_fn_error "no acceptable C compiler found in \$PATH
4637 See \`config.log' for more details." "$LINENO" 5; }
4638
4639 # Provide some information about the compiler.
4640 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4641 set X $ac_compile
4642 ac_compiler=$2
4643 for ac_option in --version -v -V -qversion; do
4644 { { ac_try="$ac_compiler $ac_option >&5"
4645 case "(($ac_try" in
4646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4647 *) ac_try_echo=$ac_try;;
4648 esac
4649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4650 $as_echo "$ac_try_echo"; } >&5
4651 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4652 ac_status=$?
4653 if test -s conftest.err; then
4654 sed '10a\
4655 ... rest of stderr output deleted ...
4656 10q' conftest.err >conftest.er1
4657 cat conftest.er1 >&5
4658 rm -f conftest.er1 conftest.err
4659 fi
4660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4661 test $ac_status = 0; }
4662 done
4663
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4665 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4666 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4667 $as_echo_n "(cached) " >&6
4668 else
4669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4670 /* end confdefs.h. */
4671
4672 int
4673 main ()
4674 {
4675 #ifndef __GNUC__
4676 choke me
4677 #endif
4678
4679 ;
4680 return 0;
4681 }
4682 _ACEOF
4683 if ac_fn_c_try_compile "$LINENO"; then :
4684 ac_compiler_gnu=yes
4685 else
4686 ac_compiler_gnu=no
4687 fi
4688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4689 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4690
4691 fi
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4693 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4694 if test $ac_compiler_gnu = yes; then
4695 GCC=yes
4696 else
4697 GCC=
4698 fi
4699 ac_test_CFLAGS=${CFLAGS+set}
4700 ac_save_CFLAGS=$CFLAGS
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4702 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4703 if test "${ac_cv_prog_cc_g+set}" = set; then :
4704 $as_echo_n "(cached) " >&6
4705 else
4706 ac_save_c_werror_flag=$ac_c_werror_flag
4707 ac_c_werror_flag=yes
4708 ac_cv_prog_cc_g=no
4709 CFLAGS="-g"
4710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4711 /* end confdefs.h. */
4712
4713 int
4714 main ()
4715 {
4716
4717 ;
4718 return 0;
4719 }
4720 _ACEOF
4721 if ac_fn_c_try_compile "$LINENO"; then :
4722 ac_cv_prog_cc_g=yes
4723 else
4724 CFLAGS=""
4725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4726 /* end confdefs.h. */
4727
4728 int
4729 main ()
4730 {
4731
4732 ;
4733 return 0;
4734 }
4735 _ACEOF
4736 if ac_fn_c_try_compile "$LINENO"; then :
4737
4738 else
4739 ac_c_werror_flag=$ac_save_c_werror_flag
4740 CFLAGS="-g"
4741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4742 /* end confdefs.h. */
4743
4744 int
4745 main ()
4746 {
4747
4748 ;
4749 return 0;
4750 }
4751 _ACEOF
4752 if ac_fn_c_try_compile "$LINENO"; then :
4753 ac_cv_prog_cc_g=yes
4754 fi
4755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4756 fi
4757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4758 fi
4759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4760 ac_c_werror_flag=$ac_save_c_werror_flag
4761 fi
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4763 $as_echo "$ac_cv_prog_cc_g" >&6; }
4764 if test "$ac_test_CFLAGS" = set; then
4765 CFLAGS=$ac_save_CFLAGS
4766 elif test $ac_cv_prog_cc_g = yes; then
4767 if test "$GCC" = yes; then
4768 CFLAGS="-g -O2"
4769 else
4770 CFLAGS="-g"
4771 fi
4772 else
4773 if test "$GCC" = yes; then
4774 CFLAGS="-O2"
4775 else
4776 CFLAGS=
4777 fi
4778 fi
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4780 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4781 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4782 $as_echo_n "(cached) " >&6
4783 else
4784 ac_cv_prog_cc_c89=no
4785 ac_save_CC=$CC
4786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4787 /* end confdefs.h. */
4788 #include <stdarg.h>
4789 #include <stdio.h>
4790 #include <sys/types.h>
4791 #include <sys/stat.h>
4792 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4793 struct buf { int x; };
4794 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4795 static char *e (p, i)
4796 char **p;
4797 int i;
4798 {
4799 return p[i];
4800 }
4801 static char *f (char * (*g) (char **, int), char **p, ...)
4802 {
4803 char *s;
4804 va_list v;
4805 va_start (v,p);
4806 s = g (p, va_arg (v,int));
4807 va_end (v);
4808 return s;
4809 }
4810
4811 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4812 function prototypes and stuff, but not '\xHH' hex character constants.
4813 These don't provoke an error unfortunately, instead are silently treated
4814 as 'x'. The following induces an error, until -std is added to get
4815 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4816 array size at least. It's necessary to write '\x00'==0 to get something
4817 that's true only with -std. */
4818 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4819
4820 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4821 inside strings and character constants. */
4822 #define FOO(x) 'x'
4823 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4824
4825 int test (int i, double x);
4826 struct s1 {int (*f) (int a);};
4827 struct s2 {int (*f) (double a);};
4828 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4829 int argc;
4830 char **argv;
4831 int
4832 main ()
4833 {
4834 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4835 ;
4836 return 0;
4837 }
4838 _ACEOF
4839 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4840 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4841 do
4842 CC="$ac_save_CC $ac_arg"
4843 if ac_fn_c_try_compile "$LINENO"; then :
4844 ac_cv_prog_cc_c89=$ac_arg
4845 fi
4846 rm -f core conftest.err conftest.$ac_objext
4847 test "x$ac_cv_prog_cc_c89" != "xno" && break
4848 done
4849 rm -f conftest.$ac_ext
4850 CC=$ac_save_CC
4851
4852 fi
4853 # AC_CACHE_VAL
4854 case "x$ac_cv_prog_cc_c89" in
4855 x)
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4857 $as_echo "none needed" >&6; } ;;
4858 xno)
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4860 $as_echo "unsupported" >&6; } ;;
4861 *)
4862 CC="$CC $ac_cv_prog_cc_c89"
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4864 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4865 esac
4866 if test "x$ac_cv_prog_cc_c89" != xno; then :
4867
4868 fi
4869
4870 ac_ext=c
4871 ac_cpp='$CPP $CPPFLAGS'
4872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4875
4876 ac_ext=cpp
4877 ac_cpp='$CXXCPP $CPPFLAGS'
4878 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4879 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4880 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4881 if test -z "$CXX"; then
4882 if test -n "$CCC"; then
4883 CXX=$CCC
4884 else
4885 if test -n "$ac_tool_prefix"; then
4886 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4887 do
4888 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4889 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4891 $as_echo_n "checking for $ac_word... " >&6; }
4892 if test "${ac_cv_prog_CXX+set}" = set; then :
4893 $as_echo_n "(cached) " >&6
4894 else
4895 if test -n "$CXX"; then
4896 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4897 else
4898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899 for as_dir in $PATH
4900 do
4901 IFS=$as_save_IFS
4902 test -z "$as_dir" && as_dir=.
4903 for ac_exec_ext in '' $ac_executable_extensions; do
4904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4905 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4907 break 2
4908 fi
4909 done
4910 done
4911 IFS=$as_save_IFS
4912
4913 fi
4914 fi
4915 CXX=$ac_cv_prog_CXX
4916 if test -n "$CXX"; then
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4918 $as_echo "$CXX" >&6; }
4919 else
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4921 $as_echo "no" >&6; }
4922 fi
4923
4924
4925 test -n "$CXX" && break
4926 done
4927 fi
4928 if test -z "$CXX"; then
4929 ac_ct_CXX=$CXX
4930 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4931 do
4932 # Extract the first word of "$ac_prog", so it can be a program name with args.
4933 set dummy $ac_prog; ac_word=$2
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4935 $as_echo_n "checking for $ac_word... " >&6; }
4936 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4937 $as_echo_n "(cached) " >&6
4938 else
4939 if test -n "$ac_ct_CXX"; then
4940 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4941 else
4942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4943 for as_dir in $PATH
4944 do
4945 IFS=$as_save_IFS
4946 test -z "$as_dir" && as_dir=.
4947 for ac_exec_ext in '' $ac_executable_extensions; do
4948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4949 ac_cv_prog_ac_ct_CXX="$ac_prog"
4950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4951 break 2
4952 fi
4953 done
4954 done
4955 IFS=$as_save_IFS
4956
4957 fi
4958 fi
4959 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4960 if test -n "$ac_ct_CXX"; then
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4962 $as_echo "$ac_ct_CXX" >&6; }
4963 else
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4965 $as_echo "no" >&6; }
4966 fi
4967
4968
4969 test -n "$ac_ct_CXX" && break
4970 done
4971
4972 if test "x$ac_ct_CXX" = x; then
4973 CXX="g++"
4974 else
4975 case $cross_compiling:$ac_tool_warned in
4976 yes:)
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4978 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4979 ac_tool_warned=yes ;;
4980 esac
4981 CXX=$ac_ct_CXX
4982 fi
4983 fi
4984
4985 fi
4986 fi
4987 # Provide some information about the compiler.
4988 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4989 set X $ac_compile
4990 ac_compiler=$2
4991 for ac_option in --version -v -V -qversion; do
4992 { { ac_try="$ac_compiler $ac_option >&5"
4993 case "(($ac_try" in
4994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4995 *) ac_try_echo=$ac_try;;
4996 esac
4997 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4998 $as_echo "$ac_try_echo"; } >&5
4999 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5000 ac_status=$?
5001 if test -s conftest.err; then
5002 sed '10a\
5003 ... rest of stderr output deleted ...
5004 10q' conftest.err >conftest.er1
5005 cat conftest.er1 >&5
5006 rm -f conftest.er1 conftest.err
5007 fi
5008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5009 test $ac_status = 0; }
5010 done
5011
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5013 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5014 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5015 $as_echo_n "(cached) " >&6
5016 else
5017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5018 /* end confdefs.h. */
5019
5020 int
5021 main ()
5022 {
5023 #ifndef __GNUC__
5024 choke me
5025 #endif
5026
5027 ;
5028 return 0;
5029 }
5030 _ACEOF
5031 if ac_fn_cxx_try_compile "$LINENO"; then :
5032 ac_compiler_gnu=yes
5033 else
5034 ac_compiler_gnu=no
5035 fi
5036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5037 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5038
5039 fi
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5041 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5042 if test $ac_compiler_gnu = yes; then
5043 GXX=yes
5044 else
5045 GXX=
5046 fi
5047 ac_test_CXXFLAGS=${CXXFLAGS+set}
5048 ac_save_CXXFLAGS=$CXXFLAGS
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5050 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5051 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5052 $as_echo_n "(cached) " >&6
5053 else
5054 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5055 ac_cxx_werror_flag=yes
5056 ac_cv_prog_cxx_g=no
5057 CXXFLAGS="-g"
5058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5059 /* end confdefs.h. */
5060
5061 int
5062 main ()
5063 {
5064
5065 ;
5066 return 0;
5067 }
5068 _ACEOF
5069 if ac_fn_cxx_try_compile "$LINENO"; then :
5070 ac_cv_prog_cxx_g=yes
5071 else
5072 CXXFLAGS=""
5073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5074 /* end confdefs.h. */
5075
5076 int
5077 main ()
5078 {
5079
5080 ;
5081 return 0;
5082 }
5083 _ACEOF
5084 if ac_fn_cxx_try_compile "$LINENO"; then :
5085
5086 else
5087 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5088 CXXFLAGS="-g"
5089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5090 /* end confdefs.h. */
5091
5092 int
5093 main ()
5094 {
5095
5096 ;
5097 return 0;
5098 }
5099 _ACEOF
5100 if ac_fn_cxx_try_compile "$LINENO"; then :
5101 ac_cv_prog_cxx_g=yes
5102 fi
5103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5104 fi
5105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5106 fi
5107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5108 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5109 fi
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5111 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5112 if test "$ac_test_CXXFLAGS" = set; then
5113 CXXFLAGS=$ac_save_CXXFLAGS
5114 elif test $ac_cv_prog_cxx_g = yes; then
5115 if test "$GXX" = yes; then
5116 CXXFLAGS="-g -O2"
5117 else
5118 CXXFLAGS="-g"
5119 fi
5120 else
5121 if test "$GXX" = yes; then
5122 CXXFLAGS="-O2"
5123 else
5124 CXXFLAGS=
5125 fi
5126 fi
5127 ac_ext=c
5128 ac_cpp='$CPP $CPPFLAGS'
5129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5132
5133
5134
5135 if test "x$CC" != xcc; then
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5137 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5138 else
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5140 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5141 fi
5142 set dummy $CC; ac_cc=`$as_echo "$2" |
5143 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5144 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5145 $as_echo_n "(cached) " >&6
5146 else
5147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5148 /* end confdefs.h. */
5149
5150 int
5151 main ()
5152 {
5153
5154 ;
5155 return 0;
5156 }
5157 _ACEOF
5158 # Make sure it works both with $CC and with simple cc.
5159 # We do the test twice because some compilers refuse to overwrite an
5160 # existing .o file with -o, though they will create one.
5161 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5162 rm -f conftest2.*
5163 if { { case "(($ac_try" in
5164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5165 *) ac_try_echo=$ac_try;;
5166 esac
5167 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5168 $as_echo "$ac_try_echo"; } >&5
5169 (eval "$ac_try") 2>&5
5170 ac_status=$?
5171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5172 test $ac_status = 0; } &&
5173 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5175 *) ac_try_echo=$ac_try;;
5176 esac
5177 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5178 $as_echo "$ac_try_echo"; } >&5
5179 (eval "$ac_try") 2>&5
5180 ac_status=$?
5181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5182 test $ac_status = 0; };
5183 then
5184 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5185 if test "x$CC" != xcc; then
5186 # Test first that cc exists at all.
5187 if { ac_try='cc -c conftest.$ac_ext >&5'
5188 { { case "(($ac_try" in
5189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5190 *) ac_try_echo=$ac_try;;
5191 esac
5192 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5193 $as_echo "$ac_try_echo"; } >&5
5194 (eval "$ac_try") 2>&5
5195 ac_status=$?
5196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5197 test $ac_status = 0; }; }; then
5198 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5199 rm -f conftest2.*
5200 if { { case "(($ac_try" in
5201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5202 *) ac_try_echo=$ac_try;;
5203 esac
5204 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5205 $as_echo "$ac_try_echo"; } >&5
5206 (eval "$ac_try") 2>&5
5207 ac_status=$?
5208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5209 test $ac_status = 0; } &&
5210 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5212 *) ac_try_echo=$ac_try;;
5213 esac
5214 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5215 $as_echo "$ac_try_echo"; } >&5
5216 (eval "$ac_try") 2>&5
5217 ac_status=$?
5218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5219 test $ac_status = 0; };
5220 then
5221 # cc works too.
5222 :
5223 else
5224 # cc exists but doesn't like -o.
5225 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5226 fi
5227 fi
5228 fi
5229 else
5230 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5231 fi
5232 rm -f core conftest*
5233
5234 fi
5235 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5237 $as_echo "yes" >&6; }
5238 else
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5240 $as_echo "no" >&6; }
5241
5242 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5243
5244 fi
5245
5246 # FIXME: we rely on the cache variable name because
5247 # there is no other way.
5248 set dummy $CC
5249 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5250 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5251 if test "$am_t" != yes; then
5252 # Losing compiler, so override with the script.
5253 # FIXME: It is wrong to rewrite CC.
5254 # But if we don't then we get into trouble of one sort or another.
5255 # A longer-term fix would be to have automake use am__CC in this case,
5256 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5257 CC="$am_aux_dir/compile $CC"
5258 fi
5259
5260
5261
5262
5263
5264 # Newer automakes demand CCAS and CCASFLAGS.
5265 : ${CCAS='$(CC)'}
5266 : ${CCASFLAGS='$(CFLAGS)'}
5267
5268
5269
5270 if test -n "$ac_tool_prefix"; then
5271 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5272 set dummy ${ac_tool_prefix}as; ac_word=$2
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5274 $as_echo_n "checking for $ac_word... " >&6; }
5275 if test "${ac_cv_prog_AS+set}" = set; then :
5276 $as_echo_n "(cached) " >&6
5277 else
5278 if test -n "$AS"; then
5279 ac_cv_prog_AS="$AS" # Let the user override the test.
5280 else
5281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282 for as_dir in $PATH
5283 do
5284 IFS=$as_save_IFS
5285 test -z "$as_dir" && as_dir=.
5286 for ac_exec_ext in '' $ac_executable_extensions; do
5287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5288 ac_cv_prog_AS="${ac_tool_prefix}as"
5289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5290 break 2
5291 fi
5292 done
5293 done
5294 IFS=$as_save_IFS
5295
5296 fi
5297 fi
5298 AS=$ac_cv_prog_AS
5299 if test -n "$AS"; then
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5301 $as_echo "$AS" >&6; }
5302 else
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5304 $as_echo "no" >&6; }
5305 fi
5306
5307
5308 fi
5309 if test -z "$ac_cv_prog_AS"; then
5310 ac_ct_AS=$AS
5311 # Extract the first word of "as", so it can be a program name with args.
5312 set dummy as; ac_word=$2
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5314 $as_echo_n "checking for $ac_word... " >&6; }
5315 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5316 $as_echo_n "(cached) " >&6
5317 else
5318 if test -n "$ac_ct_AS"; then
5319 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5320 else
5321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5322 for as_dir in $PATH
5323 do
5324 IFS=$as_save_IFS
5325 test -z "$as_dir" && as_dir=.
5326 for ac_exec_ext in '' $ac_executable_extensions; do
5327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5328 ac_cv_prog_ac_ct_AS="as"
5329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5330 break 2
5331 fi
5332 done
5333 done
5334 IFS=$as_save_IFS
5335
5336 fi
5337 fi
5338 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5339 if test -n "$ac_ct_AS"; then
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5341 $as_echo "$ac_ct_AS" >&6; }
5342 else
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5344 $as_echo "no" >&6; }
5345 fi
5346
5347 if test "x$ac_ct_AS" = x; then
5348 AS=""
5349 else
5350 case $cross_compiling:$ac_tool_warned in
5351 yes:)
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5354 ac_tool_warned=yes ;;
5355 esac
5356 AS=$ac_ct_AS
5357 fi
5358 else
5359 AS="$ac_cv_prog_AS"
5360 fi
5361
5362 if test -n "$ac_tool_prefix"; then
5363 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5364 set dummy ${ac_tool_prefix}ar; ac_word=$2
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5366 $as_echo_n "checking for $ac_word... " >&6; }
5367 if test "${ac_cv_prog_AR+set}" = set; then :
5368 $as_echo_n "(cached) " >&6
5369 else
5370 if test -n "$AR"; then
5371 ac_cv_prog_AR="$AR" # Let the user override the test.
5372 else
5373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5374 for as_dir in $PATH
5375 do
5376 IFS=$as_save_IFS
5377 test -z "$as_dir" && as_dir=.
5378 for ac_exec_ext in '' $ac_executable_extensions; do
5379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5380 ac_cv_prog_AR="${ac_tool_prefix}ar"
5381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5382 break 2
5383 fi
5384 done
5385 done
5386 IFS=$as_save_IFS
5387
5388 fi
5389 fi
5390 AR=$ac_cv_prog_AR
5391 if test -n "$AR"; then
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5393 $as_echo "$AR" >&6; }
5394 else
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5396 $as_echo "no" >&6; }
5397 fi
5398
5399
5400 fi
5401 if test -z "$ac_cv_prog_AR"; then
5402 ac_ct_AR=$AR
5403 # Extract the first word of "ar", so it can be a program name with args.
5404 set dummy ar; ac_word=$2
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5406 $as_echo_n "checking for $ac_word... " >&6; }
5407 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5408 $as_echo_n "(cached) " >&6
5409 else
5410 if test -n "$ac_ct_AR"; then
5411 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5412 else
5413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5414 for as_dir in $PATH
5415 do
5416 IFS=$as_save_IFS
5417 test -z "$as_dir" && as_dir=.
5418 for ac_exec_ext in '' $ac_executable_extensions; do
5419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5420 ac_cv_prog_ac_ct_AR="ar"
5421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5422 break 2
5423 fi
5424 done
5425 done
5426 IFS=$as_save_IFS
5427
5428 fi
5429 fi
5430 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5431 if test -n "$ac_ct_AR"; then
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5433 $as_echo "$ac_ct_AR" >&6; }
5434 else
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5436 $as_echo "no" >&6; }
5437 fi
5438
5439 if test "x$ac_ct_AR" = x; then
5440 AR=""
5441 else
5442 case $cross_compiling:$ac_tool_warned in
5443 yes:)
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5445 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5446 ac_tool_warned=yes ;;
5447 esac
5448 AR=$ac_ct_AR
5449 fi
5450 else
5451 AR="$ac_cv_prog_AR"
5452 fi
5453
5454 if test -n "$ac_tool_prefix"; then
5455 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5456 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5458 $as_echo_n "checking for $ac_word... " >&6; }
5459 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5460 $as_echo_n "(cached) " >&6
5461 else
5462 if test -n "$RANLIB"; then
5463 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5464 else
5465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5466 for as_dir in $PATH
5467 do
5468 IFS=$as_save_IFS
5469 test -z "$as_dir" && as_dir=.
5470 for ac_exec_ext in '' $ac_executable_extensions; do
5471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5472 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5474 break 2
5475 fi
5476 done
5477 done
5478 IFS=$as_save_IFS
5479
5480 fi
5481 fi
5482 RANLIB=$ac_cv_prog_RANLIB
5483 if test -n "$RANLIB"; then
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5485 $as_echo "$RANLIB" >&6; }
5486 else
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5488 $as_echo "no" >&6; }
5489 fi
5490
5491
5492 fi
5493 if test -z "$ac_cv_prog_RANLIB"; then
5494 ac_ct_RANLIB=$RANLIB
5495 # Extract the first word of "ranlib", so it can be a program name with args.
5496 set dummy ranlib; ac_word=$2
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5498 $as_echo_n "checking for $ac_word... " >&6; }
5499 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5500 $as_echo_n "(cached) " >&6
5501 else
5502 if test -n "$ac_ct_RANLIB"; then
5503 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5504 else
5505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5506 for as_dir in $PATH
5507 do
5508 IFS=$as_save_IFS
5509 test -z "$as_dir" && as_dir=.
5510 for ac_exec_ext in '' $ac_executable_extensions; do
5511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5512 ac_cv_prog_ac_ct_RANLIB="ranlib"
5513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5514 break 2
5515 fi
5516 done
5517 done
5518 IFS=$as_save_IFS
5519
5520 fi
5521 fi
5522 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5523 if test -n "$ac_ct_RANLIB"; then
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5525 $as_echo "$ac_ct_RANLIB" >&6; }
5526 else
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5528 $as_echo "no" >&6; }
5529 fi
5530
5531 if test "x$ac_ct_RANLIB" = x; then
5532 RANLIB=":"
5533 else
5534 case $cross_compiling:$ac_tool_warned in
5535 yes:)
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5537 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5538 ac_tool_warned=yes ;;
5539 esac
5540 RANLIB=$ac_ct_RANLIB
5541 fi
5542 else
5543 RANLIB="$ac_cv_prog_RANLIB"
5544 fi
5545
5546
5547 # Configure libtool
5548 enable_dlopen=yes
5549
5550
5551
5552 case `pwd` in
5553 *\ * | *\ *)
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5555 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5556 esac
5557
5558
5559
5560 macro_version='2.2.7a'
5561 macro_revision='1.3134'
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575 ltmain="$ac_aux_dir/ltmain.sh"
5576
5577 # Backslashify metacharacters that are still active within
5578 # double-quoted strings.
5579 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5580
5581 # Same as above, but do not quote variable references.
5582 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5583
5584 # Sed substitution to delay expansion of an escaped shell variable in a
5585 # double_quote_subst'ed string.
5586 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5587
5588 # Sed substitution to delay expansion of an escaped single quote.
5589 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5590
5591 # Sed substitution to avoid accidental globbing in evaled expressions
5592 no_glob_subst='s/\*/\\\*/g'
5593
5594 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5595 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5596 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5597
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5599 $as_echo_n "checking how to print strings... " >&6; }
5600 # Test print first, because it will be a builtin if present.
5601 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5602 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5603 ECHO='print -r --'
5604 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5605 ECHO='printf %s\n'
5606 else
5607 # Use this function as a fallback that always works.
5608 func_fallback_echo ()
5609 {
5610 eval 'cat <<_LTECHO_EOF
5611 $1
5612 _LTECHO_EOF'
5613 }
5614 ECHO='func_fallback_echo'
5615 fi
5616
5617 # func_echo_all arg...
5618 # Invoke $ECHO with all args, space-separated.
5619 func_echo_all ()
5620 {
5621 $ECHO ""
5622 }
5623
5624 case "$ECHO" in
5625 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5626 $as_echo "printf" >&6; } ;;
5627 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5628 $as_echo "print -r" >&6; } ;;
5629 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5630 $as_echo "cat" >&6; } ;;
5631 esac
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5647 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5648 if test "${ac_cv_path_SED+set}" = set; then :
5649 $as_echo_n "(cached) " >&6
5650 else
5651 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5652 for ac_i in 1 2 3 4 5 6 7; do
5653 ac_script="$ac_script$as_nl$ac_script"
5654 done
5655 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5656 { ac_script=; unset ac_script;}
5657 if test -z "$SED"; then
5658 ac_path_SED_found=false
5659 # Loop through the user's path and test for each of PROGNAME-LIST
5660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5661 for as_dir in $PATH
5662 do
5663 IFS=$as_save_IFS
5664 test -z "$as_dir" && as_dir=.
5665 for ac_prog in sed gsed; do
5666 for ac_exec_ext in '' $ac_executable_extensions; do
5667 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5668 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5669 # Check for GNU ac_path_SED and select it if it is found.
5670 # Check for GNU $ac_path_SED
5671 case `"$ac_path_SED" --version 2>&1` in
5672 *GNU*)
5673 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5674 *)
5675 ac_count=0
5676 $as_echo_n 0123456789 >"conftest.in"
5677 while :
5678 do
5679 cat "conftest.in" "conftest.in" >"conftest.tmp"
5680 mv "conftest.tmp" "conftest.in"
5681 cp "conftest.in" "conftest.nl"
5682 $as_echo '' >> "conftest.nl"
5683 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5684 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5685 as_fn_arith $ac_count + 1 && ac_count=$as_val
5686 if test $ac_count -gt ${ac_path_SED_max-0}; then
5687 # Best one so far, save it but keep looking for a better one
5688 ac_cv_path_SED="$ac_path_SED"
5689 ac_path_SED_max=$ac_count
5690 fi
5691 # 10*(2^10) chars as input seems more than enough
5692 test $ac_count -gt 10 && break
5693 done
5694 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5695 esac
5696
5697 $ac_path_SED_found && break 3
5698 done
5699 done
5700 done
5701 IFS=$as_save_IFS
5702 if test -z "$ac_cv_path_SED"; then
5703 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5704 fi
5705 else
5706 ac_cv_path_SED=$SED
5707 fi
5708
5709 fi
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5711 $as_echo "$ac_cv_path_SED" >&6; }
5712 SED="$ac_cv_path_SED"
5713 rm -f conftest.sed
5714
5715 test -z "$SED" && SED=sed
5716 Xsed="$SED -e 1s/^X//"
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5729 $as_echo_n "checking for fgrep... " >&6; }
5730 if test "${ac_cv_path_FGREP+set}" = set; then :
5731 $as_echo_n "(cached) " >&6
5732 else
5733 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5734 then ac_cv_path_FGREP="$GREP -F"
5735 else
5736 if test -z "$FGREP"; then
5737 ac_path_FGREP_found=false
5738 # Loop through the user's path and test for each of PROGNAME-LIST
5739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5740 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5741 do
5742 IFS=$as_save_IFS
5743 test -z "$as_dir" && as_dir=.
5744 for ac_prog in fgrep; do
5745 for ac_exec_ext in '' $ac_executable_extensions; do
5746 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5747 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5748 # Check for GNU ac_path_FGREP and select it if it is found.
5749 # Check for GNU $ac_path_FGREP
5750 case `"$ac_path_FGREP" --version 2>&1` in
5751 *GNU*)
5752 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5753 *)
5754 ac_count=0
5755 $as_echo_n 0123456789 >"conftest.in"
5756 while :
5757 do
5758 cat "conftest.in" "conftest.in" >"conftest.tmp"
5759 mv "conftest.tmp" "conftest.in"
5760 cp "conftest.in" "conftest.nl"
5761 $as_echo 'FGREP' >> "conftest.nl"
5762 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5763 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5764 as_fn_arith $ac_count + 1 && ac_count=$as_val
5765 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5766 # Best one so far, save it but keep looking for a better one
5767 ac_cv_path_FGREP="$ac_path_FGREP"
5768 ac_path_FGREP_max=$ac_count
5769 fi
5770 # 10*(2^10) chars as input seems more than enough
5771 test $ac_count -gt 10 && break
5772 done
5773 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5774 esac
5775
5776 $ac_path_FGREP_found && break 3
5777 done
5778 done
5779 done
5780 IFS=$as_save_IFS
5781 if test -z "$ac_cv_path_FGREP"; then
5782 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5783 fi
5784 else
5785 ac_cv_path_FGREP=$FGREP
5786 fi
5787
5788 fi
5789 fi
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5791 $as_echo "$ac_cv_path_FGREP" >&6; }
5792 FGREP="$ac_cv_path_FGREP"
5793
5794
5795 test -z "$GREP" && GREP=grep
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815 # Check whether --with-gnu-ld was given.
5816 if test "${with_gnu_ld+set}" = set; then :
5817 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5818 else
5819 with_gnu_ld=no
5820 fi
5821
5822 ac_prog=ld
5823 if test "$GCC" = yes; then
5824 # Check if gcc -print-prog-name=ld gives a path.
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5826 $as_echo_n "checking for ld used by $CC... " >&6; }
5827 case $host in
5828 *-*-mingw*)
5829 # gcc leaves a trailing carriage return which upsets mingw
5830 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5831 *)
5832 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5833 esac
5834 case $ac_prog in
5835 # Accept absolute paths.
5836 [\\/]* | ?:[\\/]*)
5837 re_direlt='/[^/][^/]*/\.\./'
5838 # Canonicalize the pathname of ld
5839 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5840 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5841 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5842 done
5843 test -z "$LD" && LD="$ac_prog"
5844 ;;
5845 "")
5846 # If it fails, then pretend we aren't using GCC.
5847 ac_prog=ld
5848 ;;
5849 *)
5850 # If it is relative, then search for the first ld in PATH.
5851 with_gnu_ld=unknown
5852 ;;
5853 esac
5854 elif test "$with_gnu_ld" = yes; then
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5856 $as_echo_n "checking for GNU ld... " >&6; }
5857 else
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5859 $as_echo_n "checking for non-GNU ld... " >&6; }
5860 fi
5861 if test "${lt_cv_path_LD+set}" = set; then :
5862 $as_echo_n "(cached) " >&6
5863 else
5864 if test -z "$LD"; then
5865 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5866 for ac_dir in $PATH; do
5867 IFS="$lt_save_ifs"
5868 test -z "$ac_dir" && ac_dir=.
5869 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5870 lt_cv_path_LD="$ac_dir/$ac_prog"
5871 # Check to see if the program is GNU ld. I'd rather use --version,
5872 # but apparently some variants of GNU ld only accept -v.
5873 # Break only if it was the GNU/non-GNU ld that we prefer.
5874 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5875 *GNU* | *'with BFD'*)
5876 test "$with_gnu_ld" != no && break
5877 ;;
5878 *)
5879 test "$with_gnu_ld" != yes && break
5880 ;;
5881 esac
5882 fi
5883 done
5884 IFS="$lt_save_ifs"
5885 else
5886 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5887 fi
5888 fi
5889
5890 LD="$lt_cv_path_LD"
5891 if test -n "$LD"; then
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5893 $as_echo "$LD" >&6; }
5894 else
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5896 $as_echo "no" >&6; }
5897 fi
5898 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5900 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5901 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5902 $as_echo_n "(cached) " >&6
5903 else
5904 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5905 case `$LD -v 2>&1 </dev/null` in
5906 *GNU* | *'with BFD'*)
5907 lt_cv_prog_gnu_ld=yes
5908 ;;
5909 *)
5910 lt_cv_prog_gnu_ld=no
5911 ;;
5912 esac
5913 fi
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5915 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5916 with_gnu_ld=$lt_cv_prog_gnu_ld
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5927 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5928 if test "${lt_cv_path_NM+set}" = set; then :
5929 $as_echo_n "(cached) " >&6
5930 else
5931 if test -n "$NM"; then
5932 # Let the user override the test.
5933 lt_cv_path_NM="$NM"
5934 else
5935 lt_nm_to_check="${ac_tool_prefix}nm"
5936 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5937 lt_nm_to_check="$lt_nm_to_check nm"
5938 fi
5939 for lt_tmp_nm in $lt_nm_to_check; do
5940 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5941 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5942 IFS="$lt_save_ifs"
5943 test -z "$ac_dir" && ac_dir=.
5944 tmp_nm="$ac_dir/$lt_tmp_nm"
5945 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5946 # Check to see if the nm accepts a BSD-compat flag.
5947 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5948 # nm: unknown option "B" ignored
5949 # Tru64's nm complains that /dev/null is an invalid object file
5950 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5951 */dev/null* | *'Invalid file or object type'*)
5952 lt_cv_path_NM="$tmp_nm -B"
5953 break
5954 ;;
5955 *)
5956 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5957 */dev/null*)
5958 lt_cv_path_NM="$tmp_nm -p"
5959 break
5960 ;;
5961 *)
5962 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5963 continue # so that we can try to find one that supports BSD flags
5964 ;;
5965 esac
5966 ;;
5967 esac
5968 fi
5969 done
5970 IFS="$lt_save_ifs"
5971 done
5972 : ${lt_cv_path_NM=no}
5973 fi
5974 fi
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5976 $as_echo "$lt_cv_path_NM" >&6; }
5977 if test "$lt_cv_path_NM" != "no"; then
5978 NM="$lt_cv_path_NM"
5979 else
5980 # Didn't find any BSD compatible name lister, look for dumpbin.
5981 if test -n "$DUMPBIN"; then :
5982 # Let the user override the test.
5983 else
5984 if test -n "$ac_tool_prefix"; then
5985 for ac_prog in dumpbin "link -dump"
5986 do
5987 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5988 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5990 $as_echo_n "checking for $ac_word... " >&6; }
5991 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5992 $as_echo_n "(cached) " >&6
5993 else
5994 if test -n "$DUMPBIN"; then
5995 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5996 else
5997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5998 for as_dir in $PATH
5999 do
6000 IFS=$as_save_IFS
6001 test -z "$as_dir" && as_dir=.
6002 for ac_exec_ext in '' $ac_executable_extensions; do
6003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6004 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6006 break 2
6007 fi
6008 done
6009 done
6010 IFS=$as_save_IFS
6011
6012 fi
6013 fi
6014 DUMPBIN=$ac_cv_prog_DUMPBIN
6015 if test -n "$DUMPBIN"; then
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6017 $as_echo "$DUMPBIN" >&6; }
6018 else
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6020 $as_echo "no" >&6; }
6021 fi
6022
6023
6024 test -n "$DUMPBIN" && break
6025 done
6026 fi
6027 if test -z "$DUMPBIN"; then
6028 ac_ct_DUMPBIN=$DUMPBIN
6029 for ac_prog in dumpbin "link -dump"
6030 do
6031 # Extract the first word of "$ac_prog", so it can be a program name with args.
6032 set dummy $ac_prog; ac_word=$2
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6034 $as_echo_n "checking for $ac_word... " >&6; }
6035 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6036 $as_echo_n "(cached) " >&6
6037 else
6038 if test -n "$ac_ct_DUMPBIN"; then
6039 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6040 else
6041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042 for as_dir in $PATH
6043 do
6044 IFS=$as_save_IFS
6045 test -z "$as_dir" && as_dir=.
6046 for ac_exec_ext in '' $ac_executable_extensions; do
6047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6048 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6050 break 2
6051 fi
6052 done
6053 done
6054 IFS=$as_save_IFS
6055
6056 fi
6057 fi
6058 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6059 if test -n "$ac_ct_DUMPBIN"; then
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6061 $as_echo "$ac_ct_DUMPBIN" >&6; }
6062 else
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6064 $as_echo "no" >&6; }
6065 fi
6066
6067
6068 test -n "$ac_ct_DUMPBIN" && break
6069 done
6070
6071 if test "x$ac_ct_DUMPBIN" = x; then
6072 DUMPBIN=":"
6073 else
6074 case $cross_compiling:$ac_tool_warned in
6075 yes:)
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6077 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6078 ac_tool_warned=yes ;;
6079 esac
6080 DUMPBIN=$ac_ct_DUMPBIN
6081 fi
6082 fi
6083
6084 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6085 *COFF*)
6086 DUMPBIN="$DUMPBIN -symbols"
6087 ;;
6088 *)
6089 DUMPBIN=:
6090 ;;
6091 esac
6092 fi
6093
6094 if test "$DUMPBIN" != ":"; then
6095 NM="$DUMPBIN"
6096 fi
6097 fi
6098 test -z "$NM" && NM=nm
6099
6100
6101
6102
6103
6104
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6106 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6107 if test "${lt_cv_nm_interface+set}" = set; then :
6108 $as_echo_n "(cached) " >&6
6109 else
6110 lt_cv_nm_interface="BSD nm"
6111 echo "int some_variable = 0;" > conftest.$ac_ext
6112 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6113 (eval "$ac_compile" 2>conftest.err)
6114 cat conftest.err >&5
6115 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6116 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6117 cat conftest.err >&5
6118 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6119 cat conftest.out >&5
6120 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6121 lt_cv_nm_interface="MS dumpbin"
6122 fi
6123 rm -f conftest*
6124 fi
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6126 $as_echo "$lt_cv_nm_interface" >&6; }
6127
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6129 $as_echo_n "checking whether ln -s works... " >&6; }
6130 LN_S=$as_ln_s
6131 if test "$LN_S" = "ln -s"; then
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6133 $as_echo "yes" >&6; }
6134 else
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6136 $as_echo "no, using $LN_S" >&6; }
6137 fi
6138
6139 # find the maximum length of command line arguments
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6141 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6142 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6143 $as_echo_n "(cached) " >&6
6144 else
6145 i=0
6146 teststring="ABCD"
6147
6148 case $build_os in
6149 msdosdjgpp*)
6150 # On DJGPP, this test can blow up pretty badly due to problems in libc
6151 # (any single argument exceeding 2000 bytes causes a buffer overrun
6152 # during glob expansion). Even if it were fixed, the result of this
6153 # check would be larger than it should be.
6154 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6155 ;;
6156
6157 gnu*)
6158 # Under GNU Hurd, this test is not required because there is
6159 # no limit to the length of command line arguments.
6160 # Libtool will interpret -1 as no limit whatsoever
6161 lt_cv_sys_max_cmd_len=-1;
6162 ;;
6163
6164 cygwin* | mingw* | cegcc*)
6165 # On Win9x/ME, this test blows up -- it succeeds, but takes
6166 # about 5 minutes as the teststring grows exponentially.
6167 # Worse, since 9x/ME are not pre-emptively multitasking,
6168 # you end up with a "frozen" computer, even though with patience
6169 # the test eventually succeeds (with a max line length of 256k).
6170 # Instead, let's just punt: use the minimum linelength reported by
6171 # all of the supported platforms: 8192 (on NT/2K/XP).
6172 lt_cv_sys_max_cmd_len=8192;
6173 ;;
6174
6175 mint*)
6176 # On MiNT this can take a long time and run out of memory.
6177 lt_cv_sys_max_cmd_len=8192;
6178 ;;
6179
6180 amigaos*)
6181 # On AmigaOS with pdksh, this test takes hours, literally.
6182 # So we just punt and use a minimum line length of 8192.
6183 lt_cv_sys_max_cmd_len=8192;
6184 ;;
6185
6186 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6187 # This has been around since 386BSD, at least. Likely further.
6188 if test -x /sbin/sysctl; then
6189 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6190 elif test -x /usr/sbin/sysctl; then
6191 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6192 else
6193 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6194 fi
6195 # And add a safety zone
6196 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6197 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6198 ;;
6199
6200 interix*)
6201 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6202 lt_cv_sys_max_cmd_len=196608
6203 ;;
6204
6205 osf*)
6206 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6207 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6208 # nice to cause kernel panics so lets avoid the loop below.
6209 # First set a reasonable default.
6210 lt_cv_sys_max_cmd_len=16384
6211 #
6212 if test -x /sbin/sysconfig; then
6213 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6214 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6215 esac
6216 fi
6217 ;;
6218 sco3.2v5*)
6219 lt_cv_sys_max_cmd_len=102400
6220 ;;
6221 sysv5* | sco5v6* | sysv4.2uw2*)
6222 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6223 if test -n "$kargmax"; then
6224 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6225 else
6226 lt_cv_sys_max_cmd_len=32768
6227 fi
6228 ;;
6229 *)
6230 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6231 if test -n "$lt_cv_sys_max_cmd_len"; then
6232 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6233 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6234 else
6235 # Make teststring a little bigger before we do anything with it.
6236 # a 1K string should be a reasonable start.
6237 for i in 1 2 3 4 5 6 7 8 ; do
6238 teststring=$teststring$teststring
6239 done
6240 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6241 # If test is not a shell built-in, we'll probably end up computing a
6242 # maximum length that is only half of the actual maximum length, but
6243 # we can't tell.
6244 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6245 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6246 test $i != 17 # 1/2 MB should be enough
6247 do
6248 i=`expr $i + 1`
6249 teststring=$teststring$teststring
6250 done
6251 # Only check the string length outside the loop.
6252 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6253 teststring=
6254 # Add a significant safety factor because C++ compilers can tack on
6255 # massive amounts of additional arguments before passing them to the
6256 # linker. It appears as though 1/2 is a usable value.
6257 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6258 fi
6259 ;;
6260 esac
6261
6262 fi
6263
6264 if test -n $lt_cv_sys_max_cmd_len ; then
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6266 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6267 else
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6269 $as_echo "none" >&6; }
6270 fi
6271 max_cmd_len=$lt_cv_sys_max_cmd_len
6272
6273
6274
6275
6276
6277
6278 : ${CP="cp -f"}
6279 : ${MV="mv -f"}
6280 : ${RM="rm -f"}
6281
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6283 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6284 # Try some XSI features
6285 xsi_shell=no
6286 ( _lt_dummy="a/b/c"
6287 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6288 = c,a/b,, \
6289 && eval 'test $(( 1 + 1 )) -eq 2 \
6290 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6291 && xsi_shell=yes
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6293 $as_echo "$xsi_shell" >&6; }
6294
6295
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6297 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6298 lt_shell_append=no
6299 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6300 >/dev/null 2>&1 \
6301 && lt_shell_append=yes
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6303 $as_echo "$lt_shell_append" >&6; }
6304
6305
6306 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6307 lt_unset=unset
6308 else
6309 lt_unset=false
6310 fi
6311
6312
6313
6314
6315
6316 # test EBCDIC or ASCII
6317 case `echo X|tr X '\101'` in
6318 A) # ASCII based system
6319 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6320 lt_SP2NL='tr \040 \012'
6321 lt_NL2SP='tr \015\012 \040\040'
6322 ;;
6323 *) # EBCDIC based system
6324 lt_SP2NL='tr \100 \n'
6325 lt_NL2SP='tr \r\n \100\100'
6326 ;;
6327 esac
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6338 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6339 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6340 $as_echo_n "(cached) " >&6
6341 else
6342 lt_cv_ld_reload_flag='-r'
6343 fi
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6345 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6346 reload_flag=$lt_cv_ld_reload_flag
6347 case $reload_flag in
6348 "" | " "*) ;;
6349 *) reload_flag=" $reload_flag" ;;
6350 esac
6351 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6352 case $host_os in
6353 darwin*)
6354 if test "$GCC" = yes; then
6355 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6356 else
6357 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6358 fi
6359 ;;
6360 esac
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370 if test -n "$ac_tool_prefix"; then
6371 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6372 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6374 $as_echo_n "checking for $ac_word... " >&6; }
6375 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6376 $as_echo_n "(cached) " >&6
6377 else
6378 if test -n "$OBJDUMP"; then
6379 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6380 else
6381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6382 for as_dir in $PATH
6383 do
6384 IFS=$as_save_IFS
6385 test -z "$as_dir" && as_dir=.
6386 for ac_exec_ext in '' $ac_executable_extensions; do
6387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6388 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6390 break 2
6391 fi
6392 done
6393 done
6394 IFS=$as_save_IFS
6395
6396 fi
6397 fi
6398 OBJDUMP=$ac_cv_prog_OBJDUMP
6399 if test -n "$OBJDUMP"; then
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6401 $as_echo "$OBJDUMP" >&6; }
6402 else
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6404 $as_echo "no" >&6; }
6405 fi
6406
6407
6408 fi
6409 if test -z "$ac_cv_prog_OBJDUMP"; then
6410 ac_ct_OBJDUMP=$OBJDUMP
6411 # Extract the first word of "objdump", so it can be a program name with args.
6412 set dummy objdump; ac_word=$2
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6414 $as_echo_n "checking for $ac_word... " >&6; }
6415 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6416 $as_echo_n "(cached) " >&6
6417 else
6418 if test -n "$ac_ct_OBJDUMP"; then
6419 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6420 else
6421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6422 for as_dir in $PATH
6423 do
6424 IFS=$as_save_IFS
6425 test -z "$as_dir" && as_dir=.
6426 for ac_exec_ext in '' $ac_executable_extensions; do
6427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6428 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6430 break 2
6431 fi
6432 done
6433 done
6434 IFS=$as_save_IFS
6435
6436 fi
6437 fi
6438 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6439 if test -n "$ac_ct_OBJDUMP"; then
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6441 $as_echo "$ac_ct_OBJDUMP" >&6; }
6442 else
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6444 $as_echo "no" >&6; }
6445 fi
6446
6447 if test "x$ac_ct_OBJDUMP" = x; then
6448 OBJDUMP="false"
6449 else
6450 case $cross_compiling:$ac_tool_warned in
6451 yes:)
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6453 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6454 ac_tool_warned=yes ;;
6455 esac
6456 OBJDUMP=$ac_ct_OBJDUMP
6457 fi
6458 else
6459 OBJDUMP="$ac_cv_prog_OBJDUMP"
6460 fi
6461
6462 test -z "$OBJDUMP" && OBJDUMP=objdump
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6473 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6474 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6475 $as_echo_n "(cached) " >&6
6476 else
6477 lt_cv_file_magic_cmd='$MAGIC_CMD'
6478 lt_cv_file_magic_test_file=
6479 lt_cv_deplibs_check_method='unknown'
6480 # Need to set the preceding variable on all platforms that support
6481 # interlibrary dependencies.
6482 # 'none' -- dependencies not supported.
6483 # `unknown' -- same as none, but documents that we really don't know.
6484 # 'pass_all' -- all dependencies passed with no checks.
6485 # 'test_compile' -- check by making test program.
6486 # 'file_magic [[regex]]' -- check by looking for files in library path
6487 # which responds to the $file_magic_cmd with a given extended regex.
6488 # If you have `file' or equivalent on your system and you're not sure
6489 # whether `pass_all' will *always* work, you probably want this one.
6490
6491 case $host_os in
6492 aix[4-9]*)
6493 lt_cv_deplibs_check_method=pass_all
6494 ;;
6495
6496 beos*)
6497 lt_cv_deplibs_check_method=pass_all
6498 ;;
6499
6500 bsdi[45]*)
6501 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6502 lt_cv_file_magic_cmd='/usr/bin/file -L'
6503 lt_cv_file_magic_test_file=/shlib/libc.so
6504 ;;
6505
6506 cygwin*)
6507 # func_win32_libid is a shell function defined in ltmain.sh
6508 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6509 lt_cv_file_magic_cmd='func_win32_libid'
6510 ;;
6511
6512 mingw* | pw32*)
6513 # Base MSYS/MinGW do not provide the 'file' command needed by
6514 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6515 # unless we find 'file', for example because we are cross-compiling.
6516 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6517 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6518 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6519 lt_cv_file_magic_cmd='func_win32_libid'
6520 else
6521 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6522 lt_cv_file_magic_cmd='$OBJDUMP -f'
6523 fi
6524 ;;
6525
6526 cegcc*)
6527 # use the weaker test based on 'objdump'. See mingw*.
6528 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6529 lt_cv_file_magic_cmd='$OBJDUMP -f'
6530 ;;
6531
6532 darwin* | rhapsody*)
6533 lt_cv_deplibs_check_method=pass_all
6534 ;;
6535
6536 freebsd* | dragonfly*)
6537 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6538 case $host_cpu in
6539 i*86 )
6540 # Not sure whether the presence of OpenBSD here was a mistake.
6541 # Let's accept both of them until this is cleared up.
6542 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6543 lt_cv_file_magic_cmd=/usr/bin/file
6544 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6545 ;;
6546 esac
6547 else
6548 lt_cv_deplibs_check_method=pass_all
6549 fi
6550 ;;
6551
6552 gnu*)
6553 lt_cv_deplibs_check_method=pass_all
6554 ;;
6555
6556 haiku*)
6557 lt_cv_deplibs_check_method=pass_all
6558 ;;
6559
6560 hpux10.20* | hpux11*)
6561 lt_cv_file_magic_cmd=/usr/bin/file
6562 case $host_cpu in
6563 ia64*)
6564 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6565 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6566 ;;
6567 hppa*64*)
6568 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]'
6569 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6570 ;;
6571 *)
6572 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6573 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6574 ;;
6575 esac
6576 ;;
6577
6578 interix[3-9]*)
6579 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6580 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6581 ;;
6582
6583 irix5* | irix6* | nonstopux*)
6584 case $LD in
6585 *-32|*"-32 ") libmagic=32-bit;;
6586 *-n32|*"-n32 ") libmagic=N32;;
6587 *-64|*"-64 ") libmagic=64-bit;;
6588 *) libmagic=never-match;;
6589 esac
6590 lt_cv_deplibs_check_method=pass_all
6591 ;;
6592
6593 # This must be Linux ELF.
6594 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6595 lt_cv_deplibs_check_method=pass_all
6596 ;;
6597
6598 netbsd*)
6599 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6600 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6601 else
6602 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6603 fi
6604 ;;
6605
6606 newos6*)
6607 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6608 lt_cv_file_magic_cmd=/usr/bin/file
6609 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6610 ;;
6611
6612 *nto* | *qnx*)
6613 lt_cv_deplibs_check_method=pass_all
6614 ;;
6615
6616 openbsd*)
6617 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6618 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6619 else
6620 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6621 fi
6622 ;;
6623
6624 osf3* | osf4* | osf5*)
6625 lt_cv_deplibs_check_method=pass_all
6626 ;;
6627
6628 rdos*)
6629 lt_cv_deplibs_check_method=pass_all
6630 ;;
6631
6632 solaris*)
6633 lt_cv_deplibs_check_method=pass_all
6634 ;;
6635
6636 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6637 lt_cv_deplibs_check_method=pass_all
6638 ;;
6639
6640 sysv4 | sysv4.3*)
6641 case $host_vendor in
6642 motorola)
6643 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]'
6644 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6645 ;;
6646 ncr)
6647 lt_cv_deplibs_check_method=pass_all
6648 ;;
6649 sequent)
6650 lt_cv_file_magic_cmd='/bin/file'
6651 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6652 ;;
6653 sni)
6654 lt_cv_file_magic_cmd='/bin/file'
6655 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6656 lt_cv_file_magic_test_file=/lib/libc.so
6657 ;;
6658 siemens)
6659 lt_cv_deplibs_check_method=pass_all
6660 ;;
6661 pc)
6662 lt_cv_deplibs_check_method=pass_all
6663 ;;
6664 esac
6665 ;;
6666
6667 tpf*)
6668 lt_cv_deplibs_check_method=pass_all
6669 ;;
6670 esac
6671
6672 fi
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6674 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6675 file_magic_cmd=$lt_cv_file_magic_cmd
6676 deplibs_check_method=$lt_cv_deplibs_check_method
6677 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690 if test -n "$ac_tool_prefix"; then
6691 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6692 set dummy ${ac_tool_prefix}ar; ac_word=$2
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6694 $as_echo_n "checking for $ac_word... " >&6; }
6695 if test "${ac_cv_prog_AR+set}" = set; then :
6696 $as_echo_n "(cached) " >&6
6697 else
6698 if test -n "$AR"; then
6699 ac_cv_prog_AR="$AR" # Let the user override the test.
6700 else
6701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6702 for as_dir in $PATH
6703 do
6704 IFS=$as_save_IFS
6705 test -z "$as_dir" && as_dir=.
6706 for ac_exec_ext in '' $ac_executable_extensions; do
6707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6708 ac_cv_prog_AR="${ac_tool_prefix}ar"
6709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6710 break 2
6711 fi
6712 done
6713 done
6714 IFS=$as_save_IFS
6715
6716 fi
6717 fi
6718 AR=$ac_cv_prog_AR
6719 if test -n "$AR"; then
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6721 $as_echo "$AR" >&6; }
6722 else
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6724 $as_echo "no" >&6; }
6725 fi
6726
6727
6728 fi
6729 if test -z "$ac_cv_prog_AR"; then
6730 ac_ct_AR=$AR
6731 # Extract the first word of "ar", so it can be a program name with args.
6732 set dummy ar; ac_word=$2
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6734 $as_echo_n "checking for $ac_word... " >&6; }
6735 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6736 $as_echo_n "(cached) " >&6
6737 else
6738 if test -n "$ac_ct_AR"; then
6739 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6740 else
6741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6742 for as_dir in $PATH
6743 do
6744 IFS=$as_save_IFS
6745 test -z "$as_dir" && as_dir=.
6746 for ac_exec_ext in '' $ac_executable_extensions; do
6747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6748 ac_cv_prog_ac_ct_AR="ar"
6749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6750 break 2
6751 fi
6752 done
6753 done
6754 IFS=$as_save_IFS
6755
6756 fi
6757 fi
6758 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6759 if test -n "$ac_ct_AR"; then
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6761 $as_echo "$ac_ct_AR" >&6; }
6762 else
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6764 $as_echo "no" >&6; }
6765 fi
6766
6767 if test "x$ac_ct_AR" = x; then
6768 AR="false"
6769 else
6770 case $cross_compiling:$ac_tool_warned in
6771 yes:)
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6774 ac_tool_warned=yes ;;
6775 esac
6776 AR=$ac_ct_AR
6777 fi
6778 else
6779 AR="$ac_cv_prog_AR"
6780 fi
6781
6782 test -z "$AR" && AR=ar
6783 test -z "$AR_FLAGS" && AR_FLAGS=cru
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795 if test -n "$ac_tool_prefix"; then
6796 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6797 set dummy ${ac_tool_prefix}strip; ac_word=$2
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6799 $as_echo_n "checking for $ac_word... " >&6; }
6800 if test "${ac_cv_prog_STRIP+set}" = set; then :
6801 $as_echo_n "(cached) " >&6
6802 else
6803 if test -n "$STRIP"; then
6804 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6805 else
6806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807 for as_dir in $PATH
6808 do
6809 IFS=$as_save_IFS
6810 test -z "$as_dir" && as_dir=.
6811 for ac_exec_ext in '' $ac_executable_extensions; do
6812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6813 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6815 break 2
6816 fi
6817 done
6818 done
6819 IFS=$as_save_IFS
6820
6821 fi
6822 fi
6823 STRIP=$ac_cv_prog_STRIP
6824 if test -n "$STRIP"; then
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6826 $as_echo "$STRIP" >&6; }
6827 else
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6829 $as_echo "no" >&6; }
6830 fi
6831
6832
6833 fi
6834 if test -z "$ac_cv_prog_STRIP"; then
6835 ac_ct_STRIP=$STRIP
6836 # Extract the first word of "strip", so it can be a program name with args.
6837 set dummy strip; ac_word=$2
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6839 $as_echo_n "checking for $ac_word... " >&6; }
6840 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6841 $as_echo_n "(cached) " >&6
6842 else
6843 if test -n "$ac_ct_STRIP"; then
6844 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6845 else
6846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6847 for as_dir in $PATH
6848 do
6849 IFS=$as_save_IFS
6850 test -z "$as_dir" && as_dir=.
6851 for ac_exec_ext in '' $ac_executable_extensions; do
6852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6853 ac_cv_prog_ac_ct_STRIP="strip"
6854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6855 break 2
6856 fi
6857 done
6858 done
6859 IFS=$as_save_IFS
6860
6861 fi
6862 fi
6863 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6864 if test -n "$ac_ct_STRIP"; then
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6866 $as_echo "$ac_ct_STRIP" >&6; }
6867 else
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6869 $as_echo "no" >&6; }
6870 fi
6871
6872 if test "x$ac_ct_STRIP" = x; then
6873 STRIP=":"
6874 else
6875 case $cross_compiling:$ac_tool_warned in
6876 yes:)
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6879 ac_tool_warned=yes ;;
6880 esac
6881 STRIP=$ac_ct_STRIP
6882 fi
6883 else
6884 STRIP="$ac_cv_prog_STRIP"
6885 fi
6886
6887 test -z "$STRIP" && STRIP=:
6888
6889
6890
6891
6892
6893
6894 if test -n "$ac_tool_prefix"; then
6895 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6896 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6898 $as_echo_n "checking for $ac_word... " >&6; }
6899 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6900 $as_echo_n "(cached) " >&6
6901 else
6902 if test -n "$RANLIB"; then
6903 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6904 else
6905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6906 for as_dir in $PATH
6907 do
6908 IFS=$as_save_IFS
6909 test -z "$as_dir" && as_dir=.
6910 for ac_exec_ext in '' $ac_executable_extensions; do
6911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6912 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6914 break 2
6915 fi
6916 done
6917 done
6918 IFS=$as_save_IFS
6919
6920 fi
6921 fi
6922 RANLIB=$ac_cv_prog_RANLIB
6923 if test -n "$RANLIB"; then
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6925 $as_echo "$RANLIB" >&6; }
6926 else
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6928 $as_echo "no" >&6; }
6929 fi
6930
6931
6932 fi
6933 if test -z "$ac_cv_prog_RANLIB"; then
6934 ac_ct_RANLIB=$RANLIB
6935 # Extract the first word of "ranlib", so it can be a program name with args.
6936 set dummy ranlib; ac_word=$2
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6938 $as_echo_n "checking for $ac_word... " >&6; }
6939 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6940 $as_echo_n "(cached) " >&6
6941 else
6942 if test -n "$ac_ct_RANLIB"; then
6943 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6944 else
6945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946 for as_dir in $PATH
6947 do
6948 IFS=$as_save_IFS
6949 test -z "$as_dir" && as_dir=.
6950 for ac_exec_ext in '' $ac_executable_extensions; do
6951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6952 ac_cv_prog_ac_ct_RANLIB="ranlib"
6953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6954 break 2
6955 fi
6956 done
6957 done
6958 IFS=$as_save_IFS
6959
6960 fi
6961 fi
6962 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6963 if test -n "$ac_ct_RANLIB"; then
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6965 $as_echo "$ac_ct_RANLIB" >&6; }
6966 else
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6968 $as_echo "no" >&6; }
6969 fi
6970
6971 if test "x$ac_ct_RANLIB" = x; then
6972 RANLIB=":"
6973 else
6974 case $cross_compiling:$ac_tool_warned in
6975 yes:)
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6977 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6978 ac_tool_warned=yes ;;
6979 esac
6980 RANLIB=$ac_ct_RANLIB
6981 fi
6982 else
6983 RANLIB="$ac_cv_prog_RANLIB"
6984 fi
6985
6986 test -z "$RANLIB" && RANLIB=:
6987
6988
6989
6990
6991
6992
6993 # Determine commands to create old-style static archives.
6994 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6995 old_postinstall_cmds='chmod 644 $oldlib'
6996 old_postuninstall_cmds=
6997
6998 if test -n "$RANLIB"; then
6999 case $host_os in
7000 openbsd*)
7001 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7002 ;;
7003 *)
7004 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7005 ;;
7006 esac
7007 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7008 fi
7009
7010 case $host_os in
7011 darwin*)
7012 lock_old_archive_extraction=yes ;;
7013 *)
7014 lock_old_archive_extraction=no ;;
7015 esac
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055 # If no C compiler was specified, use CC.
7056 LTCC=${LTCC-"$CC"}
7057
7058 # If no C compiler flags were specified, use CFLAGS.
7059 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7060
7061 # Allow CC to be a program name with arguments.
7062 compiler=$CC
7063
7064
7065 # Check for command to grab the raw symbol name followed by C symbol from nm.
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7067 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7068 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7069 $as_echo_n "(cached) " >&6
7070 else
7071
7072 # These are sane defaults that work on at least a few old systems.
7073 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7074
7075 # Character class describing NM global symbol codes.
7076 symcode='[BCDEGRST]'
7077
7078 # Regexp to match symbols that can be accessed directly from C.
7079 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7080
7081 # Define system-specific variables.
7082 case $host_os in
7083 aix*)
7084 symcode='[BCDT]'
7085 ;;
7086 cygwin* | mingw* | pw32* | cegcc*)
7087 symcode='[ABCDGISTW]'
7088 ;;
7089 hpux*)
7090 if test "$host_cpu" = ia64; then
7091 symcode='[ABCDEGRST]'
7092 fi
7093 ;;
7094 irix* | nonstopux*)
7095 symcode='[BCDEGRST]'
7096 ;;
7097 osf*)
7098 symcode='[BCDEGQRST]'
7099 ;;
7100 solaris*)
7101 symcode='[BDRT]'
7102 ;;
7103 sco3.2v5*)
7104 symcode='[DT]'
7105 ;;
7106 sysv4.2uw2*)
7107 symcode='[DT]'
7108 ;;
7109 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7110 symcode='[ABDT]'
7111 ;;
7112 sysv4)
7113 symcode='[DFNSTU]'
7114 ;;
7115 esac
7116
7117 # If we're using GNU nm, then use its standard symbol codes.
7118 case `$NM -V 2>&1` in
7119 *GNU* | *'with BFD'*)
7120 symcode='[ABCDGIRSTW]' ;;
7121 esac
7122
7123 # Transform an extracted symbol line into a proper C declaration.
7124 # Some systems (esp. on ia64) link data and code symbols differently,
7125 # so use this general approach.
7126 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7127
7128 # Transform an extracted symbol line into symbol name and symbol address
7129 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7130 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'"
7131
7132 # Handle CRLF in mingw tool chain
7133 opt_cr=
7134 case $build_os in
7135 mingw*)
7136 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7137 ;;
7138 esac
7139
7140 # Try without a prefix underscore, then with it.
7141 for ac_symprfx in "" "_"; do
7142
7143 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7144 symxfrm="\\1 $ac_symprfx\\2 \\2"
7145
7146 # Write the raw and C identifiers.
7147 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7148 # Fake it for dumpbin and say T for any non-static function
7149 # and D for any global variable.
7150 # Also find C++ and __fastcall symbols from MSVC++,
7151 # which start with @ or ?.
7152 lt_cv_sys_global_symbol_pipe="$AWK '"\
7153 " {last_section=section; section=\$ 3};"\
7154 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7155 " \$ 0!~/External *\|/{next};"\
7156 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7157 " {if(hide[section]) next};"\
7158 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7159 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7160 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7161 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7162 " ' prfx=^$ac_symprfx"
7163 else
7164 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7165 fi
7166
7167 # Check to see that the pipe works correctly.
7168 pipe_works=no
7169
7170 rm -f conftest*
7171 cat > conftest.$ac_ext <<_LT_EOF
7172 #ifdef __cplusplus
7173 extern "C" {
7174 #endif
7175 char nm_test_var;
7176 void nm_test_func(void);
7177 void nm_test_func(void){}
7178 #ifdef __cplusplus
7179 }
7180 #endif
7181 int main(){nm_test_var='a';nm_test_func();return(0);}
7182 _LT_EOF
7183
7184 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7185 (eval $ac_compile) 2>&5
7186 ac_status=$?
7187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7188 test $ac_status = 0; }; then
7189 # Now try to grab the symbols.
7190 nlist=conftest.nm
7191 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7192 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7193 ac_status=$?
7194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7195 test $ac_status = 0; } && test -s "$nlist"; then
7196 # Try sorting and uniquifying the output.
7197 if sort "$nlist" | uniq > "$nlist"T; then
7198 mv -f "$nlist"T "$nlist"
7199 else
7200 rm -f "$nlist"T
7201 fi
7202
7203 # Make sure that we snagged all the symbols we need.
7204 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7205 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7206 cat <<_LT_EOF > conftest.$ac_ext
7207 #ifdef __cplusplus
7208 extern "C" {
7209 #endif
7210
7211 _LT_EOF
7212 # Now generate the symbol file.
7213 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7214
7215 cat <<_LT_EOF >> conftest.$ac_ext
7216
7217 /* The mapping between symbol names and symbols. */
7218 const struct {
7219 const char *name;
7220 void *address;
7221 }
7222 lt__PROGRAM__LTX_preloaded_symbols[] =
7223 {
7224 { "@PROGRAM@", (void *) 0 },
7225 _LT_EOF
7226 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7227 cat <<\_LT_EOF >> conftest.$ac_ext
7228 {0, (void *) 0}
7229 };
7230
7231 /* This works around a problem in FreeBSD linker */
7232 #ifdef FREEBSD_WORKAROUND
7233 static const void *lt_preloaded_setup() {
7234 return lt__PROGRAM__LTX_preloaded_symbols;
7235 }
7236 #endif
7237
7238 #ifdef __cplusplus
7239 }
7240 #endif
7241 _LT_EOF
7242 # Now try linking the two files.
7243 mv conftest.$ac_objext conftstm.$ac_objext
7244 lt_save_LIBS="$LIBS"
7245 lt_save_CFLAGS="$CFLAGS"
7246 LIBS="conftstm.$ac_objext"
7247 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7248 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7249 (eval $ac_link) 2>&5
7250 ac_status=$?
7251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7252 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7253 pipe_works=yes
7254 fi
7255 LIBS="$lt_save_LIBS"
7256 CFLAGS="$lt_save_CFLAGS"
7257 else
7258 echo "cannot find nm_test_func in $nlist" >&5
7259 fi
7260 else
7261 echo "cannot find nm_test_var in $nlist" >&5
7262 fi
7263 else
7264 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7265 fi
7266 else
7267 echo "$progname: failed program was:" >&5
7268 cat conftest.$ac_ext >&5
7269 fi
7270 rm -rf conftest* conftst*
7271
7272 # Do not use the global_symbol_pipe unless it works.
7273 if test "$pipe_works" = yes; then
7274 break
7275 else
7276 lt_cv_sys_global_symbol_pipe=
7277 fi
7278 done
7279
7280 fi
7281
7282 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7283 lt_cv_sys_global_symbol_to_cdecl=
7284 fi
7285 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7287 $as_echo "failed" >&6; }
7288 else
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7290 $as_echo "ok" >&6; }
7291 fi
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314 # Check whether --enable-libtool-lock was given.
7315 if test "${enable_libtool_lock+set}" = set; then :
7316 enableval=$enable_libtool_lock;
7317 fi
7318
7319 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7320
7321 # Some flags need to be propagated to the compiler or linker for good
7322 # libtool support.
7323 case $host in
7324 ia64-*-hpux*)
7325 # Find out which ABI we are using.
7326 echo 'int i;' > conftest.$ac_ext
7327 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7328 (eval $ac_compile) 2>&5
7329 ac_status=$?
7330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7331 test $ac_status = 0; }; then
7332 case `/usr/bin/file conftest.$ac_objext` in
7333 *ELF-32*)
7334 HPUX_IA64_MODE="32"
7335 ;;
7336 *ELF-64*)
7337 HPUX_IA64_MODE="64"
7338 ;;
7339 esac
7340 fi
7341 rm -rf conftest*
7342 ;;
7343 *-*-irix6*)
7344 # Find out which ABI we are using.
7345 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7346 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7347 (eval $ac_compile) 2>&5
7348 ac_status=$?
7349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7350 test $ac_status = 0; }; then
7351 if test "$lt_cv_prog_gnu_ld" = yes; then
7352 case `/usr/bin/file conftest.$ac_objext` in
7353 *32-bit*)
7354 LD="${LD-ld} -melf32bsmip"
7355 ;;
7356 *N32*)
7357 LD="${LD-ld} -melf32bmipn32"
7358 ;;
7359 *64-bit*)
7360 LD="${LD-ld} -melf64bmip"
7361 ;;
7362 esac
7363 else
7364 case `/usr/bin/file conftest.$ac_objext` in
7365 *32-bit*)
7366 LD="${LD-ld} -32"
7367 ;;
7368 *N32*)
7369 LD="${LD-ld} -n32"
7370 ;;
7371 *64-bit*)
7372 LD="${LD-ld} -64"
7373 ;;
7374 esac
7375 fi
7376 fi
7377 rm -rf conftest*
7378 ;;
7379
7380 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7381 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7382 # Find out which ABI we are using.
7383 echo 'int i;' > conftest.$ac_ext
7384 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7385 (eval $ac_compile) 2>&5
7386 ac_status=$?
7387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7388 test $ac_status = 0; }; then
7389 case `/usr/bin/file conftest.o` in
7390 *32-bit*)
7391 case $host in
7392 x86_64-*kfreebsd*-gnu)
7393 LD="${LD-ld} -m elf_i386_fbsd"
7394 ;;
7395 x86_64-*linux*)
7396 case `/usr/bin/file conftest.o` in
7397 *x86-64*)
7398 LD="${LD-ld} -m elf32_x86_64"
7399 ;;
7400 *)
7401 LD="${LD-ld} -m elf_i386"
7402 ;;
7403 esac
7404 ;;
7405 powerpc64le-*linux*)
7406 LD="${LD-ld} -m elf32lppclinux"
7407 ;;
7408 powerpc64-*linux*)
7409 LD="${LD-ld} -m elf32ppclinux"
7410 ;;
7411 s390x-*linux*)
7412 LD="${LD-ld} -m elf_s390"
7413 ;;
7414 sparc64-*linux*)
7415 LD="${LD-ld} -m elf32_sparc"
7416 ;;
7417 esac
7418 ;;
7419 *64-bit*)
7420 case $host in
7421 x86_64-*kfreebsd*-gnu)
7422 LD="${LD-ld} -m elf_x86_64_fbsd"
7423 ;;
7424 x86_64-*linux*)
7425 LD="${LD-ld} -m elf_x86_64"
7426 ;;
7427 powerpcle-*linux*)
7428 LD="${LD-ld} -m elf64lppc"
7429 ;;
7430 powerpc-*linux*)
7431 LD="${LD-ld} -m elf64ppc"
7432 ;;
7433 s390*-*linux*|s390*-*tpf*)
7434 LD="${LD-ld} -m elf64_s390"
7435 ;;
7436 sparc*-*linux*)
7437 LD="${LD-ld} -m elf64_sparc"
7438 ;;
7439 esac
7440 ;;
7441 esac
7442 fi
7443 rm -rf conftest*
7444 ;;
7445
7446 *-*-sco3.2v5*)
7447 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7448 SAVE_CFLAGS="$CFLAGS"
7449 CFLAGS="$CFLAGS -belf"
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7451 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7452 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7453 $as_echo_n "(cached) " >&6
7454 else
7455 ac_ext=c
7456 ac_cpp='$CPP $CPPFLAGS'
7457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7460
7461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7462 /* end confdefs.h. */
7463
7464 int
7465 main ()
7466 {
7467
7468 ;
7469 return 0;
7470 }
7471 _ACEOF
7472 if ac_fn_c_try_link "$LINENO"; then :
7473 lt_cv_cc_needs_belf=yes
7474 else
7475 lt_cv_cc_needs_belf=no
7476 fi
7477 rm -f core conftest.err conftest.$ac_objext \
7478 conftest$ac_exeext conftest.$ac_ext
7479 ac_ext=c
7480 ac_cpp='$CPP $CPPFLAGS'
7481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7484
7485 fi
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7487 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7488 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7489 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7490 CFLAGS="$SAVE_CFLAGS"
7491 fi
7492 ;;
7493 sparc*-*solaris*)
7494 # Find out which ABI we are using.
7495 echo 'int i;' > conftest.$ac_ext
7496 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7497 (eval $ac_compile) 2>&5
7498 ac_status=$?
7499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7500 test $ac_status = 0; }; then
7501 case `/usr/bin/file conftest.o` in
7502 *64-bit*)
7503 case $lt_cv_prog_gnu_ld in
7504 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7505 *)
7506 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7507 LD="${LD-ld} -64"
7508 fi
7509 ;;
7510 esac
7511 ;;
7512 esac
7513 fi
7514 rm -rf conftest*
7515 ;;
7516 esac
7517
7518 need_locks="$enable_libtool_lock"
7519
7520
7521 case $host_os in
7522 rhapsody* | darwin*)
7523 if test -n "$ac_tool_prefix"; then
7524 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7525 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7527 $as_echo_n "checking for $ac_word... " >&6; }
7528 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7529 $as_echo_n "(cached) " >&6
7530 else
7531 if test -n "$DSYMUTIL"; then
7532 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7533 else
7534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7535 for as_dir in $PATH
7536 do
7537 IFS=$as_save_IFS
7538 test -z "$as_dir" && as_dir=.
7539 for ac_exec_ext in '' $ac_executable_extensions; do
7540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7541 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7543 break 2
7544 fi
7545 done
7546 done
7547 IFS=$as_save_IFS
7548
7549 fi
7550 fi
7551 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7552 if test -n "$DSYMUTIL"; then
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7554 $as_echo "$DSYMUTIL" >&6; }
7555 else
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7557 $as_echo "no" >&6; }
7558 fi
7559
7560
7561 fi
7562 if test -z "$ac_cv_prog_DSYMUTIL"; then
7563 ac_ct_DSYMUTIL=$DSYMUTIL
7564 # Extract the first word of "dsymutil", so it can be a program name with args.
7565 set dummy dsymutil; ac_word=$2
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7567 $as_echo_n "checking for $ac_word... " >&6; }
7568 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7569 $as_echo_n "(cached) " >&6
7570 else
7571 if test -n "$ac_ct_DSYMUTIL"; then
7572 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7573 else
7574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7575 for as_dir in $PATH
7576 do
7577 IFS=$as_save_IFS
7578 test -z "$as_dir" && as_dir=.
7579 for ac_exec_ext in '' $ac_executable_extensions; do
7580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7581 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7583 break 2
7584 fi
7585 done
7586 done
7587 IFS=$as_save_IFS
7588
7589 fi
7590 fi
7591 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7592 if test -n "$ac_ct_DSYMUTIL"; then
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7594 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7595 else
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7597 $as_echo "no" >&6; }
7598 fi
7599
7600 if test "x$ac_ct_DSYMUTIL" = x; then
7601 DSYMUTIL=":"
7602 else
7603 case $cross_compiling:$ac_tool_warned in
7604 yes:)
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7606 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7607 ac_tool_warned=yes ;;
7608 esac
7609 DSYMUTIL=$ac_ct_DSYMUTIL
7610 fi
7611 else
7612 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7613 fi
7614
7615 if test -n "$ac_tool_prefix"; then
7616 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7617 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7619 $as_echo_n "checking for $ac_word... " >&6; }
7620 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7621 $as_echo_n "(cached) " >&6
7622 else
7623 if test -n "$NMEDIT"; then
7624 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7625 else
7626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7627 for as_dir in $PATH
7628 do
7629 IFS=$as_save_IFS
7630 test -z "$as_dir" && as_dir=.
7631 for ac_exec_ext in '' $ac_executable_extensions; do
7632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7633 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7635 break 2
7636 fi
7637 done
7638 done
7639 IFS=$as_save_IFS
7640
7641 fi
7642 fi
7643 NMEDIT=$ac_cv_prog_NMEDIT
7644 if test -n "$NMEDIT"; then
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7646 $as_echo "$NMEDIT" >&6; }
7647 else
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7649 $as_echo "no" >&6; }
7650 fi
7651
7652
7653 fi
7654 if test -z "$ac_cv_prog_NMEDIT"; then
7655 ac_ct_NMEDIT=$NMEDIT
7656 # Extract the first word of "nmedit", so it can be a program name with args.
7657 set dummy nmedit; ac_word=$2
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7659 $as_echo_n "checking for $ac_word... " >&6; }
7660 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7661 $as_echo_n "(cached) " >&6
7662 else
7663 if test -n "$ac_ct_NMEDIT"; then
7664 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7665 else
7666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7667 for as_dir in $PATH
7668 do
7669 IFS=$as_save_IFS
7670 test -z "$as_dir" && as_dir=.
7671 for ac_exec_ext in '' $ac_executable_extensions; do
7672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7673 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7675 break 2
7676 fi
7677 done
7678 done
7679 IFS=$as_save_IFS
7680
7681 fi
7682 fi
7683 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7684 if test -n "$ac_ct_NMEDIT"; then
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7686 $as_echo "$ac_ct_NMEDIT" >&6; }
7687 else
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7689 $as_echo "no" >&6; }
7690 fi
7691
7692 if test "x$ac_ct_NMEDIT" = x; then
7693 NMEDIT=":"
7694 else
7695 case $cross_compiling:$ac_tool_warned in
7696 yes:)
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7699 ac_tool_warned=yes ;;
7700 esac
7701 NMEDIT=$ac_ct_NMEDIT
7702 fi
7703 else
7704 NMEDIT="$ac_cv_prog_NMEDIT"
7705 fi
7706
7707 if test -n "$ac_tool_prefix"; then
7708 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7709 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7711 $as_echo_n "checking for $ac_word... " >&6; }
7712 if test "${ac_cv_prog_LIPO+set}" = set; then :
7713 $as_echo_n "(cached) " >&6
7714 else
7715 if test -n "$LIPO"; then
7716 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7717 else
7718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7719 for as_dir in $PATH
7720 do
7721 IFS=$as_save_IFS
7722 test -z "$as_dir" && as_dir=.
7723 for ac_exec_ext in '' $ac_executable_extensions; do
7724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7725 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7727 break 2
7728 fi
7729 done
7730 done
7731 IFS=$as_save_IFS
7732
7733 fi
7734 fi
7735 LIPO=$ac_cv_prog_LIPO
7736 if test -n "$LIPO"; then
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7738 $as_echo "$LIPO" >&6; }
7739 else
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7741 $as_echo "no" >&6; }
7742 fi
7743
7744
7745 fi
7746 if test -z "$ac_cv_prog_LIPO"; then
7747 ac_ct_LIPO=$LIPO
7748 # Extract the first word of "lipo", so it can be a program name with args.
7749 set dummy lipo; ac_word=$2
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7751 $as_echo_n "checking for $ac_word... " >&6; }
7752 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7753 $as_echo_n "(cached) " >&6
7754 else
7755 if test -n "$ac_ct_LIPO"; then
7756 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7757 else
7758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7759 for as_dir in $PATH
7760 do
7761 IFS=$as_save_IFS
7762 test -z "$as_dir" && as_dir=.
7763 for ac_exec_ext in '' $ac_executable_extensions; do
7764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7765 ac_cv_prog_ac_ct_LIPO="lipo"
7766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7767 break 2
7768 fi
7769 done
7770 done
7771 IFS=$as_save_IFS
7772
7773 fi
7774 fi
7775 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7776 if test -n "$ac_ct_LIPO"; then
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7778 $as_echo "$ac_ct_LIPO" >&6; }
7779 else
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7781 $as_echo "no" >&6; }
7782 fi
7783
7784 if test "x$ac_ct_LIPO" = x; then
7785 LIPO=":"
7786 else
7787 case $cross_compiling:$ac_tool_warned in
7788 yes:)
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7790 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7791 ac_tool_warned=yes ;;
7792 esac
7793 LIPO=$ac_ct_LIPO
7794 fi
7795 else
7796 LIPO="$ac_cv_prog_LIPO"
7797 fi
7798
7799 if test -n "$ac_tool_prefix"; then
7800 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7801 set dummy ${ac_tool_prefix}otool; ac_word=$2
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7803 $as_echo_n "checking for $ac_word... " >&6; }
7804 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7805 $as_echo_n "(cached) " >&6
7806 else
7807 if test -n "$OTOOL"; then
7808 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7809 else
7810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7811 for as_dir in $PATH
7812 do
7813 IFS=$as_save_IFS
7814 test -z "$as_dir" && as_dir=.
7815 for ac_exec_ext in '' $ac_executable_extensions; do
7816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7817 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7819 break 2
7820 fi
7821 done
7822 done
7823 IFS=$as_save_IFS
7824
7825 fi
7826 fi
7827 OTOOL=$ac_cv_prog_OTOOL
7828 if test -n "$OTOOL"; then
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7830 $as_echo "$OTOOL" >&6; }
7831 else
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7833 $as_echo "no" >&6; }
7834 fi
7835
7836
7837 fi
7838 if test -z "$ac_cv_prog_OTOOL"; then
7839 ac_ct_OTOOL=$OTOOL
7840 # Extract the first word of "otool", so it can be a program name with args.
7841 set dummy otool; ac_word=$2
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7843 $as_echo_n "checking for $ac_word... " >&6; }
7844 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7845 $as_echo_n "(cached) " >&6
7846 else
7847 if test -n "$ac_ct_OTOOL"; then
7848 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7849 else
7850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7851 for as_dir in $PATH
7852 do
7853 IFS=$as_save_IFS
7854 test -z "$as_dir" && as_dir=.
7855 for ac_exec_ext in '' $ac_executable_extensions; do
7856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7857 ac_cv_prog_ac_ct_OTOOL="otool"
7858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7859 break 2
7860 fi
7861 done
7862 done
7863 IFS=$as_save_IFS
7864
7865 fi
7866 fi
7867 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7868 if test -n "$ac_ct_OTOOL"; then
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7870 $as_echo "$ac_ct_OTOOL" >&6; }
7871 else
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7873 $as_echo "no" >&6; }
7874 fi
7875
7876 if test "x$ac_ct_OTOOL" = x; then
7877 OTOOL=":"
7878 else
7879 case $cross_compiling:$ac_tool_warned in
7880 yes:)
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7882 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7883 ac_tool_warned=yes ;;
7884 esac
7885 OTOOL=$ac_ct_OTOOL
7886 fi
7887 else
7888 OTOOL="$ac_cv_prog_OTOOL"
7889 fi
7890
7891 if test -n "$ac_tool_prefix"; then
7892 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7893 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7895 $as_echo_n "checking for $ac_word... " >&6; }
7896 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7897 $as_echo_n "(cached) " >&6
7898 else
7899 if test -n "$OTOOL64"; then
7900 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7901 else
7902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7903 for as_dir in $PATH
7904 do
7905 IFS=$as_save_IFS
7906 test -z "$as_dir" && as_dir=.
7907 for ac_exec_ext in '' $ac_executable_extensions; do
7908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7909 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7911 break 2
7912 fi
7913 done
7914 done
7915 IFS=$as_save_IFS
7916
7917 fi
7918 fi
7919 OTOOL64=$ac_cv_prog_OTOOL64
7920 if test -n "$OTOOL64"; then
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7922 $as_echo "$OTOOL64" >&6; }
7923 else
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7925 $as_echo "no" >&6; }
7926 fi
7927
7928
7929 fi
7930 if test -z "$ac_cv_prog_OTOOL64"; then
7931 ac_ct_OTOOL64=$OTOOL64
7932 # Extract the first word of "otool64", so it can be a program name with args.
7933 set dummy otool64; ac_word=$2
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7935 $as_echo_n "checking for $ac_word... " >&6; }
7936 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7937 $as_echo_n "(cached) " >&6
7938 else
7939 if test -n "$ac_ct_OTOOL64"; then
7940 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7941 else
7942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7943 for as_dir in $PATH
7944 do
7945 IFS=$as_save_IFS
7946 test -z "$as_dir" && as_dir=.
7947 for ac_exec_ext in '' $ac_executable_extensions; do
7948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7949 ac_cv_prog_ac_ct_OTOOL64="otool64"
7950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7951 break 2
7952 fi
7953 done
7954 done
7955 IFS=$as_save_IFS
7956
7957 fi
7958 fi
7959 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7960 if test -n "$ac_ct_OTOOL64"; then
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7962 $as_echo "$ac_ct_OTOOL64" >&6; }
7963 else
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7965 $as_echo "no" >&6; }
7966 fi
7967
7968 if test "x$ac_ct_OTOOL64" = x; then
7969 OTOOL64=":"
7970 else
7971 case $cross_compiling:$ac_tool_warned in
7972 yes:)
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7975 ac_tool_warned=yes ;;
7976 esac
7977 OTOOL64=$ac_ct_OTOOL64
7978 fi
7979 else
7980 OTOOL64="$ac_cv_prog_OTOOL64"
7981 fi
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8010 $as_echo_n "checking for -single_module linker flag... " >&6; }
8011 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8012 $as_echo_n "(cached) " >&6
8013 else
8014 lt_cv_apple_cc_single_mod=no
8015 if test -z "${LT_MULTI_MODULE}"; then
8016 # By default we will add the -single_module flag. You can override
8017 # by either setting the environment variable LT_MULTI_MODULE
8018 # non-empty at configure time, or by adding -multi_module to the
8019 # link flags.
8020 rm -rf libconftest.dylib*
8021 echo "int foo(void){return 1;}" > conftest.c
8022 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8023 -dynamiclib -Wl,-single_module conftest.c" >&5
8024 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8025 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8026 _lt_result=$?
8027 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8028 lt_cv_apple_cc_single_mod=yes
8029 else
8030 cat conftest.err >&5
8031 fi
8032 rm -rf libconftest.dylib*
8033 rm -f conftest.*
8034 fi
8035 fi
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8037 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8039 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8040 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8041 $as_echo_n "(cached) " >&6
8042 else
8043 lt_cv_ld_exported_symbols_list=no
8044 save_LDFLAGS=$LDFLAGS
8045 echo "_main" > conftest.sym
8046 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8048 /* end confdefs.h. */
8049
8050 int
8051 main ()
8052 {
8053
8054 ;
8055 return 0;
8056 }
8057 _ACEOF
8058 if ac_fn_c_try_link "$LINENO"; then :
8059 lt_cv_ld_exported_symbols_list=yes
8060 else
8061 lt_cv_ld_exported_symbols_list=no
8062 fi
8063 rm -f core conftest.err conftest.$ac_objext \
8064 conftest$ac_exeext conftest.$ac_ext
8065 LDFLAGS="$save_LDFLAGS"
8066
8067 fi
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8069 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8071 $as_echo_n "checking for -force_load linker flag... " >&6; }
8072 if test "${lt_cv_ld_force_load+set}" = set; then :
8073 $as_echo_n "(cached) " >&6
8074 else
8075 lt_cv_ld_force_load=no
8076 cat > conftest.c << _LT_EOF
8077 int forced_loaded() { return 2;}
8078 _LT_EOF
8079 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8080 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8081 echo "$AR cru libconftest.a conftest.o" >&5
8082 $AR cru libconftest.a conftest.o 2>&5
8083 cat > conftest.c << _LT_EOF
8084 int main() { return 0;}
8085 _LT_EOF
8086 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8087 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8088 _lt_result=$?
8089 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8090 lt_cv_ld_force_load=yes
8091 else
8092 cat conftest.err >&5
8093 fi
8094 rm -f conftest.err libconftest.a conftest conftest.c
8095 rm -rf conftest.dSYM
8096
8097 fi
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8099 $as_echo "$lt_cv_ld_force_load" >&6; }
8100 case $host_os in
8101 rhapsody* | darwin1.[012])
8102 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8103 darwin1.*)
8104 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8105 darwin*) # darwin 5.x on
8106 # if running on 10.5 or later, the deployment target defaults
8107 # to the OS version, if on x86, and 10.4, the deployment
8108 # target defaults to 10.4. Don't you love it?
8109 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8110 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8111 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8112 10.[012][,.]*)
8113 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8114 10.*)
8115 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8116 esac
8117 ;;
8118 esac
8119 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8120 _lt_dar_single_mod='$single_module'
8121 fi
8122 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8123 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8124 else
8125 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8126 fi
8127 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8128 _lt_dsymutil='~$DSYMUTIL $lib || :'
8129 else
8130 _lt_dsymutil=
8131 fi
8132 ;;
8133 esac
8134
8135 for ac_header in dlfcn.h
8136 do :
8137 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8138 "
8139 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8140 cat >>confdefs.h <<_ACEOF
8141 #define HAVE_DLFCN_H 1
8142 _ACEOF
8143
8144 fi
8145
8146 done
8147
8148
8149
8150
8151
8152
8153 # Set options
8154
8155
8156
8157
8158 enable_win32_dll=no
8159
8160
8161 # Check whether --enable-shared was given.
8162 if test "${enable_shared+set}" = set; then :
8163 enableval=$enable_shared; p=${PACKAGE-default}
8164 case $enableval in
8165 yes) enable_shared=yes ;;
8166 no) enable_shared=no ;;
8167 *)
8168 enable_shared=no
8169 # Look at the argument we got. We use all the common list separators.
8170 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8171 for pkg in $enableval; do
8172 IFS="$lt_save_ifs"
8173 if test "X$pkg" = "X$p"; then
8174 enable_shared=yes
8175 fi
8176 done
8177 IFS="$lt_save_ifs"
8178 ;;
8179 esac
8180 else
8181 enable_shared=yes
8182 fi
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192 # Check whether --enable-static was given.
8193 if test "${enable_static+set}" = set; then :
8194 enableval=$enable_static; p=${PACKAGE-default}
8195 case $enableval in
8196 yes) enable_static=yes ;;
8197 no) enable_static=no ;;
8198 *)
8199 enable_static=no
8200 # Look at the argument we got. We use all the common list separators.
8201 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8202 for pkg in $enableval; do
8203 IFS="$lt_save_ifs"
8204 if test "X$pkg" = "X$p"; then
8205 enable_static=yes
8206 fi
8207 done
8208 IFS="$lt_save_ifs"
8209 ;;
8210 esac
8211 else
8212 enable_static=yes
8213 fi
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224 # Check whether --with-pic was given.
8225 if test "${with_pic+set}" = set; then :
8226 withval=$with_pic; pic_mode="$withval"
8227 else
8228 pic_mode=default
8229 fi
8230
8231
8232 test -z "$pic_mode" && pic_mode=default
8233
8234
8235
8236
8237
8238
8239
8240 # Check whether --enable-fast-install was given.
8241 if test "${enable_fast_install+set}" = set; then :
8242 enableval=$enable_fast_install; p=${PACKAGE-default}
8243 case $enableval in
8244 yes) enable_fast_install=yes ;;
8245 no) enable_fast_install=no ;;
8246 *)
8247 enable_fast_install=no
8248 # Look at the argument we got. We use all the common list separators.
8249 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8250 for pkg in $enableval; do
8251 IFS="$lt_save_ifs"
8252 if test "X$pkg" = "X$p"; then
8253 enable_fast_install=yes
8254 fi
8255 done
8256 IFS="$lt_save_ifs"
8257 ;;
8258 esac
8259 else
8260 enable_fast_install=yes
8261 fi
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273 # This can be used to rebuild libtool when needed
8274 LIBTOOL_DEPS="$ltmain"
8275
8276 # Always use our own libtool.
8277 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304 test -z "$LN_S" && LN_S="ln -s"
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319 if test -n "${ZSH_VERSION+set}" ; then
8320 setopt NO_GLOB_SUBST
8321 fi
8322
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8324 $as_echo_n "checking for objdir... " >&6; }
8325 if test "${lt_cv_objdir+set}" = set; then :
8326 $as_echo_n "(cached) " >&6
8327 else
8328 rm -f .libs 2>/dev/null
8329 mkdir .libs 2>/dev/null
8330 if test -d .libs; then
8331 lt_cv_objdir=.libs
8332 else
8333 # MS-DOS does not allow filenames that begin with a dot.
8334 lt_cv_objdir=_libs
8335 fi
8336 rmdir .libs 2>/dev/null
8337 fi
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8339 $as_echo "$lt_cv_objdir" >&6; }
8340 objdir=$lt_cv_objdir
8341
8342
8343
8344
8345
8346 cat >>confdefs.h <<_ACEOF
8347 #define LT_OBJDIR "$lt_cv_objdir/"
8348 _ACEOF
8349
8350
8351
8352
8353 case $host_os in
8354 aix3*)
8355 # AIX sometimes has problems with the GCC collect2 program. For some
8356 # reason, if we set the COLLECT_NAMES environment variable, the problems
8357 # vanish in a puff of smoke.
8358 if test "X${COLLECT_NAMES+set}" != Xset; then
8359 COLLECT_NAMES=
8360 export COLLECT_NAMES
8361 fi
8362 ;;
8363 esac
8364
8365 # Global variables:
8366 ofile=libtool
8367 can_build_shared=yes
8368
8369 # All known linkers require a `.a' archive for static linking (except MSVC,
8370 # which needs '.lib').
8371 libext=a
8372
8373 with_gnu_ld="$lt_cv_prog_gnu_ld"
8374
8375 old_CC="$CC"
8376 old_CFLAGS="$CFLAGS"
8377
8378 # Set sane defaults for various variables
8379 test -z "$CC" && CC=cc
8380 test -z "$LTCC" && LTCC=$CC
8381 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8382 test -z "$LD" && LD=ld
8383 test -z "$ac_objext" && ac_objext=o
8384
8385 for cc_temp in $compiler""; do
8386 case $cc_temp in
8387 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8388 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8389 \-*) ;;
8390 *) break;;
8391 esac
8392 done
8393 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8394
8395
8396 # Only perform the check for file, if the check method requires it
8397 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8398 case $deplibs_check_method in
8399 file_magic*)
8400 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8402 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8403 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8404 $as_echo_n "(cached) " >&6
8405 else
8406 case $MAGIC_CMD in
8407 [\\/*] | ?:[\\/]*)
8408 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8409 ;;
8410 *)
8411 lt_save_MAGIC_CMD="$MAGIC_CMD"
8412 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8413 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8414 for ac_dir in $ac_dummy; do
8415 IFS="$lt_save_ifs"
8416 test -z "$ac_dir" && ac_dir=.
8417 if test -f $ac_dir/${ac_tool_prefix}file; then
8418 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8419 if test -n "$file_magic_test_file"; then
8420 case $deplibs_check_method in
8421 "file_magic "*)
8422 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8423 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8424 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8425 $EGREP "$file_magic_regex" > /dev/null; then
8426 :
8427 else
8428 cat <<_LT_EOF 1>&2
8429
8430 *** Warning: the command libtool uses to detect shared libraries,
8431 *** $file_magic_cmd, produces output that libtool cannot recognize.
8432 *** The result is that libtool may fail to recognize shared libraries
8433 *** as such. This will affect the creation of libtool libraries that
8434 *** depend on shared libraries, but programs linked with such libtool
8435 *** libraries will work regardless of this problem. Nevertheless, you
8436 *** may want to report the problem to your system manager and/or to
8437 *** bug-libtool@gnu.org
8438
8439 _LT_EOF
8440 fi ;;
8441 esac
8442 fi
8443 break
8444 fi
8445 done
8446 IFS="$lt_save_ifs"
8447 MAGIC_CMD="$lt_save_MAGIC_CMD"
8448 ;;
8449 esac
8450 fi
8451
8452 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8453 if test -n "$MAGIC_CMD"; then
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8455 $as_echo "$MAGIC_CMD" >&6; }
8456 else
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8458 $as_echo "no" >&6; }
8459 fi
8460
8461
8462
8463
8464
8465 if test -z "$lt_cv_path_MAGIC_CMD"; then
8466 if test -n "$ac_tool_prefix"; then
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8468 $as_echo_n "checking for file... " >&6; }
8469 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8470 $as_echo_n "(cached) " >&6
8471 else
8472 case $MAGIC_CMD in
8473 [\\/*] | ?:[\\/]*)
8474 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8475 ;;
8476 *)
8477 lt_save_MAGIC_CMD="$MAGIC_CMD"
8478 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8479 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8480 for ac_dir in $ac_dummy; do
8481 IFS="$lt_save_ifs"
8482 test -z "$ac_dir" && ac_dir=.
8483 if test -f $ac_dir/file; then
8484 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8485 if test -n "$file_magic_test_file"; then
8486 case $deplibs_check_method in
8487 "file_magic "*)
8488 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8489 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8490 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8491 $EGREP "$file_magic_regex" > /dev/null; then
8492 :
8493 else
8494 cat <<_LT_EOF 1>&2
8495
8496 *** Warning: the command libtool uses to detect shared libraries,
8497 *** $file_magic_cmd, produces output that libtool cannot recognize.
8498 *** The result is that libtool may fail to recognize shared libraries
8499 *** as such. This will affect the creation of libtool libraries that
8500 *** depend on shared libraries, but programs linked with such libtool
8501 *** libraries will work regardless of this problem. Nevertheless, you
8502 *** may want to report the problem to your system manager and/or to
8503 *** bug-libtool@gnu.org
8504
8505 _LT_EOF
8506 fi ;;
8507 esac
8508 fi
8509 break
8510 fi
8511 done
8512 IFS="$lt_save_ifs"
8513 MAGIC_CMD="$lt_save_MAGIC_CMD"
8514 ;;
8515 esac
8516 fi
8517
8518 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8519 if test -n "$MAGIC_CMD"; then
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8521 $as_echo "$MAGIC_CMD" >&6; }
8522 else
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8524 $as_echo "no" >&6; }
8525 fi
8526
8527
8528 else
8529 MAGIC_CMD=:
8530 fi
8531 fi
8532
8533 fi
8534 ;;
8535 esac
8536
8537 # Use C for the default configuration in the libtool script
8538
8539 lt_save_CC="$CC"
8540 ac_ext=c
8541 ac_cpp='$CPP $CPPFLAGS'
8542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8545
8546
8547 # Source file extension for C test sources.
8548 ac_ext=c
8549
8550 # Object file extension for compiled C test sources.
8551 objext=o
8552 objext=$objext
8553
8554 # Code to be used in simple compile tests
8555 lt_simple_compile_test_code="int some_variable = 0;"
8556
8557 # Code to be used in simple link tests
8558 lt_simple_link_test_code='int main(){return(0);}'
8559
8560
8561
8562
8563
8564
8565
8566 # If no C compiler was specified, use CC.
8567 LTCC=${LTCC-"$CC"}
8568
8569 # If no C compiler flags were specified, use CFLAGS.
8570 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8571
8572 # Allow CC to be a program name with arguments.
8573 compiler=$CC
8574
8575 # Save the default compiler, since it gets overwritten when the other
8576 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8577 compiler_DEFAULT=$CC
8578
8579 # save warnings/boilerplate of simple test code
8580 ac_outfile=conftest.$ac_objext
8581 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8582 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8583 _lt_compiler_boilerplate=`cat conftest.err`
8584 $RM conftest*
8585
8586 ac_outfile=conftest.$ac_objext
8587 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8588 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8589 _lt_linker_boilerplate=`cat conftest.err`
8590 $RM -r conftest*
8591
8592
8593 ## CAVEAT EMPTOR:
8594 ## There is no encapsulation within the following macros, do not change
8595 ## the running order or otherwise move them around unless you know exactly
8596 ## what you are doing...
8597 if test -n "$compiler"; then
8598
8599 lt_prog_compiler_no_builtin_flag=
8600
8601 if test "$GCC" = yes; then
8602 case $cc_basename in
8603 nvcc*)
8604 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8605 *)
8606 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8607 esac
8608
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8610 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8611 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8612 $as_echo_n "(cached) " >&6
8613 else
8614 lt_cv_prog_compiler_rtti_exceptions=no
8615 ac_outfile=conftest.$ac_objext
8616 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8617 lt_compiler_flag="-fno-rtti -fno-exceptions"
8618 # Insert the option either (1) after the last *FLAGS variable, or
8619 # (2) before a word containing "conftest.", or (3) at the end.
8620 # Note that $ac_compile itself does not contain backslashes and begins
8621 # with a dollar sign (not a hyphen), so the echo should work correctly.
8622 # The option is referenced via a variable to avoid confusing sed.
8623 lt_compile=`echo "$ac_compile" | $SED \
8624 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8625 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8626 -e 's:$: $lt_compiler_flag:'`
8627 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8628 (eval "$lt_compile" 2>conftest.err)
8629 ac_status=$?
8630 cat conftest.err >&5
8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632 if (exit $ac_status) && test -s "$ac_outfile"; then
8633 # The compiler can only warn and ignore the option if not recognized
8634 # So say no if there are warnings other than the usual output.
8635 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8636 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8637 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8638 lt_cv_prog_compiler_rtti_exceptions=yes
8639 fi
8640 fi
8641 $RM conftest*
8642
8643 fi
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8645 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8646
8647 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8648 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8649 else
8650 :
8651 fi
8652
8653 fi
8654
8655
8656
8657
8658
8659
8660 lt_prog_compiler_wl=
8661 lt_prog_compiler_pic=
8662 lt_prog_compiler_static=
8663
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8665 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8666
8667 if test "$GCC" = yes; then
8668 lt_prog_compiler_wl='-Wl,'
8669 lt_prog_compiler_static='-static'
8670
8671 case $host_os in
8672 aix*)
8673 # All AIX code is PIC.
8674 if test "$host_cpu" = ia64; then
8675 # AIX 5 now supports IA64 processor
8676 lt_prog_compiler_static='-Bstatic'
8677 fi
8678 lt_prog_compiler_pic='-fPIC'
8679 ;;
8680
8681 amigaos*)
8682 case $host_cpu in
8683 powerpc)
8684 # see comment about AmigaOS4 .so support
8685 lt_prog_compiler_pic='-fPIC'
8686 ;;
8687 m68k)
8688 # FIXME: we need at least 68020 code to build shared libraries, but
8689 # adding the `-m68020' flag to GCC prevents building anything better,
8690 # like `-m68040'.
8691 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8692 ;;
8693 esac
8694 ;;
8695
8696 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8697 # PIC is the default for these OSes.
8698 ;;
8699
8700 mingw* | cygwin* | pw32* | os2* | cegcc*)
8701 # This hack is so that the source file can tell whether it is being
8702 # built for inclusion in a dll (and should export symbols for example).
8703 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8704 # (--disable-auto-import) libraries
8705 lt_prog_compiler_pic='-DDLL_EXPORT'
8706 ;;
8707
8708 darwin* | rhapsody*)
8709 # PIC is the default on this platform
8710 # Common symbols not allowed in MH_DYLIB files
8711 lt_prog_compiler_pic='-fno-common'
8712 ;;
8713
8714 haiku*)
8715 # PIC is the default for Haiku.
8716 # The "-static" flag exists, but is broken.
8717 lt_prog_compiler_static=
8718 ;;
8719
8720 hpux*)
8721 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8722 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8723 # sets the default TLS model and affects inlining.
8724 case $host_cpu in
8725 hppa*64*)
8726 # +Z the default
8727 ;;
8728 *)
8729 lt_prog_compiler_pic='-fPIC'
8730 ;;
8731 esac
8732 ;;
8733
8734 interix[3-9]*)
8735 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8736 # Instead, we relocate shared libraries at runtime.
8737 ;;
8738
8739 msdosdjgpp*)
8740 # Just because we use GCC doesn't mean we suddenly get shared libraries
8741 # on systems that don't support them.
8742 lt_prog_compiler_can_build_shared=no
8743 enable_shared=no
8744 ;;
8745
8746 *nto* | *qnx*)
8747 # QNX uses GNU C++, but need to define -shared option too, otherwise
8748 # it will coredump.
8749 lt_prog_compiler_pic='-fPIC -shared'
8750 ;;
8751
8752 sysv4*MP*)
8753 if test -d /usr/nec; then
8754 lt_prog_compiler_pic=-Kconform_pic
8755 fi
8756 ;;
8757
8758 *)
8759 lt_prog_compiler_pic='-fPIC'
8760 ;;
8761 esac
8762
8763 case $cc_basename in
8764 nvcc*) # Cuda Compiler Driver 2.2
8765 lt_prog_compiler_wl='-Xlinker '
8766 lt_prog_compiler_pic='-Xcompiler -fPIC'
8767 ;;
8768 esac
8769 else
8770 # PORTME Check for flag to pass linker flags through the system compiler.
8771 case $host_os in
8772 aix*)
8773 lt_prog_compiler_wl='-Wl,'
8774 if test "$host_cpu" = ia64; then
8775 # AIX 5 now supports IA64 processor
8776 lt_prog_compiler_static='-Bstatic'
8777 else
8778 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8779 fi
8780 ;;
8781
8782 mingw* | cygwin* | pw32* | os2* | cegcc*)
8783 # This hack is so that the source file can tell whether it is being
8784 # built for inclusion in a dll (and should export symbols for example).
8785 lt_prog_compiler_pic='-DDLL_EXPORT'
8786 ;;
8787
8788 hpux9* | hpux10* | hpux11*)
8789 lt_prog_compiler_wl='-Wl,'
8790 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8791 # not for PA HP-UX.
8792 case $host_cpu in
8793 hppa*64*|ia64*)
8794 # +Z the default
8795 ;;
8796 *)
8797 lt_prog_compiler_pic='+Z'
8798 ;;
8799 esac
8800 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8801 lt_prog_compiler_static='${wl}-a ${wl}archive'
8802 ;;
8803
8804 irix5* | irix6* | nonstopux*)
8805 lt_prog_compiler_wl='-Wl,'
8806 # PIC (with -KPIC) is the default.
8807 lt_prog_compiler_static='-non_shared'
8808 ;;
8809
8810 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8811 case $cc_basename in
8812 # old Intel for x86_64 which still supported -KPIC.
8813 ecc*)
8814 lt_prog_compiler_wl='-Wl,'
8815 lt_prog_compiler_pic='-KPIC'
8816 lt_prog_compiler_static='-static'
8817 ;;
8818 # icc used to be incompatible with GCC.
8819 # ICC 10 doesn't accept -KPIC any more.
8820 icc* | ifort*)
8821 lt_prog_compiler_wl='-Wl,'
8822 lt_prog_compiler_pic='-fPIC'
8823 lt_prog_compiler_static='-static'
8824 ;;
8825 # Lahey Fortran 8.1.
8826 lf95*)
8827 lt_prog_compiler_wl='-Wl,'
8828 lt_prog_compiler_pic='--shared'
8829 lt_prog_compiler_static='--static'
8830 ;;
8831 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8832 # Portland Group compilers (*not* the Pentium gcc compiler,
8833 # which looks to be a dead project)
8834 lt_prog_compiler_wl='-Wl,'
8835 lt_prog_compiler_pic='-fpic'
8836 lt_prog_compiler_static='-Bstatic'
8837 ;;
8838 ccc*)
8839 lt_prog_compiler_wl='-Wl,'
8840 # All Alpha code is PIC.
8841 lt_prog_compiler_static='-non_shared'
8842 ;;
8843 xl* | bgxl* | bgf* | mpixl*)
8844 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8845 lt_prog_compiler_wl='-Wl,'
8846 lt_prog_compiler_pic='-qpic'
8847 lt_prog_compiler_static='-qstaticlink'
8848 ;;
8849 *)
8850 case `$CC -V 2>&1 | sed 5q` in
8851 *Sun\ F* | *Sun*Fortran*)
8852 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8853 lt_prog_compiler_pic='-KPIC'
8854 lt_prog_compiler_static='-Bstatic'
8855 lt_prog_compiler_wl=''
8856 ;;
8857 *Sun\ C*)
8858 # Sun C 5.9
8859 lt_prog_compiler_pic='-KPIC'
8860 lt_prog_compiler_static='-Bstatic'
8861 lt_prog_compiler_wl='-Wl,'
8862 ;;
8863 esac
8864 ;;
8865 esac
8866 ;;
8867
8868 newsos6)
8869 lt_prog_compiler_pic='-KPIC'
8870 lt_prog_compiler_static='-Bstatic'
8871 ;;
8872
8873 *nto* | *qnx*)
8874 # QNX uses GNU C++, but need to define -shared option too, otherwise
8875 # it will coredump.
8876 lt_prog_compiler_pic='-fPIC -shared'
8877 ;;
8878
8879 osf3* | osf4* | osf5*)
8880 lt_prog_compiler_wl='-Wl,'
8881 # All OSF/1 code is PIC.
8882 lt_prog_compiler_static='-non_shared'
8883 ;;
8884
8885 rdos*)
8886 lt_prog_compiler_static='-non_shared'
8887 ;;
8888
8889 solaris*)
8890 lt_prog_compiler_pic='-KPIC'
8891 lt_prog_compiler_static='-Bstatic'
8892 case $cc_basename in
8893 f77* | f90* | f95*)
8894 lt_prog_compiler_wl='-Qoption ld ';;
8895 *)
8896 lt_prog_compiler_wl='-Wl,';;
8897 esac
8898 ;;
8899
8900 sunos4*)
8901 lt_prog_compiler_wl='-Qoption ld '
8902 lt_prog_compiler_pic='-PIC'
8903 lt_prog_compiler_static='-Bstatic'
8904 ;;
8905
8906 sysv4 | sysv4.2uw2* | sysv4.3*)
8907 lt_prog_compiler_wl='-Wl,'
8908 lt_prog_compiler_pic='-KPIC'
8909 lt_prog_compiler_static='-Bstatic'
8910 ;;
8911
8912 sysv4*MP*)
8913 if test -d /usr/nec ;then
8914 lt_prog_compiler_pic='-Kconform_pic'
8915 lt_prog_compiler_static='-Bstatic'
8916 fi
8917 ;;
8918
8919 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8920 lt_prog_compiler_wl='-Wl,'
8921 lt_prog_compiler_pic='-KPIC'
8922 lt_prog_compiler_static='-Bstatic'
8923 ;;
8924
8925 unicos*)
8926 lt_prog_compiler_wl='-Wl,'
8927 lt_prog_compiler_can_build_shared=no
8928 ;;
8929
8930 uts4*)
8931 lt_prog_compiler_pic='-pic'
8932 lt_prog_compiler_static='-Bstatic'
8933 ;;
8934
8935 *)
8936 lt_prog_compiler_can_build_shared=no
8937 ;;
8938 esac
8939 fi
8940
8941 case $host_os in
8942 # For platforms which do not support PIC, -DPIC is meaningless:
8943 *djgpp*)
8944 lt_prog_compiler_pic=
8945 ;;
8946 *)
8947 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8948 ;;
8949 esac
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8951 $as_echo "$lt_prog_compiler_pic" >&6; }
8952
8953
8954
8955
8956
8957
8958 #
8959 # Check to make sure the PIC flag actually works.
8960 #
8961 if test -n "$lt_prog_compiler_pic"; then
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8963 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8964 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8965 $as_echo_n "(cached) " >&6
8966 else
8967 lt_cv_prog_compiler_pic_works=no
8968 ac_outfile=conftest.$ac_objext
8969 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8970 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8971 # Insert the option either (1) after the last *FLAGS variable, or
8972 # (2) before a word containing "conftest.", or (3) at the end.
8973 # Note that $ac_compile itself does not contain backslashes and begins
8974 # with a dollar sign (not a hyphen), so the echo should work correctly.
8975 # The option is referenced via a variable to avoid confusing sed.
8976 lt_compile=`echo "$ac_compile" | $SED \
8977 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8978 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8979 -e 's:$: $lt_compiler_flag:'`
8980 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8981 (eval "$lt_compile" 2>conftest.err)
8982 ac_status=$?
8983 cat conftest.err >&5
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 if (exit $ac_status) && test -s "$ac_outfile"; then
8986 # The compiler can only warn and ignore the option if not recognized
8987 # So say no if there are warnings other than the usual output.
8988 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8989 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8990 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8991 lt_cv_prog_compiler_pic_works=yes
8992 fi
8993 fi
8994 $RM conftest*
8995
8996 fi
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8998 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8999
9000 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9001 case $lt_prog_compiler_pic in
9002 "" | " "*) ;;
9003 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9004 esac
9005 else
9006 lt_prog_compiler_pic=
9007 lt_prog_compiler_can_build_shared=no
9008 fi
9009
9010 fi
9011
9012
9013
9014
9015
9016
9017 #
9018 # Check to make sure the static flag actually works.
9019 #
9020 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9022 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9023 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9024 $as_echo_n "(cached) " >&6
9025 else
9026 lt_cv_prog_compiler_static_works=no
9027 save_LDFLAGS="$LDFLAGS"
9028 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9029 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9030 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9031 # The linker can only warn and ignore the option if not recognized
9032 # So say no if there are warnings
9033 if test -s conftest.err; then
9034 # Append any errors to the config.log.
9035 cat conftest.err 1>&5
9036 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9037 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9038 if diff conftest.exp conftest.er2 >/dev/null; then
9039 lt_cv_prog_compiler_static_works=yes
9040 fi
9041 else
9042 lt_cv_prog_compiler_static_works=yes
9043 fi
9044 fi
9045 $RM -r conftest*
9046 LDFLAGS="$save_LDFLAGS"
9047
9048 fi
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9050 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9051
9052 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9053 :
9054 else
9055 lt_prog_compiler_static=
9056 fi
9057
9058
9059
9060
9061
9062
9063
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9065 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9066 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9067 $as_echo_n "(cached) " >&6
9068 else
9069 lt_cv_prog_compiler_c_o=no
9070 $RM -r conftest 2>/dev/null
9071 mkdir conftest
9072 cd conftest
9073 mkdir out
9074 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9075
9076 lt_compiler_flag="-o out/conftest2.$ac_objext"
9077 # Insert the option either (1) after the last *FLAGS variable, or
9078 # (2) before a word containing "conftest.", or (3) at the end.
9079 # Note that $ac_compile itself does not contain backslashes and begins
9080 # with a dollar sign (not a hyphen), so the echo should work correctly.
9081 lt_compile=`echo "$ac_compile" | $SED \
9082 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9083 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9084 -e 's:$: $lt_compiler_flag:'`
9085 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9086 (eval "$lt_compile" 2>out/conftest.err)
9087 ac_status=$?
9088 cat out/conftest.err >&5
9089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9091 then
9092 # The compiler can only warn and ignore the option if not recognized
9093 # So say no if there are warnings
9094 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9095 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9096 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9097 lt_cv_prog_compiler_c_o=yes
9098 fi
9099 fi
9100 chmod u+w . 2>&5
9101 $RM conftest*
9102 # SGI C++ compiler will create directory out/ii_files/ for
9103 # template instantiation
9104 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9105 $RM out/* && rmdir out
9106 cd ..
9107 $RM -r conftest
9108 $RM conftest*
9109
9110 fi
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9112 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9113
9114
9115
9116
9117
9118
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9120 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9121 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9122 $as_echo_n "(cached) " >&6
9123 else
9124 lt_cv_prog_compiler_c_o=no
9125 $RM -r conftest 2>/dev/null
9126 mkdir conftest
9127 cd conftest
9128 mkdir out
9129 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9130
9131 lt_compiler_flag="-o out/conftest2.$ac_objext"
9132 # Insert the option either (1) after the last *FLAGS variable, or
9133 # (2) before a word containing "conftest.", or (3) at the end.
9134 # Note that $ac_compile itself does not contain backslashes and begins
9135 # with a dollar sign (not a hyphen), so the echo should work correctly.
9136 lt_compile=`echo "$ac_compile" | $SED \
9137 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9138 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9139 -e 's:$: $lt_compiler_flag:'`
9140 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9141 (eval "$lt_compile" 2>out/conftest.err)
9142 ac_status=$?
9143 cat out/conftest.err >&5
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9146 then
9147 # The compiler can only warn and ignore the option if not recognized
9148 # So say no if there are warnings
9149 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9150 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9151 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9152 lt_cv_prog_compiler_c_o=yes
9153 fi
9154 fi
9155 chmod u+w . 2>&5
9156 $RM conftest*
9157 # SGI C++ compiler will create directory out/ii_files/ for
9158 # template instantiation
9159 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9160 $RM out/* && rmdir out
9161 cd ..
9162 $RM -r conftest
9163 $RM conftest*
9164
9165 fi
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9167 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9168
9169
9170
9171
9172 hard_links="nottested"
9173 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9174 # do not overwrite the value of need_locks provided by the user
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9176 $as_echo_n "checking if we can lock with hard links... " >&6; }
9177 hard_links=yes
9178 $RM conftest*
9179 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9180 touch conftest.a
9181 ln conftest.a conftest.b 2>&5 || hard_links=no
9182 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9184 $as_echo "$hard_links" >&6; }
9185 if test "$hard_links" = no; then
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9187 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9188 need_locks=warn
9189 fi
9190 else
9191 need_locks=no
9192 fi
9193
9194
9195
9196
9197
9198
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9200 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9201
9202 runpath_var=
9203 allow_undefined_flag=
9204 always_export_symbols=no
9205 archive_cmds=
9206 archive_expsym_cmds=
9207 compiler_needs_object=no
9208 enable_shared_with_static_runtimes=no
9209 export_dynamic_flag_spec=
9210 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9211 hardcode_automatic=no
9212 hardcode_direct=no
9213 hardcode_direct_absolute=no
9214 hardcode_libdir_flag_spec=
9215 hardcode_libdir_flag_spec_ld=
9216 hardcode_libdir_separator=
9217 hardcode_minus_L=no
9218 hardcode_shlibpath_var=unsupported
9219 inherit_rpath=no
9220 link_all_deplibs=unknown
9221 module_cmds=
9222 module_expsym_cmds=
9223 old_archive_from_new_cmds=
9224 old_archive_from_expsyms_cmds=
9225 thread_safe_flag_spec=
9226 whole_archive_flag_spec=
9227 # include_expsyms should be a list of space-separated symbols to be *always*
9228 # included in the symbol list
9229 include_expsyms=
9230 # exclude_expsyms can be an extended regexp of symbols to exclude
9231 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9232 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9233 # as well as any symbol that contains `d'.
9234 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9235 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9236 # platforms (ab)use it in PIC code, but their linkers get confused if
9237 # the symbol is explicitly referenced. Since portable code cannot
9238 # rely on this symbol name, it's probably fine to never include it in
9239 # preloaded symbol tables.
9240 # Exclude shared library initialization/finalization symbols.
9241 extract_expsyms_cmds=
9242
9243 case $host_os in
9244 cygwin* | mingw* | pw32* | cegcc*)
9245 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9246 # When not using gcc, we currently assume that we are using
9247 # Microsoft Visual C++.
9248 if test "$GCC" != yes; then
9249 with_gnu_ld=no
9250 fi
9251 ;;
9252 interix*)
9253 # we just hope/assume this is gcc and not c89 (= MSVC++)
9254 with_gnu_ld=yes
9255 ;;
9256 openbsd*)
9257 with_gnu_ld=no
9258 ;;
9259 esac
9260
9261 ld_shlibs=yes
9262
9263 # On some targets, GNU ld is compatible enough with the native linker
9264 # that we're better off using the native interface for both.
9265 lt_use_gnu_ld_interface=no
9266 if test "$with_gnu_ld" = yes; then
9267 case $host_os in
9268 aix*)
9269 # The AIX port of GNU ld has always aspired to compatibility
9270 # with the native linker. However, as the warning in the GNU ld
9271 # block says, versions before 2.19.5* couldn't really create working
9272 # shared libraries, regardless of the interface used.
9273 case `$LD -v 2>&1` in
9274 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9275 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9276 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9277 *)
9278 lt_use_gnu_ld_interface=yes
9279 ;;
9280 esac
9281 ;;
9282 *)
9283 lt_use_gnu_ld_interface=yes
9284 ;;
9285 esac
9286 fi
9287
9288 if test "$lt_use_gnu_ld_interface" = yes; then
9289 # If archive_cmds runs LD, not CC, wlarc should be empty
9290 wlarc='${wl}'
9291
9292 # Set some defaults for GNU ld with shared library support. These
9293 # are reset later if shared libraries are not supported. Putting them
9294 # here allows them to be overridden if necessary.
9295 runpath_var=LD_RUN_PATH
9296 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9297 export_dynamic_flag_spec='${wl}--export-dynamic'
9298 # ancient GNU ld didn't support --whole-archive et. al.
9299 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9300 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9301 else
9302 whole_archive_flag_spec=
9303 fi
9304 supports_anon_versioning=no
9305 case `$LD -v 2>&1` in
9306 *GNU\ gold*) supports_anon_versioning=yes ;;
9307 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9308 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9309 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9310 *\ 2.11.*) ;; # other 2.11 versions
9311 *) supports_anon_versioning=yes ;;
9312 esac
9313
9314 # See if GNU ld supports shared libraries.
9315 case $host_os in
9316 aix[3-9]*)
9317 # On AIX/PPC, the GNU linker is very broken
9318 if test "$host_cpu" != ia64; then
9319 ld_shlibs=no
9320 cat <<_LT_EOF 1>&2
9321
9322 *** Warning: the GNU linker, at least up to release 2.19, is reported
9323 *** to be unable to reliably create shared libraries on AIX.
9324 *** Therefore, libtool is disabling shared libraries support. If you
9325 *** really care for shared libraries, you may want to install binutils
9326 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9327 *** You will then need to restart the configuration process.
9328
9329 _LT_EOF
9330 fi
9331 ;;
9332
9333 amigaos*)
9334 case $host_cpu in
9335 powerpc)
9336 # see comment about AmigaOS4 .so support
9337 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9338 archive_expsym_cmds=''
9339 ;;
9340 m68k)
9341 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)'
9342 hardcode_libdir_flag_spec='-L$libdir'
9343 hardcode_minus_L=yes
9344 ;;
9345 esac
9346 ;;
9347
9348 beos*)
9349 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9350 allow_undefined_flag=unsupported
9351 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9352 # support --undefined. This deserves some investigation. FIXME
9353 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9354 else
9355 ld_shlibs=no
9356 fi
9357 ;;
9358
9359 cygwin* | mingw* | pw32* | cegcc*)
9360 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9361 # as there is no search path for DLLs.
9362 hardcode_libdir_flag_spec='-L$libdir'
9363 export_dynamic_flag_spec='${wl}--export-all-symbols'
9364 allow_undefined_flag=unsupported
9365 always_export_symbols=no
9366 enable_shared_with_static_runtimes=yes
9367 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9368
9369 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9370 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9371 # If the export-symbols file already is a .def file (1st line
9372 # is EXPORTS), use it as is; otherwise, prepend...
9373 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9374 cp $export_symbols $output_objdir/$soname.def;
9375 else
9376 echo EXPORTS > $output_objdir/$soname.def;
9377 cat $export_symbols >> $output_objdir/$soname.def;
9378 fi~
9379 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9380 else
9381 ld_shlibs=no
9382 fi
9383 ;;
9384
9385 haiku*)
9386 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9387 link_all_deplibs=yes
9388 ;;
9389
9390 interix[3-9]*)
9391 hardcode_direct=no
9392 hardcode_shlibpath_var=no
9393 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9394 export_dynamic_flag_spec='${wl}-E'
9395 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9396 # Instead, shared libraries are loaded at an image base (0x10000000 by
9397 # default) and relocated if they conflict, which is a slow very memory
9398 # consuming and fragmenting process. To avoid this, we pick a random,
9399 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9400 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9401 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9402 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'
9403 ;;
9404
9405 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9406 tmp_diet=no
9407 if test "$host_os" = linux-dietlibc; then
9408 case $cc_basename in
9409 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9410 esac
9411 fi
9412 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9413 && test "$tmp_diet" = no
9414 then
9415 tmp_addflag=
9416 tmp_sharedflag='-shared'
9417 case $cc_basename,$host_cpu in
9418 pgcc*) # Portland Group C compiler
9419 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'
9420 tmp_addflag=' $pic_flag'
9421 ;;
9422 pgf77* | pgf90* | pgf95* | pgfortran*)
9423 # Portland Group f77 and f90 compilers
9424 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'
9425 tmp_addflag=' $pic_flag -Mnomain' ;;
9426 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9427 tmp_addflag=' -i_dynamic' ;;
9428 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9429 tmp_addflag=' -i_dynamic -nofor_main' ;;
9430 ifc* | ifort*) # Intel Fortran compiler
9431 tmp_addflag=' -nofor_main' ;;
9432 lf95*) # Lahey Fortran 8.1
9433 whole_archive_flag_spec=
9434 tmp_sharedflag='--shared' ;;
9435 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9436 tmp_sharedflag='-qmkshrobj'
9437 tmp_addflag= ;;
9438 nvcc*) # Cuda Compiler Driver 2.2
9439 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'
9440 compiler_needs_object=yes
9441 ;;
9442 esac
9443 case `$CC -V 2>&1 | sed 5q` in
9444 *Sun\ C*) # Sun C 5.9
9445 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'
9446 compiler_needs_object=yes
9447 tmp_sharedflag='-G' ;;
9448 *Sun\ F*) # Sun Fortran 8.3
9449 tmp_sharedflag='-G' ;;
9450 esac
9451 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9452
9453 if test "x$supports_anon_versioning" = xyes; then
9454 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9455 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9456 echo "local: *; };" >> $output_objdir/$libname.ver~
9457 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9458 fi
9459
9460 case $cc_basename in
9461 xlf* | bgf* | bgxlf* | mpixlf*)
9462 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9463 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9464 hardcode_libdir_flag_spec=
9465 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9466 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9467 if test "x$supports_anon_versioning" = xyes; then
9468 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9469 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9470 echo "local: *; };" >> $output_objdir/$libname.ver~
9471 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9472 fi
9473 ;;
9474 esac
9475 else
9476 ld_shlibs=no
9477 fi
9478 ;;
9479
9480 netbsd*)
9481 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9482 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9483 wlarc=
9484 else
9485 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9486 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9487 fi
9488 ;;
9489
9490 solaris*)
9491 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9492 ld_shlibs=no
9493 cat <<_LT_EOF 1>&2
9494
9495 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9496 *** create shared libraries on Solaris systems. Therefore, libtool
9497 *** is disabling shared libraries support. We urge you to upgrade GNU
9498 *** binutils to release 2.9.1 or newer. Another option is to modify
9499 *** your PATH or compiler configuration so that the native linker is
9500 *** used, and then restart.
9501
9502 _LT_EOF
9503 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9504 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9505 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9506 else
9507 ld_shlibs=no
9508 fi
9509 ;;
9510
9511 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9512 case `$LD -v 2>&1` in
9513 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9514 ld_shlibs=no
9515 cat <<_LT_EOF 1>&2
9516
9517 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9518 *** reliably create shared libraries on SCO systems. Therefore, libtool
9519 *** is disabling shared libraries support. We urge you to upgrade GNU
9520 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9521 *** your PATH or compiler configuration so that the native linker is
9522 *** used, and then restart.
9523
9524 _LT_EOF
9525 ;;
9526 *)
9527 # For security reasons, it is highly recommended that you always
9528 # use absolute paths for naming shared libraries, and exclude the
9529 # DT_RUNPATH tag from executables and libraries. But doing so
9530 # requires that you compile everything twice, which is a pain.
9531 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9532 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9533 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9534 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9535 else
9536 ld_shlibs=no
9537 fi
9538 ;;
9539 esac
9540 ;;
9541
9542 sunos4*)
9543 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9544 wlarc=
9545 hardcode_direct=yes
9546 hardcode_shlibpath_var=no
9547 ;;
9548
9549 *)
9550 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9551 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9552 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9553 else
9554 ld_shlibs=no
9555 fi
9556 ;;
9557 esac
9558
9559 if test "$ld_shlibs" = no; then
9560 runpath_var=
9561 hardcode_libdir_flag_spec=
9562 export_dynamic_flag_spec=
9563 whole_archive_flag_spec=
9564 fi
9565 else
9566 # PORTME fill in a description of your system's linker (not GNU ld)
9567 case $host_os in
9568 aix3*)
9569 allow_undefined_flag=unsupported
9570 always_export_symbols=yes
9571 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'
9572 # Note: this linker hardcodes the directories in LIBPATH if there
9573 # are no directories specified by -L.
9574 hardcode_minus_L=yes
9575 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9576 # Neither direct hardcoding nor static linking is supported with a
9577 # broken collect2.
9578 hardcode_direct=unsupported
9579 fi
9580 ;;
9581
9582 aix[4-9]*)
9583 if test "$host_cpu" = ia64; then
9584 # On IA64, the linker does run time linking by default, so we don't
9585 # have to do anything special.
9586 aix_use_runtimelinking=no
9587 exp_sym_flag='-Bexport'
9588 no_entry_flag=""
9589 else
9590 # If we're using GNU nm, then we don't want the "-C" option.
9591 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9592 # Also, AIX nm treats weak defined symbols like other global
9593 # defined symbols, whereas GNU nm marks them as "W".
9594 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9595 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'
9596 else
9597 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'
9598 fi
9599 aix_use_runtimelinking=no
9600
9601 # Test if we are trying to use run time linking or normal
9602 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9603 # need to do runtime linking.
9604 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9605 for ld_flag in $LDFLAGS; do
9606 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9607 aix_use_runtimelinking=yes
9608 break
9609 fi
9610 done
9611 ;;
9612 esac
9613
9614 exp_sym_flag='-bexport'
9615 no_entry_flag='-bnoentry'
9616 fi
9617
9618 # When large executables or shared objects are built, AIX ld can
9619 # have problems creating the table of contents. If linking a library
9620 # or program results in "error TOC overflow" add -mminimal-toc to
9621 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9622 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9623
9624 archive_cmds=''
9625 hardcode_direct=yes
9626 hardcode_direct_absolute=yes
9627 hardcode_libdir_separator=':'
9628 link_all_deplibs=yes
9629 file_list_spec='${wl}-f,'
9630
9631 if test "$GCC" = yes; then
9632 case $host_os in aix4.[012]|aix4.[012].*)
9633 # We only want to do this on AIX 4.2 and lower, the check
9634 # below for broken collect2 doesn't work under 4.3+
9635 collect2name=`${CC} -print-prog-name=collect2`
9636 if test -f "$collect2name" &&
9637 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9638 then
9639 # We have reworked collect2
9640 :
9641 else
9642 # We have old collect2
9643 hardcode_direct=unsupported
9644 # It fails to find uninstalled libraries when the uninstalled
9645 # path is not listed in the libpath. Setting hardcode_minus_L
9646 # to unsupported forces relinking
9647 hardcode_minus_L=yes
9648 hardcode_libdir_flag_spec='-L$libdir'
9649 hardcode_libdir_separator=
9650 fi
9651 ;;
9652 esac
9653 shared_flag='-shared'
9654 if test "$aix_use_runtimelinking" = yes; then
9655 shared_flag="$shared_flag "'${wl}-G'
9656 fi
9657 else
9658 # not using gcc
9659 if test "$host_cpu" = ia64; then
9660 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9661 # chokes on -Wl,-G. The following line is correct:
9662 shared_flag='-G'
9663 else
9664 if test "$aix_use_runtimelinking" = yes; then
9665 shared_flag='${wl}-G'
9666 else
9667 shared_flag='${wl}-bM:SRE'
9668 fi
9669 fi
9670 fi
9671
9672 export_dynamic_flag_spec='${wl}-bexpall'
9673 # It seems that -bexpall does not export symbols beginning with
9674 # underscore (_), so it is better to generate a list of symbols to export.
9675 always_export_symbols=yes
9676 if test "$aix_use_runtimelinking" = yes; then
9677 # Warning - without using the other runtime loading flags (-brtl),
9678 # -berok will link without error, but may produce a broken library.
9679 allow_undefined_flag='-berok'
9680 # Determine the default libpath from the value encoded in an
9681 # empty executable.
9682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9683 /* end confdefs.h. */
9684
9685 int
9686 main ()
9687 {
9688
9689 ;
9690 return 0;
9691 }
9692 _ACEOF
9693 if ac_fn_c_try_link "$LINENO"; then :
9694
9695 lt_aix_libpath_sed='
9696 /Import File Strings/,/^$/ {
9697 /^0/ {
9698 s/^0 *\(.*\)$/\1/
9699 p
9700 }
9701 }'
9702 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9703 # Check for a 64-bit object if we didn't find anything.
9704 if test -z "$aix_libpath"; then
9705 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9706 fi
9707 fi
9708 rm -f core conftest.err conftest.$ac_objext \
9709 conftest$ac_exeext conftest.$ac_ext
9710 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9711
9712 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9713 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"
9714 else
9715 if test "$host_cpu" = ia64; then
9716 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9717 allow_undefined_flag="-z nodefs"
9718 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"
9719 else
9720 # Determine the default libpath from the value encoded in an
9721 # empty executable.
9722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9723 /* end confdefs.h. */
9724
9725 int
9726 main ()
9727 {
9728
9729 ;
9730 return 0;
9731 }
9732 _ACEOF
9733 if ac_fn_c_try_link "$LINENO"; then :
9734
9735 lt_aix_libpath_sed='
9736 /Import File Strings/,/^$/ {
9737 /^0/ {
9738 s/^0 *\(.*\)$/\1/
9739 p
9740 }
9741 }'
9742 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9743 # Check for a 64-bit object if we didn't find anything.
9744 if test -z "$aix_libpath"; then
9745 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9746 fi
9747 fi
9748 rm -f core conftest.err conftest.$ac_objext \
9749 conftest$ac_exeext conftest.$ac_ext
9750 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9751
9752 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9753 # Warning - without using the other run time loading flags,
9754 # -berok will link without error, but may produce a broken library.
9755 no_undefined_flag=' ${wl}-bernotok'
9756 allow_undefined_flag=' ${wl}-berok'
9757 if test "$with_gnu_ld" = yes; then
9758 # We only use this code for GNU lds that support --whole-archive.
9759 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9760 else
9761 # Exported symbols can be pulled into shared objects from archives
9762 whole_archive_flag_spec='$convenience'
9763 fi
9764 archive_cmds_need_lc=yes
9765 # This is similar to how AIX traditionally builds its shared libraries.
9766 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'
9767 fi
9768 fi
9769 ;;
9770
9771 amigaos*)
9772 case $host_cpu in
9773 powerpc)
9774 # see comment about AmigaOS4 .so support
9775 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9776 archive_expsym_cmds=''
9777 ;;
9778 m68k)
9779 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)'
9780 hardcode_libdir_flag_spec='-L$libdir'
9781 hardcode_minus_L=yes
9782 ;;
9783 esac
9784 ;;
9785
9786 bsdi[45]*)
9787 export_dynamic_flag_spec=-rdynamic
9788 ;;
9789
9790 cygwin* | mingw* | pw32* | cegcc*)
9791 # When not using gcc, we currently assume that we are using
9792 # Microsoft Visual C++.
9793 # hardcode_libdir_flag_spec is actually meaningless, as there is
9794 # no search path for DLLs.
9795 hardcode_libdir_flag_spec=' '
9796 allow_undefined_flag=unsupported
9797 # Tell ltmain to make .lib files, not .a files.
9798 libext=lib
9799 # Tell ltmain to make .dll files, not .so files.
9800 shrext_cmds=".dll"
9801 # FIXME: Setting linknames here is a bad hack.
9802 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9803 # The linker will automatically build a .lib file if we build a DLL.
9804 old_archive_from_new_cmds='true'
9805 # FIXME: Should let the user specify the lib program.
9806 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9807 fix_srcfile_path='`cygpath -w "$srcfile"`'
9808 enable_shared_with_static_runtimes=yes
9809 ;;
9810
9811 darwin* | rhapsody*)
9812
9813
9814 archive_cmds_need_lc=no
9815 hardcode_direct=no
9816 hardcode_automatic=yes
9817 hardcode_shlibpath_var=unsupported
9818 if test "$lt_cv_ld_force_load" = "yes"; then
9819 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\"`'
9820 else
9821 whole_archive_flag_spec=''
9822 fi
9823 link_all_deplibs=yes
9824 allow_undefined_flag="$_lt_dar_allow_undefined"
9825 case $cc_basename in
9826 ifort*) _lt_dar_can_shared=yes ;;
9827 *) _lt_dar_can_shared=$GCC ;;
9828 esac
9829 if test "$_lt_dar_can_shared" = "yes"; then
9830 output_verbose_link_cmd=func_echo_all
9831 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9832 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9833 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}"
9834 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}"
9835
9836 else
9837 ld_shlibs=no
9838 fi
9839
9840 ;;
9841
9842 dgux*)
9843 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9844 hardcode_libdir_flag_spec='-L$libdir'
9845 hardcode_shlibpath_var=no
9846 ;;
9847
9848 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9849 # support. Future versions do this automatically, but an explicit c++rt0.o
9850 # does not break anything, and helps significantly (at the cost of a little
9851 # extra space).
9852 freebsd2.2*)
9853 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9854 hardcode_libdir_flag_spec='-R$libdir'
9855 hardcode_direct=yes
9856 hardcode_shlibpath_var=no
9857 ;;
9858
9859 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9860 freebsd2.*)
9861 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9862 hardcode_direct=yes
9863 hardcode_minus_L=yes
9864 hardcode_shlibpath_var=no
9865 ;;
9866
9867 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9868 freebsd* | dragonfly*)
9869 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9870 hardcode_libdir_flag_spec='-R$libdir'
9871 hardcode_direct=yes
9872 hardcode_shlibpath_var=no
9873 ;;
9874
9875 hpux9*)
9876 if test "$GCC" = yes; then
9877 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'
9878 else
9879 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'
9880 fi
9881 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9882 hardcode_libdir_separator=:
9883 hardcode_direct=yes
9884
9885 # hardcode_minus_L: Not really in the search PATH,
9886 # but as the default location of the library.
9887 hardcode_minus_L=yes
9888 export_dynamic_flag_spec='${wl}-E'
9889 ;;
9890
9891 hpux10*)
9892 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9893 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9894 else
9895 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9896 fi
9897 if test "$with_gnu_ld" = no; then
9898 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9899 hardcode_libdir_flag_spec_ld='+b $libdir'
9900 hardcode_libdir_separator=:
9901 hardcode_direct=yes
9902 hardcode_direct_absolute=yes
9903 export_dynamic_flag_spec='${wl}-E'
9904 # hardcode_minus_L: Not really in the search PATH,
9905 # but as the default location of the library.
9906 hardcode_minus_L=yes
9907 fi
9908 ;;
9909
9910 hpux11*)
9911 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9912 case $host_cpu in
9913 hppa*64*)
9914 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9915 ;;
9916 ia64*)
9917 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9918 ;;
9919 *)
9920 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9921 ;;
9922 esac
9923 else
9924 case $host_cpu in
9925 hppa*64*)
9926 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9927 ;;
9928 ia64*)
9929 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9930 ;;
9931 *)
9932
9933 # Older versions of the 11.00 compiler do not understand -b yet
9934 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9936 $as_echo_n "checking if $CC understands -b... " >&6; }
9937 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9938 $as_echo_n "(cached) " >&6
9939 else
9940 lt_cv_prog_compiler__b=no
9941 save_LDFLAGS="$LDFLAGS"
9942 LDFLAGS="$LDFLAGS -b"
9943 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9944 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9945 # The linker can only warn and ignore the option if not recognized
9946 # So say no if there are warnings
9947 if test -s conftest.err; then
9948 # Append any errors to the config.log.
9949 cat conftest.err 1>&5
9950 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9951 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9952 if diff conftest.exp conftest.er2 >/dev/null; then
9953 lt_cv_prog_compiler__b=yes
9954 fi
9955 else
9956 lt_cv_prog_compiler__b=yes
9957 fi
9958 fi
9959 $RM -r conftest*
9960 LDFLAGS="$save_LDFLAGS"
9961
9962 fi
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9964 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9965
9966 if test x"$lt_cv_prog_compiler__b" = xyes; then
9967 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9968 else
9969 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9970 fi
9971
9972 ;;
9973 esac
9974 fi
9975 if test "$with_gnu_ld" = no; then
9976 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9977 hardcode_libdir_separator=:
9978
9979 case $host_cpu in
9980 hppa*64*|ia64*)
9981 hardcode_direct=no
9982 hardcode_shlibpath_var=no
9983 ;;
9984 *)
9985 hardcode_direct=yes
9986 hardcode_direct_absolute=yes
9987 export_dynamic_flag_spec='${wl}-E'
9988
9989 # hardcode_minus_L: Not really in the search PATH,
9990 # but as the default location of the library.
9991 hardcode_minus_L=yes
9992 ;;
9993 esac
9994 fi
9995 ;;
9996
9997 irix5* | irix6* | nonstopux*)
9998 if test "$GCC" = yes; then
9999 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'
10000 # Try to use the -exported_symbol ld option, if it does not
10001 # work, assume that -exports_file does not work either and
10002 # implicitly export all symbols.
10003 save_LDFLAGS="$LDFLAGS"
10004 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10006 /* end confdefs.h. */
10007 int foo(void) {}
10008 _ACEOF
10009 if ac_fn_c_try_link "$LINENO"; then :
10010 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'
10011
10012 fi
10013 rm -f core conftest.err conftest.$ac_objext \
10014 conftest$ac_exeext conftest.$ac_ext
10015 LDFLAGS="$save_LDFLAGS"
10016 else
10017 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'
10018 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'
10019 fi
10020 archive_cmds_need_lc='no'
10021 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10022 hardcode_libdir_separator=:
10023 inherit_rpath=yes
10024 link_all_deplibs=yes
10025 ;;
10026
10027 netbsd*)
10028 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10029 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10030 else
10031 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10032 fi
10033 hardcode_libdir_flag_spec='-R$libdir'
10034 hardcode_direct=yes
10035 hardcode_shlibpath_var=no
10036 ;;
10037
10038 newsos6)
10039 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10040 hardcode_direct=yes
10041 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10042 hardcode_libdir_separator=:
10043 hardcode_shlibpath_var=no
10044 ;;
10045
10046 *nto* | *qnx*)
10047 ;;
10048
10049 openbsd*)
10050 if test -f /usr/libexec/ld.so; then
10051 hardcode_direct=yes
10052 hardcode_shlibpath_var=no
10053 hardcode_direct_absolute=yes
10054 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10055 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10056 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10057 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10058 export_dynamic_flag_spec='${wl}-E'
10059 else
10060 case $host_os in
10061 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10062 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10063 hardcode_libdir_flag_spec='-R$libdir'
10064 ;;
10065 *)
10066 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10067 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10068 ;;
10069 esac
10070 fi
10071 else
10072 ld_shlibs=no
10073 fi
10074 ;;
10075
10076 os2*)
10077 hardcode_libdir_flag_spec='-L$libdir'
10078 hardcode_minus_L=yes
10079 allow_undefined_flag=unsupported
10080 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'
10081 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10082 ;;
10083
10084 osf3*)
10085 if test "$GCC" = yes; then
10086 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10087 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'
10088 else
10089 allow_undefined_flag=' -expect_unresolved \*'
10090 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'
10091 fi
10092 archive_cmds_need_lc='no'
10093 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10094 hardcode_libdir_separator=:
10095 ;;
10096
10097 osf4* | osf5*) # as osf3* with the addition of -msym flag
10098 if test "$GCC" = yes; then
10099 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10100 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'
10101 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10102 else
10103 allow_undefined_flag=' -expect_unresolved \*'
10104 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'
10105 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~
10106 $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'
10107
10108 # Both c and cxx compiler support -rpath directly
10109 hardcode_libdir_flag_spec='-rpath $libdir'
10110 fi
10111 archive_cmds_need_lc='no'
10112 hardcode_libdir_separator=:
10113 ;;
10114
10115 solaris*)
10116 no_undefined_flag=' -z defs'
10117 if test "$GCC" = yes; then
10118 wlarc='${wl}'
10119 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10120 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10121 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10122 else
10123 case `$CC -V 2>&1` in
10124 *"Compilers 5.0"*)
10125 wlarc=''
10126 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10127 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10128 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10129 ;;
10130 *)
10131 wlarc='${wl}'
10132 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10133 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10134 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10135 ;;
10136 esac
10137 fi
10138 hardcode_libdir_flag_spec='-R$libdir'
10139 hardcode_shlibpath_var=no
10140 case $host_os in
10141 solaris2.[0-5] | solaris2.[0-5].*) ;;
10142 *)
10143 # The compiler driver will combine and reorder linker options,
10144 # but understands `-z linker_flag'. GCC discards it without `$wl',
10145 # but is careful enough not to reorder.
10146 # Supported since Solaris 2.6 (maybe 2.5.1?)
10147 if test "$GCC" = yes; then
10148 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10149 else
10150 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10151 fi
10152 ;;
10153 esac
10154 link_all_deplibs=yes
10155 ;;
10156
10157 sunos4*)
10158 if test "x$host_vendor" = xsequent; then
10159 # Use $CC to link under sequent, because it throws in some extra .o
10160 # files that make .init and .fini sections work.
10161 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10162 else
10163 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10164 fi
10165 hardcode_libdir_flag_spec='-L$libdir'
10166 hardcode_direct=yes
10167 hardcode_minus_L=yes
10168 hardcode_shlibpath_var=no
10169 ;;
10170
10171 sysv4)
10172 case $host_vendor in
10173 sni)
10174 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10175 hardcode_direct=yes # is this really true???
10176 ;;
10177 siemens)
10178 ## LD is ld it makes a PLAMLIB
10179 ## CC just makes a GrossModule.
10180 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10181 reload_cmds='$CC -r -o $output$reload_objs'
10182 hardcode_direct=no
10183 ;;
10184 motorola)
10185 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10186 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10187 ;;
10188 esac
10189 runpath_var='LD_RUN_PATH'
10190 hardcode_shlibpath_var=no
10191 ;;
10192
10193 sysv4.3*)
10194 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10195 hardcode_shlibpath_var=no
10196 export_dynamic_flag_spec='-Bexport'
10197 ;;
10198
10199 sysv4*MP*)
10200 if test -d /usr/nec; then
10201 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10202 hardcode_shlibpath_var=no
10203 runpath_var=LD_RUN_PATH
10204 hardcode_runpath_var=yes
10205 ld_shlibs=yes
10206 fi
10207 ;;
10208
10209 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10210 no_undefined_flag='${wl}-z,text'
10211 archive_cmds_need_lc=no
10212 hardcode_shlibpath_var=no
10213 runpath_var='LD_RUN_PATH'
10214
10215 if test "$GCC" = yes; then
10216 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10217 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10218 else
10219 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10220 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10221 fi
10222 ;;
10223
10224 sysv5* | sco3.2v5* | sco5v6*)
10225 # Note: We can NOT use -z defs as we might desire, because we do not
10226 # link with -lc, and that would cause any symbols used from libc to
10227 # always be unresolved, which means just about no library would
10228 # ever link correctly. If we're not using GNU ld we use -z text
10229 # though, which does catch some bad symbols but isn't as heavy-handed
10230 # as -z defs.
10231 no_undefined_flag='${wl}-z,text'
10232 allow_undefined_flag='${wl}-z,nodefs'
10233 archive_cmds_need_lc=no
10234 hardcode_shlibpath_var=no
10235 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10236 hardcode_libdir_separator=':'
10237 link_all_deplibs=yes
10238 export_dynamic_flag_spec='${wl}-Bexport'
10239 runpath_var='LD_RUN_PATH'
10240
10241 if test "$GCC" = yes; then
10242 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10243 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10244 else
10245 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10246 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10247 fi
10248 ;;
10249
10250 uts4*)
10251 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10252 hardcode_libdir_flag_spec='-L$libdir'
10253 hardcode_shlibpath_var=no
10254 ;;
10255
10256 *)
10257 ld_shlibs=no
10258 ;;
10259 esac
10260
10261 if test x$host_vendor = xsni; then
10262 case $host in
10263 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10264 export_dynamic_flag_spec='${wl}-Blargedynsym'
10265 ;;
10266 esac
10267 fi
10268 fi
10269
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10271 $as_echo "$ld_shlibs" >&6; }
10272 test "$ld_shlibs" = no && can_build_shared=no
10273
10274 with_gnu_ld=$with_gnu_ld
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290 #
10291 # Do we need to explicitly link libc?
10292 #
10293 case "x$archive_cmds_need_lc" in
10294 x|xyes)
10295 # Assume -lc should be added
10296 archive_cmds_need_lc=yes
10297
10298 if test "$enable_shared" = yes && test "$GCC" = yes; then
10299 case $archive_cmds in
10300 *'~'*)
10301 # FIXME: we may have to deal with multi-command sequences.
10302 ;;
10303 '$CC '*)
10304 # Test whether the compiler implicitly links with -lc since on some
10305 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10306 # to ld, don't add -lc before -lgcc.
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10308 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10309 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10310 $as_echo_n "(cached) " >&6
10311 else
10312 $RM conftest*
10313 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10314
10315 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10316 (eval $ac_compile) 2>&5
10317 ac_status=$?
10318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10319 test $ac_status = 0; } 2>conftest.err; then
10320 soname=conftest
10321 lib=conftest
10322 libobjs=conftest.$ac_objext
10323 deplibs=
10324 wl=$lt_prog_compiler_wl
10325 pic_flag=$lt_prog_compiler_pic
10326 compiler_flags=-v
10327 linker_flags=-v
10328 verstring=
10329 output_objdir=.
10330 libname=conftest
10331 lt_save_allow_undefined_flag=$allow_undefined_flag
10332 allow_undefined_flag=
10333 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10334 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10335 ac_status=$?
10336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10337 test $ac_status = 0; }
10338 then
10339 lt_cv_archive_cmds_need_lc=no
10340 else
10341 lt_cv_archive_cmds_need_lc=yes
10342 fi
10343 allow_undefined_flag=$lt_save_allow_undefined_flag
10344 else
10345 cat conftest.err 1>&5
10346 fi
10347 $RM conftest*
10348
10349 fi
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10351 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10352 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10353 ;;
10354 esac
10355 fi
10356 ;;
10357 esac
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10516 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10517
10518 if test "$GCC" = yes; then
10519 case $host_os in
10520 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10521 *) lt_awk_arg="/^libraries:/" ;;
10522 esac
10523 case $host_os in
10524 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10525 *) lt_sed_strip_eq="s,=/,/,g" ;;
10526 esac
10527 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10528 case $lt_search_path_spec in
10529 *\;*)
10530 # if the path contains ";" then we assume it to be the separator
10531 # otherwise default to the standard path separator (i.e. ":") - it is
10532 # assumed that no part of a normal pathname contains ";" but that should
10533 # okay in the real world where ";" in dirpaths is itself problematic.
10534 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10535 ;;
10536 *)
10537 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10538 ;;
10539 esac
10540 # Ok, now we have the path, separated by spaces, we can step through it
10541 # and add multilib dir if necessary.
10542 lt_tmp_lt_search_path_spec=
10543 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10544 for lt_sys_path in $lt_search_path_spec; do
10545 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10546 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10547 else
10548 test -d "$lt_sys_path" && \
10549 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10550 fi
10551 done
10552 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10553 BEGIN {RS=" "; FS="/|\n";} {
10554 lt_foo="";
10555 lt_count=0;
10556 for (lt_i = NF; lt_i > 0; lt_i--) {
10557 if ($lt_i != "" && $lt_i != ".") {
10558 if ($lt_i == "..") {
10559 lt_count++;
10560 } else {
10561 if (lt_count == 0) {
10562 lt_foo="/" $lt_i lt_foo;
10563 } else {
10564 lt_count--;
10565 }
10566 }
10567 }
10568 }
10569 if (lt_foo != "") { lt_freq[lt_foo]++; }
10570 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10571 }'`
10572 # AWK program above erroneously prepends '/' to C:/dos/paths
10573 # for these hosts.
10574 case $host_os in
10575 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10576 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10577 esac
10578 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10579 else
10580 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10581 fi
10582 library_names_spec=
10583 libname_spec='lib$name'
10584 soname_spec=
10585 shrext_cmds=".so"
10586 postinstall_cmds=
10587 postuninstall_cmds=
10588 finish_cmds=
10589 finish_eval=
10590 shlibpath_var=
10591 shlibpath_overrides_runpath=unknown
10592 version_type=none
10593 dynamic_linker="$host_os ld.so"
10594 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10595 need_lib_prefix=unknown
10596 hardcode_into_libs=no
10597
10598 # when you set need_version to no, make sure it does not cause -set_version
10599 # flags to be left without arguments
10600 need_version=unknown
10601
10602 case $host_os in
10603 aix3*)
10604 version_type=linux
10605 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10606 shlibpath_var=LIBPATH
10607
10608 # AIX 3 has no versioning support, so we append a major version to the name.
10609 soname_spec='${libname}${release}${shared_ext}$major'
10610 ;;
10611
10612 aix[4-9]*)
10613 version_type=linux
10614 need_lib_prefix=no
10615 need_version=no
10616 hardcode_into_libs=yes
10617 if test "$host_cpu" = ia64; then
10618 # AIX 5 supports IA64
10619 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10620 shlibpath_var=LD_LIBRARY_PATH
10621 else
10622 # With GCC up to 2.95.x, collect2 would create an import file
10623 # for dependence libraries. The import file would start with
10624 # the line `#! .'. This would cause the generated library to
10625 # depend on `.', always an invalid library. This was fixed in
10626 # development snapshots of GCC prior to 3.0.
10627 case $host_os in
10628 aix4 | aix4.[01] | aix4.[01].*)
10629 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10630 echo ' yes '
10631 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10632 :
10633 else
10634 can_build_shared=no
10635 fi
10636 ;;
10637 esac
10638 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10639 # soname into executable. Probably we can add versioning support to
10640 # collect2, so additional links can be useful in future.
10641 if test "$aix_use_runtimelinking" = yes; then
10642 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10643 # instead of lib<name>.a to let people know that these are not
10644 # typical AIX shared libraries.
10645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10646 else
10647 # We preserve .a as extension for shared libraries through AIX4.2
10648 # and later when we are not doing run time linking.
10649 library_names_spec='${libname}${release}.a $libname.a'
10650 soname_spec='${libname}${release}${shared_ext}$major'
10651 fi
10652 shlibpath_var=LIBPATH
10653 fi
10654 ;;
10655
10656 amigaos*)
10657 case $host_cpu in
10658 powerpc)
10659 # Since July 2007 AmigaOS4 officially supports .so libraries.
10660 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10662 ;;
10663 m68k)
10664 library_names_spec='$libname.ixlibrary $libname.a'
10665 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10666 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'
10667 ;;
10668 esac
10669 ;;
10670
10671 beos*)
10672 library_names_spec='${libname}${shared_ext}'
10673 dynamic_linker="$host_os ld.so"
10674 shlibpath_var=LIBRARY_PATH
10675 ;;
10676
10677 bsdi[45]*)
10678 version_type=linux
10679 need_version=no
10680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10681 soname_spec='${libname}${release}${shared_ext}$major'
10682 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10683 shlibpath_var=LD_LIBRARY_PATH
10684 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10685 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10686 # the default ld.so.conf also contains /usr/contrib/lib and
10687 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10688 # libtool to hard-code these into programs
10689 ;;
10690
10691 cygwin* | mingw* | pw32* | cegcc*)
10692 version_type=windows
10693 shrext_cmds=".dll"
10694 need_version=no
10695 need_lib_prefix=no
10696
10697 case $GCC,$host_os in
10698 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10699 library_names_spec='$libname.dll.a'
10700 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10701 postinstall_cmds='base_file=`basename \${file}`~
10702 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10703 dldir=$destdir/`dirname \$dlpath`~
10704 test -d \$dldir || mkdir -p \$dldir~
10705 $install_prog $dir/$dlname \$dldir/$dlname~
10706 chmod a+x \$dldir/$dlname~
10707 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10708 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10709 fi'
10710 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10711 dlpath=$dir/\$dldll~
10712 $RM \$dlpath'
10713 shlibpath_overrides_runpath=yes
10714
10715 case $host_os in
10716 cygwin*)
10717 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10718 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10719
10720 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10721 ;;
10722 mingw* | cegcc*)
10723 # MinGW DLLs use traditional 'lib' prefix
10724 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10725 ;;
10726 pw32*)
10727 # pw32 DLLs use 'pw' prefix rather than 'lib'
10728 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10729 ;;
10730 esac
10731 ;;
10732
10733 *)
10734 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10735 ;;
10736 esac
10737 dynamic_linker='Win32 ld.exe'
10738 # FIXME: first we should search . and the directory the executable is in
10739 shlibpath_var=PATH
10740 ;;
10741
10742 darwin* | rhapsody*)
10743 dynamic_linker="$host_os dyld"
10744 version_type=darwin
10745 need_lib_prefix=no
10746 need_version=no
10747 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10748 soname_spec='${libname}${release}${major}$shared_ext'
10749 shlibpath_overrides_runpath=yes
10750 shlibpath_var=DYLD_LIBRARY_PATH
10751 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10752
10753 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10754 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10755 ;;
10756
10757 dgux*)
10758 version_type=linux
10759 need_lib_prefix=no
10760 need_version=no
10761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10762 soname_spec='${libname}${release}${shared_ext}$major'
10763 shlibpath_var=LD_LIBRARY_PATH
10764 ;;
10765
10766 freebsd* | dragonfly*)
10767 # DragonFly does not have aout. When/if they implement a new
10768 # versioning mechanism, adjust this.
10769 if test -x /usr/bin/objformat; then
10770 objformat=`/usr/bin/objformat`
10771 else
10772 case $host_os in
10773 freebsd[23].*) objformat=aout ;;
10774 *) objformat=elf ;;
10775 esac
10776 fi
10777 version_type=freebsd-$objformat
10778 case $version_type in
10779 freebsd-elf*)
10780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10781 need_version=no
10782 need_lib_prefix=no
10783 ;;
10784 freebsd-*)
10785 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10786 need_version=yes
10787 ;;
10788 esac
10789 shlibpath_var=LD_LIBRARY_PATH
10790 case $host_os in
10791 freebsd2.*)
10792 shlibpath_overrides_runpath=yes
10793 ;;
10794 freebsd3.[01]* | freebsdelf3.[01]*)
10795 shlibpath_overrides_runpath=yes
10796 hardcode_into_libs=yes
10797 ;;
10798 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10799 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10800 shlibpath_overrides_runpath=no
10801 hardcode_into_libs=yes
10802 ;;
10803 *) # from 4.6 on, and DragonFly
10804 shlibpath_overrides_runpath=yes
10805 hardcode_into_libs=yes
10806 ;;
10807 esac
10808 ;;
10809
10810 gnu*)
10811 version_type=linux
10812 need_lib_prefix=no
10813 need_version=no
10814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10815 soname_spec='${libname}${release}${shared_ext}$major'
10816 shlibpath_var=LD_LIBRARY_PATH
10817 hardcode_into_libs=yes
10818 ;;
10819
10820 haiku*)
10821 version_type=linux
10822 need_lib_prefix=no
10823 need_version=no
10824 dynamic_linker="$host_os runtime_loader"
10825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10826 soname_spec='${libname}${release}${shared_ext}$major'
10827 shlibpath_var=LIBRARY_PATH
10828 shlibpath_overrides_runpath=yes
10829 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10830 hardcode_into_libs=yes
10831 ;;
10832
10833 hpux9* | hpux10* | hpux11*)
10834 # Give a soname corresponding to the major version so that dld.sl refuses to
10835 # link against other versions.
10836 version_type=sunos
10837 need_lib_prefix=no
10838 need_version=no
10839 case $host_cpu in
10840 ia64*)
10841 shrext_cmds='.so'
10842 hardcode_into_libs=yes
10843 dynamic_linker="$host_os dld.so"
10844 shlibpath_var=LD_LIBRARY_PATH
10845 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10847 soname_spec='${libname}${release}${shared_ext}$major'
10848 if test "X$HPUX_IA64_MODE" = X32; then
10849 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10850 else
10851 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10852 fi
10853 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10854 ;;
10855 hppa*64*)
10856 shrext_cmds='.sl'
10857 hardcode_into_libs=yes
10858 dynamic_linker="$host_os dld.sl"
10859 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10860 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10862 soname_spec='${libname}${release}${shared_ext}$major'
10863 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10864 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10865 ;;
10866 *)
10867 shrext_cmds='.sl'
10868 dynamic_linker="$host_os dld.sl"
10869 shlibpath_var=SHLIB_PATH
10870 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10872 soname_spec='${libname}${release}${shared_ext}$major'
10873 ;;
10874 esac
10875 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10876 postinstall_cmds='chmod 555 $lib'
10877 # or fails outright, so override atomically:
10878 install_override_mode=555
10879 ;;
10880
10881 interix[3-9]*)
10882 version_type=linux
10883 need_lib_prefix=no
10884 need_version=no
10885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10886 soname_spec='${libname}${release}${shared_ext}$major'
10887 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10888 shlibpath_var=LD_LIBRARY_PATH
10889 shlibpath_overrides_runpath=no
10890 hardcode_into_libs=yes
10891 ;;
10892
10893 irix5* | irix6* | nonstopux*)
10894 case $host_os in
10895 nonstopux*) version_type=nonstopux ;;
10896 *)
10897 if test "$lt_cv_prog_gnu_ld" = yes; then
10898 version_type=linux
10899 else
10900 version_type=irix
10901 fi ;;
10902 esac
10903 need_lib_prefix=no
10904 need_version=no
10905 soname_spec='${libname}${release}${shared_ext}$major'
10906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10907 case $host_os in
10908 irix5* | nonstopux*)
10909 libsuff= shlibsuff=
10910 ;;
10911 *)
10912 case $LD in # libtool.m4 will add one of these switches to LD
10913 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10914 libsuff= shlibsuff= libmagic=32-bit;;
10915 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10916 libsuff=32 shlibsuff=N32 libmagic=N32;;
10917 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10918 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10919 *) libsuff= shlibsuff= libmagic=never-match;;
10920 esac
10921 ;;
10922 esac
10923 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10924 shlibpath_overrides_runpath=no
10925 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10926 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10927 hardcode_into_libs=yes
10928 ;;
10929
10930 # No shared lib support for Linux oldld, aout, or coff.
10931 linux*oldld* | linux*aout* | linux*coff*)
10932 dynamic_linker=no
10933 ;;
10934
10935 # This must be Linux ELF.
10936 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10937 version_type=linux
10938 need_lib_prefix=no
10939 need_version=no
10940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10941 soname_spec='${libname}${release}${shared_ext}$major'
10942 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10943 shlibpath_var=LD_LIBRARY_PATH
10944 shlibpath_overrides_runpath=no
10945
10946 # Some binutils ld are patched to set DT_RUNPATH
10947 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10948 $as_echo_n "(cached) " >&6
10949 else
10950 lt_cv_shlibpath_overrides_runpath=no
10951 save_LDFLAGS=$LDFLAGS
10952 save_libdir=$libdir
10953 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10954 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10956 /* end confdefs.h. */
10957
10958 int
10959 main ()
10960 {
10961
10962 ;
10963 return 0;
10964 }
10965 _ACEOF
10966 if ac_fn_c_try_link "$LINENO"; then :
10967 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10968 lt_cv_shlibpath_overrides_runpath=yes
10969 fi
10970 fi
10971 rm -f core conftest.err conftest.$ac_objext \
10972 conftest$ac_exeext conftest.$ac_ext
10973 LDFLAGS=$save_LDFLAGS
10974 libdir=$save_libdir
10975
10976 fi
10977
10978 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10979
10980 # This implies no fast_install, which is unacceptable.
10981 # Some rework will be needed to allow for fast_install
10982 # before this can be enabled.
10983 hardcode_into_libs=yes
10984
10985 # Append ld.so.conf contents to the search path
10986 if test -f /etc/ld.so.conf; then
10987 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' ' '`
10988 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10989 fi
10990
10991 # We used to test for /lib/ld.so.1 and disable shared libraries on
10992 # powerpc, because MkLinux only supported shared libraries with the
10993 # GNU dynamic linker. Since this was broken with cross compilers,
10994 # most powerpc-linux boxes support dynamic linking these days and
10995 # people can always --disable-shared, the test was removed, and we
10996 # assume the GNU/Linux dynamic linker is in use.
10997 dynamic_linker='GNU/Linux ld.so'
10998 ;;
10999
11000 netbsd*)
11001 version_type=sunos
11002 need_lib_prefix=no
11003 need_version=no
11004 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11006 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11007 dynamic_linker='NetBSD (a.out) ld.so'
11008 else
11009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11010 soname_spec='${libname}${release}${shared_ext}$major'
11011 dynamic_linker='NetBSD ld.elf_so'
11012 fi
11013 shlibpath_var=LD_LIBRARY_PATH
11014 shlibpath_overrides_runpath=yes
11015 hardcode_into_libs=yes
11016 ;;
11017
11018 newsos6)
11019 version_type=linux
11020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11021 shlibpath_var=LD_LIBRARY_PATH
11022 shlibpath_overrides_runpath=yes
11023 ;;
11024
11025 *nto* | *qnx*)
11026 version_type=qnx
11027 need_lib_prefix=no
11028 need_version=no
11029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11030 soname_spec='${libname}${release}${shared_ext}$major'
11031 shlibpath_var=LD_LIBRARY_PATH
11032 shlibpath_overrides_runpath=no
11033 hardcode_into_libs=yes
11034 dynamic_linker='ldqnx.so'
11035 ;;
11036
11037 openbsd*)
11038 version_type=sunos
11039 sys_lib_dlsearch_path_spec="/usr/lib"
11040 need_lib_prefix=no
11041 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11042 case $host_os in
11043 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11044 *) need_version=no ;;
11045 esac
11046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11047 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11048 shlibpath_var=LD_LIBRARY_PATH
11049 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11050 case $host_os in
11051 openbsd2.[89] | openbsd2.[89].*)
11052 shlibpath_overrides_runpath=no
11053 ;;
11054 *)
11055 shlibpath_overrides_runpath=yes
11056 ;;
11057 esac
11058 else
11059 shlibpath_overrides_runpath=yes
11060 fi
11061 ;;
11062
11063 os2*)
11064 libname_spec='$name'
11065 shrext_cmds=".dll"
11066 need_lib_prefix=no
11067 library_names_spec='$libname${shared_ext} $libname.a'
11068 dynamic_linker='OS/2 ld.exe'
11069 shlibpath_var=LIBPATH
11070 ;;
11071
11072 osf3* | osf4* | osf5*)
11073 version_type=osf
11074 need_lib_prefix=no
11075 need_version=no
11076 soname_spec='${libname}${release}${shared_ext}$major'
11077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11078 shlibpath_var=LD_LIBRARY_PATH
11079 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11080 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11081 ;;
11082
11083 rdos*)
11084 dynamic_linker=no
11085 ;;
11086
11087 solaris*)
11088 version_type=linux
11089 need_lib_prefix=no
11090 need_version=no
11091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11092 soname_spec='${libname}${release}${shared_ext}$major'
11093 shlibpath_var=LD_LIBRARY_PATH
11094 shlibpath_overrides_runpath=yes
11095 hardcode_into_libs=yes
11096 # ldd complains unless libraries are executable
11097 postinstall_cmds='chmod +x $lib'
11098 ;;
11099
11100 sunos4*)
11101 version_type=sunos
11102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11103 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11104 shlibpath_var=LD_LIBRARY_PATH
11105 shlibpath_overrides_runpath=yes
11106 if test "$with_gnu_ld" = yes; then
11107 need_lib_prefix=no
11108 fi
11109 need_version=yes
11110 ;;
11111
11112 sysv4 | sysv4.3*)
11113 version_type=linux
11114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11115 soname_spec='${libname}${release}${shared_ext}$major'
11116 shlibpath_var=LD_LIBRARY_PATH
11117 case $host_vendor in
11118 sni)
11119 shlibpath_overrides_runpath=no
11120 need_lib_prefix=no
11121 runpath_var=LD_RUN_PATH
11122 ;;
11123 siemens)
11124 need_lib_prefix=no
11125 ;;
11126 motorola)
11127 need_lib_prefix=no
11128 need_version=no
11129 shlibpath_overrides_runpath=no
11130 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11131 ;;
11132 esac
11133 ;;
11134
11135 sysv4*MP*)
11136 if test -d /usr/nec ;then
11137 version_type=linux
11138 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11139 soname_spec='$libname${shared_ext}.$major'
11140 shlibpath_var=LD_LIBRARY_PATH
11141 fi
11142 ;;
11143
11144 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11145 version_type=freebsd-elf
11146 need_lib_prefix=no
11147 need_version=no
11148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11149 soname_spec='${libname}${release}${shared_ext}$major'
11150 shlibpath_var=LD_LIBRARY_PATH
11151 shlibpath_overrides_runpath=yes
11152 hardcode_into_libs=yes
11153 if test "$with_gnu_ld" = yes; then
11154 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11155 else
11156 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11157 case $host_os in
11158 sco3.2v5*)
11159 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11160 ;;
11161 esac
11162 fi
11163 sys_lib_dlsearch_path_spec='/usr/lib'
11164 ;;
11165
11166 tpf*)
11167 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11168 version_type=linux
11169 need_lib_prefix=no
11170 need_version=no
11171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11172 shlibpath_var=LD_LIBRARY_PATH
11173 shlibpath_overrides_runpath=no
11174 hardcode_into_libs=yes
11175 ;;
11176
11177 uts4*)
11178 version_type=linux
11179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11180 soname_spec='${libname}${release}${shared_ext}$major'
11181 shlibpath_var=LD_LIBRARY_PATH
11182 ;;
11183
11184 *)
11185 dynamic_linker=no
11186 ;;
11187 esac
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11189 $as_echo "$dynamic_linker" >&6; }
11190 test "$dynamic_linker" = no && can_build_shared=no
11191
11192 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11193 if test "$GCC" = yes; then
11194 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11195 fi
11196
11197 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11198 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11199 fi
11200 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11201 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11202 fi
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11296 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11297 hardcode_action=
11298 if test -n "$hardcode_libdir_flag_spec" ||
11299 test -n "$runpath_var" ||
11300 test "X$hardcode_automatic" = "Xyes" ; then
11301
11302 # We can hardcode non-existent directories.
11303 if test "$hardcode_direct" != no &&
11304 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11305 # have to relink, otherwise we might link with an installed library
11306 # when we should be linking with a yet-to-be-installed one
11307 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11308 test "$hardcode_minus_L" != no; then
11309 # Linking always hardcodes the temporary library directory.
11310 hardcode_action=relink
11311 else
11312 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11313 hardcode_action=immediate
11314 fi
11315 else
11316 # We cannot hardcode anything, or else we can only hardcode existing
11317 # directories.
11318 hardcode_action=unsupported
11319 fi
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11321 $as_echo "$hardcode_action" >&6; }
11322
11323 if test "$hardcode_action" = relink ||
11324 test "$inherit_rpath" = yes; then
11325 # Fast installation is not supported
11326 enable_fast_install=no
11327 elif test "$shlibpath_overrides_runpath" = yes ||
11328 test "$enable_shared" = no; then
11329 # Fast installation is not necessary
11330 enable_fast_install=needless
11331 fi
11332
11333
11334
11335
11336
11337
11338 if test "x$enable_dlopen" != xyes; then
11339 enable_dlopen=unknown
11340 enable_dlopen_self=unknown
11341 enable_dlopen_self_static=unknown
11342 else
11343 lt_cv_dlopen=no
11344 lt_cv_dlopen_libs=
11345
11346 case $host_os in
11347 beos*)
11348 lt_cv_dlopen="load_add_on"
11349 lt_cv_dlopen_libs=
11350 lt_cv_dlopen_self=yes
11351 ;;
11352
11353 mingw* | pw32* | cegcc*)
11354 lt_cv_dlopen="LoadLibrary"
11355 lt_cv_dlopen_libs=
11356 ;;
11357
11358 cygwin*)
11359 lt_cv_dlopen="dlopen"
11360 lt_cv_dlopen_libs=
11361 ;;
11362
11363 darwin*)
11364 # if libdl is installed we need to link against it
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11366 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11367 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11368 $as_echo_n "(cached) " >&6
11369 else
11370 ac_check_lib_save_LIBS=$LIBS
11371 LIBS="-ldl $LIBS"
11372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11373 /* end confdefs.h. */
11374
11375 /* Override any GCC internal prototype to avoid an error.
11376 Use char because int might match the return type of a GCC
11377 builtin and then its argument prototype would still apply. */
11378 #ifdef __cplusplus
11379 extern "C"
11380 #endif
11381 char dlopen ();
11382 int
11383 main ()
11384 {
11385 return dlopen ();
11386 ;
11387 return 0;
11388 }
11389 _ACEOF
11390 if ac_fn_c_try_link "$LINENO"; then :
11391 ac_cv_lib_dl_dlopen=yes
11392 else
11393 ac_cv_lib_dl_dlopen=no
11394 fi
11395 rm -f core conftest.err conftest.$ac_objext \
11396 conftest$ac_exeext conftest.$ac_ext
11397 LIBS=$ac_check_lib_save_LIBS
11398 fi
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11400 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11401 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11402 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11403 else
11404
11405 lt_cv_dlopen="dyld"
11406 lt_cv_dlopen_libs=
11407 lt_cv_dlopen_self=yes
11408
11409 fi
11410
11411 ;;
11412
11413 *)
11414 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11415 if test "x$ac_cv_func_shl_load" = x""yes; then :
11416 lt_cv_dlopen="shl_load"
11417 else
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11419 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11420 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11421 $as_echo_n "(cached) " >&6
11422 else
11423 ac_check_lib_save_LIBS=$LIBS
11424 LIBS="-ldld $LIBS"
11425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11426 /* end confdefs.h. */
11427
11428 /* Override any GCC internal prototype to avoid an error.
11429 Use char because int might match the return type of a GCC
11430 builtin and then its argument prototype would still apply. */
11431 #ifdef __cplusplus
11432 extern "C"
11433 #endif
11434 char shl_load ();
11435 int
11436 main ()
11437 {
11438 return shl_load ();
11439 ;
11440 return 0;
11441 }
11442 _ACEOF
11443 if ac_fn_c_try_link "$LINENO"; then :
11444 ac_cv_lib_dld_shl_load=yes
11445 else
11446 ac_cv_lib_dld_shl_load=no
11447 fi
11448 rm -f core conftest.err conftest.$ac_objext \
11449 conftest$ac_exeext conftest.$ac_ext
11450 LIBS=$ac_check_lib_save_LIBS
11451 fi
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11453 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11454 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11455 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11456 else
11457 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11458 if test "x$ac_cv_func_dlopen" = x""yes; then :
11459 lt_cv_dlopen="dlopen"
11460 else
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11462 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11463 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11464 $as_echo_n "(cached) " >&6
11465 else
11466 ac_check_lib_save_LIBS=$LIBS
11467 LIBS="-ldl $LIBS"
11468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11469 /* end confdefs.h. */
11470
11471 /* Override any GCC internal prototype to avoid an error.
11472 Use char because int might match the return type of a GCC
11473 builtin and then its argument prototype would still apply. */
11474 #ifdef __cplusplus
11475 extern "C"
11476 #endif
11477 char dlopen ();
11478 int
11479 main ()
11480 {
11481 return dlopen ();
11482 ;
11483 return 0;
11484 }
11485 _ACEOF
11486 if ac_fn_c_try_link "$LINENO"; then :
11487 ac_cv_lib_dl_dlopen=yes
11488 else
11489 ac_cv_lib_dl_dlopen=no
11490 fi
11491 rm -f core conftest.err conftest.$ac_objext \
11492 conftest$ac_exeext conftest.$ac_ext
11493 LIBS=$ac_check_lib_save_LIBS
11494 fi
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11496 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11497 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11498 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11499 else
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11501 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11502 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11503 $as_echo_n "(cached) " >&6
11504 else
11505 ac_check_lib_save_LIBS=$LIBS
11506 LIBS="-lsvld $LIBS"
11507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11508 /* end confdefs.h. */
11509
11510 /* Override any GCC internal prototype to avoid an error.
11511 Use char because int might match the return type of a GCC
11512 builtin and then its argument prototype would still apply. */
11513 #ifdef __cplusplus
11514 extern "C"
11515 #endif
11516 char dlopen ();
11517 int
11518 main ()
11519 {
11520 return dlopen ();
11521 ;
11522 return 0;
11523 }
11524 _ACEOF
11525 if ac_fn_c_try_link "$LINENO"; then :
11526 ac_cv_lib_svld_dlopen=yes
11527 else
11528 ac_cv_lib_svld_dlopen=no
11529 fi
11530 rm -f core conftest.err conftest.$ac_objext \
11531 conftest$ac_exeext conftest.$ac_ext
11532 LIBS=$ac_check_lib_save_LIBS
11533 fi
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11535 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11536 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11537 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11538 else
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11540 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11541 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11542 $as_echo_n "(cached) " >&6
11543 else
11544 ac_check_lib_save_LIBS=$LIBS
11545 LIBS="-ldld $LIBS"
11546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11547 /* end confdefs.h. */
11548
11549 /* Override any GCC internal prototype to avoid an error.
11550 Use char because int might match the return type of a GCC
11551 builtin and then its argument prototype would still apply. */
11552 #ifdef __cplusplus
11553 extern "C"
11554 #endif
11555 char dld_link ();
11556 int
11557 main ()
11558 {
11559 return dld_link ();
11560 ;
11561 return 0;
11562 }
11563 _ACEOF
11564 if ac_fn_c_try_link "$LINENO"; then :
11565 ac_cv_lib_dld_dld_link=yes
11566 else
11567 ac_cv_lib_dld_dld_link=no
11568 fi
11569 rm -f core conftest.err conftest.$ac_objext \
11570 conftest$ac_exeext conftest.$ac_ext
11571 LIBS=$ac_check_lib_save_LIBS
11572 fi
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11574 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11575 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11576 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11577 fi
11578
11579
11580 fi
11581
11582
11583 fi
11584
11585
11586 fi
11587
11588
11589 fi
11590
11591
11592 fi
11593
11594 ;;
11595 esac
11596
11597 if test "x$lt_cv_dlopen" != xno; then
11598 enable_dlopen=yes
11599 else
11600 enable_dlopen=no
11601 fi
11602
11603 case $lt_cv_dlopen in
11604 dlopen)
11605 save_CPPFLAGS="$CPPFLAGS"
11606 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11607
11608 save_LDFLAGS="$LDFLAGS"
11609 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11610
11611 save_LIBS="$LIBS"
11612 LIBS="$lt_cv_dlopen_libs $LIBS"
11613
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11615 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11616 if test "${lt_cv_dlopen_self+set}" = set; then :
11617 $as_echo_n "(cached) " >&6
11618 else
11619 if test "$cross_compiling" = yes; then :
11620 lt_cv_dlopen_self=cross
11621 else
11622 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11623 lt_status=$lt_dlunknown
11624 cat > conftest.$ac_ext <<_LT_EOF
11625 #line 11625 "configure"
11626 #include "confdefs.h"
11627
11628 #if HAVE_DLFCN_H
11629 #include <dlfcn.h>
11630 #endif
11631
11632 #include <stdio.h>
11633
11634 #ifdef RTLD_GLOBAL
11635 # define LT_DLGLOBAL RTLD_GLOBAL
11636 #else
11637 # ifdef DL_GLOBAL
11638 # define LT_DLGLOBAL DL_GLOBAL
11639 # else
11640 # define LT_DLGLOBAL 0
11641 # endif
11642 #endif
11643
11644 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11645 find out it does not work in some platform. */
11646 #ifndef LT_DLLAZY_OR_NOW
11647 # ifdef RTLD_LAZY
11648 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11649 # else
11650 # ifdef DL_LAZY
11651 # define LT_DLLAZY_OR_NOW DL_LAZY
11652 # else
11653 # ifdef RTLD_NOW
11654 # define LT_DLLAZY_OR_NOW RTLD_NOW
11655 # else
11656 # ifdef DL_NOW
11657 # define LT_DLLAZY_OR_NOW DL_NOW
11658 # else
11659 # define LT_DLLAZY_OR_NOW 0
11660 # endif
11661 # endif
11662 # endif
11663 # endif
11664 #endif
11665
11666 /* When -fvisbility=hidden is used, assume the code has been annotated
11667 correspondingly for the symbols needed. */
11668 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11669 void fnord () __attribute__((visibility("default")));
11670 #endif
11671
11672 void fnord () { int i=42; }
11673 int main ()
11674 {
11675 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11676 int status = $lt_dlunknown;
11677
11678 if (self)
11679 {
11680 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11681 else
11682 {
11683 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11684 else puts (dlerror ());
11685 }
11686 /* dlclose (self); */
11687 }
11688 else
11689 puts (dlerror ());
11690
11691 return status;
11692 }
11693 _LT_EOF
11694 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11695 (eval $ac_link) 2>&5
11696 ac_status=$?
11697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11698 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11699 (./conftest; exit; ) >&5 2>/dev/null
11700 lt_status=$?
11701 case x$lt_status in
11702 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11703 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11704 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11705 esac
11706 else :
11707 # compilation failed
11708 lt_cv_dlopen_self=no
11709 fi
11710 fi
11711 rm -fr conftest*
11712
11713
11714 fi
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11716 $as_echo "$lt_cv_dlopen_self" >&6; }
11717
11718 if test "x$lt_cv_dlopen_self" = xyes; then
11719 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11721 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11722 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11723 $as_echo_n "(cached) " >&6
11724 else
11725 if test "$cross_compiling" = yes; then :
11726 lt_cv_dlopen_self_static=cross
11727 else
11728 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11729 lt_status=$lt_dlunknown
11730 cat > conftest.$ac_ext <<_LT_EOF
11731 #line 11731 "configure"
11732 #include "confdefs.h"
11733
11734 #if HAVE_DLFCN_H
11735 #include <dlfcn.h>
11736 #endif
11737
11738 #include <stdio.h>
11739
11740 #ifdef RTLD_GLOBAL
11741 # define LT_DLGLOBAL RTLD_GLOBAL
11742 #else
11743 # ifdef DL_GLOBAL
11744 # define LT_DLGLOBAL DL_GLOBAL
11745 # else
11746 # define LT_DLGLOBAL 0
11747 # endif
11748 #endif
11749
11750 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11751 find out it does not work in some platform. */
11752 #ifndef LT_DLLAZY_OR_NOW
11753 # ifdef RTLD_LAZY
11754 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11755 # else
11756 # ifdef DL_LAZY
11757 # define LT_DLLAZY_OR_NOW DL_LAZY
11758 # else
11759 # ifdef RTLD_NOW
11760 # define LT_DLLAZY_OR_NOW RTLD_NOW
11761 # else
11762 # ifdef DL_NOW
11763 # define LT_DLLAZY_OR_NOW DL_NOW
11764 # else
11765 # define LT_DLLAZY_OR_NOW 0
11766 # endif
11767 # endif
11768 # endif
11769 # endif
11770 #endif
11771
11772 /* When -fvisbility=hidden is used, assume the code has been annotated
11773 correspondingly for the symbols needed. */
11774 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11775 void fnord () __attribute__((visibility("default")));
11776 #endif
11777
11778 void fnord () { int i=42; }
11779 int main ()
11780 {
11781 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11782 int status = $lt_dlunknown;
11783
11784 if (self)
11785 {
11786 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11787 else
11788 {
11789 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11790 else puts (dlerror ());
11791 }
11792 /* dlclose (self); */
11793 }
11794 else
11795 puts (dlerror ());
11796
11797 return status;
11798 }
11799 _LT_EOF
11800 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11801 (eval $ac_link) 2>&5
11802 ac_status=$?
11803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11804 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11805 (./conftest; exit; ) >&5 2>/dev/null
11806 lt_status=$?
11807 case x$lt_status in
11808 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11809 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11810 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11811 esac
11812 else :
11813 # compilation failed
11814 lt_cv_dlopen_self_static=no
11815 fi
11816 fi
11817 rm -fr conftest*
11818
11819
11820 fi
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11822 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11823 fi
11824
11825 CPPFLAGS="$save_CPPFLAGS"
11826 LDFLAGS="$save_LDFLAGS"
11827 LIBS="$save_LIBS"
11828 ;;
11829 esac
11830
11831 case $lt_cv_dlopen_self in
11832 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11833 *) enable_dlopen_self=unknown ;;
11834 esac
11835
11836 case $lt_cv_dlopen_self_static in
11837 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11838 *) enable_dlopen_self_static=unknown ;;
11839 esac
11840 fi
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858 striplib=
11859 old_striplib=
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11861 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11862 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11863 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11864 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11866 $as_echo "yes" >&6; }
11867 else
11868 # FIXME - insert some real tests, host_os isn't really good enough
11869 case $host_os in
11870 darwin*)
11871 if test -n "$STRIP" ; then
11872 striplib="$STRIP -x"
11873 old_striplib="$STRIP -S"
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11875 $as_echo "yes" >&6; }
11876 else
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11878 $as_echo "no" >&6; }
11879 fi
11880 ;;
11881 *)
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11883 $as_echo "no" >&6; }
11884 ;;
11885 esac
11886 fi
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899 # Report which library types will actually be built
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11901 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11903 $as_echo "$can_build_shared" >&6; }
11904
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11906 $as_echo_n "checking whether to build shared libraries... " >&6; }
11907 test "$can_build_shared" = "no" && enable_shared=no
11908
11909 # On AIX, shared libraries and static libraries use the same namespace, and
11910 # are all built from PIC.
11911 case $host_os in
11912 aix3*)
11913 test "$enable_shared" = yes && enable_static=no
11914 if test -n "$RANLIB"; then
11915 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11916 postinstall_cmds='$RANLIB $lib'
11917 fi
11918 ;;
11919
11920 aix[4-9]*)
11921 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11922 test "$enable_shared" = yes && enable_static=no
11923 fi
11924 ;;
11925 esac
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11927 $as_echo "$enable_shared" >&6; }
11928
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11930 $as_echo_n "checking whether to build static libraries... " >&6; }
11931 # Make sure either enable_shared or enable_static is yes.
11932 test "$enable_shared" = yes || enable_static=yes
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11934 $as_echo "$enable_static" >&6; }
11935
11936
11937
11938
11939 fi
11940 ac_ext=c
11941 ac_cpp='$CPP $CPPFLAGS'
11942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11945
11946 CC="$lt_save_CC"
11947
11948 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11949 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11950 (test "X$CXX" != "Xg++"))) ; then
11951 ac_ext=cpp
11952 ac_cpp='$CXXCPP $CPPFLAGS'
11953 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11954 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11955 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11957 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11958 if test -z "$CXXCPP"; then
11959 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11960 $as_echo_n "(cached) " >&6
11961 else
11962 # Double quotes because CXXCPP needs to be expanded
11963 for CXXCPP in "$CXX -E" "/lib/cpp"
11964 do
11965 ac_preproc_ok=false
11966 for ac_cxx_preproc_warn_flag in '' yes
11967 do
11968 # Use a header file that comes with gcc, so configuring glibc
11969 # with a fresh cross-compiler works.
11970 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11971 # <limits.h> exists even on freestanding compilers.
11972 # On the NeXT, cc -E runs the code through the compiler's parser,
11973 # not just through cpp. "Syntax error" is here to catch this case.
11974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11975 /* end confdefs.h. */
11976 #ifdef __STDC__
11977 # include <limits.h>
11978 #else
11979 # include <assert.h>
11980 #endif
11981 Syntax error
11982 _ACEOF
11983 if ac_fn_cxx_try_cpp "$LINENO"; then :
11984
11985 else
11986 # Broken: fails on valid input.
11987 continue
11988 fi
11989 rm -f conftest.err conftest.$ac_ext
11990
11991 # OK, works on sane cases. Now check whether nonexistent headers
11992 # can be detected and how.
11993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11994 /* end confdefs.h. */
11995 #include <ac_nonexistent.h>
11996 _ACEOF
11997 if ac_fn_cxx_try_cpp "$LINENO"; then :
11998 # Broken: success on invalid input.
11999 continue
12000 else
12001 # Passes both tests.
12002 ac_preproc_ok=:
12003 break
12004 fi
12005 rm -f conftest.err conftest.$ac_ext
12006
12007 done
12008 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12009 rm -f conftest.err conftest.$ac_ext
12010 if $ac_preproc_ok; then :
12011 break
12012 fi
12013
12014 done
12015 ac_cv_prog_CXXCPP=$CXXCPP
12016
12017 fi
12018 CXXCPP=$ac_cv_prog_CXXCPP
12019 else
12020 ac_cv_prog_CXXCPP=$CXXCPP
12021 fi
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12023 $as_echo "$CXXCPP" >&6; }
12024 ac_preproc_ok=false
12025 for ac_cxx_preproc_warn_flag in '' yes
12026 do
12027 # Use a header file that comes with gcc, so configuring glibc
12028 # with a fresh cross-compiler works.
12029 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12030 # <limits.h> exists even on freestanding compilers.
12031 # On the NeXT, cc -E runs the code through the compiler's parser,
12032 # not just through cpp. "Syntax error" is here to catch this case.
12033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12034 /* end confdefs.h. */
12035 #ifdef __STDC__
12036 # include <limits.h>
12037 #else
12038 # include <assert.h>
12039 #endif
12040 Syntax error
12041 _ACEOF
12042 if ac_fn_cxx_try_cpp "$LINENO"; then :
12043
12044 else
12045 # Broken: fails on valid input.
12046 continue
12047 fi
12048 rm -f conftest.err conftest.$ac_ext
12049
12050 # OK, works on sane cases. Now check whether nonexistent headers
12051 # can be detected and how.
12052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12053 /* end confdefs.h. */
12054 #include <ac_nonexistent.h>
12055 _ACEOF
12056 if ac_fn_cxx_try_cpp "$LINENO"; then :
12057 # Broken: success on invalid input.
12058 continue
12059 else
12060 # Passes both tests.
12061 ac_preproc_ok=:
12062 break
12063 fi
12064 rm -f conftest.err conftest.$ac_ext
12065
12066 done
12067 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12068 rm -f conftest.err conftest.$ac_ext
12069 if $ac_preproc_ok; then :
12070
12071 else
12072 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12073 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12074 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12075 See \`config.log' for more details." "$LINENO" 5; }
12076 fi
12077
12078 ac_ext=c
12079 ac_cpp='$CPP $CPPFLAGS'
12080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12083
12084 else
12085 _lt_caught_CXX_error=yes
12086 fi
12087
12088 ac_ext=cpp
12089 ac_cpp='$CXXCPP $CPPFLAGS'
12090 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12091 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12092 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12093
12094 archive_cmds_need_lc_CXX=no
12095 allow_undefined_flag_CXX=
12096 always_export_symbols_CXX=no
12097 archive_expsym_cmds_CXX=
12098 compiler_needs_object_CXX=no
12099 export_dynamic_flag_spec_CXX=
12100 hardcode_direct_CXX=no
12101 hardcode_direct_absolute_CXX=no
12102 hardcode_libdir_flag_spec_CXX=
12103 hardcode_libdir_flag_spec_ld_CXX=
12104 hardcode_libdir_separator_CXX=
12105 hardcode_minus_L_CXX=no
12106 hardcode_shlibpath_var_CXX=unsupported
12107 hardcode_automatic_CXX=no
12108 inherit_rpath_CXX=no
12109 module_cmds_CXX=
12110 module_expsym_cmds_CXX=
12111 link_all_deplibs_CXX=unknown
12112 old_archive_cmds_CXX=$old_archive_cmds
12113 reload_flag_CXX=$reload_flag
12114 reload_cmds_CXX=$reload_cmds
12115 no_undefined_flag_CXX=
12116 whole_archive_flag_spec_CXX=
12117 enable_shared_with_static_runtimes_CXX=no
12118
12119 # Source file extension for C++ test sources.
12120 ac_ext=cpp
12121
12122 # Object file extension for compiled C++ test sources.
12123 objext=o
12124 objext_CXX=$objext
12125
12126 # No sense in running all these tests if we already determined that
12127 # the CXX compiler isn't working. Some variables (like enable_shared)
12128 # are currently assumed to apply to all compilers on this platform,
12129 # and will be corrupted by setting them based on a non-working compiler.
12130 if test "$_lt_caught_CXX_error" != yes; then
12131 # Code to be used in simple compile tests
12132 lt_simple_compile_test_code="int some_variable = 0;"
12133
12134 # Code to be used in simple link tests
12135 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12136
12137 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12138
12139
12140
12141
12142
12143
12144 # If no C compiler was specified, use CC.
12145 LTCC=${LTCC-"$CC"}
12146
12147 # If no C compiler flags were specified, use CFLAGS.
12148 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12149
12150 # Allow CC to be a program name with arguments.
12151 compiler=$CC
12152
12153
12154 # save warnings/boilerplate of simple test code
12155 ac_outfile=conftest.$ac_objext
12156 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12157 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12158 _lt_compiler_boilerplate=`cat conftest.err`
12159 $RM conftest*
12160
12161 ac_outfile=conftest.$ac_objext
12162 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12163 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12164 _lt_linker_boilerplate=`cat conftest.err`
12165 $RM -r conftest*
12166
12167
12168 # Allow CC to be a program name with arguments.
12169 lt_save_CC=$CC
12170 lt_save_LD=$LD
12171 lt_save_GCC=$GCC
12172 GCC=$GXX
12173 lt_save_with_gnu_ld=$with_gnu_ld
12174 lt_save_path_LD=$lt_cv_path_LD
12175 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12176 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12177 else
12178 $as_unset lt_cv_prog_gnu_ld
12179 fi
12180 if test -n "${lt_cv_path_LDCXX+set}"; then
12181 lt_cv_path_LD=$lt_cv_path_LDCXX
12182 else
12183 $as_unset lt_cv_path_LD
12184 fi
12185 test -z "${LDCXX+set}" || LD=$LDCXX
12186 CC=${CXX-"c++"}
12187 compiler=$CC
12188 compiler_CXX=$CC
12189 for cc_temp in $compiler""; do
12190 case $cc_temp in
12191 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12192 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12193 \-*) ;;
12194 *) break;;
12195 esac
12196 done
12197 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12198
12199
12200 if test -n "$compiler"; then
12201 # We don't want -fno-exception when compiling C++ code, so set the
12202 # no_builtin_flag separately
12203 if test "$GXX" = yes; then
12204 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12205 else
12206 lt_prog_compiler_no_builtin_flag_CXX=
12207 fi
12208
12209 if test "$GXX" = yes; then
12210 # Set up default GNU C++ configuration
12211
12212
12213
12214 # Check whether --with-gnu-ld was given.
12215 if test "${with_gnu_ld+set}" = set; then :
12216 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12217 else
12218 with_gnu_ld=no
12219 fi
12220
12221 ac_prog=ld
12222 if test "$GCC" = yes; then
12223 # Check if gcc -print-prog-name=ld gives a path.
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12225 $as_echo_n "checking for ld used by $CC... " >&6; }
12226 case $host in
12227 *-*-mingw*)
12228 # gcc leaves a trailing carriage return which upsets mingw
12229 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12230 *)
12231 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12232 esac
12233 case $ac_prog in
12234 # Accept absolute paths.
12235 [\\/]* | ?:[\\/]*)
12236 re_direlt='/[^/][^/]*/\.\./'
12237 # Canonicalize the pathname of ld
12238 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12239 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12240 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12241 done
12242 test -z "$LD" && LD="$ac_prog"
12243 ;;
12244 "")
12245 # If it fails, then pretend we aren't using GCC.
12246 ac_prog=ld
12247 ;;
12248 *)
12249 # If it is relative, then search for the first ld in PATH.
12250 with_gnu_ld=unknown
12251 ;;
12252 esac
12253 elif test "$with_gnu_ld" = yes; then
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12255 $as_echo_n "checking for GNU ld... " >&6; }
12256 else
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12258 $as_echo_n "checking for non-GNU ld... " >&6; }
12259 fi
12260 if test "${lt_cv_path_LD+set}" = set; then :
12261 $as_echo_n "(cached) " >&6
12262 else
12263 if test -z "$LD"; then
12264 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12265 for ac_dir in $PATH; do
12266 IFS="$lt_save_ifs"
12267 test -z "$ac_dir" && ac_dir=.
12268 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12269 lt_cv_path_LD="$ac_dir/$ac_prog"
12270 # Check to see if the program is GNU ld. I'd rather use --version,
12271 # but apparently some variants of GNU ld only accept -v.
12272 # Break only if it was the GNU/non-GNU ld that we prefer.
12273 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12274 *GNU* | *'with BFD'*)
12275 test "$with_gnu_ld" != no && break
12276 ;;
12277 *)
12278 test "$with_gnu_ld" != yes && break
12279 ;;
12280 esac
12281 fi
12282 done
12283 IFS="$lt_save_ifs"
12284 else
12285 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12286 fi
12287 fi
12288
12289 LD="$lt_cv_path_LD"
12290 if test -n "$LD"; then
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12292 $as_echo "$LD" >&6; }
12293 else
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12295 $as_echo "no" >&6; }
12296 fi
12297 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12299 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12300 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12301 $as_echo_n "(cached) " >&6
12302 else
12303 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12304 case `$LD -v 2>&1 </dev/null` in
12305 *GNU* | *'with BFD'*)
12306 lt_cv_prog_gnu_ld=yes
12307 ;;
12308 *)
12309 lt_cv_prog_gnu_ld=no
12310 ;;
12311 esac
12312 fi
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12314 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12315 with_gnu_ld=$lt_cv_prog_gnu_ld
12316
12317
12318
12319
12320
12321
12322
12323 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12324 # archiving commands below assume that GNU ld is being used.
12325 if test "$with_gnu_ld" = yes; then
12326 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12327 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'
12328
12329 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12330 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12331
12332 # If archive_cmds runs LD, not CC, wlarc should be empty
12333 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12334 # investigate it a little bit more. (MM)
12335 wlarc='${wl}'
12336
12337 # ancient GNU ld didn't support --whole-archive et. al.
12338 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12339 $GREP 'no-whole-archive' > /dev/null; then
12340 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12341 else
12342 whole_archive_flag_spec_CXX=
12343 fi
12344 else
12345 with_gnu_ld=no
12346 wlarc=
12347
12348 # A generic and very simple default shared library creation
12349 # command for GNU C++ for the case where it uses the native
12350 # linker, instead of GNU ld. If possible, this setting should
12351 # overridden to take advantage of the native linker features on
12352 # the platform it is being used on.
12353 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12354 fi
12355
12356 # Commands to make compiler produce verbose output that lists
12357 # what "hidden" libraries, object files and flags are used when
12358 # linking a shared library.
12359 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12360
12361 else
12362 GXX=no
12363 with_gnu_ld=no
12364 wlarc=
12365 fi
12366
12367 # PORTME: fill in a description of your system's C++ link characteristics
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12369 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12370 ld_shlibs_CXX=yes
12371 case $host_os in
12372 aix3*)
12373 # FIXME: insert proper C++ library support
12374 ld_shlibs_CXX=no
12375 ;;
12376 aix[4-9]*)
12377 if test "$host_cpu" = ia64; then
12378 # On IA64, the linker does run time linking by default, so we don't
12379 # have to do anything special.
12380 aix_use_runtimelinking=no
12381 exp_sym_flag='-Bexport'
12382 no_entry_flag=""
12383 else
12384 aix_use_runtimelinking=no
12385
12386 # Test if we are trying to use run time linking or normal
12387 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12388 # need to do runtime linking.
12389 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12390 for ld_flag in $LDFLAGS; do
12391 case $ld_flag in
12392 *-brtl*)
12393 aix_use_runtimelinking=yes
12394 break
12395 ;;
12396 esac
12397 done
12398 ;;
12399 esac
12400
12401 exp_sym_flag='-bexport'
12402 no_entry_flag='-bnoentry'
12403 fi
12404
12405 # When large executables or shared objects are built, AIX ld can
12406 # have problems creating the table of contents. If linking a library
12407 # or program results in "error TOC overflow" add -mminimal-toc to
12408 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12409 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12410
12411 archive_cmds_CXX=''
12412 hardcode_direct_CXX=yes
12413 hardcode_direct_absolute_CXX=yes
12414 hardcode_libdir_separator_CXX=':'
12415 link_all_deplibs_CXX=yes
12416 file_list_spec_CXX='${wl}-f,'
12417
12418 if test "$GXX" = yes; then
12419 case $host_os in aix4.[012]|aix4.[012].*)
12420 # We only want to do this on AIX 4.2 and lower, the check
12421 # below for broken collect2 doesn't work under 4.3+
12422 collect2name=`${CC} -print-prog-name=collect2`
12423 if test -f "$collect2name" &&
12424 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12425 then
12426 # We have reworked collect2
12427 :
12428 else
12429 # We have old collect2
12430 hardcode_direct_CXX=unsupported
12431 # It fails to find uninstalled libraries when the uninstalled
12432 # path is not listed in the libpath. Setting hardcode_minus_L
12433 # to unsupported forces relinking
12434 hardcode_minus_L_CXX=yes
12435 hardcode_libdir_flag_spec_CXX='-L$libdir'
12436 hardcode_libdir_separator_CXX=
12437 fi
12438 esac
12439 shared_flag='-shared'
12440 if test "$aix_use_runtimelinking" = yes; then
12441 shared_flag="$shared_flag "'${wl}-G'
12442 fi
12443 else
12444 # not using gcc
12445 if test "$host_cpu" = ia64; then
12446 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12447 # chokes on -Wl,-G. The following line is correct:
12448 shared_flag='-G'
12449 else
12450 if test "$aix_use_runtimelinking" = yes; then
12451 shared_flag='${wl}-G'
12452 else
12453 shared_flag='${wl}-bM:SRE'
12454 fi
12455 fi
12456 fi
12457
12458 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12459 # It seems that -bexpall does not export symbols beginning with
12460 # underscore (_), so it is better to generate a list of symbols to
12461 # export.
12462 always_export_symbols_CXX=yes
12463 if test "$aix_use_runtimelinking" = yes; then
12464 # Warning - without using the other runtime loading flags (-brtl),
12465 # -berok will link without error, but may produce a broken library.
12466 allow_undefined_flag_CXX='-berok'
12467 # Determine the default libpath from the value encoded in an empty
12468 # executable.
12469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12470 /* end confdefs.h. */
12471
12472 int
12473 main ()
12474 {
12475
12476 ;
12477 return 0;
12478 }
12479 _ACEOF
12480 if ac_fn_cxx_try_link "$LINENO"; then :
12481
12482 lt_aix_libpath_sed='
12483 /Import File Strings/,/^$/ {
12484 /^0/ {
12485 s/^0 *\(.*\)$/\1/
12486 p
12487 }
12488 }'
12489 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12490 # Check for a 64-bit object if we didn't find anything.
12491 if test -z "$aix_libpath"; then
12492 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12493 fi
12494 fi
12495 rm -f core conftest.err conftest.$ac_objext \
12496 conftest$ac_exeext conftest.$ac_ext
12497 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12498
12499 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12500
12501 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"
12502 else
12503 if test "$host_cpu" = ia64; then
12504 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12505 allow_undefined_flag_CXX="-z nodefs"
12506 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"
12507 else
12508 # Determine the default libpath from the value encoded in an
12509 # empty executable.
12510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12511 /* end confdefs.h. */
12512
12513 int
12514 main ()
12515 {
12516
12517 ;
12518 return 0;
12519 }
12520 _ACEOF
12521 if ac_fn_cxx_try_link "$LINENO"; then :
12522
12523 lt_aix_libpath_sed='
12524 /Import File Strings/,/^$/ {
12525 /^0/ {
12526 s/^0 *\(.*\)$/\1/
12527 p
12528 }
12529 }'
12530 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12531 # Check for a 64-bit object if we didn't find anything.
12532 if test -z "$aix_libpath"; then
12533 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12534 fi
12535 fi
12536 rm -f core conftest.err conftest.$ac_objext \
12537 conftest$ac_exeext conftest.$ac_ext
12538 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12539
12540 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12541 # Warning - without using the other run time loading flags,
12542 # -berok will link without error, but may produce a broken library.
12543 no_undefined_flag_CXX=' ${wl}-bernotok'
12544 allow_undefined_flag_CXX=' ${wl}-berok'
12545 if test "$with_gnu_ld" = yes; then
12546 # We only use this code for GNU lds that support --whole-archive.
12547 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12548 else
12549 # Exported symbols can be pulled into shared objects from archives
12550 whole_archive_flag_spec_CXX='$convenience'
12551 fi
12552 archive_cmds_need_lc_CXX=yes
12553 # This is similar to how AIX traditionally builds its shared
12554 # libraries.
12555 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'
12556 fi
12557 fi
12558 ;;
12559
12560 beos*)
12561 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12562 allow_undefined_flag_CXX=unsupported
12563 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12564 # support --undefined. This deserves some investigation. FIXME
12565 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12566 else
12567 ld_shlibs_CXX=no
12568 fi
12569 ;;
12570
12571 chorus*)
12572 case $cc_basename in
12573 *)
12574 # FIXME: insert proper C++ library support
12575 ld_shlibs_CXX=no
12576 ;;
12577 esac
12578 ;;
12579
12580 cygwin* | mingw* | pw32* | cegcc*)
12581 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12582 # as there is no search path for DLLs.
12583 hardcode_libdir_flag_spec_CXX='-L$libdir'
12584 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12585 allow_undefined_flag_CXX=unsupported
12586 always_export_symbols_CXX=no
12587 enable_shared_with_static_runtimes_CXX=yes
12588
12589 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12590 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'
12591 # If the export-symbols file already is a .def file (1st line
12592 # is EXPORTS), use it as is; otherwise, prepend...
12593 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12594 cp $export_symbols $output_objdir/$soname.def;
12595 else
12596 echo EXPORTS > $output_objdir/$soname.def;
12597 cat $export_symbols >> $output_objdir/$soname.def;
12598 fi~
12599 $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'
12600 else
12601 ld_shlibs_CXX=no
12602 fi
12603 ;;
12604 darwin* | rhapsody*)
12605
12606
12607 archive_cmds_need_lc_CXX=no
12608 hardcode_direct_CXX=no
12609 hardcode_automatic_CXX=yes
12610 hardcode_shlibpath_var_CXX=unsupported
12611 if test "$lt_cv_ld_force_load" = "yes"; then
12612 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\"`'
12613 else
12614 whole_archive_flag_spec_CXX=''
12615 fi
12616 link_all_deplibs_CXX=yes
12617 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12618 case $cc_basename in
12619 ifort*) _lt_dar_can_shared=yes ;;
12620 *) _lt_dar_can_shared=$GCC ;;
12621 esac
12622 if test "$_lt_dar_can_shared" = "yes"; then
12623 output_verbose_link_cmd=func_echo_all
12624 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}"
12625 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12626 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}"
12627 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}"
12628 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12629 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}"
12630 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}"
12631 fi
12632
12633 else
12634 ld_shlibs_CXX=no
12635 fi
12636
12637 ;;
12638
12639 dgux*)
12640 case $cc_basename in
12641 ec++*)
12642 # FIXME: insert proper C++ library support
12643 ld_shlibs_CXX=no
12644 ;;
12645 ghcx*)
12646 # Green Hills C++ Compiler
12647 # FIXME: insert proper C++ library support
12648 ld_shlibs_CXX=no
12649 ;;
12650 *)
12651 # FIXME: insert proper C++ library support
12652 ld_shlibs_CXX=no
12653 ;;
12654 esac
12655 ;;
12656
12657 freebsd2.*)
12658 # C++ shared libraries reported to be fairly broken before
12659 # switch to ELF
12660 ld_shlibs_CXX=no
12661 ;;
12662
12663 freebsd-elf*)
12664 archive_cmds_need_lc_CXX=no
12665 ;;
12666
12667 freebsd* | dragonfly*)
12668 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12669 # conventions
12670 ld_shlibs_CXX=yes
12671 ;;
12672
12673 gnu*)
12674 ;;
12675
12676 haiku*)
12677 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12678 link_all_deplibs_CXX=yes
12679 ;;
12680
12681 hpux9*)
12682 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12683 hardcode_libdir_separator_CXX=:
12684 export_dynamic_flag_spec_CXX='${wl}-E'
12685 hardcode_direct_CXX=yes
12686 hardcode_minus_L_CXX=yes # Not in the search PATH,
12687 # but as the default
12688 # location of the library.
12689
12690 case $cc_basename in
12691 CC*)
12692 # FIXME: insert proper C++ library support
12693 ld_shlibs_CXX=no
12694 ;;
12695 aCC*)
12696 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'
12697 # Commands to make compiler produce verbose output that lists
12698 # what "hidden" libraries, object files and flags are used when
12699 # linking a shared library.
12700 #
12701 # There doesn't appear to be a way to prevent this compiler from
12702 # explicitly linking system object files so we need to strip them
12703 # from the output so that they don't get included in the library
12704 # dependencies.
12705 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"'
12706 ;;
12707 *)
12708 if test "$GXX" = yes; then
12709 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'
12710 else
12711 # FIXME: insert proper C++ library support
12712 ld_shlibs_CXX=no
12713 fi
12714 ;;
12715 esac
12716 ;;
12717
12718 hpux10*|hpux11*)
12719 if test $with_gnu_ld = no; then
12720 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12721 hardcode_libdir_separator_CXX=:
12722
12723 case $host_cpu in
12724 hppa*64*|ia64*)
12725 ;;
12726 *)
12727 export_dynamic_flag_spec_CXX='${wl}-E'
12728 ;;
12729 esac
12730 fi
12731 case $host_cpu in
12732 hppa*64*|ia64*)
12733 hardcode_direct_CXX=no
12734 hardcode_shlibpath_var_CXX=no
12735 ;;
12736 *)
12737 hardcode_direct_CXX=yes
12738 hardcode_direct_absolute_CXX=yes
12739 hardcode_minus_L_CXX=yes # Not in the search PATH,
12740 # but as the default
12741 # location of the library.
12742 ;;
12743 esac
12744
12745 case $cc_basename in
12746 CC*)
12747 # FIXME: insert proper C++ library support
12748 ld_shlibs_CXX=no
12749 ;;
12750 aCC*)
12751 case $host_cpu in
12752 hppa*64*)
12753 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12754 ;;
12755 ia64*)
12756 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12757 ;;
12758 *)
12759 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12760 ;;
12761 esac
12762 # Commands to make compiler produce verbose output that lists
12763 # what "hidden" libraries, object files and flags are used when
12764 # linking a shared library.
12765 #
12766 # There doesn't appear to be a way to prevent this compiler from
12767 # explicitly linking system object files so we need to strip them
12768 # from the output so that they don't get included in the library
12769 # dependencies.
12770 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"'
12771 ;;
12772 *)
12773 if test "$GXX" = yes; then
12774 if test $with_gnu_ld = no; then
12775 case $host_cpu in
12776 hppa*64*)
12777 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12778 ;;
12779 ia64*)
12780 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12781 ;;
12782 *)
12783 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'
12784 ;;
12785 esac
12786 fi
12787 else
12788 # FIXME: insert proper C++ library support
12789 ld_shlibs_CXX=no
12790 fi
12791 ;;
12792 esac
12793 ;;
12794
12795 interix[3-9]*)
12796 hardcode_direct_CXX=no
12797 hardcode_shlibpath_var_CXX=no
12798 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12799 export_dynamic_flag_spec_CXX='${wl}-E'
12800 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12801 # Instead, shared libraries are loaded at an image base (0x10000000 by
12802 # default) and relocated if they conflict, which is a slow very memory
12803 # consuming and fragmenting process. To avoid this, we pick a random,
12804 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12805 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12806 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'
12807 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'
12808 ;;
12809 irix5* | irix6*)
12810 case $cc_basename in
12811 CC*)
12812 # SGI C++
12813 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'
12814
12815 # Archives containing C++ object files must be created using
12816 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12817 # necessary to make sure instantiated templates are included
12818 # in the archive.
12819 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12820 ;;
12821 *)
12822 if test "$GXX" = yes; then
12823 if test "$with_gnu_ld" = no; then
12824 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'
12825 else
12826 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'
12827 fi
12828 fi
12829 link_all_deplibs_CXX=yes
12830 ;;
12831 esac
12832 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12833 hardcode_libdir_separator_CXX=:
12834 inherit_rpath_CXX=yes
12835 ;;
12836
12837 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12838 case $cc_basename in
12839 KCC*)
12840 # Kuck and Associates, Inc. (KAI) C++ Compiler
12841
12842 # KCC will only create a shared library if the output file
12843 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12844 # to its proper name (with version) after linking.
12845 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'
12846 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'
12847 # Commands to make compiler produce verbose output that lists
12848 # what "hidden" libraries, object files and flags are used when
12849 # linking a shared library.
12850 #
12851 # There doesn't appear to be a way to prevent this compiler from
12852 # explicitly linking system object files so we need to strip them
12853 # from the output so that they don't get included in the library
12854 # dependencies.
12855 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"'
12856
12857 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12858 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12859
12860 # Archives containing C++ object files must be created using
12861 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12862 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12863 ;;
12864 icpc* | ecpc* )
12865 # Intel C++
12866 with_gnu_ld=yes
12867 # version 8.0 and above of icpc choke on multiply defined symbols
12868 # if we add $predep_objects and $postdep_objects, however 7.1 and
12869 # earlier do not add the objects themselves.
12870 case `$CC -V 2>&1` in
12871 *"Version 7."*)
12872 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12873 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'
12874 ;;
12875 *) # Version 8.0 or newer
12876 tmp_idyn=
12877 case $host_cpu in
12878 ia64*) tmp_idyn=' -i_dynamic';;
12879 esac
12880 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12881 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'
12882 ;;
12883 esac
12884 archive_cmds_need_lc_CXX=no
12885 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12886 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12887 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12888 ;;
12889 pgCC* | pgcpp*)
12890 # Portland Group C++ compiler
12891 case `$CC -V` in
12892 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12893 prelink_cmds_CXX='tpldir=Template.dir~
12894 rm -rf $tpldir~
12895 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12896 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12897 old_archive_cmds_CXX='tpldir=Template.dir~
12898 rm -rf $tpldir~
12899 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12900 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12901 $RANLIB $oldlib'
12902 archive_cmds_CXX='tpldir=Template.dir~
12903 rm -rf $tpldir~
12904 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12905 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12906 archive_expsym_cmds_CXX='tpldir=Template.dir~
12907 rm -rf $tpldir~
12908 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12909 $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'
12910 ;;
12911 *) # Version 6 and above use weak symbols
12912 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12913 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'
12914 ;;
12915 esac
12916
12917 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12918 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12919 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'
12920 ;;
12921 cxx*)
12922 # Compaq C++
12923 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12924 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'
12925
12926 runpath_var=LD_RUN_PATH
12927 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12928 hardcode_libdir_separator_CXX=:
12929
12930 # Commands to make compiler produce verbose output that lists
12931 # what "hidden" libraries, object files and flags are used when
12932 # linking a shared library.
12933 #
12934 # There doesn't appear to be a way to prevent this compiler from
12935 # explicitly linking system object files so we need to strip them
12936 # from the output so that they don't get included in the library
12937 # dependencies.
12938 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'
12939 ;;
12940 xl* | mpixl* | bgxl*)
12941 # IBM XL 8.0 on PPC, with GNU ld
12942 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12943 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12944 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12945 if test "x$supports_anon_versioning" = xyes; then
12946 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12947 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12948 echo "local: *; };" >> $output_objdir/$libname.ver~
12949 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12950 fi
12951 ;;
12952 *)
12953 case `$CC -V 2>&1 | sed 5q` in
12954 *Sun\ C*)
12955 # Sun C++ 5.9
12956 no_undefined_flag_CXX=' -zdefs'
12957 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12958 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'
12959 hardcode_libdir_flag_spec_CXX='-R$libdir'
12960 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'
12961 compiler_needs_object_CXX=yes
12962
12963 # Not sure whether something based on
12964 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12965 # would be better.
12966 output_verbose_link_cmd='func_echo_all'
12967
12968 # Archives containing C++ object files must be created using
12969 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12970 # necessary to make sure instantiated templates are included
12971 # in the archive.
12972 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12973 ;;
12974 esac
12975 ;;
12976 esac
12977 ;;
12978
12979 lynxos*)
12980 # FIXME: insert proper C++ library support
12981 ld_shlibs_CXX=no
12982 ;;
12983
12984 m88k*)
12985 # FIXME: insert proper C++ library support
12986 ld_shlibs_CXX=no
12987 ;;
12988
12989 mvs*)
12990 case $cc_basename in
12991 cxx*)
12992 # FIXME: insert proper C++ library support
12993 ld_shlibs_CXX=no
12994 ;;
12995 *)
12996 # FIXME: insert proper C++ library support
12997 ld_shlibs_CXX=no
12998 ;;
12999 esac
13000 ;;
13001
13002 netbsd*)
13003 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13004 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13005 wlarc=
13006 hardcode_libdir_flag_spec_CXX='-R$libdir'
13007 hardcode_direct_CXX=yes
13008 hardcode_shlibpath_var_CXX=no
13009 fi
13010 # Workaround some broken pre-1.5 toolchains
13011 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13012 ;;
13013
13014 *nto* | *qnx*)
13015 ld_shlibs_CXX=yes
13016 ;;
13017
13018 openbsd2*)
13019 # C++ shared libraries are fairly broken
13020 ld_shlibs_CXX=no
13021 ;;
13022
13023 openbsd*)
13024 if test -f /usr/libexec/ld.so; then
13025 hardcode_direct_CXX=yes
13026 hardcode_shlibpath_var_CXX=no
13027 hardcode_direct_absolute_CXX=yes
13028 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13029 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13030 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13031 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13032 export_dynamic_flag_spec_CXX='${wl}-E'
13033 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13034 fi
13035 output_verbose_link_cmd=func_echo_all
13036 else
13037 ld_shlibs_CXX=no
13038 fi
13039 ;;
13040
13041 osf3* | osf4* | osf5*)
13042 case $cc_basename in
13043 KCC*)
13044 # Kuck and Associates, Inc. (KAI) C++ Compiler
13045
13046 # KCC will only create a shared library if the output file
13047 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13048 # to its proper name (with version) after linking.
13049 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'
13050
13051 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13052 hardcode_libdir_separator_CXX=:
13053
13054 # Archives containing C++ object files must be created using
13055 # the KAI C++ compiler.
13056 case $host in
13057 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13058 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13059 esac
13060 ;;
13061 RCC*)
13062 # Rational C++ 2.4.1
13063 # FIXME: insert proper C++ library support
13064 ld_shlibs_CXX=no
13065 ;;
13066 cxx*)
13067 case $host in
13068 osf3*)
13069 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13070 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'
13071 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13072 ;;
13073 *)
13074 allow_undefined_flag_CXX=' -expect_unresolved \*'
13075 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'
13076 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13077 echo "-hidden">> $lib.exp~
13078 $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~
13079 $RM $lib.exp'
13080 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13081 ;;
13082 esac
13083
13084 hardcode_libdir_separator_CXX=:
13085
13086 # Commands to make compiler produce verbose output that lists
13087 # what "hidden" libraries, object files and flags are used when
13088 # linking a shared library.
13089 #
13090 # There doesn't appear to be a way to prevent this compiler from
13091 # explicitly linking system object files so we need to strip them
13092 # from the output so that they don't get included in the library
13093 # dependencies.
13094 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"'
13095 ;;
13096 *)
13097 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13098 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13099 case $host in
13100 osf3*)
13101 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'
13102 ;;
13103 *)
13104 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'
13105 ;;
13106 esac
13107
13108 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13109 hardcode_libdir_separator_CXX=:
13110
13111 # Commands to make compiler produce verbose output that lists
13112 # what "hidden" libraries, object files and flags are used when
13113 # linking a shared library.
13114 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13115
13116 else
13117 # FIXME: insert proper C++ library support
13118 ld_shlibs_CXX=no
13119 fi
13120 ;;
13121 esac
13122 ;;
13123
13124 psos*)
13125 # FIXME: insert proper C++ library support
13126 ld_shlibs_CXX=no
13127 ;;
13128
13129 sunos4*)
13130 case $cc_basename in
13131 CC*)
13132 # Sun C++ 4.x
13133 # FIXME: insert proper C++ library support
13134 ld_shlibs_CXX=no
13135 ;;
13136 lcc*)
13137 # Lucid
13138 # FIXME: insert proper C++ library support
13139 ld_shlibs_CXX=no
13140 ;;
13141 *)
13142 # FIXME: insert proper C++ library support
13143 ld_shlibs_CXX=no
13144 ;;
13145 esac
13146 ;;
13147
13148 solaris*)
13149 case $cc_basename in
13150 CC*)
13151 # Sun C++ 4.2, 5.x and Centerline C++
13152 archive_cmds_need_lc_CXX=yes
13153 no_undefined_flag_CXX=' -zdefs'
13154 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13155 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13156 $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'
13157
13158 hardcode_libdir_flag_spec_CXX='-R$libdir'
13159 hardcode_shlibpath_var_CXX=no
13160 case $host_os in
13161 solaris2.[0-5] | solaris2.[0-5].*) ;;
13162 *)
13163 # The compiler driver will combine and reorder linker options,
13164 # but understands `-z linker_flag'.
13165 # Supported since Solaris 2.6 (maybe 2.5.1?)
13166 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13167 ;;
13168 esac
13169 link_all_deplibs_CXX=yes
13170
13171 output_verbose_link_cmd='func_echo_all'
13172
13173 # Archives containing C++ object files must be created using
13174 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13175 # necessary to make sure instantiated templates are included
13176 # in the archive.
13177 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13178 ;;
13179 gcx*)
13180 # Green Hills C++ Compiler
13181 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13182
13183 # The C++ compiler must be used to create the archive.
13184 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13185 ;;
13186 *)
13187 # GNU C++ compiler with Solaris linker
13188 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13189 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13190 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13191 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13192 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13193 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13194
13195 # Commands to make compiler produce verbose output that lists
13196 # what "hidden" libraries, object files and flags are used when
13197 # linking a shared library.
13198 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13199 else
13200 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13201 # platform.
13202 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13203 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13204 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13205
13206 # Commands to make compiler produce verbose output that lists
13207 # what "hidden" libraries, object files and flags are used when
13208 # linking a shared library.
13209 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13210 fi
13211
13212 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13213 case $host_os in
13214 solaris2.[0-5] | solaris2.[0-5].*) ;;
13215 *)
13216 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13217 ;;
13218 esac
13219 fi
13220 ;;
13221 esac
13222 ;;
13223
13224 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13225 no_undefined_flag_CXX='${wl}-z,text'
13226 archive_cmds_need_lc_CXX=no
13227 hardcode_shlibpath_var_CXX=no
13228 runpath_var='LD_RUN_PATH'
13229
13230 case $cc_basename in
13231 CC*)
13232 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13233 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13234 ;;
13235 *)
13236 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13237 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13238 ;;
13239 esac
13240 ;;
13241
13242 sysv5* | sco3.2v5* | sco5v6*)
13243 # Note: We can NOT use -z defs as we might desire, because we do not
13244 # link with -lc, and that would cause any symbols used from libc to
13245 # always be unresolved, which means just about no library would
13246 # ever link correctly. If we're not using GNU ld we use -z text
13247 # though, which does catch some bad symbols but isn't as heavy-handed
13248 # as -z defs.
13249 no_undefined_flag_CXX='${wl}-z,text'
13250 allow_undefined_flag_CXX='${wl}-z,nodefs'
13251 archive_cmds_need_lc_CXX=no
13252 hardcode_shlibpath_var_CXX=no
13253 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13254 hardcode_libdir_separator_CXX=':'
13255 link_all_deplibs_CXX=yes
13256 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13257 runpath_var='LD_RUN_PATH'
13258
13259 case $cc_basename in
13260 CC*)
13261 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13262 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13263 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13264 '"$old_archive_cmds_CXX"
13265 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13266 '"$reload_cmds_CXX"
13267 ;;
13268 *)
13269 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13270 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13271 ;;
13272 esac
13273 ;;
13274
13275 tandem*)
13276 case $cc_basename in
13277 NCC*)
13278 # NonStop-UX NCC 3.20
13279 # FIXME: insert proper C++ library support
13280 ld_shlibs_CXX=no
13281 ;;
13282 *)
13283 # FIXME: insert proper C++ library support
13284 ld_shlibs_CXX=no
13285 ;;
13286 esac
13287 ;;
13288
13289 vxworks*)
13290 # FIXME: insert proper C++ library support
13291 ld_shlibs_CXX=no
13292 ;;
13293
13294 *)
13295 # FIXME: insert proper C++ library support
13296 ld_shlibs_CXX=no
13297 ;;
13298 esac
13299
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13301 $as_echo "$ld_shlibs_CXX" >&6; }
13302 test "$ld_shlibs_CXX" = no && can_build_shared=no
13303
13304 GCC_CXX="$GXX"
13305 LD_CXX="$LD"
13306
13307 ## CAVEAT EMPTOR:
13308 ## There is no encapsulation within the following macros, do not change
13309 ## the running order or otherwise move them around unless you know exactly
13310 ## what you are doing...
13311 # Dependencies to place before and after the object being linked:
13312 predep_objects_CXX=
13313 postdep_objects_CXX=
13314 predeps_CXX=
13315 postdeps_CXX=
13316 compiler_lib_search_path_CXX=
13317
13318 cat > conftest.$ac_ext <<_LT_EOF
13319 class Foo
13320 {
13321 public:
13322 Foo (void) { a = 0; }
13323 private:
13324 int a;
13325 };
13326 _LT_EOF
13327
13328 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13329 (eval $ac_compile) 2>&5
13330 ac_status=$?
13331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13332 test $ac_status = 0; }; then
13333 # Parse the compiler output and extract the necessary
13334 # objects, libraries and library flags.
13335
13336 # Sentinel used to keep track of whether or not we are before
13337 # the conftest object file.
13338 pre_test_object_deps_done=no
13339
13340 for p in `eval "$output_verbose_link_cmd"`; do
13341 case $p in
13342
13343 -L* | -R* | -l*)
13344 # Some compilers place space between "-{L,R}" and the path.
13345 # Remove the space.
13346 if test $p = "-L" ||
13347 test $p = "-R"; then
13348 prev=$p
13349 continue
13350 else
13351 prev=
13352 fi
13353
13354 if test "$pre_test_object_deps_done" = no; then
13355 case $p in
13356 -L* | -R*)
13357 # Internal compiler library paths should come after those
13358 # provided the user. The postdeps already come after the
13359 # user supplied libs so there is no need to process them.
13360 if test -z "$compiler_lib_search_path_CXX"; then
13361 compiler_lib_search_path_CXX="${prev}${p}"
13362 else
13363 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13364 fi
13365 ;;
13366 # The "-l" case would never come before the object being
13367 # linked, so don't bother handling this case.
13368 esac
13369 else
13370 if test -z "$postdeps_CXX"; then
13371 postdeps_CXX="${prev}${p}"
13372 else
13373 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13374 fi
13375 fi
13376 ;;
13377
13378 *.$objext)
13379 # This assumes that the test object file only shows up
13380 # once in the compiler output.
13381 if test "$p" = "conftest.$objext"; then
13382 pre_test_object_deps_done=yes
13383 continue
13384 fi
13385
13386 if test "$pre_test_object_deps_done" = no; then
13387 if test -z "$predep_objects_CXX"; then
13388 predep_objects_CXX="$p"
13389 else
13390 predep_objects_CXX="$predep_objects_CXX $p"
13391 fi
13392 else
13393 if test -z "$postdep_objects_CXX"; then
13394 postdep_objects_CXX="$p"
13395 else
13396 postdep_objects_CXX="$postdep_objects_CXX $p"
13397 fi
13398 fi
13399 ;;
13400
13401 *) ;; # Ignore the rest.
13402
13403 esac
13404 done
13405
13406 # Clean up.
13407 rm -f a.out a.exe
13408 else
13409 echo "libtool.m4: error: problem compiling CXX test program"
13410 fi
13411
13412 $RM -f confest.$objext
13413
13414 # PORTME: override above test on systems where it is broken
13415 case $host_os in
13416 interix[3-9]*)
13417 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13418 # hack all around it, let's just trust "g++" to DTRT.
13419 predep_objects_CXX=
13420 postdep_objects_CXX=
13421 postdeps_CXX=
13422 ;;
13423
13424 linux*)
13425 case `$CC -V 2>&1 | sed 5q` in
13426 *Sun\ C*)
13427 # Sun C++ 5.9
13428
13429 # The more standards-conforming stlport4 library is
13430 # incompatible with the Cstd library. Avoid specifying
13431 # it if it's in CXXFLAGS. Ignore libCrun as
13432 # -library=stlport4 depends on it.
13433 case " $CXX $CXXFLAGS " in
13434 *" -library=stlport4 "*)
13435 solaris_use_stlport4=yes
13436 ;;
13437 esac
13438
13439 if test "$solaris_use_stlport4" != yes; then
13440 postdeps_CXX='-library=Cstd -library=Crun'
13441 fi
13442 ;;
13443 esac
13444 ;;
13445
13446 solaris*)
13447 case $cc_basename in
13448 CC*)
13449 # The more standards-conforming stlport4 library is
13450 # incompatible with the Cstd library. Avoid specifying
13451 # it if it's in CXXFLAGS. Ignore libCrun as
13452 # -library=stlport4 depends on it.
13453 case " $CXX $CXXFLAGS " in
13454 *" -library=stlport4 "*)
13455 solaris_use_stlport4=yes
13456 ;;
13457 esac
13458
13459 # Adding this requires a known-good setup of shared libraries for
13460 # Sun compiler versions before 5.6, else PIC objects from an old
13461 # archive will be linked into the output, leading to subtle bugs.
13462 if test "$solaris_use_stlport4" != yes; then
13463 postdeps_CXX='-library=Cstd -library=Crun'
13464 fi
13465 ;;
13466 esac
13467 ;;
13468 esac
13469
13470
13471 case " $postdeps_CXX " in
13472 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13473 esac
13474 compiler_lib_search_dirs_CXX=
13475 if test -n "${compiler_lib_search_path_CXX}"; then
13476 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13477 fi
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509 lt_prog_compiler_wl_CXX=
13510 lt_prog_compiler_pic_CXX=
13511 lt_prog_compiler_static_CXX=
13512
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13514 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13515
13516 # C++ specific cases for pic, static, wl, etc.
13517 if test "$GXX" = yes; then
13518 lt_prog_compiler_wl_CXX='-Wl,'
13519 lt_prog_compiler_static_CXX='-static'
13520
13521 case $host_os in
13522 aix*)
13523 # All AIX code is PIC.
13524 if test "$host_cpu" = ia64; then
13525 # AIX 5 now supports IA64 processor
13526 lt_prog_compiler_static_CXX='-Bstatic'
13527 fi
13528 lt_prog_compiler_pic_CXX='-fPIC'
13529 ;;
13530
13531 amigaos*)
13532 case $host_cpu in
13533 powerpc)
13534 # see comment about AmigaOS4 .so support
13535 lt_prog_compiler_pic_CXX='-fPIC'
13536 ;;
13537 m68k)
13538 # FIXME: we need at least 68020 code to build shared libraries, but
13539 # adding the `-m68020' flag to GCC prevents building anything better,
13540 # like `-m68040'.
13541 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13542 ;;
13543 esac
13544 ;;
13545
13546 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13547 # PIC is the default for these OSes.
13548 ;;
13549 mingw* | cygwin* | os2* | pw32* | cegcc*)
13550 # This hack is so that the source file can tell whether it is being
13551 # built for inclusion in a dll (and should export symbols for example).
13552 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13553 # (--disable-auto-import) libraries
13554 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13555 ;;
13556 darwin* | rhapsody*)
13557 # PIC is the default on this platform
13558 # Common symbols not allowed in MH_DYLIB files
13559 lt_prog_compiler_pic_CXX='-fno-common'
13560 ;;
13561 *djgpp*)
13562 # DJGPP does not support shared libraries at all
13563 lt_prog_compiler_pic_CXX=
13564 ;;
13565 haiku*)
13566 # PIC is the default for Haiku.
13567 # The "-static" flag exists, but is broken.
13568 lt_prog_compiler_static_CXX=
13569 ;;
13570 interix[3-9]*)
13571 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13572 # Instead, we relocate shared libraries at runtime.
13573 ;;
13574 sysv4*MP*)
13575 if test -d /usr/nec; then
13576 lt_prog_compiler_pic_CXX=-Kconform_pic
13577 fi
13578 ;;
13579 hpux*)
13580 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13581 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13582 # sets the default TLS model and affects inlining.
13583 case $host_cpu in
13584 hppa*64*)
13585 ;;
13586 *)
13587 lt_prog_compiler_pic_CXX='-fPIC'
13588 ;;
13589 esac
13590 ;;
13591 *qnx* | *nto*)
13592 # QNX uses GNU C++, but need to define -shared option too, otherwise
13593 # it will coredump.
13594 lt_prog_compiler_pic_CXX='-fPIC -shared'
13595 ;;
13596 *)
13597 lt_prog_compiler_pic_CXX='-fPIC'
13598 ;;
13599 esac
13600 else
13601 case $host_os in
13602 aix[4-9]*)
13603 # All AIX code is PIC.
13604 if test "$host_cpu" = ia64; then
13605 # AIX 5 now supports IA64 processor
13606 lt_prog_compiler_static_CXX='-Bstatic'
13607 else
13608 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13609 fi
13610 ;;
13611 chorus*)
13612 case $cc_basename in
13613 cxch68*)
13614 # Green Hills C++ Compiler
13615 # _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"
13616 ;;
13617 esac
13618 ;;
13619 dgux*)
13620 case $cc_basename in
13621 ec++*)
13622 lt_prog_compiler_pic_CXX='-KPIC'
13623 ;;
13624 ghcx*)
13625 # Green Hills C++ Compiler
13626 lt_prog_compiler_pic_CXX='-pic'
13627 ;;
13628 *)
13629 ;;
13630 esac
13631 ;;
13632 freebsd* | dragonfly*)
13633 # FreeBSD uses GNU C++
13634 ;;
13635 hpux9* | hpux10* | hpux11*)
13636 case $cc_basename in
13637 CC*)
13638 lt_prog_compiler_wl_CXX='-Wl,'
13639 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13640 if test "$host_cpu" != ia64; then
13641 lt_prog_compiler_pic_CXX='+Z'
13642 fi
13643 ;;
13644 aCC*)
13645 lt_prog_compiler_wl_CXX='-Wl,'
13646 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13647 case $host_cpu in
13648 hppa*64*|ia64*)
13649 # +Z the default
13650 ;;
13651 *)
13652 lt_prog_compiler_pic_CXX='+Z'
13653 ;;
13654 esac
13655 ;;
13656 *)
13657 ;;
13658 esac
13659 ;;
13660 interix*)
13661 # This is c89, which is MS Visual C++ (no shared libs)
13662 # Anyone wants to do a port?
13663 ;;
13664 irix5* | irix6* | nonstopux*)
13665 case $cc_basename in
13666 CC*)
13667 lt_prog_compiler_wl_CXX='-Wl,'
13668 lt_prog_compiler_static_CXX='-non_shared'
13669 # CC pic flag -KPIC is the default.
13670 ;;
13671 *)
13672 ;;
13673 esac
13674 ;;
13675 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13676 case $cc_basename in
13677 KCC*)
13678 # KAI C++ Compiler
13679 lt_prog_compiler_wl_CXX='--backend -Wl,'
13680 lt_prog_compiler_pic_CXX='-fPIC'
13681 ;;
13682 ecpc* )
13683 # old Intel C++ for x86_64 which still supported -KPIC.
13684 lt_prog_compiler_wl_CXX='-Wl,'
13685 lt_prog_compiler_pic_CXX='-KPIC'
13686 lt_prog_compiler_static_CXX='-static'
13687 ;;
13688 icpc* )
13689 # Intel C++, used to be incompatible with GCC.
13690 # ICC 10 doesn't accept -KPIC any more.
13691 lt_prog_compiler_wl_CXX='-Wl,'
13692 lt_prog_compiler_pic_CXX='-fPIC'
13693 lt_prog_compiler_static_CXX='-static'
13694 ;;
13695 pgCC* | pgcpp*)
13696 # Portland Group C++ compiler
13697 lt_prog_compiler_wl_CXX='-Wl,'
13698 lt_prog_compiler_pic_CXX='-fpic'
13699 lt_prog_compiler_static_CXX='-Bstatic'
13700 ;;
13701 cxx*)
13702 # Compaq C++
13703 # Make sure the PIC flag is empty. It appears that all Alpha
13704 # Linux and Compaq Tru64 Unix objects are PIC.
13705 lt_prog_compiler_pic_CXX=
13706 lt_prog_compiler_static_CXX='-non_shared'
13707 ;;
13708 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13709 # IBM XL 8.0, 9.0 on PPC and BlueGene
13710 lt_prog_compiler_wl_CXX='-Wl,'
13711 lt_prog_compiler_pic_CXX='-qpic'
13712 lt_prog_compiler_static_CXX='-qstaticlink'
13713 ;;
13714 *)
13715 case `$CC -V 2>&1 | sed 5q` in
13716 *Sun\ C*)
13717 # Sun C++ 5.9
13718 lt_prog_compiler_pic_CXX='-KPIC'
13719 lt_prog_compiler_static_CXX='-Bstatic'
13720 lt_prog_compiler_wl_CXX='-Qoption ld '
13721 ;;
13722 esac
13723 ;;
13724 esac
13725 ;;
13726 lynxos*)
13727 ;;
13728 m88k*)
13729 ;;
13730 mvs*)
13731 case $cc_basename in
13732 cxx*)
13733 lt_prog_compiler_pic_CXX='-W c,exportall'
13734 ;;
13735 *)
13736 ;;
13737 esac
13738 ;;
13739 netbsd*)
13740 ;;
13741 *qnx* | *nto*)
13742 # QNX uses GNU C++, but need to define -shared option too, otherwise
13743 # it will coredump.
13744 lt_prog_compiler_pic_CXX='-fPIC -shared'
13745 ;;
13746 osf3* | osf4* | osf5*)
13747 case $cc_basename in
13748 KCC*)
13749 lt_prog_compiler_wl_CXX='--backend -Wl,'
13750 ;;
13751 RCC*)
13752 # Rational C++ 2.4.1
13753 lt_prog_compiler_pic_CXX='-pic'
13754 ;;
13755 cxx*)
13756 # Digital/Compaq C++
13757 lt_prog_compiler_wl_CXX='-Wl,'
13758 # Make sure the PIC flag is empty. It appears that all Alpha
13759 # Linux and Compaq Tru64 Unix objects are PIC.
13760 lt_prog_compiler_pic_CXX=
13761 lt_prog_compiler_static_CXX='-non_shared'
13762 ;;
13763 *)
13764 ;;
13765 esac
13766 ;;
13767 psos*)
13768 ;;
13769 solaris*)
13770 case $cc_basename in
13771 CC*)
13772 # Sun C++ 4.2, 5.x and Centerline C++
13773 lt_prog_compiler_pic_CXX='-KPIC'
13774 lt_prog_compiler_static_CXX='-Bstatic'
13775 lt_prog_compiler_wl_CXX='-Qoption ld '
13776 ;;
13777 gcx*)
13778 # Green Hills C++ Compiler
13779 lt_prog_compiler_pic_CXX='-PIC'
13780 ;;
13781 *)
13782 ;;
13783 esac
13784 ;;
13785 sunos4*)
13786 case $cc_basename in
13787 CC*)
13788 # Sun C++ 4.x
13789 lt_prog_compiler_pic_CXX='-pic'
13790 lt_prog_compiler_static_CXX='-Bstatic'
13791 ;;
13792 lcc*)
13793 # Lucid
13794 lt_prog_compiler_pic_CXX='-pic'
13795 ;;
13796 *)
13797 ;;
13798 esac
13799 ;;
13800 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13801 case $cc_basename in
13802 CC*)
13803 lt_prog_compiler_wl_CXX='-Wl,'
13804 lt_prog_compiler_pic_CXX='-KPIC'
13805 lt_prog_compiler_static_CXX='-Bstatic'
13806 ;;
13807 esac
13808 ;;
13809 tandem*)
13810 case $cc_basename in
13811 NCC*)
13812 # NonStop-UX NCC 3.20
13813 lt_prog_compiler_pic_CXX='-KPIC'
13814 ;;
13815 *)
13816 ;;
13817 esac
13818 ;;
13819 vxworks*)
13820 ;;
13821 *)
13822 lt_prog_compiler_can_build_shared_CXX=no
13823 ;;
13824 esac
13825 fi
13826
13827 case $host_os in
13828 # For platforms which do not support PIC, -DPIC is meaningless:
13829 *djgpp*)
13830 lt_prog_compiler_pic_CXX=
13831 ;;
13832 *)
13833 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13834 ;;
13835 esac
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13837 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13838
13839
13840
13841 #
13842 # Check to make sure the PIC flag actually works.
13843 #
13844 if test -n "$lt_prog_compiler_pic_CXX"; then
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13846 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13847 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13848 $as_echo_n "(cached) " >&6
13849 else
13850 lt_cv_prog_compiler_pic_works_CXX=no
13851 ac_outfile=conftest.$ac_objext
13852 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13853 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13854 # Insert the option either (1) after the last *FLAGS variable, or
13855 # (2) before a word containing "conftest.", or (3) at the end.
13856 # Note that $ac_compile itself does not contain backslashes and begins
13857 # with a dollar sign (not a hyphen), so the echo should work correctly.
13858 # The option is referenced via a variable to avoid confusing sed.
13859 lt_compile=`echo "$ac_compile" | $SED \
13860 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13861 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13862 -e 's:$: $lt_compiler_flag:'`
13863 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13864 (eval "$lt_compile" 2>conftest.err)
13865 ac_status=$?
13866 cat conftest.err >&5
13867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868 if (exit $ac_status) && test -s "$ac_outfile"; then
13869 # The compiler can only warn and ignore the option if not recognized
13870 # So say no if there are warnings other than the usual output.
13871 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13872 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13873 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13874 lt_cv_prog_compiler_pic_works_CXX=yes
13875 fi
13876 fi
13877 $RM conftest*
13878
13879 fi
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13881 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13882
13883 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13884 case $lt_prog_compiler_pic_CXX in
13885 "" | " "*) ;;
13886 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13887 esac
13888 else
13889 lt_prog_compiler_pic_CXX=
13890 lt_prog_compiler_can_build_shared_CXX=no
13891 fi
13892
13893 fi
13894
13895
13896
13897 #
13898 # Check to make sure the static flag actually works.
13899 #
13900 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13902 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13903 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13904 $as_echo_n "(cached) " >&6
13905 else
13906 lt_cv_prog_compiler_static_works_CXX=no
13907 save_LDFLAGS="$LDFLAGS"
13908 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13909 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13910 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13911 # The linker can only warn and ignore the option if not recognized
13912 # So say no if there are warnings
13913 if test -s conftest.err; then
13914 # Append any errors to the config.log.
13915 cat conftest.err 1>&5
13916 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13917 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13918 if diff conftest.exp conftest.er2 >/dev/null; then
13919 lt_cv_prog_compiler_static_works_CXX=yes
13920 fi
13921 else
13922 lt_cv_prog_compiler_static_works_CXX=yes
13923 fi
13924 fi
13925 $RM -r conftest*
13926 LDFLAGS="$save_LDFLAGS"
13927
13928 fi
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13930 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13931
13932 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13933 :
13934 else
13935 lt_prog_compiler_static_CXX=
13936 fi
13937
13938
13939
13940
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13942 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13943 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13944 $as_echo_n "(cached) " >&6
13945 else
13946 lt_cv_prog_compiler_c_o_CXX=no
13947 $RM -r conftest 2>/dev/null
13948 mkdir conftest
13949 cd conftest
13950 mkdir out
13951 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13952
13953 lt_compiler_flag="-o out/conftest2.$ac_objext"
13954 # Insert the option either (1) after the last *FLAGS variable, or
13955 # (2) before a word containing "conftest.", or (3) at the end.
13956 # Note that $ac_compile itself does not contain backslashes and begins
13957 # with a dollar sign (not a hyphen), so the echo should work correctly.
13958 lt_compile=`echo "$ac_compile" | $SED \
13959 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13960 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13961 -e 's:$: $lt_compiler_flag:'`
13962 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13963 (eval "$lt_compile" 2>out/conftest.err)
13964 ac_status=$?
13965 cat out/conftest.err >&5
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13968 then
13969 # The compiler can only warn and ignore the option if not recognized
13970 # So say no if there are warnings
13971 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13972 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13973 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13974 lt_cv_prog_compiler_c_o_CXX=yes
13975 fi
13976 fi
13977 chmod u+w . 2>&5
13978 $RM conftest*
13979 # SGI C++ compiler will create directory out/ii_files/ for
13980 # template instantiation
13981 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13982 $RM out/* && rmdir out
13983 cd ..
13984 $RM -r conftest
13985 $RM conftest*
13986
13987 fi
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13989 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13990
13991
13992
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13994 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13995 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13996 $as_echo_n "(cached) " >&6
13997 else
13998 lt_cv_prog_compiler_c_o_CXX=no
13999 $RM -r conftest 2>/dev/null
14000 mkdir conftest
14001 cd conftest
14002 mkdir out
14003 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14004
14005 lt_compiler_flag="-o out/conftest2.$ac_objext"
14006 # Insert the option either (1) after the last *FLAGS variable, or
14007 # (2) before a word containing "conftest.", or (3) at the end.
14008 # Note that $ac_compile itself does not contain backslashes and begins
14009 # with a dollar sign (not a hyphen), so the echo should work correctly.
14010 lt_compile=`echo "$ac_compile" | $SED \
14011 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14012 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14013 -e 's:$: $lt_compiler_flag:'`
14014 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14015 (eval "$lt_compile" 2>out/conftest.err)
14016 ac_status=$?
14017 cat out/conftest.err >&5
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14020 then
14021 # The compiler can only warn and ignore the option if not recognized
14022 # So say no if there are warnings
14023 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14024 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14025 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14026 lt_cv_prog_compiler_c_o_CXX=yes
14027 fi
14028 fi
14029 chmod u+w . 2>&5
14030 $RM conftest*
14031 # SGI C++ compiler will create directory out/ii_files/ for
14032 # template instantiation
14033 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14034 $RM out/* && rmdir out
14035 cd ..
14036 $RM -r conftest
14037 $RM conftest*
14038
14039 fi
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14041 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14042
14043
14044
14045
14046 hard_links="nottested"
14047 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14048 # do not overwrite the value of need_locks provided by the user
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14050 $as_echo_n "checking if we can lock with hard links... " >&6; }
14051 hard_links=yes
14052 $RM conftest*
14053 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14054 touch conftest.a
14055 ln conftest.a conftest.b 2>&5 || hard_links=no
14056 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14058 $as_echo "$hard_links" >&6; }
14059 if test "$hard_links" = no; then
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14061 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14062 need_locks=warn
14063 fi
14064 else
14065 need_locks=no
14066 fi
14067
14068
14069
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14071 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14072
14073 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14074 case $host_os in
14075 aix[4-9]*)
14076 # If we're using GNU nm, then we don't want the "-C" option.
14077 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14078 # Also, AIX nm treats weak defined symbols like other global defined
14079 # symbols, whereas GNU nm marks them as "W".
14080 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14081 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'
14082 else
14083 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'
14084 fi
14085 ;;
14086 pw32*)
14087 export_symbols_cmds_CXX="$ltdll_cmds"
14088 ;;
14089 cygwin* | mingw* | cegcc*)
14090 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'
14091 ;;
14092 *)
14093 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14094 ;;
14095 esac
14096 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14097
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14099 $as_echo "$ld_shlibs_CXX" >&6; }
14100 test "$ld_shlibs_CXX" = no && can_build_shared=no
14101
14102 with_gnu_ld_CXX=$with_gnu_ld
14103
14104
14105
14106
14107
14108
14109 #
14110 # Do we need to explicitly link libc?
14111 #
14112 case "x$archive_cmds_need_lc_CXX" in
14113 x|xyes)
14114 # Assume -lc should be added
14115 archive_cmds_need_lc_CXX=yes
14116
14117 if test "$enable_shared" = yes && test "$GCC" = yes; then
14118 case $archive_cmds_CXX in
14119 *'~'*)
14120 # FIXME: we may have to deal with multi-command sequences.
14121 ;;
14122 '$CC '*)
14123 # Test whether the compiler implicitly links with -lc since on some
14124 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14125 # to ld, don't add -lc before -lgcc.
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14127 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14128 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14129 $as_echo_n "(cached) " >&6
14130 else
14131 $RM conftest*
14132 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14133
14134 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14135 (eval $ac_compile) 2>&5
14136 ac_status=$?
14137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14138 test $ac_status = 0; } 2>conftest.err; then
14139 soname=conftest
14140 lib=conftest
14141 libobjs=conftest.$ac_objext
14142 deplibs=
14143 wl=$lt_prog_compiler_wl_CXX
14144 pic_flag=$lt_prog_compiler_pic_CXX
14145 compiler_flags=-v
14146 linker_flags=-v
14147 verstring=
14148 output_objdir=.
14149 libname=conftest
14150 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14151 allow_undefined_flag_CXX=
14152 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14153 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14154 ac_status=$?
14155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14156 test $ac_status = 0; }
14157 then
14158 lt_cv_archive_cmds_need_lc_CXX=no
14159 else
14160 lt_cv_archive_cmds_need_lc_CXX=yes
14161 fi
14162 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14163 else
14164 cat conftest.err 1>&5
14165 fi
14166 $RM conftest*
14167
14168 fi
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14170 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14171 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14172 ;;
14173 esac
14174 fi
14175 ;;
14176 esac
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14242 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14243
14244 library_names_spec=
14245 libname_spec='lib$name'
14246 soname_spec=
14247 shrext_cmds=".so"
14248 postinstall_cmds=
14249 postuninstall_cmds=
14250 finish_cmds=
14251 finish_eval=
14252 shlibpath_var=
14253 shlibpath_overrides_runpath=unknown
14254 version_type=none
14255 dynamic_linker="$host_os ld.so"
14256 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14257 need_lib_prefix=unknown
14258 hardcode_into_libs=no
14259
14260 # when you set need_version to no, make sure it does not cause -set_version
14261 # flags to be left without arguments
14262 need_version=unknown
14263
14264 case $host_os in
14265 aix3*)
14266 version_type=linux
14267 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14268 shlibpath_var=LIBPATH
14269
14270 # AIX 3 has no versioning support, so we append a major version to the name.
14271 soname_spec='${libname}${release}${shared_ext}$major'
14272 ;;
14273
14274 aix[4-9]*)
14275 version_type=linux
14276 need_lib_prefix=no
14277 need_version=no
14278 hardcode_into_libs=yes
14279 if test "$host_cpu" = ia64; then
14280 # AIX 5 supports IA64
14281 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14282 shlibpath_var=LD_LIBRARY_PATH
14283 else
14284 # With GCC up to 2.95.x, collect2 would create an import file
14285 # for dependence libraries. The import file would start with
14286 # the line `#! .'. This would cause the generated library to
14287 # depend on `.', always an invalid library. This was fixed in
14288 # development snapshots of GCC prior to 3.0.
14289 case $host_os in
14290 aix4 | aix4.[01] | aix4.[01].*)
14291 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14292 echo ' yes '
14293 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14294 :
14295 else
14296 can_build_shared=no
14297 fi
14298 ;;
14299 esac
14300 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14301 # soname into executable. Probably we can add versioning support to
14302 # collect2, so additional links can be useful in future.
14303 if test "$aix_use_runtimelinking" = yes; then
14304 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14305 # instead of lib<name>.a to let people know that these are not
14306 # typical AIX shared libraries.
14307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14308 else
14309 # We preserve .a as extension for shared libraries through AIX4.2
14310 # and later when we are not doing run time linking.
14311 library_names_spec='${libname}${release}.a $libname.a'
14312 soname_spec='${libname}${release}${shared_ext}$major'
14313 fi
14314 shlibpath_var=LIBPATH
14315 fi
14316 ;;
14317
14318 amigaos*)
14319 case $host_cpu in
14320 powerpc)
14321 # Since July 2007 AmigaOS4 officially supports .so libraries.
14322 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14324 ;;
14325 m68k)
14326 library_names_spec='$libname.ixlibrary $libname.a'
14327 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14328 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'
14329 ;;
14330 esac
14331 ;;
14332
14333 beos*)
14334 library_names_spec='${libname}${shared_ext}'
14335 dynamic_linker="$host_os ld.so"
14336 shlibpath_var=LIBRARY_PATH
14337 ;;
14338
14339 bsdi[45]*)
14340 version_type=linux
14341 need_version=no
14342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14343 soname_spec='${libname}${release}${shared_ext}$major'
14344 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14345 shlibpath_var=LD_LIBRARY_PATH
14346 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14347 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14348 # the default ld.so.conf also contains /usr/contrib/lib and
14349 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14350 # libtool to hard-code these into programs
14351 ;;
14352
14353 cygwin* | mingw* | pw32* | cegcc*)
14354 version_type=windows
14355 shrext_cmds=".dll"
14356 need_version=no
14357 need_lib_prefix=no
14358
14359 case $GCC,$host_os in
14360 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14361 library_names_spec='$libname.dll.a'
14362 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14363 postinstall_cmds='base_file=`basename \${file}`~
14364 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14365 dldir=$destdir/`dirname \$dlpath`~
14366 test -d \$dldir || mkdir -p \$dldir~
14367 $install_prog $dir/$dlname \$dldir/$dlname~
14368 chmod a+x \$dldir/$dlname~
14369 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14370 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14371 fi'
14372 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14373 dlpath=$dir/\$dldll~
14374 $RM \$dlpath'
14375 shlibpath_overrides_runpath=yes
14376
14377 case $host_os in
14378 cygwin*)
14379 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14380 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14381
14382 ;;
14383 mingw* | cegcc*)
14384 # MinGW DLLs use traditional 'lib' prefix
14385 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14386 ;;
14387 pw32*)
14388 # pw32 DLLs use 'pw' prefix rather than 'lib'
14389 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14390 ;;
14391 esac
14392 ;;
14393
14394 *)
14395 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14396 ;;
14397 esac
14398 dynamic_linker='Win32 ld.exe'
14399 # FIXME: first we should search . and the directory the executable is in
14400 shlibpath_var=PATH
14401 ;;
14402
14403 darwin* | rhapsody*)
14404 dynamic_linker="$host_os dyld"
14405 version_type=darwin
14406 need_lib_prefix=no
14407 need_version=no
14408 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14409 soname_spec='${libname}${release}${major}$shared_ext'
14410 shlibpath_overrides_runpath=yes
14411 shlibpath_var=DYLD_LIBRARY_PATH
14412 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14413
14414 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14415 ;;
14416
14417 dgux*)
14418 version_type=linux
14419 need_lib_prefix=no
14420 need_version=no
14421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14422 soname_spec='${libname}${release}${shared_ext}$major'
14423 shlibpath_var=LD_LIBRARY_PATH
14424 ;;
14425
14426 freebsd* | dragonfly*)
14427 # DragonFly does not have aout. When/if they implement a new
14428 # versioning mechanism, adjust this.
14429 if test -x /usr/bin/objformat; then
14430 objformat=`/usr/bin/objformat`
14431 else
14432 case $host_os in
14433 freebsd[23].*) objformat=aout ;;
14434 *) objformat=elf ;;
14435 esac
14436 fi
14437 version_type=freebsd-$objformat
14438 case $version_type in
14439 freebsd-elf*)
14440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14441 need_version=no
14442 need_lib_prefix=no
14443 ;;
14444 freebsd-*)
14445 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14446 need_version=yes
14447 ;;
14448 esac
14449 shlibpath_var=LD_LIBRARY_PATH
14450 case $host_os in
14451 freebsd2.*)
14452 shlibpath_overrides_runpath=yes
14453 ;;
14454 freebsd3.[01]* | freebsdelf3.[01]*)
14455 shlibpath_overrides_runpath=yes
14456 hardcode_into_libs=yes
14457 ;;
14458 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14459 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14460 shlibpath_overrides_runpath=no
14461 hardcode_into_libs=yes
14462 ;;
14463 *) # from 4.6 on, and DragonFly
14464 shlibpath_overrides_runpath=yes
14465 hardcode_into_libs=yes
14466 ;;
14467 esac
14468 ;;
14469
14470 gnu*)
14471 version_type=linux
14472 need_lib_prefix=no
14473 need_version=no
14474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14475 soname_spec='${libname}${release}${shared_ext}$major'
14476 shlibpath_var=LD_LIBRARY_PATH
14477 hardcode_into_libs=yes
14478 ;;
14479
14480 haiku*)
14481 version_type=linux
14482 need_lib_prefix=no
14483 need_version=no
14484 dynamic_linker="$host_os runtime_loader"
14485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14486 soname_spec='${libname}${release}${shared_ext}$major'
14487 shlibpath_var=LIBRARY_PATH
14488 shlibpath_overrides_runpath=yes
14489 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14490 hardcode_into_libs=yes
14491 ;;
14492
14493 hpux9* | hpux10* | hpux11*)
14494 # Give a soname corresponding to the major version so that dld.sl refuses to
14495 # link against other versions.
14496 version_type=sunos
14497 need_lib_prefix=no
14498 need_version=no
14499 case $host_cpu in
14500 ia64*)
14501 shrext_cmds='.so'
14502 hardcode_into_libs=yes
14503 dynamic_linker="$host_os dld.so"
14504 shlibpath_var=LD_LIBRARY_PATH
14505 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14507 soname_spec='${libname}${release}${shared_ext}$major'
14508 if test "X$HPUX_IA64_MODE" = X32; then
14509 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14510 else
14511 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14512 fi
14513 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14514 ;;
14515 hppa*64*)
14516 shrext_cmds='.sl'
14517 hardcode_into_libs=yes
14518 dynamic_linker="$host_os dld.sl"
14519 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14520 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14522 soname_spec='${libname}${release}${shared_ext}$major'
14523 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14524 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14525 ;;
14526 *)
14527 shrext_cmds='.sl'
14528 dynamic_linker="$host_os dld.sl"
14529 shlibpath_var=SHLIB_PATH
14530 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14532 soname_spec='${libname}${release}${shared_ext}$major'
14533 ;;
14534 esac
14535 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14536 postinstall_cmds='chmod 555 $lib'
14537 # or fails outright, so override atomically:
14538 install_override_mode=555
14539 ;;
14540
14541 interix[3-9]*)
14542 version_type=linux
14543 need_lib_prefix=no
14544 need_version=no
14545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14546 soname_spec='${libname}${release}${shared_ext}$major'
14547 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14548 shlibpath_var=LD_LIBRARY_PATH
14549 shlibpath_overrides_runpath=no
14550 hardcode_into_libs=yes
14551 ;;
14552
14553 irix5* | irix6* | nonstopux*)
14554 case $host_os in
14555 nonstopux*) version_type=nonstopux ;;
14556 *)
14557 if test "$lt_cv_prog_gnu_ld" = yes; then
14558 version_type=linux
14559 else
14560 version_type=irix
14561 fi ;;
14562 esac
14563 need_lib_prefix=no
14564 need_version=no
14565 soname_spec='${libname}${release}${shared_ext}$major'
14566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14567 case $host_os in
14568 irix5* | nonstopux*)
14569 libsuff= shlibsuff=
14570 ;;
14571 *)
14572 case $LD in # libtool.m4 will add one of these switches to LD
14573 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14574 libsuff= shlibsuff= libmagic=32-bit;;
14575 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14576 libsuff=32 shlibsuff=N32 libmagic=N32;;
14577 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14578 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14579 *) libsuff= shlibsuff= libmagic=never-match;;
14580 esac
14581 ;;
14582 esac
14583 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14584 shlibpath_overrides_runpath=no
14585 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14586 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14587 hardcode_into_libs=yes
14588 ;;
14589
14590 # No shared lib support for Linux oldld, aout, or coff.
14591 linux*oldld* | linux*aout* | linux*coff*)
14592 dynamic_linker=no
14593 ;;
14594
14595 # This must be Linux ELF.
14596 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14597 version_type=linux
14598 need_lib_prefix=no
14599 need_version=no
14600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14601 soname_spec='${libname}${release}${shared_ext}$major'
14602 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14603 shlibpath_var=LD_LIBRARY_PATH
14604 shlibpath_overrides_runpath=no
14605
14606 # Some binutils ld are patched to set DT_RUNPATH
14607 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14608 $as_echo_n "(cached) " >&6
14609 else
14610 lt_cv_shlibpath_overrides_runpath=no
14611 save_LDFLAGS=$LDFLAGS
14612 save_libdir=$libdir
14613 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14614 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14616 /* end confdefs.h. */
14617
14618 int
14619 main ()
14620 {
14621
14622 ;
14623 return 0;
14624 }
14625 _ACEOF
14626 if ac_fn_cxx_try_link "$LINENO"; then :
14627 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14628 lt_cv_shlibpath_overrides_runpath=yes
14629 fi
14630 fi
14631 rm -f core conftest.err conftest.$ac_objext \
14632 conftest$ac_exeext conftest.$ac_ext
14633 LDFLAGS=$save_LDFLAGS
14634 libdir=$save_libdir
14635
14636 fi
14637
14638 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14639
14640 # This implies no fast_install, which is unacceptable.
14641 # Some rework will be needed to allow for fast_install
14642 # before this can be enabled.
14643 hardcode_into_libs=yes
14644
14645 # Append ld.so.conf contents to the search path
14646 if test -f /etc/ld.so.conf; then
14647 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' ' '`
14648 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14649 fi
14650
14651 # We used to test for /lib/ld.so.1 and disable shared libraries on
14652 # powerpc, because MkLinux only supported shared libraries with the
14653 # GNU dynamic linker. Since this was broken with cross compilers,
14654 # most powerpc-linux boxes support dynamic linking these days and
14655 # people can always --disable-shared, the test was removed, and we
14656 # assume the GNU/Linux dynamic linker is in use.
14657 dynamic_linker='GNU/Linux ld.so'
14658 ;;
14659
14660 netbsd*)
14661 version_type=sunos
14662 need_lib_prefix=no
14663 need_version=no
14664 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14666 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14667 dynamic_linker='NetBSD (a.out) ld.so'
14668 else
14669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14670 soname_spec='${libname}${release}${shared_ext}$major'
14671 dynamic_linker='NetBSD ld.elf_so'
14672 fi
14673 shlibpath_var=LD_LIBRARY_PATH
14674 shlibpath_overrides_runpath=yes
14675 hardcode_into_libs=yes
14676 ;;
14677
14678 newsos6)
14679 version_type=linux
14680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14681 shlibpath_var=LD_LIBRARY_PATH
14682 shlibpath_overrides_runpath=yes
14683 ;;
14684
14685 *nto* | *qnx*)
14686 version_type=qnx
14687 need_lib_prefix=no
14688 need_version=no
14689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14690 soname_spec='${libname}${release}${shared_ext}$major'
14691 shlibpath_var=LD_LIBRARY_PATH
14692 shlibpath_overrides_runpath=no
14693 hardcode_into_libs=yes
14694 dynamic_linker='ldqnx.so'
14695 ;;
14696
14697 openbsd*)
14698 version_type=sunos
14699 sys_lib_dlsearch_path_spec="/usr/lib"
14700 need_lib_prefix=no
14701 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14702 case $host_os in
14703 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14704 *) need_version=no ;;
14705 esac
14706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14707 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14708 shlibpath_var=LD_LIBRARY_PATH
14709 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14710 case $host_os in
14711 openbsd2.[89] | openbsd2.[89].*)
14712 shlibpath_overrides_runpath=no
14713 ;;
14714 *)
14715 shlibpath_overrides_runpath=yes
14716 ;;
14717 esac
14718 else
14719 shlibpath_overrides_runpath=yes
14720 fi
14721 ;;
14722
14723 os2*)
14724 libname_spec='$name'
14725 shrext_cmds=".dll"
14726 need_lib_prefix=no
14727 library_names_spec='$libname${shared_ext} $libname.a'
14728 dynamic_linker='OS/2 ld.exe'
14729 shlibpath_var=LIBPATH
14730 ;;
14731
14732 osf3* | osf4* | osf5*)
14733 version_type=osf
14734 need_lib_prefix=no
14735 need_version=no
14736 soname_spec='${libname}${release}${shared_ext}$major'
14737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14738 shlibpath_var=LD_LIBRARY_PATH
14739 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14740 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14741 ;;
14742
14743 rdos*)
14744 dynamic_linker=no
14745 ;;
14746
14747 solaris*)
14748 version_type=linux
14749 need_lib_prefix=no
14750 need_version=no
14751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14752 soname_spec='${libname}${release}${shared_ext}$major'
14753 shlibpath_var=LD_LIBRARY_PATH
14754 shlibpath_overrides_runpath=yes
14755 hardcode_into_libs=yes
14756 # ldd complains unless libraries are executable
14757 postinstall_cmds='chmod +x $lib'
14758 ;;
14759
14760 sunos4*)
14761 version_type=sunos
14762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14763 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14764 shlibpath_var=LD_LIBRARY_PATH
14765 shlibpath_overrides_runpath=yes
14766 if test "$with_gnu_ld" = yes; then
14767 need_lib_prefix=no
14768 fi
14769 need_version=yes
14770 ;;
14771
14772 sysv4 | sysv4.3*)
14773 version_type=linux
14774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14775 soname_spec='${libname}${release}${shared_ext}$major'
14776 shlibpath_var=LD_LIBRARY_PATH
14777 case $host_vendor in
14778 sni)
14779 shlibpath_overrides_runpath=no
14780 need_lib_prefix=no
14781 runpath_var=LD_RUN_PATH
14782 ;;
14783 siemens)
14784 need_lib_prefix=no
14785 ;;
14786 motorola)
14787 need_lib_prefix=no
14788 need_version=no
14789 shlibpath_overrides_runpath=no
14790 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14791 ;;
14792 esac
14793 ;;
14794
14795 sysv4*MP*)
14796 if test -d /usr/nec ;then
14797 version_type=linux
14798 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14799 soname_spec='$libname${shared_ext}.$major'
14800 shlibpath_var=LD_LIBRARY_PATH
14801 fi
14802 ;;
14803
14804 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14805 version_type=freebsd-elf
14806 need_lib_prefix=no
14807 need_version=no
14808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14809 soname_spec='${libname}${release}${shared_ext}$major'
14810 shlibpath_var=LD_LIBRARY_PATH
14811 shlibpath_overrides_runpath=yes
14812 hardcode_into_libs=yes
14813 if test "$with_gnu_ld" = yes; then
14814 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14815 else
14816 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14817 case $host_os in
14818 sco3.2v5*)
14819 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14820 ;;
14821 esac
14822 fi
14823 sys_lib_dlsearch_path_spec='/usr/lib'
14824 ;;
14825
14826 tpf*)
14827 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14828 version_type=linux
14829 need_lib_prefix=no
14830 need_version=no
14831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14832 shlibpath_var=LD_LIBRARY_PATH
14833 shlibpath_overrides_runpath=no
14834 hardcode_into_libs=yes
14835 ;;
14836
14837 uts4*)
14838 version_type=linux
14839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14840 soname_spec='${libname}${release}${shared_ext}$major'
14841 shlibpath_var=LD_LIBRARY_PATH
14842 ;;
14843
14844 *)
14845 dynamic_linker=no
14846 ;;
14847 esac
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14849 $as_echo "$dynamic_linker" >&6; }
14850 test "$dynamic_linker" = no && can_build_shared=no
14851
14852 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14853 if test "$GCC" = yes; then
14854 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14855 fi
14856
14857 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14858 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14859 fi
14860 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14861 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14862 fi
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14902 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14903 hardcode_action_CXX=
14904 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14905 test -n "$runpath_var_CXX" ||
14906 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14907
14908 # We can hardcode non-existent directories.
14909 if test "$hardcode_direct_CXX" != no &&
14910 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14911 # have to relink, otherwise we might link with an installed library
14912 # when we should be linking with a yet-to-be-installed one
14913 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14914 test "$hardcode_minus_L_CXX" != no; then
14915 # Linking always hardcodes the temporary library directory.
14916 hardcode_action_CXX=relink
14917 else
14918 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14919 hardcode_action_CXX=immediate
14920 fi
14921 else
14922 # We cannot hardcode anything, or else we can only hardcode existing
14923 # directories.
14924 hardcode_action_CXX=unsupported
14925 fi
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14927 $as_echo "$hardcode_action_CXX" >&6; }
14928
14929 if test "$hardcode_action_CXX" = relink ||
14930 test "$inherit_rpath_CXX" = yes; then
14931 # Fast installation is not supported
14932 enable_fast_install=no
14933 elif test "$shlibpath_overrides_runpath" = yes ||
14934 test "$enable_shared" = no; then
14935 # Fast installation is not necessary
14936 enable_fast_install=needless
14937 fi
14938
14939
14940
14941
14942
14943
14944
14945 fi # test -n "$compiler"
14946
14947 CC=$lt_save_CC
14948 LDCXX=$LD
14949 LD=$lt_save_LD
14950 GCC=$lt_save_GCC
14951 with_gnu_ld=$lt_save_with_gnu_ld
14952 lt_cv_path_LDCXX=$lt_cv_path_LD
14953 lt_cv_path_LD=$lt_save_path_LD
14954 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14955 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14956 fi # test "$_lt_caught_CXX_error" != yes
14957
14958 ac_ext=c
14959 ac_cpp='$CPP $CPPFLAGS'
14960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976 ac_config_commands="$ac_config_commands libtool"
14977
14978
14979
14980
14981 # Only expand once:
14982
14983
14984
14985
14986
14987 XCFLAGS="-Wall -Wextra"
14988
14989
14990 if test "${multilib}" = "yes"; then
14991 multilib_arg="--enable-multilib"
14992 else
14993 multilib_arg=
14994 fi
14995
14996 ac_config_files="$ac_config_files Makefile libmpx.spec"
14997
14998 ac_config_headers="$ac_config_headers config.h"
14999
15000 ac_config_files="$ac_config_files mpxrt/Makefile"
15001
15002
15003 cat >confcache <<\_ACEOF
15004 # This file is a shell script that caches the results of configure
15005 # tests run on this system so they can be shared between configure
15006 # scripts and configure runs, see configure's option --config-cache.
15007 # It is not useful on other systems. If it contains results you don't
15008 # want to keep, you may remove or edit it.
15009 #
15010 # config.status only pays attention to the cache file if you give it
15011 # the --recheck option to rerun configure.
15012 #
15013 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15014 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15015 # following values.
15016
15017 _ACEOF
15018
15019 # The following way of writing the cache mishandles newlines in values,
15020 # but we know of no workaround that is simple, portable, and efficient.
15021 # So, we kill variables containing newlines.
15022 # Ultrix sh set writes to stderr and can't be redirected directly,
15023 # and sets the high bit in the cache file unless we assign to the vars.
15024 (
15025 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15026 eval ac_val=\$$ac_var
15027 case $ac_val in #(
15028 *${as_nl}*)
15029 case $ac_var in #(
15030 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15031 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15032 esac
15033 case $ac_var in #(
15034 _ | IFS | as_nl) ;; #(
15035 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15036 *) { eval $ac_var=; unset $ac_var;} ;;
15037 esac ;;
15038 esac
15039 done
15040
15041 (set) 2>&1 |
15042 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15043 *${as_nl}ac_space=\ *)
15044 # `set' does not quote correctly, so add quotes: double-quote
15045 # substitution turns \\\\ into \\, and sed turns \\ into \.
15046 sed -n \
15047 "s/'/'\\\\''/g;
15048 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15049 ;; #(
15050 *)
15051 # `set' quotes correctly as required by POSIX, so do not add quotes.
15052 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15053 ;;
15054 esac |
15055 sort
15056 ) |
15057 sed '
15058 /^ac_cv_env_/b end
15059 t clear
15060 :clear
15061 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15062 t end
15063 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15064 :end' >>confcache
15065 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15066 if test -w "$cache_file"; then
15067 test "x$cache_file" != "x/dev/null" &&
15068 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15069 $as_echo "$as_me: updating cache $cache_file" >&6;}
15070 cat confcache >$cache_file
15071 else
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15073 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15074 fi
15075 fi
15076 rm -f confcache
15077
15078 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15079 # Let make expand exec_prefix.
15080 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15081
15082 DEFS=-DHAVE_CONFIG_H
15083
15084 ac_libobjs=
15085 ac_ltlibobjs=
15086 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15087 # 1. Remove the extension, and $U if already installed.
15088 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15089 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15090 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15091 # will be set to the directory where LIBOBJS objects are built.
15092 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15093 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15094 done
15095 LIBOBJS=$ac_libobjs
15096
15097 LTLIBOBJS=$ac_ltlibobjs
15098
15099
15100 if test -z "${LIBMPX_SUPPORTED_TRUE}" && test -z "${LIBMPX_SUPPORTED_FALSE}"; then
15101 as_fn_error "conditional \"LIBMPX_SUPPORTED\" was never defined.
15102 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15103 fi
15104 if test -n "$EXEEXT"; then
15105 am__EXEEXT_TRUE=
15106 am__EXEEXT_FALSE='#'
15107 else
15108 am__EXEEXT_TRUE='#'
15109 am__EXEEXT_FALSE=
15110 fi
15111
15112 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15113 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15114 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15115 fi
15116
15117 : ${CONFIG_STATUS=./config.status}
15118 ac_write_fail=0
15119 ac_clean_files_save=$ac_clean_files
15120 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15121 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15122 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15123 as_write_fail=0
15124 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15125 #! $SHELL
15126 # Generated by $as_me.
15127 # Run this file to recreate the current configuration.
15128 # Compiler output produced by configure, useful for debugging
15129 # configure, is in config.log if it exists.
15130
15131 debug=false
15132 ac_cs_recheck=false
15133 ac_cs_silent=false
15134
15135 SHELL=\${CONFIG_SHELL-$SHELL}
15136 export SHELL
15137 _ASEOF
15138 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15139 ## -------------------- ##
15140 ## M4sh Initialization. ##
15141 ## -------------------- ##
15142
15143 # Be more Bourne compatible
15144 DUALCASE=1; export DUALCASE # for MKS sh
15145 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15146 emulate sh
15147 NULLCMD=:
15148 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15149 # is contrary to our usage. Disable this feature.
15150 alias -g '${1+"$@"}'='"$@"'
15151 setopt NO_GLOB_SUBST
15152 else
15153 case `(set -o) 2>/dev/null` in #(
15154 *posix*) :
15155 set -o posix ;; #(
15156 *) :
15157 ;;
15158 esac
15159 fi
15160
15161
15162 as_nl='
15163 '
15164 export as_nl
15165 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15166 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15167 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15168 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15169 # Prefer a ksh shell builtin over an external printf program on Solaris,
15170 # but without wasting forks for bash or zsh.
15171 if test -z "$BASH_VERSION$ZSH_VERSION" \
15172 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15173 as_echo='print -r --'
15174 as_echo_n='print -rn --'
15175 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15176 as_echo='printf %s\n'
15177 as_echo_n='printf %s'
15178 else
15179 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15180 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15181 as_echo_n='/usr/ucb/echo -n'
15182 else
15183 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15184 as_echo_n_body='eval
15185 arg=$1;
15186 case $arg in #(
15187 *"$as_nl"*)
15188 expr "X$arg" : "X\\(.*\\)$as_nl";
15189 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15190 esac;
15191 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15192 '
15193 export as_echo_n_body
15194 as_echo_n='sh -c $as_echo_n_body as_echo'
15195 fi
15196 export as_echo_body
15197 as_echo='sh -c $as_echo_body as_echo'
15198 fi
15199
15200 # The user is always right.
15201 if test "${PATH_SEPARATOR+set}" != set; then
15202 PATH_SEPARATOR=:
15203 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15204 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15205 PATH_SEPARATOR=';'
15206 }
15207 fi
15208
15209
15210 # IFS
15211 # We need space, tab and new line, in precisely that order. Quoting is
15212 # there to prevent editors from complaining about space-tab.
15213 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15214 # splitting by setting IFS to empty value.)
15215 IFS=" "" $as_nl"
15216
15217 # Find who we are. Look in the path if we contain no directory separator.
15218 case $0 in #((
15219 *[\\/]* ) as_myself=$0 ;;
15220 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15221 for as_dir in $PATH
15222 do
15223 IFS=$as_save_IFS
15224 test -z "$as_dir" && as_dir=.
15225 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15226 done
15227 IFS=$as_save_IFS
15228
15229 ;;
15230 esac
15231 # We did not find ourselves, most probably we were run as `sh COMMAND'
15232 # in which case we are not to be found in the path.
15233 if test "x$as_myself" = x; then
15234 as_myself=$0
15235 fi
15236 if test ! -f "$as_myself"; then
15237 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15238 exit 1
15239 fi
15240
15241 # Unset variables that we do not need and which cause bugs (e.g. in
15242 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15243 # suppresses any "Segmentation fault" message there. '((' could
15244 # trigger a bug in pdksh 5.2.14.
15245 for as_var in BASH_ENV ENV MAIL MAILPATH
15246 do eval test x\${$as_var+set} = xset \
15247 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15248 done
15249 PS1='$ '
15250 PS2='> '
15251 PS4='+ '
15252
15253 # NLS nuisances.
15254 LC_ALL=C
15255 export LC_ALL
15256 LANGUAGE=C
15257 export LANGUAGE
15258
15259 # CDPATH.
15260 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15261
15262
15263 # as_fn_error ERROR [LINENO LOG_FD]
15264 # ---------------------------------
15265 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15266 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15267 # script with status $?, using 1 if that was 0.
15268 as_fn_error ()
15269 {
15270 as_status=$?; test $as_status -eq 0 && as_status=1
15271 if test "$3"; then
15272 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15273 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15274 fi
15275 $as_echo "$as_me: error: $1" >&2
15276 as_fn_exit $as_status
15277 } # as_fn_error
15278
15279
15280 # as_fn_set_status STATUS
15281 # -----------------------
15282 # Set $? to STATUS, without forking.
15283 as_fn_set_status ()
15284 {
15285 return $1
15286 } # as_fn_set_status
15287
15288 # as_fn_exit STATUS
15289 # -----------------
15290 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15291 as_fn_exit ()
15292 {
15293 set +e
15294 as_fn_set_status $1
15295 exit $1
15296 } # as_fn_exit
15297
15298 # as_fn_unset VAR
15299 # ---------------
15300 # Portably unset VAR.
15301 as_fn_unset ()
15302 {
15303 { eval $1=; unset $1;}
15304 }
15305 as_unset=as_fn_unset
15306 # as_fn_append VAR VALUE
15307 # ----------------------
15308 # Append the text in VALUE to the end of the definition contained in VAR. Take
15309 # advantage of any shell optimizations that allow amortized linear growth over
15310 # repeated appends, instead of the typical quadratic growth present in naive
15311 # implementations.
15312 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15313 eval 'as_fn_append ()
15314 {
15315 eval $1+=\$2
15316 }'
15317 else
15318 as_fn_append ()
15319 {
15320 eval $1=\$$1\$2
15321 }
15322 fi # as_fn_append
15323
15324 # as_fn_arith ARG...
15325 # ------------------
15326 # Perform arithmetic evaluation on the ARGs, and store the result in the
15327 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15328 # must be portable across $(()) and expr.
15329 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15330 eval 'as_fn_arith ()
15331 {
15332 as_val=$(( $* ))
15333 }'
15334 else
15335 as_fn_arith ()
15336 {
15337 as_val=`expr "$@" || test $? -eq 1`
15338 }
15339 fi # as_fn_arith
15340
15341
15342 if expr a : '\(a\)' >/dev/null 2>&1 &&
15343 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15344 as_expr=expr
15345 else
15346 as_expr=false
15347 fi
15348
15349 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15350 as_basename=basename
15351 else
15352 as_basename=false
15353 fi
15354
15355 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15356 as_dirname=dirname
15357 else
15358 as_dirname=false
15359 fi
15360
15361 as_me=`$as_basename -- "$0" ||
15362 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15363 X"$0" : 'X\(//\)$' \| \
15364 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15365 $as_echo X/"$0" |
15366 sed '/^.*\/\([^/][^/]*\)\/*$/{
15367 s//\1/
15368 q
15369 }
15370 /^X\/\(\/\/\)$/{
15371 s//\1/
15372 q
15373 }
15374 /^X\/\(\/\).*/{
15375 s//\1/
15376 q
15377 }
15378 s/.*/./; q'`
15379
15380 # Avoid depending upon Character Ranges.
15381 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15382 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15383 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15384 as_cr_digits='0123456789'
15385 as_cr_alnum=$as_cr_Letters$as_cr_digits
15386
15387 ECHO_C= ECHO_N= ECHO_T=
15388 case `echo -n x` in #(((((
15389 -n*)
15390 case `echo 'xy\c'` in
15391 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15392 xy) ECHO_C='\c';;
15393 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15394 ECHO_T=' ';;
15395 esac;;
15396 *)
15397 ECHO_N='-n';;
15398 esac
15399
15400 rm -f conf$$ conf$$.exe conf$$.file
15401 if test -d conf$$.dir; then
15402 rm -f conf$$.dir/conf$$.file
15403 else
15404 rm -f conf$$.dir
15405 mkdir conf$$.dir 2>/dev/null
15406 fi
15407 if (echo >conf$$.file) 2>/dev/null; then
15408 if ln -s conf$$.file conf$$ 2>/dev/null; then
15409 as_ln_s='ln -s'
15410 # ... but there are two gotchas:
15411 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15412 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15413 # In both cases, we have to default to `cp -p'.
15414 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15415 as_ln_s='cp -p'
15416 elif ln conf$$.file conf$$ 2>/dev/null; then
15417 as_ln_s=ln
15418 else
15419 as_ln_s='cp -p'
15420 fi
15421 else
15422 as_ln_s='cp -p'
15423 fi
15424 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15425 rmdir conf$$.dir 2>/dev/null
15426
15427
15428 # as_fn_mkdir_p
15429 # -------------
15430 # Create "$as_dir" as a directory, including parents if necessary.
15431 as_fn_mkdir_p ()
15432 {
15433
15434 case $as_dir in #(
15435 -*) as_dir=./$as_dir;;
15436 esac
15437 test -d "$as_dir" || eval $as_mkdir_p || {
15438 as_dirs=
15439 while :; do
15440 case $as_dir in #(
15441 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15442 *) as_qdir=$as_dir;;
15443 esac
15444 as_dirs="'$as_qdir' $as_dirs"
15445 as_dir=`$as_dirname -- "$as_dir" ||
15446 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15447 X"$as_dir" : 'X\(//\)[^/]' \| \
15448 X"$as_dir" : 'X\(//\)$' \| \
15449 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15450 $as_echo X"$as_dir" |
15451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15452 s//\1/
15453 q
15454 }
15455 /^X\(\/\/\)[^/].*/{
15456 s//\1/
15457 q
15458 }
15459 /^X\(\/\/\)$/{
15460 s//\1/
15461 q
15462 }
15463 /^X\(\/\).*/{
15464 s//\1/
15465 q
15466 }
15467 s/.*/./; q'`
15468 test -d "$as_dir" && break
15469 done
15470 test -z "$as_dirs" || eval "mkdir $as_dirs"
15471 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15472
15473
15474 } # as_fn_mkdir_p
15475 if mkdir -p . 2>/dev/null; then
15476 as_mkdir_p='mkdir -p "$as_dir"'
15477 else
15478 test -d ./-p && rmdir ./-p
15479 as_mkdir_p=false
15480 fi
15481
15482 if test -x / >/dev/null 2>&1; then
15483 as_test_x='test -x'
15484 else
15485 if ls -dL / >/dev/null 2>&1; then
15486 as_ls_L_option=L
15487 else
15488 as_ls_L_option=
15489 fi
15490 as_test_x='
15491 eval sh -c '\''
15492 if test -d "$1"; then
15493 test -d "$1/.";
15494 else
15495 case $1 in #(
15496 -*)set "./$1";;
15497 esac;
15498 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15499 ???[sx]*):;;*)false;;esac;fi
15500 '\'' sh
15501 '
15502 fi
15503 as_executable_p=$as_test_x
15504
15505 # Sed expression to map a string onto a valid CPP name.
15506 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15507
15508 # Sed expression to map a string onto a valid variable name.
15509 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15510
15511
15512 exec 6>&1
15513 ## ----------------------------------- ##
15514 ## Main body of $CONFIG_STATUS script. ##
15515 ## ----------------------------------- ##
15516 _ASEOF
15517 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15518
15519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15520 # Save the log message, to keep $0 and so on meaningful, and to
15521 # report actual input values of CONFIG_FILES etc. instead of their
15522 # values after options handling.
15523 ac_log="
15524 This file was extended by package-unused $as_me version-unused, which was
15525 generated by GNU Autoconf 2.64. Invocation command line was
15526
15527 CONFIG_FILES = $CONFIG_FILES
15528 CONFIG_HEADERS = $CONFIG_HEADERS
15529 CONFIG_LINKS = $CONFIG_LINKS
15530 CONFIG_COMMANDS = $CONFIG_COMMANDS
15531 $ $0 $@
15532
15533 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15534 "
15535
15536 _ACEOF
15537
15538 case $ac_config_files in *"
15539 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15540 esac
15541
15542 case $ac_config_headers in *"
15543 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15544 esac
15545
15546
15547 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15548 # Files that config.status was made for.
15549 config_files="$ac_config_files"
15550 config_headers="$ac_config_headers"
15551 config_commands="$ac_config_commands"
15552
15553 _ACEOF
15554
15555 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15556 ac_cs_usage="\
15557 \`$as_me' instantiates files and other configuration actions
15558 from templates according to the current configuration. Unless the files
15559 and actions are specified as TAGs, all are instantiated by default.
15560
15561 Usage: $0 [OPTION]... [TAG]...
15562
15563 -h, --help print this help, then exit
15564 -V, --version print version number and configuration settings, then exit
15565 -q, --quiet, --silent
15566 do not print progress messages
15567 -d, --debug don't remove temporary files
15568 --recheck update $as_me by reconfiguring in the same conditions
15569 --file=FILE[:TEMPLATE]
15570 instantiate the configuration file FILE
15571 --header=FILE[:TEMPLATE]
15572 instantiate the configuration header FILE
15573
15574 Configuration files:
15575 $config_files
15576
15577 Configuration headers:
15578 $config_headers
15579
15580 Configuration commands:
15581 $config_commands
15582
15583 Report bugs to <libmpx>."
15584
15585 _ACEOF
15586 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15587 ac_cs_version="\\
15588 package-unused config.status version-unused
15589 configured by $0, generated by GNU Autoconf 2.64,
15590 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15591
15592 Copyright (C) 2009 Free Software Foundation, Inc.
15593 This config.status script is free software; the Free Software Foundation
15594 gives unlimited permission to copy, distribute and modify it."
15595
15596 ac_pwd='$ac_pwd'
15597 srcdir='$srcdir'
15598 INSTALL='$INSTALL'
15599 MKDIR_P='$MKDIR_P'
15600 AWK='$AWK'
15601 test -n "\$AWK" || AWK=awk
15602 _ACEOF
15603
15604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15605 # The default lists apply if the user does not specify any file.
15606 ac_need_defaults=:
15607 while test $# != 0
15608 do
15609 case $1 in
15610 --*=*)
15611 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15612 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15613 ac_shift=:
15614 ;;
15615 *)
15616 ac_option=$1
15617 ac_optarg=$2
15618 ac_shift=shift
15619 ;;
15620 esac
15621
15622 case $ac_option in
15623 # Handling of the options.
15624 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15625 ac_cs_recheck=: ;;
15626 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15627 $as_echo "$ac_cs_version"; exit ;;
15628 --debug | --debu | --deb | --de | --d | -d )
15629 debug=: ;;
15630 --file | --fil | --fi | --f )
15631 $ac_shift
15632 case $ac_optarg in
15633 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15634 esac
15635 as_fn_append CONFIG_FILES " '$ac_optarg'"
15636 ac_need_defaults=false;;
15637 --header | --heade | --head | --hea )
15638 $ac_shift
15639 case $ac_optarg in
15640 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15641 esac
15642 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15643 ac_need_defaults=false;;
15644 --he | --h)
15645 # Conflict between --help and --header
15646 as_fn_error "ambiguous option: \`$1'
15647 Try \`$0 --help' for more information.";;
15648 --help | --hel | -h )
15649 $as_echo "$ac_cs_usage"; exit ;;
15650 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15651 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15652 ac_cs_silent=: ;;
15653
15654 # This is an error.
15655 -*) as_fn_error "unrecognized option: \`$1'
15656 Try \`$0 --help' for more information." ;;
15657
15658 *) as_fn_append ac_config_targets " $1"
15659 ac_need_defaults=false ;;
15660
15661 esac
15662 shift
15663 done
15664
15665 ac_configure_extra_args=
15666
15667 if $ac_cs_silent; then
15668 exec 6>/dev/null
15669 ac_configure_extra_args="$ac_configure_extra_args --silent"
15670 fi
15671
15672 _ACEOF
15673 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15674 if \$ac_cs_recheck; then
15675 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15676 shift
15677 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15678 CONFIG_SHELL='$SHELL'
15679 export CONFIG_SHELL
15680 exec "\$@"
15681 fi
15682
15683 _ACEOF
15684 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15685 exec 5>>config.log
15686 {
15687 echo
15688 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15689 ## Running $as_me. ##
15690 _ASBOX
15691 $as_echo "$ac_log"
15692 } >&5
15693
15694 _ACEOF
15695 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15696 #
15697 # INIT-COMMANDS
15698 #
15699
15700 srcdir="$srcdir"
15701 host="$host"
15702 target="$target"
15703 with_multisubdir="$with_multisubdir"
15704 with_multisrctop="$with_multisrctop"
15705 with_target_subdir="$with_target_subdir"
15706 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15707 multi_basedir="$multi_basedir"
15708 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15709 CC="$CC"
15710 CXX="$CXX"
15711 GFORTRAN="$GFORTRAN"
15712 GCJ="$GCJ"
15713
15714
15715 # The HP-UX ksh and POSIX shell print the target directory to stdout
15716 # if CDPATH is set.
15717 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15718
15719 sed_quote_subst='$sed_quote_subst'
15720 double_quote_subst='$double_quote_subst'
15721 delay_variable_subst='$delay_variable_subst'
15722 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15723 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15724 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15725 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15726 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15727 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15728 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15729 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15730 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15731 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15732 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15733 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15734 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15735 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15736 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15737 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15738 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15739 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15740 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15741 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15742 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15743 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15744 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15745 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15746 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15747 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15748 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15749 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15750 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15751 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15752 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15753 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15754 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15755 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15756 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15757 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15758 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15759 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15760 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15761 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15762 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15763 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15764 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15765 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15766 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15767 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15768 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15769 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15770 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"`'
15771 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15772 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15773 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15774 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15775 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15776 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15777 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15778 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15779 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15780 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15781 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15782 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15783 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15784 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15785 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15786 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15787 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15788 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15789 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15790 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15791 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15792 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15793 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15794 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15795 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15796 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15797 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15798 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15799 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15800 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15801 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15802 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15803 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15804 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15805 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15806 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15807 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15808 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15809 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15810 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15811 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15812 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15813 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15814 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15815 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15816 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15817 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15818 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15819 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15820 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15821 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15822 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15823 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15824 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15825 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15826 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15827 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15828 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15829 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15830 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15831 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15832 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15833 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15834 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15835 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15836 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15837 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15838 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15839 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15840 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15841 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15842 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15843 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15844 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15845 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15846 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15847 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15848 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15849 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15850 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15851 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15852 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15853 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15854 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15855 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15856 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15857 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15858 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15859 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15860 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15861 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15862 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15863 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15864 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15865 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15866 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15867 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15868 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15869 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15870 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15871 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15872 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15873 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15874 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
15875 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15876 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15877 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15878 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15879 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15880 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15881 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15882 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15883 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
15884 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15885 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15886 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15887 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15888 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15889 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15890 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15891 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15892 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15893 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15894 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15895 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15896 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15897
15898 LTCC='$LTCC'
15899 LTCFLAGS='$LTCFLAGS'
15900 compiler='$compiler_DEFAULT'
15901
15902 # A function that is used when there is no print builtin or printf.
15903 func_fallback_echo ()
15904 {
15905 eval 'cat <<_LTECHO_EOF
15906 \$1
15907 _LTECHO_EOF'
15908 }
15909
15910 # Quote evaled strings.
15911 for var in SHELL \
15912 ECHO \
15913 SED \
15914 GREP \
15915 EGREP \
15916 FGREP \
15917 LD \
15918 NM \
15919 LN_S \
15920 lt_SP2NL \
15921 lt_NL2SP \
15922 reload_flag \
15923 OBJDUMP \
15924 deplibs_check_method \
15925 file_magic_cmd \
15926 AR \
15927 AR_FLAGS \
15928 STRIP \
15929 RANLIB \
15930 CC \
15931 CFLAGS \
15932 compiler \
15933 lt_cv_sys_global_symbol_pipe \
15934 lt_cv_sys_global_symbol_to_cdecl \
15935 lt_cv_sys_global_symbol_to_c_name_address \
15936 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15937 lt_prog_compiler_no_builtin_flag \
15938 lt_prog_compiler_wl \
15939 lt_prog_compiler_pic \
15940 lt_prog_compiler_static \
15941 lt_cv_prog_compiler_c_o \
15942 need_locks \
15943 DSYMUTIL \
15944 NMEDIT \
15945 LIPO \
15946 OTOOL \
15947 OTOOL64 \
15948 shrext_cmds \
15949 export_dynamic_flag_spec \
15950 whole_archive_flag_spec \
15951 compiler_needs_object \
15952 with_gnu_ld \
15953 allow_undefined_flag \
15954 no_undefined_flag \
15955 hardcode_libdir_flag_spec \
15956 hardcode_libdir_flag_spec_ld \
15957 hardcode_libdir_separator \
15958 fix_srcfile_path \
15959 exclude_expsyms \
15960 include_expsyms \
15961 file_list_spec \
15962 variables_saved_for_relink \
15963 libname_spec \
15964 library_names_spec \
15965 soname_spec \
15966 install_override_mode \
15967 finish_eval \
15968 old_striplib \
15969 striplib \
15970 compiler_lib_search_dirs \
15971 predep_objects \
15972 postdep_objects \
15973 predeps \
15974 postdeps \
15975 compiler_lib_search_path \
15976 LD_CXX \
15977 reload_flag_CXX \
15978 compiler_CXX \
15979 lt_prog_compiler_no_builtin_flag_CXX \
15980 lt_prog_compiler_wl_CXX \
15981 lt_prog_compiler_pic_CXX \
15982 lt_prog_compiler_static_CXX \
15983 lt_cv_prog_compiler_c_o_CXX \
15984 export_dynamic_flag_spec_CXX \
15985 whole_archive_flag_spec_CXX \
15986 compiler_needs_object_CXX \
15987 with_gnu_ld_CXX \
15988 allow_undefined_flag_CXX \
15989 no_undefined_flag_CXX \
15990 hardcode_libdir_flag_spec_CXX \
15991 hardcode_libdir_flag_spec_ld_CXX \
15992 hardcode_libdir_separator_CXX \
15993 fix_srcfile_path_CXX \
15994 exclude_expsyms_CXX \
15995 include_expsyms_CXX \
15996 file_list_spec_CXX \
15997 compiler_lib_search_dirs_CXX \
15998 predep_objects_CXX \
15999 postdep_objects_CXX \
16000 predeps_CXX \
16001 postdeps_CXX \
16002 compiler_lib_search_path_CXX; do
16003 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16004 *[\\\\\\\`\\"\\\$]*)
16005 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16006 ;;
16007 *)
16008 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16009 ;;
16010 esac
16011 done
16012
16013 # Double-quote double-evaled strings.
16014 for var in reload_cmds \
16015 old_postinstall_cmds \
16016 old_postuninstall_cmds \
16017 old_archive_cmds \
16018 extract_expsyms_cmds \
16019 old_archive_from_new_cmds \
16020 old_archive_from_expsyms_cmds \
16021 archive_cmds \
16022 archive_expsym_cmds \
16023 module_cmds \
16024 module_expsym_cmds \
16025 export_symbols_cmds \
16026 prelink_cmds \
16027 postinstall_cmds \
16028 postuninstall_cmds \
16029 finish_cmds \
16030 sys_lib_search_path_spec \
16031 sys_lib_dlsearch_path_spec \
16032 reload_cmds_CXX \
16033 old_archive_cmds_CXX \
16034 old_archive_from_new_cmds_CXX \
16035 old_archive_from_expsyms_cmds_CXX \
16036 archive_cmds_CXX \
16037 archive_expsym_cmds_CXX \
16038 module_cmds_CXX \
16039 module_expsym_cmds_CXX \
16040 export_symbols_cmds_CXX \
16041 prelink_cmds_CXX; do
16042 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16043 *[\\\\\\\`\\"\\\$]*)
16044 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16045 ;;
16046 *)
16047 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16048 ;;
16049 esac
16050 done
16051
16052 ac_aux_dir='$ac_aux_dir'
16053 xsi_shell='$xsi_shell'
16054 lt_shell_append='$lt_shell_append'
16055
16056 # See if we are running on zsh, and set the options which allow our
16057 # commands through without removal of \ escapes INIT.
16058 if test -n "\${ZSH_VERSION+set}" ; then
16059 setopt NO_GLOB_SUBST
16060 fi
16061
16062
16063 PACKAGE='$PACKAGE'
16064 VERSION='$VERSION'
16065 TIMESTAMP='$TIMESTAMP'
16066 RM='$RM'
16067 ofile='$ofile'
16068
16069
16070
16071
16072
16073
16074 _ACEOF
16075
16076 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16077
16078 # Handling of arguments.
16079 for ac_config_target in $ac_config_targets
16080 do
16081 case $ac_config_target in
16082 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16083 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16084 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16085 "libmpx.spec") CONFIG_FILES="$CONFIG_FILES libmpx.spec" ;;
16086 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16087 "mpxrt/Makefile") CONFIG_FILES="$CONFIG_FILES mpxrt/Makefile" ;;
16088
16089 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16090 esac
16091 done
16092
16093
16094 # If the user did not use the arguments to specify the items to instantiate,
16095 # then the envvar interface is used. Set only those that are not.
16096 # We use the long form for the default assignment because of an extremely
16097 # bizarre bug on SunOS 4.1.3.
16098 if $ac_need_defaults; then
16099 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16100 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16101 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16102 fi
16103
16104 # Have a temporary directory for convenience. Make it in the build tree
16105 # simply because there is no reason against having it here, and in addition,
16106 # creating and moving files from /tmp can sometimes cause problems.
16107 # Hook for its removal unless debugging.
16108 # Note that there is a small window in which the directory will not be cleaned:
16109 # after its creation but before its name has been assigned to `$tmp'.
16110 $debug ||
16111 {
16112 tmp=
16113 trap 'exit_status=$?
16114 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16115 ' 0
16116 trap 'as_fn_exit 1' 1 2 13 15
16117 }
16118 # Create a (secure) tmp directory for tmp files.
16119
16120 {
16121 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16122 test -n "$tmp" && test -d "$tmp"
16123 } ||
16124 {
16125 tmp=./conf$$-$RANDOM
16126 (umask 077 && mkdir "$tmp")
16127 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16128
16129 # Set up the scripts for CONFIG_FILES section.
16130 # No need to generate them if there are no CONFIG_FILES.
16131 # This happens for instance with `./config.status config.h'.
16132 if test -n "$CONFIG_FILES"; then
16133
16134
16135 ac_cr=`echo X | tr X '\015'`
16136 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16137 # But we know of no other shell where ac_cr would be empty at this
16138 # point, so we can use a bashism as a fallback.
16139 if test "x$ac_cr" = x; then
16140 eval ac_cr=\$\'\\r\'
16141 fi
16142 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16143 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16144 ac_cs_awk_cr='\r'
16145 else
16146 ac_cs_awk_cr=$ac_cr
16147 fi
16148
16149 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16150 _ACEOF
16151
16152
16153 {
16154 echo "cat >conf$$subs.awk <<_ACEOF" &&
16155 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16156 echo "_ACEOF"
16157 } >conf$$subs.sh ||
16158 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16159 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16160 ac_delim='%!_!# '
16161 for ac_last_try in false false false false false :; do
16162 . ./conf$$subs.sh ||
16163 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16164
16165 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16166 if test $ac_delim_n = $ac_delim_num; then
16167 break
16168 elif $ac_last_try; then
16169 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16170 else
16171 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16172 fi
16173 done
16174 rm -f conf$$subs.sh
16175
16176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16177 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16178 _ACEOF
16179 sed -n '
16180 h
16181 s/^/S["/; s/!.*/"]=/
16182 p
16183 g
16184 s/^[^!]*!//
16185 :repl
16186 t repl
16187 s/'"$ac_delim"'$//
16188 t delim
16189 :nl
16190 h
16191 s/\(.\{148\}\).*/\1/
16192 t more1
16193 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16194 p
16195 n
16196 b repl
16197 :more1
16198 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16199 p
16200 g
16201 s/.\{148\}//
16202 t nl
16203 :delim
16204 h
16205 s/\(.\{148\}\).*/\1/
16206 t more2
16207 s/["\\]/\\&/g; s/^/"/; s/$/"/
16208 p
16209 b
16210 :more2
16211 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16212 p
16213 g
16214 s/.\{148\}//
16215 t delim
16216 ' <conf$$subs.awk | sed '
16217 /^[^""]/{
16218 N
16219 s/\n//
16220 }
16221 ' >>$CONFIG_STATUS || ac_write_fail=1
16222 rm -f conf$$subs.awk
16223 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16224 _ACAWK
16225 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16226 for (key in S) S_is_set[key] = 1
16227 FS = "\a"
16228
16229 }
16230 {
16231 line = $ 0
16232 nfields = split(line, field, "@")
16233 substed = 0
16234 len = length(field[1])
16235 for (i = 2; i < nfields; i++) {
16236 key = field[i]
16237 keylen = length(key)
16238 if (S_is_set[key]) {
16239 value = S[key]
16240 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16241 len += length(value) + length(field[++i])
16242 substed = 1
16243 } else
16244 len += 1 + keylen
16245 }
16246
16247 print line
16248 }
16249
16250 _ACAWK
16251 _ACEOF
16252 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16253 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16254 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16255 else
16256 cat
16257 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16258 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16259 _ACEOF
16260
16261 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16262 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16263 # trailing colons and then remove the whole line if VPATH becomes empty
16264 # (actually we leave an empty line to preserve line numbers).
16265 if test "x$srcdir" = x.; then
16266 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16267 s/:*\$(srcdir):*/:/
16268 s/:*\${srcdir}:*/:/
16269 s/:*@srcdir@:*/:/
16270 s/^\([^=]*=[ ]*\):*/\1/
16271 s/:*$//
16272 s/^[^=]*=[ ]*$//
16273 }'
16274 fi
16275
16276 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16277 fi # test -n "$CONFIG_FILES"
16278
16279 # Set up the scripts for CONFIG_HEADERS section.
16280 # No need to generate them if there are no CONFIG_HEADERS.
16281 # This happens for instance with `./config.status Makefile'.
16282 if test -n "$CONFIG_HEADERS"; then
16283 cat >"$tmp/defines.awk" <<\_ACAWK ||
16284 BEGIN {
16285 _ACEOF
16286
16287 # Transform confdefs.h into an awk script `defines.awk', embedded as
16288 # here-document in config.status, that substitutes the proper values into
16289 # config.h.in to produce config.h.
16290
16291 # Create a delimiter string that does not exist in confdefs.h, to ease
16292 # handling of long lines.
16293 ac_delim='%!_!# '
16294 for ac_last_try in false false :; do
16295 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16296 if test -z "$ac_t"; then
16297 break
16298 elif $ac_last_try; then
16299 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16300 else
16301 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16302 fi
16303 done
16304
16305 # For the awk script, D is an array of macro values keyed by name,
16306 # likewise P contains macro parameters if any. Preserve backslash
16307 # newline sequences.
16308
16309 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16310 sed -n '
16311 s/.\{148\}/&'"$ac_delim"'/g
16312 t rset
16313 :rset
16314 s/^[ ]*#[ ]*define[ ][ ]*/ /
16315 t def
16316 d
16317 :def
16318 s/\\$//
16319 t bsnl
16320 s/["\\]/\\&/g
16321 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16322 D["\1"]=" \3"/p
16323 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16324 d
16325 :bsnl
16326 s/["\\]/\\&/g
16327 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16328 D["\1"]=" \3\\\\\\n"\\/p
16329 t cont
16330 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16331 t cont
16332 d
16333 :cont
16334 n
16335 s/.\{148\}/&'"$ac_delim"'/g
16336 t clear
16337 :clear
16338 s/\\$//
16339 t bsnlc
16340 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16341 d
16342 :bsnlc
16343 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16344 b cont
16345 ' <confdefs.h | sed '
16346 s/'"$ac_delim"'/"\\\
16347 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16348
16349 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16350 for (key in D) D_is_set[key] = 1
16351 FS = "\a"
16352 }
16353 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16354 line = \$ 0
16355 split(line, arg, " ")
16356 if (arg[1] == "#") {
16357 defundef = arg[2]
16358 mac1 = arg[3]
16359 } else {
16360 defundef = substr(arg[1], 2)
16361 mac1 = arg[2]
16362 }
16363 split(mac1, mac2, "(") #)
16364 macro = mac2[1]
16365 prefix = substr(line, 1, index(line, defundef) - 1)
16366 if (D_is_set[macro]) {
16367 # Preserve the white space surrounding the "#".
16368 print prefix "define", macro P[macro] D[macro]
16369 next
16370 } else {
16371 # Replace #undef with comments. This is necessary, for example,
16372 # in the case of _POSIX_SOURCE, which is predefined and required
16373 # on some systems where configure will not decide to define it.
16374 if (defundef == "undef") {
16375 print "/*", prefix defundef, macro, "*/"
16376 next
16377 }
16378 }
16379 }
16380 { print }
16381 _ACAWK
16382 _ACEOF
16383 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16384 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16385 fi # test -n "$CONFIG_HEADERS"
16386
16387
16388 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16389 shift
16390 for ac_tag
16391 do
16392 case $ac_tag in
16393 :[FHLC]) ac_mode=$ac_tag; continue;;
16394 esac
16395 case $ac_mode$ac_tag in
16396 :[FHL]*:*);;
16397 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16398 :[FH]-) ac_tag=-:-;;
16399 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16400 esac
16401 ac_save_IFS=$IFS
16402 IFS=:
16403 set x $ac_tag
16404 IFS=$ac_save_IFS
16405 shift
16406 ac_file=$1
16407 shift
16408
16409 case $ac_mode in
16410 :L) ac_source=$1;;
16411 :[FH])
16412 ac_file_inputs=
16413 for ac_f
16414 do
16415 case $ac_f in
16416 -) ac_f="$tmp/stdin";;
16417 *) # Look for the file first in the build tree, then in the source tree
16418 # (if the path is not absolute). The absolute path cannot be DOS-style,
16419 # because $ac_f cannot contain `:'.
16420 test -f "$ac_f" ||
16421 case $ac_f in
16422 [\\/$]*) false;;
16423 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16424 esac ||
16425 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16426 esac
16427 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16428 as_fn_append ac_file_inputs " '$ac_f'"
16429 done
16430
16431 # Let's still pretend it is `configure' which instantiates (i.e., don't
16432 # use $as_me), people would be surprised to read:
16433 # /* config.h. Generated by config.status. */
16434 configure_input='Generated from '`
16435 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16436 `' by configure.'
16437 if test x"$ac_file" != x-; then
16438 configure_input="$ac_file. $configure_input"
16439 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16440 $as_echo "$as_me: creating $ac_file" >&6;}
16441 fi
16442 # Neutralize special characters interpreted by sed in replacement strings.
16443 case $configure_input in #(
16444 *\&* | *\|* | *\\* )
16445 ac_sed_conf_input=`$as_echo "$configure_input" |
16446 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16447 *) ac_sed_conf_input=$configure_input;;
16448 esac
16449
16450 case $ac_tag in
16451 *:-:* | *:-) cat >"$tmp/stdin" \
16452 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16453 esac
16454 ;;
16455 esac
16456
16457 ac_dir=`$as_dirname -- "$ac_file" ||
16458 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16459 X"$ac_file" : 'X\(//\)[^/]' \| \
16460 X"$ac_file" : 'X\(//\)$' \| \
16461 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16462 $as_echo X"$ac_file" |
16463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16464 s//\1/
16465 q
16466 }
16467 /^X\(\/\/\)[^/].*/{
16468 s//\1/
16469 q
16470 }
16471 /^X\(\/\/\)$/{
16472 s//\1/
16473 q
16474 }
16475 /^X\(\/\).*/{
16476 s//\1/
16477 q
16478 }
16479 s/.*/./; q'`
16480 as_dir="$ac_dir"; as_fn_mkdir_p
16481 ac_builddir=.
16482
16483 case "$ac_dir" in
16484 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16485 *)
16486 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16487 # A ".." for each directory in $ac_dir_suffix.
16488 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16489 case $ac_top_builddir_sub in
16490 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16491 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16492 esac ;;
16493 esac
16494 ac_abs_top_builddir=$ac_pwd
16495 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16496 # for backward compatibility:
16497 ac_top_builddir=$ac_top_build_prefix
16498
16499 case $srcdir in
16500 .) # We are building in place.
16501 ac_srcdir=.
16502 ac_top_srcdir=$ac_top_builddir_sub
16503 ac_abs_top_srcdir=$ac_pwd ;;
16504 [\\/]* | ?:[\\/]* ) # Absolute name.
16505 ac_srcdir=$srcdir$ac_dir_suffix;
16506 ac_top_srcdir=$srcdir
16507 ac_abs_top_srcdir=$srcdir ;;
16508 *) # Relative name.
16509 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16510 ac_top_srcdir=$ac_top_build_prefix$srcdir
16511 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16512 esac
16513 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16514
16515
16516 case $ac_mode in
16517 :F)
16518 #
16519 # CONFIG_FILE
16520 #
16521
16522 case $INSTALL in
16523 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16524 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16525 esac
16526 ac_MKDIR_P=$MKDIR_P
16527 case $MKDIR_P in
16528 [\\/$]* | ?:[\\/]* ) ;;
16529 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16530 esac
16531 _ACEOF
16532
16533 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16534 # If the template does not know about datarootdir, expand it.
16535 # FIXME: This hack should be removed a few years after 2.60.
16536 ac_datarootdir_hack=; ac_datarootdir_seen=
16537 ac_sed_dataroot='
16538 /datarootdir/ {
16539 p
16540 q
16541 }
16542 /@datadir@/p
16543 /@docdir@/p
16544 /@infodir@/p
16545 /@localedir@/p
16546 /@mandir@/p'
16547 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16548 *datarootdir*) ac_datarootdir_seen=yes;;
16549 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16551 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16552 _ACEOF
16553 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16554 ac_datarootdir_hack='
16555 s&@datadir@&$datadir&g
16556 s&@docdir@&$docdir&g
16557 s&@infodir@&$infodir&g
16558 s&@localedir@&$localedir&g
16559 s&@mandir@&$mandir&g
16560 s&\\\${datarootdir}&$datarootdir&g' ;;
16561 esac
16562 _ACEOF
16563
16564 # Neutralize VPATH when `$srcdir' = `.'.
16565 # Shell code in configure.ac might set extrasub.
16566 # FIXME: do we really want to maintain this feature?
16567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16568 ac_sed_extra="$ac_vpsub
16569 $extrasub
16570 _ACEOF
16571 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16572 :t
16573 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16574 s|@configure_input@|$ac_sed_conf_input|;t t
16575 s&@top_builddir@&$ac_top_builddir_sub&;t t
16576 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16577 s&@srcdir@&$ac_srcdir&;t t
16578 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16579 s&@top_srcdir@&$ac_top_srcdir&;t t
16580 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16581 s&@builddir@&$ac_builddir&;t t
16582 s&@abs_builddir@&$ac_abs_builddir&;t t
16583 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16584 s&@INSTALL@&$ac_INSTALL&;t t
16585 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16586 $ac_datarootdir_hack
16587 "
16588 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16589 || as_fn_error "could not create $ac_file" "$LINENO" 5
16590
16591 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16592 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16593 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16595 which seems to be undefined. Please make sure it is defined." >&5
16596 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16597 which seems to be undefined. Please make sure it is defined." >&2;}
16598
16599 rm -f "$tmp/stdin"
16600 case $ac_file in
16601 -) cat "$tmp/out" && rm -f "$tmp/out";;
16602 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16603 esac \
16604 || as_fn_error "could not create $ac_file" "$LINENO" 5
16605 ;;
16606 :H)
16607 #
16608 # CONFIG_HEADER
16609 #
16610 if test x"$ac_file" != x-; then
16611 {
16612 $as_echo "/* $configure_input */" \
16613 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16614 } >"$tmp/config.h" \
16615 || as_fn_error "could not create $ac_file" "$LINENO" 5
16616 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16617 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16618 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16619 else
16620 rm -f "$ac_file"
16621 mv "$tmp/config.h" "$ac_file" \
16622 || as_fn_error "could not create $ac_file" "$LINENO" 5
16623 fi
16624 else
16625 $as_echo "/* $configure_input */" \
16626 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16627 || as_fn_error "could not create -" "$LINENO" 5
16628 fi
16629 # Compute "$ac_file"'s index in $config_headers.
16630 _am_arg="$ac_file"
16631 _am_stamp_count=1
16632 for _am_header in $config_headers :; do
16633 case $_am_header in
16634 $_am_arg | $_am_arg:* )
16635 break ;;
16636 * )
16637 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16638 esac
16639 done
16640 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16641 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16642 X"$_am_arg" : 'X\(//\)[^/]' \| \
16643 X"$_am_arg" : 'X\(//\)$' \| \
16644 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16645 $as_echo X"$_am_arg" |
16646 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16647 s//\1/
16648 q
16649 }
16650 /^X\(\/\/\)[^/].*/{
16651 s//\1/
16652 q
16653 }
16654 /^X\(\/\/\)$/{
16655 s//\1/
16656 q
16657 }
16658 /^X\(\/\).*/{
16659 s//\1/
16660 q
16661 }
16662 s/.*/./; q'`/stamp-h$_am_stamp_count
16663 ;;
16664
16665 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16666 $as_echo "$as_me: executing $ac_file commands" >&6;}
16667 ;;
16668 esac
16669
16670
16671 case $ac_file$ac_mode in
16672 "default-1":C)
16673 # Only add multilib support code if we just rebuilt the top-level
16674 # Makefile.
16675 case " $CONFIG_FILES " in
16676 *" Makefile "*)
16677 ac_file=Makefile . ${multi_basedir}/config-ml.in
16678 ;;
16679 esac ;;
16680 "libtool":C)
16681
16682 # See if we are running on zsh, and set the options which allow our
16683 # commands through without removal of \ escapes.
16684 if test -n "${ZSH_VERSION+set}" ; then
16685 setopt NO_GLOB_SUBST
16686 fi
16687
16688 cfgfile="${ofile}T"
16689 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16690 $RM "$cfgfile"
16691
16692 cat <<_LT_EOF >> "$cfgfile"
16693 #! $SHELL
16694
16695 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16696 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16697 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16698 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16699 #
16700 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16701 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16702 # Written by Gordon Matzigkeit, 1996
16703 #
16704 # This file is part of GNU Libtool.
16705 #
16706 # GNU Libtool is free software; you can redistribute it and/or
16707 # modify it under the terms of the GNU General Public License as
16708 # published by the Free Software Foundation; either version 2 of
16709 # the License, or (at your option) any later version.
16710 #
16711 # As a special exception to the GNU General Public License,
16712 # if you distribute this file as part of a program or library that
16713 # is built using GNU Libtool, you may include this file under the
16714 # same distribution terms that you use for the rest of that program.
16715 #
16716 # GNU Libtool is distributed in the hope that it will be useful,
16717 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16718 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16719 # GNU General Public License for more details.
16720 #
16721 # You should have received a copy of the GNU General Public License
16722 # along with GNU Libtool; see the file COPYING. If not, a copy
16723 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16724 # obtained by writing to the Free Software Foundation, Inc.,
16725 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16726
16727
16728 # The names of the tagged configurations supported by this script.
16729 available_tags="CXX "
16730
16731 # ### BEGIN LIBTOOL CONFIG
16732
16733 # Which release of libtool.m4 was used?
16734 macro_version=$macro_version
16735 macro_revision=$macro_revision
16736
16737 # Whether or not to build shared libraries.
16738 build_libtool_libs=$enable_shared
16739
16740 # Whether or not to build static libraries.
16741 build_old_libs=$enable_static
16742
16743 # What type of objects to build.
16744 pic_mode=$pic_mode
16745
16746 # Whether or not to optimize for fast installation.
16747 fast_install=$enable_fast_install
16748
16749 # Shell to use when invoking shell scripts.
16750 SHELL=$lt_SHELL
16751
16752 # An echo program that protects backslashes.
16753 ECHO=$lt_ECHO
16754
16755 # The host system.
16756 host_alias=$host_alias
16757 host=$host
16758 host_os=$host_os
16759
16760 # The build system.
16761 build_alias=$build_alias
16762 build=$build
16763 build_os=$build_os
16764
16765 # A sed program that does not truncate output.
16766 SED=$lt_SED
16767
16768 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16769 Xsed="\$SED -e 1s/^X//"
16770
16771 # A grep program that handles long lines.
16772 GREP=$lt_GREP
16773
16774 # An ERE matcher.
16775 EGREP=$lt_EGREP
16776
16777 # A literal string matcher.
16778 FGREP=$lt_FGREP
16779
16780 # A BSD- or MS-compatible name lister.
16781 NM=$lt_NM
16782
16783 # Whether we need soft or hard links.
16784 LN_S=$lt_LN_S
16785
16786 # What is the maximum length of a command?
16787 max_cmd_len=$max_cmd_len
16788
16789 # Object file suffix (normally "o").
16790 objext=$ac_objext
16791
16792 # Executable file suffix (normally "").
16793 exeext=$exeext
16794
16795 # whether the shell understands "unset".
16796 lt_unset=$lt_unset
16797
16798 # turn spaces into newlines.
16799 SP2NL=$lt_lt_SP2NL
16800
16801 # turn newlines into spaces.
16802 NL2SP=$lt_lt_NL2SP
16803
16804 # An object symbol dumper.
16805 OBJDUMP=$lt_OBJDUMP
16806
16807 # Method to check whether dependent libraries are shared objects.
16808 deplibs_check_method=$lt_deplibs_check_method
16809
16810 # Command to use when deplibs_check_method == "file_magic".
16811 file_magic_cmd=$lt_file_magic_cmd
16812
16813 # The archiver.
16814 AR=$lt_AR
16815 AR_FLAGS=$lt_AR_FLAGS
16816
16817 # A symbol stripping program.
16818 STRIP=$lt_STRIP
16819
16820 # Commands used to install an old-style archive.
16821 RANLIB=$lt_RANLIB
16822 old_postinstall_cmds=$lt_old_postinstall_cmds
16823 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16824
16825 # Whether to use a lock for old archive extraction.
16826 lock_old_archive_extraction=$lock_old_archive_extraction
16827
16828 # A C compiler.
16829 LTCC=$lt_CC
16830
16831 # LTCC compiler flags.
16832 LTCFLAGS=$lt_CFLAGS
16833
16834 # Take the output of nm and produce a listing of raw symbols and C names.
16835 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16836
16837 # Transform the output of nm in a proper C declaration.
16838 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16839
16840 # Transform the output of nm in a C name address pair.
16841 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16842
16843 # Transform the output of nm in a C name address pair when lib prefix is needed.
16844 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16845
16846 # The name of the directory that contains temporary libtool files.
16847 objdir=$objdir
16848
16849 # Used to examine libraries when file_magic_cmd begins with "file".
16850 MAGIC_CMD=$MAGIC_CMD
16851
16852 # Must we lock files when doing compilation?
16853 need_locks=$lt_need_locks
16854
16855 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16856 DSYMUTIL=$lt_DSYMUTIL
16857
16858 # Tool to change global to local symbols on Mac OS X.
16859 NMEDIT=$lt_NMEDIT
16860
16861 # Tool to manipulate fat objects and archives on Mac OS X.
16862 LIPO=$lt_LIPO
16863
16864 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16865 OTOOL=$lt_OTOOL
16866
16867 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16868 OTOOL64=$lt_OTOOL64
16869
16870 # Old archive suffix (normally "a").
16871 libext=$libext
16872
16873 # Shared library suffix (normally ".so").
16874 shrext_cmds=$lt_shrext_cmds
16875
16876 # The commands to extract the exported symbol list from a shared archive.
16877 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16878
16879 # Variables whose values should be saved in libtool wrapper scripts and
16880 # restored at link time.
16881 variables_saved_for_relink=$lt_variables_saved_for_relink
16882
16883 # Do we need the "lib" prefix for modules?
16884 need_lib_prefix=$need_lib_prefix
16885
16886 # Do we need a version for libraries?
16887 need_version=$need_version
16888
16889 # Library versioning type.
16890 version_type=$version_type
16891
16892 # Shared library runtime path variable.
16893 runpath_var=$runpath_var
16894
16895 # Shared library path variable.
16896 shlibpath_var=$shlibpath_var
16897
16898 # Is shlibpath searched before the hard-coded library search path?
16899 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16900
16901 # Format of library name prefix.
16902 libname_spec=$lt_libname_spec
16903
16904 # List of archive names. First name is the real one, the rest are links.
16905 # The last name is the one that the linker finds with -lNAME
16906 library_names_spec=$lt_library_names_spec
16907
16908 # The coded name of the library, if different from the real name.
16909 soname_spec=$lt_soname_spec
16910
16911 # Permission mode override for installation of shared libraries.
16912 install_override_mode=$lt_install_override_mode
16913
16914 # Command to use after installation of a shared archive.
16915 postinstall_cmds=$lt_postinstall_cmds
16916
16917 # Command to use after uninstallation of a shared archive.
16918 postuninstall_cmds=$lt_postuninstall_cmds
16919
16920 # Commands used to finish a libtool library installation in a directory.
16921 finish_cmds=$lt_finish_cmds
16922
16923 # As "finish_cmds", except a single script fragment to be evaled but
16924 # not shown.
16925 finish_eval=$lt_finish_eval
16926
16927 # Whether we should hardcode library paths into libraries.
16928 hardcode_into_libs=$hardcode_into_libs
16929
16930 # Compile-time system search path for libraries.
16931 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16932
16933 # Run-time system search path for libraries.
16934 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16935
16936 # Whether dlopen is supported.
16937 dlopen_support=$enable_dlopen
16938
16939 # Whether dlopen of programs is supported.
16940 dlopen_self=$enable_dlopen_self
16941
16942 # Whether dlopen of statically linked programs is supported.
16943 dlopen_self_static=$enable_dlopen_self_static
16944
16945 # Commands to strip libraries.
16946 old_striplib=$lt_old_striplib
16947 striplib=$lt_striplib
16948
16949
16950 # The linker used to build libraries.
16951 LD=$lt_LD
16952
16953 # How to create reloadable object files.
16954 reload_flag=$lt_reload_flag
16955 reload_cmds=$lt_reload_cmds
16956
16957 # Commands used to build an old-style archive.
16958 old_archive_cmds=$lt_old_archive_cmds
16959
16960 # A language specific compiler.
16961 CC=$lt_compiler
16962
16963 # Is the compiler the GNU compiler?
16964 with_gcc=$GCC
16965
16966 # Compiler flag to turn off builtin functions.
16967 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16968
16969 # How to pass a linker flag through the compiler.
16970 wl=$lt_lt_prog_compiler_wl
16971
16972 # Additional compiler flags for building library objects.
16973 pic_flag=$lt_lt_prog_compiler_pic
16974
16975 # Compiler flag to prevent dynamic linking.
16976 link_static_flag=$lt_lt_prog_compiler_static
16977
16978 # Does compiler simultaneously support -c and -o options?
16979 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16980
16981 # Whether or not to add -lc for building shared libraries.
16982 build_libtool_need_lc=$archive_cmds_need_lc
16983
16984 # Whether or not to disallow shared libs when runtime libs are static.
16985 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16986
16987 # Compiler flag to allow reflexive dlopens.
16988 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16989
16990 # Compiler flag to generate shared objects directly from archives.
16991 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16992
16993 # Whether the compiler copes with passing no objects directly.
16994 compiler_needs_object=$lt_compiler_needs_object
16995
16996 # Create an old-style archive from a shared archive.
16997 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16998
16999 # Create a temporary old-style archive to link instead of a shared archive.
17000 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17001
17002 # Commands used to build a shared archive.
17003 archive_cmds=$lt_archive_cmds
17004 archive_expsym_cmds=$lt_archive_expsym_cmds
17005
17006 # Commands used to build a loadable module if different from building
17007 # a shared archive.
17008 module_cmds=$lt_module_cmds
17009 module_expsym_cmds=$lt_module_expsym_cmds
17010
17011 # Whether we are building with GNU ld or not.
17012 with_gnu_ld=$lt_with_gnu_ld
17013
17014 # Flag that allows shared libraries with undefined symbols to be built.
17015 allow_undefined_flag=$lt_allow_undefined_flag
17016
17017 # Flag that enforces no undefined symbols.
17018 no_undefined_flag=$lt_no_undefined_flag
17019
17020 # Flag to hardcode \$libdir into a binary during linking.
17021 # This must work even if \$libdir does not exist
17022 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17023
17024 # If ld is used when linking, flag to hardcode \$libdir into a binary
17025 # during linking. This must work even if \$libdir does not exist.
17026 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17027
17028 # Whether we need a single "-rpath" flag with a separated argument.
17029 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17030
17031 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17032 # DIR into the resulting binary.
17033 hardcode_direct=$hardcode_direct
17034
17035 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17036 # DIR into the resulting binary and the resulting library dependency is
17037 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17038 # library is relocated.
17039 hardcode_direct_absolute=$hardcode_direct_absolute
17040
17041 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17042 # into the resulting binary.
17043 hardcode_minus_L=$hardcode_minus_L
17044
17045 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17046 # into the resulting binary.
17047 hardcode_shlibpath_var=$hardcode_shlibpath_var
17048
17049 # Set to "yes" if building a shared library automatically hardcodes DIR
17050 # into the library and all subsequent libraries and executables linked
17051 # against it.
17052 hardcode_automatic=$hardcode_automatic
17053
17054 # Set to yes if linker adds runtime paths of dependent libraries
17055 # to runtime path list.
17056 inherit_rpath=$inherit_rpath
17057
17058 # Whether libtool must link a program against all its dependency libraries.
17059 link_all_deplibs=$link_all_deplibs
17060
17061 # Fix the shell variable \$srcfile for the compiler.
17062 fix_srcfile_path=$lt_fix_srcfile_path
17063
17064 # Set to "yes" if exported symbols are required.
17065 always_export_symbols=$always_export_symbols
17066
17067 # The commands to list exported symbols.
17068 export_symbols_cmds=$lt_export_symbols_cmds
17069
17070 # Symbols that should not be listed in the preloaded symbols.
17071 exclude_expsyms=$lt_exclude_expsyms
17072
17073 # Symbols that must always be exported.
17074 include_expsyms=$lt_include_expsyms
17075
17076 # Commands necessary for linking programs (against libraries) with templates.
17077 prelink_cmds=$lt_prelink_cmds
17078
17079 # Specify filename containing input files.
17080 file_list_spec=$lt_file_list_spec
17081
17082 # How to hardcode a shared library path into an executable.
17083 hardcode_action=$hardcode_action
17084
17085 # The directories searched by this compiler when creating a shared library.
17086 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17087
17088 # Dependencies to place before and after the objects being linked to
17089 # create a shared library.
17090 predep_objects=$lt_predep_objects
17091 postdep_objects=$lt_postdep_objects
17092 predeps=$lt_predeps
17093 postdeps=$lt_postdeps
17094
17095 # The library search path used internally by the compiler when linking
17096 # a shared library.
17097 compiler_lib_search_path=$lt_compiler_lib_search_path
17098
17099 # ### END LIBTOOL CONFIG
17100
17101 _LT_EOF
17102
17103 case $host_os in
17104 aix3*)
17105 cat <<\_LT_EOF >> "$cfgfile"
17106 # AIX sometimes has problems with the GCC collect2 program. For some
17107 # reason, if we set the COLLECT_NAMES environment variable, the problems
17108 # vanish in a puff of smoke.
17109 if test "X${COLLECT_NAMES+set}" != Xset; then
17110 COLLECT_NAMES=
17111 export COLLECT_NAMES
17112 fi
17113 _LT_EOF
17114 ;;
17115 esac
17116
17117
17118 ltmain="$ac_aux_dir/ltmain.sh"
17119
17120
17121 # We use sed instead of cat because bash on DJGPP gets confused if
17122 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17123 # text mode, it properly converts lines to CR/LF. This bash problem
17124 # is reportedly fixed, but why not run on old versions too?
17125 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17126 || (rm -f "$cfgfile"; exit 1)
17127
17128 case $xsi_shell in
17129 yes)
17130 cat << \_LT_EOF >> "$cfgfile"
17131
17132 # func_dirname file append nondir_replacement
17133 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17134 # otherwise set result to NONDIR_REPLACEMENT.
17135 func_dirname ()
17136 {
17137 case ${1} in
17138 */*) func_dirname_result="${1%/*}${2}" ;;
17139 * ) func_dirname_result="${3}" ;;
17140 esac
17141 }
17142
17143 # func_basename file
17144 func_basename ()
17145 {
17146 func_basename_result="${1##*/}"
17147 }
17148
17149 # func_dirname_and_basename file append nondir_replacement
17150 # perform func_basename and func_dirname in a single function
17151 # call:
17152 # dirname: Compute the dirname of FILE. If nonempty,
17153 # add APPEND to the result, otherwise set result
17154 # to NONDIR_REPLACEMENT.
17155 # value returned in "$func_dirname_result"
17156 # basename: Compute filename of FILE.
17157 # value retuned in "$func_basename_result"
17158 # Implementation must be kept synchronized with func_dirname
17159 # and func_basename. For efficiency, we do not delegate to
17160 # those functions but instead duplicate the functionality here.
17161 func_dirname_and_basename ()
17162 {
17163 case ${1} in
17164 */*) func_dirname_result="${1%/*}${2}" ;;
17165 * ) func_dirname_result="${3}" ;;
17166 esac
17167 func_basename_result="${1##*/}"
17168 }
17169
17170 # func_stripname prefix suffix name
17171 # strip PREFIX and SUFFIX off of NAME.
17172 # PREFIX and SUFFIX must not contain globbing or regex special
17173 # characters, hashes, percent signs, but SUFFIX may contain a leading
17174 # dot (in which case that matches only a dot).
17175 func_stripname ()
17176 {
17177 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17178 # positional parameters, so assign one to ordinary parameter first.
17179 func_stripname_result=${3}
17180 func_stripname_result=${func_stripname_result#"${1}"}
17181 func_stripname_result=${func_stripname_result%"${2}"}
17182 }
17183
17184 # func_opt_split
17185 func_opt_split ()
17186 {
17187 func_opt_split_opt=${1%%=*}
17188 func_opt_split_arg=${1#*=}
17189 }
17190
17191 # func_lo2o object
17192 func_lo2o ()
17193 {
17194 case ${1} in
17195 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17196 *) func_lo2o_result=${1} ;;
17197 esac
17198 }
17199
17200 # func_xform libobj-or-source
17201 func_xform ()
17202 {
17203 func_xform_result=${1%.*}.lo
17204 }
17205
17206 # func_arith arithmetic-term...
17207 func_arith ()
17208 {
17209 func_arith_result=$(( $* ))
17210 }
17211
17212 # func_len string
17213 # STRING may not start with a hyphen.
17214 func_len ()
17215 {
17216 func_len_result=${#1}
17217 }
17218
17219 _LT_EOF
17220 ;;
17221 *) # Bourne compatible functions.
17222 cat << \_LT_EOF >> "$cfgfile"
17223
17224 # func_dirname file append nondir_replacement
17225 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17226 # otherwise set result to NONDIR_REPLACEMENT.
17227 func_dirname ()
17228 {
17229 # Extract subdirectory from the argument.
17230 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17231 if test "X$func_dirname_result" = "X${1}"; then
17232 func_dirname_result="${3}"
17233 else
17234 func_dirname_result="$func_dirname_result${2}"
17235 fi
17236 }
17237
17238 # func_basename file
17239 func_basename ()
17240 {
17241 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17242 }
17243
17244
17245 # func_stripname prefix suffix name
17246 # strip PREFIX and SUFFIX off of NAME.
17247 # PREFIX and SUFFIX must not contain globbing or regex special
17248 # characters, hashes, percent signs, but SUFFIX may contain a leading
17249 # dot (in which case that matches only a dot).
17250 # func_strip_suffix prefix name
17251 func_stripname ()
17252 {
17253 case ${2} in
17254 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17255 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17256 esac
17257 }
17258
17259 # sed scripts:
17260 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17261 my_sed_long_arg='1s/^-[^=]*=//'
17262
17263 # func_opt_split
17264 func_opt_split ()
17265 {
17266 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17267 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17268 }
17269
17270 # func_lo2o object
17271 func_lo2o ()
17272 {
17273 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17274 }
17275
17276 # func_xform libobj-or-source
17277 func_xform ()
17278 {
17279 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17280 }
17281
17282 # func_arith arithmetic-term...
17283 func_arith ()
17284 {
17285 func_arith_result=`expr "$@"`
17286 }
17287
17288 # func_len string
17289 # STRING may not start with a hyphen.
17290 func_len ()
17291 {
17292 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17293 }
17294
17295 _LT_EOF
17296 esac
17297
17298 case $lt_shell_append in
17299 yes)
17300 cat << \_LT_EOF >> "$cfgfile"
17301
17302 # func_append var value
17303 # Append VALUE to the end of shell variable VAR.
17304 func_append ()
17305 {
17306 eval "$1+=\$2"
17307 }
17308 _LT_EOF
17309 ;;
17310 *)
17311 cat << \_LT_EOF >> "$cfgfile"
17312
17313 # func_append var value
17314 # Append VALUE to the end of shell variable VAR.
17315 func_append ()
17316 {
17317 eval "$1=\$$1\$2"
17318 }
17319
17320 _LT_EOF
17321 ;;
17322 esac
17323
17324
17325 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17326 || (rm -f "$cfgfile"; exit 1)
17327
17328 mv -f "$cfgfile" "$ofile" ||
17329 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17330 chmod +x "$ofile"
17331
17332
17333 cat <<_LT_EOF >> "$ofile"
17334
17335 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17336
17337 # The linker used to build libraries.
17338 LD=$lt_LD_CXX
17339
17340 # How to create reloadable object files.
17341 reload_flag=$lt_reload_flag_CXX
17342 reload_cmds=$lt_reload_cmds_CXX
17343
17344 # Commands used to build an old-style archive.
17345 old_archive_cmds=$lt_old_archive_cmds_CXX
17346
17347 # A language specific compiler.
17348 CC=$lt_compiler_CXX
17349
17350 # Is the compiler the GNU compiler?
17351 with_gcc=$GCC_CXX
17352
17353 # Compiler flag to turn off builtin functions.
17354 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17355
17356 # How to pass a linker flag through the compiler.
17357 wl=$lt_lt_prog_compiler_wl_CXX
17358
17359 # Additional compiler flags for building library objects.
17360 pic_flag=$lt_lt_prog_compiler_pic_CXX
17361
17362 # Compiler flag to prevent dynamic linking.
17363 link_static_flag=$lt_lt_prog_compiler_static_CXX
17364
17365 # Does compiler simultaneously support -c and -o options?
17366 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17367
17368 # Whether or not to add -lc for building shared libraries.
17369 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17370
17371 # Whether or not to disallow shared libs when runtime libs are static.
17372 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17373
17374 # Compiler flag to allow reflexive dlopens.
17375 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17376
17377 # Compiler flag to generate shared objects directly from archives.
17378 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17379
17380 # Whether the compiler copes with passing no objects directly.
17381 compiler_needs_object=$lt_compiler_needs_object_CXX
17382
17383 # Create an old-style archive from a shared archive.
17384 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17385
17386 # Create a temporary old-style archive to link instead of a shared archive.
17387 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17388
17389 # Commands used to build a shared archive.
17390 archive_cmds=$lt_archive_cmds_CXX
17391 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17392
17393 # Commands used to build a loadable module if different from building
17394 # a shared archive.
17395 module_cmds=$lt_module_cmds_CXX
17396 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17397
17398 # Whether we are building with GNU ld or not.
17399 with_gnu_ld=$lt_with_gnu_ld_CXX
17400
17401 # Flag that allows shared libraries with undefined symbols to be built.
17402 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17403
17404 # Flag that enforces no undefined symbols.
17405 no_undefined_flag=$lt_no_undefined_flag_CXX
17406
17407 # Flag to hardcode \$libdir into a binary during linking.
17408 # This must work even if \$libdir does not exist
17409 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17410
17411 # If ld is used when linking, flag to hardcode \$libdir into a binary
17412 # during linking. This must work even if \$libdir does not exist.
17413 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17414
17415 # Whether we need a single "-rpath" flag with a separated argument.
17416 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17417
17418 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17419 # DIR into the resulting binary.
17420 hardcode_direct=$hardcode_direct_CXX
17421
17422 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17423 # DIR into the resulting binary and the resulting library dependency is
17424 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17425 # library is relocated.
17426 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17427
17428 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17429 # into the resulting binary.
17430 hardcode_minus_L=$hardcode_minus_L_CXX
17431
17432 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17433 # into the resulting binary.
17434 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17435
17436 # Set to "yes" if building a shared library automatically hardcodes DIR
17437 # into the library and all subsequent libraries and executables linked
17438 # against it.
17439 hardcode_automatic=$hardcode_automatic_CXX
17440
17441 # Set to yes if linker adds runtime paths of dependent libraries
17442 # to runtime path list.
17443 inherit_rpath=$inherit_rpath_CXX
17444
17445 # Whether libtool must link a program against all its dependency libraries.
17446 link_all_deplibs=$link_all_deplibs_CXX
17447
17448 # Fix the shell variable \$srcfile for the compiler.
17449 fix_srcfile_path=$lt_fix_srcfile_path_CXX
17450
17451 # Set to "yes" if exported symbols are required.
17452 always_export_symbols=$always_export_symbols_CXX
17453
17454 # The commands to list exported symbols.
17455 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17456
17457 # Symbols that should not be listed in the preloaded symbols.
17458 exclude_expsyms=$lt_exclude_expsyms_CXX
17459
17460 # Symbols that must always be exported.
17461 include_expsyms=$lt_include_expsyms_CXX
17462
17463 # Commands necessary for linking programs (against libraries) with templates.
17464 prelink_cmds=$lt_prelink_cmds_CXX
17465
17466 # Specify filename containing input files.
17467 file_list_spec=$lt_file_list_spec_CXX
17468
17469 # How to hardcode a shared library path into an executable.
17470 hardcode_action=$hardcode_action_CXX
17471
17472 # The directories searched by this compiler when creating a shared library.
17473 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17474
17475 # Dependencies to place before and after the objects being linked to
17476 # create a shared library.
17477 predep_objects=$lt_predep_objects_CXX
17478 postdep_objects=$lt_postdep_objects_CXX
17479 predeps=$lt_predeps_CXX
17480 postdeps=$lt_postdeps_CXX
17481
17482 # The library search path used internally by the compiler when linking
17483 # a shared library.
17484 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17485
17486 # ### END LIBTOOL TAG CONFIG: CXX
17487 _LT_EOF
17488
17489 ;;
17490 "mpxrt/Makefile":F) cat > vpsed$$ << \_EOF
17491 s!`test -f '$<' || echo '$(srcdir)/'`!!
17492 _EOF
17493 sed -f vpsed$$ $ac_file > tmp$$
17494 mv tmp$$ $ac_file
17495 rm vpsed$$
17496 echo 'MULTISUBDIR =' >> $ac_file
17497 ml_norecursion=yes
17498 . ${multi_basedir}/config-ml.in
17499 { ml_norecursion=; unset ml_norecursion;}
17500 ;;
17501
17502 esac
17503 done # for ac_tag
17504
17505
17506 as_fn_exit 0
17507 _ACEOF
17508 ac_clean_files=$ac_clean_files_save
17509
17510 test $ac_write_fail = 0 ||
17511 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17512
17513
17514 # configure is writing to config.log, and then calls config.status.
17515 # config.status does its own redirection, appending to config.log.
17516 # Unfortunately, on DOS this fails, as config.log is still kept open
17517 # by configure, so config.status won't be able to write to it; its
17518 # output is simply discarded. So we exec the FD to /dev/null,
17519 # effectively closing config.log, so it can be properly (re)opened and
17520 # appended to by config.status. When coming back to configure, we
17521 # need to make the FD available again.
17522 if test "$no_create" != yes; then
17523 ac_cs_success=:
17524 ac_config_status_args=
17525 test "$silent" = yes &&
17526 ac_config_status_args="$ac_config_status_args --quiet"
17527 exec 5>/dev/null
17528 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17529 exec 5>>config.log
17530 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17531 # would make configure fail if this is the last instruction.
17532 $ac_cs_success || as_fn_exit $?
17533 fi
17534 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17536 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17537 fi
17538