Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for lrcalc 1.2.
4 #
5 # Report bugs to <asbuch at math rutgers edu>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188 else
189 as_have_required=no
190 fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
202 /*)
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
211 fi
212 fi
213 done;;
214 esac
215 as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell [email protected] and asbuch at math
250 $0: rutgers edu about your system, including any error
251 $0: possibly output before this message. Then install a
252 $0: modern shell, or manually run the script under such a
253 $0: shell if you do have one."
254 fi
255 exit 1
256 fi
257 fi
258 fi
259 SHELL=${CONFIG_SHELL-/bin/sh}
260 export SHELL
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
264
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
268 # as_fn_unset VAR
269 # ---------------
270 # Portably unset VAR.
271 as_fn_unset ()
272 {
273 { eval $1=; unset $1;}
274 }
275 as_unset=as_fn_unset
276
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
280 as_fn_set_status ()
281 {
282 return $1
283 } # as_fn_set_status
284
285 # as_fn_exit STATUS
286 # -----------------
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 as_fn_exit ()
289 {
290 set +e
291 as_fn_set_status $1
292 exit $1
293 } # as_fn_exit
294
295 # as_fn_mkdir_p
296 # -------------
297 # Create "$as_dir" as a directory, including parents if necessary.
298 as_fn_mkdir_p ()
299 {
300
301 case $as_dir in #(
302 -*) as_dir=./$as_dir;;
303 esac
304 test -d "$as_dir" || eval $as_mkdir_p || {
305 as_dirs=
306 while :; do
307 case $as_dir in #(
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309 *) as_qdir=$as_dir;;
310 esac
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\/\)[^/].*/{
323 s//\1/
324 q
325 }
326 /^X\(\/\/\)$/{
327 s//\1/
328 q
329 }
330 /^X\(\/\).*/{
331 s//\1/
332 q
333 }
334 s/.*/./; q'`
335 test -d "$as_dir" && break
336 done
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341 } # as_fn_mkdir_p
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
347 # implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
350 {
351 eval $1+=\$2
352 }'
353 else
354 as_fn_append ()
355 {
356 eval $1=\$$1\$2
357 }
358 fi # as_fn_append
359
360 # as_fn_arith ARG...
361 # ------------------
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366 eval 'as_fn_arith ()
367 {
368 as_val=$(( $* ))
369 }'
370 else
371 as_fn_arith ()
372 {
373 as_val=`expr "$@" || test $? -eq 1`
374 }
375 fi # as_fn_arith
376
377
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
383 as_fn_error ()
384 {
385 as_status=$1; test $as_status -eq 0 && as_status=1
386 if test "$4"; then
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389 fi
390 $as_echo "$as_me: error: $2" >&2
391 as_fn_exit $as_status
392 } # as_fn_error
393
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
396 as_expr=expr
397 else
398 as_expr=false
399 fi
400
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402 as_basename=basename
403 else
404 as_basename=false
405 fi
406
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408 as_dirname=dirname
409 else
410 as_dirname=false
411 fi
412
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 $as_echo X/"$0" |
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 s//\1/
420 q
421 }
422 /^X\/\(\/\/\)$/{
423 s//\1/
424 q
425 }
426 /^X\/\(\/\).*/{
427 s//\1/
428 q
429 }
430 s/.*/./; q'`
431
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
445 sed -n '
446 p
447 /[$]LINENO/=
448 ' <$as_myself |
449 sed '
450 s/[$]LINENO.*/&-/
451 t lineno
452 b
453 :lineno
454 N
455 :loop
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 t loop
458 s/-\n.*//
459 ' >$as_me.lineno &&
460 chmod +x "$as_me.lineno" ||
461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
466 . "./$as_me.lineno"
467 # Exit status is that of the last command.
468 exit
469 }
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
473 -n*)
474 case `echo 'xy\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
476 xy) ECHO_C='\c';;
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
478 ECHO_T=' ';;
479 esac;;
480 *)
481 ECHO_N='-n';;
482 esac
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
487 else
488 rm -f conf$$.dir
489 mkdir conf$$.dir 2>/dev/null
490 fi
491 if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s='ln -s'
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499 as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s=ln
502 else
503 as_ln_s='cp -p'
504 fi
505 else
506 as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512 as_mkdir_p='mkdir -p "$as_dir"'
513 else
514 test -d ./-p && rmdir ./-p
515 as_mkdir_p=false
516 fi
517
518 if test -x / >/dev/null 2>&1; then
519 as_test_x='test -x'
520 else
521 if ls -dL / >/dev/null 2>&1; then
522 as_ls_L_option=L
523 else
524 as_ls_L_option=
525 fi
526 as_test_x='
527 eval sh -c '\''
528 if test -d "$1"; then
529 test -d "$1/.";
530 else
531 case $1 in #(
532 -*)set "./$1";;
533 esac;
534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535 ???[sx]*):;;*)false;;esac;fi
536 '\'' sh
537 '
538 fi
539 as_executable_p=$as_test_x
540
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547 SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550 test -n "$DJDIR" || exec 7<&0 </dev/null
551 exec 6>&1
552
553 # Name of the host.
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558 #
559 # Initializations.
560 #
561 ac_default_prefix=/usr/local
562 ac_clean_files=
563 ac_config_libobj_dir=.
564 LIBOBJS=
565 cross_compiling=no
566 subdirs=
567 MFLAGS=
568 MAKEFLAGS=
569
570 # Identity of this package.
571 PACKAGE_NAME='lrcalc'
572 PACKAGE_TARNAME='lrcalc'
573 PACKAGE_VERSION='1.2'
574 PACKAGE_STRING='lrcalc 1.2'
575 PACKAGE_BUGREPORT='asbuch at math rutgers edu'
576 PACKAGE_URL=''
577
578 # Factoring default headers for most tests.
579 ac_includes_default="\
580 #include <stdio.h>
581 #ifdef HAVE_SYS_TYPES_H
582 # include <sys/types.h>
583 #endif
584 #ifdef HAVE_SYS_STAT_H
585 # include <sys/stat.h>
586 #endif
587 #ifdef STDC_HEADERS
588 # include <stdlib.h>
589 # include <stddef.h>
590 #else
591 # ifdef HAVE_STDLIB_H
592 # include <stdlib.h>
593 # endif
594 #endif
595 #ifdef HAVE_STRING_H
596 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
597 # include <memory.h>
598 # endif
599 # include <string.h>
600 #endif
601 #ifdef HAVE_STRINGS_H
602 # include <strings.h>
603 #endif
604 #ifdef HAVE_INTTYPES_H
605 # include <inttypes.h>
606 #endif
607 #ifdef HAVE_STDINT_H
608 # include <stdint.h>
609 #endif
610 #ifdef HAVE_UNISTD_H
611 # include <unistd.h>
612 #endif"
613
614 ac_subst_vars='am__EXEEXT_FALSE
615 am__EXEEXT_TRUE
616 LTLIBOBJS
617 LIBOBJS
618 LIBLRCALC_LDFLAGS
619 CXXCPP
620 OTOOL64
621 OTOOL
622 LIPO
623 NMEDIT
624 DSYMUTIL
625 MANIFEST_TOOL
626 RANLIB
627 ac_ct_AR
628 AR
629 NM
630 ac_ct_DUMPBIN
631 DUMPBIN
632 LD
633 FGREP
634 EGREP
635 GREP
636 SED
637 host_os
638 host_vendor
639 host_cpu
640 host
641 build_os
642 build_vendor
643 build_cpu
644 build
645 LIBTOOL
646 OBJDUMP
647 DLLTOOL
648 AS
649 LN_S
650 CPP
651 am__fastdepCC_FALSE
652 am__fastdepCC_TRUE
653 CCDEPMODE
654 ac_ct_CC
655 CFLAGS
656 CC
657 am__fastdepCXX_FALSE
658 am__fastdepCXX_TRUE
659 CXXDEPMODE
660 am__nodep
661 AMDEPBACKSLASH
662 AMDEP_FALSE
663 AMDEP_TRUE
664 am__quote
665 am__include
666 DEPDIR
667 OBJEXT
668 EXEEXT
669 ac_ct_CXX
670 CPPFLAGS
671 LDFLAGS
672 CXXFLAGS
673 CXX
674 MAINT
675 MAINTAINER_MODE_FALSE
676 MAINTAINER_MODE_TRUE
677 am__untar
678 am__tar
679 AMTAR
680 am__leading_dot
681 SET_MAKE
682 AWK
683 mkdir_p
684 MKDIR_P
685 INSTALL_STRIP_PROGRAM
686 STRIP
687 install_sh
688 MAKEINFO
689 AUTOHEADER
690 AUTOMAKE
691 AUTOCONF
692 ACLOCAL
693 VERSION
694 PACKAGE
695 CYGPATH_W
696 am__isrc
697 INSTALL_DATA
698 INSTALL_SCRIPT
699 INSTALL_PROGRAM
700 target_alias
701 host_alias
702 build_alias
703 LIBS
704 ECHO_T
705 ECHO_N
706 ECHO_C
707 DEFS
708 mandir
709 localedir
710 libdir
711 psdir
712 pdfdir
713 dvidir
714 htmldir
715 infodir
716 docdir
717 oldincludedir
718 includedir
719 localstatedir
720 sharedstatedir
721 sysconfdir
722 datadir
723 datarootdir
724 libexecdir
725 sbindir
726 bindir
727 program_transform_name
728 prefix
729 exec_prefix
730 PACKAGE_URL
731 PACKAGE_BUGREPORT
732 PACKAGE_STRING
733 PACKAGE_VERSION
734 PACKAGE_TARNAME
735 PACKAGE_NAME
736 PATH_SEPARATOR
737 SHELL'
738 ac_subst_files=''
739 ac_user_opts='
740 enable_option_checking
741 enable_maintainer_mode
742 enable_dependency_tracking
743 enable_shared
744 enable_static
745 with_pic
746 enable_fast_install
747 with_gnu_ld
748 with_sysroot
749 enable_libtool_lock
750 '
751 ac_precious_vars='build_alias
752 host_alias
753 target_alias
754 CXX
755 CXXFLAGS
756 LDFLAGS
757 LIBS
758 CPPFLAGS
759 CCC
760 CC
761 CFLAGS
762 CPP
763 CXXCPP'
764
765
766 # Initialize some variables set by options.
767 ac_init_help=
768 ac_init_version=false
769 ac_unrecognized_opts=
770 ac_unrecognized_sep=
771 # The variables have the same names as the options, with
772 # dashes changed to underlines.
773 cache_file=/dev/null
774 exec_prefix=NONE
775 no_create=
776 no_recursion=
777 prefix=NONE
778 program_prefix=NONE
779 program_suffix=NONE
780 program_transform_name=s,x,x,
781 silent=
782 site=
783 srcdir=
784 verbose=
785 x_includes=NONE
786 x_libraries=NONE
787
788 # Installation directory options.
789 # These are left unexpanded so users can "make install exec_prefix=/foo"
790 # and all the variables that are supposed to be based on exec_prefix
791 # by default will actually change.
792 # Use braces instead of parens because sh, perl, etc. also accept them.
793 # (The list follows the same order as the GNU Coding Standards.)
794 bindir='${exec_prefix}/bin'
795 sbindir='${exec_prefix}/sbin'
796 libexecdir='${exec_prefix}/libexec'
797 datarootdir='${prefix}/share'
798 datadir='${datarootdir}'
799 sysconfdir='${prefix}/etc'
800 sharedstatedir='${prefix}/com'
801 localstatedir='${prefix}/var'
802 includedir='${prefix}/include'
803 oldincludedir='/usr/include'
804 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
805 infodir='${datarootdir}/info'
806 htmldir='${docdir}'
807 dvidir='${docdir}'
808 pdfdir='${docdir}'
809 psdir='${docdir}'
810 libdir='${exec_prefix}/lib'
811 localedir='${datarootdir}/locale'
812 mandir='${datarootdir}/man'
813
814 ac_prev=
815 ac_dashdash=
816 for ac_option
817 do
818 # If the previous option needs an argument, assign it.
819 if test -n "$ac_prev"; then
820 eval $ac_prev=\$ac_option
821 ac_prev=
822 continue
823 fi
824
825 case $ac_option in
826 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
827 *=) ac_optarg= ;;
828 *) ac_optarg=yes ;;
829 esac
830
831 # Accept the important Cygnus configure options, so we can diagnose typos.
832
833 case $ac_dashdash$ac_option in
834 --)
835 ac_dashdash=yes ;;
836
837 -bindir | --bindir | --bindi | --bind | --bin | --bi)
838 ac_prev=bindir ;;
839 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
840 bindir=$ac_optarg ;;
841
842 -build | --build | --buil | --bui | --bu)
843 ac_prev=build_alias ;;
844 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
845 build_alias=$ac_optarg ;;
846
847 -cache-file | --cache-file | --cache-fil | --cache-fi \
848 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
849 ac_prev=cache_file ;;
850 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
851 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
852 cache_file=$ac_optarg ;;
853
854 --config-cache | -C)
855 cache_file=config.cache ;;
856
857 -datadir | --datadir | --datadi | --datad)
858 ac_prev=datadir ;;
859 -datadir=* | --datadir=* | --datadi=* | --datad=*)
860 datadir=$ac_optarg ;;
861
862 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
863 | --dataroo | --dataro | --datar)
864 ac_prev=datarootdir ;;
865 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
866 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
867 datarootdir=$ac_optarg ;;
868
869 -disable-* | --disable-*)
870 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
871 # Reject names that are not valid shell variable names.
872 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
873 as_fn_error $? "invalid feature name: $ac_useropt"
874 ac_useropt_orig=$ac_useropt
875 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
876 case $ac_user_opts in
877 *"
878 "enable_$ac_useropt"
879 "*) ;;
880 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
881 ac_unrecognized_sep=', ';;
882 esac
883 eval enable_$ac_useropt=no ;;
884
885 -docdir | --docdir | --docdi | --doc | --do)
886 ac_prev=docdir ;;
887 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
888 docdir=$ac_optarg ;;
889
890 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
891 ac_prev=dvidir ;;
892 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
893 dvidir=$ac_optarg ;;
894
895 -enable-* | --enable-*)
896 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899 as_fn_error $? "invalid feature name: $ac_useropt"
900 ac_useropt_orig=$ac_useropt
901 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902 case $ac_user_opts in
903 *"
904 "enable_$ac_useropt"
905 "*) ;;
906 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
907 ac_unrecognized_sep=', ';;
908 esac
909 eval enable_$ac_useropt=\$ac_optarg ;;
910
911 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
912 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
913 | --exec | --exe | --ex)
914 ac_prev=exec_prefix ;;
915 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
916 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
917 | --exec=* | --exe=* | --ex=*)
918 exec_prefix=$ac_optarg ;;
919
920 -gas | --gas | --ga | --g)
921 # Obsolete; use --with-gas.
922 with_gas=yes ;;
923
924 -help | --help | --hel | --he | -h)
925 ac_init_help=long ;;
926 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
927 ac_init_help=recursive ;;
928 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
929 ac_init_help=short ;;
930
931 -host | --host | --hos | --ho)
932 ac_prev=host_alias ;;
933 -host=* | --host=* | --hos=* | --ho=*)
934 host_alias=$ac_optarg ;;
935
936 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
937 ac_prev=htmldir ;;
938 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
939 | --ht=*)
940 htmldir=$ac_optarg ;;
941
942 -includedir | --includedir | --includedi | --included | --include \
943 | --includ | --inclu | --incl | --inc)
944 ac_prev=includedir ;;
945 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
946 | --includ=* | --inclu=* | --incl=* | --inc=*)
947 includedir=$ac_optarg ;;
948
949 -infodir | --infodir | --infodi | --infod | --info | --inf)
950 ac_prev=infodir ;;
951 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
952 infodir=$ac_optarg ;;
953
954 -libdir | --libdir | --libdi | --libd)
955 ac_prev=libdir ;;
956 -libdir=* | --libdir=* | --libdi=* | --libd=*)
957 libdir=$ac_optarg ;;
958
959 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
960 | --libexe | --libex | --libe)
961 ac_prev=libexecdir ;;
962 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
963 | --libexe=* | --libex=* | --libe=*)
964 libexecdir=$ac_optarg ;;
965
966 -localedir | --localedir | --localedi | --localed | --locale)
967 ac_prev=localedir ;;
968 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
969 localedir=$ac_optarg ;;
970
971 -localstatedir | --localstatedir | --localstatedi | --localstated \
972 | --localstate | --localstat | --localsta | --localst | --locals)
973 ac_prev=localstatedir ;;
974 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
975 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
976 localstatedir=$ac_optarg ;;
977
978 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
979 ac_prev=mandir ;;
980 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
981 mandir=$ac_optarg ;;
982
983 -nfp | --nfp | --nf)
984 # Obsolete; use --without-fp.
985 with_fp=no ;;
986
987 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
988 | --no-cr | --no-c | -n)
989 no_create=yes ;;
990
991 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
992 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
993 no_recursion=yes ;;
994
995 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
996 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
997 | --oldin | --oldi | --old | --ol | --o)
998 ac_prev=oldincludedir ;;
999 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1000 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1001 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1002 oldincludedir=$ac_optarg ;;
1003
1004 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1005 ac_prev=prefix ;;
1006 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1007 prefix=$ac_optarg ;;
1008
1009 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1010 | --program-pre | --program-pr | --program-p)
1011 ac_prev=program_prefix ;;
1012 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1013 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1014 program_prefix=$ac_optarg ;;
1015
1016 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1017 | --program-suf | --program-su | --program-s)
1018 ac_prev=program_suffix ;;
1019 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1020 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1021 program_suffix=$ac_optarg ;;
1022
1023 -program-transform-name | --program-transform-name \
1024 | --program-transform-nam | --program-transform-na \
1025 | --program-transform-n | --program-transform- \
1026 | --program-transform | --program-transfor \
1027 | --program-transfo | --program-transf \
1028 | --program-trans | --program-tran \
1029 | --progr-tra | --program-tr | --program-t)
1030 ac_prev=program_transform_name ;;
1031 -program-transform-name=* | --program-transform-name=* \
1032 | --program-transform-nam=* | --program-transform-na=* \
1033 | --program-transform-n=* | --program-transform-=* \
1034 | --program-transform=* | --program-transfor=* \
1035 | --program-transfo=* | --program-transf=* \
1036 | --program-trans=* | --program-tran=* \
1037 | --progr-tra=* | --program-tr=* | --program-t=*)
1038 program_transform_name=$ac_optarg ;;
1039
1040 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1041 ac_prev=pdfdir ;;
1042 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1043 pdfdir=$ac_optarg ;;
1044
1045 -psdir | --psdir | --psdi | --psd | --ps)
1046 ac_prev=psdir ;;
1047 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1048 psdir=$ac_optarg ;;
1049
1050 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1051 | -silent | --silent | --silen | --sile | --sil)
1052 silent=yes ;;
1053
1054 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1055 ac_prev=sbindir ;;
1056 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1057 | --sbi=* | --sb=*)
1058 sbindir=$ac_optarg ;;
1059
1060 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1061 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1062 | --sharedst | --shareds | --shared | --share | --shar \
1063 | --sha | --sh)
1064 ac_prev=sharedstatedir ;;
1065 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1066 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1067 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1068 | --sha=* | --sh=*)
1069 sharedstatedir=$ac_optarg ;;
1070
1071 -site | --site | --sit)
1072 ac_prev=site ;;
1073 -site=* | --site=* | --sit=*)
1074 site=$ac_optarg ;;
1075
1076 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1077 ac_prev=srcdir ;;
1078 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1079 srcdir=$ac_optarg ;;
1080
1081 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1082 | --syscon | --sysco | --sysc | --sys | --sy)
1083 ac_prev=sysconfdir ;;
1084 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1085 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1086 sysconfdir=$ac_optarg ;;
1087
1088 -target | --target | --targe | --targ | --tar | --ta | --t)
1089 ac_prev=target_alias ;;
1090 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1091 target_alias=$ac_optarg ;;
1092
1093 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1094 verbose=yes ;;
1095
1096 -version | --version | --versio | --versi | --vers | -V)
1097 ac_init_version=: ;;
1098
1099 -with-* | --with-*)
1100 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1101 # Reject names that are not valid shell variable names.
1102 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1103 as_fn_error $? "invalid package name: $ac_useropt"
1104 ac_useropt_orig=$ac_useropt
1105 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1106 case $ac_user_opts in
1107 *"
1108 "with_$ac_useropt"
1109 "*) ;;
1110 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1111 ac_unrecognized_sep=', ';;
1112 esac
1113 eval with_$ac_useropt=\$ac_optarg ;;
1114
1115 -without-* | --without-*)
1116 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1117 # Reject names that are not valid shell variable names.
1118 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119 as_fn_error $? "invalid package name: $ac_useropt"
1120 ac_useropt_orig=$ac_useropt
1121 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122 case $ac_user_opts in
1123 *"
1124 "with_$ac_useropt"
1125 "*) ;;
1126 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1127 ac_unrecognized_sep=', ';;
1128 esac
1129 eval with_$ac_useropt=no ;;
1130
1131 --x)
1132 # Obsolete; use --with-x.
1133 with_x=yes ;;
1134
1135 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1136 | --x-incl | --x-inc | --x-in | --x-i)
1137 ac_prev=x_includes ;;
1138 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1139 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1140 x_includes=$ac_optarg ;;
1141
1142 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1143 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1144 ac_prev=x_libraries ;;
1145 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1146 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1147 x_libraries=$ac_optarg ;;
1148
1149 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1150 Try \`$0 --help' for more information"
1151 ;;
1152
1153 *=*)
1154 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1155 # Reject names that are not valid shell variable names.
1156 case $ac_envvar in #(
1157 '' | [0-9]* | *[!_$as_cr_alnum]* )
1158 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1159 esac
1160 eval $ac_envvar=\$ac_optarg
1161 export $ac_envvar ;;
1162
1163 *)
1164 # FIXME: should be removed in autoconf 3.0.
1165 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1166 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1167 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1168 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1169 ;;
1170
1171 esac
1172 done
1173
1174 if test -n "$ac_prev"; then
1175 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1176 as_fn_error $? "missing argument to $ac_option"
1177 fi
1178
1179 if test -n "$ac_unrecognized_opts"; then
1180 case $enable_option_checking in
1181 no) ;;
1182 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1183 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1184 esac
1185 fi
1186
1187 # Check all directory arguments for consistency.
1188 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1189 datadir sysconfdir sharedstatedir localstatedir includedir \
1190 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1191 libdir localedir mandir
1192 do
1193 eval ac_val=\$$ac_var
1194 # Remove trailing slashes.
1195 case $ac_val in
1196 */ )
1197 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1198 eval $ac_var=\$ac_val;;
1199 esac
1200 # Be sure to have absolute directory names.
1201 case $ac_val in
1202 [\\/$]* | ?:[\\/]* ) continue;;
1203 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1204 esac
1205 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1206 done
1207
1208 # There might be people who depend on the old broken behavior: `$host'
1209 # used to hold the argument of --host etc.
1210 # FIXME: To remove some day.
1211 build=$build_alias
1212 host=$host_alias
1213 target=$target_alias
1214
1215 # FIXME: To remove some day.
1216 if test "x$host_alias" != x; then
1217 if test "x$build_alias" = x; then
1218 cross_compiling=maybe
1219 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1220 If a cross compiler is detected then cross compile mode will be used" >&2
1221 elif test "x$build_alias" != "x$host_alias"; then
1222 cross_compiling=yes
1223 fi
1224 fi
1225
1226 ac_tool_prefix=
1227 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1228
1229 test "$silent" = yes && exec 6>/dev/null
1230
1231
1232 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1233 ac_ls_di=`ls -di .` &&
1234 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1235 as_fn_error $? "working directory cannot be determined"
1236 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1237 as_fn_error $? "pwd does not report name of working directory"
1238
1239
1240 # Find the source files, if location was not specified.
1241 if test -z "$srcdir"; then
1242 ac_srcdir_defaulted=yes
1243 # Try the directory containing this script, then the parent directory.
1244 ac_confdir=`$as_dirname -- "$as_myself" ||
1245 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1246 X"$as_myself" : 'X\(//\)[^/]' \| \
1247 X"$as_myself" : 'X\(//\)$' \| \
1248 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1249 $as_echo X"$as_myself" |
1250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1251 s//\1/
1252 q
1253 }
1254 /^X\(\/\/\)[^/].*/{
1255 s//\1/
1256 q
1257 }
1258 /^X\(\/\/\)$/{
1259 s//\1/
1260 q
1261 }
1262 /^X\(\/\).*/{
1263 s//\1/
1264 q
1265 }
1266 s/.*/./; q'`
1267 srcdir=$ac_confdir
1268 if test ! -r "$srcdir/$ac_unique_file"; then
1269 srcdir=..
1270 fi
1271 else
1272 ac_srcdir_defaulted=no
1273 fi
1274 if test ! -r "$srcdir/$ac_unique_file"; then
1275 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1276 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1277 fi
1278 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1279 ac_abs_confdir=`(
1280 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1281 pwd)`
1282 # When building in place, set srcdir=.
1283 if test "$ac_abs_confdir" = "$ac_pwd"; then
1284 srcdir=.
1285 fi
1286 # Remove unnecessary trailing slashes from srcdir.
1287 # Double slashes in file names in object file debugging info
1288 # mess up M-x gdb in Emacs.
1289 case $srcdir in
1290 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1291 esac
1292 for ac_var in $ac_precious_vars; do
1293 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1294 eval ac_env_${ac_var}_value=\$${ac_var}
1295 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1296 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1297 done
1298
1299 #
1300 # Report the --help message.
1301 #
1302 if test "$ac_init_help" = "long"; then
1303 # Omit some internal or obsolete options to make the list less imposing.
1304 # This message is too long to be a string in the A/UX 3.1 sh.
1305 cat <<_ACEOF
1306 \`configure' configures lrcalc 1.2 to adapt to many kinds of systems.
1307
1308 Usage: $0 [OPTION]... [VAR=VALUE]...
1309
1310 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1311 VAR=VALUE. See below for descriptions of some of the useful variables.
1312
1313 Defaults for the options are specified in brackets.
1314
1315 Configuration:
1316 -h, --help display this help and exit
1317 --help=short display options specific to this package
1318 --help=recursive display the short help of all the included packages
1319 -V, --version display version information and exit
1320 -q, --quiet, --silent do not print \`checking ...' messages
1321 --cache-file=FILE cache test results in FILE [disabled]
1322 -C, --config-cache alias for \`--cache-file=config.cache'
1323 -n, --no-create do not create output files
1324 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1325
1326 Installation directories:
1327 --prefix=PREFIX install architecture-independent files in PREFIX
1328 [$ac_default_prefix]
1329 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1330 [PREFIX]
1331
1332 By default, \`make install' will install all the files in
1333 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1334 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1335 for instance \`--prefix=\$HOME'.
1336
1337 For better control, use the options below.
1338
1339 Fine tuning of the installation directories:
1340 --bindir=DIR user executables [EPREFIX/bin]
1341 --sbindir=DIR system admin executables [EPREFIX/sbin]
1342 --libexecdir=DIR program executables [EPREFIX/libexec]
1343 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1344 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1345 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1346 --libdir=DIR object code libraries [EPREFIX/lib]
1347 --includedir=DIR C header files [PREFIX/include]
1348 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1349 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1350 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1351 --infodir=DIR info documentation [DATAROOTDIR/info]
1352 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1353 --mandir=DIR man documentation [DATAROOTDIR/man]
1354 --docdir=DIR documentation root [DATAROOTDIR/doc/lrcalc]
1355 --htmldir=DIR html documentation [DOCDIR]
1356 --dvidir=DIR dvi documentation [DOCDIR]
1357 --pdfdir=DIR pdf documentation [DOCDIR]
1358 --psdir=DIR ps documentation [DOCDIR]
1359 _ACEOF
1360
1361 cat <<\_ACEOF
1362
1363 Program names:
1364 --program-prefix=PREFIX prepend PREFIX to installed program names
1365 --program-suffix=SUFFIX append SUFFIX to installed program names
1366 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1367
1368 System types:
1369 --build=BUILD configure for building on BUILD [guessed]
1370 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1371 _ACEOF
1372 fi
1373
1374 if test -n "$ac_init_help"; then
1375 case $ac_init_help in
1376 short | recursive ) echo "Configuration of lrcalc 1.2:";;
1377 esac
1378 cat <<\_ACEOF
1379
1380 Optional Features:
1381 --disable-option-checking ignore unrecognized --enable/--with options
1382 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1383 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1384 --enable-maintainer-mode enable make rules and dependencies not useful
1385 (and sometimes confusing) to the casual installer
1386 --disable-dependency-tracking speeds up one-time build
1387 --enable-dependency-tracking do not reject slow dependency extractors
1388 --enable-shared[=PKGS] build shared libraries [default=yes]
1389 --enable-static[=PKGS] build static libraries [default=yes]
1390 --enable-fast-install[=PKGS]
1391 optimize for fast installation [default=yes]
1392 --disable-libtool-lock avoid locking (might break parallel builds)
1393
1394 Optional Packages:
1395 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1396 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1397 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1398 both]
1399 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1400 --with-sysroot=DIR Search for dependent libraries within DIR
1401 (or the compiler's sysroot if not specified).
1402
1403 Some influential environment variables:
1404 CXX C++ compiler command
1405 CXXFLAGS C++ compiler flags
1406 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1407 nonstandard directory <lib dir>
1408 LIBS libraries to pass to the linker, e.g. -l<library>
1409 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1410 you have headers in a nonstandard directory <include dir>
1411 CC C compiler command
1412 CFLAGS C compiler flags
1413 CPP C preprocessor
1414 CXXCPP C++ preprocessor
1415
1416 Use these variables to override the choices made by `configure' or to help
1417 it to find libraries and programs with nonstandard names/locations.
1418
1419 Report bugs to <asbuch at math rutgers edu>.
1420 _ACEOF
1421 ac_status=$?
1422 fi
1423
1424 if test "$ac_init_help" = "recursive"; then
1425 # If there are subdirs, report their specific --help.
1426 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1427 test -d "$ac_dir" ||
1428 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1429 continue
1430 ac_builddir=.
1431
1432 case "$ac_dir" in
1433 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1434 *)
1435 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1436 # A ".." for each directory in $ac_dir_suffix.
1437 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1438 case $ac_top_builddir_sub in
1439 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1440 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1441 esac ;;
1442 esac
1443 ac_abs_top_builddir=$ac_pwd
1444 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1445 # for backward compatibility:
1446 ac_top_builddir=$ac_top_build_prefix
1447
1448 case $srcdir in
1449 .) # We are building in place.
1450 ac_srcdir=.
1451 ac_top_srcdir=$ac_top_builddir_sub
1452 ac_abs_top_srcdir=$ac_pwd ;;
1453 [\\/]* | ?:[\\/]* ) # Absolute name.
1454 ac_srcdir=$srcdir$ac_dir_suffix;
1455 ac_top_srcdir=$srcdir
1456 ac_abs_top_srcdir=$srcdir ;;
1457 *) # Relative name.
1458 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1459 ac_top_srcdir=$ac_top_build_prefix$srcdir
1460 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1461 esac
1462 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1463
1464 cd "$ac_dir" || { ac_status=$?; continue; }
1465 # Check for guested configure.
1466 if test -f "$ac_srcdir/configure.gnu"; then
1467 echo &&
1468 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1469 elif test -f "$ac_srcdir/configure"; then
1470 echo &&
1471 $SHELL "$ac_srcdir/configure" --help=recursive
1472 else
1473 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1474 fi || ac_status=$?
1475 cd "$ac_pwd" || { ac_status=$?; break; }
1476 done
1477 fi
1478
1479 test -n "$ac_init_help" && exit $ac_status
1480 if $ac_init_version; then
1481 cat <<\_ACEOF
1482 lrcalc configure 1.2
1483 generated by GNU Autoconf 2.68
1484
1485 Copyright (C) 2010 Free Software Foundation, Inc.
1486 This configure script is free software; the Free Software Foundation
1487 gives unlimited permission to copy, distribute and modify it.
1488 _ACEOF
1489 exit
1490 fi
1491
1492 ## ------------------------ ##
1493 ## Autoconf initialization. ##
1494 ## ------------------------ ##
1495
1496 # ac_fn_cxx_try_compile LINENO
1497 # ----------------------------
1498 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1499 ac_fn_cxx_try_compile ()
1500 {
1501 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1502 rm -f conftest.$ac_objext
1503 if { { ac_try="$ac_compile"
1504 case "(($ac_try" in
1505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1506 *) ac_try_echo=$ac_try;;
1507 esac
1508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1509 $as_echo "$ac_try_echo"; } >&5
1510 (eval "$ac_compile") 2>conftest.err
1511 ac_status=$?
1512 if test -s conftest.err; then
1513 grep -v '^ *+' conftest.err >conftest.er1
1514 cat conftest.er1 >&5
1515 mv -f conftest.er1 conftest.err
1516 fi
1517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1518 test $ac_status = 0; } && {
1519 test -z "$ac_cxx_werror_flag" ||
1520 test ! -s conftest.err
1521 } && test -s conftest.$ac_objext; then :
1522 ac_retval=0
1523 else
1524 $as_echo "$as_me: failed program was:" >&5
1525 sed 's/^/| /' conftest.$ac_ext >&5
1526
1527 ac_retval=1
1528 fi
1529 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1530 as_fn_set_status $ac_retval
1531
1532 } # ac_fn_cxx_try_compile
1533
1534 # ac_fn_c_try_compile LINENO
1535 # --------------------------
1536 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1537 ac_fn_c_try_compile ()
1538 {
1539 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1540 rm -f conftest.$ac_objext
1541 if { { ac_try="$ac_compile"
1542 case "(($ac_try" in
1543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1544 *) ac_try_echo=$ac_try;;
1545 esac
1546 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1547 $as_echo "$ac_try_echo"; } >&5
1548 (eval "$ac_compile") 2>conftest.err
1549 ac_status=$?
1550 if test -s conftest.err; then
1551 grep -v '^ *+' conftest.err >conftest.er1
1552 cat conftest.er1 >&5
1553 mv -f conftest.er1 conftest.err
1554 fi
1555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1556 test $ac_status = 0; } && {
1557 test -z "$ac_c_werror_flag" ||
1558 test ! -s conftest.err
1559 } && test -s conftest.$ac_objext; then :
1560 ac_retval=0
1561 else
1562 $as_echo "$as_me: failed program was:" >&5
1563 sed 's/^/| /' conftest.$ac_ext >&5
1564
1565 ac_retval=1
1566 fi
1567 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1568 as_fn_set_status $ac_retval
1569
1570 } # ac_fn_c_try_compile
1571
1572 # ac_fn_c_try_cpp LINENO
1573 # ----------------------
1574 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1575 ac_fn_c_try_cpp ()
1576 {
1577 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1578 if { { ac_try="$ac_cpp conftest.$ac_ext"
1579 case "(($ac_try" in
1580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1581 *) ac_try_echo=$ac_try;;
1582 esac
1583 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1584 $as_echo "$ac_try_echo"; } >&5
1585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1586 ac_status=$?
1587 if test -s conftest.err; then
1588 grep -v '^ *+' conftest.err >conftest.er1
1589 cat conftest.er1 >&5
1590 mv -f conftest.er1 conftest.err
1591 fi
1592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1593 test $ac_status = 0; } > conftest.i && {
1594 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1595 test ! -s conftest.err
1596 }; then :
1597 ac_retval=0
1598 else
1599 $as_echo "$as_me: failed program was:" >&5
1600 sed 's/^/| /' conftest.$ac_ext >&5
1601
1602 ac_retval=1
1603 fi
1604 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1605 as_fn_set_status $ac_retval
1606
1607 } # ac_fn_c_try_cpp
1608
1609 # ac_fn_c_try_link LINENO
1610 # -----------------------
1611 # Try to link conftest.$ac_ext, and return whether this succeeded.
1612 ac_fn_c_try_link ()
1613 {
1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615 rm -f conftest.$ac_objext conftest$ac_exeext
1616 if { { ac_try="$ac_link"
1617 case "(($ac_try" in
1618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619 *) ac_try_echo=$ac_try;;
1620 esac
1621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622 $as_echo "$ac_try_echo"; } >&5
1623 (eval "$ac_link") 2>conftest.err
1624 ac_status=$?
1625 if test -s conftest.err; then
1626 grep -v '^ *+' conftest.err >conftest.er1
1627 cat conftest.er1 >&5
1628 mv -f conftest.er1 conftest.err
1629 fi
1630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631 test $ac_status = 0; } && {
1632 test -z "$ac_c_werror_flag" ||
1633 test ! -s conftest.err
1634 } && test -s conftest$ac_exeext && {
1635 test "$cross_compiling" = yes ||
1636 $as_test_x conftest$ac_exeext
1637 }; then :
1638 ac_retval=0
1639 else
1640 $as_echo "$as_me: failed program was:" >&5
1641 sed 's/^/| /' conftest.$ac_ext >&5
1642
1643 ac_retval=1
1644 fi
1645 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1646 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1647 # interfere with the next link command; also delete a directory that is
1648 # left behind by Apple's compiler. We do this before executing the actions.
1649 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651 as_fn_set_status $ac_retval
1652
1653 } # ac_fn_c_try_link
1654
1655 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1656 # -------------------------------------------------------
1657 # Tests whether HEADER exists and can be compiled using the include files in
1658 # INCLUDES, setting the cache variable VAR accordingly.
1659 ac_fn_c_check_header_compile ()
1660 {
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1663 $as_echo_n "checking for $2... " >&6; }
1664 if eval \${$3+:} false; then :
1665 $as_echo_n "(cached) " >&6
1666 else
1667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1668 /* end confdefs.h. */
1669 $4
1670 #include <$2>
1671 _ACEOF
1672 if ac_fn_c_try_compile "$LINENO"; then :
1673 eval "$3=yes"
1674 else
1675 eval "$3=no"
1676 fi
1677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1678 fi
1679 eval ac_res=\$$3
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1681 $as_echo "$ac_res" >&6; }
1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683
1684 } # ac_fn_c_check_header_compile
1685
1686 # ac_fn_c_try_run LINENO
1687 # ----------------------
1688 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1689 # that executables *can* be run.
1690 ac_fn_c_try_run ()
1691 {
1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 if { { ac_try="$ac_link"
1694 case "(($ac_try" in
1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696 *) ac_try_echo=$ac_try;;
1697 esac
1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 $as_echo "$ac_try_echo"; } >&5
1700 (eval "$ac_link") 2>&5
1701 ac_status=$?
1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1704 { { case "(($ac_try" in
1705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706 *) ac_try_echo=$ac_try;;
1707 esac
1708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709 $as_echo "$ac_try_echo"; } >&5
1710 (eval "$ac_try") 2>&5
1711 ac_status=$?
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; }; }; then :
1714 ac_retval=0
1715 else
1716 $as_echo "$as_me: program exited with status $ac_status" >&5
1717 $as_echo "$as_me: failed program was:" >&5
1718 sed 's/^/| /' conftest.$ac_ext >&5
1719
1720 ac_retval=$ac_status
1721 fi
1722 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1723 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1724 as_fn_set_status $ac_retval
1725
1726 } # ac_fn_c_try_run
1727
1728 # ac_fn_c_check_func LINENO FUNC VAR
1729 # ----------------------------------
1730 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1731 ac_fn_c_check_func ()
1732 {
1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1735 $as_echo_n "checking for $2... " >&6; }
1736 if eval \${$3+:} false; then :
1737 $as_echo_n "(cached) " >&6
1738 else
1739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1740 /* end confdefs.h. */
1741 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1743 #define $2 innocuous_$2
1744
1745 /* System header to define __stub macros and hopefully few prototypes,
1746 which can conflict with char $2 (); below.
1747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1748 <limits.h> exists even on freestanding compilers. */
1749
1750 #ifdef __STDC__
1751 # include <limits.h>
1752 #else
1753 # include <assert.h>
1754 #endif
1755
1756 #undef $2
1757
1758 /* Override any GCC internal prototype to avoid an error.
1759 Use char because int might match the return type of a GCC
1760 builtin and then its argument prototype would still apply. */
1761 #ifdef __cplusplus
1762 extern "C"
1763 #endif
1764 char $2 ();
1765 /* The GNU C library defines this for functions which it implements
1766 to always fail with ENOSYS. Some functions are actually named
1767 something starting with __ and the normal name is an alias. */
1768 #if defined __stub_$2 || defined __stub___$2
1769 choke me
1770 #endif
1771
1772 int
1773 main ()
1774 {
1775 return $2 ();
1776 ;
1777 return 0;
1778 }
1779 _ACEOF
1780 if ac_fn_c_try_link "$LINENO"; then :
1781 eval "$3=yes"
1782 else
1783 eval "$3=no"
1784 fi
1785 rm -f core conftest.err conftest.$ac_objext \
1786 conftest$ac_exeext conftest.$ac_ext
1787 fi
1788 eval ac_res=\$$3
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1790 $as_echo "$ac_res" >&6; }
1791 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792
1793 } # ac_fn_c_check_func
1794
1795 # ac_fn_cxx_try_cpp LINENO
1796 # ------------------------
1797 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1798 ac_fn_cxx_try_cpp ()
1799 {
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 if { { ac_try="$ac_cpp conftest.$ac_ext"
1802 case "(($ac_try" in
1803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804 *) ac_try_echo=$ac_try;;
1805 esac
1806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807 $as_echo "$ac_try_echo"; } >&5
1808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1809 ac_status=$?
1810 if test -s conftest.err; then
1811 grep -v '^ *+' conftest.err >conftest.er1
1812 cat conftest.er1 >&5
1813 mv -f conftest.er1 conftest.err
1814 fi
1815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816 test $ac_status = 0; } > conftest.i && {
1817 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1818 test ! -s conftest.err
1819 }; then :
1820 ac_retval=0
1821 else
1822 $as_echo "$as_me: failed program was:" >&5
1823 sed 's/^/| /' conftest.$ac_ext >&5
1824
1825 ac_retval=1
1826 fi
1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828 as_fn_set_status $ac_retval
1829
1830 } # ac_fn_cxx_try_cpp
1831
1832 # ac_fn_cxx_try_link LINENO
1833 # -------------------------
1834 # Try to link conftest.$ac_ext, and return whether this succeeded.
1835 ac_fn_cxx_try_link ()
1836 {
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 rm -f conftest.$ac_objext conftest$ac_exeext
1839 if { { ac_try="$ac_link"
1840 case "(($ac_try" in
1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1843 esac
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 $as_echo "$ac_try_echo"; } >&5
1846 (eval "$ac_link") 2>conftest.err
1847 ac_status=$?
1848 if test -s conftest.err; then
1849 grep -v '^ *+' conftest.err >conftest.er1
1850 cat conftest.er1 >&5
1851 mv -f conftest.er1 conftest.err
1852 fi
1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } && {
1855 test -z "$ac_cxx_werror_flag" ||
1856 test ! -s conftest.err
1857 } && test -s conftest$ac_exeext && {
1858 test "$cross_compiling" = yes ||
1859 $as_test_x conftest$ac_exeext
1860 }; then :
1861 ac_retval=0
1862 else
1863 $as_echo "$as_me: failed program was:" >&5
1864 sed 's/^/| /' conftest.$ac_ext >&5
1865
1866 ac_retval=1
1867 fi
1868 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1869 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1870 # interfere with the next link command; also delete a directory that is
1871 # left behind by Apple's compiler. We do this before executing the actions.
1872 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1873 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1874 as_fn_set_status $ac_retval
1875
1876 } # ac_fn_cxx_try_link
1877
1878 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1879 # -------------------------------------------------------
1880 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1881 # the include files in INCLUDES and setting the cache variable VAR
1882 # accordingly.
1883 ac_fn_c_check_header_mongrel ()
1884 {
1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886 if eval \${$3+:} false; then :
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1888 $as_echo_n "checking for $2... " >&6; }
1889 if eval \${$3+:} false; then :
1890 $as_echo_n "(cached) " >&6
1891 fi
1892 eval ac_res=\$$3
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1894 $as_echo "$ac_res" >&6; }
1895 else
1896 # Is the header compilable?
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1898 $as_echo_n "checking $2 usability... " >&6; }
1899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1900 /* end confdefs.h. */
1901 $4
1902 #include <$2>
1903 _ACEOF
1904 if ac_fn_c_try_compile "$LINENO"; then :
1905 ac_header_compiler=yes
1906 else
1907 ac_header_compiler=no
1908 fi
1909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1911 $as_echo "$ac_header_compiler" >&6; }
1912
1913 # Is the header present?
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1915 $as_echo_n "checking $2 presence... " >&6; }
1916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917 /* end confdefs.h. */
1918 #include <$2>
1919 _ACEOF
1920 if ac_fn_c_try_cpp "$LINENO"; then :
1921 ac_header_preproc=yes
1922 else
1923 ac_header_preproc=no
1924 fi
1925 rm -f conftest.err conftest.i conftest.$ac_ext
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1927 $as_echo "$ac_header_preproc" >&6; }
1928
1929 # So? What about this header?
1930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1931 yes:no: )
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1933 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1935 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1936 ;;
1937 no:yes:* )
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1939 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1941 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1943 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1945 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1947 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1948 ( $as_echo "## ----------------------------------------- ##
1949 ## Report this to asbuch at math rutgers edu ##
1950 ## ----------------------------------------- ##"
1951 ) | sed "s/^/$as_me: WARNING: /" >&2
1952 ;;
1953 esac
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1955 $as_echo_n "checking for $2... " >&6; }
1956 if eval \${$3+:} false; then :
1957 $as_echo_n "(cached) " >&6
1958 else
1959 eval "$3=\$ac_header_compiler"
1960 fi
1961 eval ac_res=\$$3
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1963 $as_echo "$ac_res" >&6; }
1964 fi
1965 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1966
1967 } # ac_fn_c_check_header_mongrel
1968
1969 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1970 # -------------------------------------------
1971 # Tests whether TYPE exists after having included INCLUDES, setting cache
1972 # variable VAR accordingly.
1973 ac_fn_c_check_type ()
1974 {
1975 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1977 $as_echo_n "checking for $2... " >&6; }
1978 if eval \${$3+:} false; then :
1979 $as_echo_n "(cached) " >&6
1980 else
1981 eval "$3=no"
1982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983 /* end confdefs.h. */
1984 $4
1985 int
1986 main ()
1987 {
1988 if (sizeof ($2))
1989 return 0;
1990 ;
1991 return 0;
1992 }
1993 _ACEOF
1994 if ac_fn_c_try_compile "$LINENO"; then :
1995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1996 /* end confdefs.h. */
1997 $4
1998 int
1999 main ()
2000 {
2001 if (sizeof (($2)))
2002 return 0;
2003 ;
2004 return 0;
2005 }
2006 _ACEOF
2007 if ac_fn_c_try_compile "$LINENO"; then :
2008
2009 else
2010 eval "$3=yes"
2011 fi
2012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2013 fi
2014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2015 fi
2016 eval ac_res=\$$3
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2018 $as_echo "$ac_res" >&6; }
2019 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2020
2021 } # ac_fn_c_check_type
2022 cat >config.log <<_ACEOF
2023 This file contains any messages produced by compilers while
2024 running configure, to aid debugging if configure makes a mistake.
2025
2026 It was created by lrcalc $as_me 1.2, which was
2027 generated by GNU Autoconf 2.68. Invocation command line was
2028
2029 $ $0 $@
2030
2031 _ACEOF
2032 exec 5>>config.log
2033 {
2034 cat <<_ASUNAME
2035 ## --------- ##
2036 ## Platform. ##
2037 ## --------- ##
2038
2039 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2040 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2041 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2042 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2043 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2044
2045 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2046 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2047
2048 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2049 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2050 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2051 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2052 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2053 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2054 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2055
2056 _ASUNAME
2057
2058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2059 for as_dir in $PATH
2060 do
2061 IFS=$as_save_IFS
2062 test -z "$as_dir" && as_dir=.
2063 $as_echo "PATH: $as_dir"
2064 done
2065 IFS=$as_save_IFS
2066
2067 } >&5
2068
2069 cat >&5 <<_ACEOF
2070
2071
2072 ## ----------- ##
2073 ## Core tests. ##
2074 ## ----------- ##
2075
2076 _ACEOF
2077
2078
2079 # Keep a trace of the command line.
2080 # Strip out --no-create and --no-recursion so they do not pile up.
2081 # Strip out --silent because we don't want to record it for future runs.
2082 # Also quote any args containing shell meta-characters.
2083 # Make two passes to allow for proper duplicate-argument suppression.
2084 ac_configure_args=
2085 ac_configure_args0=
2086 ac_configure_args1=
2087 ac_must_keep_next=false
2088 for ac_pass in 1 2
2089 do
2090 for ac_arg
2091 do
2092 case $ac_arg in
2093 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2095 | -silent | --silent | --silen | --sile | --sil)
2096 continue ;;
2097 *\'*)
2098 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2099 esac
2100 case $ac_pass in
2101 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2102 2)
2103 as_fn_append ac_configure_args1 " '$ac_arg'"
2104 if test $ac_must_keep_next = true; then
2105 ac_must_keep_next=false # Got value, back to normal.
2106 else
2107 case $ac_arg in
2108 *=* | --config-cache | -C | -disable-* | --disable-* \
2109 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2110 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2111 | -with-* | --with-* | -without-* | --without-* | --x)
2112 case "$ac_configure_args0 " in
2113 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2114 esac
2115 ;;
2116 -* ) ac_must_keep_next=true ;;
2117 esac
2118 fi
2119 as_fn_append ac_configure_args " '$ac_arg'"
2120 ;;
2121 esac
2122 done
2123 done
2124 { ac_configure_args0=; unset ac_configure_args0;}
2125 { ac_configure_args1=; unset ac_configure_args1;}
2126
2127 # When interrupted or exit'd, cleanup temporary files, and complete
2128 # config.log. We remove comments because anyway the quotes in there
2129 # would cause problems or look ugly.
2130 # WARNING: Use '\'' to represent an apostrophe within the trap.
2131 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2132 trap 'exit_status=$?
2133 # Save into config.log some information that might help in debugging.
2134 {
2135 echo
2136
2137 $as_echo "## ---------------- ##
2138 ## Cache variables. ##
2139 ## ---------------- ##"
2140 echo
2141 # The following way of writing the cache mishandles newlines in values,
2142 (
2143 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2144 eval ac_val=\$$ac_var
2145 case $ac_val in #(
2146 *${as_nl}*)
2147 case $ac_var in #(
2148 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2149 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2150 esac
2151 case $ac_var in #(
2152 _ | IFS | as_nl) ;; #(
2153 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2154 *) { eval $ac_var=; unset $ac_var;} ;;
2155 esac ;;
2156 esac
2157 done
2158 (set) 2>&1 |
2159 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2160 *${as_nl}ac_space=\ *)
2161 sed -n \
2162 "s/'\''/'\''\\\\'\'''\''/g;
2163 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2164 ;; #(
2165 *)
2166 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2167 ;;
2168 esac |
2169 sort
2170 )
2171 echo
2172
2173 $as_echo "## ----------------- ##
2174 ## Output variables. ##
2175 ## ----------------- ##"
2176 echo
2177 for ac_var in $ac_subst_vars
2178 do
2179 eval ac_val=\$$ac_var
2180 case $ac_val in
2181 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2182 esac
2183 $as_echo "$ac_var='\''$ac_val'\''"
2184 done | sort
2185 echo
2186
2187 if test -n "$ac_subst_files"; then
2188 $as_echo "## ------------------- ##
2189 ## File substitutions. ##
2190 ## ------------------- ##"
2191 echo
2192 for ac_var in $ac_subst_files
2193 do
2194 eval ac_val=\$$ac_var
2195 case $ac_val in
2196 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2197 esac
2198 $as_echo "$ac_var='\''$ac_val'\''"
2199 done | sort
2200 echo
2201 fi
2202
2203 if test -s confdefs.h; then
2204 $as_echo "## ----------- ##
2205 ## confdefs.h. ##
2206 ## ----------- ##"
2207 echo
2208 cat confdefs.h
2209 echo
2210 fi
2211 test "$ac_signal" != 0 &&
2212 $as_echo "$as_me: caught signal $ac_signal"
2213 $as_echo "$as_me: exit $exit_status"
2214 } >&5
2215 rm -f core *.core core.conftest.* &&
2216 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2217 exit $exit_status
2218 ' 0
2219 for ac_signal in 1 2 13 15; do
2220 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2221 done
2222 ac_signal=0
2223
2224 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2225 rm -f -r conftest* confdefs.h
2226
2227 $as_echo "/* confdefs.h */" > confdefs.h
2228
2229 # Predefined preprocessor variables.
2230
2231 cat >>confdefs.h <<_ACEOF
2232 #define PACKAGE_NAME "$PACKAGE_NAME"
2233 _ACEOF
2234
2235 cat >>confdefs.h <<_ACEOF
2236 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2237 _ACEOF
2238
2239 cat >>confdefs.h <<_ACEOF
2240 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2241 _ACEOF
2242
2243 cat >>confdefs.h <<_ACEOF
2244 #define PACKAGE_STRING "$PACKAGE_STRING"
2245 _ACEOF
2246
2247 cat >>confdefs.h <<_ACEOF
2248 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2249 _ACEOF
2250
2251 cat >>confdefs.h <<_ACEOF
2252 #define PACKAGE_URL "$PACKAGE_URL"
2253 _ACEOF
2254
2255
2256 # Let the site file select an alternate cache file if it wants to.
2257 # Prefer an explicitly selected file to automatically selected ones.
2258 ac_site_file1=NONE
2259 ac_site_file2=NONE
2260 if test -n "$CONFIG_SITE"; then
2261 # We do not want a PATH search for config.site.
2262 case $CONFIG_SITE in #((
2263 -*) ac_site_file1=./$CONFIG_SITE;;
2264 */*) ac_site_file1=$CONFIG_SITE;;
2265 *) ac_site_file1=./$CONFIG_SITE;;
2266 esac
2267 elif test "x$prefix" != xNONE; then
2268 ac_site_file1=$prefix/share/config.site
2269 ac_site_file2=$prefix/etc/config.site
2270 else
2271 ac_site_file1=$ac_default_prefix/share/config.site
2272 ac_site_file2=$ac_default_prefix/etc/config.site
2273 fi
2274 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2275 do
2276 test "x$ac_site_file" = xNONE && continue
2277 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2279 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2280 sed 's/^/| /' "$ac_site_file" >&5
2281 . "$ac_site_file" \
2282 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2283 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2284 as_fn_error $? "failed to load site script $ac_site_file
2285 See \`config.log' for more details" "$LINENO" 5; }
2286 fi
2287 done
2288
2289 if test -r "$cache_file"; then
2290 # Some versions of bash will fail to source /dev/null (special files
2291 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2292 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2294 $as_echo "$as_me: loading cache $cache_file" >&6;}
2295 case $cache_file in
2296 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2297 *) . "./$cache_file";;
2298 esac
2299 fi
2300 else
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2302 $as_echo "$as_me: creating cache $cache_file" >&6;}
2303 >$cache_file
2304 fi
2305
2306 # Check that the precious variables saved in the cache have kept the same
2307 # value.
2308 ac_cache_corrupted=false
2309 for ac_var in $ac_precious_vars; do
2310 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2311 eval ac_new_set=\$ac_env_${ac_var}_set
2312 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2313 eval ac_new_val=\$ac_env_${ac_var}_value
2314 case $ac_old_set,$ac_new_set in
2315 set,)
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2317 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2318 ac_cache_corrupted=: ;;
2319 ,set)
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2321 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2322 ac_cache_corrupted=: ;;
2323 ,);;
2324 *)
2325 if test "x$ac_old_val" != "x$ac_new_val"; then
2326 # differences in whitespace do not lead to failure.
2327 ac_old_val_w=`echo x $ac_old_val`
2328 ac_new_val_w=`echo x $ac_new_val`
2329 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2331 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2332 ac_cache_corrupted=:
2333 else
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2335 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2336 eval $ac_var=\$ac_old_val
2337 fi
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2339 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2341 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2342 fi;;
2343 esac
2344 # Pass precious variables to config.status.
2345 if test "$ac_new_set" = set; then
2346 case $ac_new_val in
2347 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2348 *) ac_arg=$ac_var=$ac_new_val ;;
2349 esac
2350 case " $ac_configure_args " in
2351 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2352 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2353 esac
2354 fi
2355 done
2356 if $ac_cache_corrupted; then
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2358 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2360 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2361 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2362 fi
2363 ## -------------------- ##
2364 ## Main body of script. ##
2365 ## -------------------- ##
2366
2367 ac_ext=c
2368 ac_cpp='$CPP $CPPFLAGS'
2369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2372
2373
2374 ac_config_headers="$ac_config_headers config.h"
2375
2376
2377
2378 am__api_version='1.11'
2379
2380 ac_aux_dir=
2381 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2382 if test -f "$ac_dir/install-sh"; then
2383 ac_aux_dir=$ac_dir
2384 ac_install_sh="$ac_aux_dir/install-sh -c"
2385 break
2386 elif test -f "$ac_dir/install.sh"; then
2387 ac_aux_dir=$ac_dir
2388 ac_install_sh="$ac_aux_dir/install.sh -c"
2389 break
2390 elif test -f "$ac_dir/shtool"; then
2391 ac_aux_dir=$ac_dir
2392 ac_install_sh="$ac_aux_dir/shtool install -c"
2393 break
2394 fi
2395 done
2396 if test -z "$ac_aux_dir"; then
2397 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2398 fi
2399
2400 # These three variables are undocumented and unsupported,
2401 # and are intended to be withdrawn in a future Autoconf release.
2402 # They can cause serious problems if a builder's source tree is in a directory
2403 # whose full name contains unusual characters.
2404 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2405 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2406 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2407
2408
2409 # Find a good install program. We prefer a C program (faster),
2410 # so one script is as good as another. But avoid the broken or
2411 # incompatible versions:
2412 # SysV /etc/install, /usr/sbin/install
2413 # SunOS /usr/etc/install
2414 # IRIX /sbin/install
2415 # AIX /bin/install
2416 # AmigaOS /C/install, which installs bootblocks on floppy discs
2417 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2418 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2419 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2420 # OS/2's system install, which has a completely different semantic
2421 # ./install, which can be erroneously created by make from ./install.sh.
2422 # Reject install programs that cannot install multiple files.
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2424 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2425 if test -z "$INSTALL"; then
2426 if ${ac_cv_path_install+:} false; then :
2427 $as_echo_n "(cached) " >&6
2428 else
2429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2430 for as_dir in $PATH
2431 do
2432 IFS=$as_save_IFS
2433 test -z "$as_dir" && as_dir=.
2434 # Account for people who put trailing slashes in PATH elements.
2435 case $as_dir/ in #((
2436 ./ | .// | /[cC]/* | \
2437 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2438 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2439 /usr/ucb/* ) ;;
2440 *)
2441 # OSF1 and SCO ODT 3.0 have their own names for install.
2442 # Don't use installbsd from OSF since it installs stuff as root
2443 # by default.
2444 for ac_prog in ginstall scoinst install; do
2445 for ac_exec_ext in '' $ac_executable_extensions; do
2446 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2447 if test $ac_prog = install &&
2448 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2449 # AIX install. It has an incompatible calling convention.
2450 :
2451 elif test $ac_prog = install &&
2452 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2453 # program-specific install script used by HP pwplus--don't use.
2454 :
2455 else
2456 rm -rf conftest.one conftest.two conftest.dir
2457 echo one > conftest.one
2458 echo two > conftest.two
2459 mkdir conftest.dir
2460 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2461 test -s conftest.one && test -s conftest.two &&
2462 test -s conftest.dir/conftest.one &&
2463 test -s conftest.dir/conftest.two
2464 then
2465 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2466 break 3
2467 fi
2468 fi
2469 fi
2470 done
2471 done
2472 ;;
2473 esac
2474
2475 done
2476 IFS=$as_save_IFS
2477
2478 rm -rf conftest.one conftest.two conftest.dir
2479
2480 fi
2481 if test "${ac_cv_path_install+set}" = set; then
2482 INSTALL=$ac_cv_path_install
2483 else
2484 # As a last resort, use the slow shell script. Don't cache a
2485 # value for INSTALL within a source directory, because that will
2486 # break other packages using the cache if that directory is
2487 # removed, or if the value is a relative name.
2488 INSTALL=$ac_install_sh
2489 fi
2490 fi
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2492 $as_echo "$INSTALL" >&6; }
2493
2494 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2495 # It thinks the first close brace ends the variable substitution.
2496 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2497
2498 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2499
2500 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2501
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2503 $as_echo_n "checking whether build environment is sane... " >&6; }
2504 # Just in case
2505 sleep 1
2506 echo timestamp > conftest.file
2507 # Reject unsafe characters in $srcdir or the absolute working directory
2508 # name. Accept space and tab only in the latter.
2509 am_lf='
2510 '
2511 case `pwd` in
2512 *[\\\"\#\$\&\'\`$am_lf]*)
2513 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2514 esac
2515 case $srcdir in
2516 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2517 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2518 esac
2519
2520 # Do `set' in a subshell so we don't clobber the current shell's
2521 # arguments. Must try -L first in case configure is actually a
2522 # symlink; some systems play weird games with the mod time of symlinks
2523 # (eg FreeBSD returns the mod time of the symlink's containing
2524 # directory).
2525 if (
2526 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2527 if test "$*" = "X"; then
2528 # -L didn't work.
2529 set X `ls -t "$srcdir/configure" conftest.file`
2530 fi
2531 rm -f conftest.file
2532 if test "$*" != "X $srcdir/configure conftest.file" \
2533 && test "$*" != "X conftest.file $srcdir/configure"; then
2534
2535 # If neither matched, then we have a broken ls. This can happen
2536 # if, for instance, CONFIG_SHELL is bash and it inherits a
2537 # broken ls alias from the environment. This has actually
2538 # happened. Such a system could not be considered "sane".
2539 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2540 alias in your environment" "$LINENO" 5
2541 fi
2542
2543 test "$2" = conftest.file
2544 )
2545 then
2546 # Ok.
2547 :
2548 else
2549 as_fn_error $? "newly created file is older than distributed files!
2550 Check your system clock" "$LINENO" 5
2551 fi
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2553 $as_echo "yes" >&6; }
2554 test "$program_prefix" != NONE &&
2555 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2556 # Use a double $ so make ignores it.
2557 test "$program_suffix" != NONE &&
2558 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2559 # Double any \ or $.
2560 # By default was `s,x,x', remove it if useless.
2561 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2562 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2563
2564 # expand $ac_aux_dir to an absolute path
2565 am_aux_dir=`cd $ac_aux_dir && pwd`
2566
2567 if test x"${MISSING+set}" != xset; then
2568 case $am_aux_dir in
2569 *\ * | *\ *)
2570 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2571 *)
2572 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2573 esac
2574 fi
2575 # Use eval to expand $SHELL
2576 if eval "$MISSING --run true"; then
2577 am_missing_run="$MISSING --run "
2578 else
2579 am_missing_run=
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2581 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2582 fi
2583
2584 if test x"${install_sh}" != xset; then
2585 case $am_aux_dir in
2586 *\ * | *\ *)
2587 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2588 *)
2589 install_sh="\${SHELL} $am_aux_dir/install-sh"
2590 esac
2591 fi
2592
2593 # Installed binaries are usually stripped using `strip' when the user
2594 # run `make install-strip'. However `strip' might not be the right
2595 # tool to use in cross-compilation environments, therefore Automake
2596 # will honor the `STRIP' environment variable to overrule this program.
2597 if test "$cross_compiling" != no; then
2598 if test -n "$ac_tool_prefix"; then
2599 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2600 set dummy ${ac_tool_prefix}strip; ac_word=$2
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2602 $as_echo_n "checking for $ac_word... " >&6; }
2603 if ${ac_cv_prog_STRIP+:} false; then :
2604 $as_echo_n "(cached) " >&6
2605 else
2606 if test -n "$STRIP"; then
2607 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2608 else
2609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610 for as_dir in $PATH
2611 do
2612 IFS=$as_save_IFS
2613 test -z "$as_dir" && as_dir=.
2614 for ac_exec_ext in '' $ac_executable_extensions; do
2615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2616 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2618 break 2
2619 fi
2620 done
2621 done
2622 IFS=$as_save_IFS
2623
2624 fi
2625 fi
2626 STRIP=$ac_cv_prog_STRIP
2627 if test -n "$STRIP"; then
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2629 $as_echo "$STRIP" >&6; }
2630 else
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2632 $as_echo "no" >&6; }
2633 fi
2634
2635
2636 fi
2637 if test -z "$ac_cv_prog_STRIP"; then
2638 ac_ct_STRIP=$STRIP
2639 # Extract the first word of "strip", so it can be a program name with args.
2640 set dummy strip; ac_word=$2
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2642 $as_echo_n "checking for $ac_word... " >&6; }
2643 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2644 $as_echo_n "(cached) " >&6
2645 else
2646 if test -n "$ac_ct_STRIP"; then
2647 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2648 else
2649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650 for as_dir in $PATH
2651 do
2652 IFS=$as_save_IFS
2653 test -z "$as_dir" && as_dir=.
2654 for ac_exec_ext in '' $ac_executable_extensions; do
2655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2656 ac_cv_prog_ac_ct_STRIP="strip"
2657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2658 break 2
2659 fi
2660 done
2661 done
2662 IFS=$as_save_IFS
2663
2664 fi
2665 fi
2666 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2667 if test -n "$ac_ct_STRIP"; then
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2669 $as_echo "$ac_ct_STRIP" >&6; }
2670 else
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2672 $as_echo "no" >&6; }
2673 fi
2674
2675 if test "x$ac_ct_STRIP" = x; then
2676 STRIP=":"
2677 else
2678 case $cross_compiling:$ac_tool_warned in
2679 yes:)
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2682 ac_tool_warned=yes ;;
2683 esac
2684 STRIP=$ac_ct_STRIP
2685 fi
2686 else
2687 STRIP="$ac_cv_prog_STRIP"
2688 fi
2689
2690 fi
2691 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2692
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2694 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2695 if test -z "$MKDIR_P"; then
2696 if ${ac_cv_path_mkdir+:} false; then :
2697 $as_echo_n "(cached) " >&6
2698 else
2699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2700 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2701 do
2702 IFS=$as_save_IFS
2703 test -z "$as_dir" && as_dir=.
2704 for ac_prog in mkdir gmkdir; do
2705 for ac_exec_ext in '' $ac_executable_extensions; do
2706 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2707 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2708 'mkdir (GNU coreutils) '* | \
2709 'mkdir (coreutils) '* | \
2710 'mkdir (fileutils) '4.1*)
2711 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2712 break 3;;
2713 esac
2714 done
2715 done
2716 done
2717 IFS=$as_save_IFS
2718
2719 fi
2720
2721 test -d ./--version && rmdir ./--version
2722 if test "${ac_cv_path_mkdir+set}" = set; then
2723 MKDIR_P="$ac_cv_path_mkdir -p"
2724 else
2725 # As a last resort, use the slow shell script. Don't cache a
2726 # value for MKDIR_P within a source directory, because that will
2727 # break other packages using the cache if that directory is
2728 # removed, or if the value is a relative name.
2729 MKDIR_P="$ac_install_sh -d"
2730 fi
2731 fi
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2733 $as_echo "$MKDIR_P" >&6; }
2734
2735 mkdir_p="$MKDIR_P"
2736 case $mkdir_p in
2737 [\\/$]* | ?:[\\/]*) ;;
2738 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2739 esac
2740
2741 for ac_prog in gawk mawk nawk awk
2742 do
2743 # Extract the first word of "$ac_prog", so it can be a program name with args.
2744 set dummy $ac_prog; ac_word=$2
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2746 $as_echo_n "checking for $ac_word... " >&6; }
2747 if ${ac_cv_prog_AWK+:} false; then :
2748 $as_echo_n "(cached) " >&6
2749 else
2750 if test -n "$AWK"; then
2751 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2752 else
2753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2754 for as_dir in $PATH
2755 do
2756 IFS=$as_save_IFS
2757 test -z "$as_dir" && as_dir=.
2758 for ac_exec_ext in '' $ac_executable_extensions; do
2759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2760 ac_cv_prog_AWK="$ac_prog"
2761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2762 break 2
2763 fi
2764 done
2765 done
2766 IFS=$as_save_IFS
2767
2768 fi
2769 fi
2770 AWK=$ac_cv_prog_AWK
2771 if test -n "$AWK"; then
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2773 $as_echo "$AWK" >&6; }
2774 else
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2776 $as_echo "no" >&6; }
2777 fi
2778
2779
2780 test -n "$AWK" && break
2781 done
2782
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2784 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2785 set x ${MAKE-make}
2786 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2787 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2788 $as_echo_n "(cached) " >&6
2789 else
2790 cat >conftest.make <<\_ACEOF
2791 SHELL = /bin/sh
2792 all:
2793 @echo '@@@%%%=$(MAKE)=@@@%%%'
2794 _ACEOF
2795 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2796 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2797 *@@@%%%=?*=@@@%%%*)
2798 eval ac_cv_prog_make_${ac_make}_set=yes;;
2799 *)
2800 eval ac_cv_prog_make_${ac_make}_set=no;;
2801 esac
2802 rm -f conftest.make
2803 fi
2804 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2806 $as_echo "yes" >&6; }
2807 SET_MAKE=
2808 else
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2810 $as_echo "no" >&6; }
2811 SET_MAKE="MAKE=${MAKE-make}"
2812 fi
2813
2814 rm -rf .tst 2>/dev/null
2815 mkdir .tst 2>/dev/null
2816 if test -d .tst; then
2817 am__leading_dot=.
2818 else
2819 am__leading_dot=_
2820 fi
2821 rmdir .tst 2>/dev/null
2822
2823 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2824 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2825 # is not polluted with repeated "-I."
2826 am__isrc=' -I$(srcdir)'
2827 # test to see if srcdir already configured
2828 if test -f $srcdir/config.status; then
2829 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2830 fi
2831 fi
2832
2833 # test whether we have cygpath
2834 if test -z "$CYGPATH_W"; then
2835 if (cygpath --version) >/dev/null 2>/dev/null; then
2836 CYGPATH_W='cygpath -w'
2837 else
2838 CYGPATH_W=echo
2839 fi
2840 fi
2841
2842
2843 # Define the identity of the package.
2844 PACKAGE='lrcalc'
2845 VERSION='1.2'
2846
2847
2848 cat >>confdefs.h <<_ACEOF
2849 #define PACKAGE "$PACKAGE"
2850 _ACEOF
2851
2852
2853 cat >>confdefs.h <<_ACEOF
2854 #define VERSION "$VERSION"
2855 _ACEOF
2856
2857 # Some tools Automake needs.
2858
2859 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2860
2861
2862 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2863
2864
2865 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2866
2867
2868 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2869
2870
2871 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2872
2873 # We need awk for the "check" target. The system "awk" is bad on
2874 # some platforms.
2875 # Always define AMTAR for backward compatibility. Yes, it's still used
2876 # in the wild :-( We should find a proper way to deprecate it ...
2877 AMTAR='$${TAR-tar}'
2878
2879 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2880
2881
2882
2883
2884
2885
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2887 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2888 # Check whether --enable-maintainer-mode was given.
2889 if test "${enable_maintainer_mode+set}" = set; then :
2890 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2891 else
2892 USE_MAINTAINER_MODE=no
2893 fi
2894
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2896 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2897 if test $USE_MAINTAINER_MODE = yes; then
2898 MAINTAINER_MODE_TRUE=
2899 MAINTAINER_MODE_FALSE='#'
2900 else
2901 MAINTAINER_MODE_TRUE='#'
2902 MAINTAINER_MODE_FALSE=
2903 fi
2904
2905 MAINT=$MAINTAINER_MODE_TRUE
2906
2907
2908
2909 # Checks for programs.
2910 ac_ext=cpp
2911 ac_cpp='$CXXCPP $CPPFLAGS'
2912 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2913 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2914 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2915 if test -z "$CXX"; then
2916 if test -n "$CCC"; then
2917 CXX=$CCC
2918 else
2919 if test -n "$ac_tool_prefix"; then
2920 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2921 do
2922 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2923 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2925 $as_echo_n "checking for $ac_word... " >&6; }
2926 if ${ac_cv_prog_CXX+:} false; then :
2927 $as_echo_n "(cached) " >&6
2928 else
2929 if test -n "$CXX"; then
2930 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2931 else
2932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933 for as_dir in $PATH
2934 do
2935 IFS=$as_save_IFS
2936 test -z "$as_dir" && as_dir=.
2937 for ac_exec_ext in '' $ac_executable_extensions; do
2938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2939 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2941 break 2
2942 fi
2943 done
2944 done
2945 IFS=$as_save_IFS
2946
2947 fi
2948 fi
2949 CXX=$ac_cv_prog_CXX
2950 if test -n "$CXX"; then
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2952 $as_echo "$CXX" >&6; }
2953 else
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2955 $as_echo "no" >&6; }
2956 fi
2957
2958
2959 test -n "$CXX" && break
2960 done
2961 fi
2962 if test -z "$CXX"; then
2963 ac_ct_CXX=$CXX
2964 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2965 do
2966 # Extract the first word of "$ac_prog", so it can be a program name with args.
2967 set dummy $ac_prog; ac_word=$2
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2969 $as_echo_n "checking for $ac_word... " >&6; }
2970 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2971 $as_echo_n "(cached) " >&6
2972 else
2973 if test -n "$ac_ct_CXX"; then
2974 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2975 else
2976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977 for as_dir in $PATH
2978 do
2979 IFS=$as_save_IFS
2980 test -z "$as_dir" && as_dir=.
2981 for ac_exec_ext in '' $ac_executable_extensions; do
2982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2983 ac_cv_prog_ac_ct_CXX="$ac_prog"
2984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2985 break 2
2986 fi
2987 done
2988 done
2989 IFS=$as_save_IFS
2990
2991 fi
2992 fi
2993 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2994 if test -n "$ac_ct_CXX"; then
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2996 $as_echo "$ac_ct_CXX" >&6; }
2997 else
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2999 $as_echo "no" >&6; }
3000 fi
3001
3002
3003 test -n "$ac_ct_CXX" && break
3004 done
3005
3006 if test "x$ac_ct_CXX" = x; then
3007 CXX="g++"
3008 else
3009 case $cross_compiling:$ac_tool_warned in
3010 yes:)
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3012 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3013 ac_tool_warned=yes ;;
3014 esac
3015 CXX=$ac_ct_CXX
3016 fi
3017 fi
3018
3019 fi
3020 fi
3021 # Provide some information about the compiler.
3022 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3023 set X $ac_compile
3024 ac_compiler=$2
3025 for ac_option in --version -v -V -qversion; do
3026 { { ac_try="$ac_compiler $ac_option >&5"
3027 case "(($ac_try" in
3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029 *) ac_try_echo=$ac_try;;
3030 esac
3031 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3032 $as_echo "$ac_try_echo"; } >&5
3033 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3034 ac_status=$?
3035 if test -s conftest.err; then
3036 sed '10a\
3037 ... rest of stderr output deleted ...
3038 10q' conftest.err >conftest.er1
3039 cat conftest.er1 >&5
3040 fi
3041 rm -f conftest.er1 conftest.err
3042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3043 test $ac_status = 0; }
3044 done
3045
3046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3047 /* end confdefs.h. */
3048
3049 int
3050 main ()
3051 {
3052
3053 ;
3054 return 0;
3055 }
3056 _ACEOF
3057 ac_clean_files_save=$ac_clean_files
3058 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3059 # Try to create an executable without -o first, disregard a.out.
3060 # It will help us diagnose broken compilers, and finding out an intuition
3061 # of exeext.
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3063 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3064 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3065
3066 # The possible output files:
3067 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3068
3069 ac_rmfiles=
3070 for ac_file in $ac_files
3071 do
3072 case $ac_file in
3073 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3074 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3075 esac
3076 done
3077 rm -f $ac_rmfiles
3078
3079 if { { ac_try="$ac_link_default"
3080 case "(($ac_try" in
3081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082 *) ac_try_echo=$ac_try;;
3083 esac
3084 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3085 $as_echo "$ac_try_echo"; } >&5
3086 (eval "$ac_link_default") 2>&5
3087 ac_status=$?
3088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3089 test $ac_status = 0; }; then :
3090 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3091 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3092 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3093 # so that the user can short-circuit this test for compilers unknown to
3094 # Autoconf.
3095 for ac_file in $ac_files ''
3096 do
3097 test -f "$ac_file" || continue
3098 case $ac_file in
3099 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3100 ;;
3101 [ab].out )
3102 # We found the default executable, but exeext='' is most
3103 # certainly right.
3104 break;;
3105 *.* )
3106 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3107 then :; else
3108 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3109 fi
3110 # We set ac_cv_exeext here because the later test for it is not
3111 # safe: cross compilers may not add the suffix if given an `-o'
3112 # argument, so we may need to know it at that point already.
3113 # Even if this section looks crufty: it has the advantage of
3114 # actually working.
3115 break;;
3116 * )
3117 break;;
3118 esac
3119 done
3120 test "$ac_cv_exeext" = no && ac_cv_exeext=
3121
3122 else
3123 ac_file=''
3124 fi
3125 if test -z "$ac_file"; then :
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3127 $as_echo "no" >&6; }
3128 $as_echo "$as_me: failed program was:" >&5
3129 sed 's/^/| /' conftest.$ac_ext >&5
3130
3131 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3133 as_fn_error 77 "C++ compiler cannot create executables
3134 See \`config.log' for more details" "$LINENO" 5; }
3135 else
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3137 $as_echo "yes" >&6; }
3138 fi
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3140 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3142 $as_echo "$ac_file" >&6; }
3143 ac_exeext=$ac_cv_exeext
3144
3145 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3146 ac_clean_files=$ac_clean_files_save
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3148 $as_echo_n "checking for suffix of executables... " >&6; }
3149 if { { ac_try="$ac_link"
3150 case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3153 esac
3154 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3155 $as_echo "$ac_try_echo"; } >&5
3156 (eval "$ac_link") 2>&5
3157 ac_status=$?
3158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3159 test $ac_status = 0; }; then :
3160 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3161 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3162 # work properly (i.e., refer to `conftest.exe'), while it won't with
3163 # `rm'.
3164 for ac_file in conftest.exe conftest conftest.*; do
3165 test -f "$ac_file" || continue
3166 case $ac_file in
3167 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3168 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3169 break;;
3170 * ) break;;
3171 esac
3172 done
3173 else
3174 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3175 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3176 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3177 See \`config.log' for more details" "$LINENO" 5; }
3178 fi
3179 rm -f conftest conftest$ac_cv_exeext
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3181 $as_echo "$ac_cv_exeext" >&6; }
3182
3183 rm -f conftest.$ac_ext
3184 EXEEXT=$ac_cv_exeext
3185 ac_exeext=$EXEEXT
3186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3187 /* end confdefs.h. */
3188 #include <stdio.h>
3189 int
3190 main ()
3191 {
3192 FILE *f = fopen ("conftest.out", "w");
3193 return ferror (f) || fclose (f) != 0;
3194
3195 ;
3196 return 0;
3197 }
3198 _ACEOF
3199 ac_clean_files="$ac_clean_files conftest.out"
3200 # Check that the compiler produces executables we can run. If not, either
3201 # the compiler is broken, or we cross compile.
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3203 $as_echo_n "checking whether we are cross compiling... " >&6; }
3204 if test "$cross_compiling" != yes; then
3205 { { ac_try="$ac_link"
3206 case "(($ac_try" in
3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208 *) ac_try_echo=$ac_try;;
3209 esac
3210 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3211 $as_echo "$ac_try_echo"; } >&5
3212 (eval "$ac_link") 2>&5
3213 ac_status=$?
3214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3215 test $ac_status = 0; }
3216 if { ac_try='./conftest$ac_cv_exeext'
3217 { { case "(($ac_try" in
3218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3219 *) ac_try_echo=$ac_try;;
3220 esac
3221 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3222 $as_echo "$ac_try_echo"; } >&5
3223 (eval "$ac_try") 2>&5
3224 ac_status=$?
3225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3226 test $ac_status = 0; }; }; then
3227 cross_compiling=no
3228 else
3229 if test "$cross_compiling" = maybe; then
3230 cross_compiling=yes
3231 else
3232 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3234 as_fn_error $? "cannot run C++ compiled programs.
3235 If you meant to cross compile, use \`--host'.
3236 See \`config.log' for more details" "$LINENO" 5; }
3237 fi
3238 fi
3239 fi
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3241 $as_echo "$cross_compiling" >&6; }
3242
3243 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3244 ac_clean_files=$ac_clean_files_save
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3246 $as_echo_n "checking for suffix of object files... " >&6; }
3247 if ${ac_cv_objext+:} false; then :
3248 $as_echo_n "(cached) " >&6
3249 else
3250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3251 /* end confdefs.h. */
3252
3253 int
3254 main ()
3255 {
3256
3257 ;
3258 return 0;
3259 }
3260 _ACEOF
3261 rm -f conftest.o conftest.obj
3262 if { { ac_try="$ac_compile"
3263 case "(($ac_try" in
3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265 *) ac_try_echo=$ac_try;;
3266 esac
3267 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3268 $as_echo "$ac_try_echo"; } >&5
3269 (eval "$ac_compile") 2>&5
3270 ac_status=$?
3271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3272 test $ac_status = 0; }; then :
3273 for ac_file in conftest.o conftest.obj conftest.*; do
3274 test -f "$ac_file" || continue;
3275 case $ac_file in
3276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3277 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3278 break;;
3279 esac
3280 done
3281 else
3282 $as_echo "$as_me: failed program was:" >&5
3283 sed 's/^/| /' conftest.$ac_ext >&5
3284
3285 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3286 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3287 as_fn_error $? "cannot compute suffix of object files: cannot compile
3288 See \`config.log' for more details" "$LINENO" 5; }
3289 fi
3290 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3291 fi
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3293 $as_echo "$ac_cv_objext" >&6; }
3294 OBJEXT=$ac_cv_objext
3295 ac_objext=$OBJEXT
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3297 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3298 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3299 $as_echo_n "(cached) " >&6
3300 else
3301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3302 /* end confdefs.h. */
3303
3304 int
3305 main ()
3306 {
3307 #ifndef __GNUC__
3308 choke me
3309 #endif
3310
3311 ;
3312 return 0;
3313 }
3314 _ACEOF
3315 if ac_fn_cxx_try_compile "$LINENO"; then :
3316 ac_compiler_gnu=yes
3317 else
3318 ac_compiler_gnu=no
3319 fi
3320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3321 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3322
3323 fi
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3325 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3326 if test $ac_compiler_gnu = yes; then
3327 GXX=yes
3328 else
3329 GXX=
3330 fi
3331 ac_test_CXXFLAGS=${CXXFLAGS+set}
3332 ac_save_CXXFLAGS=$CXXFLAGS
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3334 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3335 if ${ac_cv_prog_cxx_g+:} false; then :
3336 $as_echo_n "(cached) " >&6
3337 else
3338 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3339 ac_cxx_werror_flag=yes
3340 ac_cv_prog_cxx_g=no
3341 CXXFLAGS="-g"
3342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3343 /* end confdefs.h. */
3344
3345 int
3346 main ()
3347 {
3348
3349 ;
3350 return 0;
3351 }
3352 _ACEOF
3353 if ac_fn_cxx_try_compile "$LINENO"; then :
3354 ac_cv_prog_cxx_g=yes
3355 else
3356 CXXFLAGS=""
3357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3358 /* end confdefs.h. */
3359
3360 int
3361 main ()
3362 {
3363
3364 ;
3365 return 0;
3366 }
3367 _ACEOF
3368 if ac_fn_cxx_try_compile "$LINENO"; then :
3369
3370 else
3371 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3372 CXXFLAGS="-g"
3373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3374 /* end confdefs.h. */
3375
3376 int
3377 main ()
3378 {
3379
3380 ;
3381 return 0;
3382 }
3383 _ACEOF
3384 if ac_fn_cxx_try_compile "$LINENO"; then :
3385 ac_cv_prog_cxx_g=yes
3386 fi
3387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3388 fi
3389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3390 fi
3391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3392 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3393 fi
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3395 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3396 if test "$ac_test_CXXFLAGS" = set; then
3397 CXXFLAGS=$ac_save_CXXFLAGS
3398 elif test $ac_cv_prog_cxx_g = yes; then
3399 if test "$GXX" = yes; then
3400 CXXFLAGS="-g -O2"
3401 else
3402 CXXFLAGS="-g"
3403 fi
3404 else
3405 if test "$GXX" = yes; then
3406 CXXFLAGS="-O2"
3407 else
3408 CXXFLAGS=
3409 fi
3410 fi
3411 ac_ext=c
3412 ac_cpp='$CPP $CPPFLAGS'
3413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3416 DEPDIR="${am__leading_dot}deps"
3417
3418 ac_config_commands="$ac_config_commands depfiles"
3419
3420
3421 am_make=${MAKE-make}
3422 cat > confinc << 'END'
3423 am__doit:
3424 @echo this is the am__doit target
3425 .PHONY: am__doit
3426 END
3427 # If we don't find an include directive, just comment out the code.
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3429 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3430 am__include="#"
3431 am__quote=
3432 _am_result=none
3433 # First try GNU make style include.
3434 echo "include confinc" > confmf
3435 # Ignore all kinds of additional output from `make'.
3436 case `$am_make -s -f confmf 2> /dev/null` in #(
3437 *the\ am__doit\ target*)
3438 am__include=include
3439 am__quote=
3440 _am_result=GNU
3441 ;;
3442 esac
3443 # Now try BSD make style include.
3444 if test "$am__include" = "#"; then
3445 echo '.include "confinc"' > confmf
3446 case `$am_make -s -f confmf 2> /dev/null` in #(
3447 *the\ am__doit\ target*)
3448 am__include=.include
3449 am__quote="\""
3450 _am_result=BSD
3451 ;;
3452 esac
3453 fi
3454
3455
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3457 $as_echo "$_am_result" >&6; }
3458 rm -f confinc confmf
3459
3460 # Check whether --enable-dependency-tracking was given.
3461 if test "${enable_dependency_tracking+set}" = set; then :
3462 enableval=$enable_dependency_tracking;
3463 fi
3464
3465 if test "x$enable_dependency_tracking" != xno; then
3466 am_depcomp="$ac_aux_dir/depcomp"
3467 AMDEPBACKSLASH='\'
3468 am__nodep='_no'
3469 fi
3470 if test "x$enable_dependency_tracking" != xno; then
3471 AMDEP_TRUE=
3472 AMDEP_FALSE='#'
3473 else
3474 AMDEP_TRUE='#'
3475 AMDEP_FALSE=
3476 fi
3477
3478
3479
3480 depcc="$CXX" am_compiler_list=
3481
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3483 $as_echo_n "checking dependency style of $depcc... " >&6; }
3484 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3485 $as_echo_n "(cached) " >&6
3486 else
3487 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3488 # We make a subdir and do the tests there. Otherwise we can end up
3489 # making bogus files that we don't know about and never remove. For
3490 # instance it was reported that on HP-UX the gcc test will end up
3491 # making a dummy file named `D' -- because `-MD' means `put the output
3492 # in D'.
3493 rm -rf conftest.dir
3494 mkdir conftest.dir
3495 # Copy depcomp to subdir because otherwise we won't find it if we're
3496 # using a relative directory.
3497 cp "$am_depcomp" conftest.dir
3498 cd conftest.dir
3499 # We will build objects and dependencies in a subdirectory because
3500 # it helps to detect inapplicable dependency modes. For instance
3501 # both Tru64's cc and ICC support -MD to output dependencies as a
3502 # side effect of compilation, but ICC will put the dependencies in
3503 # the current directory while Tru64 will put them in the object
3504 # directory.
3505 mkdir sub
3506
3507 am_cv_CXX_dependencies_compiler_type=none
3508 if test "$am_compiler_list" = ""; then
3509 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3510 fi
3511 am__universal=false
3512 case " $depcc " in #(
3513 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3514 esac
3515
3516 for depmode in $am_compiler_list; do
3517 # Setup a source with many dependencies, because some compilers
3518 # like to wrap large dependency lists on column 80 (with \), and
3519 # we should not choose a depcomp mode which is confused by this.
3520 #
3521 # We need to recreate these files for each test, as the compiler may
3522 # overwrite some of them when testing with obscure command lines.
3523 # This happens at least with the AIX C compiler.
3524 : > sub/conftest.c
3525 for i in 1 2 3 4 5 6; do
3526 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3527 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3528 # Solaris 8's {/usr,}/bin/sh.
3529 touch sub/conftst$i.h
3530 done
3531 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3532
3533 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3534 # mode. It turns out that the SunPro C++ compiler does not properly
3535 # handle `-M -o', and we need to detect this. Also, some Intel
3536 # versions had trouble with output in subdirs
3537 am__obj=sub/conftest.${OBJEXT-o}
3538 am__minus_obj="-o $am__obj"
3539 case $depmode in
3540 gcc)
3541 # This depmode causes a compiler race in universal mode.
3542 test "$am__universal" = false || continue
3543 ;;
3544 nosideeffect)
3545 # after this tag, mechanisms are not by side-effect, so they'll
3546 # only be used when explicitly requested
3547 if test "x$enable_dependency_tracking" = xyes; then
3548 continue
3549 else
3550 break
3551 fi
3552 ;;
3553 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3554 # This compiler won't grok `-c -o', but also, the minuso test has
3555 # not run yet. These depmodes are late enough in the game, and
3556 # so weak that their functioning should not be impacted.
3557 am__obj=conftest.${OBJEXT-o}
3558 am__minus_obj=
3559 ;;
3560 none) break ;;
3561 esac
3562 if depmode=$depmode \
3563 source=sub/conftest.c object=$am__obj \
3564 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3565 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3566 >/dev/null 2>conftest.err &&
3567 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3568 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3569 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3570 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3571 # icc doesn't choke on unknown options, it will just issue warnings
3572 # or remarks (even with -Werror). So we grep stderr for any message
3573 # that says an option was ignored or not supported.
3574 # When given -MP, icc 7.0 and 7.1 complain thusly:
3575 # icc: Command line warning: ignoring option '-M'; no argument required
3576 # The diagnosis changed in icc 8.0:
3577 # icc: Command line remark: option '-MP' not supported
3578 if (grep 'ignoring option' conftest.err ||
3579 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3580 am_cv_CXX_dependencies_compiler_type=$depmode
3581 break
3582 fi
3583 fi
3584 done
3585
3586 cd ..
3587 rm -rf conftest.dir
3588 else
3589 am_cv_CXX_dependencies_compiler_type=none
3590 fi
3591
3592 fi
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3594 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3595 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3596
3597 if
3598 test "x$enable_dependency_tracking" != xno \
3599 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3600 am__fastdepCXX_TRUE=
3601 am__fastdepCXX_FALSE='#'
3602 else
3603 am__fastdepCXX_TRUE='#'
3604 am__fastdepCXX_FALSE=
3605 fi
3606
3607
3608 for ac_prog in gawk mawk nawk awk
3609 do
3610 # Extract the first word of "$ac_prog", so it can be a program name with args.
3611 set dummy $ac_prog; ac_word=$2
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3613 $as_echo_n "checking for $ac_word... " >&6; }
3614 if ${ac_cv_prog_AWK+:} false; then :
3615 $as_echo_n "(cached) " >&6
3616 else
3617 if test -n "$AWK"; then
3618 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3619 else
3620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3621 for as_dir in $PATH
3622 do
3623 IFS=$as_save_IFS
3624 test -z "$as_dir" && as_dir=.
3625 for ac_exec_ext in '' $ac_executable_extensions; do
3626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3627 ac_cv_prog_AWK="$ac_prog"
3628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3629 break 2
3630 fi
3631 done
3632 done
3633 IFS=$as_save_IFS
3634
3635 fi
3636 fi
3637 AWK=$ac_cv_prog_AWK
3638 if test -n "$AWK"; then
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3640 $as_echo "$AWK" >&6; }
3641 else
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3643 $as_echo "no" >&6; }
3644 fi
3645
3646
3647 test -n "$AWK" && break
3648 done
3649
3650 ac_ext=c
3651 ac_cpp='$CPP $CPPFLAGS'
3652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3655 if test -n "$ac_tool_prefix"; then
3656 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3657 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3659 $as_echo_n "checking for $ac_word... " >&6; }
3660 if ${ac_cv_prog_CC+:} false; then :
3661 $as_echo_n "(cached) " >&6
3662 else
3663 if test -n "$CC"; then
3664 ac_cv_prog_CC="$CC" # Let the user override the test.
3665 else
3666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667 for as_dir in $PATH
3668 do
3669 IFS=$as_save_IFS
3670 test -z "$as_dir" && as_dir=.
3671 for ac_exec_ext in '' $ac_executable_extensions; do
3672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3673 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3675 break 2
3676 fi
3677 done
3678 done
3679 IFS=$as_save_IFS
3680
3681 fi
3682 fi
3683 CC=$ac_cv_prog_CC
3684 if test -n "$CC"; then
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3686 $as_echo "$CC" >&6; }
3687 else
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3689 $as_echo "no" >&6; }
3690 fi
3691
3692
3693 fi
3694 if test -z "$ac_cv_prog_CC"; then
3695 ac_ct_CC=$CC
3696 # Extract the first word of "gcc", so it can be a program name with args.
3697 set dummy gcc; ac_word=$2
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3699 $as_echo_n "checking for $ac_word... " >&6; }
3700 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3701 $as_echo_n "(cached) " >&6
3702 else
3703 if test -n "$ac_ct_CC"; then
3704 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3705 else
3706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3707 for as_dir in $PATH
3708 do
3709 IFS=$as_save_IFS
3710 test -z "$as_dir" && as_dir=.
3711 for ac_exec_ext in '' $ac_executable_extensions; do
3712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3713 ac_cv_prog_ac_ct_CC="gcc"
3714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3715 break 2
3716 fi
3717 done
3718 done
3719 IFS=$as_save_IFS
3720
3721 fi
3722 fi
3723 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3724 if test -n "$ac_ct_CC"; then
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3726 $as_echo "$ac_ct_CC" >&6; }
3727 else
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3729 $as_echo "no" >&6; }
3730 fi
3731
3732 if test "x$ac_ct_CC" = x; then
3733 CC=""
3734 else
3735 case $cross_compiling:$ac_tool_warned in
3736 yes:)
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3739 ac_tool_warned=yes ;;
3740 esac
3741 CC=$ac_ct_CC
3742 fi
3743 else
3744 CC="$ac_cv_prog_CC"
3745 fi
3746
3747 if test -z "$CC"; then
3748 if test -n "$ac_tool_prefix"; then
3749 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3750 set dummy ${ac_tool_prefix}cc; ac_word=$2
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3752 $as_echo_n "checking for $ac_word... " >&6; }
3753 if ${ac_cv_prog_CC+:} false; then :
3754 $as_echo_n "(cached) " >&6
3755 else
3756 if test -n "$CC"; then
3757 ac_cv_prog_CC="$CC" # Let the user override the test.
3758 else
3759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3760 for as_dir in $PATH
3761 do
3762 IFS=$as_save_IFS
3763 test -z "$as_dir" && as_dir=.
3764 for ac_exec_ext in '' $ac_executable_extensions; do
3765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3766 ac_cv_prog_CC="${ac_tool_prefix}cc"
3767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3768 break 2
3769 fi
3770 done
3771 done
3772 IFS=$as_save_IFS
3773
3774 fi
3775 fi
3776 CC=$ac_cv_prog_CC
3777 if test -n "$CC"; then
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3779 $as_echo "$CC" >&6; }
3780 else
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3782 $as_echo "no" >&6; }
3783 fi
3784
3785
3786 fi
3787 fi
3788 if test -z "$CC"; then
3789 # Extract the first word of "cc", so it can be a program name with args.
3790 set dummy cc; ac_word=$2
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3792 $as_echo_n "checking for $ac_word... " >&6; }
3793 if ${ac_cv_prog_CC+:} false; then :
3794 $as_echo_n "(cached) " >&6
3795 else
3796 if test -n "$CC"; then
3797 ac_cv_prog_CC="$CC" # Let the user override the test.
3798 else
3799 ac_prog_rejected=no
3800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3801 for as_dir in $PATH
3802 do
3803 IFS=$as_save_IFS
3804 test -z "$as_dir" && as_dir=.
3805 for ac_exec_ext in '' $ac_executable_extensions; do
3806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3807 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3808 ac_prog_rejected=yes
3809 continue
3810 fi
3811 ac_cv_prog_CC="cc"
3812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3813 break 2
3814 fi
3815 done
3816 done
3817 IFS=$as_save_IFS
3818
3819 if test $ac_prog_rejected = yes; then
3820 # We found a bogon in the path, so make sure we never use it.
3821 set dummy $ac_cv_prog_CC
3822 shift
3823 if test $# != 0; then
3824 # We chose a different compiler from the bogus one.
3825 # However, it has the same basename, so the bogon will be chosen
3826 # first if we set CC to just the basename; use the full file name.
3827 shift
3828 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3829 fi
3830 fi
3831 fi
3832 fi
3833 CC=$ac_cv_prog_CC
3834 if test -n "$CC"; then
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3836 $as_echo "$CC" >&6; }
3837 else
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3839 $as_echo "no" >&6; }
3840 fi
3841
3842
3843 fi
3844 if test -z "$CC"; then
3845 if test -n "$ac_tool_prefix"; then
3846 for ac_prog in cl.exe
3847 do
3848 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3849 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3851 $as_echo_n "checking for $ac_word... " >&6; }
3852 if ${ac_cv_prog_CC+:} false; then :
3853 $as_echo_n "(cached) " >&6
3854 else
3855 if test -n "$CC"; then
3856 ac_cv_prog_CC="$CC" # Let the user override the test.
3857 else
3858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3859 for as_dir in $PATH
3860 do
3861 IFS=$as_save_IFS
3862 test -z "$as_dir" && as_dir=.
3863 for ac_exec_ext in '' $ac_executable_extensions; do
3864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3865 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3867 break 2
3868 fi
3869 done
3870 done
3871 IFS=$as_save_IFS
3872
3873 fi
3874 fi
3875 CC=$ac_cv_prog_CC
3876 if test -n "$CC"; then
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3878 $as_echo "$CC" >&6; }
3879 else
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3881 $as_echo "no" >&6; }
3882 fi
3883
3884
3885 test -n "$CC" && break
3886 done
3887 fi
3888 if test -z "$CC"; then
3889 ac_ct_CC=$CC
3890 for ac_prog in cl.exe
3891 do
3892 # Extract the first word of "$ac_prog", so it can be a program name with args.
3893 set dummy $ac_prog; ac_word=$2
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3895 $as_echo_n "checking for $ac_word... " >&6; }
3896 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3897 $as_echo_n "(cached) " >&6
3898 else
3899 if test -n "$ac_ct_CC"; then
3900 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3901 else
3902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903 for as_dir in $PATH
3904 do
3905 IFS=$as_save_IFS
3906 test -z "$as_dir" && as_dir=.
3907 for ac_exec_ext in '' $ac_executable_extensions; do
3908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3909 ac_cv_prog_ac_ct_CC="$ac_prog"
3910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3911 break 2
3912 fi
3913 done
3914 done
3915 IFS=$as_save_IFS
3916
3917 fi
3918 fi
3919 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3920 if test -n "$ac_ct_CC"; then
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3922 $as_echo "$ac_ct_CC" >&6; }
3923 else
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3925 $as_echo "no" >&6; }
3926 fi
3927
3928
3929 test -n "$ac_ct_CC" && break
3930 done
3931
3932 if test "x$ac_ct_CC" = x; then
3933 CC=""
3934 else
3935 case $cross_compiling:$ac_tool_warned in
3936 yes:)
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3938 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3939 ac_tool_warned=yes ;;
3940 esac
3941 CC=$ac_ct_CC
3942 fi
3943 fi
3944
3945 fi
3946
3947
3948 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3949 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3950 as_fn_error $? "no acceptable C compiler found in \$PATH
3951 See \`config.log' for more details" "$LINENO" 5; }
3952
3953 # Provide some information about the compiler.
3954 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3955 set X $ac_compile
3956 ac_compiler=$2
3957 for ac_option in --version -v -V -qversion; do
3958 { { ac_try="$ac_compiler $ac_option >&5"
3959 case "(($ac_try" in
3960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961 *) ac_try_echo=$ac_try;;
3962 esac
3963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3964 $as_echo "$ac_try_echo"; } >&5
3965 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3966 ac_status=$?
3967 if test -s conftest.err; then
3968 sed '10a\
3969 ... rest of stderr output deleted ...
3970 10q' conftest.err >conftest.er1
3971 cat conftest.er1 >&5
3972 fi
3973 rm -f conftest.er1 conftest.err
3974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3975 test $ac_status = 0; }
3976 done
3977
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3979 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3980 if ${ac_cv_c_compiler_gnu+:} false; then :
3981 $as_echo_n "(cached) " >&6
3982 else
3983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3984 /* end confdefs.h. */
3985
3986 int
3987 main ()
3988 {
3989 #ifndef __GNUC__
3990 choke me
3991 #endif
3992
3993 ;
3994 return 0;
3995 }
3996 _ACEOF
3997 if ac_fn_c_try_compile "$LINENO"; then :
3998 ac_compiler_gnu=yes
3999 else
4000 ac_compiler_gnu=no
4001 fi
4002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4003 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4004
4005 fi
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4007 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4008 if test $ac_compiler_gnu = yes; then
4009 GCC=yes
4010 else
4011 GCC=
4012 fi
4013 ac_test_CFLAGS=${CFLAGS+set}
4014 ac_save_CFLAGS=$CFLAGS
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4016 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4017 if ${ac_cv_prog_cc_g+:} false; then :
4018 $as_echo_n "(cached) " >&6
4019 else
4020 ac_save_c_werror_flag=$ac_c_werror_flag
4021 ac_c_werror_flag=yes
4022 ac_cv_prog_cc_g=no
4023 CFLAGS="-g"
4024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4025 /* end confdefs.h. */
4026
4027 int
4028 main ()
4029 {
4030
4031 ;
4032 return 0;
4033 }
4034 _ACEOF
4035 if ac_fn_c_try_compile "$LINENO"; then :
4036 ac_cv_prog_cc_g=yes
4037 else
4038 CFLAGS=""
4039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4040 /* end confdefs.h. */
4041
4042 int
4043 main ()
4044 {
4045
4046 ;
4047 return 0;
4048 }
4049 _ACEOF
4050 if ac_fn_c_try_compile "$LINENO"; then :
4051
4052 else
4053 ac_c_werror_flag=$ac_save_c_werror_flag
4054 CFLAGS="-g"
4055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056 /* end confdefs.h. */
4057
4058 int
4059 main ()
4060 {
4061
4062 ;
4063 return 0;
4064 }
4065 _ACEOF
4066 if ac_fn_c_try_compile "$LINENO"; then :
4067 ac_cv_prog_cc_g=yes
4068 fi
4069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4070 fi
4071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4072 fi
4073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4074 ac_c_werror_flag=$ac_save_c_werror_flag
4075 fi
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4077 $as_echo "$ac_cv_prog_cc_g" >&6; }
4078 if test "$ac_test_CFLAGS" = set; then
4079 CFLAGS=$ac_save_CFLAGS
4080 elif test $ac_cv_prog_cc_g = yes; then
4081 if test "$GCC" = yes; then
4082 CFLAGS="-g -O2"
4083 else
4084 CFLAGS="-g"
4085 fi
4086 else
4087 if test "$GCC" = yes; then
4088 CFLAGS="-O2"
4089 else
4090 CFLAGS=
4091 fi
4092 fi
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4094 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4095 if ${ac_cv_prog_cc_c89+:} false; then :
4096 $as_echo_n "(cached) " >&6
4097 else
4098 ac_cv_prog_cc_c89=no
4099 ac_save_CC=$CC
4100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101 /* end confdefs.h. */
4102 #include <stdarg.h>
4103 #include <stdio.h>
4104 #include <sys/types.h>
4105 #include <sys/stat.h>
4106 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4107 struct buf { int x; };
4108 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4109 static char *e (p, i)
4110 char **p;
4111 int i;
4112 {
4113 return p[i];
4114 }
4115 static char *f (char * (*g) (char **, int), char **p, ...)
4116 {
4117 char *s;
4118 va_list v;
4119 va_start (v,p);
4120 s = g (p, va_arg (v,int));
4121 va_end (v);
4122 return s;
4123 }
4124
4125 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4126 function prototypes and stuff, but not '\xHH' hex character constants.
4127 These don't provoke an error unfortunately, instead are silently treated
4128 as 'x'. The following induces an error, until -std is added to get
4129 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4130 array size at least. It's necessary to write '\x00'==0 to get something
4131 that's true only with -std. */
4132 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4133
4134 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4135 inside strings and character constants. */
4136 #define FOO(x) 'x'
4137 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4138
4139 int test (int i, double x);
4140 struct s1 {int (*f) (int a);};
4141 struct s2 {int (*f) (double a);};
4142 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4143 int argc;
4144 char **argv;
4145 int
4146 main ()
4147 {
4148 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4149 ;
4150 return 0;
4151 }
4152 _ACEOF
4153 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4154 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4155 do
4156 CC="$ac_save_CC $ac_arg"
4157 if ac_fn_c_try_compile "$LINENO"; then :
4158 ac_cv_prog_cc_c89=$ac_arg
4159 fi
4160 rm -f core conftest.err conftest.$ac_objext
4161 test "x$ac_cv_prog_cc_c89" != "xno" && break
4162 done
4163 rm -f conftest.$ac_ext
4164 CC=$ac_save_CC
4165
4166 fi
4167 # AC_CACHE_VAL
4168 case "x$ac_cv_prog_cc_c89" in
4169 x)
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4171 $as_echo "none needed" >&6; } ;;
4172 xno)
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4174 $as_echo "unsupported" >&6; } ;;
4175 *)
4176 CC="$CC $ac_cv_prog_cc_c89"
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4178 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4179 esac
4180 if test "x$ac_cv_prog_cc_c89" != xno; then :
4181
4182 fi
4183
4184 ac_ext=c
4185 ac_cpp='$CPP $CPPFLAGS'
4186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4189
4190 depcc="$CC" am_compiler_list=
4191
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4193 $as_echo_n "checking dependency style of $depcc... " >&6; }
4194 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4195 $as_echo_n "(cached) " >&6
4196 else
4197 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4198 # We make a subdir and do the tests there. Otherwise we can end up
4199 # making bogus files that we don't know about and never remove. For
4200 # instance it was reported that on HP-UX the gcc test will end up
4201 # making a dummy file named `D' -- because `-MD' means `put the output
4202 # in D'.
4203 rm -rf conftest.dir
4204 mkdir conftest.dir
4205 # Copy depcomp to subdir because otherwise we won't find it if we're
4206 # using a relative directory.
4207 cp "$am_depcomp" conftest.dir
4208 cd conftest.dir
4209 # We will build objects and dependencies in a subdirectory because
4210 # it helps to detect inapplicable dependency modes. For instance
4211 # both Tru64's cc and ICC support -MD to output dependencies as a
4212 # side effect of compilation, but ICC will put the dependencies in
4213 # the current directory while Tru64 will put them in the object
4214 # directory.
4215 mkdir sub
4216
4217 am_cv_CC_dependencies_compiler_type=none
4218 if test "$am_compiler_list" = ""; then
4219 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4220 fi
4221 am__universal=false
4222 case " $depcc " in #(
4223 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4224 esac
4225
4226 for depmode in $am_compiler_list; do
4227 # Setup a source with many dependencies, because some compilers
4228 # like to wrap large dependency lists on column 80 (with \), and
4229 # we should not choose a depcomp mode which is confused by this.
4230 #
4231 # We need to recreate these files for each test, as the compiler may
4232 # overwrite some of them when testing with obscure command lines.
4233 # This happens at least with the AIX C compiler.
4234 : > sub/conftest.c
4235 for i in 1 2 3 4 5 6; do
4236 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4237 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4238 # Solaris 8's {/usr,}/bin/sh.
4239 touch sub/conftst$i.h
4240 done
4241 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4242
4243 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4244 # mode. It turns out that the SunPro C++ compiler does not properly
4245 # handle `-M -o', and we need to detect this. Also, some Intel
4246 # versions had trouble with output in subdirs
4247 am__obj=sub/conftest.${OBJEXT-o}
4248 am__minus_obj="-o $am__obj"
4249 case $depmode in
4250 gcc)
4251 # This depmode causes a compiler race in universal mode.
4252 test "$am__universal" = false || continue
4253 ;;
4254 nosideeffect)
4255 # after this tag, mechanisms are not by side-effect, so they'll
4256 # only be used when explicitly requested
4257 if test "x$enable_dependency_tracking" = xyes; then
4258 continue
4259 else
4260 break
4261 fi
4262 ;;
4263 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4264 # This compiler won't grok `-c -o', but also, the minuso test has
4265 # not run yet. These depmodes are late enough in the game, and
4266 # so weak that their functioning should not be impacted.
4267 am__obj=conftest.${OBJEXT-o}
4268 am__minus_obj=
4269 ;;
4270 none) break ;;
4271 esac
4272 if depmode=$depmode \
4273 source=sub/conftest.c object=$am__obj \
4274 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4275 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4276 >/dev/null 2>conftest.err &&
4277 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4278 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4279 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4280 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4281 # icc doesn't choke on unknown options, it will just issue warnings
4282 # or remarks (even with -Werror). So we grep stderr for any message
4283 # that says an option was ignored or not supported.
4284 # When given -MP, icc 7.0 and 7.1 complain thusly:
4285 # icc: Command line warning: ignoring option '-M'; no argument required
4286 # The diagnosis changed in icc 8.0:
4287 # icc: Command line remark: option '-MP' not supported
4288 if (grep 'ignoring option' conftest.err ||
4289 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4290 am_cv_CC_dependencies_compiler_type=$depmode
4291 break
4292 fi
4293 fi
4294 done
4295
4296 cd ..
4297 rm -rf conftest.dir
4298 else
4299 am_cv_CC_dependencies_compiler_type=none
4300 fi
4301
4302 fi
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4304 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4305 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4306
4307 if
4308 test "x$enable_dependency_tracking" != xno \
4309 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4310 am__fastdepCC_TRUE=
4311 am__fastdepCC_FALSE='#'
4312 else
4313 am__fastdepCC_TRUE='#'
4314 am__fastdepCC_FALSE=
4315 fi
4316
4317
4318 ac_ext=c
4319 ac_cpp='$CPP $CPPFLAGS'
4320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4324 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4325 # On Suns, sometimes $CPP names a directory.
4326 if test -n "$CPP" && test -d "$CPP"; then
4327 CPP=
4328 fi
4329 if test -z "$CPP"; then
4330 if ${ac_cv_prog_CPP+:} false; then :
4331 $as_echo_n "(cached) " >&6
4332 else
4333 # Double quotes because CPP needs to be expanded
4334 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4335 do
4336 ac_preproc_ok=false
4337 for ac_c_preproc_warn_flag in '' yes
4338 do
4339 # Use a header file that comes with gcc, so configuring glibc
4340 # with a fresh cross-compiler works.
4341 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4342 # <limits.h> exists even on freestanding compilers.
4343 # On the NeXT, cc -E runs the code through the compiler's parser,
4344 # not just through cpp. "Syntax error" is here to catch this case.
4345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4346 /* end confdefs.h. */
4347 #ifdef __STDC__
4348 # include <limits.h>
4349 #else
4350 # include <assert.h>
4351 #endif
4352 Syntax error
4353 _ACEOF
4354 if ac_fn_c_try_cpp "$LINENO"; then :
4355
4356 else
4357 # Broken: fails on valid input.
4358 continue
4359 fi
4360 rm -f conftest.err conftest.i conftest.$ac_ext
4361
4362 # OK, works on sane cases. Now check whether nonexistent headers
4363 # can be detected and how.
4364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4365 /* end confdefs.h. */
4366 #include <ac_nonexistent.h>
4367 _ACEOF
4368 if ac_fn_c_try_cpp "$LINENO"; then :
4369 # Broken: success on invalid input.
4370 continue
4371 else
4372 # Passes both tests.
4373 ac_preproc_ok=:
4374 break
4375 fi
4376 rm -f conftest.err conftest.i conftest.$ac_ext
4377
4378 done
4379 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4380 rm -f conftest.i conftest.err conftest.$ac_ext
4381 if $ac_preproc_ok; then :
4382 break
4383 fi
4384
4385 done
4386 ac_cv_prog_CPP=$CPP
4387
4388 fi
4389 CPP=$ac_cv_prog_CPP
4390 else
4391 ac_cv_prog_CPP=$CPP
4392 fi
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4394 $as_echo "$CPP" >&6; }
4395 ac_preproc_ok=false
4396 for ac_c_preproc_warn_flag in '' yes
4397 do
4398 # Use a header file that comes with gcc, so configuring glibc
4399 # with a fresh cross-compiler works.
4400 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4401 # <limits.h> exists even on freestanding compilers.
4402 # On the NeXT, cc -E runs the code through the compiler's parser,
4403 # not just through cpp. "Syntax error" is here to catch this case.
4404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4405 /* end confdefs.h. */
4406 #ifdef __STDC__
4407 # include <limits.h>
4408 #else
4409 # include <assert.h>
4410 #endif
4411 Syntax error
4412 _ACEOF
4413 if ac_fn_c_try_cpp "$LINENO"; then :
4414
4415 else
4416 # Broken: fails on valid input.
4417 continue
4418 fi
4419 rm -f conftest.err conftest.i conftest.$ac_ext
4420
4421 # OK, works on sane cases. Now check whether nonexistent headers
4422 # can be detected and how.
4423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4424 /* end confdefs.h. */
4425 #include <ac_nonexistent.h>
4426 _ACEOF
4427 if ac_fn_c_try_cpp "$LINENO"; then :
4428 # Broken: success on invalid input.
4429 continue
4430 else
4431 # Passes both tests.
4432 ac_preproc_ok=:
4433 break
4434 fi
4435 rm -f conftest.err conftest.i conftest.$ac_ext
4436
4437 done
4438 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4439 rm -f conftest.i conftest.err conftest.$ac_ext
4440 if $ac_preproc_ok; then :
4441
4442 else
4443 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4444 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4445 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4446 See \`config.log' for more details" "$LINENO" 5; }
4447 fi
4448
4449 ac_ext=c
4450 ac_cpp='$CPP $CPPFLAGS'
4451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4454
4455
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4457 $as_echo_n "checking whether ln -s works... " >&6; }
4458 LN_S=$as_ln_s
4459 if test "$LN_S" = "ln -s"; then
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4461 $as_echo "yes" >&6; }
4462 else
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4464 $as_echo "no, using $LN_S" >&6; }
4465 fi
4466
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4468 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4469 set x ${MAKE-make}
4470 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4471 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4472 $as_echo_n "(cached) " >&6
4473 else
4474 cat >conftest.make <<\_ACEOF
4475 SHELL = /bin/sh
4476 all:
4477 @echo '@@@%%%=$(MAKE)=@@@%%%'
4478 _ACEOF
4479 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4480 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4481 *@@@%%%=?*=@@@%%%*)
4482 eval ac_cv_prog_make_${ac_make}_set=yes;;
4483 *)
4484 eval ac_cv_prog_make_${ac_make}_set=no;;
4485 esac
4486 rm -f conftest.make
4487 fi
4488 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4490 $as_echo "yes" >&6; }
4491 SET_MAKE=
4492 else
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4494 $as_echo "no" >&6; }
4495 SET_MAKE="MAKE=${MAKE-make}"
4496 fi
4497
4498
4499 case `pwd` in
4500 *\ * | *\ *)
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4502 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4503 esac
4504
4505
4506
4507 macro_version='2.4.2'
4508 macro_revision='1.3337'
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522 ltmain="$ac_aux_dir/ltmain.sh"
4523
4524 # Make sure we can run config.sub.
4525 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4526 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4527
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4529 $as_echo_n "checking build system type... " >&6; }
4530 if ${ac_cv_build+:} false; then :
4531 $as_echo_n "(cached) " >&6
4532 else
4533 ac_build_alias=$build_alias
4534 test "x$ac_build_alias" = x &&
4535 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4536 test "x$ac_build_alias" = x &&
4537 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4538 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4539 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4540
4541 fi
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4543 $as_echo "$ac_cv_build" >&6; }
4544 case $ac_cv_build in
4545 *-*-*) ;;
4546 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4547 esac
4548 build=$ac_cv_build
4549 ac_save_IFS=$IFS; IFS='-'
4550 set x $ac_cv_build
4551 shift
4552 build_cpu=$1
4553 build_vendor=$2
4554 shift; shift
4555 # Remember, the first character of IFS is used to create $*,
4556 # except with old shells:
4557 build_os=$*
4558 IFS=$ac_save_IFS
4559 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4560
4561
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4563 $as_echo_n "checking host system type... " >&6; }
4564 if ${ac_cv_host+:} false; then :
4565 $as_echo_n "(cached) " >&6
4566 else
4567 if test "x$host_alias" = x; then
4568 ac_cv_host=$ac_cv_build
4569 else
4570 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4571 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4572 fi
4573
4574 fi
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4576 $as_echo "$ac_cv_host" >&6; }
4577 case $ac_cv_host in
4578 *-*-*) ;;
4579 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4580 esac
4581 host=$ac_cv_host
4582 ac_save_IFS=$IFS; IFS='-'
4583 set x $ac_cv_host
4584 shift
4585 host_cpu=$1
4586 host_vendor=$2
4587 shift; shift
4588 # Remember, the first character of IFS is used to create $*,
4589 # except with old shells:
4590 host_os=$*
4591 IFS=$ac_save_IFS
4592 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4593
4594
4595 # Backslashify metacharacters that are still active within
4596 # double-quoted strings.
4597 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4598
4599 # Same as above, but do not quote variable references.
4600 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4601
4602 # Sed substitution to delay expansion of an escaped shell variable in a
4603 # double_quote_subst'ed string.
4604 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4605
4606 # Sed substitution to delay expansion of an escaped single quote.
4607 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4608
4609 # Sed substitution to avoid accidental globbing in evaled expressions
4610 no_glob_subst='s/\*/\\\*/g'
4611
4612 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4613 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4614 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4615
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4617 $as_echo_n "checking how to print strings... " >&6; }
4618 # Test print first, because it will be a builtin if present.
4619 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4620 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4621 ECHO='print -r --'
4622 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4623 ECHO='printf %s\n'
4624 else
4625 # Use this function as a fallback that always works.
4626 func_fallback_echo ()
4627 {
4628 eval 'cat <<_LTECHO_EOF
4629 $1
4630 _LTECHO_EOF'
4631 }
4632 ECHO='func_fallback_echo'
4633 fi
4634
4635 # func_echo_all arg...
4636 # Invoke $ECHO with all args, space-separated.
4637 func_echo_all ()
4638 {
4639 $ECHO ""
4640 }
4641
4642 case "$ECHO" in
4643 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4644 $as_echo "printf" >&6; } ;;
4645 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4646 $as_echo "print -r" >&6; } ;;
4647 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4648 $as_echo "cat" >&6; } ;;
4649 esac
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4665 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4666 if ${ac_cv_path_SED+:} false; then :
4667 $as_echo_n "(cached) " >&6
4668 else
4669 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4670 for ac_i in 1 2 3 4 5 6 7; do
4671 ac_script="$ac_script$as_nl$ac_script"
4672 done
4673 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4674 { ac_script=; unset ac_script;}
4675 if test -z "$SED"; then
4676 ac_path_SED_found=false
4677 # Loop through the user's path and test for each of PROGNAME-LIST
4678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679 for as_dir in $PATH
4680 do
4681 IFS=$as_save_IFS
4682 test -z "$as_dir" && as_dir=.
4683 for ac_prog in sed gsed; do
4684 for ac_exec_ext in '' $ac_executable_extensions; do
4685 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4686 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4687 # Check for GNU ac_path_SED and select it if it is found.
4688 # Check for GNU $ac_path_SED
4689 case `"$ac_path_SED" --version 2>&1` in
4690 *GNU*)
4691 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4692 *)
4693 ac_count=0
4694 $as_echo_n 0123456789 >"conftest.in"
4695 while :
4696 do
4697 cat "conftest.in" "conftest.in" >"conftest.tmp"
4698 mv "conftest.tmp" "conftest.in"
4699 cp "conftest.in" "conftest.nl"
4700 $as_echo '' >> "conftest.nl"
4701 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4702 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4703 as_fn_arith $ac_count + 1 && ac_count=$as_val
4704 if test $ac_count -gt ${ac_path_SED_max-0}; then
4705 # Best one so far, save it but keep looking for a better one
4706 ac_cv_path_SED="$ac_path_SED"
4707 ac_path_SED_max=$ac_count
4708 fi
4709 # 10*(2^10) chars as input seems more than enough
4710 test $ac_count -gt 10 && break
4711 done
4712 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4713 esac
4714
4715 $ac_path_SED_found && break 3
4716 done
4717 done
4718 done
4719 IFS=$as_save_IFS
4720 if test -z "$ac_cv_path_SED"; then
4721 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4722 fi
4723 else
4724 ac_cv_path_SED=$SED
4725 fi
4726
4727 fi
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4729 $as_echo "$ac_cv_path_SED" >&6; }
4730 SED="$ac_cv_path_SED"
4731 rm -f conftest.sed
4732
4733 test -z "$SED" && SED=sed
4734 Xsed="$SED -e 1s/^X//"
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4747 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4748 if ${ac_cv_path_GREP+:} false; then :
4749 $as_echo_n "(cached) " >&6
4750 else
4751 if test -z "$GREP"; then
4752 ac_path_GREP_found=false
4753 # Loop through the user's path and test for each of PROGNAME-LIST
4754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4755 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4756 do
4757 IFS=$as_save_IFS
4758 test -z "$as_dir" && as_dir=.
4759 for ac_prog in grep ggrep; do
4760 for ac_exec_ext in '' $ac_executable_extensions; do
4761 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4762 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4763 # Check for GNU ac_path_GREP and select it if it is found.
4764 # Check for GNU $ac_path_GREP
4765 case `"$ac_path_GREP" --version 2>&1` in
4766 *GNU*)
4767 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4768 *)
4769 ac_count=0
4770 $as_echo_n 0123456789 >"conftest.in"
4771 while :
4772 do
4773 cat "conftest.in" "conftest.in" >"conftest.tmp"
4774 mv "conftest.tmp" "conftest.in"
4775 cp "conftest.in" "conftest.nl"
4776 $as_echo 'GREP' >> "conftest.nl"
4777 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4778 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4779 as_fn_arith $ac_count + 1 && ac_count=$as_val
4780 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4781 # Best one so far, save it but keep looking for a better one
4782 ac_cv_path_GREP="$ac_path_GREP"
4783 ac_path_GREP_max=$ac_count
4784 fi
4785 # 10*(2^10) chars as input seems more than enough
4786 test $ac_count -gt 10 && break
4787 done
4788 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4789 esac
4790
4791 $ac_path_GREP_found && break 3
4792 done
4793 done
4794 done
4795 IFS=$as_save_IFS
4796 if test -z "$ac_cv_path_GREP"; then
4797 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4798 fi
4799 else
4800 ac_cv_path_GREP=$GREP
4801 fi
4802
4803 fi
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4805 $as_echo "$ac_cv_path_GREP" >&6; }
4806 GREP="$ac_cv_path_GREP"
4807
4808
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4810 $as_echo_n "checking for egrep... " >&6; }
4811 if ${ac_cv_path_EGREP+:} false; then :
4812 $as_echo_n "(cached) " >&6
4813 else
4814 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4815 then ac_cv_path_EGREP="$GREP -E"
4816 else
4817 if test -z "$EGREP"; then
4818 ac_path_EGREP_found=false
4819 # Loop through the user's path and test for each of PROGNAME-LIST
4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4822 do
4823 IFS=$as_save_IFS
4824 test -z "$as_dir" && as_dir=.
4825 for ac_prog in egrep; do
4826 for ac_exec_ext in '' $ac_executable_extensions; do
4827 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4828 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4829 # Check for GNU ac_path_EGREP and select it if it is found.
4830 # Check for GNU $ac_path_EGREP
4831 case `"$ac_path_EGREP" --version 2>&1` in
4832 *GNU*)
4833 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4834 *)
4835 ac_count=0
4836 $as_echo_n 0123456789 >"conftest.in"
4837 while :
4838 do
4839 cat "conftest.in" "conftest.in" >"conftest.tmp"
4840 mv "conftest.tmp" "conftest.in"
4841 cp "conftest.in" "conftest.nl"
4842 $as_echo 'EGREP' >> "conftest.nl"
4843 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4844 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4845 as_fn_arith $ac_count + 1 && ac_count=$as_val
4846 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4847 # Best one so far, save it but keep looking for a better one
4848 ac_cv_path_EGREP="$ac_path_EGREP"
4849 ac_path_EGREP_max=$ac_count
4850 fi
4851 # 10*(2^10) chars as input seems more than enough
4852 test $ac_count -gt 10 && break
4853 done
4854 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4855 esac
4856
4857 $ac_path_EGREP_found && break 3
4858 done
4859 done
4860 done
4861 IFS=$as_save_IFS
4862 if test -z "$ac_cv_path_EGREP"; then
4863 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4864 fi
4865 else
4866 ac_cv_path_EGREP=$EGREP
4867 fi
4868
4869 fi
4870 fi
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4872 $as_echo "$ac_cv_path_EGREP" >&6; }
4873 EGREP="$ac_cv_path_EGREP"
4874
4875
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4877 $as_echo_n "checking for fgrep... " >&6; }
4878 if ${ac_cv_path_FGREP+:} false; then :
4879 $as_echo_n "(cached) " >&6
4880 else
4881 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4882 then ac_cv_path_FGREP="$GREP -F"
4883 else
4884 if test -z "$FGREP"; then
4885 ac_path_FGREP_found=false
4886 # Loop through the user's path and test for each of PROGNAME-LIST
4887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4888 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4889 do
4890 IFS=$as_save_IFS
4891 test -z "$as_dir" && as_dir=.
4892 for ac_prog in fgrep; do
4893 for ac_exec_ext in '' $ac_executable_extensions; do
4894 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4895 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4896 # Check for GNU ac_path_FGREP and select it if it is found.
4897 # Check for GNU $ac_path_FGREP
4898 case `"$ac_path_FGREP" --version 2>&1` in
4899 *GNU*)
4900 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4901 *)
4902 ac_count=0
4903 $as_echo_n 0123456789 >"conftest.in"
4904 while :
4905 do
4906 cat "conftest.in" "conftest.in" >"conftest.tmp"
4907 mv "conftest.tmp" "conftest.in"
4908 cp "conftest.in" "conftest.nl"
4909 $as_echo 'FGREP' >> "conftest.nl"
4910 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4911 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4912 as_fn_arith $ac_count + 1 && ac_count=$as_val
4913 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4914 # Best one so far, save it but keep looking for a better one
4915 ac_cv_path_FGREP="$ac_path_FGREP"
4916 ac_path_FGREP_max=$ac_count
4917 fi
4918 # 10*(2^10) chars as input seems more than enough
4919 test $ac_count -gt 10 && break
4920 done
4921 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4922 esac
4923
4924 $ac_path_FGREP_found && break 3
4925 done
4926 done
4927 done
4928 IFS=$as_save_IFS
4929 if test -z "$ac_cv_path_FGREP"; then
4930 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4931 fi
4932 else
4933 ac_cv_path_FGREP=$FGREP
4934 fi
4935
4936 fi
4937 fi
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4939 $as_echo "$ac_cv_path_FGREP" >&6; }
4940 FGREP="$ac_cv_path_FGREP"
4941
4942
4943 test -z "$GREP" && GREP=grep
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963 # Check whether --with-gnu-ld was given.
4964 if test "${with_gnu_ld+set}" = set; then :
4965 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4966 else
4967 with_gnu_ld=no
4968 fi
4969
4970 ac_prog=ld
4971 if test "$GCC" = yes; then
4972 # Check if gcc -print-prog-name=ld gives a path.
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4974 $as_echo_n "checking for ld used by $CC... " >&6; }
4975 case $host in
4976 *-*-mingw*)
4977 # gcc leaves a trailing carriage return which upsets mingw
4978 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4979 *)
4980 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4981 esac
4982 case $ac_prog in
4983 # Accept absolute paths.
4984 [\\/]* | ?:[\\/]*)
4985 re_direlt='/[^/][^/]*/\.\./'
4986 # Canonicalize the pathname of ld
4987 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4988 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4989 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4990 done
4991 test -z "$LD" && LD="$ac_prog"
4992 ;;
4993 "")
4994 # If it fails, then pretend we aren't using GCC.
4995 ac_prog=ld
4996 ;;
4997 *)
4998 # If it is relative, then search for the first ld in PATH.
4999 with_gnu_ld=unknown
5000 ;;
5001 esac
5002 elif test "$with_gnu_ld" = yes; then
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5004 $as_echo_n "checking for GNU ld... " >&6; }
5005 else
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5007 $as_echo_n "checking for non-GNU ld... " >&6; }
5008 fi
5009 if ${lt_cv_path_LD+:} false; then :
5010 $as_echo_n "(cached) " >&6
5011 else
5012 if test -z "$LD"; then
5013 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5014 for ac_dir in $PATH; do
5015 IFS="$lt_save_ifs"
5016 test -z "$ac_dir" && ac_dir=.
5017 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5018 lt_cv_path_LD="$ac_dir/$ac_prog"
5019 # Check to see if the program is GNU ld. I'd rather use --version,
5020 # but apparently some variants of GNU ld only accept -v.
5021 # Break only if it was the GNU/non-GNU ld that we prefer.
5022 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5023 *GNU* | *'with BFD'*)
5024 test "$with_gnu_ld" != no && break
5025 ;;
5026 *)
5027 test "$with_gnu_ld" != yes && break
5028 ;;
5029 esac
5030 fi
5031 done
5032 IFS="$lt_save_ifs"
5033 else
5034 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5035 fi
5036 fi
5037
5038 LD="$lt_cv_path_LD"
5039 if test -n "$LD"; then
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5041 $as_echo "$LD" >&6; }
5042 else
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5044 $as_echo "no" >&6; }
5045 fi
5046 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5048 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5049 if ${lt_cv_prog_gnu_ld+:} false; then :
5050 $as_echo_n "(cached) " >&6
5051 else
5052 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5053 case `$LD -v 2>&1 </dev/null` in
5054 *GNU* | *'with BFD'*)
5055 lt_cv_prog_gnu_ld=yes
5056 ;;
5057 *)
5058 lt_cv_prog_gnu_ld=no
5059 ;;
5060 esac
5061 fi
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5063 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5064 with_gnu_ld=$lt_cv_prog_gnu_ld
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5075 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5076 if ${lt_cv_path_NM+:} false; then :
5077 $as_echo_n "(cached) " >&6
5078 else
5079 if test -n "$NM"; then
5080 # Let the user override the test.
5081 lt_cv_path_NM="$NM"
5082 else
5083 lt_nm_to_check="${ac_tool_prefix}nm"
5084 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5085 lt_nm_to_check="$lt_nm_to_check nm"
5086 fi
5087 for lt_tmp_nm in $lt_nm_to_check; do
5088 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5089 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5090 IFS="$lt_save_ifs"
5091 test -z "$ac_dir" && ac_dir=.
5092 tmp_nm="$ac_dir/$lt_tmp_nm"
5093 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5094 # Check to see if the nm accepts a BSD-compat flag.
5095 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5096 # nm: unknown option "B" ignored
5097 # Tru64's nm complains that /dev/null is an invalid object file
5098 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5099 */dev/null* | *'Invalid file or object type'*)
5100 lt_cv_path_NM="$tmp_nm -B"
5101 break
5102 ;;
5103 *)
5104 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5105 */dev/null*)
5106 lt_cv_path_NM="$tmp_nm -p"
5107 break
5108 ;;
5109 *)
5110 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5111 continue # so that we can try to find one that supports BSD flags
5112 ;;
5113 esac
5114 ;;
5115 esac
5116 fi
5117 done
5118 IFS="$lt_save_ifs"
5119 done
5120 : ${lt_cv_path_NM=no}
5121 fi
5122 fi
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5124 $as_echo "$lt_cv_path_NM" >&6; }
5125 if test "$lt_cv_path_NM" != "no"; then
5126 NM="$lt_cv_path_NM"
5127 else
5128 # Didn't find any BSD compatible name lister, look for dumpbin.
5129 if test -n "$DUMPBIN"; then :
5130 # Let the user override the test.
5131 else
5132 if test -n "$ac_tool_prefix"; then
5133 for ac_prog in dumpbin "link -dump"
5134 do
5135 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5136 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5138 $as_echo_n "checking for $ac_word... " >&6; }
5139 if ${ac_cv_prog_DUMPBIN+:} false; then :
5140 $as_echo_n "(cached) " >&6
5141 else
5142 if test -n "$DUMPBIN"; then
5143 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5144 else
5145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146 for as_dir in $PATH
5147 do
5148 IFS=$as_save_IFS
5149 test -z "$as_dir" && as_dir=.
5150 for ac_exec_ext in '' $ac_executable_extensions; do
5151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5152 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5154 break 2
5155 fi
5156 done
5157 done
5158 IFS=$as_save_IFS
5159
5160 fi
5161 fi
5162 DUMPBIN=$ac_cv_prog_DUMPBIN
5163 if test -n "$DUMPBIN"; then
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5165 $as_echo "$DUMPBIN" >&6; }
5166 else
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5168 $as_echo "no" >&6; }
5169 fi
5170
5171
5172 test -n "$DUMPBIN" && break
5173 done
5174 fi
5175 if test -z "$DUMPBIN"; then
5176 ac_ct_DUMPBIN=$DUMPBIN
5177 for ac_prog in dumpbin "link -dump"
5178 do
5179 # Extract the first word of "$ac_prog", so it can be a program name with args.
5180 set dummy $ac_prog; ac_word=$2
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5182 $as_echo_n "checking for $ac_word... " >&6; }
5183 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5184 $as_echo_n "(cached) " >&6
5185 else
5186 if test -n "$ac_ct_DUMPBIN"; then
5187 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5188 else
5189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190 for as_dir in $PATH
5191 do
5192 IFS=$as_save_IFS
5193 test -z "$as_dir" && as_dir=.
5194 for ac_exec_ext in '' $ac_executable_extensions; do
5195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5196 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5198 break 2
5199 fi
5200 done
5201 done
5202 IFS=$as_save_IFS
5203
5204 fi
5205 fi
5206 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5207 if test -n "$ac_ct_DUMPBIN"; then
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5209 $as_echo "$ac_ct_DUMPBIN" >&6; }
5210 else
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5212 $as_echo "no" >&6; }
5213 fi
5214
5215
5216 test -n "$ac_ct_DUMPBIN" && break
5217 done
5218
5219 if test "x$ac_ct_DUMPBIN" = x; then
5220 DUMPBIN=":"
5221 else
5222 case $cross_compiling:$ac_tool_warned in
5223 yes:)
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5226 ac_tool_warned=yes ;;
5227 esac
5228 DUMPBIN=$ac_ct_DUMPBIN
5229 fi
5230 fi
5231
5232 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5233 *COFF*)
5234 DUMPBIN="$DUMPBIN -symbols"
5235 ;;
5236 *)
5237 DUMPBIN=:
5238 ;;
5239 esac
5240 fi
5241
5242 if test "$DUMPBIN" != ":"; then
5243 NM="$DUMPBIN"
5244 fi
5245 fi
5246 test -z "$NM" && NM=nm
5247
5248
5249
5250
5251
5252
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5254 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5255 if ${lt_cv_nm_interface+:} false; then :
5256 $as_echo_n "(cached) " >&6
5257 else
5258 lt_cv_nm_interface="BSD nm"
5259 echo "int some_variable = 0;" > conftest.$ac_ext
5260 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5261 (eval "$ac_compile" 2>conftest.err)
5262 cat conftest.err >&5
5263 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5264 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5265 cat conftest.err >&5
5266 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5267 cat conftest.out >&5
5268 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5269 lt_cv_nm_interface="MS dumpbin"
5270 fi
5271 rm -f conftest*
5272 fi
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5274 $as_echo "$lt_cv_nm_interface" >&6; }
5275
5276 # find the maximum length of command line arguments
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5278 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5279 if ${lt_cv_sys_max_cmd_len+:} false; then :
5280 $as_echo_n "(cached) " >&6
5281 else
5282 i=0
5283 teststring="ABCD"
5284
5285 case $build_os in
5286 msdosdjgpp*)
5287 # On DJGPP, this test can blow up pretty badly due to problems in libc
5288 # (any single argument exceeding 2000 bytes causes a buffer overrun
5289 # during glob expansion). Even if it were fixed, the result of this
5290 # check would be larger than it should be.
5291 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5292 ;;
5293
5294 gnu*)
5295 # Under GNU Hurd, this test is not required because there is
5296 # no limit to the length of command line arguments.
5297 # Libtool will interpret -1 as no limit whatsoever
5298 lt_cv_sys_max_cmd_len=-1;
5299 ;;
5300
5301 cygwin* | mingw* | cegcc*)
5302 # On Win9x/ME, this test blows up -- it succeeds, but takes
5303 # about 5 minutes as the teststring grows exponentially.
5304 # Worse, since 9x/ME are not pre-emptively multitasking,
5305 # you end up with a "frozen" computer, even though with patience
5306 # the test eventually succeeds (with a max line length of 256k).
5307 # Instead, let's just punt: use the minimum linelength reported by
5308 # all of the supported platforms: 8192 (on NT/2K/XP).
5309 lt_cv_sys_max_cmd_len=8192;
5310 ;;
5311
5312 mint*)
5313 # On MiNT this can take a long time and run out of memory.
5314 lt_cv_sys_max_cmd_len=8192;
5315 ;;
5316
5317 amigaos*)
5318 # On AmigaOS with pdksh, this test takes hours, literally.
5319 # So we just punt and use a minimum line length of 8192.
5320 lt_cv_sys_max_cmd_len=8192;
5321 ;;
5322
5323 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5324 # This has been around since 386BSD, at least. Likely further.
5325 if test -x /sbin/sysctl; then
5326 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5327 elif test -x /usr/sbin/sysctl; then
5328 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5329 else
5330 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5331 fi
5332 # And add a safety zone
5333 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5334 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5335 ;;
5336
5337 interix*)
5338 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5339 lt_cv_sys_max_cmd_len=196608
5340 ;;
5341
5342 os2*)
5343 # The test takes a long time on OS/2.
5344 lt_cv_sys_max_cmd_len=8192
5345 ;;
5346
5347 osf*)
5348 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5349 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5350 # nice to cause kernel panics so lets avoid the loop below.
5351 # First set a reasonable default.
5352 lt_cv_sys_max_cmd_len=16384
5353 #
5354 if test -x /sbin/sysconfig; then
5355 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5356 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5357 esac
5358 fi
5359 ;;
5360 sco3.2v5*)
5361 lt_cv_sys_max_cmd_len=102400
5362 ;;
5363 sysv5* | sco5v6* | sysv4.2uw2*)
5364 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5365 if test -n "$kargmax"; then
5366 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5367 else
5368 lt_cv_sys_max_cmd_len=32768
5369 fi
5370 ;;
5371 *)
5372 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5373 if test -n "$lt_cv_sys_max_cmd_len"; then
5374 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5375 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5376 else
5377 # Make teststring a little bigger before we do anything with it.
5378 # a 1K string should be a reasonable start.
5379 for i in 1 2 3 4 5 6 7 8 ; do
5380 teststring=$teststring$teststring
5381 done
5382 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5383 # If test is not a shell built-in, we'll probably end up computing a
5384 # maximum length that is only half of the actual maximum length, but
5385 # we can't tell.
5386 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5387 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5388 test $i != 17 # 1/2 MB should be enough
5389 do
5390 i=`expr $i + 1`
5391 teststring=$teststring$teststring
5392 done
5393 # Only check the string length outside the loop.
5394 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5395 teststring=
5396 # Add a significant safety factor because C++ compilers can tack on
5397 # massive amounts of additional arguments before passing them to the
5398 # linker. It appears as though 1/2 is a usable value.
5399 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5400 fi
5401 ;;
5402 esac
5403
5404 fi
5405
5406 if test -n $lt_cv_sys_max_cmd_len ; then
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5408 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5409 else
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5411 $as_echo "none" >&6; }
5412 fi
5413 max_cmd_len=$lt_cv_sys_max_cmd_len
5414
5415
5416
5417
5418
5419
5420 : ${CP="cp -f"}
5421 : ${MV="mv -f"}
5422 : ${RM="rm -f"}
5423
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5425 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5426 # Try some XSI features
5427 xsi_shell=no
5428 ( _lt_dummy="a/b/c"
5429 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5430 = c,a/b,b/c, \
5431 && eval 'test $(( 1 + 1 )) -eq 2 \
5432 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5433 && xsi_shell=yes
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5435 $as_echo "$xsi_shell" >&6; }
5436
5437
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5439 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5440 lt_shell_append=no
5441 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5442 >/dev/null 2>&1 \
5443 && lt_shell_append=yes
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5445 $as_echo "$lt_shell_append" >&6; }
5446
5447
5448 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5449 lt_unset=unset
5450 else
5451 lt_unset=false
5452 fi
5453
5454
5455
5456
5457
5458 # test EBCDIC or ASCII
5459 case `echo X|tr X '\101'` in
5460 A) # ASCII based system
5461 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5462 lt_SP2NL='tr \040 \012'
5463 lt_NL2SP='tr \015\012 \040\040'
5464 ;;
5465 *) # EBCDIC based system
5466 lt_SP2NL='tr \100 \n'
5467 lt_NL2SP='tr \r\n \100\100'
5468 ;;
5469 esac
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5480 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5481 if ${lt_cv_to_host_file_cmd+:} false; then :
5482 $as_echo_n "(cached) " >&6
5483 else
5484 case $host in
5485 *-*-mingw* )
5486 case $build in
5487 *-*-mingw* ) # actually msys
5488 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5489 ;;
5490 *-*-cygwin* )
5491 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5492 ;;
5493 * ) # otherwise, assume *nix
5494 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5495 ;;
5496 esac
5497 ;;
5498 *-*-cygwin* )
5499 case $build in
5500 *-*-mingw* ) # actually msys
5501 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5502 ;;
5503 *-*-cygwin* )
5504 lt_cv_to_host_file_cmd=func_convert_file_noop
5505 ;;
5506 * ) # otherwise, assume *nix
5507 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5508 ;;
5509 esac
5510 ;;
5511 * ) # unhandled hosts (and "normal" native builds)
5512 lt_cv_to_host_file_cmd=func_convert_file_noop
5513 ;;
5514 esac
5515
5516 fi
5517
5518 to_host_file_cmd=$lt_cv_to_host_file_cmd
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5520 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5521
5522
5523
5524
5525
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5527 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5528 if ${lt_cv_to_tool_file_cmd+:} false; then :
5529 $as_echo_n "(cached) " >&6
5530 else
5531 #assume ordinary cross tools, or native build.
5532 lt_cv_to_tool_file_cmd=func_convert_file_noop
5533 case $host in
5534 *-*-mingw* )
5535 case $build in
5536 *-*-mingw* ) # actually msys
5537 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5538 ;;
5539 esac
5540 ;;
5541 esac
5542
5543 fi
5544
5545 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5547 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5548
5549
5550
5551
5552
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5554 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5555 if ${lt_cv_ld_reload_flag+:} false; then :
5556 $as_echo_n "(cached) " >&6
5557 else
5558 lt_cv_ld_reload_flag='-r'
5559 fi
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5561 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5562 reload_flag=$lt_cv_ld_reload_flag
5563 case $reload_flag in
5564 "" | " "*) ;;
5565 *) reload_flag=" $reload_flag" ;;
5566 esac
5567 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5568 case $host_os in
5569 cygwin* | mingw* | pw32* | cegcc*)
5570 if test "$GCC" != yes; then
5571 reload_cmds=false
5572 fi
5573 ;;
5574 darwin*)
5575 if test "$GCC" = yes; then
5576 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5577 else
5578 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5579 fi
5580 ;;
5581 esac
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591 if test -n "$ac_tool_prefix"; then
5592 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5593 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5595 $as_echo_n "checking for $ac_word... " >&6; }
5596 if ${ac_cv_prog_OBJDUMP+:} false; then :
5597 $as_echo_n "(cached) " >&6
5598 else
5599 if test -n "$OBJDUMP"; then
5600 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5601 else
5602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5603 for as_dir in $PATH
5604 do
5605 IFS=$as_save_IFS
5606 test -z "$as_dir" && as_dir=.
5607 for ac_exec_ext in '' $ac_executable_extensions; do
5608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5609 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5611 break 2
5612 fi
5613 done
5614 done
5615 IFS=$as_save_IFS
5616
5617 fi
5618 fi
5619 OBJDUMP=$ac_cv_prog_OBJDUMP
5620 if test -n "$OBJDUMP"; then
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5622 $as_echo "$OBJDUMP" >&6; }
5623 else
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5625 $as_echo "no" >&6; }
5626 fi
5627
5628
5629 fi
5630 if test -z "$ac_cv_prog_OBJDUMP"; then
5631 ac_ct_OBJDUMP=$OBJDUMP
5632 # Extract the first word of "objdump", so it can be a program name with args.
5633 set dummy objdump; ac_word=$2
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5635 $as_echo_n "checking for $ac_word... " >&6; }
5636 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5637 $as_echo_n "(cached) " >&6
5638 else
5639 if test -n "$ac_ct_OBJDUMP"; then
5640 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5641 else
5642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5643 for as_dir in $PATH
5644 do
5645 IFS=$as_save_IFS
5646 test -z "$as_dir" && as_dir=.
5647 for ac_exec_ext in '' $ac_executable_extensions; do
5648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5649 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5651 break 2
5652 fi
5653 done
5654 done
5655 IFS=$as_save_IFS
5656
5657 fi
5658 fi
5659 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5660 if test -n "$ac_ct_OBJDUMP"; then
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5662 $as_echo "$ac_ct_OBJDUMP" >&6; }
5663 else
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5665 $as_echo "no" >&6; }
5666 fi
5667
5668 if test "x$ac_ct_OBJDUMP" = x; then
5669 OBJDUMP="false"
5670 else
5671 case $cross_compiling:$ac_tool_warned in
5672 yes:)
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5674 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5675 ac_tool_warned=yes ;;
5676 esac
5677 OBJDUMP=$ac_ct_OBJDUMP
5678 fi
5679 else
5680 OBJDUMP="$ac_cv_prog_OBJDUMP"
5681 fi
5682
5683 test -z "$OBJDUMP" && OBJDUMP=objdump
5684
5685
5686
5687
5688
5689
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5691 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5692 if ${lt_cv_deplibs_check_method+:} false; then :
5693 $as_echo_n "(cached) " >&6
5694 else
5695 lt_cv_file_magic_cmd='$MAGIC_CMD'
5696 lt_cv_file_magic_test_file=
5697 lt_cv_deplibs_check_method='unknown'
5698 # Need to set the preceding variable on all platforms that support
5699 # interlibrary dependencies.
5700 # 'none' -- dependencies not supported.
5701 # `unknown' -- same as none, but documents that we really don't know.
5702 # 'pass_all' -- all dependencies passed with no checks.
5703 # 'test_compile' -- check by making test program.
5704 # 'file_magic [[regex]]' -- check by looking for files in library path
5705 # which responds to the $file_magic_cmd with a given extended regex.
5706 # If you have `file' or equivalent on your system and you're not sure
5707 # whether `pass_all' will *always* work, you probably want this one.
5708
5709 case $host_os in
5710 aix[4-9]*)
5711 lt_cv_deplibs_check_method=pass_all
5712 ;;
5713
5714 beos*)
5715 lt_cv_deplibs_check_method=pass_all
5716 ;;
5717
5718 bsdi[45]*)
5719 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5720 lt_cv_file_magic_cmd='/usr/bin/file -L'
5721 lt_cv_file_magic_test_file=/shlib/libc.so
5722 ;;
5723
5724 cygwin*)
5725 # func_win32_libid is a shell function defined in ltmain.sh
5726 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5727 lt_cv_file_magic_cmd='func_win32_libid'
5728 ;;
5729
5730 mingw* | pw32*)
5731 # Base MSYS/MinGW do not provide the 'file' command needed by
5732 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5733 # unless we find 'file', for example because we are cross-compiling.
5734 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5735 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5736 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5737 lt_cv_file_magic_cmd='func_win32_libid'
5738 else
5739 # Keep this pattern in sync with the one in func_win32_libid.
5740 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5741 lt_cv_file_magic_cmd='$OBJDUMP -f'
5742 fi
5743 ;;
5744
5745 cegcc*)
5746 # use the weaker test based on 'objdump'. See mingw*.
5747 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5748 lt_cv_file_magic_cmd='$OBJDUMP -f'
5749 ;;
5750
5751 darwin* | rhapsody*)
5752 lt_cv_deplibs_check_method=pass_all
5753 ;;
5754
5755 freebsd* | dragonfly*)
5756 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5757 case $host_cpu in
5758 i*86 )
5759 # Not sure whether the presence of OpenBSD here was a mistake.
5760 # Let's accept both of them until this is cleared up.
5761 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5762 lt_cv_file_magic_cmd=/usr/bin/file
5763 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5764 ;;
5765 esac
5766 else
5767 lt_cv_deplibs_check_method=pass_all
5768 fi
5769 ;;
5770
5771 gnu*)
5772 lt_cv_deplibs_check_method=pass_all
5773 ;;
5774
5775 haiku*)
5776 lt_cv_deplibs_check_method=pass_all
5777 ;;
5778
5779 hpux10.20* | hpux11*)
5780 lt_cv_file_magic_cmd=/usr/bin/file
5781 case $host_cpu in
5782 ia64*)
5783 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5784 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5785 ;;
5786 hppa*64*)
5787 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]'
5788 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5789 ;;
5790 *)
5791 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5792 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5793 ;;
5794 esac
5795 ;;
5796
5797 interix[3-9]*)
5798 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5799 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5800 ;;
5801
5802 irix5* | irix6* | nonstopux*)
5803 case $LD in
5804 *-32|*"-32 ") libmagic=32-bit;;
5805 *-n32|*"-n32 ") libmagic=N32;;
5806 *-64|*"-64 ") libmagic=64-bit;;
5807 *) libmagic=never-match;;
5808 esac
5809 lt_cv_deplibs_check_method=pass_all
5810 ;;
5811
5812 # This must be glibc/ELF.
5813 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5814 lt_cv_deplibs_check_method=pass_all
5815 ;;
5816
5817 netbsd* | netbsdelf*-gnu)
5818 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5819 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5820 else
5821 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5822 fi
5823 ;;
5824
5825 newos6*)
5826 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5827 lt_cv_file_magic_cmd=/usr/bin/file
5828 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5829 ;;
5830
5831 *nto* | *qnx*)
5832 lt_cv_deplibs_check_method=pass_all
5833 ;;
5834
5835 openbsd*)
5836 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5837 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5838 else
5839 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5840 fi
5841 ;;
5842
5843 osf3* | osf4* | osf5*)
5844 lt_cv_deplibs_check_method=pass_all
5845 ;;
5846
5847 rdos*)
5848 lt_cv_deplibs_check_method=pass_all
5849 ;;
5850
5851 solaris*)
5852 lt_cv_deplibs_check_method=pass_all
5853 ;;
5854
5855 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5856 lt_cv_deplibs_check_method=pass_all
5857 ;;
5858
5859 sysv4 | sysv4.3*)
5860 case $host_vendor in
5861 motorola)
5862 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]'
5863 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5864 ;;
5865 ncr)
5866 lt_cv_deplibs_check_method=pass_all
5867 ;;
5868 sequent)
5869 lt_cv_file_magic_cmd='/bin/file'
5870 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5871 ;;
5872 sni)
5873 lt_cv_file_magic_cmd='/bin/file'
5874 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5875 lt_cv_file_magic_test_file=/lib/libc.so
5876 ;;
5877 siemens)
5878 lt_cv_deplibs_check_method=pass_all
5879 ;;
5880 pc)
5881 lt_cv_deplibs_check_method=pass_all
5882 ;;
5883 esac
5884 ;;
5885
5886 tpf*)
5887 lt_cv_deplibs_check_method=pass_all
5888 ;;
5889 esac
5890
5891 fi
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5893 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5894
5895 file_magic_glob=
5896 want_nocaseglob=no
5897 if test "$build" = "$host"; then
5898 case $host_os in
5899 mingw* | pw32*)
5900 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5901 want_nocaseglob=yes
5902 else
5903 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5904 fi
5905 ;;
5906 esac
5907 fi
5908
5909 file_magic_cmd=$lt_cv_file_magic_cmd
5910 deplibs_check_method=$lt_cv_deplibs_check_method
5911 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934 if test -n "$ac_tool_prefix"; then
5935 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5936 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5938 $as_echo_n "checking for $ac_word... " >&6; }
5939 if ${ac_cv_prog_DLLTOOL+:} false; then :
5940 $as_echo_n "(cached) " >&6
5941 else
5942 if test -n "$DLLTOOL"; then
5943 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5944 else
5945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5946 for as_dir in $PATH
5947 do
5948 IFS=$as_save_IFS
5949 test -z "$as_dir" && as_dir=.
5950 for ac_exec_ext in '' $ac_executable_extensions; do
5951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5952 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5954 break 2
5955 fi
5956 done
5957 done
5958 IFS=$as_save_IFS
5959
5960 fi
5961 fi
5962 DLLTOOL=$ac_cv_prog_DLLTOOL
5963 if test -n "$DLLTOOL"; then
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5965 $as_echo "$DLLTOOL" >&6; }
5966 else
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5968 $as_echo "no" >&6; }
5969 fi
5970
5971
5972 fi
5973 if test -z "$ac_cv_prog_DLLTOOL"; then
5974 ac_ct_DLLTOOL=$DLLTOOL
5975 # Extract the first word of "dlltool", so it can be a program name with args.
5976 set dummy dlltool; ac_word=$2
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5978 $as_echo_n "checking for $ac_word... " >&6; }
5979 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5980 $as_echo_n "(cached) " >&6
5981 else
5982 if test -n "$ac_ct_DLLTOOL"; then
5983 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5984 else
5985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5986 for as_dir in $PATH
5987 do
5988 IFS=$as_save_IFS
5989 test -z "$as_dir" && as_dir=.
5990 for ac_exec_ext in '' $ac_executable_extensions; do
5991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5992 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5994 break 2
5995 fi
5996 done
5997 done
5998 IFS=$as_save_IFS
5999
6000 fi
6001 fi
6002 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6003 if test -n "$ac_ct_DLLTOOL"; then
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6005 $as_echo "$ac_ct_DLLTOOL" >&6; }
6006 else
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6008 $as_echo "no" >&6; }
6009 fi
6010
6011 if test "x$ac_ct_DLLTOOL" = x; then
6012 DLLTOOL="false"
6013 else
6014 case $cross_compiling:$ac_tool_warned in
6015 yes:)
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6017 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6018 ac_tool_warned=yes ;;
6019 esac
6020 DLLTOOL=$ac_ct_DLLTOOL
6021 fi
6022 else
6023 DLLTOOL="$ac_cv_prog_DLLTOOL"
6024 fi
6025
6026 test -z "$DLLTOOL" && DLLTOOL=dlltool
6027
6028
6029
6030
6031
6032
6033
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6035 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6036 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6037 $as_echo_n "(cached) " >&6
6038 else
6039 lt_cv_sharedlib_from_linklib_cmd='unknown'
6040
6041 case $host_os in
6042 cygwin* | mingw* | pw32* | cegcc*)
6043 # two different shell functions defined in ltmain.sh
6044 # decide which to use based on capabilities of $DLLTOOL
6045 case `$DLLTOOL --help 2>&1` in
6046 *--identify-strict*)
6047 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6048 ;;
6049 *)
6050 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6051 ;;
6052 esac
6053 ;;
6054 *)
6055 # fallback: assume linklib IS sharedlib
6056 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6057 ;;
6058 esac
6059
6060 fi
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6062 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6063 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6064 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6065
6066
6067
6068
6069
6070
6071
6072
6073 if test -n "$ac_tool_prefix"; then
6074 for ac_prog in ar
6075 do
6076 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6077 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6079 $as_echo_n "checking for $ac_word... " >&6; }
6080 if ${ac_cv_prog_AR+:} false; then :
6081 $as_echo_n "(cached) " >&6
6082 else
6083 if test -n "$AR"; then
6084 ac_cv_prog_AR="$AR" # Let the user override the test.
6085 else
6086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6087 for as_dir in $PATH
6088 do
6089 IFS=$as_save_IFS
6090 test -z "$as_dir" && as_dir=.
6091 for ac_exec_ext in '' $ac_executable_extensions; do
6092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6093 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6095 break 2
6096 fi
6097 done
6098 done
6099 IFS=$as_save_IFS
6100
6101 fi
6102 fi
6103 AR=$ac_cv_prog_AR
6104 if test -n "$AR"; then
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6106 $as_echo "$AR" >&6; }
6107 else
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6109 $as_echo "no" >&6; }
6110 fi
6111
6112
6113 test -n "$AR" && break
6114 done
6115 fi
6116 if test -z "$AR"; then
6117 ac_ct_AR=$AR
6118 for ac_prog in ar
6119 do
6120 # Extract the first word of "$ac_prog", so it can be a program name with args.
6121 set dummy $ac_prog; ac_word=$2
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6123 $as_echo_n "checking for $ac_word... " >&6; }
6124 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6125 $as_echo_n "(cached) " >&6
6126 else
6127 if test -n "$ac_ct_AR"; then
6128 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6129 else
6130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6131 for as_dir in $PATH
6132 do
6133 IFS=$as_save_IFS
6134 test -z "$as_dir" && as_dir=.
6135 for ac_exec_ext in '' $ac_executable_extensions; do
6136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6137 ac_cv_prog_ac_ct_AR="$ac_prog"
6138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6139 break 2
6140 fi
6141 done
6142 done
6143 IFS=$as_save_IFS
6144
6145 fi
6146 fi
6147 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6148 if test -n "$ac_ct_AR"; then
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6150 $as_echo "$ac_ct_AR" >&6; }
6151 else
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6153 $as_echo "no" >&6; }
6154 fi
6155
6156
6157 test -n "$ac_ct_AR" && break
6158 done
6159
6160 if test "x$ac_ct_AR" = x; then
6161 AR="false"
6162 else
6163 case $cross_compiling:$ac_tool_warned in
6164 yes:)
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6167 ac_tool_warned=yes ;;
6168 esac
6169 AR=$ac_ct_AR
6170 fi
6171 fi
6172
6173 : ${AR=ar}
6174 : ${AR_FLAGS=cru}
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6187 $as_echo_n "checking for archiver @FILE support... " >&6; }
6188 if ${lt_cv_ar_at_file+:} false; then :
6189 $as_echo_n "(cached) " >&6
6190 else
6191 lt_cv_ar_at_file=no
6192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6193 /* end confdefs.h. */
6194
6195 int
6196 main ()
6197 {
6198
6199 ;
6200 return 0;
6201 }
6202 _ACEOF
6203 if ac_fn_c_try_compile "$LINENO"; then :
6204 echo conftest.$ac_objext > conftest.lst
6205 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6206 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6207 (eval $lt_ar_try) 2>&5
6208 ac_status=$?
6209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6210 test $ac_status = 0; }
6211 if test "$ac_status" -eq 0; then
6212 # Ensure the archiver fails upon bogus file names.
6213 rm -f conftest.$ac_objext libconftest.a
6214 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6215 (eval $lt_ar_try) 2>&5
6216 ac_status=$?
6217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6218 test $ac_status = 0; }
6219 if test "$ac_status" -ne 0; then
6220 lt_cv_ar_at_file=@
6221 fi
6222 fi
6223 rm -f conftest.* libconftest.a
6224
6225 fi
6226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6227
6228 fi
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6230 $as_echo "$lt_cv_ar_at_file" >&6; }
6231
6232 if test "x$lt_cv_ar_at_file" = xno; then
6233 archiver_list_spec=
6234 else
6235 archiver_list_spec=$lt_cv_ar_at_file
6236 fi
6237
6238
6239
6240
6241
6242
6243
6244 if test -n "$ac_tool_prefix"; then
6245 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6246 set dummy ${ac_tool_prefix}strip; ac_word=$2
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6248 $as_echo_n "checking for $ac_word... " >&6; }
6249 if ${ac_cv_prog_STRIP+:} false; then :
6250 $as_echo_n "(cached) " >&6
6251 else
6252 if test -n "$STRIP"; then
6253 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6254 else
6255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256 for as_dir in $PATH
6257 do
6258 IFS=$as_save_IFS
6259 test -z "$as_dir" && as_dir=.
6260 for ac_exec_ext in '' $ac_executable_extensions; do
6261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6262 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6264 break 2
6265 fi
6266 done
6267 done
6268 IFS=$as_save_IFS
6269
6270 fi
6271 fi
6272 STRIP=$ac_cv_prog_STRIP
6273 if test -n "$STRIP"; then
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6275 $as_echo "$STRIP" >&6; }
6276 else
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6278 $as_echo "no" >&6; }
6279 fi
6280
6281
6282 fi
6283 if test -z "$ac_cv_prog_STRIP"; then
6284 ac_ct_STRIP=$STRIP
6285 # Extract the first word of "strip", so it can be a program name with args.
6286 set dummy strip; ac_word=$2
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6288 $as_echo_n "checking for $ac_word... " >&6; }
6289 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6290 $as_echo_n "(cached) " >&6
6291 else
6292 if test -n "$ac_ct_STRIP"; then
6293 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6294 else
6295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296 for as_dir in $PATH
6297 do
6298 IFS=$as_save_IFS
6299 test -z "$as_dir" && as_dir=.
6300 for ac_exec_ext in '' $ac_executable_extensions; do
6301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6302 ac_cv_prog_ac_ct_STRIP="strip"
6303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6304 break 2
6305 fi
6306 done
6307 done
6308 IFS=$as_save_IFS
6309
6310 fi
6311 fi
6312 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6313 if test -n "$ac_ct_STRIP"; then
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6315 $as_echo "$ac_ct_STRIP" >&6; }
6316 else
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6318 $as_echo "no" >&6; }
6319 fi
6320
6321 if test "x$ac_ct_STRIP" = x; then
6322 STRIP=":"
6323 else
6324 case $cross_compiling:$ac_tool_warned in
6325 yes:)
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6328 ac_tool_warned=yes ;;
6329 esac
6330 STRIP=$ac_ct_STRIP
6331 fi
6332 else
6333 STRIP="$ac_cv_prog_STRIP"
6334 fi
6335
6336 test -z "$STRIP" && STRIP=:
6337
6338
6339
6340
6341
6342
6343 if test -n "$ac_tool_prefix"; then
6344 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6345 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6347 $as_echo_n "checking for $ac_word... " >&6; }
6348 if ${ac_cv_prog_RANLIB+:} false; then :
6349 $as_echo_n "(cached) " >&6
6350 else
6351 if test -n "$RANLIB"; then
6352 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6353 else
6354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355 for as_dir in $PATH
6356 do
6357 IFS=$as_save_IFS
6358 test -z "$as_dir" && as_dir=.
6359 for ac_exec_ext in '' $ac_executable_extensions; do
6360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6361 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6363 break 2
6364 fi
6365 done
6366 done
6367 IFS=$as_save_IFS
6368
6369 fi
6370 fi
6371 RANLIB=$ac_cv_prog_RANLIB
6372 if test -n "$RANLIB"; then
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6374 $as_echo "$RANLIB" >&6; }
6375 else
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6377 $as_echo "no" >&6; }
6378 fi
6379
6380
6381 fi
6382 if test -z "$ac_cv_prog_RANLIB"; then
6383 ac_ct_RANLIB=$RANLIB
6384 # Extract the first word of "ranlib", so it can be a program name with args.
6385 set dummy ranlib; ac_word=$2
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6387 $as_echo_n "checking for $ac_word... " >&6; }
6388 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6389 $as_echo_n "(cached) " >&6
6390 else
6391 if test -n "$ac_ct_RANLIB"; then
6392 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6393 else
6394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395 for as_dir in $PATH
6396 do
6397 IFS=$as_save_IFS
6398 test -z "$as_dir" && as_dir=.
6399 for ac_exec_ext in '' $ac_executable_extensions; do
6400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6401 ac_cv_prog_ac_ct_RANLIB="ranlib"
6402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6403 break 2
6404 fi
6405 done
6406 done
6407 IFS=$as_save_IFS
6408
6409 fi
6410 fi
6411 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6412 if test -n "$ac_ct_RANLIB"; then
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6414 $as_echo "$ac_ct_RANLIB" >&6; }
6415 else
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6417 $as_echo "no" >&6; }
6418 fi
6419
6420 if test "x$ac_ct_RANLIB" = x; then
6421 RANLIB=":"
6422 else
6423 case $cross_compiling:$ac_tool_warned in
6424 yes:)
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6427 ac_tool_warned=yes ;;
6428 esac
6429 RANLIB=$ac_ct_RANLIB
6430 fi
6431 else
6432 RANLIB="$ac_cv_prog_RANLIB"
6433 fi
6434
6435 test -z "$RANLIB" && RANLIB=:
6436
6437
6438
6439
6440
6441
6442 # Determine commands to create old-style static archives.
6443 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6444 old_postinstall_cmds='chmod 644 $oldlib'
6445 old_postuninstall_cmds=
6446
6447 if test -n "$RANLIB"; then
6448 case $host_os in
6449 openbsd*)
6450 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6451 ;;
6452 *)
6453 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6454 ;;
6455 esac
6456 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6457 fi
6458
6459 case $host_os in
6460 darwin*)
6461 lock_old_archive_extraction=yes ;;
6462 *)
6463 lock_old_archive_extraction=no ;;
6464 esac
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504 # If no C compiler was specified, use CC.
6505 LTCC=${LTCC-"$CC"}
6506
6507 # If no C compiler flags were specified, use CFLAGS.
6508 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6509
6510 # Allow CC to be a program name with arguments.
6511 compiler=$CC
6512
6513
6514 # Check for command to grab the raw symbol name followed by C symbol from nm.
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6516 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6517 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6518 $as_echo_n "(cached) " >&6
6519 else
6520
6521 # These are sane defaults that work on at least a few old systems.
6522 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6523
6524 # Character class describing NM global symbol codes.
6525 symcode='[BCDEGRST]'
6526
6527 # Regexp to match symbols that can be accessed directly from C.
6528 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6529
6530 # Define system-specific variables.
6531 case $host_os in
6532 aix*)
6533 symcode='[BCDT]'
6534 ;;
6535 cygwin* | mingw* | pw32* | cegcc*)
6536 symcode='[ABCDGISTW]'
6537 ;;
6538 hpux*)
6539 if test "$host_cpu" = ia64; then
6540 symcode='[ABCDEGRST]'
6541 fi
6542 ;;
6543 irix* | nonstopux*)
6544 symcode='[BCDEGRST]'
6545 ;;
6546 osf*)
6547 symcode='[BCDEGQRST]'
6548 ;;
6549 solaris*)
6550 symcode='[BDRT]'
6551 ;;
6552 sco3.2v5*)
6553 symcode='[DT]'
6554 ;;
6555 sysv4.2uw2*)
6556 symcode='[DT]'
6557 ;;
6558 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6559 symcode='[ABDT]'
6560 ;;
6561 sysv4)
6562 symcode='[DFNSTU]'
6563 ;;
6564 esac
6565
6566 # If we're using GNU nm, then use its standard symbol codes.
6567 case `$NM -V 2>&1` in
6568 *GNU* | *'with BFD'*)
6569 symcode='[ABCDGIRSTW]' ;;
6570 esac
6571
6572 # Transform an extracted symbol line into a proper C declaration.
6573 # Some systems (esp. on ia64) link data and code symbols differently,
6574 # so use this general approach.
6575 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6576
6577 # Transform an extracted symbol line into symbol name and symbol address
6578 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6579 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'"
6580
6581 # Handle CRLF in mingw tool chain
6582 opt_cr=
6583 case $build_os in
6584 mingw*)
6585 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6586 ;;
6587 esac
6588
6589 # Try without a prefix underscore, then with it.
6590 for ac_symprfx in "" "_"; do
6591
6592 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6593 symxfrm="\\1 $ac_symprfx\\2 \\2"
6594
6595 # Write the raw and C identifiers.
6596 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6597 # Fake it for dumpbin and say T for any non-static function
6598 # and D for any global variable.
6599 # Also find C++ and __fastcall symbols from MSVC++,
6600 # which start with @ or ?.
6601 lt_cv_sys_global_symbol_pipe="$AWK '"\
6602 " {last_section=section; section=\$ 3};"\
6603 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6604 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6605 " \$ 0!~/External *\|/{next};"\
6606 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6607 " {if(hide[section]) next};"\
6608 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6609 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6610 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6611 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6612 " ' prfx=^$ac_symprfx"
6613 else
6614 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6615 fi
6616 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6617
6618 # Check to see that the pipe works correctly.
6619 pipe_works=no
6620
6621 rm -f conftest*
6622 cat > conftest.$ac_ext <<_LT_EOF
6623 #ifdef __cplusplus
6624 extern "C" {
6625 #endif
6626 char nm_test_var;
6627 void nm_test_func(void);
6628 void nm_test_func(void){}
6629 #ifdef __cplusplus
6630 }
6631 #endif
6632 int main(){nm_test_var='a';nm_test_func();return(0);}
6633 _LT_EOF
6634
6635 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6636 (eval $ac_compile) 2>&5
6637 ac_status=$?
6638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6639 test $ac_status = 0; }; then
6640 # Now try to grab the symbols.
6641 nlist=conftest.nm
6642 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6643 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6644 ac_status=$?
6645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6646 test $ac_status = 0; } && test -s "$nlist"; then
6647 # Try sorting and uniquifying the output.
6648 if sort "$nlist" | uniq > "$nlist"T; then
6649 mv -f "$nlist"T "$nlist"
6650 else
6651 rm -f "$nlist"T
6652 fi
6653
6654 # Make sure that we snagged all the symbols we need.
6655 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6656 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6657 cat <<_LT_EOF > conftest.$ac_ext
6658 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6659 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6660 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6661 relocations are performed -- see ld's documentation on pseudo-relocs. */
6662 # define LT_DLSYM_CONST
6663 #elif defined(__osf__)
6664 /* This system does not cope well with relocations in const data. */
6665 # define LT_DLSYM_CONST
6666 #else
6667 # define LT_DLSYM_CONST const
6668 #endif
6669
6670 #ifdef __cplusplus
6671 extern "C" {
6672 #endif
6673
6674 _LT_EOF
6675 # Now generate the symbol file.
6676 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6677
6678 cat <<_LT_EOF >> conftest.$ac_ext
6679
6680 /* The mapping between symbol names and symbols. */
6681 LT_DLSYM_CONST struct {
6682 const char *name;
6683 void *address;
6684 }
6685 lt__PROGRAM__LTX_preloaded_symbols[] =
6686 {
6687 { "@PROGRAM@", (void *) 0 },
6688 _LT_EOF
6689 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6690 cat <<\_LT_EOF >> conftest.$ac_ext
6691 {0, (void *) 0}
6692 };
6693
6694 /* This works around a problem in FreeBSD linker */
6695 #ifdef FREEBSD_WORKAROUND
6696 static const void *lt_preloaded_setup() {
6697 return lt__PROGRAM__LTX_preloaded_symbols;
6698 }
6699 #endif
6700
6701 #ifdef __cplusplus
6702 }
6703 #endif
6704 _LT_EOF
6705 # Now try linking the two files.
6706 mv conftest.$ac_objext conftstm.$ac_objext
6707 lt_globsym_save_LIBS=$LIBS
6708 lt_globsym_save_CFLAGS=$CFLAGS
6709 LIBS="conftstm.$ac_objext"
6710 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6711 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6712 (eval $ac_link) 2>&5
6713 ac_status=$?
6714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6715 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6716 pipe_works=yes
6717 fi
6718 LIBS=$lt_globsym_save_LIBS
6719 CFLAGS=$lt_globsym_save_CFLAGS
6720 else
6721 echo "cannot find nm_test_func in $nlist" >&5
6722 fi
6723 else
6724 echo "cannot find nm_test_var in $nlist" >&5
6725 fi
6726 else
6727 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6728 fi
6729 else
6730 echo "$progname: failed program was:" >&5
6731 cat conftest.$ac_ext >&5
6732 fi
6733 rm -rf conftest* conftst*
6734
6735 # Do not use the global_symbol_pipe unless it works.
6736 if test "$pipe_works" = yes; then
6737 break
6738 else
6739 lt_cv_sys_global_symbol_pipe=
6740 fi
6741 done
6742
6743 fi
6744
6745 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6746 lt_cv_sys_global_symbol_to_cdecl=
6747 fi
6748 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6750 $as_echo "failed" >&6; }
6751 else
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6753 $as_echo "ok" >&6; }
6754 fi
6755
6756 # Response file support.
6757 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6758 nm_file_list_spec='@'
6759 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6760 nm_file_list_spec='@'
6761 fi
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6790 $as_echo_n "checking for sysroot... " >&6; }
6791
6792 # Check whether --with-sysroot was given.
6793 if test "${with_sysroot+set}" = set; then :
6794 withval=$with_sysroot;
6795 else
6796 with_sysroot=no
6797 fi
6798
6799
6800 lt_sysroot=
6801 case ${with_sysroot} in #(
6802 yes)
6803 if test "$GCC" = yes; then
6804 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6805 fi
6806 ;; #(
6807 /*)
6808 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6809 ;; #(
6810 no|'')
6811 ;; #(
6812 *)
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6814 $as_echo "${with_sysroot}" >&6; }
6815 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6816 ;;
6817 esac
6818
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6820 $as_echo "${lt_sysroot:-no}" >&6; }
6821
6822
6823
6824
6825
6826 # Check whether --enable-libtool-lock was given.
6827 if test "${enable_libtool_lock+set}" = set; then :
6828 enableval=$enable_libtool_lock;
6829 fi
6830
6831 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6832
6833 # Some flags need to be propagated to the compiler or linker for good
6834 # libtool support.
6835 case $host in
6836 ia64-*-hpux*)
6837 # Find out which ABI we are using.
6838 echo 'int i;' > conftest.$ac_ext
6839 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6840 (eval $ac_compile) 2>&5
6841 ac_status=$?
6842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6843 test $ac_status = 0; }; then
6844 case `/usr/bin/file conftest.$ac_objext` in
6845 *ELF-32*)
6846 HPUX_IA64_MODE="32"
6847 ;;
6848 *ELF-64*)
6849 HPUX_IA64_MODE="64"
6850 ;;
6851 esac
6852 fi
6853 rm -rf conftest*
6854 ;;
6855 *-*-irix6*)
6856 # Find out which ABI we are using.
6857 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6858 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6859 (eval $ac_compile) 2>&5
6860 ac_status=$?
6861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6862 test $ac_status = 0; }; then
6863 if test "$lt_cv_prog_gnu_ld" = yes; then
6864 case `/usr/bin/file conftest.$ac_objext` in
6865 *32-bit*)
6866 LD="${LD-ld} -melf32bsmip"
6867 ;;
6868 *N32*)
6869 LD="${LD-ld} -melf32bmipn32"
6870 ;;
6871 *64-bit*)
6872 LD="${LD-ld} -melf64bmip"
6873 ;;
6874 esac
6875 else
6876 case `/usr/bin/file conftest.$ac_objext` in
6877 *32-bit*)
6878 LD="${LD-ld} -32"
6879 ;;
6880 *N32*)
6881 LD="${LD-ld} -n32"
6882 ;;
6883 *64-bit*)
6884 LD="${LD-ld} -64"
6885 ;;
6886 esac
6887 fi
6888 fi
6889 rm -rf conftest*
6890 ;;
6891
6892 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6893 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6894 # Find out which ABI we are using.
6895 echo 'int i;' > conftest.$ac_ext
6896 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6897 (eval $ac_compile) 2>&5
6898 ac_status=$?
6899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6900 test $ac_status = 0; }; then
6901 case `/usr/bin/file conftest.o` in
6902 *32-bit*)
6903 case $host in
6904 x86_64-*kfreebsd*-gnu)
6905 LD="${LD-ld} -m elf_i386_fbsd"
6906 ;;
6907 x86_64-*linux*)
6908 LD="${LD-ld} -m elf_i386"
6909 ;;
6910 ppc64-*linux*|powerpc64-*linux*)
6911 LD="${LD-ld} -m elf32ppclinux"
6912 ;;
6913 s390x-*linux*)
6914 LD="${LD-ld} -m elf_s390"
6915 ;;
6916 sparc64-*linux*)
6917 LD="${LD-ld} -m elf32_sparc"
6918 ;;
6919 esac
6920 ;;
6921 *64-bit*)
6922 case $host in
6923 x86_64-*kfreebsd*-gnu)
6924 LD="${LD-ld} -m elf_x86_64_fbsd"
6925 ;;
6926 x86_64-*linux*)
6927 LD="${LD-ld} -m elf_x86_64"
6928 ;;
6929 ppc*-*linux*|powerpc*-*linux*)
6930 LD="${LD-ld} -m elf64ppc"
6931 ;;
6932 s390*-*linux*|s390*-*tpf*)
6933 LD="${LD-ld} -m elf64_s390"
6934 ;;
6935 sparc*-*linux*)
6936 LD="${LD-ld} -m elf64_sparc"
6937 ;;
6938 esac
6939 ;;
6940 esac
6941 fi
6942 rm -rf conftest*
6943 ;;
6944
6945 *-*-sco3.2v5*)
6946 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6947 SAVE_CFLAGS="$CFLAGS"
6948 CFLAGS="$CFLAGS -belf"
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6950 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6951 if ${lt_cv_cc_needs_belf+:} false; then :
6952 $as_echo_n "(cached) " >&6
6953 else
6954 ac_ext=c
6955 ac_cpp='$CPP $CPPFLAGS'
6956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6959
6960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6961 /* end confdefs.h. */
6962
6963 int
6964 main ()
6965 {
6966
6967 ;
6968 return 0;
6969 }
6970 _ACEOF
6971 if ac_fn_c_try_link "$LINENO"; then :
6972 lt_cv_cc_needs_belf=yes
6973 else
6974 lt_cv_cc_needs_belf=no
6975 fi
6976 rm -f core conftest.err conftest.$ac_objext \
6977 conftest$ac_exeext conftest.$ac_ext
6978 ac_ext=c
6979 ac_cpp='$CPP $CPPFLAGS'
6980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6983
6984 fi
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6986 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6987 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6988 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6989 CFLAGS="$SAVE_CFLAGS"
6990 fi
6991 ;;
6992 *-*solaris*)
6993 # Find out which ABI we are using.
6994 echo 'int i;' > conftest.$ac_ext
6995 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6996 (eval $ac_compile) 2>&5
6997 ac_status=$?
6998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6999 test $ac_status = 0; }; then
7000 case `/usr/bin/file conftest.o` in
7001 *64-bit*)
7002 case $lt_cv_prog_gnu_ld in
7003 yes*)
7004 case $host in
7005 i?86-*-solaris*)
7006 LD="${LD-ld} -m elf_x86_64"
7007 ;;
7008 sparc*-*-solaris*)
7009 LD="${LD-ld} -m elf64_sparc"
7010 ;;
7011 esac
7012 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7013 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7014 LD="${LD-ld}_sol2"
7015 fi
7016 ;;
7017 *)
7018 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7019 LD="${LD-ld} -64"
7020 fi
7021 ;;
7022 esac
7023 ;;
7024 esac
7025 fi
7026 rm -rf conftest*
7027 ;;
7028 esac
7029
7030 need_locks="$enable_libtool_lock"
7031
7032 if test -n "$ac_tool_prefix"; then
7033 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7034 set dummy ${ac_tool_prefix}mt; ac_word=$2
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7036 $as_echo_n "checking for $ac_word... " >&6; }
7037 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7038 $as_echo_n "(cached) " >&6
7039 else
7040 if test -n "$MANIFEST_TOOL"; then
7041 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7042 else
7043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044 for as_dir in $PATH
7045 do
7046 IFS=$as_save_IFS
7047 test -z "$as_dir" && as_dir=.
7048 for ac_exec_ext in '' $ac_executable_extensions; do
7049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7050 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7052 break 2
7053 fi
7054 done
7055 done
7056 IFS=$as_save_IFS
7057
7058 fi
7059 fi
7060 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7061 if test -n "$MANIFEST_TOOL"; then
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7063 $as_echo "$MANIFEST_TOOL" >&6; }
7064 else
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7066 $as_echo "no" >&6; }
7067 fi
7068
7069
7070 fi
7071 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7072 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7073 # Extract the first word of "mt", so it can be a program name with args.
7074 set dummy mt; ac_word=$2
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7076 $as_echo_n "checking for $ac_word... " >&6; }
7077 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7078 $as_echo_n "(cached) " >&6
7079 else
7080 if test -n "$ac_ct_MANIFEST_TOOL"; then
7081 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7082 else
7083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7084 for as_dir in $PATH
7085 do
7086 IFS=$as_save_IFS
7087 test -z "$as_dir" && as_dir=.
7088 for ac_exec_ext in '' $ac_executable_extensions; do
7089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7090 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7092 break 2
7093 fi
7094 done
7095 done
7096 IFS=$as_save_IFS
7097
7098 fi
7099 fi
7100 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7101 if test -n "$ac_ct_MANIFEST_TOOL"; then
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7103 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7104 else
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7106 $as_echo "no" >&6; }
7107 fi
7108
7109 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7110 MANIFEST_TOOL=":"
7111 else
7112 case $cross_compiling:$ac_tool_warned in
7113 yes:)
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7115 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7116 ac_tool_warned=yes ;;
7117 esac
7118 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7119 fi
7120 else
7121 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7122 fi
7123
7124 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7126 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7127 if ${lt_cv_path_mainfest_tool+:} false; then :
7128 $as_echo_n "(cached) " >&6
7129 else
7130 lt_cv_path_mainfest_tool=no
7131 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7132 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7133 cat conftest.err >&5
7134 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7135 lt_cv_path_mainfest_tool=yes
7136 fi
7137 rm -f conftest*
7138 fi
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7140 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7141 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7142 MANIFEST_TOOL=:
7143 fi
7144
7145
7146
7147
7148
7149
7150 case $host_os in
7151 rhapsody* | darwin*)
7152 if test -n "$ac_tool_prefix"; then
7153 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7154 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7156 $as_echo_n "checking for $ac_word... " >&6; }
7157 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7158 $as_echo_n "(cached) " >&6
7159 else
7160 if test -n "$DSYMUTIL"; then
7161 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7162 else
7163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7164 for as_dir in $PATH
7165 do
7166 IFS=$as_save_IFS
7167 test -z "$as_dir" && as_dir=.
7168 for ac_exec_ext in '' $ac_executable_extensions; do
7169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7170 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7172 break 2
7173 fi
7174 done
7175 done
7176 IFS=$as_save_IFS
7177
7178 fi
7179 fi
7180 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7181 if test -n "$DSYMUTIL"; then
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7183 $as_echo "$DSYMUTIL" >&6; }
7184 else
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7186 $as_echo "no" >&6; }
7187 fi
7188
7189
7190 fi
7191 if test -z "$ac_cv_prog_DSYMUTIL"; then
7192 ac_ct_DSYMUTIL=$DSYMUTIL
7193 # Extract the first word of "dsymutil", so it can be a program name with args.
7194 set dummy dsymutil; ac_word=$2
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7196 $as_echo_n "checking for $ac_word... " >&6; }
7197 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7198 $as_echo_n "(cached) " >&6
7199 else
7200 if test -n "$ac_ct_DSYMUTIL"; then
7201 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7202 else
7203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7204 for as_dir in $PATH
7205 do
7206 IFS=$as_save_IFS
7207 test -z "$as_dir" && as_dir=.
7208 for ac_exec_ext in '' $ac_executable_extensions; do
7209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7210 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7212 break 2
7213 fi
7214 done
7215 done
7216 IFS=$as_save_IFS
7217
7218 fi
7219 fi
7220 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7221 if test -n "$ac_ct_DSYMUTIL"; then
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7223 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7224 else
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7226 $as_echo "no" >&6; }
7227 fi
7228
7229 if test "x$ac_ct_DSYMUTIL" = x; then
7230 DSYMUTIL=":"
7231 else
7232 case $cross_compiling:$ac_tool_warned in
7233 yes:)
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7236 ac_tool_warned=yes ;;
7237 esac
7238 DSYMUTIL=$ac_ct_DSYMUTIL
7239 fi
7240 else
7241 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7242 fi
7243
7244 if test -n "$ac_tool_prefix"; then
7245 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7246 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7248 $as_echo_n "checking for $ac_word... " >&6; }
7249 if ${ac_cv_prog_NMEDIT+:} false; then :
7250 $as_echo_n "(cached) " >&6
7251 else
7252 if test -n "$NMEDIT"; then
7253 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7254 else
7255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7256 for as_dir in $PATH
7257 do
7258 IFS=$as_save_IFS
7259 test -z "$as_dir" && as_dir=.
7260 for ac_exec_ext in '' $ac_executable_extensions; do
7261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7262 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7264 break 2
7265 fi
7266 done
7267 done
7268 IFS=$as_save_IFS
7269
7270 fi
7271 fi
7272 NMEDIT=$ac_cv_prog_NMEDIT
7273 if test -n "$NMEDIT"; then
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7275 $as_echo "$NMEDIT" >&6; }
7276 else
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7278 $as_echo "no" >&6; }
7279 fi
7280
7281
7282 fi
7283 if test -z "$ac_cv_prog_NMEDIT"; then
7284 ac_ct_NMEDIT=$NMEDIT
7285 # Extract the first word of "nmedit", so it can be a program name with args.
7286 set dummy nmedit; ac_word=$2
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7288 $as_echo_n "checking for $ac_word... " >&6; }
7289 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7290 $as_echo_n "(cached) " >&6
7291 else
7292 if test -n "$ac_ct_NMEDIT"; then
7293 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7294 else
7295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296 for as_dir in $PATH
7297 do
7298 IFS=$as_save_IFS
7299 test -z "$as_dir" && as_dir=.
7300 for ac_exec_ext in '' $ac_executable_extensions; do
7301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7302 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7304 break 2
7305 fi
7306 done
7307 done
7308 IFS=$as_save_IFS
7309
7310 fi
7311 fi
7312 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7313 if test -n "$ac_ct_NMEDIT"; then
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7315 $as_echo "$ac_ct_NMEDIT" >&6; }
7316 else
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7318 $as_echo "no" >&6; }
7319 fi
7320
7321 if test "x$ac_ct_NMEDIT" = x; then
7322 NMEDIT=":"
7323 else
7324 case $cross_compiling:$ac_tool_warned in
7325 yes:)
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7328 ac_tool_warned=yes ;;
7329 esac
7330 NMEDIT=$ac_ct_NMEDIT
7331 fi
7332 else
7333 NMEDIT="$ac_cv_prog_NMEDIT"
7334 fi
7335
7336 if test -n "$ac_tool_prefix"; then
7337 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7338 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7340 $as_echo_n "checking for $ac_word... " >&6; }
7341 if ${ac_cv_prog_LIPO+:} false; then :
7342 $as_echo_n "(cached) " >&6
7343 else
7344 if test -n "$LIPO"; then
7345 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7346 else
7347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348 for as_dir in $PATH
7349 do
7350 IFS=$as_save_IFS
7351 test -z "$as_dir" && as_dir=.
7352 for ac_exec_ext in '' $ac_executable_extensions; do
7353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7354 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7356 break 2
7357 fi
7358 done
7359 done
7360 IFS=$as_save_IFS
7361
7362 fi
7363 fi
7364 LIPO=$ac_cv_prog_LIPO
7365 if test -n "$LIPO"; then
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7367 $as_echo "$LIPO" >&6; }
7368 else
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7370 $as_echo "no" >&6; }
7371 fi
7372
7373
7374 fi
7375 if test -z "$ac_cv_prog_LIPO"; then
7376 ac_ct_LIPO=$LIPO
7377 # Extract the first word of "lipo", so it can be a program name with args.
7378 set dummy lipo; ac_word=$2
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7380 $as_echo_n "checking for $ac_word... " >&6; }
7381 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7382 $as_echo_n "(cached) " >&6
7383 else
7384 if test -n "$ac_ct_LIPO"; then
7385 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7386 else
7387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388 for as_dir in $PATH
7389 do
7390 IFS=$as_save_IFS
7391 test -z "$as_dir" && as_dir=.
7392 for ac_exec_ext in '' $ac_executable_extensions; do
7393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7394 ac_cv_prog_ac_ct_LIPO="lipo"
7395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7396 break 2
7397 fi
7398 done
7399 done
7400 IFS=$as_save_IFS
7401
7402 fi
7403 fi
7404 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7405 if test -n "$ac_ct_LIPO"; then
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7407 $as_echo "$ac_ct_LIPO" >&6; }
7408 else
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7410 $as_echo "no" >&6; }
7411 fi
7412
7413 if test "x$ac_ct_LIPO" = x; then
7414 LIPO=":"
7415 else
7416 case $cross_compiling:$ac_tool_warned in
7417 yes:)
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7420 ac_tool_warned=yes ;;
7421 esac
7422 LIPO=$ac_ct_LIPO
7423 fi
7424 else
7425 LIPO="$ac_cv_prog_LIPO"
7426 fi
7427
7428 if test -n "$ac_tool_prefix"; then
7429 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7430 set dummy ${ac_tool_prefix}otool; ac_word=$2
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7432 $as_echo_n "checking for $ac_word... " >&6; }
7433 if ${ac_cv_prog_OTOOL+:} false; then :
7434 $as_echo_n "(cached) " >&6
7435 else
7436 if test -n "$OTOOL"; then
7437 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7438 else
7439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7440 for as_dir in $PATH
7441 do
7442 IFS=$as_save_IFS
7443 test -z "$as_dir" && as_dir=.
7444 for ac_exec_ext in '' $ac_executable_extensions; do
7445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7446 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7448 break 2
7449 fi
7450 done
7451 done
7452 IFS=$as_save_IFS
7453
7454 fi
7455 fi
7456 OTOOL=$ac_cv_prog_OTOOL
7457 if test -n "$OTOOL"; then
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7459 $as_echo "$OTOOL" >&6; }
7460 else
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7462 $as_echo "no" >&6; }
7463 fi
7464
7465
7466 fi
7467 if test -z "$ac_cv_prog_OTOOL"; then
7468 ac_ct_OTOOL=$OTOOL
7469 # Extract the first word of "otool", so it can be a program name with args.
7470 set dummy otool; ac_word=$2
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7472 $as_echo_n "checking for $ac_word... " >&6; }
7473 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7474 $as_echo_n "(cached) " >&6
7475 else
7476 if test -n "$ac_ct_OTOOL"; then
7477 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7478 else
7479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7480 for as_dir in $PATH
7481 do
7482 IFS=$as_save_IFS
7483 test -z "$as_dir" && as_dir=.
7484 for ac_exec_ext in '' $ac_executable_extensions; do
7485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7486 ac_cv_prog_ac_ct_OTOOL="otool"
7487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7488 break 2
7489 fi
7490 done
7491 done
7492 IFS=$as_save_IFS
7493
7494 fi
7495 fi
7496 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7497 if test -n "$ac_ct_OTOOL"; then
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7499 $as_echo "$ac_ct_OTOOL" >&6; }
7500 else
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7502 $as_echo "no" >&6; }
7503 fi
7504
7505 if test "x$ac_ct_OTOOL" = x; then
7506 OTOOL=":"
7507 else
7508 case $cross_compiling:$ac_tool_warned in
7509 yes:)
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7511 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7512 ac_tool_warned=yes ;;
7513 esac
7514 OTOOL=$ac_ct_OTOOL
7515 fi
7516 else
7517 OTOOL="$ac_cv_prog_OTOOL"
7518 fi
7519
7520 if test -n "$ac_tool_prefix"; then
7521 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7522 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7524 $as_echo_n "checking for $ac_word... " >&6; }
7525 if ${ac_cv_prog_OTOOL64+:} false; then :
7526 $as_echo_n "(cached) " >&6
7527 else
7528 if test -n "$OTOOL64"; then
7529 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7530 else
7531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7532 for as_dir in $PATH
7533 do
7534 IFS=$as_save_IFS
7535 test -z "$as_dir" && as_dir=.
7536 for ac_exec_ext in '' $ac_executable_extensions; do
7537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7538 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7540 break 2
7541 fi
7542 done
7543 done
7544 IFS=$as_save_IFS
7545
7546 fi
7547 fi
7548 OTOOL64=$ac_cv_prog_OTOOL64
7549 if test -n "$OTOOL64"; then
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7551 $as_echo "$OTOOL64" >&6; }
7552 else
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7554 $as_echo "no" >&6; }
7555 fi
7556
7557
7558 fi
7559 if test -z "$ac_cv_prog_OTOOL64"; then
7560 ac_ct_OTOOL64=$OTOOL64
7561 # Extract the first word of "otool64", so it can be a program name with args.
7562 set dummy otool64; ac_word=$2
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7564 $as_echo_n "checking for $ac_word... " >&6; }
7565 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7566 $as_echo_n "(cached) " >&6
7567 else
7568 if test -n "$ac_ct_OTOOL64"; then
7569 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7570 else
7571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7572 for as_dir in $PATH
7573 do
7574 IFS=$as_save_IFS
7575 test -z "$as_dir" && as_dir=.
7576 for ac_exec_ext in '' $ac_executable_extensions; do
7577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7578 ac_cv_prog_ac_ct_OTOOL64="otool64"
7579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7580 break 2
7581 fi
7582 done
7583 done
7584 IFS=$as_save_IFS
7585
7586 fi
7587 fi
7588 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7589 if test -n "$ac_ct_OTOOL64"; then
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7591 $as_echo "$ac_ct_OTOOL64" >&6; }
7592 else
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7594 $as_echo "no" >&6; }
7595 fi
7596
7597 if test "x$ac_ct_OTOOL64" = x; then
7598 OTOOL64=":"
7599 else
7600 case $cross_compiling:$ac_tool_warned in
7601 yes:)
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7603 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7604 ac_tool_warned=yes ;;
7605 esac
7606 OTOOL64=$ac_ct_OTOOL64
7607 fi
7608 else
7609 OTOOL64="$ac_cv_prog_OTOOL64"
7610 fi
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7639 $as_echo_n "checking for -single_module linker flag... " >&6; }
7640 if ${lt_cv_apple_cc_single_mod+:} false; then :
7641 $as_echo_n "(cached) " >&6
7642 else
7643 lt_cv_apple_cc_single_mod=no
7644 if test -z "${LT_MULTI_MODULE}"; then
7645 # By default we will add the -single_module flag. You can override
7646 # by either setting the environment variable LT_MULTI_MODULE
7647 # non-empty at configure time, or by adding -multi_module to the
7648 # link flags.
7649 rm -rf libconftest.dylib*
7650 echo "int foo(void){return 1;}" > conftest.c
7651 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7652 -dynamiclib -Wl,-single_module conftest.c" >&5
7653 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7654 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7655 _lt_result=$?
7656 # If there is a non-empty error log, and "single_module"
7657 # appears in it, assume the flag caused a linker warning
7658 if test -s conftest.err && $GREP single_module conftest.err; then
7659 cat conftest.err >&5
7660 # Otherwise, if the output was created with a 0 exit code from
7661 # the compiler, it worked.
7662 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7663 lt_cv_apple_cc_single_mod=yes
7664 else
7665 cat conftest.err >&5
7666 fi
7667 rm -rf libconftest.dylib*
7668 rm -f conftest.*
7669 fi
7670 fi
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7672 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7673
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7675 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7676 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7677 $as_echo_n "(cached) " >&6
7678 else
7679 lt_cv_ld_exported_symbols_list=no
7680 save_LDFLAGS=$LDFLAGS
7681 echo "_main" > conftest.sym
7682 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7684 /* end confdefs.h. */
7685
7686 int
7687 main ()
7688 {
7689
7690 ;
7691 return 0;
7692 }
7693 _ACEOF
7694 if ac_fn_c_try_link "$LINENO"; then :
7695 lt_cv_ld_exported_symbols_list=yes
7696 else
7697 lt_cv_ld_exported_symbols_list=no
7698 fi
7699 rm -f core conftest.err conftest.$ac_objext \
7700 conftest$ac_exeext conftest.$ac_ext
7701 LDFLAGS="$save_LDFLAGS"
7702
7703 fi
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7705 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7706
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7708 $as_echo_n "checking for -force_load linker flag... " >&6; }
7709 if ${lt_cv_ld_force_load+:} false; then :
7710 $as_echo_n "(cached) " >&6
7711 else
7712 lt_cv_ld_force_load=no
7713 cat > conftest.c << _LT_EOF
7714 int forced_loaded() { return 2;}
7715 _LT_EOF
7716 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7717 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7718 echo "$AR cru libconftest.a conftest.o" >&5
7719 $AR cru libconftest.a conftest.o 2>&5
7720 echo "$RANLIB libconftest.a" >&5
7721 $RANLIB libconftest.a 2>&5
7722 cat > conftest.c << _LT_EOF
7723 int main() { return 0;}
7724 _LT_EOF
7725 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7726 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7727 _lt_result=$?
7728 if test -s conftest.err && $GREP force_load conftest.err; then
7729 cat conftest.err >&5
7730 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7731 lt_cv_ld_force_load=yes
7732 else
7733 cat conftest.err >&5
7734 fi
7735 rm -f conftest.err libconftest.a conftest conftest.c
7736 rm -rf conftest.dSYM
7737
7738 fi
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7740 $as_echo "$lt_cv_ld_force_load" >&6; }
7741 case $host_os in
7742 rhapsody* | darwin1.[012])
7743 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7744 darwin1.*)
7745 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7746 darwin*) # darwin 5.x on
7747 # if running on 10.5 or later, the deployment target defaults
7748 # to the OS version, if on x86, and 10.4, the deployment
7749 # target defaults to 10.4. Don't you love it?
7750 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7751 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7752 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7753 10.[012]*)
7754 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7755 10.*)
7756 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7757 esac
7758 ;;
7759 esac
7760 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7761 _lt_dar_single_mod='$single_module'
7762 fi
7763 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7764 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7765 else
7766 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7767 fi
7768 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7769 _lt_dsymutil='~$DSYMUTIL $lib || :'
7770 else
7771 _lt_dsymutil=
7772 fi
7773 ;;
7774 esac
7775
7776
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7778 $as_echo_n "checking for ANSI C header files... " >&6; }
7779 if ${ac_cv_header_stdc+:} false; then :
7780 $as_echo_n "(cached) " >&6
7781 else
7782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7783 /* end confdefs.h. */
7784 #include <stdlib.h>
7785 #include <stdarg.h>
7786 #include <string.h>
7787 #include <float.h>
7788
7789 int
7790 main ()
7791 {
7792
7793 ;
7794 return 0;
7795 }
7796 _ACEOF
7797 if ac_fn_c_try_compile "$LINENO"; then :
7798 ac_cv_header_stdc=yes
7799 else
7800 ac_cv_header_stdc=no
7801 fi
7802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7803
7804 if test $ac_cv_header_stdc = yes; then
7805 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7807 /* end confdefs.h. */
7808 #include <string.h>
7809
7810 _ACEOF
7811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7812 $EGREP "memchr" >/dev/null 2>&1; then :
7813
7814 else
7815 ac_cv_header_stdc=no
7816 fi
7817 rm -f conftest*
7818
7819 fi
7820
7821 if test $ac_cv_header_stdc = yes; then
7822 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7824 /* end confdefs.h. */
7825 #include <stdlib.h>
7826
7827 _ACEOF
7828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7829 $EGREP "free" >/dev/null 2>&1; then :
7830
7831 else
7832 ac_cv_header_stdc=no
7833 fi
7834 rm -f conftest*
7835
7836 fi
7837
7838 if test $ac_cv_header_stdc = yes; then
7839 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7840 if test "$cross_compiling" = yes; then :
7841 :
7842 else
7843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7844 /* end confdefs.h. */
7845 #include <ctype.h>
7846 #include <stdlib.h>
7847 #if ((' ' & 0x0FF) == 0x020)
7848 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7849 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7850 #else
7851 # define ISLOWER(c) \
7852 (('a' <= (c) && (c) <= 'i') \
7853 || ('j' <= (c) && (c) <= 'r') \
7854 || ('s' <= (c) && (c) <= 'z'))
7855 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7856 #endif
7857
7858 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7859 int
7860 main ()
7861 {
7862 int i;
7863 for (i = 0; i < 256; i++)
7864 if (XOR (islower (i), ISLOWER (i))
7865 || toupper (i) != TOUPPER (i))
7866 return 2;
7867 return 0;
7868 }
7869 _ACEOF
7870 if ac_fn_c_try_run "$LINENO"; then :
7871
7872 else
7873 ac_cv_header_stdc=no
7874 fi
7875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7876 conftest.$ac_objext conftest.beam conftest.$ac_ext
7877 fi
7878
7879 fi
7880 fi
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7882 $as_echo "$ac_cv_header_stdc" >&6; }
7883 if test $ac_cv_header_stdc = yes; then
7884
7885 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7886
7887 fi
7888
7889 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7890 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7891 inttypes.h stdint.h unistd.h
7892 do :
7893 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7894 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7895 "
7896 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7897 cat >>confdefs.h <<_ACEOF
7898 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7899 _ACEOF
7900
7901 fi
7902
7903 done
7904
7905
7906 for ac_header in dlfcn.h
7907 do :
7908 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7909 "
7910 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7911 cat >>confdefs.h <<_ACEOF
7912 #define HAVE_DLFCN_H 1
7913 _ACEOF
7914
7915 fi
7916
7917 done
7918
7919
7920
7921
7922 func_stripname_cnf ()
7923 {
7924 case ${2} in
7925 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7926 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7927 esac
7928 } # func_stripname_cnf
7929
7930
7931
7932
7933
7934 # Set options
7935 enable_win32_dll=yes
7936
7937 case $host in
7938 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7939 if test -n "$ac_tool_prefix"; then
7940 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7941 set dummy ${ac_tool_prefix}as; ac_word=$2
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7943 $as_echo_n "checking for $ac_word... " >&6; }
7944 if ${ac_cv_prog_AS+:} false; then :
7945 $as_echo_n "(cached) " >&6
7946 else
7947 if test -n "$AS"; then
7948 ac_cv_prog_AS="$AS" # Let the user override the test.
7949 else
7950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7951 for as_dir in $PATH
7952 do
7953 IFS=$as_save_IFS
7954 test -z "$as_dir" && as_dir=.
7955 for ac_exec_ext in '' $ac_executable_extensions; do
7956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7957 ac_cv_prog_AS="${ac_tool_prefix}as"
7958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7959 break 2
7960 fi
7961 done
7962 done
7963 IFS=$as_save_IFS
7964
7965 fi
7966 fi
7967 AS=$ac_cv_prog_AS
7968 if test -n "$AS"; then
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7970 $as_echo "$AS" >&6; }
7971 else
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7973 $as_echo "no" >&6; }
7974 fi
7975
7976
7977 fi
7978 if test -z "$ac_cv_prog_AS"; then
7979 ac_ct_AS=$AS
7980 # Extract the first word of "as", so it can be a program name with args.
7981 set dummy as; ac_word=$2
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7983 $as_echo_n "checking for $ac_word... " >&6; }
7984 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7985 $as_echo_n "(cached) " >&6
7986 else
7987 if test -n "$ac_ct_AS"; then
7988 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7989 else
7990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7991 for as_dir in $PATH
7992 do
7993 IFS=$as_save_IFS
7994 test -z "$as_dir" && as_dir=.
7995 for ac_exec_ext in '' $ac_executable_extensions; do
7996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7997 ac_cv_prog_ac_ct_AS="as"
7998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7999 break 2
8000 fi
8001 done
8002 done
8003 IFS=$as_save_IFS
8004
8005 fi
8006 fi
8007 ac_ct_AS=$ac_cv_prog_ac_ct_AS
8008 if test -n "$ac_ct_AS"; then
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8010 $as_echo "$ac_ct_AS" >&6; }
8011 else
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8013 $as_echo "no" >&6; }
8014 fi
8015
8016 if test "x$ac_ct_AS" = x; then
8017 AS="false"
8018 else
8019 case $cross_compiling:$ac_tool_warned in
8020 yes:)
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8022 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8023 ac_tool_warned=yes ;;
8024 esac
8025 AS=$ac_ct_AS
8026 fi
8027 else
8028 AS="$ac_cv_prog_AS"
8029 fi
8030
8031 if test -n "$ac_tool_prefix"; then
8032 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8033 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8035 $as_echo_n "checking for $ac_word... " >&6; }
8036 if ${ac_cv_prog_DLLTOOL+:} false; then :
8037 $as_echo_n "(cached) " >&6
8038 else
8039 if test -n "$DLLTOOL"; then
8040 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8041 else
8042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8043 for as_dir in $PATH
8044 do
8045 IFS=$as_save_IFS
8046 test -z "$as_dir" && as_dir=.
8047 for ac_exec_ext in '' $ac_executable_extensions; do
8048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8049 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8051 break 2
8052 fi
8053 done
8054 done
8055 IFS=$as_save_IFS
8056
8057 fi
8058 fi
8059 DLLTOOL=$ac_cv_prog_DLLTOOL
8060 if test -n "$DLLTOOL"; then
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8062 $as_echo "$DLLTOOL" >&6; }
8063 else
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8065 $as_echo "no" >&6; }
8066 fi
8067
8068
8069 fi
8070 if test -z "$ac_cv_prog_DLLTOOL"; then
8071 ac_ct_DLLTOOL=$DLLTOOL
8072 # Extract the first word of "dlltool", so it can be a program name with args.
8073 set dummy dlltool; ac_word=$2
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8075 $as_echo_n "checking for $ac_word... " >&6; }
8076 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8077 $as_echo_n "(cached) " >&6
8078 else
8079 if test -n "$ac_ct_DLLTOOL"; then
8080 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8081 else
8082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8083 for as_dir in $PATH
8084 do
8085 IFS=$as_save_IFS
8086 test -z "$as_dir" && as_dir=.
8087 for ac_exec_ext in '' $ac_executable_extensions; do
8088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8089 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8091 break 2
8092 fi
8093 done
8094 done
8095 IFS=$as_save_IFS
8096
8097 fi
8098 fi
8099 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8100 if test -n "$ac_ct_DLLTOOL"; then
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8102 $as_echo "$ac_ct_DLLTOOL" >&6; }
8103 else
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8105 $as_echo "no" >&6; }
8106 fi
8107
8108 if test "x$ac_ct_DLLTOOL" = x; then
8109 DLLTOOL="false"
8110 else
8111 case $cross_compiling:$ac_tool_warned in
8112 yes:)
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8114 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8115 ac_tool_warned=yes ;;
8116 esac
8117 DLLTOOL=$ac_ct_DLLTOOL
8118 fi
8119 else
8120 DLLTOOL="$ac_cv_prog_DLLTOOL"
8121 fi
8122
8123 if test -n "$ac_tool_prefix"; then
8124 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8125 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8127 $as_echo_n "checking for $ac_word... " >&6; }
8128 if ${ac_cv_prog_OBJDUMP+:} false; then :
8129 $as_echo_n "(cached) " >&6
8130 else
8131 if test -n "$OBJDUMP"; then
8132 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8133 else
8134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8135 for as_dir in $PATH
8136 do
8137 IFS=$as_save_IFS
8138 test -z "$as_dir" && as_dir=.
8139 for ac_exec_ext in '' $ac_executable_extensions; do
8140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8141 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8143 break 2
8144 fi
8145 done
8146 done
8147 IFS=$as_save_IFS
8148
8149 fi
8150 fi
8151 OBJDUMP=$ac_cv_prog_OBJDUMP
8152 if test -n "$OBJDUMP"; then
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8154 $as_echo "$OBJDUMP" >&6; }
8155 else
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8157 $as_echo "no" >&6; }
8158 fi
8159
8160
8161 fi
8162 if test -z "$ac_cv_prog_OBJDUMP"; then
8163 ac_ct_OBJDUMP=$OBJDUMP
8164 # Extract the first word of "objdump", so it can be a program name with args.
8165 set dummy objdump; ac_word=$2
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8167 $as_echo_n "checking for $ac_word... " >&6; }
8168 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8169 $as_echo_n "(cached) " >&6
8170 else
8171 if test -n "$ac_ct_OBJDUMP"; then
8172 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8173 else
8174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8175 for as_dir in $PATH
8176 do
8177 IFS=$as_save_IFS
8178 test -z "$as_dir" && as_dir=.
8179 for ac_exec_ext in '' $ac_executable_extensions; do
8180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8181 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8183 break 2
8184 fi
8185 done
8186 done
8187 IFS=$as_save_IFS
8188
8189 fi
8190 fi
8191 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8192 if test -n "$ac_ct_OBJDUMP"; then
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8194 $as_echo "$ac_ct_OBJDUMP" >&6; }
8195 else
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8197 $as_echo "no" >&6; }
8198 fi
8199
8200 if test "x$ac_ct_OBJDUMP" = x; then
8201 OBJDUMP="false"
8202 else
8203 case $cross_compiling:$ac_tool_warned in
8204 yes:)
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8206 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8207 ac_tool_warned=yes ;;
8208 esac
8209 OBJDUMP=$ac_ct_OBJDUMP
8210 fi
8211 else
8212 OBJDUMP="$ac_cv_prog_OBJDUMP"
8213 fi
8214
8215 ;;
8216 esac
8217
8218 test -z "$AS" && AS=as
8219
8220
8221
8222
8223
8224 test -z "$DLLTOOL" && DLLTOOL=dlltool
8225
8226
8227
8228
8229
8230 test -z "$OBJDUMP" && OBJDUMP=objdump
8231
8232
8233
8234
8235
8236
8237
8238 enable_dlopen=no
8239
8240
8241
8242 # Check whether --enable-shared was given.
8243 if test "${enable_shared+set}" = set; then :
8244 enableval=$enable_shared; p=${PACKAGE-default}
8245 case $enableval in
8246 yes) enable_shared=yes ;;
8247 no) enable_shared=no ;;
8248 *)
8249 enable_shared=no
8250 # Look at the argument we got. We use all the common list separators.
8251 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8252 for pkg in $enableval; do
8253 IFS="$lt_save_ifs"
8254 if test "X$pkg" = "X$p"; then
8255 enable_shared=yes
8256 fi
8257 done
8258 IFS="$lt_save_ifs"
8259 ;;
8260 esac
8261 else
8262 enable_shared=yes
8263 fi
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273 # Check whether --enable-static was given.
8274 if test "${enable_static+set}" = set; then :
8275 enableval=$enable_static; p=${PACKAGE-default}
8276 case $enableval in
8277 yes) enable_static=yes ;;
8278 no) enable_static=no ;;
8279 *)
8280 enable_static=no
8281 # Look at the argument we got. We use all the common list separators.
8282 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8283 for pkg in $enableval; do
8284 IFS="$lt_save_ifs"
8285 if test "X$pkg" = "X$p"; then
8286 enable_static=yes
8287 fi
8288 done
8289 IFS="$lt_save_ifs"
8290 ;;
8291 esac
8292 else
8293 enable_static=yes
8294 fi
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305 # Check whether --with-pic was given.
8306 if test "${with_pic+set}" = set; then :
8307 withval=$with_pic; lt_p=${PACKAGE-default}
8308 case $withval in
8309 yes|no) pic_mode=$withval ;;
8310 *)
8311 pic_mode=default
8312 # Look at the argument we got. We use all the common list separators.
8313 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8314 for lt_pkg in $withval; do
8315 IFS="$lt_save_ifs"
8316 if test "X$lt_pkg" = "X$lt_p"; then
8317 pic_mode=yes
8318 fi
8319 done
8320 IFS="$lt_save_ifs"
8321 ;;
8322 esac
8323 else
8324 pic_mode=default
8325 fi
8326
8327
8328 test -z "$pic_mode" && pic_mode=default
8329
8330
8331
8332
8333
8334
8335
8336 # Check whether --enable-fast-install was given.
8337 if test "${enable_fast_install+set}" = set; then :
8338 enableval=$enable_fast_install; p=${PACKAGE-default}
8339 case $enableval in
8340 yes) enable_fast_install=yes ;;
8341 no) enable_fast_install=no ;;
8342 *)
8343 enable_fast_install=no
8344 # Look at the argument we got. We use all the common list separators.
8345 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8346 for pkg in $enableval; do
8347 IFS="$lt_save_ifs"
8348 if test "X$pkg" = "X$p"; then
8349 enable_fast_install=yes
8350 fi
8351 done
8352 IFS="$lt_save_ifs"
8353 ;;
8354 esac
8355 else
8356 enable_fast_install=yes
8357 fi
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369 # This can be used to rebuild libtool when needed
8370 LIBTOOL_DEPS="$ltmain"
8371
8372 # Always use our own libtool.
8373 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404 test -z "$LN_S" && LN_S="ln -s"
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419 if test -n "${ZSH_VERSION+set}" ; then
8420 setopt NO_GLOB_SUBST
8421 fi
8422
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8424 $as_echo_n "checking for objdir... " >&6; }
8425 if ${lt_cv_objdir+:} false; then :
8426 $as_echo_n "(cached) " >&6
8427 else
8428 rm -f .libs 2>/dev/null
8429 mkdir .libs 2>/dev/null
8430 if test -d .libs; then
8431 lt_cv_objdir=.libs
8432 else
8433 # MS-DOS does not allow filenames that begin with a dot.
8434 lt_cv_objdir=_libs
8435 fi
8436 rmdir .libs 2>/dev/null
8437 fi
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8439 $as_echo "$lt_cv_objdir" >&6; }
8440 objdir=$lt_cv_objdir
8441
8442
8443
8444
8445
8446 cat >>confdefs.h <<_ACEOF
8447 #define LT_OBJDIR "$lt_cv_objdir/"
8448 _ACEOF
8449
8450
8451
8452
8453 case $host_os in
8454 aix3*)
8455 # AIX sometimes has problems with the GCC collect2 program. For some
8456 # reason, if we set the COLLECT_NAMES environment variable, the problems
8457 # vanish in a puff of smoke.
8458 if test "X${COLLECT_NAMES+set}" != Xset; then
8459 COLLECT_NAMES=
8460 export COLLECT_NAMES
8461 fi
8462 ;;
8463 esac
8464
8465 # Global variables:
8466 ofile=libtool
8467 can_build_shared=yes
8468
8469 # All known linkers require a `.a' archive for static linking (except MSVC,
8470 # which needs '.lib').
8471 libext=a
8472
8473 with_gnu_ld="$lt_cv_prog_gnu_ld"
8474
8475 old_CC="$CC"
8476 old_CFLAGS="$CFLAGS"
8477
8478 # Set sane defaults for various variables
8479 test -z "$CC" && CC=cc
8480 test -z "$LTCC" && LTCC=$CC
8481 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8482 test -z "$LD" && LD=ld
8483 test -z "$ac_objext" && ac_objext=o
8484
8485 for cc_temp in $compiler""; do
8486 case $cc_temp in
8487 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8488 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8489 \-*) ;;
8490 *) break;;
8491 esac
8492 done
8493 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8494
8495
8496 # Only perform the check for file, if the check method requires it
8497 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8498 case $deplibs_check_method in
8499 file_magic*)
8500 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8502 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8503 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8504 $as_echo_n "(cached) " >&6
8505 else
8506 case $MAGIC_CMD in
8507 [\\/*] | ?:[\\/]*)
8508 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8509 ;;
8510 *)
8511 lt_save_MAGIC_CMD="$MAGIC_CMD"
8512 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8513 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8514 for ac_dir in $ac_dummy; do
8515 IFS="$lt_save_ifs"
8516 test -z "$ac_dir" && ac_dir=.
8517 if test -f $ac_dir/${ac_tool_prefix}file; then
8518 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8519 if test -n "$file_magic_test_file"; then
8520 case $deplibs_check_method in
8521 "file_magic "*)
8522 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8523 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8524 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8525 $EGREP "$file_magic_regex" > /dev/null; then
8526 :
8527 else
8528 cat <<_LT_EOF 1>&2
8529
8530 *** Warning: the command libtool uses to detect shared libraries,
8531 *** $file_magic_cmd, produces output that libtool cannot recognize.
8532 *** The result is that libtool may fail to recognize shared libraries
8533 *** as such. This will affect the creation of libtool libraries that
8534 *** depend on shared libraries, but programs linked with such libtool
8535 *** libraries will work regardless of this problem. Nevertheless, you
8536 *** may want to report the problem to your system manager and/or to
8537 *** [email protected]
8538
8539 _LT_EOF
8540 fi ;;
8541 esac
8542 fi
8543 break
8544 fi
8545 done
8546 IFS="$lt_save_ifs"
8547 MAGIC_CMD="$lt_save_MAGIC_CMD"
8548 ;;
8549 esac
8550 fi
8551
8552 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8553 if test -n "$MAGIC_CMD"; then
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8555 $as_echo "$MAGIC_CMD" >&6; }
8556 else
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8558 $as_echo "no" >&6; }
8559 fi
8560
8561
8562
8563
8564
8565 if test -z "$lt_cv_path_MAGIC_CMD"; then
8566 if test -n "$ac_tool_prefix"; then
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8568 $as_echo_n "checking for file... " >&6; }
8569 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8570 $as_echo_n "(cached) " >&6
8571 else
8572 case $MAGIC_CMD in
8573 [\\/*] | ?:[\\/]*)
8574 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8575 ;;
8576 *)
8577 lt_save_MAGIC_CMD="$MAGIC_CMD"
8578 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8579 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8580 for ac_dir in $ac_dummy; do
8581 IFS="$lt_save_ifs"
8582 test -z "$ac_dir" && ac_dir=.
8583 if test -f $ac_dir/file; then
8584 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8585 if test -n "$file_magic_test_file"; then
8586 case $deplibs_check_method in
8587 "file_magic "*)
8588 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8589 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8590 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8591 $EGREP "$file_magic_regex" > /dev/null; then
8592 :
8593 else
8594 cat <<_LT_EOF 1>&2
8595
8596 *** Warning: the command libtool uses to detect shared libraries,
8597 *** $file_magic_cmd, produces output that libtool cannot recognize.
8598 *** The result is that libtool may fail to recognize shared libraries
8599 *** as such. This will affect the creation of libtool libraries that
8600 *** depend on shared libraries, but programs linked with such libtool
8601 *** libraries will work regardless of this problem. Nevertheless, you
8602 *** may want to report the problem to your system manager and/or to
8603 *** [email protected]
8604
8605 _LT_EOF
8606 fi ;;
8607 esac
8608 fi
8609 break
8610 fi
8611 done
8612 IFS="$lt_save_ifs"
8613 MAGIC_CMD="$lt_save_MAGIC_CMD"
8614 ;;
8615 esac
8616 fi
8617
8618 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8619 if test -n "$MAGIC_CMD"; then
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8621 $as_echo "$MAGIC_CMD" >&6; }
8622 else
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8624 $as_echo "no" >&6; }
8625 fi
8626
8627
8628 else
8629 MAGIC_CMD=:
8630 fi
8631 fi
8632
8633 fi
8634 ;;
8635 esac
8636
8637 # Use C for the default configuration in the libtool script
8638
8639 lt_save_CC="$CC"
8640 ac_ext=c
8641 ac_cpp='$CPP $CPPFLAGS'
8642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8645
8646
8647 # Source file extension for C test sources.
8648 ac_ext=c
8649
8650 # Object file extension for compiled C test sources.
8651 objext=o
8652 objext=$objext
8653
8654 # Code to be used in simple compile tests
8655 lt_simple_compile_test_code="int some_variable = 0;"
8656
8657 # Code to be used in simple link tests
8658 lt_simple_link_test_code='int main(){return(0);}'
8659
8660
8661
8662
8663
8664
8665
8666 # If no C compiler was specified, use CC.
8667 LTCC=${LTCC-"$CC"}
8668
8669 # If no C compiler flags were specified, use CFLAGS.
8670 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8671
8672 # Allow CC to be a program name with arguments.
8673 compiler=$CC
8674
8675 # Save the default compiler, since it gets overwritten when the other
8676 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8677 compiler_DEFAULT=$CC
8678
8679 # save warnings/boilerplate of simple test code
8680 ac_outfile=conftest.$ac_objext
8681 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8682 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8683 _lt_compiler_boilerplate=`cat conftest.err`
8684 $RM conftest*
8685
8686 ac_outfile=conftest.$ac_objext
8687 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8688 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8689 _lt_linker_boilerplate=`cat conftest.err`
8690 $RM -r conftest*
8691
8692
8693 ## CAVEAT EMPTOR:
8694 ## There is no encapsulation within the following macros, do not change
8695 ## the running order or otherwise move them around unless you know exactly
8696 ## what you are doing...
8697 if test -n "$compiler"; then
8698
8699 lt_prog_compiler_no_builtin_flag=
8700
8701 if test "$GCC" = yes; then
8702 case $cc_basename in
8703 nvcc*)
8704 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8705 *)
8706 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8707 esac
8708
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8710 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8711 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8712 $as_echo_n "(cached) " >&6
8713 else
8714 lt_cv_prog_compiler_rtti_exceptions=no
8715 ac_outfile=conftest.$ac_objext
8716 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8717 lt_compiler_flag="-fno-rtti -fno-exceptions"
8718 # Insert the option either (1) after the last *FLAGS variable, or
8719 # (2) before a word containing "conftest.", or (3) at the end.
8720 # Note that $ac_compile itself does not contain backslashes and begins
8721 # with a dollar sign (not a hyphen), so the echo should work correctly.
8722 # The option is referenced via a variable to avoid confusing sed.
8723 lt_compile=`echo "$ac_compile" | $SED \
8724 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8725 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8726 -e 's:$: $lt_compiler_flag:'`
8727 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8728 (eval "$lt_compile" 2>conftest.err)
8729 ac_status=$?
8730 cat conftest.err >&5
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 if (exit $ac_status) && test -s "$ac_outfile"; then
8733 # The compiler can only warn and ignore the option if not recognized
8734 # So say no if there are warnings other than the usual output.
8735 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8736 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8737 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8738 lt_cv_prog_compiler_rtti_exceptions=yes
8739 fi
8740 fi
8741 $RM conftest*
8742
8743 fi
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8745 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8746
8747 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8748 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8749 else
8750 :
8751 fi
8752
8753 fi
8754
8755
8756
8757
8758
8759
8760 lt_prog_compiler_wl=
8761 lt_prog_compiler_pic=
8762 lt_prog_compiler_static=
8763
8764
8765 if test "$GCC" = yes; then
8766 lt_prog_compiler_wl='-Wl,'
8767 lt_prog_compiler_static='-static'
8768
8769 case $host_os in
8770 aix*)
8771 # All AIX code is PIC.
8772 if test "$host_cpu" = ia64; then
8773 # AIX 5 now supports IA64 processor
8774 lt_prog_compiler_static='-Bstatic'
8775 fi
8776 ;;
8777
8778 amigaos*)
8779 case $host_cpu in
8780 powerpc)
8781 # see comment about AmigaOS4 .so support
8782 lt_prog_compiler_pic='-fPIC'
8783 ;;
8784 m68k)
8785 # FIXME: we need at least 68020 code to build shared libraries, but
8786 # adding the `-m68020' flag to GCC prevents building anything better,
8787 # like `-m68040'.
8788 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8789 ;;
8790 esac
8791 ;;
8792
8793 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8794 # PIC is the default for these OSes.
8795 ;;
8796
8797 mingw* | cygwin* | pw32* | os2* | cegcc*)
8798 # This hack is so that the source file can tell whether it is being
8799 # built for inclusion in a dll (and should export symbols for example).
8800 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8801 # (--disable-auto-import) libraries
8802 lt_prog_compiler_pic='-DDLL_EXPORT'
8803 ;;
8804
8805 darwin* | rhapsody*)
8806 # PIC is the default on this platform
8807 # Common symbols not allowed in MH_DYLIB files
8808 lt_prog_compiler_pic='-fno-common'
8809 ;;
8810
8811 haiku*)
8812 # PIC is the default for Haiku.
8813 # The "-static" flag exists, but is broken.
8814 lt_prog_compiler_static=
8815 ;;
8816
8817 hpux*)
8818 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8819 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8820 # sets the default TLS model and affects inlining.
8821 case $host_cpu in
8822 hppa*64*)
8823 # +Z the default
8824 ;;
8825 *)
8826 lt_prog_compiler_pic='-fPIC'
8827 ;;
8828 esac
8829 ;;
8830
8831 interix[3-9]*)
8832 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8833 # Instead, we relocate shared libraries at runtime.
8834 ;;
8835
8836 msdosdjgpp*)
8837 # Just because we use GCC doesn't mean we suddenly get shared libraries
8838 # on systems that don't support them.
8839 lt_prog_compiler_can_build_shared=no
8840 enable_shared=no
8841 ;;
8842
8843 *nto* | *qnx*)
8844 # QNX uses GNU C++, but need to define -shared option too, otherwise
8845 # it will coredump.
8846 lt_prog_compiler_pic='-fPIC -shared'
8847 ;;
8848
8849 sysv4*MP*)
8850 if test -d /usr/nec; then
8851 lt_prog_compiler_pic=-Kconform_pic
8852 fi
8853 ;;
8854
8855 *)
8856 lt_prog_compiler_pic='-fPIC'
8857 ;;
8858 esac
8859
8860 case $cc_basename in
8861 nvcc*) # Cuda Compiler Driver 2.2
8862 lt_prog_compiler_wl='-Xlinker '
8863 if test -n "$lt_prog_compiler_pic"; then
8864 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8865 fi
8866 ;;
8867 esac
8868 else
8869 # PORTME Check for flag to pass linker flags through the system compiler.
8870 case $host_os in
8871 aix*)
8872 lt_prog_compiler_wl='-Wl,'
8873 if test "$host_cpu" = ia64; then
8874 # AIX 5 now supports IA64 processor
8875 lt_prog_compiler_static='-Bstatic'
8876 else
8877 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8878 fi
8879 ;;
8880
8881 mingw* | cygwin* | pw32* | os2* | cegcc*)
8882 # This hack is so that the source file can tell whether it is being
8883 # built for inclusion in a dll (and should export symbols for example).
8884 lt_prog_compiler_pic='-DDLL_EXPORT'
8885 ;;
8886
8887 hpux9* | hpux10* | hpux11*)
8888 lt_prog_compiler_wl='-Wl,'
8889 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8890 # not for PA HP-UX.
8891 case $host_cpu in
8892 hppa*64*|ia64*)
8893 # +Z the default
8894 ;;
8895 *)
8896 lt_prog_compiler_pic='+Z'
8897 ;;
8898 esac
8899 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8900 lt_prog_compiler_static='${wl}-a ${wl}archive'
8901 ;;
8902
8903 irix5* | irix6* | nonstopux*)
8904 lt_prog_compiler_wl='-Wl,'
8905 # PIC (with -KPIC) is the default.
8906 lt_prog_compiler_static='-non_shared'
8907 ;;
8908
8909 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8910 case $cc_basename in
8911 # old Intel for x86_64 which still supported -KPIC.
8912 ecc*)
8913 lt_prog_compiler_wl='-Wl,'
8914 lt_prog_compiler_pic='-KPIC'
8915 lt_prog_compiler_static='-static'
8916 ;;
8917 # icc used to be incompatible with GCC.
8918 # ICC 10 doesn't accept -KPIC any more.
8919 icc* | ifort*)
8920 lt_prog_compiler_wl='-Wl,'
8921 lt_prog_compiler_pic='-fPIC'
8922 lt_prog_compiler_static='-static'
8923 ;;
8924 # Lahey Fortran 8.1.
8925 lf95*)
8926 lt_prog_compiler_wl='-Wl,'
8927 lt_prog_compiler_pic='--shared'
8928 lt_prog_compiler_static='--static'
8929 ;;
8930 nagfor*)
8931 # NAG Fortran compiler
8932 lt_prog_compiler_wl='-Wl,-Wl,,'
8933 lt_prog_compiler_pic='-PIC'
8934 lt_prog_compiler_static='-Bstatic'
8935 ;;
8936 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8937 # Portland Group compilers (*not* the Pentium gcc compiler,
8938 # which looks to be a dead project)
8939 lt_prog_compiler_wl='-Wl,'
8940 lt_prog_compiler_pic='-fpic'
8941 lt_prog_compiler_static='-Bstatic'
8942 ;;
8943 ccc*)
8944 lt_prog_compiler_wl='-Wl,'
8945 # All Alpha code is PIC.
8946 lt_prog_compiler_static='-non_shared'
8947 ;;
8948 xl* | bgxl* | bgf* | mpixl*)
8949 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8950 lt_prog_compiler_wl='-Wl,'
8951 lt_prog_compiler_pic='-qpic'
8952 lt_prog_compiler_static='-qstaticlink'
8953 ;;
8954 *)
8955 case `$CC -V 2>&1 | sed 5q` in
8956 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8957 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8958 lt_prog_compiler_pic='-KPIC'
8959 lt_prog_compiler_static='-Bstatic'
8960 lt_prog_compiler_wl=''
8961 ;;
8962 *Sun\ F* | *Sun*Fortran*)
8963 lt_prog_compiler_pic='-KPIC'
8964 lt_prog_compiler_static='-Bstatic'
8965 lt_prog_compiler_wl='-Qoption ld '
8966 ;;
8967 *Sun\ C*)
8968 # Sun C 5.9
8969 lt_prog_compiler_pic='-KPIC'
8970 lt_prog_compiler_static='-Bstatic'
8971 lt_prog_compiler_wl='-Wl,'
8972 ;;
8973 *Intel*\ [CF]*Compiler*)
8974 lt_prog_compiler_wl='-Wl,'
8975 lt_prog_compiler_pic='-fPIC'
8976 lt_prog_compiler_static='-static'
8977 ;;
8978 *Portland\ Group*)
8979 lt_prog_compiler_wl='-Wl,'
8980 lt_prog_compiler_pic='-fpic'
8981 lt_prog_compiler_static='-Bstatic'
8982 ;;
8983 esac
8984 ;;
8985 esac
8986 ;;
8987
8988 newsos6)
8989 lt_prog_compiler_pic='-KPIC'
8990 lt_prog_compiler_static='-Bstatic'
8991 ;;
8992
8993 *nto* | *qnx*)
8994 # QNX uses GNU C++, but need to define -shared option too, otherwise
8995 # it will coredump.
8996 lt_prog_compiler_pic='-fPIC -shared'
8997 ;;
8998
8999 osf3* | osf4* | osf5*)
9000 lt_prog_compiler_wl='-Wl,'
9001 # All OSF/1 code is PIC.
9002 lt_prog_compiler_static='-non_shared'
9003 ;;
9004
9005 rdos*)
9006 lt_prog_compiler_static='-non_shared'
9007 ;;
9008
9009 solaris*)
9010 lt_prog_compiler_pic='-KPIC'
9011 lt_prog_compiler_static='-Bstatic'
9012 case $cc_basename in
9013 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9014 lt_prog_compiler_wl='-Qoption ld ';;
9015 *)
9016 lt_prog_compiler_wl='-Wl,';;
9017 esac
9018 ;;
9019
9020 sunos4*)
9021 lt_prog_compiler_wl='-Qoption ld '
9022 lt_prog_compiler_pic='-PIC'
9023 lt_prog_compiler_static='-Bstatic'
9024 ;;
9025
9026 sysv4 | sysv4.2uw2* | sysv4.3*)
9027 lt_prog_compiler_wl='-Wl,'
9028 lt_prog_compiler_pic='-KPIC'
9029 lt_prog_compiler_static='-Bstatic'
9030 ;;
9031
9032 sysv4*MP*)
9033 if test -d /usr/nec ;then
9034 lt_prog_compiler_pic='-Kconform_pic'
9035 lt_prog_compiler_static='-Bstatic'
9036 fi
9037 ;;
9038
9039 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9040 lt_prog_compiler_wl='-Wl,'
9041 lt_prog_compiler_pic='-KPIC'
9042 lt_prog_compiler_static='-Bstatic'
9043 ;;
9044
9045 unicos*)
9046 lt_prog_compiler_wl='-Wl,'
9047 lt_prog_compiler_can_build_shared=no
9048 ;;
9049
9050 uts4*)
9051 lt_prog_compiler_pic='-pic'
9052 lt_prog_compiler_static='-Bstatic'
9053 ;;
9054
9055 *)
9056 lt_prog_compiler_can_build_shared=no
9057 ;;
9058 esac
9059 fi
9060
9061 case $host_os in
9062 # For platforms which do not support PIC, -DPIC is meaningless:
9063 *djgpp*)
9064 lt_prog_compiler_pic=
9065 ;;
9066 *)
9067 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9068 ;;
9069 esac
9070
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9072 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9073 if ${lt_cv_prog_compiler_pic+:} false; then :
9074 $as_echo_n "(cached) " >&6
9075 else
9076 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9077 fi
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9079 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9080 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9081
9082 #
9083 # Check to make sure the PIC flag actually works.
9084 #
9085 if test -n "$lt_prog_compiler_pic"; then
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9087 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9088 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9089 $as_echo_n "(cached) " >&6
9090 else
9091 lt_cv_prog_compiler_pic_works=no
9092 ac_outfile=conftest.$ac_objext
9093 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9094 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9095 # Insert the option either (1) after the last *FLAGS variable, or
9096 # (2) before a word containing "conftest.", or (3) at the end.
9097 # Note that $ac_compile itself does not contain backslashes and begins
9098 # with a dollar sign (not a hyphen), so the echo should work correctly.
9099 # The option is referenced via a variable to avoid confusing sed.
9100 lt_compile=`echo "$ac_compile" | $SED \
9101 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9102 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9103 -e 's:$: $lt_compiler_flag:'`
9104 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9105 (eval "$lt_compile" 2>conftest.err)
9106 ac_status=$?
9107 cat conftest.err >&5
9108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109 if (exit $ac_status) && test -s "$ac_outfile"; then
9110 # The compiler can only warn and ignore the option if not recognized
9111 # So say no if there are warnings other than the usual output.
9112 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9113 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9114 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9115 lt_cv_prog_compiler_pic_works=yes
9116 fi
9117 fi
9118 $RM conftest*
9119
9120 fi
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9122 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9123
9124 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9125 case $lt_prog_compiler_pic in
9126 "" | " "*) ;;
9127 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9128 esac
9129 else
9130 lt_prog_compiler_pic=
9131 lt_prog_compiler_can_build_shared=no
9132 fi
9133
9134 fi
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146 #
9147 # Check to make sure the static flag actually works.
9148 #
9149 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9151 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9152 if ${lt_cv_prog_compiler_static_works+:} false; then :
9153 $as_echo_n "(cached) " >&6
9154 else
9155 lt_cv_prog_compiler_static_works=no
9156 save_LDFLAGS="$LDFLAGS"
9157 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9158 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9159 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9160 # The linker can only warn and ignore the option if not recognized
9161 # So say no if there are warnings
9162 if test -s conftest.err; then
9163 # Append any errors to the config.log.
9164 cat conftest.err 1>&5
9165 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9166 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9167 if diff conftest.exp conftest.er2 >/dev/null; then
9168 lt_cv_prog_compiler_static_works=yes
9169 fi
9170 else
9171 lt_cv_prog_compiler_static_works=yes
9172 fi
9173 fi
9174 $RM -r conftest*
9175 LDFLAGS="$save_LDFLAGS"
9176
9177 fi
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9179 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9180
9181 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9182 :
9183 else
9184 lt_prog_compiler_static=
9185 fi
9186
9187
9188
9189
9190
9191
9192
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9194 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9195 if ${lt_cv_prog_compiler_c_o+:} false; then :
9196 $as_echo_n "(cached) " >&6
9197 else
9198 lt_cv_prog_compiler_c_o=no
9199 $RM -r conftest 2>/dev/null
9200 mkdir conftest
9201 cd conftest
9202 mkdir out
9203 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9204
9205 lt_compiler_flag="-o out/conftest2.$ac_objext"
9206 # Insert the option either (1) after the last *FLAGS variable, or
9207 # (2) before a word containing "conftest.", or (3) at the end.
9208 # Note that $ac_compile itself does not contain backslashes and begins
9209 # with a dollar sign (not a hyphen), so the echo should work correctly.
9210 lt_compile=`echo "$ac_compile" | $SED \
9211 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9212 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9213 -e 's:$: $lt_compiler_flag:'`
9214 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9215 (eval "$lt_compile" 2>out/conftest.err)
9216 ac_status=$?
9217 cat out/conftest.err >&5
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9220 then
9221 # The compiler can only warn and ignore the option if not recognized
9222 # So say no if there are warnings
9223 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9224 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9225 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9226 lt_cv_prog_compiler_c_o=yes
9227 fi
9228 fi
9229 chmod u+w . 2>&5
9230 $RM conftest*
9231 # SGI C++ compiler will create directory out/ii_files/ for
9232 # template instantiation
9233 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9234 $RM out/* && rmdir out
9235 cd ..
9236 $RM -r conftest
9237 $RM conftest*
9238
9239 fi
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9241 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9242
9243
9244
9245
9246
9247
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9249 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9250 if ${lt_cv_prog_compiler_c_o+:} false; then :
9251 $as_echo_n "(cached) " >&6
9252 else
9253 lt_cv_prog_compiler_c_o=no
9254 $RM -r conftest 2>/dev/null
9255 mkdir conftest
9256 cd conftest
9257 mkdir out
9258 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9259
9260 lt_compiler_flag="-o out/conftest2.$ac_objext"
9261 # Insert the option either (1) after the last *FLAGS variable, or
9262 # (2) before a word containing "conftest.", or (3) at the end.
9263 # Note that $ac_compile itself does not contain backslashes and begins
9264 # with a dollar sign (not a hyphen), so the echo should work correctly.
9265 lt_compile=`echo "$ac_compile" | $SED \
9266 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9267 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9268 -e 's:$: $lt_compiler_flag:'`
9269 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9270 (eval "$lt_compile" 2>out/conftest.err)
9271 ac_status=$?
9272 cat out/conftest.err >&5
9273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9275 then
9276 # The compiler can only warn and ignore the option if not recognized
9277 # So say no if there are warnings
9278 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9279 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9280 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9281 lt_cv_prog_compiler_c_o=yes
9282 fi
9283 fi
9284 chmod u+w . 2>&5
9285 $RM conftest*
9286 # SGI C++ compiler will create directory out/ii_files/ for
9287 # template instantiation
9288 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9289 $RM out/* && rmdir out
9290 cd ..
9291 $RM -r conftest
9292 $RM conftest*
9293
9294 fi
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9296 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9297
9298
9299
9300
9301 hard_links="nottested"
9302 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9303 # do not overwrite the value of need_locks provided by the user
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9305 $as_echo_n "checking if we can lock with hard links... " >&6; }
9306 hard_links=yes
9307 $RM conftest*
9308 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9309 touch conftest.a
9310 ln conftest.a conftest.b 2>&5 || hard_links=no
9311 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9313 $as_echo "$hard_links" >&6; }
9314 if test "$hard_links" = no; then
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9316 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9317 need_locks=warn
9318 fi
9319 else
9320 need_locks=no
9321 fi
9322
9323
9324
9325
9326
9327
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9329 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9330
9331 runpath_var=
9332 allow_undefined_flag=
9333 always_export_symbols=no
9334 archive_cmds=
9335 archive_expsym_cmds=
9336 compiler_needs_object=no
9337 enable_shared_with_static_runtimes=no
9338 export_dynamic_flag_spec=
9339 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9340 hardcode_automatic=no
9341 hardcode_direct=no
9342 hardcode_direct_absolute=no
9343 hardcode_libdir_flag_spec=
9344 hardcode_libdir_separator=
9345 hardcode_minus_L=no
9346 hardcode_shlibpath_var=unsupported
9347 inherit_rpath=no
9348 link_all_deplibs=unknown
9349 module_cmds=
9350 module_expsym_cmds=
9351 old_archive_from_new_cmds=
9352 old_archive_from_expsyms_cmds=
9353 thread_safe_flag_spec=
9354 whole_archive_flag_spec=
9355 # include_expsyms should be a list of space-separated symbols to be *always*
9356 # included in the symbol list
9357 include_expsyms=
9358 # exclude_expsyms can be an extended regexp of symbols to exclude
9359 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9360 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9361 # as well as any symbol that contains `d'.
9362 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9363 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9364 # platforms (ab)use it in PIC code, but their linkers get confused if
9365 # the symbol is explicitly referenced. Since portable code cannot
9366 # rely on this symbol name, it's probably fine to never include it in
9367 # preloaded symbol tables.
9368 # Exclude shared library initialization/finalization symbols.
9369 extract_expsyms_cmds=
9370
9371 case $host_os in
9372 cygwin* | mingw* | pw32* | cegcc*)
9373 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9374 # When not using gcc, we currently assume that we are using
9375 # Microsoft Visual C++.
9376 if test "$GCC" != yes; then
9377 with_gnu_ld=no
9378 fi
9379 ;;
9380 interix*)
9381 # we just hope/assume this is gcc and not c89 (= MSVC++)
9382 with_gnu_ld=yes
9383 ;;
9384 openbsd*)
9385 with_gnu_ld=no
9386 ;;
9387 linux* | k*bsd*-gnu | gnu*)
9388 link_all_deplibs=no
9389 ;;
9390 esac
9391
9392 ld_shlibs=yes
9393
9394 # On some targets, GNU ld is compatible enough with the native linker
9395 # that we're better off using the native interface for both.
9396 lt_use_gnu_ld_interface=no
9397 if test "$with_gnu_ld" = yes; then
9398 case $host_os in
9399 aix*)
9400 # The AIX port of GNU ld has always aspired to compatibility
9401 # with the native linker. However, as the warning in the GNU ld
9402 # block says, versions before 2.19.5* couldn't really create working
9403 # shared libraries, regardless of the interface used.
9404 case `$LD -v 2>&1` in
9405 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9406 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9407 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9408 *)
9409 lt_use_gnu_ld_interface=yes
9410 ;;
9411 esac
9412 ;;
9413 *)
9414 lt_use_gnu_ld_interface=yes
9415 ;;
9416 esac
9417 fi
9418
9419 if test "$lt_use_gnu_ld_interface" = yes; then
9420 # If archive_cmds runs LD, not CC, wlarc should be empty
9421 wlarc='${wl}'
9422
9423 # Set some defaults for GNU ld with shared library support. These
9424 # are reset later if shared libraries are not supported. Putting them
9425 # here allows them to be overridden if necessary.
9426 runpath_var=LD_RUN_PATH
9427 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9428 export_dynamic_flag_spec='${wl}--export-dynamic'
9429 # ancient GNU ld didn't support --whole-archive et. al.
9430 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9431 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9432 else
9433 whole_archive_flag_spec=
9434 fi
9435 supports_anon_versioning=no
9436 case `$LD -v 2>&1` in
9437 *GNU\ gold*) supports_anon_versioning=yes ;;
9438 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9439 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9440 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9441 *\ 2.11.*) ;; # other 2.11 versions
9442 *) supports_anon_versioning=yes ;;
9443 esac
9444
9445 # See if GNU ld supports shared libraries.
9446 case $host_os in
9447 aix[3-9]*)
9448 # On AIX/PPC, the GNU linker is very broken
9449 if test "$host_cpu" != ia64; then
9450 ld_shlibs=no
9451 cat <<_LT_EOF 1>&2
9452
9453 *** Warning: the GNU linker, at least up to release 2.19, is reported
9454 *** to be unable to reliably create shared libraries on AIX.
9455 *** Therefore, libtool is disabling shared libraries support. If you
9456 *** really care for shared libraries, you may want to install binutils
9457 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9458 *** You will then need to restart the configuration process.
9459
9460 _LT_EOF
9461 fi
9462 ;;
9463
9464 amigaos*)
9465 case $host_cpu in
9466 powerpc)
9467 # see comment about AmigaOS4 .so support
9468 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9469 archive_expsym_cmds=''
9470 ;;
9471 m68k)
9472 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)'
9473 hardcode_libdir_flag_spec='-L$libdir'
9474 hardcode_minus_L=yes
9475 ;;
9476 esac
9477 ;;
9478
9479 beos*)
9480 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9481 allow_undefined_flag=unsupported
9482 # Joseph Beckenbach <[email protected]> says some releases of gcc
9483 # support --undefined. This deserves some investigation. FIXME
9484 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9485 else
9486 ld_shlibs=no
9487 fi
9488 ;;
9489
9490 cygwin* | mingw* | pw32* | cegcc*)
9491 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9492 # as there is no search path for DLLs.
9493 hardcode_libdir_flag_spec='-L$libdir'
9494 export_dynamic_flag_spec='${wl}--export-all-symbols'
9495 allow_undefined_flag=unsupported
9496 always_export_symbols=no
9497 enable_shared_with_static_runtimes=yes
9498 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9499 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9500
9501 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9502 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9503 # If the export-symbols file already is a .def file (1st line
9504 # is EXPORTS), use it as is; otherwise, prepend...
9505 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9506 cp $export_symbols $output_objdir/$soname.def;
9507 else
9508 echo EXPORTS > $output_objdir/$soname.def;
9509 cat $export_symbols >> $output_objdir/$soname.def;
9510 fi~
9511 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9512 else
9513 ld_shlibs=no
9514 fi
9515 ;;
9516
9517 haiku*)
9518 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9519 link_all_deplibs=yes
9520 ;;
9521
9522 interix[3-9]*)
9523 hardcode_direct=no
9524 hardcode_shlibpath_var=no
9525 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9526 export_dynamic_flag_spec='${wl}-E'
9527 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9528 # Instead, shared libraries are loaded at an image base (0x10000000 by
9529 # default) and relocated if they conflict, which is a slow very memory
9530 # consuming and fragmenting process. To avoid this, we pick a random,
9531 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9532 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9533 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9534 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'
9535 ;;
9536
9537 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9538 tmp_diet=no
9539 if test "$host_os" = linux-dietlibc; then
9540 case $cc_basename in
9541 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9542 esac
9543 fi
9544 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9545 && test "$tmp_diet" = no
9546 then
9547 tmp_addflag=' $pic_flag'
9548 tmp_sharedflag='-shared'
9549 case $cc_basename,$host_cpu in
9550 pgcc*) # Portland Group C compiler
9551 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'
9552 tmp_addflag=' $pic_flag'
9553 ;;
9554 pgf77* | pgf90* | pgf95* | pgfortran*)
9555 # Portland Group f77 and f90 compilers
9556 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'
9557 tmp_addflag=' $pic_flag -Mnomain' ;;
9558 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9559 tmp_addflag=' -i_dynamic' ;;
9560 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9561 tmp_addflag=' -i_dynamic -nofor_main' ;;
9562 ifc* | ifort*) # Intel Fortran compiler
9563 tmp_addflag=' -nofor_main' ;;
9564 lf95*) # Lahey Fortran 8.1
9565 whole_archive_flag_spec=
9566 tmp_sharedflag='--shared' ;;
9567 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9568 tmp_sharedflag='-qmkshrobj'
9569 tmp_addflag= ;;
9570 nvcc*) # Cuda Compiler Driver 2.2
9571 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'
9572 compiler_needs_object=yes
9573 ;;
9574 esac
9575 case `$CC -V 2>&1 | sed 5q` in
9576 *Sun\ C*) # Sun C 5.9
9577 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'
9578 compiler_needs_object=yes
9579 tmp_sharedflag='-G' ;;
9580 *Sun\ F*) # Sun Fortran 8.3
9581 tmp_sharedflag='-G' ;;
9582 esac
9583 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9584
9585 if test "x$supports_anon_versioning" = xyes; then
9586 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9587 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9588 echo "local: *; };" >> $output_objdir/$libname.ver~
9589 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9590 fi
9591
9592 case $cc_basename in
9593 xlf* | bgf* | bgxlf* | mpixlf*)
9594 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9595 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9596 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9597 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9598 if test "x$supports_anon_versioning" = xyes; then
9599 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9600 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9601 echo "local: *; };" >> $output_objdir/$libname.ver~
9602 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9603 fi
9604 ;;
9605 esac
9606 else
9607 ld_shlibs=no
9608 fi
9609 ;;
9610
9611 netbsd* | netbsdelf*-gnu)
9612 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9613 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9614 wlarc=
9615 else
9616 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9617 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9618 fi
9619 ;;
9620
9621 solaris*)
9622 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9623 ld_shlibs=no
9624 cat <<_LT_EOF 1>&2
9625
9626 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9627 *** create shared libraries on Solaris systems. Therefore, libtool
9628 *** is disabling shared libraries support. We urge you to upgrade GNU
9629 *** binutils to release 2.9.1 or newer. Another option is to modify
9630 *** your PATH or compiler configuration so that the native linker is
9631 *** used, and then restart.
9632
9633 _LT_EOF
9634 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9635 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9636 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9637 else
9638 ld_shlibs=no
9639 fi
9640 ;;
9641
9642 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9643 case `$LD -v 2>&1` in
9644 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9645 ld_shlibs=no
9646 cat <<_LT_EOF 1>&2
9647
9648 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9649 *** reliably create shared libraries on SCO systems. Therefore, libtool
9650 *** is disabling shared libraries support. We urge you to upgrade GNU
9651 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9652 *** your PATH or compiler configuration so that the native linker is
9653 *** used, and then restart.
9654
9655 _LT_EOF
9656 ;;
9657 *)
9658 # For security reasons, it is highly recommended that you always
9659 # use absolute paths for naming shared libraries, and exclude the
9660 # DT_RUNPATH tag from executables and libraries. But doing so
9661 # requires that you compile everything twice, which is a pain.
9662 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9663 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9664 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9665 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9666 else
9667 ld_shlibs=no
9668 fi
9669 ;;
9670 esac
9671 ;;
9672
9673 sunos4*)
9674 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9675 wlarc=
9676 hardcode_direct=yes
9677 hardcode_shlibpath_var=no
9678 ;;
9679
9680 *)
9681 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9682 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9683 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9684 else
9685 ld_shlibs=no
9686 fi
9687 ;;
9688 esac
9689
9690 if test "$ld_shlibs" = no; then
9691 runpath_var=
9692 hardcode_libdir_flag_spec=
9693 export_dynamic_flag_spec=
9694 whole_archive_flag_spec=
9695 fi
9696 else
9697 # PORTME fill in a description of your system's linker (not GNU ld)
9698 case $host_os in
9699 aix3*)
9700 allow_undefined_flag=unsupported
9701 always_export_symbols=yes
9702 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'
9703 # Note: this linker hardcodes the directories in LIBPATH if there
9704 # are no directories specified by -L.
9705 hardcode_minus_L=yes
9706 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9707 # Neither direct hardcoding nor static linking is supported with a
9708 # broken collect2.
9709 hardcode_direct=unsupported
9710 fi
9711 ;;
9712
9713 aix[4-9]*)
9714 if test "$host_cpu" = ia64; then
9715 # On IA64, the linker does run time linking by default, so we don't
9716 # have to do anything special.
9717 aix_use_runtimelinking=no
9718 exp_sym_flag='-Bexport'
9719 no_entry_flag=""
9720 else
9721 # If we're using GNU nm, then we don't want the "-C" option.
9722 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9723 # Also, AIX nm treats weak defined symbols like other global
9724 # defined symbols, whereas GNU nm marks them as "W".
9725 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9726 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'
9727 else
9728 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'
9729 fi
9730 aix_use_runtimelinking=no
9731
9732 # Test if we are trying to use run time linking or normal
9733 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9734 # need to do runtime linking.
9735 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9736 for ld_flag in $LDFLAGS; do
9737 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9738 aix_use_runtimelinking=yes
9739 break
9740 fi
9741 done
9742 ;;
9743 esac
9744
9745 exp_sym_flag='-bexport'
9746 no_entry_flag='-bnoentry'
9747 fi
9748
9749 # When large executables or shared objects are built, AIX ld can
9750 # have problems creating the table of contents. If linking a library
9751 # or program results in "error TOC overflow" add -mminimal-toc to
9752 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9753 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9754
9755 archive_cmds=''
9756 hardcode_direct=yes
9757 hardcode_direct_absolute=yes
9758 hardcode_libdir_separator=':'
9759 link_all_deplibs=yes
9760 file_list_spec='${wl}-f,'
9761
9762 if test "$GCC" = yes; then
9763 case $host_os in aix4.[012]|aix4.[012].*)
9764 # We only want to do this on AIX 4.2 and lower, the check
9765 # below for broken collect2 doesn't work under 4.3+
9766 collect2name=`${CC} -print-prog-name=collect2`
9767 if test -f "$collect2name" &&
9768 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9769 then
9770 # We have reworked collect2
9771 :
9772 else
9773 # We have old collect2
9774 hardcode_direct=unsupported
9775 # It fails to find uninstalled libraries when the uninstalled
9776 # path is not listed in the libpath. Setting hardcode_minus_L
9777 # to unsupported forces relinking
9778 hardcode_minus_L=yes
9779 hardcode_libdir_flag_spec='-L$libdir'
9780 hardcode_libdir_separator=
9781 fi
9782 ;;
9783 esac
9784 shared_flag='-shared'
9785 if test "$aix_use_runtimelinking" = yes; then
9786 shared_flag="$shared_flag "'${wl}-G'
9787 fi
9788 link_all_deplibs=no
9789 else
9790 # not using gcc
9791 if test "$host_cpu" = ia64; then
9792 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9793 # chokes on -Wl,-G. The following line is correct:
9794 shared_flag='-G'
9795 else
9796 if test "$aix_use_runtimelinking" = yes; then
9797 shared_flag='${wl}-G'
9798 else
9799 shared_flag='${wl}-bM:SRE'
9800 fi
9801 fi
9802 fi
9803
9804 export_dynamic_flag_spec='${wl}-bexpall'
9805 # It seems that -bexpall does not export symbols beginning with
9806 # underscore (_), so it is better to generate a list of symbols to export.
9807 always_export_symbols=yes
9808 if test "$aix_use_runtimelinking" = yes; then
9809 # Warning - without using the other runtime loading flags (-brtl),
9810 # -berok will link without error, but may produce a broken library.
9811 allow_undefined_flag='-berok'
9812 # Determine the default libpath from the value encoded in an
9813 # empty executable.
9814 if test "${lt_cv_aix_libpath+set}" = set; then
9815 aix_libpath=$lt_cv_aix_libpath
9816 else
9817 if ${lt_cv_aix_libpath_+:} false; then :
9818 $as_echo_n "(cached) " >&6
9819 else
9820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9821 /* end confdefs.h. */
9822
9823 int
9824 main ()
9825 {
9826
9827 ;
9828 return 0;
9829 }
9830 _ACEOF
9831 if ac_fn_c_try_link "$LINENO"; then :
9832
9833 lt_aix_libpath_sed='
9834 /Import File Strings/,/^$/ {
9835 /^0/ {
9836 s/^0 *\([^ ]*\) *$/\1/
9837 p
9838 }
9839 }'
9840 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9841 # Check for a 64-bit object if we didn't find anything.
9842 if test -z "$lt_cv_aix_libpath_"; then
9843 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9844 fi
9845 fi
9846 rm -f core conftest.err conftest.$ac_objext \
9847 conftest$ac_exeext conftest.$ac_ext
9848 if test -z "$lt_cv_aix_libpath_"; then
9849 lt_cv_aix_libpath_="/usr/lib:/lib"
9850 fi
9851
9852 fi
9853
9854 aix_libpath=$lt_cv_aix_libpath_
9855 fi
9856
9857 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9858 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"
9859 else
9860 if test "$host_cpu" = ia64; then
9861 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9862 allow_undefined_flag="-z nodefs"
9863 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"
9864 else
9865 # Determine the default libpath from the value encoded in an
9866 # empty executable.
9867 if test "${lt_cv_aix_libpath+set}" = set; then
9868 aix_libpath=$lt_cv_aix_libpath
9869 else
9870 if ${lt_cv_aix_libpath_+:} false; then :
9871 $as_echo_n "(cached) " >&6
9872 else
9873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9874 /* end confdefs.h. */
9875
9876 int
9877 main ()
9878 {
9879
9880 ;
9881 return 0;
9882 }
9883 _ACEOF
9884 if ac_fn_c_try_link "$LINENO"; then :
9885
9886 lt_aix_libpath_sed='
9887 /Import File Strings/,/^$/ {
9888 /^0/ {
9889 s/^0 *\([^ ]*\) *$/\1/
9890 p
9891 }
9892 }'
9893 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9894 # Check for a 64-bit object if we didn't find anything.
9895 if test -z "$lt_cv_aix_libpath_"; then
9896 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9897 fi
9898 fi
9899 rm -f core conftest.err conftest.$ac_objext \
9900 conftest$ac_exeext conftest.$ac_ext
9901 if test -z "$lt_cv_aix_libpath_"; then
9902 lt_cv_aix_libpath_="/usr/lib:/lib"
9903 fi
9904
9905 fi
9906
9907 aix_libpath=$lt_cv_aix_libpath_
9908 fi
9909
9910 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9911 # Warning - without using the other run time loading flags,
9912 # -berok will link without error, but may produce a broken library.
9913 no_undefined_flag=' ${wl}-bernotok'
9914 allow_undefined_flag=' ${wl}-berok'
9915 if test "$with_gnu_ld" = yes; then
9916 # We only use this code for GNU lds that support --whole-archive.
9917 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9918 else
9919 # Exported symbols can be pulled into shared objects from archives
9920 whole_archive_flag_spec='$convenience'
9921 fi
9922 archive_cmds_need_lc=yes
9923 # This is similar to how AIX traditionally builds its shared libraries.
9924 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'
9925 fi
9926 fi
9927 ;;
9928
9929 amigaos*)
9930 case $host_cpu in
9931 powerpc)
9932 # see comment about AmigaOS4 .so support
9933 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9934 archive_expsym_cmds=''
9935 ;;
9936 m68k)
9937 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)'
9938 hardcode_libdir_flag_spec='-L$libdir'
9939 hardcode_minus_L=yes
9940 ;;
9941 esac
9942 ;;
9943
9944 bsdi[45]*)
9945 export_dynamic_flag_spec=-rdynamic
9946 ;;
9947
9948 cygwin* | mingw* | pw32* | cegcc*)
9949 # When not using gcc, we currently assume that we are using
9950 # Microsoft Visual C++.
9951 # hardcode_libdir_flag_spec is actually meaningless, as there is
9952 # no search path for DLLs.
9953 case $cc_basename in
9954 cl*)
9955 # Native MSVC
9956 hardcode_libdir_flag_spec=' '
9957 allow_undefined_flag=unsupported
9958 always_export_symbols=yes
9959 file_list_spec='@'
9960 # Tell ltmain to make .lib files, not .a files.
9961 libext=lib
9962 # Tell ltmain to make .dll files, not .so files.
9963 shrext_cmds=".dll"
9964 # FIXME: Setting linknames here is a bad hack.
9965 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9966 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9967 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9968 else
9969 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9970 fi~
9971 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9972 linknames='
9973 # The linker will not automatically build a static lib if we build a DLL.
9974 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9975 enable_shared_with_static_runtimes=yes
9976 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9977 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9978 # Don't use ranlib
9979 old_postinstall_cmds='chmod 644 $oldlib'
9980 postlink_cmds='lt_outputfile="@OUTPUT@"~
9981 lt_tool_outputfile="@TOOL_OUTPUT@"~
9982 case $lt_outputfile in
9983 *.exe|*.EXE) ;;
9984 *)
9985 lt_outputfile="$lt_outputfile.exe"
9986 lt_tool_outputfile="$lt_tool_outputfile.exe"
9987 ;;
9988 esac~
9989 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9990 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9991 $RM "$lt_outputfile.manifest";
9992 fi'
9993 ;;
9994 *)
9995 # Assume MSVC wrapper
9996 hardcode_libdir_flag_spec=' '
9997 allow_undefined_flag=unsupported
9998 # Tell ltmain to make .lib files, not .a files.
9999 libext=lib
10000 # Tell ltmain to make .dll files, not .so files.
10001 shrext_cmds=".dll"
10002 # FIXME: Setting linknames here is a bad hack.
10003 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10004 # The linker will automatically build a .lib file if we build a DLL.
10005 old_archive_from_new_cmds='true'
10006 # FIXME: Should let the user specify the lib program.
10007 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10008 enable_shared_with_static_runtimes=yes
10009 ;;
10010 esac
10011 ;;
10012
10013 darwin* | rhapsody*)
10014
10015
10016 archive_cmds_need_lc=no
10017 hardcode_direct=no
10018 hardcode_automatic=yes
10019 hardcode_shlibpath_var=unsupported
10020 if test "$lt_cv_ld_force_load" = "yes"; then
10021 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\"`'
10022
10023 else
10024 whole_archive_flag_spec=''
10025 fi
10026 link_all_deplibs=yes
10027 allow_undefined_flag="$_lt_dar_allow_undefined"
10028 case $cc_basename in
10029 ifort*) _lt_dar_can_shared=yes ;;
10030 *) _lt_dar_can_shared=$GCC ;;
10031 esac
10032 if test "$_lt_dar_can_shared" = "yes"; then
10033 output_verbose_link_cmd=func_echo_all
10034 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10035 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10036 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}"
10037 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}"
10038
10039 else
10040 ld_shlibs=no
10041 fi
10042
10043 ;;
10044
10045 dgux*)
10046 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10047 hardcode_libdir_flag_spec='-L$libdir'
10048 hardcode_shlibpath_var=no
10049 ;;
10050
10051 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10052 # support. Future versions do this automatically, but an explicit c++rt0.o
10053 # does not break anything, and helps significantly (at the cost of a little
10054 # extra space).
10055 freebsd2.2*)
10056 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10057 hardcode_libdir_flag_spec='-R$libdir'
10058 hardcode_direct=yes
10059 hardcode_shlibpath_var=no
10060 ;;
10061
10062 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10063 freebsd2.*)
10064 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10065 hardcode_direct=yes
10066 hardcode_minus_L=yes
10067 hardcode_shlibpath_var=no
10068 ;;
10069
10070 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10071 freebsd* | dragonfly*)
10072 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10073 hardcode_libdir_flag_spec='-R$libdir'
10074 hardcode_direct=yes
10075 hardcode_shlibpath_var=no
10076 ;;
10077
10078 hpux9*)
10079 if test "$GCC" = yes; then
10080 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10081 else
10082 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'
10083 fi
10084 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10085 hardcode_libdir_separator=:
10086 hardcode_direct=yes
10087
10088 # hardcode_minus_L: Not really in the search PATH,
10089 # but as the default location of the library.
10090 hardcode_minus_L=yes
10091 export_dynamic_flag_spec='${wl}-E'
10092 ;;
10093
10094 hpux10*)
10095 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10096 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10097 else
10098 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10099 fi
10100 if test "$with_gnu_ld" = no; then
10101 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10102 hardcode_libdir_separator=:
10103 hardcode_direct=yes
10104 hardcode_direct_absolute=yes
10105 export_dynamic_flag_spec='${wl}-E'
10106 # hardcode_minus_L: Not really in the search PATH,
10107 # but as the default location of the library.
10108 hardcode_minus_L=yes
10109 fi
10110 ;;
10111
10112 hpux11*)
10113 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10114 case $host_cpu in
10115 hppa*64*)
10116 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10117 ;;
10118 ia64*)
10119 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10120 ;;
10121 *)
10122 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10123 ;;
10124 esac
10125 else
10126 case $host_cpu in
10127 hppa*64*)
10128 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10129 ;;
10130 ia64*)
10131 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10132 ;;
10133 *)
10134
10135 # Older versions of the 11.00 compiler do not understand -b yet
10136 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10138 $as_echo_n "checking if $CC understands -b... " >&6; }
10139 if ${lt_cv_prog_compiler__b+:} false; then :
10140 $as_echo_n "(cached) " >&6
10141 else
10142 lt_cv_prog_compiler__b=no
10143 save_LDFLAGS="$LDFLAGS"
10144 LDFLAGS="$LDFLAGS -b"
10145 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10146 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10147 # The linker can only warn and ignore the option if not recognized
10148 # So say no if there are warnings
10149 if test -s conftest.err; then
10150 # Append any errors to the config.log.
10151 cat conftest.err 1>&5
10152 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10153 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10154 if diff conftest.exp conftest.er2 >/dev/null; then
10155 lt_cv_prog_compiler__b=yes
10156 fi
10157 else
10158 lt_cv_prog_compiler__b=yes
10159 fi
10160 fi
10161 $RM -r conftest*
10162 LDFLAGS="$save_LDFLAGS"
10163
10164 fi
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10166 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10167
10168 if test x"$lt_cv_prog_compiler__b" = xyes; then
10169 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10170 else
10171 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10172 fi
10173
10174 ;;
10175 esac
10176 fi
10177 if test "$with_gnu_ld" = no; then
10178 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10179 hardcode_libdir_separator=:
10180
10181 case $host_cpu in
10182 hppa*64*|ia64*)
10183 hardcode_direct=no
10184 hardcode_shlibpath_var=no
10185 ;;
10186 *)
10187 hardcode_direct=yes
10188 hardcode_direct_absolute=yes
10189 export_dynamic_flag_spec='${wl}-E'
10190
10191 # hardcode_minus_L: Not really in the search PATH,
10192 # but as the default location of the library.
10193 hardcode_minus_L=yes
10194 ;;
10195 esac
10196 fi
10197 ;;
10198
10199 irix5* | irix6* | nonstopux*)
10200 if test "$GCC" = yes; then
10201 archive_cmds='$CC -shared $pic_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'
10202 # Try to use the -exported_symbol ld option, if it does not
10203 # work, assume that -exports_file does not work either and
10204 # implicitly export all symbols.
10205 # This should be the same for all languages, so no per-tag cache variable.
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10207 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10208 if ${lt_cv_irix_exported_symbol+:} false; then :
10209 $as_echo_n "(cached) " >&6
10210 else
10211 save_LDFLAGS="$LDFLAGS"
10212 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10214 /* end confdefs.h. */
10215 int foo (void) { return 0; }
10216 _ACEOF
10217 if ac_fn_c_try_link "$LINENO"; then :
10218 lt_cv_irix_exported_symbol=yes
10219 else
10220 lt_cv_irix_exported_symbol=no
10221 fi
10222 rm -f core conftest.err conftest.$ac_objext \
10223 conftest$ac_exeext conftest.$ac_ext
10224 LDFLAGS="$save_LDFLAGS"
10225 fi
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10227 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10228 if test "$lt_cv_irix_exported_symbol" = yes; then
10229 archive_expsym_cmds='$CC -shared $pic_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 ${wl}-exports_file ${wl}$export_symbols -o $lib'
10230 fi
10231 else
10232 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'
10233 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'
10234 fi
10235 archive_cmds_need_lc='no'
10236 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10237 hardcode_libdir_separator=:
10238 inherit_rpath=yes
10239 link_all_deplibs=yes
10240 ;;
10241
10242 netbsd* | netbsdelf*-gnu)
10243 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10244 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10245 else
10246 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10247 fi
10248 hardcode_libdir_flag_spec='-R$libdir'
10249 hardcode_direct=yes
10250 hardcode_shlibpath_var=no
10251 ;;
10252
10253 newsos6)
10254 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10255 hardcode_direct=yes
10256 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10257 hardcode_libdir_separator=:
10258 hardcode_shlibpath_var=no
10259 ;;
10260
10261 *nto* | *qnx*)
10262 ;;
10263
10264 openbsd*)
10265 if test -f /usr/libexec/ld.so; then
10266 hardcode_direct=yes
10267 hardcode_shlibpath_var=no
10268 hardcode_direct_absolute=yes
10269 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10270 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10271 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10272 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10273 export_dynamic_flag_spec='${wl}-E'
10274 else
10275 case $host_os in
10276 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10277 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10278 hardcode_libdir_flag_spec='-R$libdir'
10279 ;;
10280 *)
10281 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10282 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10283 ;;
10284 esac
10285 fi
10286 else
10287 ld_shlibs=no
10288 fi
10289 ;;
10290
10291 os2*)
10292 hardcode_libdir_flag_spec='-L$libdir'
10293 hardcode_minus_L=yes
10294 allow_undefined_flag=unsupported
10295 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'
10296 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10297 ;;
10298
10299 osf3*)
10300 if test "$GCC" = yes; then
10301 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10302 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'
10303 else
10304 allow_undefined_flag=' -expect_unresolved \*'
10305 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'
10306 fi
10307 archive_cmds_need_lc='no'
10308 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10309 hardcode_libdir_separator=:
10310 ;;
10311
10312 osf4* | osf5*) # as osf3* with the addition of -msym flag
10313 if test "$GCC" = yes; then
10314 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10315 archive_cmds='$CC -shared${allow_undefined_flag} $pic_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'
10316 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10317 else
10318 allow_undefined_flag=' -expect_unresolved \*'
10319 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'
10320 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~
10321 $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'
10322
10323 # Both c and cxx compiler support -rpath directly
10324 hardcode_libdir_flag_spec='-rpath $libdir'
10325 fi
10326 archive_cmds_need_lc='no'
10327 hardcode_libdir_separator=:
10328 ;;
10329
10330 solaris*)
10331 no_undefined_flag=' -z defs'
10332 if test "$GCC" = yes; then
10333 wlarc='${wl}'
10334 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10335 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10336 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10337 else
10338 case `$CC -V 2>&1` in
10339 *"Compilers 5.0"*)
10340 wlarc=''
10341 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10342 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10343 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10344 ;;
10345 *)
10346 wlarc='${wl}'
10347 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10348 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10349 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10350 ;;
10351 esac
10352 fi
10353 hardcode_libdir_flag_spec='-R$libdir'
10354 hardcode_shlibpath_var=no
10355 case $host_os in
10356 solaris2.[0-5] | solaris2.[0-5].*) ;;
10357 *)
10358 # The compiler driver will combine and reorder linker options,
10359 # but understands `-z linker_flag'. GCC discards it without `$wl',
10360 # but is careful enough not to reorder.
10361 # Supported since Solaris 2.6 (maybe 2.5.1?)
10362 if test "$GCC" = yes; then
10363 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10364 else
10365 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10366 fi
10367 ;;
10368 esac
10369 link_all_deplibs=yes
10370 ;;
10371
10372 sunos4*)
10373 if test "x$host_vendor" = xsequent; then
10374 # Use $CC to link under sequent, because it throws in some extra .o
10375 # files that make .init and .fini sections work.
10376 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10377 else
10378 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10379 fi
10380 hardcode_libdir_flag_spec='-L$libdir'
10381 hardcode_direct=yes
10382 hardcode_minus_L=yes
10383 hardcode_shlibpath_var=no
10384 ;;
10385
10386 sysv4)
10387 case $host_vendor in
10388 sni)
10389 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10390 hardcode_direct=yes # is this really true???
10391 ;;
10392 siemens)
10393 ## LD is ld it makes a PLAMLIB
10394 ## CC just makes a GrossModule.
10395 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10396 reload_cmds='$CC -r -o $output$reload_objs'
10397 hardcode_direct=no
10398 ;;
10399 motorola)
10400 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10401 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10402 ;;
10403 esac
10404 runpath_var='LD_RUN_PATH'
10405 hardcode_shlibpath_var=no
10406 ;;
10407
10408 sysv4.3*)
10409 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10410 hardcode_shlibpath_var=no
10411 export_dynamic_flag_spec='-Bexport'
10412 ;;
10413
10414 sysv4*MP*)
10415 if test -d /usr/nec; then
10416 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10417 hardcode_shlibpath_var=no
10418 runpath_var=LD_RUN_PATH
10419 hardcode_runpath_var=yes
10420 ld_shlibs=yes
10421 fi
10422 ;;
10423
10424 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10425 no_undefined_flag='${wl}-z,text'
10426 archive_cmds_need_lc=no
10427 hardcode_shlibpath_var=no
10428 runpath_var='LD_RUN_PATH'
10429
10430 if test "$GCC" = yes; then
10431 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10432 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10433 else
10434 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10435 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10436 fi
10437 ;;
10438
10439 sysv5* | sco3.2v5* | sco5v6*)
10440 # Note: We can NOT use -z defs as we might desire, because we do not
10441 # link with -lc, and that would cause any symbols used from libc to
10442 # always be unresolved, which means just about no library would
10443 # ever link correctly. If we're not using GNU ld we use -z text
10444 # though, which does catch some bad symbols but isn't as heavy-handed
10445 # as -z defs.
10446 no_undefined_flag='${wl}-z,text'
10447 allow_undefined_flag='${wl}-z,nodefs'
10448 archive_cmds_need_lc=no
10449 hardcode_shlibpath_var=no
10450 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10451 hardcode_libdir_separator=':'
10452 link_all_deplibs=yes
10453 export_dynamic_flag_spec='${wl}-Bexport'
10454 runpath_var='LD_RUN_PATH'
10455
10456 if test "$GCC" = yes; then
10457 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10458 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10459 else
10460 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10461 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10462 fi
10463 ;;
10464
10465 uts4*)
10466 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10467 hardcode_libdir_flag_spec='-L$libdir'
10468 hardcode_shlibpath_var=no
10469 ;;
10470
10471 *)
10472 ld_shlibs=no
10473 ;;
10474 esac
10475
10476 if test x$host_vendor = xsni; then
10477 case $host in
10478 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10479 export_dynamic_flag_spec='${wl}-Blargedynsym'
10480 ;;
10481 esac
10482 fi
10483 fi
10484
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10486 $as_echo "$ld_shlibs" >&6; }
10487 test "$ld_shlibs" = no && can_build_shared=no
10488
10489 with_gnu_ld=$with_gnu_ld
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505 #
10506 # Do we need to explicitly link libc?
10507 #
10508 case "x$archive_cmds_need_lc" in
10509 x|xyes)
10510 # Assume -lc should be added
10511 archive_cmds_need_lc=yes
10512
10513 if test "$enable_shared" = yes && test "$GCC" = yes; then
10514 case $archive_cmds in
10515 *'~'*)
10516 # FIXME: we may have to deal with multi-command sequences.
10517 ;;
10518 '$CC '*)
10519 # Test whether the compiler implicitly links with -lc since on some
10520 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10521 # to ld, don't add -lc before -lgcc.
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10523 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10524 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10525 $as_echo_n "(cached) " >&6
10526 else
10527 $RM conftest*
10528 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10529
10530 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10531 (eval $ac_compile) 2>&5
10532 ac_status=$?
10533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10534 test $ac_status = 0; } 2>conftest.err; then
10535 soname=conftest
10536 lib=conftest
10537 libobjs=conftest.$ac_objext
10538 deplibs=
10539 wl=$lt_prog_compiler_wl
10540 pic_flag=$lt_prog_compiler_pic
10541 compiler_flags=-v
10542 linker_flags=-v
10543 verstring=
10544 output_objdir=.
10545 libname=conftest
10546 lt_save_allow_undefined_flag=$allow_undefined_flag
10547 allow_undefined_flag=
10548 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10549 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10550 ac_status=$?
10551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10552 test $ac_status = 0; }
10553 then
10554 lt_cv_archive_cmds_need_lc=no
10555 else
10556 lt_cv_archive_cmds_need_lc=yes
10557 fi
10558 allow_undefined_flag=$lt_save_allow_undefined_flag
10559 else
10560 cat conftest.err 1>&5
10561 fi
10562 $RM conftest*
10563
10564 fi
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10566 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10567 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10568 ;;
10569 esac
10570 fi
10571 ;;
10572 esac
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10726 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10727
10728 if test "$GCC" = yes; then
10729 case $host_os in
10730 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10731 *) lt_awk_arg="/^libraries:/" ;;
10732 esac
10733 case $host_os in
10734 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10735 *) lt_sed_strip_eq="s,=/,/,g" ;;
10736 esac
10737 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10738 case $lt_search_path_spec in
10739 *\;*)
10740 # if the path contains ";" then we assume it to be the separator
10741 # otherwise default to the standard path separator (i.e. ":") - it is
10742 # assumed that no part of a normal pathname contains ";" but that should
10743 # okay in the real world where ";" in dirpaths is itself problematic.
10744 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10745 ;;
10746 *)
10747 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10748 ;;
10749 esac
10750 # Ok, now we have the path, separated by spaces, we can step through it
10751 # and add multilib dir if necessary.
10752 lt_tmp_lt_search_path_spec=
10753 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10754 for lt_sys_path in $lt_search_path_spec; do
10755 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10756 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10757 else
10758 test -d "$lt_sys_path" && \
10759 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10760 fi
10761 done
10762 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10763 BEGIN {RS=" "; FS="/|\n";} {
10764 lt_foo="";
10765 lt_count=0;
10766 for (lt_i = NF; lt_i > 0; lt_i--) {
10767 if ($lt_i != "" && $lt_i != ".") {
10768 if ($lt_i == "..") {
10769 lt_count++;
10770 } else {
10771 if (lt_count == 0) {
10772 lt_foo="/" $lt_i lt_foo;
10773 } else {
10774 lt_count--;
10775 }
10776 }
10777 }
10778 }
10779 if (lt_foo != "") { lt_freq[lt_foo]++; }
10780 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10781 }'`
10782 # AWK program above erroneously prepends '/' to C:/dos/paths
10783 # for these hosts.
10784 case $host_os in
10785 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10786 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10787 esac
10788 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10789 else
10790 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10791 fi
10792 library_names_spec=
10793 libname_spec='lib$name'
10794 soname_spec=
10795 shrext_cmds=".so"
10796 postinstall_cmds=
10797 postuninstall_cmds=
10798 finish_cmds=
10799 finish_eval=
10800 shlibpath_var=
10801 shlibpath_overrides_runpath=unknown
10802 version_type=none
10803 dynamic_linker="$host_os ld.so"
10804 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10805 need_lib_prefix=unknown
10806 hardcode_into_libs=no
10807
10808 # when you set need_version to no, make sure it does not cause -set_version
10809 # flags to be left without arguments
10810 need_version=unknown
10811
10812 case $host_os in
10813 aix3*)
10814 version_type=linux # correct to gnu/linux during the next big refactor
10815 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10816 shlibpath_var=LIBPATH
10817
10818 # AIX 3 has no versioning support, so we append a major version to the name.
10819 soname_spec='${libname}${release}${shared_ext}$major'
10820 ;;
10821
10822 aix[4-9]*)
10823 version_type=linux # correct to gnu/linux during the next big refactor
10824 need_lib_prefix=no
10825 need_version=no
10826 hardcode_into_libs=yes
10827 if test "$host_cpu" = ia64; then
10828 # AIX 5 supports IA64
10829 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10830 shlibpath_var=LD_LIBRARY_PATH
10831 else
10832 # With GCC up to 2.95.x, collect2 would create an import file
10833 # for dependence libraries. The import file would start with
10834 # the line `#! .'. This would cause the generated library to
10835 # depend on `.', always an invalid library. This was fixed in
10836 # development snapshots of GCC prior to 3.0.
10837 case $host_os in
10838 aix4 | aix4.[01] | aix4.[01].*)
10839 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10840 echo ' yes '
10841 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10842 :
10843 else
10844 can_build_shared=no
10845 fi
10846 ;;
10847 esac
10848 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10849 # soname into executable. Probably we can add versioning support to
10850 # collect2, so additional links can be useful in future.
10851 if test "$aix_use_runtimelinking" = yes; then
10852 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10853 # instead of lib<name>.a to let people know that these are not
10854 # typical AIX shared libraries.
10855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10856 else
10857 # We preserve .a as extension for shared libraries through AIX4.2
10858 # and later when we are not doing run time linking.
10859 library_names_spec='${libname}${release}.a $libname.a'
10860 soname_spec='${libname}${release}${shared_ext}$major'
10861 fi
10862 shlibpath_var=LIBPATH
10863 fi
10864 ;;
10865
10866 amigaos*)
10867 case $host_cpu in
10868 powerpc)
10869 # Since July 2007 AmigaOS4 officially supports .so libraries.
10870 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10872 ;;
10873 m68k)
10874 library_names_spec='$libname.ixlibrary $libname.a'
10875 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10876 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'
10877 ;;
10878 esac
10879 ;;
10880
10881 beos*)
10882 library_names_spec='${libname}${shared_ext}'
10883 dynamic_linker="$host_os ld.so"
10884 shlibpath_var=LIBRARY_PATH
10885 ;;
10886
10887 bsdi[45]*)
10888 version_type=linux # correct to gnu/linux during the next big refactor
10889 need_version=no
10890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10891 soname_spec='${libname}${release}${shared_ext}$major'
10892 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10893 shlibpath_var=LD_LIBRARY_PATH
10894 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10895 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10896 # the default ld.so.conf also contains /usr/contrib/lib and
10897 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10898 # libtool to hard-code these into programs
10899 ;;
10900
10901 cygwin* | mingw* | pw32* | cegcc*)
10902 version_type=windows
10903 shrext_cmds=".dll"
10904 need_version=no
10905 need_lib_prefix=no
10906
10907 case $GCC,$cc_basename in
10908 yes,*)
10909 # gcc
10910 library_names_spec='$libname.dll.a'
10911 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10912 postinstall_cmds='base_file=`basename \${file}`~
10913 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10914 dldir=$destdir/`dirname \$dlpath`~
10915 test -d \$dldir || mkdir -p \$dldir~
10916 $install_prog $dir/$dlname \$dldir/$dlname~
10917 chmod a+x \$dldir/$dlname~
10918 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10919 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10920 fi'
10921 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10922 dlpath=$dir/\$dldll~
10923 $RM \$dlpath'
10924 shlibpath_overrides_runpath=yes
10925
10926 case $host_os in
10927 cygwin*)
10928 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10929 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10930
10931 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10932 ;;
10933 mingw* | cegcc*)
10934 # MinGW DLLs use traditional 'lib' prefix
10935 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10936 ;;
10937 pw32*)
10938 # pw32 DLLs use 'pw' prefix rather than 'lib'
10939 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10940 ;;
10941 esac
10942 dynamic_linker='Win32 ld.exe'
10943 ;;
10944
10945 *,cl*)
10946 # Native MSVC
10947 libname_spec='$name'
10948 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10949 library_names_spec='${libname}.dll.lib'
10950
10951 case $build_os in
10952 mingw*)
10953 sys_lib_search_path_spec=
10954 lt_save_ifs=$IFS
10955 IFS=';'
10956 for lt_path in $LIB
10957 do
10958 IFS=$lt_save_ifs
10959 # Let DOS variable expansion print the short 8.3 style file name.
10960 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10961 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10962 done
10963 IFS=$lt_save_ifs
10964 # Convert to MSYS style.
10965 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10966 ;;
10967 cygwin*)
10968 # Convert to unix form, then to dos form, then back to unix form
10969 # but this time dos style (no spaces!) so that the unix form looks
10970 # like /cygdrive/c/PROGRA~1:/cygdr...
10971 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10972 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10973 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10974 ;;
10975 *)
10976 sys_lib_search_path_spec="$LIB"
10977 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10978 # It is most probably a Windows format PATH.
10979 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10980 else
10981 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10982 fi
10983 # FIXME: find the short name or the path components, as spaces are
10984 # common. (e.g. "Program Files" -> "PROGRA~1")
10985 ;;
10986 esac
10987
10988 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10989 postinstall_cmds='base_file=`basename \${file}`~
10990 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10991 dldir=$destdir/`dirname \$dlpath`~
10992 test -d \$dldir || mkdir -p \$dldir~
10993 $install_prog $dir/$dlname \$dldir/$dlname'
10994 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10995 dlpath=$dir/\$dldll~
10996 $RM \$dlpath'
10997 shlibpath_overrides_runpath=yes
10998 dynamic_linker='Win32 link.exe'
10999 ;;
11000
11001 *)
11002 # Assume MSVC wrapper
11003 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11004 dynamic_linker='Win32 ld.exe'
11005 ;;
11006 esac
11007 # FIXME: first we should search . and the directory the executable is in
11008 shlibpath_var=PATH
11009 ;;
11010
11011 darwin* | rhapsody*)
11012 dynamic_linker="$host_os dyld"
11013 version_type=darwin
11014 need_lib_prefix=no
11015 need_version=no
11016 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11017 soname_spec='${libname}${release}${major}$shared_ext'
11018 shlibpath_overrides_runpath=yes
11019 shlibpath_var=DYLD_LIBRARY_PATH
11020 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11021
11022 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11023 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11024 ;;
11025
11026 dgux*)
11027 version_type=linux # correct to gnu/linux during the next big refactor
11028 need_lib_prefix=no
11029 need_version=no
11030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11031 soname_spec='${libname}${release}${shared_ext}$major'
11032 shlibpath_var=LD_LIBRARY_PATH
11033 ;;
11034
11035 freebsd* | dragonfly*)
11036 # DragonFly does not have aout. When/if they implement a new
11037 # versioning mechanism, adjust this.
11038 if test -x /usr/bin/objformat; then
11039 objformat=`/usr/bin/objformat`
11040 else
11041 case $host_os in
11042 freebsd[23].*) objformat=aout ;;
11043 *) objformat=elf ;;
11044 esac
11045 fi
11046 version_type=freebsd-$objformat
11047 case $version_type in
11048 freebsd-elf*)
11049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11050 need_version=no
11051 need_lib_prefix=no
11052 ;;
11053 freebsd-*)
11054 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11055 need_version=yes
11056 ;;
11057 esac
11058 shlibpath_var=LD_LIBRARY_PATH
11059 case $host_os in
11060 freebsd2.*)
11061 shlibpath_overrides_runpath=yes
11062 ;;
11063 freebsd3.[01]* | freebsdelf3.[01]*)
11064 shlibpath_overrides_runpath=yes
11065 hardcode_into_libs=yes
11066 ;;
11067 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11068 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11069 shlibpath_overrides_runpath=no
11070 hardcode_into_libs=yes
11071 ;;
11072 *) # from 4.6 on, and DragonFly
11073 shlibpath_overrides_runpath=yes
11074 hardcode_into_libs=yes
11075 ;;
11076 esac
11077 ;;
11078
11079 gnu*)
11080 version_type=linux # correct to gnu/linux during the next big refactor
11081 need_lib_prefix=no
11082 need_version=no
11083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11084 soname_spec='${libname}${release}${shared_ext}$major'
11085 shlibpath_var=LD_LIBRARY_PATH
11086 shlibpath_overrides_runpath=no
11087 hardcode_into_libs=yes
11088 ;;
11089
11090 haiku*)
11091 version_type=linux # correct to gnu/linux during the next big refactor
11092 need_lib_prefix=no
11093 need_version=no
11094 dynamic_linker="$host_os runtime_loader"
11095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11096 soname_spec='${libname}${release}${shared_ext}$major'
11097 shlibpath_var=LIBRARY_PATH
11098 shlibpath_overrides_runpath=yes
11099 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11100 hardcode_into_libs=yes
11101 ;;
11102
11103 hpux9* | hpux10* | hpux11*)
11104 # Give a soname corresponding to the major version so that dld.sl refuses to
11105 # link against other versions.
11106 version_type=sunos
11107 need_lib_prefix=no
11108 need_version=no
11109 case $host_cpu in
11110 ia64*)
11111 shrext_cmds='.so'
11112 hardcode_into_libs=yes
11113 dynamic_linker="$host_os dld.so"
11114 shlibpath_var=LD_LIBRARY_PATH
11115 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11117 soname_spec='${libname}${release}${shared_ext}$major'
11118 if test "X$HPUX_IA64_MODE" = X32; then
11119 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11120 else
11121 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11122 fi
11123 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11124 ;;
11125 hppa*64*)
11126 shrext_cmds='.sl'
11127 hardcode_into_libs=yes
11128 dynamic_linker="$host_os dld.sl"
11129 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11130 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11132 soname_spec='${libname}${release}${shared_ext}$major'
11133 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11134 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11135 ;;
11136 *)
11137 shrext_cmds='.sl'
11138 dynamic_linker="$host_os dld.sl"
11139 shlibpath_var=SHLIB_PATH
11140 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11142 soname_spec='${libname}${release}${shared_ext}$major'
11143 ;;
11144 esac
11145 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11146 postinstall_cmds='chmod 555 $lib'
11147 # or fails outright, so override atomically:
11148 install_override_mode=555
11149 ;;
11150
11151 interix[3-9]*)
11152 version_type=linux # correct to gnu/linux during the next big refactor
11153 need_lib_prefix=no
11154 need_version=no
11155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11156 soname_spec='${libname}${release}${shared_ext}$major'
11157 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11158 shlibpath_var=LD_LIBRARY_PATH
11159 shlibpath_overrides_runpath=no
11160 hardcode_into_libs=yes
11161 ;;
11162
11163 irix5* | irix6* | nonstopux*)
11164 case $host_os in
11165 nonstopux*) version_type=nonstopux ;;
11166 *)
11167 if test "$lt_cv_prog_gnu_ld" = yes; then
11168 version_type=linux # correct to gnu/linux during the next big refactor
11169 else
11170 version_type=irix
11171 fi ;;
11172 esac
11173 need_lib_prefix=no
11174 need_version=no
11175 soname_spec='${libname}${release}${shared_ext}$major'
11176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11177 case $host_os in
11178 irix5* | nonstopux*)
11179 libsuff= shlibsuff=
11180 ;;
11181 *)
11182 case $LD in # libtool.m4 will add one of these switches to LD
11183 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11184 libsuff= shlibsuff= libmagic=32-bit;;
11185 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11186 libsuff=32 shlibsuff=N32 libmagic=N32;;
11187 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11188 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11189 *) libsuff= shlibsuff= libmagic=never-match;;
11190 esac
11191 ;;
11192 esac
11193 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11194 shlibpath_overrides_runpath=no
11195 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11196 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11197 hardcode_into_libs=yes
11198 ;;
11199
11200 # No shared lib support for Linux oldld, aout, or coff.
11201 linux*oldld* | linux*aout* | linux*coff*)
11202 dynamic_linker=no
11203 ;;
11204
11205 # This must be glibc/ELF.
11206 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11207 version_type=linux # correct to gnu/linux during the next big refactor
11208 need_lib_prefix=no
11209 need_version=no
11210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11211 soname_spec='${libname}${release}${shared_ext}$major'
11212 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11213 shlibpath_var=LD_LIBRARY_PATH
11214 shlibpath_overrides_runpath=no
11215
11216 # Some binutils ld are patched to set DT_RUNPATH
11217 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11218 $as_echo_n "(cached) " >&6
11219 else
11220 lt_cv_shlibpath_overrides_runpath=no
11221 save_LDFLAGS=$LDFLAGS
11222 save_libdir=$libdir
11223 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11224 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11226 /* end confdefs.h. */
11227
11228 int
11229 main ()
11230 {
11231
11232 ;
11233 return 0;
11234 }
11235 _ACEOF
11236 if ac_fn_c_try_link "$LINENO"; then :
11237 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11238 lt_cv_shlibpath_overrides_runpath=yes
11239 fi
11240 fi
11241 rm -f core conftest.err conftest.$ac_objext \
11242 conftest$ac_exeext conftest.$ac_ext
11243 LDFLAGS=$save_LDFLAGS
11244 libdir=$save_libdir
11245
11246 fi
11247
11248 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11249
11250 # This implies no fast_install, which is unacceptable.
11251 # Some rework will be needed to allow for fast_install
11252 # before this can be enabled.
11253 hardcode_into_libs=yes
11254
11255 # Append ld.so.conf contents to the search path
11256 if test -f /etc/ld.so.conf; then
11257 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' ' '`
11258 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11259 fi
11260
11261 # We used to test for /lib/ld.so.1 and disable shared libraries on
11262 # powerpc, because MkLinux only supported shared libraries with the
11263 # GNU dynamic linker. Since this was broken with cross compilers,
11264 # most powerpc-linux boxes support dynamic linking these days and
11265 # people can always --disable-shared, the test was removed, and we
11266 # assume the GNU/Linux dynamic linker is in use.
11267 dynamic_linker='GNU/Linux ld.so'
11268 ;;
11269
11270 netbsdelf*-gnu)
11271 version_type=linux
11272 need_lib_prefix=no
11273 need_version=no
11274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11275 soname_spec='${libname}${release}${shared_ext}$major'
11276 shlibpath_var=LD_LIBRARY_PATH
11277 shlibpath_overrides_runpath=no
11278 hardcode_into_libs=yes
11279 dynamic_linker='NetBSD ld.elf_so'
11280 ;;
11281
11282 netbsd*)
11283 version_type=sunos
11284 need_lib_prefix=no
11285 need_version=no
11286 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11288 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11289 dynamic_linker='NetBSD (a.out) ld.so'
11290 else
11291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11292 soname_spec='${libname}${release}${shared_ext}$major'
11293 dynamic_linker='NetBSD ld.elf_so'
11294 fi
11295 shlibpath_var=LD_LIBRARY_PATH
11296 shlibpath_overrides_runpath=yes
11297 hardcode_into_libs=yes
11298 ;;
11299
11300 newsos6)
11301 version_type=linux # correct to gnu/linux during the next big refactor
11302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11303 shlibpath_var=LD_LIBRARY_PATH
11304 shlibpath_overrides_runpath=yes
11305 ;;
11306
11307 *nto* | *qnx*)
11308 version_type=qnx
11309 need_lib_prefix=no
11310 need_version=no
11311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11312 soname_spec='${libname}${release}${shared_ext}$major'
11313 shlibpath_var=LD_LIBRARY_PATH
11314 shlibpath_overrides_runpath=no
11315 hardcode_into_libs=yes
11316 dynamic_linker='ldqnx.so'
11317 ;;
11318
11319 openbsd*)
11320 version_type=sunos
11321 sys_lib_dlsearch_path_spec="/usr/lib"
11322 need_lib_prefix=no
11323 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11324 case $host_os in
11325 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11326 *) need_version=no ;;
11327 esac
11328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11329 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11330 shlibpath_var=LD_LIBRARY_PATH
11331 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11332 case $host_os in
11333 openbsd2.[89] | openbsd2.[89].*)
11334 shlibpath_overrides_runpath=no
11335 ;;
11336 *)
11337 shlibpath_overrides_runpath=yes
11338 ;;
11339 esac
11340 else
11341 shlibpath_overrides_runpath=yes
11342 fi
11343 ;;
11344
11345 os2*)
11346 libname_spec='$name'
11347 shrext_cmds=".dll"
11348 need_lib_prefix=no
11349 library_names_spec='$libname${shared_ext} $libname.a'
11350 dynamic_linker='OS/2 ld.exe'
11351 shlibpath_var=LIBPATH
11352 ;;
11353
11354 osf3* | osf4* | osf5*)
11355 version_type=osf
11356 need_lib_prefix=no
11357 need_version=no
11358 soname_spec='${libname}${release}${shared_ext}$major'
11359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11360 shlibpath_var=LD_LIBRARY_PATH
11361 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11362 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11363 ;;
11364
11365 rdos*)
11366 dynamic_linker=no
11367 ;;
11368
11369 solaris*)
11370 version_type=linux # correct to gnu/linux during the next big refactor
11371 need_lib_prefix=no
11372 need_version=no
11373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11374 soname_spec='${libname}${release}${shared_ext}$major'
11375 shlibpath_var=LD_LIBRARY_PATH
11376 shlibpath_overrides_runpath=yes
11377 hardcode_into_libs=yes
11378 # ldd complains unless libraries are executable
11379 postinstall_cmds='chmod +x $lib'
11380 ;;
11381
11382 sunos4*)
11383 version_type=sunos
11384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11385 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11386 shlibpath_var=LD_LIBRARY_PATH
11387 shlibpath_overrides_runpath=yes
11388 if test "$with_gnu_ld" = yes; then
11389 need_lib_prefix=no
11390 fi
11391 need_version=yes
11392 ;;
11393
11394 sysv4 | sysv4.3*)
11395 version_type=linux # correct to gnu/linux during the next big refactor
11396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11397 soname_spec='${libname}${release}${shared_ext}$major'
11398 shlibpath_var=LD_LIBRARY_PATH
11399 case $host_vendor in
11400 sni)
11401 shlibpath_overrides_runpath=no
11402 need_lib_prefix=no
11403 runpath_var=LD_RUN_PATH
11404 ;;
11405 siemens)
11406 need_lib_prefix=no
11407 ;;
11408 motorola)
11409 need_lib_prefix=no
11410 need_version=no
11411 shlibpath_overrides_runpath=no
11412 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11413 ;;
11414 esac
11415 ;;
11416
11417 sysv4*MP*)
11418 if test -d /usr/nec ;then
11419 version_type=linux # correct to gnu/linux during the next big refactor
11420 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11421 soname_spec='$libname${shared_ext}.$major'
11422 shlibpath_var=LD_LIBRARY_PATH
11423 fi
11424 ;;
11425
11426 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11427 version_type=freebsd-elf
11428 need_lib_prefix=no
11429 need_version=no
11430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11431 soname_spec='${libname}${release}${shared_ext}$major'
11432 shlibpath_var=LD_LIBRARY_PATH
11433 shlibpath_overrides_runpath=yes
11434 hardcode_into_libs=yes
11435 if test "$with_gnu_ld" = yes; then
11436 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11437 else
11438 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11439 case $host_os in
11440 sco3.2v5*)
11441 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11442 ;;
11443 esac
11444 fi
11445 sys_lib_dlsearch_path_spec='/usr/lib'
11446 ;;
11447
11448 tpf*)
11449 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11450 version_type=linux # correct to gnu/linux during the next big refactor
11451 need_lib_prefix=no
11452 need_version=no
11453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11454 shlibpath_var=LD_LIBRARY_PATH
11455 shlibpath_overrides_runpath=no
11456 hardcode_into_libs=yes
11457 ;;
11458
11459 uts4*)
11460 version_type=linux # correct to gnu/linux during the next big refactor
11461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11462 soname_spec='${libname}${release}${shared_ext}$major'
11463 shlibpath_var=LD_LIBRARY_PATH
11464 ;;
11465
11466 *)
11467 dynamic_linker=no
11468 ;;
11469 esac
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11471 $as_echo "$dynamic_linker" >&6; }
11472 test "$dynamic_linker" = no && can_build_shared=no
11473
11474 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11475 if test "$GCC" = yes; then
11476 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11477 fi
11478
11479 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11480 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11481 fi
11482 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11483 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11484 fi
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11578 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11579 hardcode_action=
11580 if test -n "$hardcode_libdir_flag_spec" ||
11581 test -n "$runpath_var" ||
11582 test "X$hardcode_automatic" = "Xyes" ; then
11583
11584 # We can hardcode non-existent directories.
11585 if test "$hardcode_direct" != no &&
11586 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11587 # have to relink, otherwise we might link with an installed library
11588 # when we should be linking with a yet-to-be-installed one
11589 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11590 test "$hardcode_minus_L" != no; then
11591 # Linking always hardcodes the temporary library directory.
11592 hardcode_action=relink
11593 else
11594 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11595 hardcode_action=immediate
11596 fi
11597 else
11598 # We cannot hardcode anything, or else we can only hardcode existing
11599 # directories.
11600 hardcode_action=unsupported
11601 fi
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11603 $as_echo "$hardcode_action" >&6; }
11604
11605 if test "$hardcode_action" = relink ||
11606 test "$inherit_rpath" = yes; then
11607 # Fast installation is not supported
11608 enable_fast_install=no
11609 elif test "$shlibpath_overrides_runpath" = yes ||
11610 test "$enable_shared" = no; then
11611 # Fast installation is not necessary
11612 enable_fast_install=needless
11613 fi
11614
11615
11616
11617
11618
11619
11620 if test "x$enable_dlopen" != xyes; then
11621 enable_dlopen=unknown
11622 enable_dlopen_self=unknown
11623 enable_dlopen_self_static=unknown
11624 else
11625 lt_cv_dlopen=no
11626 lt_cv_dlopen_libs=
11627
11628 case $host_os in
11629 beos*)
11630 lt_cv_dlopen="load_add_on"
11631 lt_cv_dlopen_libs=
11632 lt_cv_dlopen_self=yes
11633 ;;
11634
11635 mingw* | pw32* | cegcc*)
11636 lt_cv_dlopen="LoadLibrary"
11637 lt_cv_dlopen_libs=
11638 ;;
11639
11640 cygwin*)
11641 lt_cv_dlopen="dlopen"
11642 lt_cv_dlopen_libs=
11643 ;;
11644
11645 darwin*)
11646 # if libdl is installed we need to link against it
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11648 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11649 if ${ac_cv_lib_dl_dlopen+:} false; then :
11650 $as_echo_n "(cached) " >&6
11651 else
11652 ac_check_lib_save_LIBS=$LIBS
11653 LIBS="-ldl $LIBS"
11654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11655 /* end confdefs.h. */
11656
11657 /* Override any GCC internal prototype to avoid an error.
11658 Use char because int might match the return type of a GCC
11659 builtin and then its argument prototype would still apply. */
11660 #ifdef __cplusplus
11661 extern "C"
11662 #endif
11663 char dlopen ();
11664 int
11665 main ()
11666 {
11667 return dlopen ();
11668 ;
11669 return 0;
11670 }
11671 _ACEOF
11672 if ac_fn_c_try_link "$LINENO"; then :
11673 ac_cv_lib_dl_dlopen=yes
11674 else
11675 ac_cv_lib_dl_dlopen=no
11676 fi
11677 rm -f core conftest.err conftest.$ac_objext \
11678 conftest$ac_exeext conftest.$ac_ext
11679 LIBS=$ac_check_lib_save_LIBS
11680 fi
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11682 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11683 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11684 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11685 else
11686
11687 lt_cv_dlopen="dyld"
11688 lt_cv_dlopen_libs=
11689 lt_cv_dlopen_self=yes
11690
11691 fi
11692
11693 ;;
11694
11695 *)
11696 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11697 if test "x$ac_cv_func_shl_load" = xyes; then :
11698 lt_cv_dlopen="shl_load"
11699 else
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11701 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11702 if ${ac_cv_lib_dld_shl_load+:} false; then :
11703 $as_echo_n "(cached) " >&6
11704 else
11705 ac_check_lib_save_LIBS=$LIBS
11706 LIBS="-ldld $LIBS"
11707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11708 /* end confdefs.h. */
11709
11710 /* Override any GCC internal prototype to avoid an error.
11711 Use char because int might match the return type of a GCC
11712 builtin and then its argument prototype would still apply. */
11713 #ifdef __cplusplus
11714 extern "C"
11715 #endif
11716 char shl_load ();
11717 int
11718 main ()
11719 {
11720 return shl_load ();
11721 ;
11722 return 0;
11723 }
11724 _ACEOF
11725 if ac_fn_c_try_link "$LINENO"; then :
11726 ac_cv_lib_dld_shl_load=yes
11727 else
11728 ac_cv_lib_dld_shl_load=no
11729 fi
11730 rm -f core conftest.err conftest.$ac_objext \
11731 conftest$ac_exeext conftest.$ac_ext
11732 LIBS=$ac_check_lib_save_LIBS
11733 fi
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11735 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11736 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11737 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11738 else
11739 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11740 if test "x$ac_cv_func_dlopen" = xyes; then :
11741 lt_cv_dlopen="dlopen"
11742 else
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11744 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11745 if ${ac_cv_lib_dl_dlopen+:} false; then :
11746 $as_echo_n "(cached) " >&6
11747 else
11748 ac_check_lib_save_LIBS=$LIBS
11749 LIBS="-ldl $LIBS"
11750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11751 /* end confdefs.h. */
11752
11753 /* Override any GCC internal prototype to avoid an error.
11754 Use char because int might match the return type of a GCC
11755 builtin and then its argument prototype would still apply. */
11756 #ifdef __cplusplus
11757 extern "C"
11758 #endif
11759 char dlopen ();
11760 int
11761 main ()
11762 {
11763 return dlopen ();
11764 ;
11765 return 0;
11766 }
11767 _ACEOF
11768 if ac_fn_c_try_link "$LINENO"; then :
11769 ac_cv_lib_dl_dlopen=yes
11770 else
11771 ac_cv_lib_dl_dlopen=no
11772 fi
11773 rm -f core conftest.err conftest.$ac_objext \
11774 conftest$ac_exeext conftest.$ac_ext
11775 LIBS=$ac_check_lib_save_LIBS
11776 fi
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11778 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11779 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11780 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11781 else
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11783 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11784 if ${ac_cv_lib_svld_dlopen+:} false; then :
11785 $as_echo_n "(cached) " >&6
11786 else
11787 ac_check_lib_save_LIBS=$LIBS
11788 LIBS="-lsvld $LIBS"
11789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11790 /* end confdefs.h. */
11791
11792 /* Override any GCC internal prototype to avoid an error.
11793 Use char because int might match the return type of a GCC
11794 builtin and then its argument prototype would still apply. */
11795 #ifdef __cplusplus
11796 extern "C"
11797 #endif
11798 char dlopen ();
11799 int
11800 main ()
11801 {
11802 return dlopen ();
11803 ;
11804 return 0;
11805 }
11806 _ACEOF
11807 if ac_fn_c_try_link "$LINENO"; then :
11808 ac_cv_lib_svld_dlopen=yes
11809 else
11810 ac_cv_lib_svld_dlopen=no
11811 fi
11812 rm -f core conftest.err conftest.$ac_objext \
11813 conftest$ac_exeext conftest.$ac_ext
11814 LIBS=$ac_check_lib_save_LIBS
11815 fi
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11817 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11818 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11819 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11820 else
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11822 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11823 if ${ac_cv_lib_dld_dld_link+:} false; then :
11824 $as_echo_n "(cached) " >&6
11825 else
11826 ac_check_lib_save_LIBS=$LIBS
11827 LIBS="-ldld $LIBS"
11828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11829 /* end confdefs.h. */
11830
11831 /* Override any GCC internal prototype to avoid an error.
11832 Use char because int might match the return type of a GCC
11833 builtin and then its argument prototype would still apply. */
11834 #ifdef __cplusplus
11835 extern "C"
11836 #endif
11837 char dld_link ();
11838 int
11839 main ()
11840 {
11841 return dld_link ();
11842 ;
11843 return 0;
11844 }
11845 _ACEOF
11846 if ac_fn_c_try_link "$LINENO"; then :
11847 ac_cv_lib_dld_dld_link=yes
11848 else
11849 ac_cv_lib_dld_dld_link=no
11850 fi
11851 rm -f core conftest.err conftest.$ac_objext \
11852 conftest$ac_exeext conftest.$ac_ext
11853 LIBS=$ac_check_lib_save_LIBS
11854 fi
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11856 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11857 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11858 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11859 fi
11860
11861
11862 fi
11863
11864
11865 fi
11866
11867
11868 fi
11869
11870
11871 fi
11872
11873
11874 fi
11875
11876 ;;
11877 esac
11878
11879 if test "x$lt_cv_dlopen" != xno; then
11880 enable_dlopen=yes
11881 else
11882 enable_dlopen=no
11883 fi
11884
11885 case $lt_cv_dlopen in
11886 dlopen)
11887 save_CPPFLAGS="$CPPFLAGS"
11888 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11889
11890 save_LDFLAGS="$LDFLAGS"
11891 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11892
11893 save_LIBS="$LIBS"
11894 LIBS="$lt_cv_dlopen_libs $LIBS"
11895
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11897 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11898 if ${lt_cv_dlopen_self+:} false; then :
11899 $as_echo_n "(cached) " >&6
11900 else
11901 if test "$cross_compiling" = yes; then :
11902 lt_cv_dlopen_self=cross
11903 else
11904 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11905 lt_status=$lt_dlunknown
11906 cat > conftest.$ac_ext <<_LT_EOF
11907 #line $LINENO "configure"
11908 #include "confdefs.h"
11909
11910 #if HAVE_DLFCN_H
11911 #include <dlfcn.h>
11912 #endif
11913
11914 #include <stdio.h>
11915
11916 #ifdef RTLD_GLOBAL
11917 # define LT_DLGLOBAL RTLD_GLOBAL
11918 #else
11919 # ifdef DL_GLOBAL
11920 # define LT_DLGLOBAL DL_GLOBAL
11921 # else
11922 # define LT_DLGLOBAL 0
11923 # endif
11924 #endif
11925
11926 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11927 find out it does not work in some platform. */
11928 #ifndef LT_DLLAZY_OR_NOW
11929 # ifdef RTLD_LAZY
11930 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11931 # else
11932 # ifdef DL_LAZY
11933 # define LT_DLLAZY_OR_NOW DL_LAZY
11934 # else
11935 # ifdef RTLD_NOW
11936 # define LT_DLLAZY_OR_NOW RTLD_NOW
11937 # else
11938 # ifdef DL_NOW
11939 # define LT_DLLAZY_OR_NOW DL_NOW
11940 # else
11941 # define LT_DLLAZY_OR_NOW 0
11942 # endif
11943 # endif
11944 # endif
11945 # endif
11946 #endif
11947
11948 /* When -fvisbility=hidden is used, assume the code has been annotated
11949 correspondingly for the symbols needed. */
11950 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11951 int fnord () __attribute__((visibility("default")));
11952 #endif
11953
11954 int fnord () { return 42; }
11955 int main ()
11956 {
11957 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11958 int status = $lt_dlunknown;
11959
11960 if (self)
11961 {
11962 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11963 else
11964 {
11965 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11966 else puts (dlerror ());
11967 }
11968 /* dlclose (self); */
11969 }
11970 else
11971 puts (dlerror ());
11972
11973 return status;
11974 }
11975 _LT_EOF
11976 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11977 (eval $ac_link) 2>&5
11978 ac_status=$?
11979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11980 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11981 (./conftest; exit; ) >&5 2>/dev/null
11982 lt_status=$?
11983 case x$lt_status in
11984 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11985 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11986 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11987 esac
11988 else :
11989 # compilation failed
11990 lt_cv_dlopen_self=no
11991 fi
11992 fi
11993 rm -fr conftest*
11994
11995
11996 fi
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11998 $as_echo "$lt_cv_dlopen_self" >&6; }
11999
12000 if test "x$lt_cv_dlopen_self" = xyes; then
12001 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12003 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12004 if ${lt_cv_dlopen_self_static+:} false; then :
12005 $as_echo_n "(cached) " >&6
12006 else
12007 if test "$cross_compiling" = yes; then :
12008 lt_cv_dlopen_self_static=cross
12009 else
12010 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12011 lt_status=$lt_dlunknown
12012 cat > conftest.$ac_ext <<_LT_EOF
12013 #line $LINENO "configure"
12014 #include "confdefs.h"
12015
12016 #if HAVE_DLFCN_H
12017 #include <dlfcn.h>
12018 #endif
12019
12020 #include <stdio.h>
12021
12022 #ifdef RTLD_GLOBAL
12023 # define LT_DLGLOBAL RTLD_GLOBAL
12024 #else
12025 # ifdef DL_GLOBAL
12026 # define LT_DLGLOBAL DL_GLOBAL
12027 # else
12028 # define LT_DLGLOBAL 0
12029 # endif
12030 #endif
12031
12032 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12033 find out it does not work in some platform. */
12034 #ifndef LT_DLLAZY_OR_NOW
12035 # ifdef RTLD_LAZY
12036 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12037 # else
12038 # ifdef DL_LAZY
12039 # define LT_DLLAZY_OR_NOW DL_LAZY
12040 # else
12041 # ifdef RTLD_NOW
12042 # define LT_DLLAZY_OR_NOW RTLD_NOW
12043 # else
12044 # ifdef DL_NOW
12045 # define LT_DLLAZY_OR_NOW DL_NOW
12046 # else
12047 # define LT_DLLAZY_OR_NOW 0
12048 # endif
12049 # endif
12050 # endif
12051 # endif
12052 #endif
12053
12054 /* When -fvisbility=hidden is used, assume the code has been annotated
12055 correspondingly for the symbols needed. */
12056 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12057 int fnord () __attribute__((visibility("default")));
12058 #endif
12059
12060 int fnord () { return 42; }
12061 int main ()
12062 {
12063 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12064 int status = $lt_dlunknown;
12065
12066 if (self)
12067 {
12068 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12069 else
12070 {
12071 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12072 else puts (dlerror ());
12073 }
12074 /* dlclose (self); */
12075 }
12076 else
12077 puts (dlerror ());
12078
12079 return status;
12080 }
12081 _LT_EOF
12082 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12083 (eval $ac_link) 2>&5
12084 ac_status=$?
12085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12086 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12087 (./conftest; exit; ) >&5 2>/dev/null
12088 lt_status=$?
12089 case x$lt_status in
12090 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12091 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12092 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12093 esac
12094 else :
12095 # compilation failed
12096 lt_cv_dlopen_self_static=no
12097 fi
12098 fi
12099 rm -fr conftest*
12100
12101
12102 fi
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12104 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12105 fi
12106
12107 CPPFLAGS="$save_CPPFLAGS"
12108 LDFLAGS="$save_LDFLAGS"
12109 LIBS="$save_LIBS"
12110 ;;
12111 esac
12112
12113 case $lt_cv_dlopen_self in
12114 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12115 *) enable_dlopen_self=unknown ;;
12116 esac
12117
12118 case $lt_cv_dlopen_self_static in
12119 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12120 *) enable_dlopen_self_static=unknown ;;
12121 esac
12122 fi
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140 striplib=
12141 old_striplib=
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12143 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12144 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12145 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12146 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12148 $as_echo "yes" >&6; }
12149 else
12150 # FIXME - insert some real tests, host_os isn't really good enough
12151 case $host_os in
12152 darwin*)
12153 if test -n "$STRIP" ; then
12154 striplib="$STRIP -x"
12155 old_striplib="$STRIP -S"
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12157 $as_echo "yes" >&6; }
12158 else
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12160 $as_echo "no" >&6; }
12161 fi
12162 ;;
12163 *)
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12165 $as_echo "no" >&6; }
12166 ;;
12167 esac
12168 fi
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181 # Report which library types will actually be built
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12183 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12185 $as_echo "$can_build_shared" >&6; }
12186
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12188 $as_echo_n "checking whether to build shared libraries... " >&6; }
12189 test "$can_build_shared" = "no" && enable_shared=no
12190
12191 # On AIX, shared libraries and static libraries use the same namespace, and
12192 # are all built from PIC.
12193 case $host_os in
12194 aix3*)
12195 test "$enable_shared" = yes && enable_static=no
12196 if test -n "$RANLIB"; then
12197 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12198 postinstall_cmds='$RANLIB $lib'
12199 fi
12200 ;;
12201
12202 aix[4-9]*)
12203 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12204 test "$enable_shared" = yes && enable_static=no
12205 fi
12206 ;;
12207 esac
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12209 $as_echo "$enable_shared" >&6; }
12210
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12212 $as_echo_n "checking whether to build static libraries... " >&6; }
12213 # Make sure either enable_shared or enable_static is yes.
12214 test "$enable_shared" = yes || enable_static=yes
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12216 $as_echo "$enable_static" >&6; }
12217
12218
12219
12220
12221 fi
12222 ac_ext=c
12223 ac_cpp='$CPP $CPPFLAGS'
12224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12227
12228 CC="$lt_save_CC"
12229
12230 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12231 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12232 (test "X$CXX" != "Xg++"))) ; then
12233 ac_ext=cpp
12234 ac_cpp='$CXXCPP $CPPFLAGS'
12235 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12236 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12237 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12239 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12240 if test -z "$CXXCPP"; then
12241 if ${ac_cv_prog_CXXCPP+:} false; then :
12242 $as_echo_n "(cached) " >&6
12243 else
12244 # Double quotes because CXXCPP needs to be expanded
12245 for CXXCPP in "$CXX -E" "/lib/cpp"
12246 do
12247 ac_preproc_ok=false
12248 for ac_cxx_preproc_warn_flag in '' yes
12249 do
12250 # Use a header file that comes with gcc, so configuring glibc
12251 # with a fresh cross-compiler works.
12252 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12253 # <limits.h> exists even on freestanding compilers.
12254 # On the NeXT, cc -E runs the code through the compiler's parser,
12255 # not just through cpp. "Syntax error" is here to catch this case.
12256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12257 /* end confdefs.h. */
12258 #ifdef __STDC__
12259 # include <limits.h>
12260 #else
12261 # include <assert.h>
12262 #endif
12263 Syntax error
12264 _ACEOF
12265 if ac_fn_cxx_try_cpp "$LINENO"; then :
12266
12267 else
12268 # Broken: fails on valid input.
12269 continue
12270 fi
12271 rm -f conftest.err conftest.i conftest.$ac_ext
12272
12273 # OK, works on sane cases. Now check whether nonexistent headers
12274 # can be detected and how.
12275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12276 /* end confdefs.h. */
12277 #include <ac_nonexistent.h>
12278 _ACEOF
12279 if ac_fn_cxx_try_cpp "$LINENO"; then :
12280 # Broken: success on invalid input.
12281 continue
12282 else
12283 # Passes both tests.
12284 ac_preproc_ok=:
12285 break
12286 fi
12287 rm -f conftest.err conftest.i conftest.$ac_ext
12288
12289 done
12290 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12291 rm -f conftest.i conftest.err conftest.$ac_ext
12292 if $ac_preproc_ok; then :
12293 break
12294 fi
12295
12296 done
12297 ac_cv_prog_CXXCPP=$CXXCPP
12298
12299 fi
12300 CXXCPP=$ac_cv_prog_CXXCPP
12301 else
12302 ac_cv_prog_CXXCPP=$CXXCPP
12303 fi
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12305 $as_echo "$CXXCPP" >&6; }
12306 ac_preproc_ok=false
12307 for ac_cxx_preproc_warn_flag in '' yes
12308 do
12309 # Use a header file that comes with gcc, so configuring glibc
12310 # with a fresh cross-compiler works.
12311 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12312 # <limits.h> exists even on freestanding compilers.
12313 # On the NeXT, cc -E runs the code through the compiler's parser,
12314 # not just through cpp. "Syntax error" is here to catch this case.
12315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12316 /* end confdefs.h. */
12317 #ifdef __STDC__
12318 # include <limits.h>
12319 #else
12320 # include <assert.h>
12321 #endif
12322 Syntax error
12323 _ACEOF
12324 if ac_fn_cxx_try_cpp "$LINENO"; then :
12325
12326 else
12327 # Broken: fails on valid input.
12328 continue
12329 fi
12330 rm -f conftest.err conftest.i conftest.$ac_ext
12331
12332 # OK, works on sane cases. Now check whether nonexistent headers
12333 # can be detected and how.
12334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12335 /* end confdefs.h. */
12336 #include <ac_nonexistent.h>
12337 _ACEOF
12338 if ac_fn_cxx_try_cpp "$LINENO"; then :
12339 # Broken: success on invalid input.
12340 continue
12341 else
12342 # Passes both tests.
12343 ac_preproc_ok=:
12344 break
12345 fi
12346 rm -f conftest.err conftest.i conftest.$ac_ext
12347
12348 done
12349 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12350 rm -f conftest.i conftest.err conftest.$ac_ext
12351 if $ac_preproc_ok; then :
12352
12353 else
12354 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12356 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12357 See \`config.log' for more details" "$LINENO" 5; }
12358 fi
12359
12360 ac_ext=c
12361 ac_cpp='$CPP $CPPFLAGS'
12362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12365
12366 else
12367 _lt_caught_CXX_error=yes
12368 fi
12369
12370 ac_ext=cpp
12371 ac_cpp='$CXXCPP $CPPFLAGS'
12372 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12373 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12374 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12375
12376 archive_cmds_need_lc_CXX=no
12377 allow_undefined_flag_CXX=
12378 always_export_symbols_CXX=no
12379 archive_expsym_cmds_CXX=
12380 compiler_needs_object_CXX=no
12381 export_dynamic_flag_spec_CXX=
12382 hardcode_direct_CXX=no
12383 hardcode_direct_absolute_CXX=no
12384 hardcode_libdir_flag_spec_CXX=
12385 hardcode_libdir_separator_CXX=
12386 hardcode_minus_L_CXX=no
12387 hardcode_shlibpath_var_CXX=unsupported
12388 hardcode_automatic_CXX=no
12389 inherit_rpath_CXX=no
12390 module_cmds_CXX=
12391 module_expsym_cmds_CXX=
12392 link_all_deplibs_CXX=unknown
12393 old_archive_cmds_CXX=$old_archive_cmds
12394 reload_flag_CXX=$reload_flag
12395 reload_cmds_CXX=$reload_cmds
12396 no_undefined_flag_CXX=
12397 whole_archive_flag_spec_CXX=
12398 enable_shared_with_static_runtimes_CXX=no
12399
12400 # Source file extension for C++ test sources.
12401 ac_ext=cpp
12402
12403 # Object file extension for compiled C++ test sources.
12404 objext=o
12405 objext_CXX=$objext
12406
12407 # No sense in running all these tests if we already determined that
12408 # the CXX compiler isn't working. Some variables (like enable_shared)
12409 # are currently assumed to apply to all compilers on this platform,
12410 # and will be corrupted by setting them based on a non-working compiler.
12411 if test "$_lt_caught_CXX_error" != yes; then
12412 # Code to be used in simple compile tests
12413 lt_simple_compile_test_code="int some_variable = 0;"
12414
12415 # Code to be used in simple link tests
12416 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12417
12418 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12419
12420
12421
12422
12423
12424
12425 # If no C compiler was specified, use CC.
12426 LTCC=${LTCC-"$CC"}
12427
12428 # If no C compiler flags were specified, use CFLAGS.
12429 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12430
12431 # Allow CC to be a program name with arguments.
12432 compiler=$CC
12433
12434
12435 # save warnings/boilerplate of simple test code
12436 ac_outfile=conftest.$ac_objext
12437 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12438 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12439 _lt_compiler_boilerplate=`cat conftest.err`
12440 $RM conftest*
12441
12442 ac_outfile=conftest.$ac_objext
12443 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12444 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12445 _lt_linker_boilerplate=`cat conftest.err`
12446 $RM -r conftest*
12447
12448
12449 # Allow CC to be a program name with arguments.
12450 lt_save_CC=$CC
12451 lt_save_CFLAGS=$CFLAGS
12452 lt_save_LD=$LD
12453 lt_save_GCC=$GCC
12454 GCC=$GXX
12455 lt_save_with_gnu_ld=$with_gnu_ld
12456 lt_save_path_LD=$lt_cv_path_LD
12457 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12458 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12459 else
12460 $as_unset lt_cv_prog_gnu_ld
12461 fi
12462 if test -n "${lt_cv_path_LDCXX+set}"; then
12463 lt_cv_path_LD=$lt_cv_path_LDCXX
12464 else
12465 $as_unset lt_cv_path_LD
12466 fi
12467 test -z "${LDCXX+set}" || LD=$LDCXX
12468 CC=${CXX-"c++"}
12469 CFLAGS=$CXXFLAGS
12470 compiler=$CC
12471 compiler_CXX=$CC
12472 for cc_temp in $compiler""; do
12473 case $cc_temp in
12474 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12475 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12476 \-*) ;;
12477 *) break;;
12478 esac
12479 done
12480 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12481
12482
12483 if test -n "$compiler"; then
12484 # We don't want -fno-exception when compiling C++ code, so set the
12485 # no_builtin_flag separately
12486 if test "$GXX" = yes; then
12487 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12488 else
12489 lt_prog_compiler_no_builtin_flag_CXX=
12490 fi
12491
12492 if test "$GXX" = yes; then
12493 # Set up default GNU C++ configuration
12494
12495
12496
12497 # Check whether --with-gnu-ld was given.
12498 if test "${with_gnu_ld+set}" = set; then :
12499 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12500 else
12501 with_gnu_ld=no
12502 fi
12503
12504 ac_prog=ld
12505 if test "$GCC" = yes; then
12506 # Check if gcc -print-prog-name=ld gives a path.
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12508 $as_echo_n "checking for ld used by $CC... " >&6; }
12509 case $host in
12510 *-*-mingw*)
12511 # gcc leaves a trailing carriage return which upsets mingw
12512 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12513 *)
12514 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12515 esac
12516 case $ac_prog in
12517 # Accept absolute paths.
12518 [\\/]* | ?:[\\/]*)
12519 re_direlt='/[^/][^/]*/\.\./'
12520 # Canonicalize the pathname of ld
12521 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12522 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12523 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12524 done
12525 test -z "$LD" && LD="$ac_prog"
12526 ;;
12527 "")
12528 # If it fails, then pretend we aren't using GCC.
12529 ac_prog=ld
12530 ;;
12531 *)
12532 # If it is relative, then search for the first ld in PATH.
12533 with_gnu_ld=unknown
12534 ;;
12535 esac
12536 elif test "$with_gnu_ld" = yes; then
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12538 $as_echo_n "checking for GNU ld... " >&6; }
12539 else
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12541 $as_echo_n "checking for non-GNU ld... " >&6; }
12542 fi
12543 if ${lt_cv_path_LD+:} false; then :
12544 $as_echo_n "(cached) " >&6
12545 else
12546 if test -z "$LD"; then
12547 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12548 for ac_dir in $PATH; do
12549 IFS="$lt_save_ifs"
12550 test -z "$ac_dir" && ac_dir=.
12551 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12552 lt_cv_path_LD="$ac_dir/$ac_prog"
12553 # Check to see if the program is GNU ld. I'd rather use --version,
12554 # but apparently some variants of GNU ld only accept -v.
12555 # Break only if it was the GNU/non-GNU ld that we prefer.
12556 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12557 *GNU* | *'with BFD'*)
12558 test "$with_gnu_ld" != no && break
12559 ;;
12560 *)
12561 test "$with_gnu_ld" != yes && break
12562 ;;
12563 esac
12564 fi
12565 done
12566 IFS="$lt_save_ifs"
12567 else
12568 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12569 fi
12570 fi
12571
12572 LD="$lt_cv_path_LD"
12573 if test -n "$LD"; then
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12575 $as_echo "$LD" >&6; }
12576 else
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12578 $as_echo "no" >&6; }
12579 fi
12580 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12582 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12583 if ${lt_cv_prog_gnu_ld+:} false; then :
12584 $as_echo_n "(cached) " >&6
12585 else
12586 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12587 case `$LD -v 2>&1 </dev/null` in
12588 *GNU* | *'with BFD'*)
12589 lt_cv_prog_gnu_ld=yes
12590 ;;
12591 *)
12592 lt_cv_prog_gnu_ld=no
12593 ;;
12594 esac
12595 fi
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12597 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12598 with_gnu_ld=$lt_cv_prog_gnu_ld
12599
12600
12601
12602
12603
12604
12605
12606 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12607 # archiving commands below assume that GNU ld is being used.
12608 if test "$with_gnu_ld" = yes; then
12609 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12610 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12611
12612 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12613 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12614
12615 # If archive_cmds runs LD, not CC, wlarc should be empty
12616 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12617 # investigate it a little bit more. (MM)
12618 wlarc='${wl}'
12619
12620 # ancient GNU ld didn't support --whole-archive et. al.
12621 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12622 $GREP 'no-whole-archive' > /dev/null; then
12623 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12624 else
12625 whole_archive_flag_spec_CXX=
12626 fi
12627 else
12628 with_gnu_ld=no
12629 wlarc=
12630
12631 # A generic and very simple default shared library creation
12632 # command for GNU C++ for the case where it uses the native
12633 # linker, instead of GNU ld. If possible, this setting should
12634 # overridden to take advantage of the native linker features on
12635 # the platform it is being used on.
12636 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12637 fi
12638
12639 # Commands to make compiler produce verbose output that lists
12640 # what "hidden" libraries, object files and flags are used when
12641 # linking a shared library.
12642 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12643
12644 else
12645 GXX=no
12646 with_gnu_ld=no
12647 wlarc=
12648 fi
12649
12650 # PORTME: fill in a description of your system's C++ link characteristics
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12652 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12653 ld_shlibs_CXX=yes
12654 case $host_os in
12655 aix3*)
12656 # FIXME: insert proper C++ library support
12657 ld_shlibs_CXX=no
12658 ;;
12659 aix[4-9]*)
12660 if test "$host_cpu" = ia64; then
12661 # On IA64, the linker does run time linking by default, so we don't
12662 # have to do anything special.
12663 aix_use_runtimelinking=no
12664 exp_sym_flag='-Bexport'
12665 no_entry_flag=""
12666 else
12667 aix_use_runtimelinking=no
12668
12669 # Test if we are trying to use run time linking or normal
12670 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12671 # need to do runtime linking.
12672 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12673 for ld_flag in $LDFLAGS; do
12674 case $ld_flag in
12675 *-brtl*)
12676 aix_use_runtimelinking=yes
12677 break
12678 ;;
12679 esac
12680 done
12681 ;;
12682 esac
12683
12684 exp_sym_flag='-bexport'
12685 no_entry_flag='-bnoentry'
12686 fi
12687
12688 # When large executables or shared objects are built, AIX ld can
12689 # have problems creating the table of contents. If linking a library
12690 # or program results in "error TOC overflow" add -mminimal-toc to
12691 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12692 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12693
12694 archive_cmds_CXX=''
12695 hardcode_direct_CXX=yes
12696 hardcode_direct_absolute_CXX=yes
12697 hardcode_libdir_separator_CXX=':'
12698 link_all_deplibs_CXX=yes
12699 file_list_spec_CXX='${wl}-f,'
12700
12701 if test "$GXX" = yes; then
12702 case $host_os in aix4.[012]|aix4.[012].*)
12703 # We only want to do this on AIX 4.2 and lower, the check
12704 # below for broken collect2 doesn't work under 4.3+
12705 collect2name=`${CC} -print-prog-name=collect2`
12706 if test -f "$collect2name" &&
12707 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12708 then
12709 # We have reworked collect2
12710 :
12711 else
12712 # We have old collect2
12713 hardcode_direct_CXX=unsupported
12714 # It fails to find uninstalled libraries when the uninstalled
12715 # path is not listed in the libpath. Setting hardcode_minus_L
12716 # to unsupported forces relinking
12717 hardcode_minus_L_CXX=yes
12718 hardcode_libdir_flag_spec_CXX='-L$libdir'
12719 hardcode_libdir_separator_CXX=
12720 fi
12721 esac
12722 shared_flag='-shared'
12723 if test "$aix_use_runtimelinking" = yes; then
12724 shared_flag="$shared_flag "'${wl}-G'
12725 fi
12726 else
12727 # not using gcc
12728 if test "$host_cpu" = ia64; then
12729 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12730 # chokes on -Wl,-G. The following line is correct:
12731 shared_flag='-G'
12732 else
12733 if test "$aix_use_runtimelinking" = yes; then
12734 shared_flag='${wl}-G'
12735 else
12736 shared_flag='${wl}-bM:SRE'
12737 fi
12738 fi
12739 fi
12740
12741 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12742 # It seems that -bexpall does not export symbols beginning with
12743 # underscore (_), so it is better to generate a list of symbols to
12744 # export.
12745 always_export_symbols_CXX=yes
12746 if test "$aix_use_runtimelinking" = yes; then
12747 # Warning - without using the other runtime loading flags (-brtl),
12748 # -berok will link without error, but may produce a broken library.
12749 allow_undefined_flag_CXX='-berok'
12750 # Determine the default libpath from the value encoded in an empty
12751 # executable.
12752 if test "${lt_cv_aix_libpath+set}" = set; then
12753 aix_libpath=$lt_cv_aix_libpath
12754 else
12755 if ${lt_cv_aix_libpath__CXX+:} false; then :
12756 $as_echo_n "(cached) " >&6
12757 else
12758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12759 /* end confdefs.h. */
12760
12761 int
12762 main ()
12763 {
12764
12765 ;
12766 return 0;
12767 }
12768 _ACEOF
12769 if ac_fn_cxx_try_link "$LINENO"; then :
12770
12771 lt_aix_libpath_sed='
12772 /Import File Strings/,/^$/ {
12773 /^0/ {
12774 s/^0 *\([^ ]*\) *$/\1/
12775 p
12776 }
12777 }'
12778 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12779 # Check for a 64-bit object if we didn't find anything.
12780 if test -z "$lt_cv_aix_libpath__CXX"; then
12781 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12782 fi
12783 fi
12784 rm -f core conftest.err conftest.$ac_objext \
12785 conftest$ac_exeext conftest.$ac_ext
12786 if test -z "$lt_cv_aix_libpath__CXX"; then
12787 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12788 fi
12789
12790 fi
12791
12792 aix_libpath=$lt_cv_aix_libpath__CXX
12793 fi
12794
12795 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12796
12797 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"
12798 else
12799 if test "$host_cpu" = ia64; then
12800 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12801 allow_undefined_flag_CXX="-z nodefs"
12802 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"
12803 else
12804 # Determine the default libpath from the value encoded in an
12805 # empty executable.
12806 if test "${lt_cv_aix_libpath+set}" = set; then
12807 aix_libpath=$lt_cv_aix_libpath
12808 else
12809 if ${lt_cv_aix_libpath__CXX+:} false; then :
12810 $as_echo_n "(cached) " >&6
12811 else
12812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12813 /* end confdefs.h. */
12814
12815 int
12816 main ()
12817 {
12818
12819 ;
12820 return 0;
12821 }
12822 _ACEOF
12823 if ac_fn_cxx_try_link "$LINENO"; then :
12824
12825 lt_aix_libpath_sed='
12826 /Import File Strings/,/^$/ {
12827 /^0/ {
12828 s/^0 *\([^ ]*\) *$/\1/
12829 p
12830 }
12831 }'
12832 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12833 # Check for a 64-bit object if we didn't find anything.
12834 if test -z "$lt_cv_aix_libpath__CXX"; then
12835 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12836 fi
12837 fi
12838 rm -f core conftest.err conftest.$ac_objext \
12839 conftest$ac_exeext conftest.$ac_ext
12840 if test -z "$lt_cv_aix_libpath__CXX"; then
12841 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12842 fi
12843
12844 fi
12845
12846 aix_libpath=$lt_cv_aix_libpath__CXX
12847 fi
12848
12849 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12850 # Warning - without using the other run time loading flags,
12851 # -berok will link without error, but may produce a broken library.
12852 no_undefined_flag_CXX=' ${wl}-bernotok'
12853 allow_undefined_flag_CXX=' ${wl}-berok'
12854 if test "$with_gnu_ld" = yes; then
12855 # We only use this code for GNU lds that support --whole-archive.
12856 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12857 else
12858 # Exported symbols can be pulled into shared objects from archives
12859 whole_archive_flag_spec_CXX='$convenience'
12860 fi
12861 archive_cmds_need_lc_CXX=yes
12862 # This is similar to how AIX traditionally builds its shared
12863 # libraries.
12864 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'
12865 fi
12866 fi
12867 ;;
12868
12869 beos*)
12870 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12871 allow_undefined_flag_CXX=unsupported
12872 # Joseph Beckenbach <[email protected]> says some releases of gcc
12873 # support --undefined. This deserves some investigation. FIXME
12874 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12875 else
12876 ld_shlibs_CXX=no
12877 fi
12878 ;;
12879
12880 chorus*)
12881 case $cc_basename in
12882 *)
12883 # FIXME: insert proper C++ library support
12884 ld_shlibs_CXX=no
12885 ;;
12886 esac
12887 ;;
12888
12889 cygwin* | mingw* | pw32* | cegcc*)
12890 case $GXX,$cc_basename in
12891 ,cl* | no,cl*)
12892 # Native MSVC
12893 # hardcode_libdir_flag_spec is actually meaningless, as there is
12894 # no search path for DLLs.
12895 hardcode_libdir_flag_spec_CXX=' '
12896 allow_undefined_flag_CXX=unsupported
12897 always_export_symbols_CXX=yes
12898 file_list_spec_CXX='@'
12899 # Tell ltmain to make .lib files, not .a files.
12900 libext=lib
12901 # Tell ltmain to make .dll files, not .so files.
12902 shrext_cmds=".dll"
12903 # FIXME: Setting linknames here is a bad hack.
12904 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12905 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12906 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12907 else
12908 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12909 fi~
12910 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12911 linknames='
12912 # The linker will not automatically build a static lib if we build a DLL.
12913 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12914 enable_shared_with_static_runtimes_CXX=yes
12915 # Don't use ranlib
12916 old_postinstall_cmds_CXX='chmod 644 $oldlib'
12917 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12918 lt_tool_outputfile="@TOOL_OUTPUT@"~
12919 case $lt_outputfile in
12920 *.exe|*.EXE) ;;
12921 *)
12922 lt_outputfile="$lt_outputfile.exe"
12923 lt_tool_outputfile="$lt_tool_outputfile.exe"
12924 ;;
12925 esac~
12926 func_to_tool_file "$lt_outputfile"~
12927 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12928 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12929 $RM "$lt_outputfile.manifest";
12930 fi'
12931 ;;
12932 *)
12933 # g++
12934 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12935 # as there is no search path for DLLs.
12936 hardcode_libdir_flag_spec_CXX='-L$libdir'
12937 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12938 allow_undefined_flag_CXX=unsupported
12939 always_export_symbols_CXX=no
12940 enable_shared_with_static_runtimes_CXX=yes
12941
12942 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12943 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'
12944 # If the export-symbols file already is a .def file (1st line
12945 # is EXPORTS), use it as is; otherwise, prepend...
12946 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12947 cp $export_symbols $output_objdir/$soname.def;
12948 else
12949 echo EXPORTS > $output_objdir/$soname.def;
12950 cat $export_symbols >> $output_objdir/$soname.def;
12951 fi~
12952 $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'
12953 else
12954 ld_shlibs_CXX=no
12955 fi
12956 ;;
12957 esac
12958 ;;
12959 darwin* | rhapsody*)
12960
12961
12962 archive_cmds_need_lc_CXX=no
12963 hardcode_direct_CXX=no
12964 hardcode_automatic_CXX=yes
12965 hardcode_shlibpath_var_CXX=unsupported
12966 if test "$lt_cv_ld_force_load" = "yes"; then
12967 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\"`'
12968
12969 else
12970 whole_archive_flag_spec_CXX=''
12971 fi
12972 link_all_deplibs_CXX=yes
12973 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12974 case $cc_basename in
12975 ifort*) _lt_dar_can_shared=yes ;;
12976 *) _lt_dar_can_shared=$GCC ;;
12977 esac
12978 if test "$_lt_dar_can_shared" = "yes"; then
12979 output_verbose_link_cmd=func_echo_all
12980 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}"
12981 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12982 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}"
12983 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}"
12984 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12985 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}"
12986 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}"
12987 fi
12988
12989 else
12990 ld_shlibs_CXX=no
12991 fi
12992
12993 ;;
12994
12995 dgux*)
12996 case $cc_basename in
12997 ec++*)
12998 # FIXME: insert proper C++ library support
12999 ld_shlibs_CXX=no
13000 ;;
13001 ghcx*)
13002 # Green Hills C++ Compiler
13003 # FIXME: insert proper C++ library support
13004 ld_shlibs_CXX=no
13005 ;;
13006 *)
13007 # FIXME: insert proper C++ library support
13008 ld_shlibs_CXX=no
13009 ;;
13010 esac
13011 ;;
13012
13013 freebsd2.*)
13014 # C++ shared libraries reported to be fairly broken before
13015 # switch to ELF
13016 ld_shlibs_CXX=no
13017 ;;
13018
13019 freebsd-elf*)
13020 archive_cmds_need_lc_CXX=no
13021 ;;
13022
13023 freebsd* | dragonfly*)
13024 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13025 # conventions
13026 ld_shlibs_CXX=yes
13027 ;;
13028
13029 gnu*)
13030 ;;
13031
13032 haiku*)
13033 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13034 link_all_deplibs_CXX=yes
13035 ;;
13036
13037 hpux9*)
13038 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13039 hardcode_libdir_separator_CXX=:
13040 export_dynamic_flag_spec_CXX='${wl}-E'
13041 hardcode_direct_CXX=yes
13042 hardcode_minus_L_CXX=yes # Not in the search PATH,
13043 # but as the default
13044 # location of the library.
13045
13046 case $cc_basename in
13047 CC*)
13048 # FIXME: insert proper C++ library support
13049 ld_shlibs_CXX=no
13050 ;;
13051 aCC*)
13052 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'
13053 # Commands to make compiler produce verbose output that lists
13054 # what "hidden" libraries, object files and flags are used when
13055 # linking a shared library.
13056 #
13057 # There doesn't appear to be a way to prevent this compiler from
13058 # explicitly linking system object files so we need to strip them
13059 # from the output so that they don't get included in the library
13060 # dependencies.
13061 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"'
13062 ;;
13063 *)
13064 if test "$GXX" = yes; then
13065 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
13066 else
13067 # FIXME: insert proper C++ library support
13068 ld_shlibs_CXX=no
13069 fi
13070 ;;
13071 esac
13072 ;;
13073
13074 hpux10*|hpux11*)
13075 if test $with_gnu_ld = no; then
13076 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13077 hardcode_libdir_separator_CXX=:
13078
13079 case $host_cpu in
13080 hppa*64*|ia64*)
13081 ;;
13082 *)
13083 export_dynamic_flag_spec_CXX='${wl}-E'
13084 ;;
13085 esac
13086 fi
13087 case $host_cpu in
13088 hppa*64*|ia64*)
13089 hardcode_direct_CXX=no
13090 hardcode_shlibpath_var_CXX=no
13091 ;;
13092 *)
13093 hardcode_direct_CXX=yes
13094 hardcode_direct_absolute_CXX=yes
13095 hardcode_minus_L_CXX=yes # Not in the search PATH,
13096 # but as the default
13097 # location of the library.
13098 ;;
13099 esac
13100
13101 case $cc_basename in
13102 CC*)
13103 # FIXME: insert proper C++ library support
13104 ld_shlibs_CXX=no
13105 ;;
13106 aCC*)
13107 case $host_cpu in
13108 hppa*64*)
13109 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13110 ;;
13111 ia64*)
13112 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13113 ;;
13114 *)
13115 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13116 ;;
13117 esac
13118 # Commands to make compiler produce verbose output that lists
13119 # what "hidden" libraries, object files and flags are used when
13120 # linking a shared library.
13121 #
13122 # There doesn't appear to be a way to prevent this compiler from
13123 # explicitly linking system object files so we need to strip them
13124 # from the output so that they don't get included in the library
13125 # dependencies.
13126 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"'
13127 ;;
13128 *)
13129 if test "$GXX" = yes; then
13130 if test $with_gnu_ld = no; then
13131 case $host_cpu in
13132 hppa*64*)
13133 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13134 ;;
13135 ia64*)
13136 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13137 ;;
13138 *)
13139 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13140 ;;
13141 esac
13142 fi
13143 else
13144 # FIXME: insert proper C++ library support
13145 ld_shlibs_CXX=no
13146 fi
13147 ;;
13148 esac
13149 ;;
13150
13151 interix[3-9]*)
13152 hardcode_direct_CXX=no
13153 hardcode_shlibpath_var_CXX=no
13154 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13155 export_dynamic_flag_spec_CXX='${wl}-E'
13156 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13157 # Instead, shared libraries are loaded at an image base (0x10000000 by
13158 # default) and relocated if they conflict, which is a slow very memory
13159 # consuming and fragmenting process. To avoid this, we pick a random,
13160 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13161 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13162 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'
13163 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'
13164 ;;
13165 irix5* | irix6*)
13166 case $cc_basename in
13167 CC*)
13168 # SGI C++
13169 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'
13170
13171 # Archives containing C++ object files must be created using
13172 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13173 # necessary to make sure instantiated templates are included
13174 # in the archive.
13175 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13176 ;;
13177 *)
13178 if test "$GXX" = yes; then
13179 if test "$with_gnu_ld" = no; then
13180 archive_cmds_CXX='$CC -shared $pic_flag -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'
13181 else
13182 archive_cmds_CXX='$CC -shared $pic_flag -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'
13183 fi
13184 fi
13185 link_all_deplibs_CXX=yes
13186 ;;
13187 esac
13188 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13189 hardcode_libdir_separator_CXX=:
13190 inherit_rpath_CXX=yes
13191 ;;
13192
13193 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13194 case $cc_basename in
13195 KCC*)
13196 # Kuck and Associates, Inc. (KAI) C++ Compiler
13197
13198 # KCC will only create a shared library if the output file
13199 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13200 # to its proper name (with version) after linking.
13201 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'
13202 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'
13203 # Commands to make compiler produce verbose output that lists
13204 # what "hidden" libraries, object files and flags are used when
13205 # linking a shared library.
13206 #
13207 # There doesn't appear to be a way to prevent this compiler from
13208 # explicitly linking system object files so we need to strip them
13209 # from the output so that they don't get included in the library
13210 # dependencies.
13211 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"'
13212
13213 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13214 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13215
13216 # Archives containing C++ object files must be created using
13217 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13218 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13219 ;;
13220 icpc* | ecpc* )
13221 # Intel C++
13222 with_gnu_ld=yes
13223 # version 8.0 and above of icpc choke on multiply defined symbols
13224 # if we add $predep_objects and $postdep_objects, however 7.1 and
13225 # earlier do not add the objects themselves.
13226 case `$CC -V 2>&1` in
13227 *"Version 7."*)
13228 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13229 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'
13230 ;;
13231 *) # Version 8.0 or newer
13232 tmp_idyn=
13233 case $host_cpu in
13234 ia64*) tmp_idyn=' -i_dynamic';;
13235 esac
13236 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13237 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'
13238 ;;
13239 esac
13240 archive_cmds_need_lc_CXX=no
13241 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13242 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13243 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13244 ;;
13245 pgCC* | pgcpp*)
13246 # Portland Group C++ compiler
13247 case `$CC -V` in
13248 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13249 prelink_cmds_CXX='tpldir=Template.dir~
13250 rm -rf $tpldir~
13251 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13252 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13253 old_archive_cmds_CXX='tpldir=Template.dir~
13254 rm -rf $tpldir~
13255 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13256 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13257 $RANLIB $oldlib'
13258 archive_cmds_CXX='tpldir=Template.dir~
13259 rm -rf $tpldir~
13260 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13261 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13262 archive_expsym_cmds_CXX='tpldir=Template.dir~
13263 rm -rf $tpldir~
13264 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13265 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13266 ;;
13267 *) # Version 6 and above use weak symbols
13268 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13269 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'
13270 ;;
13271 esac
13272
13273 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13274 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13275 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'
13276 ;;
13277 cxx*)
13278 # Compaq C++
13279 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13280 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'
13281
13282 runpath_var=LD_RUN_PATH
13283 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13284 hardcode_libdir_separator_CXX=:
13285
13286 # Commands to make compiler produce verbose output that lists
13287 # what "hidden" libraries, object files and flags are used when
13288 # linking a shared library.
13289 #
13290 # There doesn't appear to be a way to prevent this compiler from
13291 # explicitly linking system object files so we need to strip them
13292 # from the output so that they don't get included in the library
13293 # dependencies.
13294 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'
13295 ;;
13296 xl* | mpixl* | bgxl*)
13297 # IBM XL 8.0 on PPC, with GNU ld
13298 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13299 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13300 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13301 if test "x$supports_anon_versioning" = xyes; then
13302 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13303 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13304 echo "local: *; };" >> $output_objdir/$libname.ver~
13305 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13306 fi
13307 ;;
13308 *)
13309 case `$CC -V 2>&1 | sed 5q` in
13310 *Sun\ C*)
13311 # Sun C++ 5.9
13312 no_undefined_flag_CXX=' -zdefs'
13313 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13314 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'
13315 hardcode_libdir_flag_spec_CXX='-R$libdir'
13316 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'
13317 compiler_needs_object_CXX=yes
13318
13319 # Not sure whether something based on
13320 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13321 # would be better.
13322 output_verbose_link_cmd='func_echo_all'
13323
13324 # Archives containing C++ object files must be created using
13325 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13326 # necessary to make sure instantiated templates are included
13327 # in the archive.
13328 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13329 ;;
13330 esac
13331 ;;
13332 esac
13333 ;;
13334
13335 lynxos*)
13336 # FIXME: insert proper C++ library support
13337 ld_shlibs_CXX=no
13338 ;;
13339
13340 m88k*)
13341 # FIXME: insert proper C++ library support
13342 ld_shlibs_CXX=no
13343 ;;
13344
13345 mvs*)
13346 case $cc_basename in
13347 cxx*)
13348 # FIXME: insert proper C++ library support
13349 ld_shlibs_CXX=no
13350 ;;
13351 *)
13352 # FIXME: insert proper C++ library support
13353 ld_shlibs_CXX=no
13354 ;;
13355 esac
13356 ;;
13357
13358 netbsd*)
13359 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13360 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13361 wlarc=
13362 hardcode_libdir_flag_spec_CXX='-R$libdir'
13363 hardcode_direct_CXX=yes
13364 hardcode_shlibpath_var_CXX=no
13365 fi
13366 # Workaround some broken pre-1.5 toolchains
13367 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13368 ;;
13369
13370 *nto* | *qnx*)
13371 ld_shlibs_CXX=yes
13372 ;;
13373
13374 openbsd2*)
13375 # C++ shared libraries are fairly broken
13376 ld_shlibs_CXX=no
13377 ;;
13378
13379 openbsd*)
13380 if test -f /usr/libexec/ld.so; then
13381 hardcode_direct_CXX=yes
13382 hardcode_shlibpath_var_CXX=no
13383 hardcode_direct_absolute_CXX=yes
13384 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13385 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13386 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13387 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13388 export_dynamic_flag_spec_CXX='${wl}-E'
13389 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13390 fi
13391 output_verbose_link_cmd=func_echo_all
13392 else
13393 ld_shlibs_CXX=no
13394 fi
13395 ;;
13396
13397 osf3* | osf4* | osf5*)
13398 case $cc_basename in
13399 KCC*)
13400 # Kuck and Associates, Inc. (KAI) C++ Compiler
13401
13402 # KCC will only create a shared library if the output file
13403 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13404 # to its proper name (with version) after linking.
13405 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'
13406
13407 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13408 hardcode_libdir_separator_CXX=:
13409
13410 # Archives containing C++ object files must be created using
13411 # the KAI C++ compiler.
13412 case $host in
13413 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13414 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13415 esac
13416 ;;
13417 RCC*)
13418 # Rational C++ 2.4.1
13419 # FIXME: insert proper C++ library support
13420 ld_shlibs_CXX=no
13421 ;;
13422 cxx*)
13423 case $host in
13424 osf3*)
13425 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13426 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'
13427 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13428 ;;
13429 *)
13430 allow_undefined_flag_CXX=' -expect_unresolved \*'
13431 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'
13432 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13433 echo "-hidden">> $lib.exp~
13434 $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~
13435 $RM $lib.exp'
13436 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13437 ;;
13438 esac
13439
13440 hardcode_libdir_separator_CXX=:
13441
13442 # Commands to make compiler produce verbose output that lists
13443 # what "hidden" libraries, object files and flags are used when
13444 # linking a shared library.
13445 #
13446 # There doesn't appear to be a way to prevent this compiler from
13447 # explicitly linking system object files so we need to strip them
13448 # from the output so that they don't get included in the library
13449 # dependencies.
13450 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"'
13451 ;;
13452 *)
13453 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13454 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13455 case $host in
13456 osf3*)
13457 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'
13458 ;;
13459 *)
13460 archive_cmds_CXX='$CC -shared $pic_flag -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'
13461 ;;
13462 esac
13463
13464 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13465 hardcode_libdir_separator_CXX=:
13466
13467 # Commands to make compiler produce verbose output that lists
13468 # what "hidden" libraries, object files and flags are used when
13469 # linking a shared library.
13470 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13471
13472 else
13473 # FIXME: insert proper C++ library support
13474 ld_shlibs_CXX=no
13475 fi
13476 ;;
13477 esac
13478 ;;
13479
13480 psos*)
13481 # FIXME: insert proper C++ library support
13482 ld_shlibs_CXX=no
13483 ;;
13484
13485 sunos4*)
13486 case $cc_basename in
13487 CC*)
13488 # Sun C++ 4.x
13489 # FIXME: insert proper C++ library support
13490 ld_shlibs_CXX=no
13491 ;;
13492 lcc*)
13493 # Lucid
13494 # FIXME: insert proper C++ library support
13495 ld_shlibs_CXX=no
13496 ;;
13497 *)
13498 # FIXME: insert proper C++ library support
13499 ld_shlibs_CXX=no
13500 ;;
13501 esac
13502 ;;
13503
13504 solaris*)
13505 case $cc_basename in
13506 CC* | sunCC*)
13507 # Sun C++ 4.2, 5.x and Centerline C++
13508 archive_cmds_need_lc_CXX=yes
13509 no_undefined_flag_CXX=' -zdefs'
13510 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13511 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13512 $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'
13513
13514 hardcode_libdir_flag_spec_CXX='-R$libdir'
13515 hardcode_shlibpath_var_CXX=no
13516 case $host_os in
13517 solaris2.[0-5] | solaris2.[0-5].*) ;;
13518 *)
13519 # The compiler driver will combine and reorder linker options,
13520 # but understands `-z linker_flag'.
13521 # Supported since Solaris 2.6 (maybe 2.5.1?)
13522 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13523 ;;
13524 esac
13525 link_all_deplibs_CXX=yes
13526
13527 output_verbose_link_cmd='func_echo_all'
13528
13529 # Archives containing C++ object files must be created using
13530 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13531 # necessary to make sure instantiated templates are included
13532 # in the archive.
13533 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13534 ;;
13535 gcx*)
13536 # Green Hills C++ Compiler
13537 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13538
13539 # The C++ compiler must be used to create the archive.
13540 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13541 ;;
13542 *)
13543 # GNU C++ compiler with Solaris linker
13544 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13545 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13546 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13547 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13548 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13549 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13550
13551 # Commands to make compiler produce verbose output that lists
13552 # what "hidden" libraries, object files and flags are used when
13553 # linking a shared library.
13554 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13555 else
13556 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13557 # platform.
13558 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13559 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13560 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13561
13562 # Commands to make compiler produce verbose output that lists
13563 # what "hidden" libraries, object files and flags are used when
13564 # linking a shared library.
13565 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13566 fi
13567
13568 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13569 case $host_os in
13570 solaris2.[0-5] | solaris2.[0-5].*) ;;
13571 *)
13572 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13573 ;;
13574 esac
13575 fi
13576 ;;
13577 esac
13578 ;;
13579
13580 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13581 no_undefined_flag_CXX='${wl}-z,text'
13582 archive_cmds_need_lc_CXX=no
13583 hardcode_shlibpath_var_CXX=no
13584 runpath_var='LD_RUN_PATH'
13585
13586 case $cc_basename in
13587 CC*)
13588 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13589 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13590 ;;
13591 *)
13592 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13593 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13594 ;;
13595 esac
13596 ;;
13597
13598 sysv5* | sco3.2v5* | sco5v6*)
13599 # Note: We can NOT use -z defs as we might desire, because we do not
13600 # link with -lc, and that would cause any symbols used from libc to
13601 # always be unresolved, which means just about no library would
13602 # ever link correctly. If we're not using GNU ld we use -z text
13603 # though, which does catch some bad symbols but isn't as heavy-handed
13604 # as -z defs.
13605 no_undefined_flag_CXX='${wl}-z,text'
13606 allow_undefined_flag_CXX='${wl}-z,nodefs'
13607 archive_cmds_need_lc_CXX=no
13608 hardcode_shlibpath_var_CXX=no
13609 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13610 hardcode_libdir_separator_CXX=':'
13611 link_all_deplibs_CXX=yes
13612 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13613 runpath_var='LD_RUN_PATH'
13614
13615 case $cc_basename in
13616 CC*)
13617 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13618 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13619 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13620 '"$old_archive_cmds_CXX"
13621 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13622 '"$reload_cmds_CXX"
13623 ;;
13624 *)
13625 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13626 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13627 ;;
13628 esac
13629 ;;
13630
13631 tandem*)
13632 case $cc_basename in
13633 NCC*)
13634 # NonStop-UX NCC 3.20
13635 # FIXME: insert proper C++ library support
13636 ld_shlibs_CXX=no
13637 ;;
13638 *)
13639 # FIXME: insert proper C++ library support
13640 ld_shlibs_CXX=no
13641 ;;
13642 esac
13643 ;;
13644
13645 vxworks*)
13646 # FIXME: insert proper C++ library support
13647 ld_shlibs_CXX=no
13648 ;;
13649
13650 *)
13651 # FIXME: insert proper C++ library support
13652 ld_shlibs_CXX=no
13653 ;;
13654 esac
13655
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13657 $as_echo "$ld_shlibs_CXX" >&6; }
13658 test "$ld_shlibs_CXX" = no && can_build_shared=no
13659
13660 GCC_CXX="$GXX"
13661 LD_CXX="$LD"
13662
13663 ## CAVEAT EMPTOR:
13664 ## There is no encapsulation within the following macros, do not change
13665 ## the running order or otherwise move them around unless you know exactly
13666 ## what you are doing...
13667 # Dependencies to place before and after the object being linked:
13668 predep_objects_CXX=
13669 postdep_objects_CXX=
13670 predeps_CXX=
13671 postdeps_CXX=
13672 compiler_lib_search_path_CXX=
13673
13674 cat > conftest.$ac_ext <<_LT_EOF
13675 class Foo
13676 {
13677 public:
13678 Foo (void) { a = 0; }
13679 private:
13680 int a;
13681 };
13682 _LT_EOF
13683
13684
13685 _lt_libdeps_save_CFLAGS=$CFLAGS
13686 case "$CC $CFLAGS " in #(
13687 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13688 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13689 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13690 esac
13691
13692 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13693 (eval $ac_compile) 2>&5
13694 ac_status=$?
13695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13696 test $ac_status = 0; }; then
13697 # Parse the compiler output and extract the necessary
13698 # objects, libraries and library flags.
13699
13700 # Sentinel used to keep track of whether or not we are before
13701 # the conftest object file.
13702 pre_test_object_deps_done=no
13703
13704 for p in `eval "$output_verbose_link_cmd"`; do
13705 case ${prev}${p} in
13706
13707 -L* | -R* | -l*)
13708 # Some compilers place space between "-{L,R}" and the path.
13709 # Remove the space.
13710 if test $p = "-L" ||
13711 test $p = "-R"; then
13712 prev=$p
13713 continue
13714 fi
13715
13716 # Expand the sysroot to ease extracting the directories later.
13717 if test -z "$prev"; then
13718 case $p in
13719 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13720 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13721 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13722 esac
13723 fi
13724 case $p in
13725 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13726 esac
13727 if test "$pre_test_object_deps_done" = no; then
13728 case ${prev} in
13729 -L | -R)
13730 # Internal compiler library paths should come after those
13731 # provided the user. The postdeps already come after the
13732 # user supplied libs so there is no need to process them.
13733 if test -z "$compiler_lib_search_path_CXX"; then
13734 compiler_lib_search_path_CXX="${prev}${p}"
13735 else
13736 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13737 fi
13738 ;;
13739 # The "-l" case would never come before the object being
13740 # linked, so don't bother handling this case.
13741 esac
13742 else
13743 if test -z "$postdeps_CXX"; then
13744 postdeps_CXX="${prev}${p}"
13745 else
13746 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13747 fi
13748 fi
13749 prev=
13750 ;;
13751
13752 *.lto.$objext) ;; # Ignore GCC LTO objects
13753 *.$objext)
13754 # This assumes that the test object file only shows up
13755 # once in the compiler output.
13756 if test "$p" = "conftest.$objext"; then
13757 pre_test_object_deps_done=yes
13758 continue
13759 fi
13760
13761 if test "$pre_test_object_deps_done" = no; then
13762 if test -z "$predep_objects_CXX"; then
13763 predep_objects_CXX="$p"
13764 else
13765 predep_objects_CXX="$predep_objects_CXX $p"
13766 fi
13767 else
13768 if test -z "$postdep_objects_CXX"; then
13769 postdep_objects_CXX="$p"
13770 else
13771 postdep_objects_CXX="$postdep_objects_CXX $p"
13772 fi
13773 fi
13774 ;;
13775
13776 *) ;; # Ignore the rest.
13777
13778 esac
13779 done
13780
13781 # Clean up.
13782 rm -f a.out a.exe
13783 else
13784 echo "libtool.m4: error: problem compiling CXX test program"
13785 fi
13786
13787 $RM -f confest.$objext
13788 CFLAGS=$_lt_libdeps_save_CFLAGS
13789
13790 # PORTME: override above test on systems where it is broken
13791 case $host_os in
13792 interix[3-9]*)
13793 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13794 # hack all around it, let's just trust "g++" to DTRT.
13795 predep_objects_CXX=
13796 postdep_objects_CXX=
13797 postdeps_CXX=
13798 ;;
13799
13800 linux*)
13801 case `$CC -V 2>&1 | sed 5q` in
13802 *Sun\ C*)
13803 # Sun C++ 5.9
13804
13805 # The more standards-conforming stlport4 library is
13806 # incompatible with the Cstd library. Avoid specifying
13807 # it if it's in CXXFLAGS. Ignore libCrun as
13808 # -library=stlport4 depends on it.
13809 case " $CXX $CXXFLAGS " in
13810 *" -library=stlport4 "*)
13811 solaris_use_stlport4=yes
13812 ;;
13813 esac
13814
13815 if test "$solaris_use_stlport4" != yes; then
13816 postdeps_CXX='-library=Cstd -library=Crun'
13817 fi
13818 ;;
13819 esac
13820 ;;
13821
13822 solaris*)
13823 case $cc_basename in
13824 CC* | sunCC*)
13825 # The more standards-conforming stlport4 library is
13826 # incompatible with the Cstd library. Avoid specifying
13827 # it if it's in CXXFLAGS. Ignore libCrun as
13828 # -library=stlport4 depends on it.
13829 case " $CXX $CXXFLAGS " in
13830 *" -library=stlport4 "*)
13831 solaris_use_stlport4=yes
13832 ;;
13833 esac
13834
13835 # Adding this requires a known-good setup of shared libraries for
13836 # Sun compiler versions before 5.6, else PIC objects from an old
13837 # archive will be linked into the output, leading to subtle bugs.
13838 if test "$solaris_use_stlport4" != yes; then
13839 postdeps_CXX='-library=Cstd -library=Crun'
13840 fi
13841 ;;
13842 esac
13843 ;;
13844 esac
13845
13846
13847 case " $postdeps_CXX " in
13848 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13849 esac
13850 compiler_lib_search_dirs_CXX=
13851 if test -n "${compiler_lib_search_path_CXX}"; then
13852 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13853 fi
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885 lt_prog_compiler_wl_CXX=
13886 lt_prog_compiler_pic_CXX=
13887 lt_prog_compiler_static_CXX=
13888
13889
13890 # C++ specific cases for pic, static, wl, etc.
13891 if test "$GXX" = yes; then
13892 lt_prog_compiler_wl_CXX='-Wl,'
13893 lt_prog_compiler_static_CXX='-static'
13894
13895 case $host_os in
13896 aix*)
13897 # All AIX code is PIC.
13898 if test "$host_cpu" = ia64; then
13899 # AIX 5 now supports IA64 processor
13900 lt_prog_compiler_static_CXX='-Bstatic'
13901 fi
13902 ;;
13903
13904 amigaos*)
13905 case $host_cpu in
13906 powerpc)
13907 # see comment about AmigaOS4 .so support
13908 lt_prog_compiler_pic_CXX='-fPIC'
13909 ;;
13910 m68k)
13911 # FIXME: we need at least 68020 code to build shared libraries, but
13912 # adding the `-m68020' flag to GCC prevents building anything better,
13913 # like `-m68040'.
13914 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13915 ;;
13916 esac
13917 ;;
13918
13919 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13920 # PIC is the default for these OSes.
13921 ;;
13922 mingw* | cygwin* | os2* | pw32* | cegcc*)
13923 # This hack is so that the source file can tell whether it is being
13924 # built for inclusion in a dll (and should export symbols for example).
13925 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13926 # (--disable-auto-import) libraries
13927 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13928 ;;
13929 darwin* | rhapsody*)
13930 # PIC is the default on this platform
13931 # Common symbols not allowed in MH_DYLIB files
13932 lt_prog_compiler_pic_CXX='-fno-common'
13933 ;;
13934 *djgpp*)
13935 # DJGPP does not support shared libraries at all
13936 lt_prog_compiler_pic_CXX=
13937 ;;
13938 haiku*)
13939 # PIC is the default for Haiku.
13940 # The "-static" flag exists, but is broken.
13941 lt_prog_compiler_static_CXX=
13942 ;;
13943 interix[3-9]*)
13944 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13945 # Instead, we relocate shared libraries at runtime.
13946 ;;
13947 sysv4*MP*)
13948 if test -d /usr/nec; then
13949 lt_prog_compiler_pic_CXX=-Kconform_pic
13950 fi
13951 ;;
13952 hpux*)
13953 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13954 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13955 # sets the default TLS model and affects inlining.
13956 case $host_cpu in
13957 hppa*64*)
13958 ;;
13959 *)
13960 lt_prog_compiler_pic_CXX='-fPIC'
13961 ;;
13962 esac
13963 ;;
13964 *qnx* | *nto*)
13965 # QNX uses GNU C++, but need to define -shared option too, otherwise
13966 # it will coredump.
13967 lt_prog_compiler_pic_CXX='-fPIC -shared'
13968 ;;
13969 *)
13970 lt_prog_compiler_pic_CXX='-fPIC'
13971 ;;
13972 esac
13973 else
13974 case $host_os in
13975 aix[4-9]*)
13976 # All AIX code is PIC.
13977 if test "$host_cpu" = ia64; then
13978 # AIX 5 now supports IA64 processor
13979 lt_prog_compiler_static_CXX='-Bstatic'
13980 else
13981 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13982 fi
13983 ;;
13984 chorus*)
13985 case $cc_basename in
13986 cxch68*)
13987 # Green Hills C++ Compiler
13988 # _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"
13989 ;;
13990 esac
13991 ;;
13992 mingw* | cygwin* | os2* | pw32* | cegcc*)
13993 # This hack is so that the source file can tell whether it is being
13994 # built for inclusion in a dll (and should export symbols for example).
13995 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13996 ;;
13997 dgux*)
13998 case $cc_basename in
13999 ec++*)
14000 lt_prog_compiler_pic_CXX='-KPIC'
14001 ;;
14002 ghcx*)
14003 # Green Hills C++ Compiler
14004 lt_prog_compiler_pic_CXX='-pic'
14005 ;;
14006 *)
14007 ;;
14008 esac
14009 ;;
14010 freebsd* | dragonfly*)
14011 # FreeBSD uses GNU C++
14012 ;;
14013 hpux9* | hpux10* | hpux11*)
14014 case $cc_basename in
14015 CC*)
14016 lt_prog_compiler_wl_CXX='-Wl,'
14017 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14018 if test "$host_cpu" != ia64; then
14019 lt_prog_compiler_pic_CXX='+Z'
14020 fi
14021 ;;
14022 aCC*)
14023 lt_prog_compiler_wl_CXX='-Wl,'
14024 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14025 case $host_cpu in
14026 hppa*64*|ia64*)
14027 # +Z the default
14028 ;;
14029 *)
14030 lt_prog_compiler_pic_CXX='+Z'
14031 ;;
14032 esac
14033 ;;
14034 *)
14035 ;;
14036 esac
14037 ;;
14038 interix*)
14039 # This is c89, which is MS Visual C++ (no shared libs)
14040 # Anyone wants to do a port?
14041 ;;
14042 irix5* | irix6* | nonstopux*)
14043 case $cc_basename in
14044 CC*)
14045 lt_prog_compiler_wl_CXX='-Wl,'
14046 lt_prog_compiler_static_CXX='-non_shared'
14047 # CC pic flag -KPIC is the default.
14048 ;;
14049 *)
14050 ;;
14051 esac
14052 ;;
14053 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14054 case $cc_basename in
14055 KCC*)
14056 # KAI C++ Compiler
14057 lt_prog_compiler_wl_CXX='--backend -Wl,'
14058 lt_prog_compiler_pic_CXX='-fPIC'
14059 ;;
14060 ecpc* )
14061 # old Intel C++ for x86_64 which still supported -KPIC.
14062 lt_prog_compiler_wl_CXX='-Wl,'
14063 lt_prog_compiler_pic_CXX='-KPIC'
14064 lt_prog_compiler_static_CXX='-static'
14065 ;;
14066 icpc* )
14067 # Intel C++, used to be incompatible with GCC.
14068 # ICC 10 doesn't accept -KPIC any more.
14069 lt_prog_compiler_wl_CXX='-Wl,'
14070 lt_prog_compiler_pic_CXX='-fPIC'
14071 lt_prog_compiler_static_CXX='-static'
14072 ;;
14073 pgCC* | pgcpp*)
14074 # Portland Group C++ compiler
14075 lt_prog_compiler_wl_CXX='-Wl,'
14076 lt_prog_compiler_pic_CXX='-fpic'
14077 lt_prog_compiler_static_CXX='-Bstatic'
14078 ;;
14079 cxx*)
14080 # Compaq C++
14081 # Make sure the PIC flag is empty. It appears that all Alpha
14082 # Linux and Compaq Tru64 Unix objects are PIC.
14083 lt_prog_compiler_pic_CXX=
14084 lt_prog_compiler_static_CXX='-non_shared'
14085 ;;
14086 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14087 # IBM XL 8.0, 9.0 on PPC and BlueGene
14088 lt_prog_compiler_wl_CXX='-Wl,'
14089 lt_prog_compiler_pic_CXX='-qpic'
14090 lt_prog_compiler_static_CXX='-qstaticlink'
14091 ;;
14092 *)
14093 case `$CC -V 2>&1 | sed 5q` in
14094 *Sun\ C*)
14095 # Sun C++ 5.9
14096 lt_prog_compiler_pic_CXX='-KPIC'
14097 lt_prog_compiler_static_CXX='-Bstatic'
14098 lt_prog_compiler_wl_CXX='-Qoption ld '
14099 ;;
14100 esac
14101 ;;
14102 esac
14103 ;;
14104 lynxos*)
14105 ;;
14106 m88k*)
14107 ;;
14108 mvs*)
14109 case $cc_basename in
14110 cxx*)
14111 lt_prog_compiler_pic_CXX='-W c,exportall'
14112 ;;
14113 *)
14114 ;;
14115 esac
14116 ;;
14117 netbsd* | netbsdelf*-gnu)
14118 ;;
14119 *qnx* | *nto*)
14120 # QNX uses GNU C++, but need to define -shared option too, otherwise
14121 # it will coredump.
14122 lt_prog_compiler_pic_CXX='-fPIC -shared'
14123 ;;
14124 osf3* | osf4* | osf5*)
14125 case $cc_basename in
14126 KCC*)
14127 lt_prog_compiler_wl_CXX='--backend -Wl,'
14128 ;;
14129 RCC*)
14130 # Rational C++ 2.4.1
14131 lt_prog_compiler_pic_CXX='-pic'
14132 ;;
14133 cxx*)
14134 # Digital/Compaq C++
14135 lt_prog_compiler_wl_CXX='-Wl,'
14136 # Make sure the PIC flag is empty. It appears that all Alpha
14137 # Linux and Compaq Tru64 Unix objects are PIC.
14138 lt_prog_compiler_pic_CXX=
14139 lt_prog_compiler_static_CXX='-non_shared'
14140 ;;
14141 *)
14142 ;;
14143 esac
14144 ;;
14145 psos*)
14146 ;;
14147 solaris*)
14148 case $cc_basename in
14149 CC* | sunCC*)
14150 # Sun C++ 4.2, 5.x and Centerline C++
14151 lt_prog_compiler_pic_CXX='-KPIC'
14152 lt_prog_compiler_static_CXX='-Bstatic'
14153 lt_prog_compiler_wl_CXX='-Qoption ld '
14154 ;;
14155 gcx*)
14156 # Green Hills C++ Compiler
14157 lt_prog_compiler_pic_CXX='-PIC'
14158 ;;
14159 *)
14160 ;;
14161 esac
14162 ;;
14163 sunos4*)
14164 case $cc_basename in
14165 CC*)
14166 # Sun C++ 4.x
14167 lt_prog_compiler_pic_CXX='-pic'
14168 lt_prog_compiler_static_CXX='-Bstatic'
14169 ;;
14170 lcc*)
14171 # Lucid
14172 lt_prog_compiler_pic_CXX='-pic'
14173 ;;
14174 *)
14175 ;;
14176 esac
14177 ;;
14178 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14179 case $cc_basename in
14180 CC*)
14181 lt_prog_compiler_wl_CXX='-Wl,'
14182 lt_prog_compiler_pic_CXX='-KPIC'
14183 lt_prog_compiler_static_CXX='-Bstatic'
14184 ;;
14185 esac
14186 ;;
14187 tandem*)
14188 case $cc_basename in
14189 NCC*)
14190 # NonStop-UX NCC 3.20
14191 lt_prog_compiler_pic_CXX='-KPIC'
14192 ;;
14193 *)
14194 ;;
14195 esac
14196 ;;
14197 vxworks*)
14198 ;;
14199 *)
14200 lt_prog_compiler_can_build_shared_CXX=no
14201 ;;
14202 esac
14203 fi
14204
14205 case $host_os in
14206 # For platforms which do not support PIC, -DPIC is meaningless:
14207 *djgpp*)
14208 lt_prog_compiler_pic_CXX=
14209 ;;
14210 *)
14211 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14212 ;;
14213 esac
14214
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14216 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14217 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14218 $as_echo_n "(cached) " >&6
14219 else
14220 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14221 fi
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14223 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14224 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14225
14226 #
14227 # Check to make sure the PIC flag actually works.
14228 #
14229 if test -n "$lt_prog_compiler_pic_CXX"; then
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14231 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14232 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14233 $as_echo_n "(cached) " >&6
14234 else
14235 lt_cv_prog_compiler_pic_works_CXX=no
14236 ac_outfile=conftest.$ac_objext
14237 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14238 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14239 # Insert the option either (1) after the last *FLAGS variable, or
14240 # (2) before a word containing "conftest.", or (3) at the end.
14241 # Note that $ac_compile itself does not contain backslashes and begins
14242 # with a dollar sign (not a hyphen), so the echo should work correctly.
14243 # The option is referenced via a variable to avoid confusing sed.
14244 lt_compile=`echo "$ac_compile" | $SED \
14245 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14246 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14247 -e 's:$: $lt_compiler_flag:'`
14248 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14249 (eval "$lt_compile" 2>conftest.err)
14250 ac_status=$?
14251 cat conftest.err >&5
14252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253 if (exit $ac_status) && test -s "$ac_outfile"; then
14254 # The compiler can only warn and ignore the option if not recognized
14255 # So say no if there are warnings other than the usual output.
14256 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14257 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14258 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14259 lt_cv_prog_compiler_pic_works_CXX=yes
14260 fi
14261 fi
14262 $RM conftest*
14263
14264 fi
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14266 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14267
14268 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14269 case $lt_prog_compiler_pic_CXX in
14270 "" | " "*) ;;
14271 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14272 esac
14273 else
14274 lt_prog_compiler_pic_CXX=
14275 lt_prog_compiler_can_build_shared_CXX=no
14276 fi
14277
14278 fi
14279
14280
14281
14282
14283
14284 #
14285 # Check to make sure the static flag actually works.
14286 #
14287 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14289 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14290 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14291 $as_echo_n "(cached) " >&6
14292 else
14293 lt_cv_prog_compiler_static_works_CXX=no
14294 save_LDFLAGS="$LDFLAGS"
14295 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14296 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14297 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14298 # The linker can only warn and ignore the option if not recognized
14299 # So say no if there are warnings
14300 if test -s conftest.err; then
14301 # Append any errors to the config.log.
14302 cat conftest.err 1>&5
14303 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14304 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14305 if diff conftest.exp conftest.er2 >/dev/null; then
14306 lt_cv_prog_compiler_static_works_CXX=yes
14307 fi
14308 else
14309 lt_cv_prog_compiler_static_works_CXX=yes
14310 fi
14311 fi
14312 $RM -r conftest*
14313 LDFLAGS="$save_LDFLAGS"
14314
14315 fi
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14317 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14318
14319 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14320 :
14321 else
14322 lt_prog_compiler_static_CXX=
14323 fi
14324
14325
14326
14327
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14329 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14330 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14331 $as_echo_n "(cached) " >&6
14332 else
14333 lt_cv_prog_compiler_c_o_CXX=no
14334 $RM -r conftest 2>/dev/null
14335 mkdir conftest
14336 cd conftest
14337 mkdir out
14338 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14339
14340 lt_compiler_flag="-o out/conftest2.$ac_objext"
14341 # Insert the option either (1) after the last *FLAGS variable, or
14342 # (2) before a word containing "conftest.", or (3) at the end.
14343 # Note that $ac_compile itself does not contain backslashes and begins
14344 # with a dollar sign (not a hyphen), so the echo should work correctly.
14345 lt_compile=`echo "$ac_compile" | $SED \
14346 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14347 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14348 -e 's:$: $lt_compiler_flag:'`
14349 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14350 (eval "$lt_compile" 2>out/conftest.err)
14351 ac_status=$?
14352 cat out/conftest.err >&5
14353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14355 then
14356 # The compiler can only warn and ignore the option if not recognized
14357 # So say no if there are warnings
14358 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14359 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14360 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14361 lt_cv_prog_compiler_c_o_CXX=yes
14362 fi
14363 fi
14364 chmod u+w . 2>&5
14365 $RM conftest*
14366 # SGI C++ compiler will create directory out/ii_files/ for
14367 # template instantiation
14368 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14369 $RM out/* && rmdir out
14370 cd ..
14371 $RM -r conftest
14372 $RM conftest*
14373
14374 fi
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14376 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14377
14378
14379
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14381 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14382 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14383 $as_echo_n "(cached) " >&6
14384 else
14385 lt_cv_prog_compiler_c_o_CXX=no
14386 $RM -r conftest 2>/dev/null
14387 mkdir conftest
14388 cd conftest
14389 mkdir out
14390 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14391
14392 lt_compiler_flag="-o out/conftest2.$ac_objext"
14393 # Insert the option either (1) after the last *FLAGS variable, or
14394 # (2) before a word containing "conftest.", or (3) at the end.
14395 # Note that $ac_compile itself does not contain backslashes and begins
14396 # with a dollar sign (not a hyphen), so the echo should work correctly.
14397 lt_compile=`echo "$ac_compile" | $SED \
14398 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14399 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14400 -e 's:$: $lt_compiler_flag:'`
14401 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14402 (eval "$lt_compile" 2>out/conftest.err)
14403 ac_status=$?
14404 cat out/conftest.err >&5
14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14407 then
14408 # The compiler can only warn and ignore the option if not recognized
14409 # So say no if there are warnings
14410 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14411 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14412 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14413 lt_cv_prog_compiler_c_o_CXX=yes
14414 fi
14415 fi
14416 chmod u+w . 2>&5
14417 $RM conftest*
14418 # SGI C++ compiler will create directory out/ii_files/ for
14419 # template instantiation
14420 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14421 $RM out/* && rmdir out
14422 cd ..
14423 $RM -r conftest
14424 $RM conftest*
14425
14426 fi
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14428 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14429
14430
14431
14432
14433 hard_links="nottested"
14434 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14435 # do not overwrite the value of need_locks provided by the user
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14437 $as_echo_n "checking if we can lock with hard links... " >&6; }
14438 hard_links=yes
14439 $RM conftest*
14440 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14441 touch conftest.a
14442 ln conftest.a conftest.b 2>&5 || hard_links=no
14443 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14445 $as_echo "$hard_links" >&6; }
14446 if test "$hard_links" = no; then
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14448 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14449 need_locks=warn
14450 fi
14451 else
14452 need_locks=no
14453 fi
14454
14455
14456
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14458 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14459
14460 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14461 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14462 case $host_os in
14463 aix[4-9]*)
14464 # If we're using GNU nm, then we don't want the "-C" option.
14465 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14466 # Also, AIX nm treats weak defined symbols like other global defined
14467 # symbols, whereas GNU nm marks them as "W".
14468 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14469 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'
14470 else
14471 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'
14472 fi
14473 ;;
14474 pw32*)
14475 export_symbols_cmds_CXX="$ltdll_cmds"
14476 ;;
14477 cygwin* | mingw* | cegcc*)
14478 case $cc_basename in
14479 cl*)
14480 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14481 ;;
14482 *)
14483 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14484 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14485 ;;
14486 esac
14487 ;;
14488 linux* | k*bsd*-gnu | gnu*)
14489 link_all_deplibs_CXX=no
14490 ;;
14491 *)
14492 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14493 ;;
14494 esac
14495
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14497 $as_echo "$ld_shlibs_CXX" >&6; }
14498 test "$ld_shlibs_CXX" = no && can_build_shared=no
14499
14500 with_gnu_ld_CXX=$with_gnu_ld
14501
14502
14503
14504
14505
14506
14507 #
14508 # Do we need to explicitly link libc?
14509 #
14510 case "x$archive_cmds_need_lc_CXX" in
14511 x|xyes)
14512 # Assume -lc should be added
14513 archive_cmds_need_lc_CXX=yes
14514
14515 if test "$enable_shared" = yes && test "$GCC" = yes; then
14516 case $archive_cmds_CXX in
14517 *'~'*)
14518 # FIXME: we may have to deal with multi-command sequences.
14519 ;;
14520 '$CC '*)
14521 # Test whether the compiler implicitly links with -lc since on some
14522 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14523 # to ld, don't add -lc before -lgcc.
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14525 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14526 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14527 $as_echo_n "(cached) " >&6
14528 else
14529 $RM conftest*
14530 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14531
14532 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14533 (eval $ac_compile) 2>&5
14534 ac_status=$?
14535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14536 test $ac_status = 0; } 2>conftest.err; then
14537 soname=conftest
14538 lib=conftest
14539 libobjs=conftest.$ac_objext
14540 deplibs=
14541 wl=$lt_prog_compiler_wl_CXX
14542 pic_flag=$lt_prog_compiler_pic_CXX
14543 compiler_flags=-v
14544 linker_flags=-v
14545 verstring=
14546 output_objdir=.
14547 libname=conftest
14548 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14549 allow_undefined_flag_CXX=
14550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14551 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14552 ac_status=$?
14553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14554 test $ac_status = 0; }
14555 then
14556 lt_cv_archive_cmds_need_lc_CXX=no
14557 else
14558 lt_cv_archive_cmds_need_lc_CXX=yes
14559 fi
14560 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14561 else
14562 cat conftest.err 1>&5
14563 fi
14564 $RM conftest*
14565
14566 fi
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14568 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14569 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14570 ;;
14571 esac
14572 fi
14573 ;;
14574 esac
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14638 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14639
14640 library_names_spec=
14641 libname_spec='lib$name'
14642 soname_spec=
14643 shrext_cmds=".so"
14644 postinstall_cmds=
14645 postuninstall_cmds=
14646 finish_cmds=
14647 finish_eval=
14648 shlibpath_var=
14649 shlibpath_overrides_runpath=unknown
14650 version_type=none
14651 dynamic_linker="$host_os ld.so"
14652 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14653 need_lib_prefix=unknown
14654 hardcode_into_libs=no
14655
14656 # when you set need_version to no, make sure it does not cause -set_version
14657 # flags to be left without arguments
14658 need_version=unknown
14659
14660 case $host_os in
14661 aix3*)
14662 version_type=linux # correct to gnu/linux during the next big refactor
14663 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14664 shlibpath_var=LIBPATH
14665
14666 # AIX 3 has no versioning support, so we append a major version to the name.
14667 soname_spec='${libname}${release}${shared_ext}$major'
14668 ;;
14669
14670 aix[4-9]*)
14671 version_type=linux # correct to gnu/linux during the next big refactor
14672 need_lib_prefix=no
14673 need_version=no
14674 hardcode_into_libs=yes
14675 if test "$host_cpu" = ia64; then
14676 # AIX 5 supports IA64
14677 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14678 shlibpath_var=LD_LIBRARY_PATH
14679 else
14680 # With GCC up to 2.95.x, collect2 would create an import file
14681 # for dependence libraries. The import file would start with
14682 # the line `#! .'. This would cause the generated library to
14683 # depend on `.', always an invalid library. This was fixed in
14684 # development snapshots of GCC prior to 3.0.
14685 case $host_os in
14686 aix4 | aix4.[01] | aix4.[01].*)
14687 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14688 echo ' yes '
14689 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14690 :
14691 else
14692 can_build_shared=no
14693 fi
14694 ;;
14695 esac
14696 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14697 # soname into executable. Probably we can add versioning support to
14698 # collect2, so additional links can be useful in future.
14699 if test "$aix_use_runtimelinking" = yes; then
14700 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14701 # instead of lib<name>.a to let people know that these are not
14702 # typical AIX shared libraries.
14703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14704 else
14705 # We preserve .a as extension for shared libraries through AIX4.2
14706 # and later when we are not doing run time linking.
14707 library_names_spec='${libname}${release}.a $libname.a'
14708 soname_spec='${libname}${release}${shared_ext}$major'
14709 fi
14710 shlibpath_var=LIBPATH
14711 fi
14712 ;;
14713
14714 amigaos*)
14715 case $host_cpu in
14716 powerpc)
14717 # Since July 2007 AmigaOS4 officially supports .so libraries.
14718 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14720 ;;
14721 m68k)
14722 library_names_spec='$libname.ixlibrary $libname.a'
14723 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14724 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'
14725 ;;
14726 esac
14727 ;;
14728
14729 beos*)
14730 library_names_spec='${libname}${shared_ext}'
14731 dynamic_linker="$host_os ld.so"
14732 shlibpath_var=LIBRARY_PATH
14733 ;;
14734
14735 bsdi[45]*)
14736 version_type=linux # correct to gnu/linux during the next big refactor
14737 need_version=no
14738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14739 soname_spec='${libname}${release}${shared_ext}$major'
14740 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14741 shlibpath_var=LD_LIBRARY_PATH
14742 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14743 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14744 # the default ld.so.conf also contains /usr/contrib/lib and
14745 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14746 # libtool to hard-code these into programs
14747 ;;
14748
14749 cygwin* | mingw* | pw32* | cegcc*)
14750 version_type=windows
14751 shrext_cmds=".dll"
14752 need_version=no
14753 need_lib_prefix=no
14754
14755 case $GCC,$cc_basename in
14756 yes,*)
14757 # gcc
14758 library_names_spec='$libname.dll.a'
14759 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14760 postinstall_cmds='base_file=`basename \${file}`~
14761 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14762 dldir=$destdir/`dirname \$dlpath`~
14763 test -d \$dldir || mkdir -p \$dldir~
14764 $install_prog $dir/$dlname \$dldir/$dlname~
14765 chmod a+x \$dldir/$dlname~
14766 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14767 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14768 fi'
14769 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14770 dlpath=$dir/\$dldll~
14771 $RM \$dlpath'
14772 shlibpath_overrides_runpath=yes
14773
14774 case $host_os in
14775 cygwin*)
14776 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14777 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14778
14779 ;;
14780 mingw* | cegcc*)
14781 # MinGW DLLs use traditional 'lib' prefix
14782 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14783 ;;
14784 pw32*)
14785 # pw32 DLLs use 'pw' prefix rather than 'lib'
14786 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14787 ;;
14788 esac
14789 dynamic_linker='Win32 ld.exe'
14790 ;;
14791
14792 *,cl*)
14793 # Native MSVC
14794 libname_spec='$name'
14795 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14796 library_names_spec='${libname}.dll.lib'
14797
14798 case $build_os in
14799 mingw*)
14800 sys_lib_search_path_spec=
14801 lt_save_ifs=$IFS
14802 IFS=';'
14803 for lt_path in $LIB
14804 do
14805 IFS=$lt_save_ifs
14806 # Let DOS variable expansion print the short 8.3 style file name.
14807 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14808 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14809 done
14810 IFS=$lt_save_ifs
14811 # Convert to MSYS style.
14812 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14813 ;;
14814 cygwin*)
14815 # Convert to unix form, then to dos form, then back to unix form
14816 # but this time dos style (no spaces!) so that the unix form looks
14817 # like /cygdrive/c/PROGRA~1:/cygdr...
14818 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14819 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14820 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14821 ;;
14822 *)
14823 sys_lib_search_path_spec="$LIB"
14824 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14825 # It is most probably a Windows format PATH.
14826 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14827 else
14828 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14829 fi
14830 # FIXME: find the short name or the path components, as spaces are
14831 # common. (e.g. "Program Files" -> "PROGRA~1")
14832 ;;
14833 esac
14834
14835 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14836 postinstall_cmds='base_file=`basename \${file}`~
14837 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14838 dldir=$destdir/`dirname \$dlpath`~
14839 test -d \$dldir || mkdir -p \$dldir~
14840 $install_prog $dir/$dlname \$dldir/$dlname'
14841 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14842 dlpath=$dir/\$dldll~
14843 $RM \$dlpath'
14844 shlibpath_overrides_runpath=yes
14845 dynamic_linker='Win32 link.exe'
14846 ;;
14847
14848 *)
14849 # Assume MSVC wrapper
14850 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14851 dynamic_linker='Win32 ld.exe'
14852 ;;
14853 esac
14854 # FIXME: first we should search . and the directory the executable is in
14855 shlibpath_var=PATH
14856 ;;
14857
14858 darwin* | rhapsody*)
14859 dynamic_linker="$host_os dyld"
14860 version_type=darwin
14861 need_lib_prefix=no
14862 need_version=no
14863 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14864 soname_spec='${libname}${release}${major}$shared_ext'
14865 shlibpath_overrides_runpath=yes
14866 shlibpath_var=DYLD_LIBRARY_PATH
14867 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14868
14869 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14870 ;;
14871
14872 dgux*)
14873 version_type=linux # correct to gnu/linux during the next big refactor
14874 need_lib_prefix=no
14875 need_version=no
14876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14877 soname_spec='${libname}${release}${shared_ext}$major'
14878 shlibpath_var=LD_LIBRARY_PATH
14879 ;;
14880
14881 freebsd* | dragonfly*)
14882 # DragonFly does not have aout. When/if they implement a new
14883 # versioning mechanism, adjust this.
14884 if test -x /usr/bin/objformat; then
14885 objformat=`/usr/bin/objformat`
14886 else
14887 case $host_os in
14888 freebsd[23].*) objformat=aout ;;
14889 *) objformat=elf ;;
14890 esac
14891 fi
14892 version_type=freebsd-$objformat
14893 case $version_type in
14894 freebsd-elf*)
14895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14896 need_version=no
14897 need_lib_prefix=no
14898 ;;
14899 freebsd-*)
14900 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14901 need_version=yes
14902 ;;
14903 esac
14904 shlibpath_var=LD_LIBRARY_PATH
14905 case $host_os in
14906 freebsd2.*)
14907 shlibpath_overrides_runpath=yes
14908 ;;
14909 freebsd3.[01]* | freebsdelf3.[01]*)
14910 shlibpath_overrides_runpath=yes
14911 hardcode_into_libs=yes
14912 ;;
14913 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14914 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14915 shlibpath_overrides_runpath=no
14916 hardcode_into_libs=yes
14917 ;;
14918 *) # from 4.6 on, and DragonFly
14919 shlibpath_overrides_runpath=yes
14920 hardcode_into_libs=yes
14921 ;;
14922 esac
14923 ;;
14924
14925 gnu*)
14926 version_type=linux # correct to gnu/linux during the next big refactor
14927 need_lib_prefix=no
14928 need_version=no
14929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14930 soname_spec='${libname}${release}${shared_ext}$major'
14931 shlibpath_var=LD_LIBRARY_PATH
14932 shlibpath_overrides_runpath=no
14933 hardcode_into_libs=yes
14934 ;;
14935
14936 haiku*)
14937 version_type=linux # correct to gnu/linux during the next big refactor
14938 need_lib_prefix=no
14939 need_version=no
14940 dynamic_linker="$host_os runtime_loader"
14941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14942 soname_spec='${libname}${release}${shared_ext}$major'
14943 shlibpath_var=LIBRARY_PATH
14944 shlibpath_overrides_runpath=yes
14945 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14946 hardcode_into_libs=yes
14947 ;;
14948
14949 hpux9* | hpux10* | hpux11*)
14950 # Give a soname corresponding to the major version so that dld.sl refuses to
14951 # link against other versions.
14952 version_type=sunos
14953 need_lib_prefix=no
14954 need_version=no
14955 case $host_cpu in
14956 ia64*)
14957 shrext_cmds='.so'
14958 hardcode_into_libs=yes
14959 dynamic_linker="$host_os dld.so"
14960 shlibpath_var=LD_LIBRARY_PATH
14961 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14963 soname_spec='${libname}${release}${shared_ext}$major'
14964 if test "X$HPUX_IA64_MODE" = X32; then
14965 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14966 else
14967 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14968 fi
14969 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14970 ;;
14971 hppa*64*)
14972 shrext_cmds='.sl'
14973 hardcode_into_libs=yes
14974 dynamic_linker="$host_os dld.sl"
14975 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14976 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14978 soname_spec='${libname}${release}${shared_ext}$major'
14979 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14980 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14981 ;;
14982 *)
14983 shrext_cmds='.sl'
14984 dynamic_linker="$host_os dld.sl"
14985 shlibpath_var=SHLIB_PATH
14986 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14988 soname_spec='${libname}${release}${shared_ext}$major'
14989 ;;
14990 esac
14991 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14992 postinstall_cmds='chmod 555 $lib'
14993 # or fails outright, so override atomically:
14994 install_override_mode=555
14995 ;;
14996
14997 interix[3-9]*)
14998 version_type=linux # correct to gnu/linux during the next big refactor
14999 need_lib_prefix=no
15000 need_version=no
15001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15002 soname_spec='${libname}${release}${shared_ext}$major'
15003 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15004 shlibpath_var=LD_LIBRARY_PATH
15005 shlibpath_overrides_runpath=no
15006 hardcode_into_libs=yes
15007 ;;
15008
15009 irix5* | irix6* | nonstopux*)
15010 case $host_os in
15011 nonstopux*) version_type=nonstopux ;;
15012 *)
15013 if test "$lt_cv_prog_gnu_ld" = yes; then
15014 version_type=linux # correct to gnu/linux during the next big refactor
15015 else
15016 version_type=irix
15017 fi ;;
15018 esac
15019 need_lib_prefix=no
15020 need_version=no
15021 soname_spec='${libname}${release}${shared_ext}$major'
15022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15023 case $host_os in
15024 irix5* | nonstopux*)
15025 libsuff= shlibsuff=
15026 ;;
15027 *)
15028 case $LD in # libtool.m4 will add one of these switches to LD
15029 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15030 libsuff= shlibsuff= libmagic=32-bit;;
15031 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15032 libsuff=32 shlibsuff=N32 libmagic=N32;;
15033 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15034 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15035 *) libsuff= shlibsuff= libmagic=never-match;;
15036 esac
15037 ;;
15038 esac
15039 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15040 shlibpath_overrides_runpath=no
15041 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15042 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15043 hardcode_into_libs=yes
15044 ;;
15045
15046 # No shared lib support for Linux oldld, aout, or coff.
15047 linux*oldld* | linux*aout* | linux*coff*)
15048 dynamic_linker=no
15049 ;;
15050
15051 # This must be glibc/ELF.
15052 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15053 version_type=linux # correct to gnu/linux during the next big refactor
15054 need_lib_prefix=no
15055 need_version=no
15056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15057 soname_spec='${libname}${release}${shared_ext}$major'
15058 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15059 shlibpath_var=LD_LIBRARY_PATH
15060 shlibpath_overrides_runpath=no
15061
15062 # Some binutils ld are patched to set DT_RUNPATH
15063 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15064 $as_echo_n "(cached) " >&6
15065 else
15066 lt_cv_shlibpath_overrides_runpath=no
15067 save_LDFLAGS=$LDFLAGS
15068 save_libdir=$libdir
15069 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15070 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15072 /* end confdefs.h. */
15073
15074 int
15075 main ()
15076 {
15077
15078 ;
15079 return 0;
15080 }
15081 _ACEOF
15082 if ac_fn_cxx_try_link "$LINENO"; then :
15083 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15084 lt_cv_shlibpath_overrides_runpath=yes
15085 fi
15086 fi
15087 rm -f core conftest.err conftest.$ac_objext \
15088 conftest$ac_exeext conftest.$ac_ext
15089 LDFLAGS=$save_LDFLAGS
15090 libdir=$save_libdir
15091
15092 fi
15093
15094 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15095
15096 # This implies no fast_install, which is unacceptable.
15097 # Some rework will be needed to allow for fast_install
15098 # before this can be enabled.
15099 hardcode_into_libs=yes
15100
15101 # Append ld.so.conf contents to the search path
15102 if test -f /etc/ld.so.conf; then
15103 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' ' '`
15104 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15105 fi
15106
15107 # We used to test for /lib/ld.so.1 and disable shared libraries on
15108 # powerpc, because MkLinux only supported shared libraries with the
15109 # GNU dynamic linker. Since this was broken with cross compilers,
15110 # most powerpc-linux boxes support dynamic linking these days and
15111 # people can always --disable-shared, the test was removed, and we
15112 # assume the GNU/Linux dynamic linker is in use.
15113 dynamic_linker='GNU/Linux ld.so'
15114 ;;
15115
15116 netbsdelf*-gnu)
15117 version_type=linux
15118 need_lib_prefix=no
15119 need_version=no
15120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15121 soname_spec='${libname}${release}${shared_ext}$major'
15122 shlibpath_var=LD_LIBRARY_PATH
15123 shlibpath_overrides_runpath=no
15124 hardcode_into_libs=yes
15125 dynamic_linker='NetBSD ld.elf_so'
15126 ;;
15127
15128 netbsd*)
15129 version_type=sunos
15130 need_lib_prefix=no
15131 need_version=no
15132 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15134 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15135 dynamic_linker='NetBSD (a.out) ld.so'
15136 else
15137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15138 soname_spec='${libname}${release}${shared_ext}$major'
15139 dynamic_linker='NetBSD ld.elf_so'
15140 fi
15141 shlibpath_var=LD_LIBRARY_PATH
15142 shlibpath_overrides_runpath=yes
15143 hardcode_into_libs=yes
15144 ;;
15145
15146 newsos6)
15147 version_type=linux # correct to gnu/linux during the next big refactor
15148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15149 shlibpath_var=LD_LIBRARY_PATH
15150 shlibpath_overrides_runpath=yes
15151 ;;
15152
15153 *nto* | *qnx*)
15154 version_type=qnx
15155 need_lib_prefix=no
15156 need_version=no
15157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15158 soname_spec='${libname}${release}${shared_ext}$major'
15159 shlibpath_var=LD_LIBRARY_PATH
15160 shlibpath_overrides_runpath=no
15161 hardcode_into_libs=yes
15162 dynamic_linker='ldqnx.so'
15163 ;;
15164
15165 openbsd*)
15166 version_type=sunos
15167 sys_lib_dlsearch_path_spec="/usr/lib"
15168 need_lib_prefix=no
15169 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15170 case $host_os in
15171 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15172 *) need_version=no ;;
15173 esac
15174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15175 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15176 shlibpath_var=LD_LIBRARY_PATH
15177 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15178 case $host_os in
15179 openbsd2.[89] | openbsd2.[89].*)
15180 shlibpath_overrides_runpath=no
15181 ;;
15182 *)
15183 shlibpath_overrides_runpath=yes
15184 ;;
15185 esac
15186 else
15187 shlibpath_overrides_runpath=yes
15188 fi
15189 ;;
15190
15191 os2*)
15192 libname_spec='$name'
15193 shrext_cmds=".dll"
15194 need_lib_prefix=no
15195 library_names_spec='$libname${shared_ext} $libname.a'
15196 dynamic_linker='OS/2 ld.exe'
15197 shlibpath_var=LIBPATH
15198 ;;
15199
15200 osf3* | osf4* | osf5*)
15201 version_type=osf
15202 need_lib_prefix=no
15203 need_version=no
15204 soname_spec='${libname}${release}${shared_ext}$major'
15205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15206 shlibpath_var=LD_LIBRARY_PATH
15207 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15208 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15209 ;;
15210
15211 rdos*)
15212 dynamic_linker=no
15213 ;;
15214
15215 solaris*)
15216 version_type=linux # correct to gnu/linux during the next big refactor
15217 need_lib_prefix=no
15218 need_version=no
15219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15220 soname_spec='${libname}${release}${shared_ext}$major'
15221 shlibpath_var=LD_LIBRARY_PATH
15222 shlibpath_overrides_runpath=yes
15223 hardcode_into_libs=yes
15224 # ldd complains unless libraries are executable
15225 postinstall_cmds='chmod +x $lib'
15226 ;;
15227
15228 sunos4*)
15229 version_type=sunos
15230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15231 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15232 shlibpath_var=LD_LIBRARY_PATH
15233 shlibpath_overrides_runpath=yes
15234 if test "$with_gnu_ld" = yes; then
15235 need_lib_prefix=no
15236 fi
15237 need_version=yes
15238 ;;
15239
15240 sysv4 | sysv4.3*)
15241 version_type=linux # correct to gnu/linux during the next big refactor
15242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15243 soname_spec='${libname}${release}${shared_ext}$major'
15244 shlibpath_var=LD_LIBRARY_PATH
15245 case $host_vendor in
15246 sni)
15247 shlibpath_overrides_runpath=no
15248 need_lib_prefix=no
15249 runpath_var=LD_RUN_PATH
15250 ;;
15251 siemens)
15252 need_lib_prefix=no
15253 ;;
15254 motorola)
15255 need_lib_prefix=no
15256 need_version=no
15257 shlibpath_overrides_runpath=no
15258 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15259 ;;
15260 esac
15261 ;;
15262
15263 sysv4*MP*)
15264 if test -d /usr/nec ;then
15265 version_type=linux # correct to gnu/linux during the next big refactor
15266 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15267 soname_spec='$libname${shared_ext}.$major'
15268 shlibpath_var=LD_LIBRARY_PATH
15269 fi
15270 ;;
15271
15272 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15273 version_type=freebsd-elf
15274 need_lib_prefix=no
15275 need_version=no
15276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15277 soname_spec='${libname}${release}${shared_ext}$major'
15278 shlibpath_var=LD_LIBRARY_PATH
15279 shlibpath_overrides_runpath=yes
15280 hardcode_into_libs=yes
15281 if test "$with_gnu_ld" = yes; then
15282 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15283 else
15284 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15285 case $host_os in
15286 sco3.2v5*)
15287 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15288 ;;
15289 esac
15290 fi
15291 sys_lib_dlsearch_path_spec='/usr/lib'
15292 ;;
15293
15294 tpf*)
15295 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15296 version_type=linux # correct to gnu/linux during the next big refactor
15297 need_lib_prefix=no
15298 need_version=no
15299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15300 shlibpath_var=LD_LIBRARY_PATH
15301 shlibpath_overrides_runpath=no
15302 hardcode_into_libs=yes
15303 ;;
15304
15305 uts4*)
15306 version_type=linux # correct to gnu/linux during the next big refactor
15307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15308 soname_spec='${libname}${release}${shared_ext}$major'
15309 shlibpath_var=LD_LIBRARY_PATH
15310 ;;
15311
15312 *)
15313 dynamic_linker=no
15314 ;;
15315 esac
15316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15317 $as_echo "$dynamic_linker" >&6; }
15318 test "$dynamic_linker" = no && can_build_shared=no
15319
15320 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15321 if test "$GCC" = yes; then
15322 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15323 fi
15324
15325 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15326 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15327 fi
15328 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15329 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15330 fi
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15370 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15371 hardcode_action_CXX=
15372 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15373 test -n "$runpath_var_CXX" ||
15374 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15375
15376 # We can hardcode non-existent directories.
15377 if test "$hardcode_direct_CXX" != no &&
15378 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15379 # have to relink, otherwise we might link with an installed library
15380 # when we should be linking with a yet-to-be-installed one
15381 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15382 test "$hardcode_minus_L_CXX" != no; then
15383 # Linking always hardcodes the temporary library directory.
15384 hardcode_action_CXX=relink
15385 else
15386 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15387 hardcode_action_CXX=immediate
15388 fi
15389 else
15390 # We cannot hardcode anything, or else we can only hardcode existing
15391 # directories.
15392 hardcode_action_CXX=unsupported
15393 fi
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15395 $as_echo "$hardcode_action_CXX" >&6; }
15396
15397 if test "$hardcode_action_CXX" = relink ||
15398 test "$inherit_rpath_CXX" = yes; then
15399 # Fast installation is not supported
15400 enable_fast_install=no
15401 elif test "$shlibpath_overrides_runpath" = yes ||
15402 test "$enable_shared" = no; then
15403 # Fast installation is not necessary
15404 enable_fast_install=needless
15405 fi
15406
15407
15408
15409
15410
15411
15412
15413 fi # test -n "$compiler"
15414
15415 CC=$lt_save_CC
15416 CFLAGS=$lt_save_CFLAGS
15417 LDCXX=$LD
15418 LD=$lt_save_LD
15419 GCC=$lt_save_GCC
15420 with_gnu_ld=$lt_save_with_gnu_ld
15421 lt_cv_path_LDCXX=$lt_cv_path_LD
15422 lt_cv_path_LD=$lt_save_path_LD
15423 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15424 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15425 fi # test "$_lt_caught_CXX_error" != yes
15426
15427 ac_ext=c
15428 ac_cpp='$CPP $CPPFLAGS'
15429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447 ac_config_commands="$ac_config_commands libtool"
15448
15449
15450
15451
15452 # Only expand once:
15453
15454
15455
15456
15457 case $host in
15458 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
15459 if test "$enable_shared" = yes; then
15460 LIBLRCALC_LDFLAGS="$LIBLRCALC_LDFLAGS -no-undefined -Wl,--output-def,.libs/liblrcalc-0.def"
15461 fi
15462 ;;
15463 esac
15464
15465 # Checks for libraries.
15466
15467 # Checks for header files.
15468 for ac_header in stdlib.h string.h unistd.h
15469 do :
15470 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15471 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15472 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15473 cat >>confdefs.h <<_ACEOF
15474 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15475 _ACEOF
15476
15477 fi
15478
15479 done
15480
15481
15482 # Checks for typedefs, structures, and compiler characteristics.
15483 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15484 if test "x$ac_cv_type_size_t" = xyes; then :
15485
15486 else
15487
15488 cat >>confdefs.h <<_ACEOF
15489 #define size_t unsigned int
15490 _ACEOF
15491
15492 fi
15493
15494
15495 # Checks for library functions.
15496 for ac_header in stdlib.h
15497 do :
15498 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15499 if test "x$ac_cv_header_stdlib_h" = xyes; then :
15500 cat >>confdefs.h <<_ACEOF
15501 #define HAVE_STDLIB_H 1
15502 _ACEOF
15503
15504 fi
15505
15506 done
15507
15508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
15509 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
15510 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
15511 $as_echo_n "(cached) " >&6
15512 else
15513 if test "$cross_compiling" = yes; then :
15514 ac_cv_func_malloc_0_nonnull=no
15515 else
15516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15517 /* end confdefs.h. */
15518 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
15519 # include <stdlib.h>
15520 #else
15521 char *malloc ();
15522 #endif
15523
15524 int
15525 main ()
15526 {
15527 return ! malloc (0);
15528 ;
15529 return 0;
15530 }
15531 _ACEOF
15532 if ac_fn_c_try_run "$LINENO"; then :
15533 ac_cv_func_malloc_0_nonnull=yes
15534 else
15535 ac_cv_func_malloc_0_nonnull=no
15536 fi
15537 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15538 conftest.$ac_objext conftest.beam conftest.$ac_ext
15539 fi
15540
15541 fi
15542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
15543 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
15544 if test $ac_cv_func_malloc_0_nonnull = yes; then :
15545
15546 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
15547
15548 else
15549 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
15550
15551 case " $LIBOBJS " in
15552 *" malloc.$ac_objext "* ) ;;
15553 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
15554 ;;
15555 esac
15556
15557
15558 $as_echo "#define malloc rpl_malloc" >>confdefs.h
15559
15560 fi
15561
15562
15563 for ac_header in stdlib.h
15564 do :
15565 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15566 if test "x$ac_cv_header_stdlib_h" = xyes; then :
15567 cat >>confdefs.h <<_ACEOF
15568 #define HAVE_STDLIB_H 1
15569 _ACEOF
15570
15571 fi
15572
15573 done
15574
15575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
15576 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
15577 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
15578 $as_echo_n "(cached) " >&6
15579 else
15580 if test "$cross_compiling" = yes; then :
15581 ac_cv_func_realloc_0_nonnull=no
15582 else
15583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15584 /* end confdefs.h. */
15585 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
15586 # include <stdlib.h>
15587 #else
15588 char *realloc ();
15589 #endif
15590
15591 int
15592 main ()
15593 {
15594 return ! realloc (0, 0);
15595 ;
15596 return 0;
15597 }
15598 _ACEOF
15599 if ac_fn_c_try_run "$LINENO"; then :
15600 ac_cv_func_realloc_0_nonnull=yes
15601 else
15602 ac_cv_func_realloc_0_nonnull=no
15603 fi
15604 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15605 conftest.$ac_objext conftest.beam conftest.$ac_ext
15606 fi
15607
15608 fi
15609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
15610 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
15611 if test $ac_cv_func_realloc_0_nonnull = yes; then :
15612
15613 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
15614
15615 else
15616 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
15617
15618 case " $LIBOBJS " in
15619 *" realloc.$ac_objext "* ) ;;
15620 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
15621 ;;
15622 esac
15623
15624
15625 $as_echo "#define realloc rpl_realloc" >>confdefs.h
15626
15627 fi
15628
15629
15630 for ac_func in memset strtol
15631 do :
15632 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15633 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15634 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15635 cat >>confdefs.h <<_ACEOF
15636 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15637 _ACEOF
15638
15639 fi
15640 done
15641
15642
15643 ac_config_files="$ac_config_files Makefile src/Makefile"
15644
15645 cat >confcache <<\_ACEOF
15646 # This file is a shell script that caches the results of configure
15647 # tests run on this system so they can be shared between configure
15648 # scripts and configure runs, see configure's option --config-cache.
15649 # It is not useful on other systems. If it contains results you don't
15650 # want to keep, you may remove or edit it.
15651 #
15652 # config.status only pays attention to the cache file if you give it
15653 # the --recheck option to rerun configure.
15654 #
15655 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15656 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15657 # following values.
15658
15659 _ACEOF
15660
15661 # The following way of writing the cache mishandles newlines in values,
15662 # but we know of no workaround that is simple, portable, and efficient.
15663 # So, we kill variables containing newlines.
15664 # Ultrix sh set writes to stderr and can't be redirected directly,
15665 # and sets the high bit in the cache file unless we assign to the vars.
15666 (
15667 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15668 eval ac_val=\$$ac_var
15669 case $ac_val in #(
15670 *${as_nl}*)
15671 case $ac_var in #(
15672 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15673 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15674 esac
15675 case $ac_var in #(
15676 _ | IFS | as_nl) ;; #(
15677 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15678 *) { eval $ac_var=; unset $ac_var;} ;;
15679 esac ;;
15680 esac
15681 done
15682
15683 (set) 2>&1 |
15684 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15685 *${as_nl}ac_space=\ *)
15686 # `set' does not quote correctly, so add quotes: double-quote
15687 # substitution turns \\\\ into \\, and sed turns \\ into \.
15688 sed -n \
15689 "s/'/'\\\\''/g;
15690 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15691 ;; #(
15692 *)
15693 # `set' quotes correctly as required by POSIX, so do not add quotes.
15694 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15695 ;;
15696 esac |
15697 sort
15698 ) |
15699 sed '
15700 /^ac_cv_env_/b end
15701 t clear
15702 :clear
15703 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15704 t end
15705 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15706 :end' >>confcache
15707 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15708 if test -w "$cache_file"; then
15709 if test "x$cache_file" != "x/dev/null"; then
15710 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15711 $as_echo "$as_me: updating cache $cache_file" >&6;}
15712 if test ! -f "$cache_file" || test -h "$cache_file"; then
15713 cat confcache >"$cache_file"
15714 else
15715 case $cache_file in #(
15716 */* | ?:*)
15717 mv -f confcache "$cache_file"$$ &&
15718 mv -f "$cache_file"$$ "$cache_file" ;; #(
15719 *)
15720 mv -f confcache "$cache_file" ;;
15721 esac
15722 fi
15723 fi
15724 else
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15726 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15727 fi
15728 fi
15729 rm -f confcache
15730
15731 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15732 # Let make expand exec_prefix.
15733 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15734
15735 DEFS=-DHAVE_CONFIG_H
15736
15737 ac_libobjs=
15738 ac_ltlibobjs=
15739 U=
15740 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15741 # 1. Remove the extension, and $U if already installed.
15742 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15743 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15744 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15745 # will be set to the directory where LIBOBJS objects are built.
15746 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15747 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15748 done
15749 LIBOBJS=$ac_libobjs
15750
15751 LTLIBOBJS=$ac_ltlibobjs
15752
15753
15754 if test -n "$EXEEXT"; then
15755 am__EXEEXT_TRUE=
15756 am__EXEEXT_FALSE='#'
15757 else
15758 am__EXEEXT_TRUE='#'
15759 am__EXEEXT_FALSE=
15760 fi
15761
15762 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15763 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15764 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15765 fi
15766 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15767 as_fn_error $? "conditional \"AMDEP\" was never defined.
15768 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15769 fi
15770 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15771 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15772 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15773 fi
15774 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15775 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15776 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15777 fi
15778
15779 : "${CONFIG_STATUS=./config.status}"
15780 ac_write_fail=0
15781 ac_clean_files_save=$ac_clean_files
15782 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15784 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15785 as_write_fail=0
15786 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15787 #! $SHELL
15788 # Generated by $as_me.
15789 # Run this file to recreate the current configuration.
15790 # Compiler output produced by configure, useful for debugging
15791 # configure, is in config.log if it exists.
15792
15793 debug=false
15794 ac_cs_recheck=false
15795 ac_cs_silent=false
15796
15797 SHELL=\${CONFIG_SHELL-$SHELL}
15798 export SHELL
15799 _ASEOF
15800 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15801 ## -------------------- ##
15802 ## M4sh Initialization. ##
15803 ## -------------------- ##
15804
15805 # Be more Bourne compatible
15806 DUALCASE=1; export DUALCASE # for MKS sh
15807 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15808 emulate sh
15809 NULLCMD=:
15810 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15811 # is contrary to our usage. Disable this feature.
15812 alias -g '${1+"$@"}'='"$@"'
15813 setopt NO_GLOB_SUBST
15814 else
15815 case `(set -o) 2>/dev/null` in #(
15816 *posix*) :
15817 set -o posix ;; #(
15818 *) :
15819 ;;
15820 esac
15821 fi
15822
15823
15824 as_nl='
15825 '
15826 export as_nl
15827 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15828 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15829 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15830 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15831 # Prefer a ksh shell builtin over an external printf program on Solaris,
15832 # but without wasting forks for bash or zsh.
15833 if test -z "$BASH_VERSION$ZSH_VERSION" \
15834 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15835 as_echo='print -r --'
15836 as_echo_n='print -rn --'
15837 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15838 as_echo='printf %s\n'
15839 as_echo_n='printf %s'
15840 else
15841 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15842 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15843 as_echo_n='/usr/ucb/echo -n'
15844 else
15845 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15846 as_echo_n_body='eval
15847 arg=$1;
15848 case $arg in #(
15849 *"$as_nl"*)
15850 expr "X$arg" : "X\\(.*\\)$as_nl";
15851 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15852 esac;
15853 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15854 '
15855 export as_echo_n_body
15856 as_echo_n='sh -c $as_echo_n_body as_echo'
15857 fi
15858 export as_echo_body
15859 as_echo='sh -c $as_echo_body as_echo'
15860 fi
15861
15862 # The user is always right.
15863 if test "${PATH_SEPARATOR+set}" != set; then
15864 PATH_SEPARATOR=:
15865 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15866 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15867 PATH_SEPARATOR=';'
15868 }
15869 fi
15870
15871
15872 # IFS
15873 # We need space, tab and new line, in precisely that order. Quoting is
15874 # there to prevent editors from complaining about space-tab.
15875 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15876 # splitting by setting IFS to empty value.)
15877 IFS=" "" $as_nl"
15878
15879 # Find who we are. Look in the path if we contain no directory separator.
15880 as_myself=
15881 case $0 in #((
15882 *[\\/]* ) as_myself=$0 ;;
15883 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15884 for as_dir in $PATH
15885 do
15886 IFS=$as_save_IFS
15887 test -z "$as_dir" && as_dir=.
15888 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15889 done
15890 IFS=$as_save_IFS
15891
15892 ;;
15893 esac
15894 # We did not find ourselves, most probably we were run as `sh COMMAND'
15895 # in which case we are not to be found in the path.
15896 if test "x$as_myself" = x; then
15897 as_myself=$0
15898 fi
15899 if test ! -f "$as_myself"; then
15900 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15901 exit 1
15902 fi
15903
15904 # Unset variables that we do not need and which cause bugs (e.g. in
15905 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15906 # suppresses any "Segmentation fault" message there. '((' could
15907 # trigger a bug in pdksh 5.2.14.
15908 for as_var in BASH_ENV ENV MAIL MAILPATH
15909 do eval test x\${$as_var+set} = xset \
15910 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15911 done
15912 PS1='$ '
15913 PS2='> '
15914 PS4='+ '
15915
15916 # NLS nuisances.
15917 LC_ALL=C
15918 export LC_ALL
15919 LANGUAGE=C
15920 export LANGUAGE
15921
15922 # CDPATH.
15923 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15924
15925
15926 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15927 # ----------------------------------------
15928 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15929 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15930 # script with STATUS, using 1 if that was 0.
15931 as_fn_error ()
15932 {
15933 as_status=$1; test $as_status -eq 0 && as_status=1
15934 if test "$4"; then
15935 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15936 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15937 fi
15938 $as_echo "$as_me: error: $2" >&2
15939 as_fn_exit $as_status
15940 } # as_fn_error
15941
15942
15943 # as_fn_set_status STATUS
15944 # -----------------------
15945 # Set $? to STATUS, without forking.
15946 as_fn_set_status ()
15947 {
15948 return $1
15949 } # as_fn_set_status
15950
15951 # as_fn_exit STATUS
15952 # -----------------
15953 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15954 as_fn_exit ()
15955 {
15956 set +e
15957 as_fn_set_status $1
15958 exit $1
15959 } # as_fn_exit
15960
15961 # as_fn_unset VAR
15962 # ---------------
15963 # Portably unset VAR.
15964 as_fn_unset ()
15965 {
15966 { eval $1=; unset $1;}
15967 }
15968 as_unset=as_fn_unset
15969 # as_fn_append VAR VALUE
15970 # ----------------------
15971 # Append the text in VALUE to the end of the definition contained in VAR. Take
15972 # advantage of any shell optimizations that allow amortized linear growth over
15973 # repeated appends, instead of the typical quadratic growth present in naive
15974 # implementations.
15975 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15976 eval 'as_fn_append ()
15977 {
15978 eval $1+=\$2
15979 }'
15980 else
15981 as_fn_append ()
15982 {
15983 eval $1=\$$1\$2
15984 }
15985 fi # as_fn_append
15986
15987 # as_fn_arith ARG...
15988 # ------------------
15989 # Perform arithmetic evaluation on the ARGs, and store the result in the
15990 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15991 # must be portable across $(()) and expr.
15992 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15993 eval 'as_fn_arith ()
15994 {
15995 as_val=$(( $* ))
15996 }'
15997 else
15998 as_fn_arith ()
15999 {
16000 as_val=`expr "$@" || test $? -eq 1`
16001 }
16002 fi # as_fn_arith
16003
16004
16005 if expr a : '\(a\)' >/dev/null 2>&1 &&
16006 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16007 as_expr=expr
16008 else
16009 as_expr=false
16010 fi
16011
16012 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16013 as_basename=basename
16014 else
16015 as_basename=false
16016 fi
16017
16018 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16019 as_dirname=dirname
16020 else
16021 as_dirname=false
16022 fi
16023
16024 as_me=`$as_basename -- "$0" ||
16025 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16026 X"$0" : 'X\(//\)$' \| \
16027 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16028 $as_echo X/"$0" |
16029 sed '/^.*\/\([^/][^/]*\)\/*$/{
16030 s//\1/
16031 q
16032 }
16033 /^X\/\(\/\/\)$/{
16034 s//\1/
16035 q
16036 }
16037 /^X\/\(\/\).*/{
16038 s//\1/
16039 q
16040 }
16041 s/.*/./; q'`
16042
16043 # Avoid depending upon Character Ranges.
16044 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16045 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16046 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16047 as_cr_digits='0123456789'
16048 as_cr_alnum=$as_cr_Letters$as_cr_digits
16049
16050 ECHO_C= ECHO_N= ECHO_T=
16051 case `echo -n x` in #(((((
16052 -n*)
16053 case `echo 'xy\c'` in
16054 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16055 xy) ECHO_C='\c';;
16056 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16057 ECHO_T=' ';;
16058 esac;;
16059 *)
16060 ECHO_N='-n';;
16061 esac
16062
16063 rm -f conf$$ conf$$.exe conf$$.file
16064 if test -d conf$$.dir; then
16065 rm -f conf$$.dir/conf$$.file
16066 else
16067 rm -f conf$$.dir
16068 mkdir conf$$.dir 2>/dev/null
16069 fi
16070 if (echo >conf$$.file) 2>/dev/null; then
16071 if ln -s conf$$.file conf$$ 2>/dev/null; then
16072 as_ln_s='ln -s'
16073 # ... but there are two gotchas:
16074 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16075 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16076 # In both cases, we have to default to `cp -p'.
16077 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16078 as_ln_s='cp -p'
16079 elif ln conf$$.file conf$$ 2>/dev/null; then
16080 as_ln_s=ln
16081 else
16082 as_ln_s='cp -p'
16083 fi
16084 else
16085 as_ln_s='cp -p'
16086 fi
16087 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16088 rmdir conf$$.dir 2>/dev/null
16089
16090
16091 # as_fn_mkdir_p
16092 # -------------
16093 # Create "$as_dir" as a directory, including parents if necessary.
16094 as_fn_mkdir_p ()
16095 {
16096
16097 case $as_dir in #(
16098 -*) as_dir=./$as_dir;;
16099 esac
16100 test -d "$as_dir" || eval $as_mkdir_p || {
16101 as_dirs=
16102 while :; do
16103 case $as_dir in #(
16104 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16105 *) as_qdir=$as_dir;;
16106 esac
16107 as_dirs="'$as_qdir' $as_dirs"
16108 as_dir=`$as_dirname -- "$as_dir" ||
16109 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16110 X"$as_dir" : 'X\(//\)[^/]' \| \
16111 X"$as_dir" : 'X\(//\)$' \| \
16112 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16113 $as_echo X"$as_dir" |
16114 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16115 s//\1/
16116 q
16117 }
16118 /^X\(\/\/\)[^/].*/{
16119 s//\1/
16120 q
16121 }
16122 /^X\(\/\/\)$/{
16123 s//\1/
16124 q
16125 }
16126 /^X\(\/\).*/{
16127 s//\1/
16128 q
16129 }
16130 s/.*/./; q'`
16131 test -d "$as_dir" && break
16132 done
16133 test -z "$as_dirs" || eval "mkdir $as_dirs"
16134 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16135
16136
16137 } # as_fn_mkdir_p
16138 if mkdir -p . 2>/dev/null; then
16139 as_mkdir_p='mkdir -p "$as_dir"'
16140 else
16141 test -d ./-p && rmdir ./-p
16142 as_mkdir_p=false
16143 fi
16144
16145 if test -x / >/dev/null 2>&1; then
16146 as_test_x='test -x'
16147 else
16148 if ls -dL / >/dev/null 2>&1; then
16149 as_ls_L_option=L
16150 else
16151 as_ls_L_option=
16152 fi
16153 as_test_x='
16154 eval sh -c '\''
16155 if test -d "$1"; then
16156 test -d "$1/.";
16157 else
16158 case $1 in #(
16159 -*)set "./$1";;
16160 esac;
16161 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16162 ???[sx]*):;;*)false;;esac;fi
16163 '\'' sh
16164 '
16165 fi
16166 as_executable_p=$as_test_x
16167
16168 # Sed expression to map a string onto a valid CPP name.
16169 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16170
16171 # Sed expression to map a string onto a valid variable name.
16172 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16173
16174
16175 exec 6>&1
16176 ## ----------------------------------- ##
16177 ## Main body of $CONFIG_STATUS script. ##
16178 ## ----------------------------------- ##
16179 _ASEOF
16180 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16181
16182 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16183 # Save the log message, to keep $0 and so on meaningful, and to
16184 # report actual input values of CONFIG_FILES etc. instead of their
16185 # values after options handling.
16186 ac_log="
16187 This file was extended by lrcalc $as_me 1.2, which was
16188 generated by GNU Autoconf 2.68. Invocation command line was
16189
16190 CONFIG_FILES = $CONFIG_FILES
16191 CONFIG_HEADERS = $CONFIG_HEADERS
16192 CONFIG_LINKS = $CONFIG_LINKS
16193 CONFIG_COMMANDS = $CONFIG_COMMANDS
16194 $ $0 $@
16195
16196 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16197 "
16198
16199 _ACEOF
16200
16201 case $ac_config_files in *"
16202 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16203 esac
16204
16205 case $ac_config_headers in *"
16206 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16207 esac
16208
16209
16210 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16211 # Files that config.status was made for.
16212 config_files="$ac_config_files"
16213 config_headers="$ac_config_headers"
16214 config_commands="$ac_config_commands"
16215
16216 _ACEOF
16217
16218 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16219 ac_cs_usage="\
16220 \`$as_me' instantiates files and other configuration actions
16221 from templates according to the current configuration. Unless the files
16222 and actions are specified as TAGs, all are instantiated by default.
16223
16224 Usage: $0 [OPTION]... [TAG]...
16225
16226 -h, --help print this help, then exit
16227 -V, --version print version number and configuration settings, then exit
16228 --config print configuration, then exit
16229 -q, --quiet, --silent
16230 do not print progress messages
16231 -d, --debug don't remove temporary files
16232 --recheck update $as_me by reconfiguring in the same conditions
16233 --file=FILE[:TEMPLATE]
16234 instantiate the configuration file FILE
16235 --header=FILE[:TEMPLATE]
16236 instantiate the configuration header FILE
16237
16238 Configuration files:
16239 $config_files
16240
16241 Configuration headers:
16242 $config_headers
16243
16244 Configuration commands:
16245 $config_commands
16246
16247 Report bugs to <asbuch at math rutgers edu>."
16248
16249 _ACEOF
16250 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16251 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16252 ac_cs_version="\\
16253 lrcalc config.status 1.2
16254 configured by $0, generated by GNU Autoconf 2.68,
16255 with options \\"\$ac_cs_config\\"
16256
16257 Copyright (C) 2010 Free Software Foundation, Inc.
16258 This config.status script is free software; the Free Software Foundation
16259 gives unlimited permission to copy, distribute and modify it."
16260
16261 ac_pwd='$ac_pwd'
16262 srcdir='$srcdir'
16263 INSTALL='$INSTALL'
16264 MKDIR_P='$MKDIR_P'
16265 AWK='$AWK'
16266 test -n "\$AWK" || AWK=awk
16267 _ACEOF
16268
16269 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16270 # The default lists apply if the user does not specify any file.
16271 ac_need_defaults=:
16272 while test $# != 0
16273 do
16274 case $1 in
16275 --*=?*)
16276 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16277 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16278 ac_shift=:
16279 ;;
16280 --*=)
16281 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16282 ac_optarg=
16283 ac_shift=:
16284 ;;
16285 *)
16286 ac_option=$1
16287 ac_optarg=$2
16288 ac_shift=shift
16289 ;;
16290 esac
16291
16292 case $ac_option in
16293 # Handling of the options.
16294 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16295 ac_cs_recheck=: ;;
16296 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16297 $as_echo "$ac_cs_version"; exit ;;
16298 --config | --confi | --conf | --con | --co | --c )
16299 $as_echo "$ac_cs_config"; exit ;;
16300 --debug | --debu | --deb | --de | --d | -d )
16301 debug=: ;;
16302 --file | --fil | --fi | --f )
16303 $ac_shift
16304 case $ac_optarg in
16305 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16306 '') as_fn_error $? "missing file argument" ;;
16307 esac
16308 as_fn_append CONFIG_FILES " '$ac_optarg'"
16309 ac_need_defaults=false;;
16310 --header | --heade | --head | --hea )
16311 $ac_shift
16312 case $ac_optarg in
16313 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16314 esac
16315 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16316 ac_need_defaults=false;;
16317 --he | --h)
16318 # Conflict between --help and --header
16319 as_fn_error $? "ambiguous option: \`$1'
16320 Try \`$0 --help' for more information.";;
16321 --help | --hel | -h )
16322 $as_echo "$ac_cs_usage"; exit ;;
16323 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16324 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16325 ac_cs_silent=: ;;
16326
16327 # This is an error.
16328 -*) as_fn_error $? "unrecognized option: \`$1'
16329 Try \`$0 --help' for more information." ;;
16330
16331 *) as_fn_append ac_config_targets " $1"
16332 ac_need_defaults=false ;;
16333
16334 esac
16335 shift
16336 done
16337
16338 ac_configure_extra_args=
16339
16340 if $ac_cs_silent; then
16341 exec 6>/dev/null
16342 ac_configure_extra_args="$ac_configure_extra_args --silent"
16343 fi
16344
16345 _ACEOF
16346 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16347 if \$ac_cs_recheck; then
16348 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16349 shift
16350 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16351 CONFIG_SHELL='$SHELL'
16352 export CONFIG_SHELL
16353 exec "\$@"
16354 fi
16355
16356 _ACEOF
16357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16358 exec 5>>config.log
16359 {
16360 echo
16361 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16362 ## Running $as_me. ##
16363 _ASBOX
16364 $as_echo "$ac_log"
16365 } >&5
16366
16367 _ACEOF
16368 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16369 #
16370 # INIT-COMMANDS
16371 #
16372 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16373
16374
16375 # The HP-UX ksh and POSIX shell print the target directory to stdout
16376 # if CDPATH is set.
16377 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16378
16379 sed_quote_subst='$sed_quote_subst'
16380 double_quote_subst='$double_quote_subst'
16381 delay_variable_subst='$delay_variable_subst'
16382 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16383 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16384 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16385 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16386 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16387 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16388 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16389 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16390 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16391 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16392 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16393 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16394 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16395 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16396 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16397 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16398 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16399 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16400 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16401 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16402 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16403 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16404 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16405 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16406 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16407 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16408 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16409 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16410 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16411 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16412 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16413 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16414 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16415 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16416 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16417 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16418 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16419 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16420 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16421 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16422 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16423 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16424 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16425 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16426 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16427 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16428 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16429 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16430 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16431 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16432 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16433 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16434 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16435 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16436 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16437 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16438 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16439 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"`'
16440 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16441 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16442 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16443 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16444 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16445 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16446 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16447 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16448 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16449 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16450 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16451 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16452 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16453 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16454 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16455 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16456 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16457 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16458 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16459 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16460 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16461 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16462 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16463 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16464 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16465 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16466 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16467 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16468 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16469 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16470 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16471 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16472 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16473 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16474 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16475 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16476 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16477 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16478 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16479 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16480 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16481 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16482 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16483 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16484 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16485 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16486 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16487 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16488 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16489 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16490 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16491 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16492 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16493 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16494 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16495 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16496 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16497 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16498 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16499 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16500 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16501 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16502 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16503 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16504 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16505 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16506 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16507 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16508 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16509 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16510 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16511 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16512 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16513 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16514 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16515 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16516 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16517 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16518 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16519 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16520 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16521 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16522 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16523 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16524 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16525 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16526 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16527 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16528 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16529 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16530 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16531 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16532 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16533 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16534 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16535 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16536 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16537 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16538 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16539 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16540 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16541 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16542 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16543 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16544 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16545 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16546 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16547 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16548 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16549 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16550 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16551 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16552 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16553 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16554 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16555 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16556 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16557 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16558 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16559 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16560 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16561 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16562 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16563 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16564 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16565 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16566 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16567
16568 LTCC='$LTCC'
16569 LTCFLAGS='$LTCFLAGS'
16570 compiler='$compiler_DEFAULT'
16571
16572 # A function that is used when there is no print builtin or printf.
16573 func_fallback_echo ()
16574 {
16575 eval 'cat <<_LTECHO_EOF
16576 \$1
16577 _LTECHO_EOF'
16578 }
16579
16580 # Quote evaled strings.
16581 for var in AS \
16582 DLLTOOL \
16583 OBJDUMP \
16584 SHELL \
16585 ECHO \
16586 PATH_SEPARATOR \
16587 SED \
16588 GREP \
16589 EGREP \
16590 FGREP \
16591 LD \
16592 NM \
16593 LN_S \
16594 lt_SP2NL \
16595 lt_NL2SP \
16596 reload_flag \
16597 deplibs_check_method \
16598 file_magic_cmd \
16599 file_magic_glob \
16600 want_nocaseglob \
16601 sharedlib_from_linklib_cmd \
16602 AR \
16603 AR_FLAGS \
16604 archiver_list_spec \
16605 STRIP \
16606 RANLIB \
16607 CC \
16608 CFLAGS \
16609 compiler \
16610 lt_cv_sys_global_symbol_pipe \
16611 lt_cv_sys_global_symbol_to_cdecl \
16612 lt_cv_sys_global_symbol_to_c_name_address \
16613 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16614 nm_file_list_spec \
16615 lt_prog_compiler_no_builtin_flag \
16616 lt_prog_compiler_pic \
16617 lt_prog_compiler_wl \
16618 lt_prog_compiler_static \
16619 lt_cv_prog_compiler_c_o \
16620 need_locks \
16621 MANIFEST_TOOL \
16622 DSYMUTIL \
16623 NMEDIT \
16624 LIPO \
16625 OTOOL \
16626 OTOOL64 \
16627 shrext_cmds \
16628 export_dynamic_flag_spec \
16629 whole_archive_flag_spec \
16630 compiler_needs_object \
16631 with_gnu_ld \
16632 allow_undefined_flag \
16633 no_undefined_flag \
16634 hardcode_libdir_flag_spec \
16635 hardcode_libdir_separator \
16636 exclude_expsyms \
16637 include_expsyms \
16638 file_list_spec \
16639 variables_saved_for_relink \
16640 libname_spec \
16641 library_names_spec \
16642 soname_spec \
16643 install_override_mode \
16644 finish_eval \
16645 old_striplib \
16646 striplib \
16647 compiler_lib_search_dirs \
16648 predep_objects \
16649 postdep_objects \
16650 predeps \
16651 postdeps \
16652 compiler_lib_search_path \
16653 LD_CXX \
16654 reload_flag_CXX \
16655 compiler_CXX \
16656 lt_prog_compiler_no_builtin_flag_CXX \
16657 lt_prog_compiler_pic_CXX \
16658 lt_prog_compiler_wl_CXX \
16659 lt_prog_compiler_static_CXX \
16660 lt_cv_prog_compiler_c_o_CXX \
16661 export_dynamic_flag_spec_CXX \
16662 whole_archive_flag_spec_CXX \
16663 compiler_needs_object_CXX \
16664 with_gnu_ld_CXX \
16665 allow_undefined_flag_CXX \
16666 no_undefined_flag_CXX \
16667 hardcode_libdir_flag_spec_CXX \
16668 hardcode_libdir_separator_CXX \
16669 exclude_expsyms_CXX \
16670 include_expsyms_CXX \
16671 file_list_spec_CXX \
16672 compiler_lib_search_dirs_CXX \
16673 predep_objects_CXX \
16674 postdep_objects_CXX \
16675 predeps_CXX \
16676 postdeps_CXX \
16677 compiler_lib_search_path_CXX; do
16678 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16679 *[\\\\\\\`\\"\\\$]*)
16680 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16681 ;;
16682 *)
16683 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16684 ;;
16685 esac
16686 done
16687
16688 # Double-quote double-evaled strings.
16689 for var in reload_cmds \
16690 old_postinstall_cmds \
16691 old_postuninstall_cmds \
16692 old_archive_cmds \
16693 extract_expsyms_cmds \
16694 old_archive_from_new_cmds \
16695 old_archive_from_expsyms_cmds \
16696 archive_cmds \
16697 archive_expsym_cmds \
16698 module_cmds \
16699 module_expsym_cmds \
16700 export_symbols_cmds \
16701 prelink_cmds \
16702 postlink_cmds \
16703 postinstall_cmds \
16704 postuninstall_cmds \
16705 finish_cmds \
16706 sys_lib_search_path_spec \
16707 sys_lib_dlsearch_path_spec \
16708 reload_cmds_CXX \
16709 old_archive_cmds_CXX \
16710 old_archive_from_new_cmds_CXX \
16711 old_archive_from_expsyms_cmds_CXX \
16712 archive_cmds_CXX \
16713 archive_expsym_cmds_CXX \
16714 module_cmds_CXX \
16715 module_expsym_cmds_CXX \
16716 export_symbols_cmds_CXX \
16717 prelink_cmds_CXX \
16718 postlink_cmds_CXX; do
16719 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16720 *[\\\\\\\`\\"\\\$]*)
16721 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16722 ;;
16723 *)
16724 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16725 ;;
16726 esac
16727 done
16728
16729 ac_aux_dir='$ac_aux_dir'
16730 xsi_shell='$xsi_shell'
16731 lt_shell_append='$lt_shell_append'
16732
16733 # See if we are running on zsh, and set the options which allow our
16734 # commands through without removal of \ escapes INIT.
16735 if test -n "\${ZSH_VERSION+set}" ; then
16736 setopt NO_GLOB_SUBST
16737 fi
16738
16739
16740 PACKAGE='$PACKAGE'
16741 VERSION='$VERSION'
16742 TIMESTAMP='$TIMESTAMP'
16743 RM='$RM'
16744 ofile='$ofile'
16745
16746
16747
16748
16749
16750
16751 _ACEOF
16752
16753 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16754
16755 # Handling of arguments.
16756 for ac_config_target in $ac_config_targets
16757 do
16758 case $ac_config_target in
16759 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16760 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16761 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16762 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16763 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16764
16765 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16766 esac
16767 done
16768
16769
16770 # If the user did not use the arguments to specify the items to instantiate,
16771 # then the envvar interface is used. Set only those that are not.
16772 # We use the long form for the default assignment because of an extremely
16773 # bizarre bug on SunOS 4.1.3.
16774 if $ac_need_defaults; then
16775 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16776 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16777 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16778 fi
16779
16780 # Have a temporary directory for convenience. Make it in the build tree
16781 # simply because there is no reason against having it here, and in addition,
16782 # creating and moving files from /tmp can sometimes cause problems.
16783 # Hook for its removal unless debugging.
16784 # Note that there is a small window in which the directory will not be cleaned:
16785 # after its creation but before its name has been assigned to `$tmp'.
16786 $debug ||
16787 {
16788 tmp= ac_tmp=
16789 trap 'exit_status=$?
16790 : "${ac_tmp:=$tmp}"
16791 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16792 ' 0
16793 trap 'as_fn_exit 1' 1 2 13 15
16794 }
16795 # Create a (secure) tmp directory for tmp files.
16796
16797 {
16798 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16799 test -d "$tmp"
16800 } ||
16801 {
16802 tmp=./conf$$-$RANDOM
16803 (umask 077 && mkdir "$tmp")
16804 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16805 ac_tmp=$tmp
16806
16807 # Set up the scripts for CONFIG_FILES section.
16808 # No need to generate them if there are no CONFIG_FILES.
16809 # This happens for instance with `./config.status config.h'.
16810 if test -n "$CONFIG_FILES"; then
16811
16812
16813 ac_cr=`echo X | tr X '\015'`
16814 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16815 # But we know of no other shell where ac_cr would be empty at this
16816 # point, so we can use a bashism as a fallback.
16817 if test "x$ac_cr" = x; then
16818 eval ac_cr=\$\'\\r\'
16819 fi
16820 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16821 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16822 ac_cs_awk_cr='\\r'
16823 else
16824 ac_cs_awk_cr=$ac_cr
16825 fi
16826
16827 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16828 _ACEOF
16829
16830
16831 {
16832 echo "cat >conf$$subs.awk <<_ACEOF" &&
16833 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16834 echo "_ACEOF"
16835 } >conf$$subs.sh ||
16836 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16837 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16838 ac_delim='%!_!# '
16839 for ac_last_try in false false false false false :; do
16840 . ./conf$$subs.sh ||
16841 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16842
16843 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16844 if test $ac_delim_n = $ac_delim_num; then
16845 break
16846 elif $ac_last_try; then
16847 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16848 else
16849 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16850 fi
16851 done
16852 rm -f conf$$subs.sh
16853
16854 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16855 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16856 _ACEOF
16857 sed -n '
16858 h
16859 s/^/S["/; s/!.*/"]=/
16860 p
16861 g
16862 s/^[^!]*!//
16863 :repl
16864 t repl
16865 s/'"$ac_delim"'$//
16866 t delim
16867 :nl
16868 h
16869 s/\(.\{148\}\)..*/\1/
16870 t more1
16871 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16872 p
16873 n
16874 b repl
16875 :more1
16876 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16877 p
16878 g
16879 s/.\{148\}//
16880 t nl
16881 :delim
16882 h
16883 s/\(.\{148\}\)..*/\1/
16884 t more2
16885 s/["\\]/\\&/g; s/^/"/; s/$/"/
16886 p
16887 b
16888 :more2
16889 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16890 p
16891 g
16892 s/.\{148\}//
16893 t delim
16894 ' <conf$$subs.awk | sed '
16895 /^[^""]/{
16896 N
16897 s/\n//
16898 }
16899 ' >>$CONFIG_STATUS || ac_write_fail=1
16900 rm -f conf$$subs.awk
16901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16902 _ACAWK
16903 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16904 for (key in S) S_is_set[key] = 1
16905 FS = ""
16906
16907 }
16908 {
16909 line = $ 0
16910 nfields = split(line, field, "@")
16911 substed = 0
16912 len = length(field[1])
16913 for (i = 2; i < nfields; i++) {
16914 key = field[i]
16915 keylen = length(key)
16916 if (S_is_set[key]) {
16917 value = S[key]
16918 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16919 len += length(value) + length(field[++i])
16920 substed = 1
16921 } else
16922 len += 1 + keylen
16923 }
16924
16925 print line
16926 }
16927
16928 _ACAWK
16929 _ACEOF
16930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16931 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16932 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16933 else
16934 cat
16935 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16936 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16937 _ACEOF
16938
16939 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16940 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16941 # trailing colons and then remove the whole line if VPATH becomes empty
16942 # (actually we leave an empty line to preserve line numbers).
16943 if test "x$srcdir" = x.; then
16944 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16945 h
16946 s///
16947 s/^/:/
16948 s/[ ]*$/:/
16949 s/:\$(srcdir):/:/g
16950 s/:\${srcdir}:/:/g
16951 s/:@srcdir@:/:/g
16952 s/^:*//
16953 s/:*$//
16954 x
16955 s/\(=[ ]*\).*/\1/
16956 G
16957 s/\n//
16958 s/^[^=]*=[ ]*$//
16959 }'
16960 fi
16961
16962 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16963 fi # test -n "$CONFIG_FILES"
16964
16965 # Set up the scripts for CONFIG_HEADERS section.
16966 # No need to generate them if there are no CONFIG_HEADERS.
16967 # This happens for instance with `./config.status Makefile'.
16968 if test -n "$CONFIG_HEADERS"; then
16969 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16970 BEGIN {
16971 _ACEOF
16972
16973 # Transform confdefs.h into an awk script `defines.awk', embedded as
16974 # here-document in config.status, that substitutes the proper values into
16975 # config.h.in to produce config.h.
16976
16977 # Create a delimiter string that does not exist in confdefs.h, to ease
16978 # handling of long lines.
16979 ac_delim='%!_!# '
16980 for ac_last_try in false false :; do
16981 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16982 if test -z "$ac_tt"; then
16983 break
16984 elif $ac_last_try; then
16985 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16986 else
16987 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16988 fi
16989 done
16990
16991 # For the awk script, D is an array of macro values keyed by name,
16992 # likewise P contains macro parameters if any. Preserve backslash
16993 # newline sequences.
16994
16995 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16996 sed -n '
16997 s/.\{148\}/&'"$ac_delim"'/g
16998 t rset
16999 :rset
17000 s/^[ ]*#[ ]*define[ ][ ]*/ /
17001 t def
17002 d
17003 :def
17004 s/\\$//
17005 t bsnl
17006 s/["\\]/\\&/g
17007 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17008 D["\1"]=" \3"/p
17009 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17010 d
17011 :bsnl
17012 s/["\\]/\\&/g
17013 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17014 D["\1"]=" \3\\\\\\n"\\/p
17015 t cont
17016 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17017 t cont
17018 d
17019 :cont
17020 n
17021 s/.\{148\}/&'"$ac_delim"'/g
17022 t clear
17023 :clear
17024 s/\\$//
17025 t bsnlc
17026 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17027 d
17028 :bsnlc
17029 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17030 b cont
17031 ' <confdefs.h | sed '
17032 s/'"$ac_delim"'/"\\\
17033 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17034
17035 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17036 for (key in D) D_is_set[key] = 1
17037 FS = ""
17038 }
17039 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17040 line = \$ 0
17041 split(line, arg, " ")
17042 if (arg[1] == "#") {
17043 defundef = arg[2]
17044 mac1 = arg[3]
17045 } else {
17046 defundef = substr(arg[1], 2)
17047 mac1 = arg[2]
17048 }
17049 split(mac1, mac2, "(") #)
17050 macro = mac2[1]
17051 prefix = substr(line, 1, index(line, defundef) - 1)
17052 if (D_is_set[macro]) {
17053 # Preserve the white space surrounding the "#".
17054 print prefix "define", macro P[macro] D[macro]
17055 next
17056 } else {
17057 # Replace #undef with comments. This is necessary, for example,
17058 # in the case of _POSIX_SOURCE, which is predefined and required
17059 # on some systems where configure will not decide to define it.
17060 if (defundef == "undef") {
17061 print "/*", prefix defundef, macro, "*/"
17062 next
17063 }
17064 }
17065 }
17066 { print }
17067 _ACAWK
17068 _ACEOF
17069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17070 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17071 fi # test -n "$CONFIG_HEADERS"
17072
17073
17074 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17075 shift
17076 for ac_tag
17077 do
17078 case $ac_tag in
17079 :[FHLC]) ac_mode=$ac_tag; continue;;
17080 esac
17081 case $ac_mode$ac_tag in
17082 :[FHL]*:*);;
17083 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17084 :[FH]-) ac_tag=-:-;;
17085 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17086 esac
17087 ac_save_IFS=$IFS
17088 IFS=:
17089 set x $ac_tag
17090 IFS=$ac_save_IFS
17091 shift
17092 ac_file=$1
17093 shift
17094
17095 case $ac_mode in
17096 :L) ac_source=$1;;
17097 :[FH])
17098 ac_file_inputs=
17099 for ac_f
17100 do
17101 case $ac_f in
17102 -) ac_f="$ac_tmp/stdin";;
17103 *) # Look for the file first in the build tree, then in the source tree
17104 # (if the path is not absolute). The absolute path cannot be DOS-style,
17105 # because $ac_f cannot contain `:'.
17106 test -f "$ac_f" ||
17107 case $ac_f in
17108 [\\/$]*) false;;
17109 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17110 esac ||
17111 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17112 esac
17113 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17114 as_fn_append ac_file_inputs " '$ac_f'"
17115 done
17116
17117 # Let's still pretend it is `configure' which instantiates (i.e., don't
17118 # use $as_me), people would be surprised to read:
17119 # /* config.h. Generated by config.status. */
17120 configure_input='Generated from '`
17121 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17122 `' by configure.'
17123 if test x"$ac_file" != x-; then
17124 configure_input="$ac_file. $configure_input"
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17126 $as_echo "$as_me: creating $ac_file" >&6;}
17127 fi
17128 # Neutralize special characters interpreted by sed in replacement strings.
17129 case $configure_input in #(
17130 *\&* | *\|* | *\\* )
17131 ac_sed_conf_input=`$as_echo "$configure_input" |
17132 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17133 *) ac_sed_conf_input=$configure_input;;
17134 esac
17135
17136 case $ac_tag in
17137 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17138 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17139 esac
17140 ;;
17141 esac
17142
17143 ac_dir=`$as_dirname -- "$ac_file" ||
17144 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17145 X"$ac_file" : 'X\(//\)[^/]' \| \
17146 X"$ac_file" : 'X\(//\)$' \| \
17147 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17148 $as_echo X"$ac_file" |
17149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17150 s//\1/
17151 q
17152 }
17153 /^X\(\/\/\)[^/].*/{
17154 s//\1/
17155 q
17156 }
17157 /^X\(\/\/\)$/{
17158 s//\1/
17159 q
17160 }
17161 /^X\(\/\).*/{
17162 s//\1/
17163 q
17164 }
17165 s/.*/./; q'`
17166 as_dir="$ac_dir"; as_fn_mkdir_p
17167 ac_builddir=.
17168
17169 case "$ac_dir" in
17170 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17171 *)
17172 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17173 # A ".." for each directory in $ac_dir_suffix.
17174 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17175 case $ac_top_builddir_sub in
17176 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17177 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17178 esac ;;
17179 esac
17180 ac_abs_top_builddir=$ac_pwd
17181 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17182 # for backward compatibility:
17183 ac_top_builddir=$ac_top_build_prefix
17184
17185 case $srcdir in
17186 .) # We are building in place.
17187 ac_srcdir=.
17188 ac_top_srcdir=$ac_top_builddir_sub
17189 ac_abs_top_srcdir=$ac_pwd ;;
17190 [\\/]* | ?:[\\/]* ) # Absolute name.
17191 ac_srcdir=$srcdir$ac_dir_suffix;
17192 ac_top_srcdir=$srcdir
17193 ac_abs_top_srcdir=$srcdir ;;
17194 *) # Relative name.
17195 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17196 ac_top_srcdir=$ac_top_build_prefix$srcdir
17197 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17198 esac
17199 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17200
17201
17202 case $ac_mode in
17203 :F)
17204 #
17205 # CONFIG_FILE
17206 #
17207
17208 case $INSTALL in
17209 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17210 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17211 esac
17212 ac_MKDIR_P=$MKDIR_P
17213 case $MKDIR_P in
17214 [\\/$]* | ?:[\\/]* ) ;;
17215 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17216 esac
17217 _ACEOF
17218
17219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17220 # If the template does not know about datarootdir, expand it.
17221 # FIXME: This hack should be removed a few years after 2.60.
17222 ac_datarootdir_hack=; ac_datarootdir_seen=
17223 ac_sed_dataroot='
17224 /datarootdir/ {
17225 p
17226 q
17227 }
17228 /@datadir@/p
17229 /@docdir@/p
17230 /@infodir@/p
17231 /@localedir@/p
17232 /@mandir@/p'
17233 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17234 *datarootdir*) ac_datarootdir_seen=yes;;
17235 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17237 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17238 _ACEOF
17239 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17240 ac_datarootdir_hack='
17241 s&@datadir@&$datadir&g
17242 s&@docdir@&$docdir&g
17243 s&@infodir@&$infodir&g
17244 s&@localedir@&$localedir&g
17245 s&@mandir@&$mandir&g
17246 s&\\\${datarootdir}&$datarootdir&g' ;;
17247 esac
17248 _ACEOF
17249
17250 # Neutralize VPATH when `$srcdir' = `.'.
17251 # Shell code in configure.ac might set extrasub.
17252 # FIXME: do we really want to maintain this feature?
17253 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17254 ac_sed_extra="$ac_vpsub
17255 $extrasub
17256 _ACEOF
17257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17258 :t
17259 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17260 s|@configure_input@|$ac_sed_conf_input|;t t
17261 s&@top_builddir@&$ac_top_builddir_sub&;t t
17262 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17263 s&@srcdir@&$ac_srcdir&;t t
17264 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17265 s&@top_srcdir@&$ac_top_srcdir&;t t
17266 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17267 s&@builddir@&$ac_builddir&;t t
17268 s&@abs_builddir@&$ac_abs_builddir&;t t
17269 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17270 s&@INSTALL@&$ac_INSTALL&;t t
17271 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17272 $ac_datarootdir_hack
17273 "
17274 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17275 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17276
17277 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17278 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17279 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17280 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17282 which seems to be undefined. Please make sure it is defined" >&5
17283 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17284 which seems to be undefined. Please make sure it is defined" >&2;}
17285
17286 rm -f "$ac_tmp/stdin"
17287 case $ac_file in
17288 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17289 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17290 esac \
17291 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17292 ;;
17293 :H)
17294 #
17295 # CONFIG_HEADER
17296 #
17297 if test x"$ac_file" != x-; then
17298 {
17299 $as_echo "/* $configure_input */" \
17300 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17301 } >"$ac_tmp/config.h" \
17302 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17303 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17304 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17305 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17306 else
17307 rm -f "$ac_file"
17308 mv "$ac_tmp/config.h" "$ac_file" \
17309 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17310 fi
17311 else
17312 $as_echo "/* $configure_input */" \
17313 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17314 || as_fn_error $? "could not create -" "$LINENO" 5
17315 fi
17316 # Compute "$ac_file"'s index in $config_headers.
17317 _am_arg="$ac_file"
17318 _am_stamp_count=1
17319 for _am_header in $config_headers :; do
17320 case $_am_header in
17321 $_am_arg | $_am_arg:* )
17322 break ;;
17323 * )
17324 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17325 esac
17326 done
17327 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17328 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17329 X"$_am_arg" : 'X\(//\)[^/]' \| \
17330 X"$_am_arg" : 'X\(//\)$' \| \
17331 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17332 $as_echo X"$_am_arg" |
17333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17334 s//\1/
17335 q
17336 }
17337 /^X\(\/\/\)[^/].*/{
17338 s//\1/
17339 q
17340 }
17341 /^X\(\/\/\)$/{
17342 s//\1/
17343 q
17344 }
17345 /^X\(\/\).*/{
17346 s//\1/
17347 q
17348 }
17349 s/.*/./; q'`/stamp-h$_am_stamp_count
17350 ;;
17351
17352 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17353 $as_echo "$as_me: executing $ac_file commands" >&6;}
17354 ;;
17355 esac
17356
17357
17358 case $ac_file$ac_mode in
17359 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17360 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17361 # are listed without --file. Let's play safe and only enable the eval
17362 # if we detect the quoting.
17363 case $CONFIG_FILES in
17364 *\'*) eval set x "$CONFIG_FILES" ;;
17365 *) set x $CONFIG_FILES ;;
17366 esac
17367 shift
17368 for mf
17369 do
17370 # Strip MF so we end up with the name of the file.
17371 mf=`echo "$mf" | sed -e 's/:.*$//'`
17372 # Check whether this is an Automake generated Makefile or not.
17373 # We used to match only the files named `Makefile.in', but
17374 # some people rename them; so instead we look at the file content.
17375 # Grep'ing the first line is not enough: some people post-process
17376 # each Makefile.in and add a new line on top of each file to say so.
17377 # Grep'ing the whole file is not good either: AIX grep has a line
17378 # limit of 2048, but all sed's we know have understand at least 4000.
17379 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17380 dirpart=`$as_dirname -- "$mf" ||
17381 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17382 X"$mf" : 'X\(//\)[^/]' \| \
17383 X"$mf" : 'X\(//\)$' \| \
17384 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17385 $as_echo X"$mf" |
17386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17387 s//\1/
17388 q
17389 }
17390 /^X\(\/\/\)[^/].*/{
17391 s//\1/
17392 q
17393 }
17394 /^X\(\/\/\)$/{
17395 s//\1/
17396 q
17397 }
17398 /^X\(\/\).*/{
17399 s//\1/
17400 q
17401 }
17402 s/.*/./; q'`
17403 else
17404 continue
17405 fi
17406 # Extract the definition of DEPDIR, am__include, and am__quote
17407 # from the Makefile without running `make'.
17408 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17409 test -z "$DEPDIR" && continue
17410 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17411 test -z "am__include" && continue
17412 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17413 # When using ansi2knr, U may be empty or an underscore; expand it
17414 U=`sed -n 's/^U = //p' < "$mf"`
17415 # Find all dependency output files, they are included files with
17416 # $(DEPDIR) in their names. We invoke sed twice because it is the
17417 # simplest approach to changing $(DEPDIR) to its actual value in the
17418 # expansion.
17419 for file in `sed -n "
17420 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17421 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17422 # Make sure the directory exists.
17423 test -f "$dirpart/$file" && continue
17424 fdir=`$as_dirname -- "$file" ||
17425 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17426 X"$file" : 'X\(//\)[^/]' \| \
17427 X"$file" : 'X\(//\)$' \| \
17428 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17429 $as_echo X"$file" |
17430 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17431 s//\1/
17432 q
17433 }
17434 /^X\(\/\/\)[^/].*/{
17435 s//\1/
17436 q
17437 }
17438 /^X\(\/\/\)$/{
17439 s//\1/
17440 q
17441 }
17442 /^X\(\/\).*/{
17443 s//\1/
17444 q
17445 }
17446 s/.*/./; q'`
17447 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17448 # echo "creating $dirpart/$file"
17449 echo '# dummy' > "$dirpart/$file"
17450 done
17451 done
17452 }
17453 ;;
17454 "libtool":C)
17455
17456 # See if we are running on zsh, and set the options which allow our
17457 # commands through without removal of \ escapes.
17458 if test -n "${ZSH_VERSION+set}" ; then
17459 setopt NO_GLOB_SUBST
17460 fi
17461
17462 cfgfile="${ofile}T"
17463 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17464 $RM "$cfgfile"
17465
17466 cat <<_LT_EOF >> "$cfgfile"
17467 #! $SHELL
17468
17469 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17470 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17471 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17472 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17473 #
17474 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17475 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17476 # Foundation, Inc.
17477 # Written by Gordon Matzigkeit, 1996
17478 #
17479 # This file is part of GNU Libtool.
17480 #
17481 # GNU Libtool is free software; you can redistribute it and/or
17482 # modify it under the terms of the GNU General Public License as
17483 # published by the Free Software Foundation; either version 2 of
17484 # the License, or (at your option) any later version.
17485 #
17486 # As a special exception to the GNU General Public License,
17487 # if you distribute this file as part of a program or library that
17488 # is built using GNU Libtool, you may include this file under the
17489 # same distribution terms that you use for the rest of that program.
17490 #
17491 # GNU Libtool is distributed in the hope that it will be useful,
17492 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17493 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17494 # GNU General Public License for more details.
17495 #
17496 # You should have received a copy of the GNU General Public License
17497 # along with GNU Libtool; see the file COPYING. If not, a copy
17498 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17499 # obtained by writing to the Free Software Foundation, Inc.,
17500 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17501
17502
17503 # The names of the tagged configurations supported by this script.
17504 available_tags="CXX "
17505
17506 # ### BEGIN LIBTOOL CONFIG
17507
17508 # Which release of libtool.m4 was used?
17509 macro_version=$macro_version
17510 macro_revision=$macro_revision
17511
17512 # Assembler program.
17513 AS=$lt_AS
17514
17515 # DLL creation program.
17516 DLLTOOL=$lt_DLLTOOL
17517
17518 # Object dumper program.
17519 OBJDUMP=$lt_OBJDUMP
17520
17521 # Whether or not to build shared libraries.
17522 build_libtool_libs=$enable_shared
17523
17524 # Whether or not to build static libraries.
17525 build_old_libs=$enable_static
17526
17527 # What type of objects to build.
17528 pic_mode=$pic_mode
17529
17530 # Whether or not to optimize for fast installation.
17531 fast_install=$enable_fast_install
17532
17533 # Shell to use when invoking shell scripts.
17534 SHELL=$lt_SHELL
17535
17536 # An echo program that protects backslashes.
17537 ECHO=$lt_ECHO
17538
17539 # The PATH separator for the build system.
17540 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17541
17542 # The host system.
17543 host_alias=$host_alias
17544 host=$host
17545 host_os=$host_os
17546
17547 # The build system.
17548 build_alias=$build_alias
17549 build=$build
17550 build_os=$build_os
17551
17552 # A sed program that does not truncate output.
17553 SED=$lt_SED
17554
17555 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17556 Xsed="\$SED -e 1s/^X//"
17557
17558 # A grep program that handles long lines.
17559 GREP=$lt_GREP
17560
17561 # An ERE matcher.
17562 EGREP=$lt_EGREP
17563
17564 # A literal string matcher.
17565 FGREP=$lt_FGREP
17566
17567 # A BSD- or MS-compatible name lister.
17568 NM=$lt_NM
17569
17570 # Whether we need soft or hard links.
17571 LN_S=$lt_LN_S
17572
17573 # What is the maximum length of a command?
17574 max_cmd_len=$max_cmd_len
17575
17576 # Object file suffix (normally "o").
17577 objext=$ac_objext
17578
17579 # Executable file suffix (normally "").
17580 exeext=$exeext
17581
17582 # whether the shell understands "unset".
17583 lt_unset=$lt_unset
17584
17585 # turn spaces into newlines.
17586 SP2NL=$lt_lt_SP2NL
17587
17588 # turn newlines into spaces.
17589 NL2SP=$lt_lt_NL2SP
17590
17591 # convert \$build file names to \$host format.
17592 to_host_file_cmd=$lt_cv_to_host_file_cmd
17593
17594 # convert \$build files to toolchain format.
17595 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17596
17597 # Method to check whether dependent libraries are shared objects.
17598 deplibs_check_method=$lt_deplibs_check_method
17599
17600 # Command to use when deplibs_check_method = "file_magic".
17601 file_magic_cmd=$lt_file_magic_cmd
17602
17603 # How to find potential files when deplibs_check_method = "file_magic".
17604 file_magic_glob=$lt_file_magic_glob
17605
17606 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17607 want_nocaseglob=$lt_want_nocaseglob
17608
17609 # Command to associate shared and link libraries.
17610 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17611
17612 # The archiver.
17613 AR=$lt_AR
17614
17615 # Flags to create an archive.
17616 AR_FLAGS=$lt_AR_FLAGS
17617
17618 # How to feed a file listing to the archiver.
17619 archiver_list_spec=$lt_archiver_list_spec
17620
17621 # A symbol stripping program.
17622 STRIP=$lt_STRIP
17623
17624 # Commands used to install an old-style archive.
17625 RANLIB=$lt_RANLIB
17626 old_postinstall_cmds=$lt_old_postinstall_cmds
17627 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17628
17629 # Whether to use a lock for old archive extraction.
17630 lock_old_archive_extraction=$lock_old_archive_extraction
17631
17632 # A C compiler.
17633 LTCC=$lt_CC
17634
17635 # LTCC compiler flags.
17636 LTCFLAGS=$lt_CFLAGS
17637
17638 # Take the output of nm and produce a listing of raw symbols and C names.
17639 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17640
17641 # Transform the output of nm in a proper C declaration.
17642 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17643
17644 # Transform the output of nm in a C name address pair.
17645 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17646
17647 # Transform the output of nm in a C name address pair when lib prefix is needed.
17648 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17649
17650 # Specify filename containing input files for \$NM.
17651 nm_file_list_spec=$lt_nm_file_list_spec
17652
17653 # The root where to search for dependent libraries,and in which our libraries should be installed.
17654 lt_sysroot=$lt_sysroot
17655
17656 # The name of the directory that contains temporary libtool files.
17657 objdir=$objdir
17658
17659 # Used to examine libraries when file_magic_cmd begins with "file".
17660 MAGIC_CMD=$MAGIC_CMD
17661
17662 # Must we lock files when doing compilation?
17663 need_locks=$lt_need_locks
17664
17665 # Manifest tool.
17666 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17667
17668 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17669 DSYMUTIL=$lt_DSYMUTIL
17670
17671 # Tool to change global to local symbols on Mac OS X.
17672 NMEDIT=$lt_NMEDIT
17673
17674 # Tool to manipulate fat objects and archives on Mac OS X.
17675 LIPO=$lt_LIPO
17676
17677 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17678 OTOOL=$lt_OTOOL
17679
17680 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17681 OTOOL64=$lt_OTOOL64
17682
17683 # Old archive suffix (normally "a").
17684 libext=$libext
17685
17686 # Shared library suffix (normally ".so").
17687 shrext_cmds=$lt_shrext_cmds
17688
17689 # The commands to extract the exported symbol list from a shared archive.
17690 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17691
17692 # Variables whose values should be saved in libtool wrapper scripts and
17693 # restored at link time.
17694 variables_saved_for_relink=$lt_variables_saved_for_relink
17695
17696 # Do we need the "lib" prefix for modules?
17697 need_lib_prefix=$need_lib_prefix
17698
17699 # Do we need a version for libraries?
17700 need_version=$need_version
17701
17702 # Library versioning type.
17703 version_type=$version_type
17704
17705 # Shared library runtime path variable.
17706 runpath_var=$runpath_var
17707
17708 # Shared library path variable.
17709 shlibpath_var=$shlibpath_var
17710
17711 # Is shlibpath searched before the hard-coded library search path?
17712 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17713
17714 # Format of library name prefix.
17715 libname_spec=$lt_libname_spec
17716
17717 # List of archive names. First name is the real one, the rest are links.
17718 # The last name is the one that the linker finds with -lNAME
17719 library_names_spec=$lt_library_names_spec
17720
17721 # The coded name of the library, if different from the real name.
17722 soname_spec=$lt_soname_spec
17723
17724 # Permission mode override for installation of shared libraries.
17725 install_override_mode=$lt_install_override_mode
17726
17727 # Command to use after installation of a shared archive.
17728 postinstall_cmds=$lt_postinstall_cmds
17729
17730 # Command to use after uninstallation of a shared archive.
17731 postuninstall_cmds=$lt_postuninstall_cmds
17732
17733 # Commands used to finish a libtool library installation in a directory.
17734 finish_cmds=$lt_finish_cmds
17735
17736 # As "finish_cmds", except a single script fragment to be evaled but
17737 # not shown.
17738 finish_eval=$lt_finish_eval
17739
17740 # Whether we should hardcode library paths into libraries.
17741 hardcode_into_libs=$hardcode_into_libs
17742
17743 # Compile-time system search path for libraries.
17744 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17745
17746 # Run-time system search path for libraries.
17747 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17748
17749 # Whether dlopen is supported.
17750 dlopen_support=$enable_dlopen
17751
17752 # Whether dlopen of programs is supported.
17753 dlopen_self=$enable_dlopen_self
17754
17755 # Whether dlopen of statically linked programs is supported.
17756 dlopen_self_static=$enable_dlopen_self_static
17757
17758 # Commands to strip libraries.
17759 old_striplib=$lt_old_striplib
17760 striplib=$lt_striplib
17761
17762
17763 # The linker used to build libraries.
17764 LD=$lt_LD
17765
17766 # How to create reloadable object files.
17767 reload_flag=$lt_reload_flag
17768 reload_cmds=$lt_reload_cmds
17769
17770 # Commands used to build an old-style archive.
17771 old_archive_cmds=$lt_old_archive_cmds
17772
17773 # A language specific compiler.
17774 CC=$lt_compiler
17775
17776 # Is the compiler the GNU compiler?
17777 with_gcc=$GCC
17778
17779 # Compiler flag to turn off builtin functions.
17780 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17781
17782 # Additional compiler flags for building library objects.
17783 pic_flag=$lt_lt_prog_compiler_pic
17784
17785 # How to pass a linker flag through the compiler.
17786 wl=$lt_lt_prog_compiler_wl
17787
17788 # Compiler flag to prevent dynamic linking.
17789 link_static_flag=$lt_lt_prog_compiler_static
17790
17791 # Does compiler simultaneously support -c and -o options?
17792 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17793
17794 # Whether or not to add -lc for building shared libraries.
17795 build_libtool_need_lc=$archive_cmds_need_lc
17796
17797 # Whether or not to disallow shared libs when runtime libs are static.
17798 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17799
17800 # Compiler flag to allow reflexive dlopens.
17801 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17802
17803 # Compiler flag to generate shared objects directly from archives.
17804 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17805
17806 # Whether the compiler copes with passing no objects directly.
17807 compiler_needs_object=$lt_compiler_needs_object
17808
17809 # Create an old-style archive from a shared archive.
17810 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17811
17812 # Create a temporary old-style archive to link instead of a shared archive.
17813 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17814
17815 # Commands used to build a shared archive.
17816 archive_cmds=$lt_archive_cmds
17817 archive_expsym_cmds=$lt_archive_expsym_cmds
17818
17819 # Commands used to build a loadable module if different from building
17820 # a shared archive.
17821 module_cmds=$lt_module_cmds
17822 module_expsym_cmds=$lt_module_expsym_cmds
17823
17824 # Whether we are building with GNU ld or not.
17825 with_gnu_ld=$lt_with_gnu_ld
17826
17827 # Flag that allows shared libraries with undefined symbols to be built.
17828 allow_undefined_flag=$lt_allow_undefined_flag
17829
17830 # Flag that enforces no undefined symbols.
17831 no_undefined_flag=$lt_no_undefined_flag
17832
17833 # Flag to hardcode \$libdir into a binary during linking.
17834 # This must work even if \$libdir does not exist
17835 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17836
17837 # Whether we need a single "-rpath" flag with a separated argument.
17838 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17839
17840 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17841 # DIR into the resulting binary.
17842 hardcode_direct=$hardcode_direct
17843
17844 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17845 # DIR into the resulting binary and the resulting library dependency is
17846 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17847 # library is relocated.
17848 hardcode_direct_absolute=$hardcode_direct_absolute
17849
17850 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17851 # into the resulting binary.
17852 hardcode_minus_L=$hardcode_minus_L
17853
17854 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17855 # into the resulting binary.
17856 hardcode_shlibpath_var=$hardcode_shlibpath_var
17857
17858 # Set to "yes" if building a shared library automatically hardcodes DIR
17859 # into the library and all subsequent libraries and executables linked
17860 # against it.
17861 hardcode_automatic=$hardcode_automatic
17862
17863 # Set to yes if linker adds runtime paths of dependent libraries
17864 # to runtime path list.
17865 inherit_rpath=$inherit_rpath
17866
17867 # Whether libtool must link a program against all its dependency libraries.
17868 link_all_deplibs=$link_all_deplibs
17869
17870 # Set to "yes" if exported symbols are required.
17871 always_export_symbols=$always_export_symbols
17872
17873 # The commands to list exported symbols.
17874 export_symbols_cmds=$lt_export_symbols_cmds
17875
17876 # Symbols that should not be listed in the preloaded symbols.
17877 exclude_expsyms=$lt_exclude_expsyms
17878
17879 # Symbols that must always be exported.
17880 include_expsyms=$lt_include_expsyms
17881
17882 # Commands necessary for linking programs (against libraries) with templates.
17883 prelink_cmds=$lt_prelink_cmds
17884
17885 # Commands necessary for finishing linking programs.
17886 postlink_cmds=$lt_postlink_cmds
17887
17888 # Specify filename containing input files.
17889 file_list_spec=$lt_file_list_spec
17890
17891 # How to hardcode a shared library path into an executable.
17892 hardcode_action=$hardcode_action
17893
17894 # The directories searched by this compiler when creating a shared library.
17895 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17896
17897 # Dependencies to place before and after the objects being linked to
17898 # create a shared library.
17899 predep_objects=$lt_predep_objects
17900 postdep_objects=$lt_postdep_objects
17901 predeps=$lt_predeps
17902 postdeps=$lt_postdeps
17903
17904 # The library search path used internally by the compiler when linking
17905 # a shared library.
17906 compiler_lib_search_path=$lt_compiler_lib_search_path
17907
17908 # ### END LIBTOOL CONFIG
17909
17910 _LT_EOF
17911
17912 case $host_os in
17913 aix3*)
17914 cat <<\_LT_EOF >> "$cfgfile"
17915 # AIX sometimes has problems with the GCC collect2 program. For some
17916 # reason, if we set the COLLECT_NAMES environment variable, the problems
17917 # vanish in a puff of smoke.
17918 if test "X${COLLECT_NAMES+set}" != Xset; then
17919 COLLECT_NAMES=
17920 export COLLECT_NAMES
17921 fi
17922 _LT_EOF
17923 ;;
17924 esac
17925
17926
17927 ltmain="$ac_aux_dir/ltmain.sh"
17928
17929
17930 # We use sed instead of cat because bash on DJGPP gets confused if
17931 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17932 # text mode, it properly converts lines to CR/LF. This bash problem
17933 # is reportedly fixed, but why not run on old versions too?
17934 sed '$q' "$ltmain" >> "$cfgfile" \
17935 || (rm -f "$cfgfile"; exit 1)
17936
17937 if test x"$xsi_shell" = xyes; then
17938 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17939 func_dirname ()\
17940 {\
17941 \ case ${1} in\
17942 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17943 \ * ) func_dirname_result="${3}" ;;\
17944 \ esac\
17945 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17946 && mv -f "$cfgfile.tmp" "$cfgfile" \
17947 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17948 test 0 -eq $? || _lt_function_replace_fail=:
17949
17950
17951 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17952 func_basename ()\
17953 {\
17954 \ func_basename_result="${1##*/}"\
17955 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17956 && mv -f "$cfgfile.tmp" "$cfgfile" \
17957 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17958 test 0 -eq $? || _lt_function_replace_fail=:
17959
17960
17961 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17962 func_dirname_and_basename ()\
17963 {\
17964 \ case ${1} in\
17965 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17966 \ * ) func_dirname_result="${3}" ;;\
17967 \ esac\
17968 \ func_basename_result="${1##*/}"\
17969 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17970 && mv -f "$cfgfile.tmp" "$cfgfile" \
17971 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17972 test 0 -eq $? || _lt_function_replace_fail=:
17973
17974
17975 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17976 func_stripname ()\
17977 {\
17978 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17979 \ # positional parameters, so assign one to ordinary parameter first.\
17980 \ func_stripname_result=${3}\
17981 \ func_stripname_result=${func_stripname_result#"${1}"}\
17982 \ func_stripname_result=${func_stripname_result%"${2}"}\
17983 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17984 && mv -f "$cfgfile.tmp" "$cfgfile" \
17985 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17986 test 0 -eq $? || _lt_function_replace_fail=:
17987
17988
17989 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17990 func_split_long_opt ()\
17991 {\
17992 \ func_split_long_opt_name=${1%%=*}\
17993 \ func_split_long_opt_arg=${1#*=}\
17994 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17995 && mv -f "$cfgfile.tmp" "$cfgfile" \
17996 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17997 test 0 -eq $? || _lt_function_replace_fail=:
17998
17999
18000 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18001 func_split_short_opt ()\
18002 {\
18003 \ func_split_short_opt_arg=${1#??}\
18004 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18005 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18006 && mv -f "$cfgfile.tmp" "$cfgfile" \
18007 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18008 test 0 -eq $? || _lt_function_replace_fail=:
18009
18010
18011 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18012 func_lo2o ()\
18013 {\
18014 \ case ${1} in\
18015 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18016 \ *) func_lo2o_result=${1} ;;\
18017 \ esac\
18018 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18019 && mv -f "$cfgfile.tmp" "$cfgfile" \
18020 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18021 test 0 -eq $? || _lt_function_replace_fail=:
18022
18023
18024 sed -e '/^func_xform ()$/,/^} # func_xform /c\
18025 func_xform ()\
18026 {\
18027 func_xform_result=${1%.*}.lo\
18028 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18029 && mv -f "$cfgfile.tmp" "$cfgfile" \
18030 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18031 test 0 -eq $? || _lt_function_replace_fail=:
18032
18033
18034 sed -e '/^func_arith ()$/,/^} # func_arith /c\
18035 func_arith ()\
18036 {\
18037 func_arith_result=$(( $* ))\
18038 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18039 && mv -f "$cfgfile.tmp" "$cfgfile" \
18040 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18041 test 0 -eq $? || _lt_function_replace_fail=:
18042
18043
18044 sed -e '/^func_len ()$/,/^} # func_len /c\
18045 func_len ()\
18046 {\
18047 func_len_result=${#1}\
18048 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18049 && mv -f "$cfgfile.tmp" "$cfgfile" \
18050 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18051 test 0 -eq $? || _lt_function_replace_fail=:
18052
18053 fi
18054
18055 if test x"$lt_shell_append" = xyes; then
18056 sed -e '/^func_append ()$/,/^} # func_append /c\
18057 func_append ()\
18058 {\
18059 eval "${1}+=\\${2}"\
18060 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18061 && mv -f "$cfgfile.tmp" "$cfgfile" \
18062 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18063 test 0 -eq $? || _lt_function_replace_fail=:
18064
18065
18066 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18067 func_append_quoted ()\
18068 {\
18069 \ func_quote_for_eval "${2}"\
18070 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18071 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18072 && mv -f "$cfgfile.tmp" "$cfgfile" \
18073 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18074 test 0 -eq $? || _lt_function_replace_fail=:
18075
18076
18077 # Save a `func_append' function call where possible by direct use of '+='
18078 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18079 && mv -f "$cfgfile.tmp" "$cfgfile" \
18080 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18081 test 0 -eq $? || _lt_function_replace_fail=:
18082 else
18083 # Save a `func_append' function call even when '+=' is not available
18084 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18085 && mv -f "$cfgfile.tmp" "$cfgfile" \
18086 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18087 test 0 -eq $? || _lt_function_replace_fail=:
18088 fi
18089
18090 if test x"$_lt_function_replace_fail" = x":"; then
18091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18092 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18093 fi
18094
18095
18096 mv -f "$cfgfile" "$ofile" ||
18097 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18098 chmod +x "$ofile"
18099
18100
18101 cat <<_LT_EOF >> "$ofile"
18102
18103 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18104
18105 # The linker used to build libraries.
18106 LD=$lt_LD_CXX
18107
18108 # How to create reloadable object files.
18109 reload_flag=$lt_reload_flag_CXX
18110 reload_cmds=$lt_reload_cmds_CXX
18111
18112 # Commands used to build an old-style archive.
18113 old_archive_cmds=$lt_old_archive_cmds_CXX
18114
18115 # A language specific compiler.
18116 CC=$lt_compiler_CXX
18117
18118 # Is the compiler the GNU compiler?
18119 with_gcc=$GCC_CXX
18120
18121 # Compiler flag to turn off builtin functions.
18122 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18123
18124 # Additional compiler flags for building library objects.
18125 pic_flag=$lt_lt_prog_compiler_pic_CXX
18126
18127 # How to pass a linker flag through the compiler.
18128 wl=$lt_lt_prog_compiler_wl_CXX
18129
18130 # Compiler flag to prevent dynamic linking.
18131 link_static_flag=$lt_lt_prog_compiler_static_CXX
18132
18133 # Does compiler simultaneously support -c and -o options?
18134 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18135
18136 # Whether or not to add -lc for building shared libraries.
18137 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18138
18139 # Whether or not to disallow shared libs when runtime libs are static.
18140 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18141
18142 # Compiler flag to allow reflexive dlopens.
18143 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18144
18145 # Compiler flag to generate shared objects directly from archives.
18146 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18147
18148 # Whether the compiler copes with passing no objects directly.
18149 compiler_needs_object=$lt_compiler_needs_object_CXX
18150
18151 # Create an old-style archive from a shared archive.
18152 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18153
18154 # Create a temporary old-style archive to link instead of a shared archive.
18155 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18156
18157 # Commands used to build a shared archive.
18158 archive_cmds=$lt_archive_cmds_CXX
18159 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18160
18161 # Commands used to build a loadable module if different from building
18162 # a shared archive.
18163 module_cmds=$lt_module_cmds_CXX
18164 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18165
18166 # Whether we are building with GNU ld or not.
18167 with_gnu_ld=$lt_with_gnu_ld_CXX
18168
18169 # Flag that allows shared libraries with undefined symbols to be built.
18170 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18171
18172 # Flag that enforces no undefined symbols.
18173 no_undefined_flag=$lt_no_undefined_flag_CXX
18174
18175 # Flag to hardcode \$libdir into a binary during linking.
18176 # This must work even if \$libdir does not exist
18177 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18178
18179 # Whether we need a single "-rpath" flag with a separated argument.
18180 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18181
18182 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18183 # DIR into the resulting binary.
18184 hardcode_direct=$hardcode_direct_CXX
18185
18186 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18187 # DIR into the resulting binary and the resulting library dependency is
18188 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18189 # library is relocated.
18190 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18191
18192 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18193 # into the resulting binary.
18194 hardcode_minus_L=$hardcode_minus_L_CXX
18195
18196 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18197 # into the resulting binary.
18198 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18199
18200 # Set to "yes" if building a shared library automatically hardcodes DIR
18201 # into the library and all subsequent libraries and executables linked
18202 # against it.
18203 hardcode_automatic=$hardcode_automatic_CXX
18204
18205 # Set to yes if linker adds runtime paths of dependent libraries
18206 # to runtime path list.
18207 inherit_rpath=$inherit_rpath_CXX
18208
18209 # Whether libtool must link a program against all its dependency libraries.
18210 link_all_deplibs=$link_all_deplibs_CXX
18211
18212 # Set to "yes" if exported symbols are required.
18213 always_export_symbols=$always_export_symbols_CXX
18214
18215 # The commands to list exported symbols.
18216 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18217
18218 # Symbols that should not be listed in the preloaded symbols.
18219 exclude_expsyms=$lt_exclude_expsyms_CXX
18220
18221 # Symbols that must always be exported.
18222 include_expsyms=$lt_include_expsyms_CXX
18223
18224 # Commands necessary for linking programs (against libraries) with templates.
18225 prelink_cmds=$lt_prelink_cmds_CXX
18226
18227 # Commands necessary for finishing linking programs.
18228 postlink_cmds=$lt_postlink_cmds_CXX
18229
18230 # Specify filename containing input files.
18231 file_list_spec=$lt_file_list_spec_CXX
18232
18233 # How to hardcode a shared library path into an executable.
18234 hardcode_action=$hardcode_action_CXX
18235
18236 # The directories searched by this compiler when creating a shared library.
18237 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18238
18239 # Dependencies to place before and after the objects being linked to
18240 # create a shared library.
18241 predep_objects=$lt_predep_objects_CXX
18242 postdep_objects=$lt_postdep_objects_CXX
18243 predeps=$lt_predeps_CXX
18244 postdeps=$lt_postdeps_CXX
18245
18246 # The library search path used internally by the compiler when linking
18247 # a shared library.
18248 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18249
18250 # ### END LIBTOOL TAG CONFIG: CXX
18251 _LT_EOF
18252
18253 ;;
18254
18255 esac
18256 done # for ac_tag
18257
18258
18259 as_fn_exit 0
18260 _ACEOF
18261 ac_clean_files=$ac_clean_files_save
18262
18263 test $ac_write_fail = 0 ||
18264 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18265
18266
18267 # configure is writing to config.log, and then calls config.status.
18268 # config.status does its own redirection, appending to config.log.
18269 # Unfortunately, on DOS this fails, as config.log is still kept open
18270 # by configure, so config.status won't be able to write to it; its
18271 # output is simply discarded. So we exec the FD to /dev/null,
18272 # effectively closing config.log, so it can be properly (re)opened and
18273 # appended to by config.status. When coming back to configure, we
18274 # need to make the FD available again.
18275 if test "$no_create" != yes; then
18276 ac_cs_success=:
18277 ac_config_status_args=
18278 test "$silent" = yes &&
18279 ac_config_status_args="$ac_config_status_args --quiet"
18280 exec 5>/dev/null
18281 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18282 exec 5>>config.log
18283 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18284 # would make configure fail if this is the last instruction.
18285 $ac_cs_success || as_fn_exit 1
18286 fi
18287 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18289 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18290 fi
18291