Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libpaf 0.3.0.
4 #
5 # Report bugs to <[email protected] [email protected] [email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell [email protected] and
278 $0: [email protected] [email protected]
279 $0: [email protected] about your system, including any
280 $0: error possibly output before this message. Then install
281 $0: a modern shell, or manually run the script under such a
282 $0: shell if you do have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521 *)
522 ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
592 PACKAGE_NAME='libpaf'
593 PACKAGE_TARNAME='libpaf'
594 PACKAGE_VERSION='0.3.0'
595 PACKAGE_STRING='libpaf 0.3.0'
596 PACKAGE_BUGREPORT='[email protected] [email protected] [email protected]'
597 PACKAGE_URL=''
598
599 ac_unique_file="ebb/ebb.c"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 # include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 # include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
635
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 CXXCPP
641 LT_SYS_LIBRARY_PATH
642 OTOOL64
643 OTOOL
644 LIPO
645 NMEDIT
646 DSYMUTIL
647 MANIFEST_TOOL
648 DLLTOOL
649 OBJDUMP
650 NM
651 ac_ct_DUMPBIN
652 DUMPBIN
653 LD
654 FGREP
655 SED
656 LIBTOOL
657 ac_ct_AR
658 AR
659 RANLIB
660 LN_S
661 am__fastdepCXX_FALSE
662 am__fastdepCXX_TRUE
663 CXXDEPMODE
664 ac_ct_CXX
665 CXXFLAGS
666 CXX
667 am__fastdepCCAS_FALSE
668 am__fastdepCCAS_TRUE
669 CCASDEPMODE
670 CCASFLAGS
671 CCAS
672 EGREP
673 GREP
674 CPP
675 POWERPC64_FALSE
676 POWERPC64_TRUE
677 PPR_FALSE
678 PPR_TRUE
679 TB_FALSE
680 TB_TRUE
681 EBB_FALSE
682 EBB_TRUE
683 DSC_FALSE
684 DSC_TRUE
685 am__fastdepCC_FALSE
686 am__fastdepCC_TRUE
687 CCDEPMODE
688 am__nodep
689 AMDEPBACKSLASH
690 AMDEP_FALSE
691 AMDEP_TRUE
692 am__quote
693 am__include
694 DEPDIR
695 OBJEXT
696 EXEEXT
697 ac_ct_CC
698 CPPFLAGS
699 LDFLAGS
700 CFLAGS
701 CC
702 LIBPAF_SO_VERSION
703 MAINT
704 MAINTAINER_MODE_FALSE
705 MAINTAINER_MODE_TRUE
706 host_os
707 host_vendor
708 host_cpu
709 host
710 build_os
711 build_vendor
712 build_cpu
713 build
714 AM_BACKSLASH
715 AM_DEFAULT_VERBOSITY
716 AM_DEFAULT_V
717 AM_V
718 am__untar
719 am__tar
720 AMTAR
721 am__leading_dot
722 SET_MAKE
723 AWK
724 mkdir_p
725 MKDIR_P
726 INSTALL_STRIP_PROGRAM
727 STRIP
728 install_sh
729 MAKEINFO
730 AUTOHEADER
731 AUTOMAKE
732 AUTOCONF
733 ACLOCAL
734 VERSION
735 PACKAGE
736 CYGPATH_W
737 am__isrc
738 INSTALL_DATA
739 INSTALL_SCRIPT
740 INSTALL_PROGRAM
741 target_alias
742 host_alias
743 build_alias
744 LIBS
745 ECHO_T
746 ECHO_N
747 ECHO_C
748 DEFS
749 mandir
750 localedir
751 libdir
752 psdir
753 pdfdir
754 dvidir
755 htmldir
756 infodir
757 docdir
758 oldincludedir
759 includedir
760 runstatedir
761 localstatedir
762 sharedstatedir
763 sysconfdir
764 datadir
765 datarootdir
766 libexecdir
767 sbindir
768 bindir
769 program_transform_name
770 prefix
771 exec_prefix
772 PACKAGE_URL
773 PACKAGE_BUGREPORT
774 PACKAGE_STRING
775 PACKAGE_VERSION
776 PACKAGE_TARNAME
777 PACKAGE_NAME
778 PATH_SEPARATOR
779 SHELL'
780 ac_subst_files=''
781 ac_user_opts='
782 enable_option_checking
783 enable_silent_rules
784 enable_maintainer_mode
785 enable_debug
786 enable_dsc
787 enable_ebb
788 enable_dependency_tracking
789 enable_tb
790 enable_ppr
791 enable_save_area
792 enable_shared
793 enable_static
794 with_pic
795 enable_fast_install
796 with_aix_soname
797 with_gnu_ld
798 with_sysroot
799 enable_libtool_lock
800 '
801 ac_precious_vars='build_alias
802 host_alias
803 target_alias
804 CC
805 CFLAGS
806 LDFLAGS
807 LIBS
808 CPPFLAGS
809 CPP
810 CCAS
811 CCASFLAGS
812 CXX
813 CXXFLAGS
814 CCC
815 LT_SYS_LIBRARY_PATH
816 CXXCPP'
817
818
819 # Initialize some variables set by options.
820 ac_init_help=
821 ac_init_version=false
822 ac_unrecognized_opts=
823 ac_unrecognized_sep=
824 # The variables have the same names as the options, with
825 # dashes changed to underlines.
826 cache_file=/dev/null
827 exec_prefix=NONE
828 no_create=
829 no_recursion=
830 prefix=NONE
831 program_prefix=NONE
832 program_suffix=NONE
833 program_transform_name=s,x,x,
834 silent=
835 site=
836 srcdir=
837 verbose=
838 x_includes=NONE
839 x_libraries=NONE
840
841 # Installation directory options.
842 # These are left unexpanded so users can "make install exec_prefix=/foo"
843 # and all the variables that are supposed to be based on exec_prefix
844 # by default will actually change.
845 # Use braces instead of parens because sh, perl, etc. also accept them.
846 # (The list follows the same order as the GNU Coding Standards.)
847 bindir='${exec_prefix}/bin'
848 sbindir='${exec_prefix}/sbin'
849 libexecdir='${exec_prefix}/libexec'
850 datarootdir='${prefix}/share'
851 datadir='${datarootdir}'
852 sysconfdir='${prefix}/etc'
853 sharedstatedir='${prefix}/com'
854 localstatedir='${prefix}/var'
855 runstatedir='${localstatedir}/run'
856 includedir='${prefix}/include'
857 oldincludedir='/usr/include'
858 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
859 infodir='${datarootdir}/info'
860 htmldir='${docdir}'
861 dvidir='${docdir}'
862 pdfdir='${docdir}'
863 psdir='${docdir}'
864 libdir='${exec_prefix}/lib'
865 localedir='${datarootdir}/locale'
866 mandir='${datarootdir}/man'
867
868 ac_prev=
869 ac_dashdash=
870 for ac_option
871 do
872 # If the previous option needs an argument, assign it.
873 if test -n "$ac_prev"; then
874 eval $ac_prev=\$ac_option
875 ac_prev=
876 continue
877 fi
878
879 case $ac_option in
880 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
881 *=) ac_optarg= ;;
882 *) ac_optarg=yes ;;
883 esac
884
885 # Accept the important Cygnus configure options, so we can diagnose typos.
886
887 case $ac_dashdash$ac_option in
888 --)
889 ac_dashdash=yes ;;
890
891 -bindir | --bindir | --bindi | --bind | --bin | --bi)
892 ac_prev=bindir ;;
893 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
894 bindir=$ac_optarg ;;
895
896 -build | --build | --buil | --bui | --bu)
897 ac_prev=build_alias ;;
898 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
899 build_alias=$ac_optarg ;;
900
901 -cache-file | --cache-file | --cache-fil | --cache-fi \
902 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
903 ac_prev=cache_file ;;
904 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
905 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
906 cache_file=$ac_optarg ;;
907
908 --config-cache | -C)
909 cache_file=config.cache ;;
910
911 -datadir | --datadir | --datadi | --datad)
912 ac_prev=datadir ;;
913 -datadir=* | --datadir=* | --datadi=* | --datad=*)
914 datadir=$ac_optarg ;;
915
916 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
917 | --dataroo | --dataro | --datar)
918 ac_prev=datarootdir ;;
919 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
920 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
921 datarootdir=$ac_optarg ;;
922
923 -disable-* | --disable-*)
924 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
925 # Reject names that are not valid shell variable names.
926 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
927 as_fn_error $? "invalid feature name: $ac_useropt"
928 ac_useropt_orig=$ac_useropt
929 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
930 case $ac_user_opts in
931 *"
932 "enable_$ac_useropt"
933 "*) ;;
934 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
935 ac_unrecognized_sep=', ';;
936 esac
937 eval enable_$ac_useropt=no ;;
938
939 -docdir | --docdir | --docdi | --doc | --do)
940 ac_prev=docdir ;;
941 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
942 docdir=$ac_optarg ;;
943
944 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
945 ac_prev=dvidir ;;
946 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
947 dvidir=$ac_optarg ;;
948
949 -enable-* | --enable-*)
950 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
951 # Reject names that are not valid shell variable names.
952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953 as_fn_error $? "invalid feature name: $ac_useropt"
954 ac_useropt_orig=$ac_useropt
955 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956 case $ac_user_opts in
957 *"
958 "enable_$ac_useropt"
959 "*) ;;
960 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
961 ac_unrecognized_sep=', ';;
962 esac
963 eval enable_$ac_useropt=\$ac_optarg ;;
964
965 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
966 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
967 | --exec | --exe | --ex)
968 ac_prev=exec_prefix ;;
969 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
970 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
971 | --exec=* | --exe=* | --ex=*)
972 exec_prefix=$ac_optarg ;;
973
974 -gas | --gas | --ga | --g)
975 # Obsolete; use --with-gas.
976 with_gas=yes ;;
977
978 -help | --help | --hel | --he | -h)
979 ac_init_help=long ;;
980 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
981 ac_init_help=recursive ;;
982 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
983 ac_init_help=short ;;
984
985 -host | --host | --hos | --ho)
986 ac_prev=host_alias ;;
987 -host=* | --host=* | --hos=* | --ho=*)
988 host_alias=$ac_optarg ;;
989
990 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
991 ac_prev=htmldir ;;
992 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
993 | --ht=*)
994 htmldir=$ac_optarg ;;
995
996 -includedir | --includedir | --includedi | --included | --include \
997 | --includ | --inclu | --incl | --inc)
998 ac_prev=includedir ;;
999 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1000 | --includ=* | --inclu=* | --incl=* | --inc=*)
1001 includedir=$ac_optarg ;;
1002
1003 -infodir | --infodir | --infodi | --infod | --info | --inf)
1004 ac_prev=infodir ;;
1005 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1006 infodir=$ac_optarg ;;
1007
1008 -libdir | --libdir | --libdi | --libd)
1009 ac_prev=libdir ;;
1010 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1011 libdir=$ac_optarg ;;
1012
1013 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1014 | --libexe | --libex | --libe)
1015 ac_prev=libexecdir ;;
1016 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1017 | --libexe=* | --libex=* | --libe=*)
1018 libexecdir=$ac_optarg ;;
1019
1020 -localedir | --localedir | --localedi | --localed | --locale)
1021 ac_prev=localedir ;;
1022 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1023 localedir=$ac_optarg ;;
1024
1025 -localstatedir | --localstatedir | --localstatedi | --localstated \
1026 | --localstate | --localstat | --localsta | --localst | --locals)
1027 ac_prev=localstatedir ;;
1028 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1029 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1030 localstatedir=$ac_optarg ;;
1031
1032 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1033 ac_prev=mandir ;;
1034 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1035 mandir=$ac_optarg ;;
1036
1037 -nfp | --nfp | --nf)
1038 # Obsolete; use --without-fp.
1039 with_fp=no ;;
1040
1041 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1042 | --no-cr | --no-c | -n)
1043 no_create=yes ;;
1044
1045 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1046 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1047 no_recursion=yes ;;
1048
1049 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1050 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1051 | --oldin | --oldi | --old | --ol | --o)
1052 ac_prev=oldincludedir ;;
1053 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1054 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1055 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1056 oldincludedir=$ac_optarg ;;
1057
1058 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1059 ac_prev=prefix ;;
1060 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1061 prefix=$ac_optarg ;;
1062
1063 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1064 | --program-pre | --program-pr | --program-p)
1065 ac_prev=program_prefix ;;
1066 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1067 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1068 program_prefix=$ac_optarg ;;
1069
1070 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1071 | --program-suf | --program-su | --program-s)
1072 ac_prev=program_suffix ;;
1073 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1074 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1075 program_suffix=$ac_optarg ;;
1076
1077 -program-transform-name | --program-transform-name \
1078 | --program-transform-nam | --program-transform-na \
1079 | --program-transform-n | --program-transform- \
1080 | --program-transform | --program-transfor \
1081 | --program-transfo | --program-transf \
1082 | --program-trans | --program-tran \
1083 | --progr-tra | --program-tr | --program-t)
1084 ac_prev=program_transform_name ;;
1085 -program-transform-name=* | --program-transform-name=* \
1086 | --program-transform-nam=* | --program-transform-na=* \
1087 | --program-transform-n=* | --program-transform-=* \
1088 | --program-transform=* | --program-transfor=* \
1089 | --program-transfo=* | --program-transf=* \
1090 | --program-trans=* | --program-tran=* \
1091 | --progr-tra=* | --program-tr=* | --program-t=*)
1092 program_transform_name=$ac_optarg ;;
1093
1094 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1095 ac_prev=pdfdir ;;
1096 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1097 pdfdir=$ac_optarg ;;
1098
1099 -psdir | --psdir | --psdi | --psd | --ps)
1100 ac_prev=psdir ;;
1101 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1102 psdir=$ac_optarg ;;
1103
1104 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1105 | -silent | --silent | --silen | --sile | --sil)
1106 silent=yes ;;
1107
1108 -runstatedir | --runstatedir | --runstatedi | --runstated \
1109 | --runstate | --runstat | --runsta | --runst | --runs \
1110 | --run | --ru | --r)
1111 ac_prev=runstatedir ;;
1112 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1113 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1114 | --run=* | --ru=* | --r=*)
1115 runstatedir=$ac_optarg ;;
1116
1117 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1118 ac_prev=sbindir ;;
1119 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1120 | --sbi=* | --sb=*)
1121 sbindir=$ac_optarg ;;
1122
1123 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1124 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1125 | --sharedst | --shareds | --shared | --share | --shar \
1126 | --sha | --sh)
1127 ac_prev=sharedstatedir ;;
1128 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1129 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1130 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1131 | --sha=* | --sh=*)
1132 sharedstatedir=$ac_optarg ;;
1133
1134 -site | --site | --sit)
1135 ac_prev=site ;;
1136 -site=* | --site=* | --sit=*)
1137 site=$ac_optarg ;;
1138
1139 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1140 ac_prev=srcdir ;;
1141 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1142 srcdir=$ac_optarg ;;
1143
1144 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1145 | --syscon | --sysco | --sysc | --sys | --sy)
1146 ac_prev=sysconfdir ;;
1147 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1148 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1149 sysconfdir=$ac_optarg ;;
1150
1151 -target | --target | --targe | --targ | --tar | --ta | --t)
1152 ac_prev=target_alias ;;
1153 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1154 target_alias=$ac_optarg ;;
1155
1156 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1157 verbose=yes ;;
1158
1159 -version | --version | --versio | --versi | --vers | -V)
1160 ac_init_version=: ;;
1161
1162 -with-* | --with-*)
1163 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1164 # Reject names that are not valid shell variable names.
1165 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166 as_fn_error $? "invalid package name: $ac_useropt"
1167 ac_useropt_orig=$ac_useropt
1168 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1169 case $ac_user_opts in
1170 *"
1171 "with_$ac_useropt"
1172 "*) ;;
1173 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1174 ac_unrecognized_sep=', ';;
1175 esac
1176 eval with_$ac_useropt=\$ac_optarg ;;
1177
1178 -without-* | --without-*)
1179 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182 as_fn_error $? "invalid package name: $ac_useropt"
1183 ac_useropt_orig=$ac_useropt
1184 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1185 case $ac_user_opts in
1186 *"
1187 "with_$ac_useropt"
1188 "*) ;;
1189 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1190 ac_unrecognized_sep=', ';;
1191 esac
1192 eval with_$ac_useropt=no ;;
1193
1194 --x)
1195 # Obsolete; use --with-x.
1196 with_x=yes ;;
1197
1198 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1199 | --x-incl | --x-inc | --x-in | --x-i)
1200 ac_prev=x_includes ;;
1201 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1202 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1203 x_includes=$ac_optarg ;;
1204
1205 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1206 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1207 ac_prev=x_libraries ;;
1208 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1209 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1210 x_libraries=$ac_optarg ;;
1211
1212 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1213 Try \`$0 --help' for more information"
1214 ;;
1215
1216 *=*)
1217 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1218 # Reject names that are not valid shell variable names.
1219 case $ac_envvar in #(
1220 '' | [0-9]* | *[!_$as_cr_alnum]* )
1221 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1222 esac
1223 eval $ac_envvar=\$ac_optarg
1224 export $ac_envvar ;;
1225
1226 *)
1227 # FIXME: should be removed in autoconf 3.0.
1228 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1229 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1230 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1231 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1232 ;;
1233
1234 esac
1235 done
1236
1237 if test -n "$ac_prev"; then
1238 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1239 as_fn_error $? "missing argument to $ac_option"
1240 fi
1241
1242 if test -n "$ac_unrecognized_opts"; then
1243 case $enable_option_checking in
1244 no) ;;
1245 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1246 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1247 esac
1248 fi
1249
1250 # Check all directory arguments for consistency.
1251 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1252 datadir sysconfdir sharedstatedir localstatedir includedir \
1253 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1254 libdir localedir mandir runstatedir
1255 do
1256 eval ac_val=\$$ac_var
1257 # Remove trailing slashes.
1258 case $ac_val in
1259 */ )
1260 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1261 eval $ac_var=\$ac_val;;
1262 esac
1263 # Be sure to have absolute directory names.
1264 case $ac_val in
1265 [\\/$]* | ?:[\\/]* ) continue;;
1266 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1267 esac
1268 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1269 done
1270
1271 # There might be people who depend on the old broken behavior: `$host'
1272 # used to hold the argument of --host etc.
1273 # FIXME: To remove some day.
1274 build=$build_alias
1275 host=$host_alias
1276 target=$target_alias
1277
1278 # FIXME: To remove some day.
1279 if test "x$host_alias" != x; then
1280 if test "x$build_alias" = x; then
1281 cross_compiling=maybe
1282 elif test "x$build_alias" != "x$host_alias"; then
1283 cross_compiling=yes
1284 fi
1285 fi
1286
1287 ac_tool_prefix=
1288 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1289
1290 test "$silent" = yes && exec 6>/dev/null
1291
1292
1293 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1294 ac_ls_di=`ls -di .` &&
1295 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1296 as_fn_error $? "working directory cannot be determined"
1297 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1298 as_fn_error $? "pwd does not report name of working directory"
1299
1300
1301 # Find the source files, if location was not specified.
1302 if test -z "$srcdir"; then
1303 ac_srcdir_defaulted=yes
1304 # Try the directory containing this script, then the parent directory.
1305 ac_confdir=`$as_dirname -- "$as_myself" ||
1306 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1307 X"$as_myself" : 'X\(//\)[^/]' \| \
1308 X"$as_myself" : 'X\(//\)$' \| \
1309 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1310 $as_echo X"$as_myself" |
1311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1312 s//\1/
1313 q
1314 }
1315 /^X\(\/\/\)[^/].*/{
1316 s//\1/
1317 q
1318 }
1319 /^X\(\/\/\)$/{
1320 s//\1/
1321 q
1322 }
1323 /^X\(\/\).*/{
1324 s//\1/
1325 q
1326 }
1327 s/.*/./; q'`
1328 srcdir=$ac_confdir
1329 if test ! -r "$srcdir/$ac_unique_file"; then
1330 srcdir=..
1331 fi
1332 else
1333 ac_srcdir_defaulted=no
1334 fi
1335 if test ! -r "$srcdir/$ac_unique_file"; then
1336 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1337 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1338 fi
1339 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1340 ac_abs_confdir=`(
1341 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1342 pwd)`
1343 # When building in place, set srcdir=.
1344 if test "$ac_abs_confdir" = "$ac_pwd"; then
1345 srcdir=.
1346 fi
1347 # Remove unnecessary trailing slashes from srcdir.
1348 # Double slashes in file names in object file debugging info
1349 # mess up M-x gdb in Emacs.
1350 case $srcdir in
1351 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1352 esac
1353 for ac_var in $ac_precious_vars; do
1354 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1355 eval ac_env_${ac_var}_value=\$${ac_var}
1356 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1357 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1358 done
1359
1360 #
1361 # Report the --help message.
1362 #
1363 if test "$ac_init_help" = "long"; then
1364 # Omit some internal or obsolete options to make the list less imposing.
1365 # This message is too long to be a string in the A/UX 3.1 sh.
1366 cat <<_ACEOF
1367 \`configure' configures libpaf 0.3.0 to adapt to many kinds of systems.
1368
1369 Usage: $0 [OPTION]... [VAR=VALUE]...
1370
1371 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1372 VAR=VALUE. See below for descriptions of some of the useful variables.
1373
1374 Defaults for the options are specified in brackets.
1375
1376 Configuration:
1377 -h, --help display this help and exit
1378 --help=short display options specific to this package
1379 --help=recursive display the short help of all the included packages
1380 -V, --version display version information and exit
1381 -q, --quiet, --silent do not print \`checking ...' messages
1382 --cache-file=FILE cache test results in FILE [disabled]
1383 -C, --config-cache alias for \`--cache-file=config.cache'
1384 -n, --no-create do not create output files
1385 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1386
1387 Installation directories:
1388 --prefix=PREFIX install architecture-independent files in PREFIX
1389 [$ac_default_prefix]
1390 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1391 [PREFIX]
1392
1393 By default, \`make install' will install all the files in
1394 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1395 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1396 for instance \`--prefix=\$HOME'.
1397
1398 For better control, use the options below.
1399
1400 Fine tuning of the installation directories:
1401 --bindir=DIR user executables [EPREFIX/bin]
1402 --sbindir=DIR system admin executables [EPREFIX/sbin]
1403 --libexecdir=DIR program executables [EPREFIX/libexec]
1404 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1405 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1406 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1407 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1408 --libdir=DIR object code libraries [EPREFIX/lib]
1409 --includedir=DIR C header files [PREFIX/include]
1410 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1411 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1412 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1413 --infodir=DIR info documentation [DATAROOTDIR/info]
1414 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1415 --mandir=DIR man documentation [DATAROOTDIR/man]
1416 --docdir=DIR documentation root [DATAROOTDIR/doc/libpaf]
1417 --htmldir=DIR html documentation [DOCDIR]
1418 --dvidir=DIR dvi documentation [DOCDIR]
1419 --pdfdir=DIR pdf documentation [DOCDIR]
1420 --psdir=DIR ps documentation [DOCDIR]
1421 _ACEOF
1422
1423 cat <<\_ACEOF
1424
1425 Program names:
1426 --program-prefix=PREFIX prepend PREFIX to installed program names
1427 --program-suffix=SUFFIX append SUFFIX to installed program names
1428 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1429
1430 System types:
1431 --build=BUILD configure for building on BUILD [guessed]
1432 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1433 _ACEOF
1434 fi
1435
1436 if test -n "$ac_init_help"; then
1437 case $ac_init_help in
1438 short | recursive ) echo "Configuration of libpaf 0.3.0:";;
1439 esac
1440 cat <<\_ACEOF
1441
1442 Optional Features:
1443 --disable-option-checking ignore unrecognized --enable/--with options
1444 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1445 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1446 --enable-silent-rules less verbose build output (undo: "make V=1")
1447 --disable-silent-rules verbose build output (undo: "make V=0")
1448 --enable-maintainer-mode
1449 enable make rules and dependencies not useful (and
1450 sometimes confusing) to the casual installer
1451 --enable-debug enable debug [not default]
1452 --disable-dsc disable DSC library build [not default]
1453 --disable-ebb disable EBB library build [not default]
1454 --enable-dependency-tracking
1455 do not reject slow dependency extractors
1456 --disable-dependency-tracking
1457 speeds up one-time build
1458 --disable-tb disable TIMEBASE build [not default]
1459 --disable-ppr disable PPR build [not default]
1460 --enable-save-area=AREA define the default EBB internal save area[runtime
1461 default]
1462 --enable-shared[=PKGS] build shared libraries [default=yes]
1463 --enable-static[=PKGS] build static libraries [default=yes]
1464 --enable-fast-install[=PKGS]
1465 optimize for fast installation [default=yes]
1466 --disable-libtool-lock avoid locking (might break parallel builds)
1467
1468 Optional Packages:
1469 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1470 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1471 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1472 both]
1473 --with-aix-soname=aix|svr4|both
1474 shared library versioning (aka "SONAME") variant to
1475 provide on AIX, [default=aix].
1476 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1477 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1478 compiler's sysroot if not specified).
1479
1480 Some influential environment variables:
1481 CC C compiler command
1482 CFLAGS C compiler flags
1483 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1484 nonstandard directory <lib dir>
1485 LIBS libraries to pass to the linker, e.g. -l<library>
1486 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1487 you have headers in a nonstandard directory <include dir>
1488 CPP C preprocessor
1489 CCAS assembler compiler command (defaults to CC)
1490 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1491 CXX C++ compiler command
1492 CXXFLAGS C++ compiler flags
1493 LT_SYS_LIBRARY_PATH
1494 User-defined run-time library search path.
1495 CXXCPP C++ preprocessor
1496
1497 Use these variables to override the choices made by `configure' or to help
1498 it to find libraries and programs with nonstandard names/locations.
1499
1500 Report bugs to <[email protected] [email protected] [email protected]>.
1501 _ACEOF
1502 ac_status=$?
1503 fi
1504
1505 if test "$ac_init_help" = "recursive"; then
1506 # If there are subdirs, report their specific --help.
1507 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1508 test -d "$ac_dir" ||
1509 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1510 continue
1511 ac_builddir=.
1512
1513 case "$ac_dir" in
1514 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1515 *)
1516 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1517 # A ".." for each directory in $ac_dir_suffix.
1518 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1519 case $ac_top_builddir_sub in
1520 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1521 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1522 esac ;;
1523 esac
1524 ac_abs_top_builddir=$ac_pwd
1525 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1526 # for backward compatibility:
1527 ac_top_builddir=$ac_top_build_prefix
1528
1529 case $srcdir in
1530 .) # We are building in place.
1531 ac_srcdir=.
1532 ac_top_srcdir=$ac_top_builddir_sub
1533 ac_abs_top_srcdir=$ac_pwd ;;
1534 [\\/]* | ?:[\\/]* ) # Absolute name.
1535 ac_srcdir=$srcdir$ac_dir_suffix;
1536 ac_top_srcdir=$srcdir
1537 ac_abs_top_srcdir=$srcdir ;;
1538 *) # Relative name.
1539 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1540 ac_top_srcdir=$ac_top_build_prefix$srcdir
1541 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1542 esac
1543 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1544
1545 cd "$ac_dir" || { ac_status=$?; continue; }
1546 # Check for guested configure.
1547 if test -f "$ac_srcdir/configure.gnu"; then
1548 echo &&
1549 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1550 elif test -f "$ac_srcdir/configure"; then
1551 echo &&
1552 $SHELL "$ac_srcdir/configure" --help=recursive
1553 else
1554 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1555 fi || ac_status=$?
1556 cd "$ac_pwd" || { ac_status=$?; break; }
1557 done
1558 fi
1559
1560 test -n "$ac_init_help" && exit $ac_status
1561 if $ac_init_version; then
1562 cat <<\_ACEOF
1563 libpaf configure 0.3.0
1564 generated by GNU Autoconf 2.69
1565
1566 Copyright (C) 2012 Free Software Foundation, Inc.
1567 This configure script is free software; the Free Software Foundation
1568 gives unlimited permission to copy, distribute and modify it.
1569 _ACEOF
1570 exit
1571 fi
1572
1573 ## ------------------------ ##
1574 ## Autoconf initialization. ##
1575 ## ------------------------ ##
1576
1577 # ac_fn_c_try_compile LINENO
1578 # --------------------------
1579 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1580 ac_fn_c_try_compile ()
1581 {
1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583 rm -f conftest.$ac_objext
1584 if { { ac_try="$ac_compile"
1585 case "(($ac_try" in
1586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587 *) ac_try_echo=$ac_try;;
1588 esac
1589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590 $as_echo "$ac_try_echo"; } >&5
1591 (eval "$ac_compile") 2>conftest.err
1592 ac_status=$?
1593 if test -s conftest.err; then
1594 grep -v '^ *+' conftest.err >conftest.er1
1595 cat conftest.er1 >&5
1596 mv -f conftest.er1 conftest.err
1597 fi
1598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599 test $ac_status = 0; } && {
1600 test -z "$ac_c_werror_flag" ||
1601 test ! -s conftest.err
1602 } && test -s conftest.$ac_objext; then :
1603 ac_retval=0
1604 else
1605 $as_echo "$as_me: failed program was:" >&5
1606 sed 's/^/| /' conftest.$ac_ext >&5
1607
1608 ac_retval=1
1609 fi
1610 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1611 as_fn_set_status $ac_retval
1612
1613 } # ac_fn_c_try_compile
1614
1615 # ac_fn_c_try_cpp LINENO
1616 # ----------------------
1617 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1618 ac_fn_c_try_cpp ()
1619 {
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621 if { { ac_try="$ac_cpp conftest.$ac_ext"
1622 case "(($ac_try" in
1623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1624 *) ac_try_echo=$ac_try;;
1625 esac
1626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1627 $as_echo "$ac_try_echo"; } >&5
1628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1629 ac_status=$?
1630 if test -s conftest.err; then
1631 grep -v '^ *+' conftest.err >conftest.er1
1632 cat conftest.er1 >&5
1633 mv -f conftest.er1 conftest.err
1634 fi
1635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1636 test $ac_status = 0; } > conftest.i && {
1637 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1638 test ! -s conftest.err
1639 }; then :
1640 ac_retval=0
1641 else
1642 $as_echo "$as_me: failed program was:" >&5
1643 sed 's/^/| /' conftest.$ac_ext >&5
1644
1645 ac_retval=1
1646 fi
1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648 as_fn_set_status $ac_retval
1649
1650 } # ac_fn_c_try_cpp
1651
1652 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1653 # -------------------------------------------------------
1654 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1655 # the include files in INCLUDES and setting the cache variable VAR
1656 # accordingly.
1657 ac_fn_c_check_header_mongrel ()
1658 {
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 if eval \${$3+:} false; then :
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1662 $as_echo_n "checking for $2... " >&6; }
1663 if eval \${$3+:} false; then :
1664 $as_echo_n "(cached) " >&6
1665 fi
1666 eval ac_res=\$$3
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1668 $as_echo "$ac_res" >&6; }
1669 else
1670 # Is the header compilable?
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1672 $as_echo_n "checking $2 usability... " >&6; }
1673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1674 /* end confdefs.h. */
1675 $4
1676 #include <$2>
1677 _ACEOF
1678 if ac_fn_c_try_compile "$LINENO"; then :
1679 ac_header_compiler=yes
1680 else
1681 ac_header_compiler=no
1682 fi
1683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1685 $as_echo "$ac_header_compiler" >&6; }
1686
1687 # Is the header present?
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1689 $as_echo_n "checking $2 presence... " >&6; }
1690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1691 /* end confdefs.h. */
1692 #include <$2>
1693 _ACEOF
1694 if ac_fn_c_try_cpp "$LINENO"; then :
1695 ac_header_preproc=yes
1696 else
1697 ac_header_preproc=no
1698 fi
1699 rm -f conftest.err conftest.i conftest.$ac_ext
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1701 $as_echo "$ac_header_preproc" >&6; }
1702
1703 # So? What about this header?
1704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1705 yes:no: )
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1707 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1709 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1710 ;;
1711 no:yes:* )
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1713 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1715 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1717 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1719 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1721 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1722 ( $as_echo "## ------------------------------------------------------------------------------------- ##
1723 ## Report this to [email protected] [email protected] [email protected] ##
1724 ## ------------------------------------------------------------------------------------- ##"
1725 ) | sed "s/^/$as_me: WARNING: /" >&2
1726 ;;
1727 esac
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1729 $as_echo_n "checking for $2... " >&6; }
1730 if eval \${$3+:} false; then :
1731 $as_echo_n "(cached) " >&6
1732 else
1733 eval "$3=\$ac_header_compiler"
1734 fi
1735 eval ac_res=\$$3
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1737 $as_echo "$ac_res" >&6; }
1738 fi
1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740
1741 } # ac_fn_c_check_header_mongrel
1742
1743 # ac_fn_c_try_run LINENO
1744 # ----------------------
1745 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1746 # that executables *can* be run.
1747 ac_fn_c_try_run ()
1748 {
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 if { { ac_try="$ac_link"
1751 case "(($ac_try" in
1752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753 *) ac_try_echo=$ac_try;;
1754 esac
1755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756 $as_echo "$ac_try_echo"; } >&5
1757 (eval "$ac_link") 2>&5
1758 ac_status=$?
1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1761 { { case "(($ac_try" in
1762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763 *) ac_try_echo=$ac_try;;
1764 esac
1765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766 $as_echo "$ac_try_echo"; } >&5
1767 (eval "$ac_try") 2>&5
1768 ac_status=$?
1769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770 test $ac_status = 0; }; }; then :
1771 ac_retval=0
1772 else
1773 $as_echo "$as_me: program exited with status $ac_status" >&5
1774 $as_echo "$as_me: failed program was:" >&5
1775 sed 's/^/| /' conftest.$ac_ext >&5
1776
1777 ac_retval=$ac_status
1778 fi
1779 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781 as_fn_set_status $ac_retval
1782
1783 } # ac_fn_c_try_run
1784
1785 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1786 # -------------------------------------------------------
1787 # Tests whether HEADER exists and can be compiled using the include files in
1788 # INCLUDES, setting the cache variable VAR accordingly.
1789 ac_fn_c_check_header_compile ()
1790 {
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1793 $as_echo_n "checking for $2... " >&6; }
1794 if eval \${$3+:} false; then :
1795 $as_echo_n "(cached) " >&6
1796 else
1797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798 /* end confdefs.h. */
1799 $4
1800 #include <$2>
1801 _ACEOF
1802 if ac_fn_c_try_compile "$LINENO"; then :
1803 eval "$3=yes"
1804 else
1805 eval "$3=no"
1806 fi
1807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1808 fi
1809 eval ac_res=\$$3
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1811 $as_echo "$ac_res" >&6; }
1812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813
1814 } # ac_fn_c_check_header_compile
1815
1816 # ac_fn_c_try_link LINENO
1817 # -----------------------
1818 # Try to link conftest.$ac_ext, and return whether this succeeded.
1819 ac_fn_c_try_link ()
1820 {
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 rm -f conftest.$ac_objext conftest$ac_exeext
1823 if { { ac_try="$ac_link"
1824 case "(($ac_try" in
1825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1826 *) ac_try_echo=$ac_try;;
1827 esac
1828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829 $as_echo "$ac_try_echo"; } >&5
1830 (eval "$ac_link") 2>conftest.err
1831 ac_status=$?
1832 if test -s conftest.err; then
1833 grep -v '^ *+' conftest.err >conftest.er1
1834 cat conftest.er1 >&5
1835 mv -f conftest.er1 conftest.err
1836 fi
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; } && {
1839 test -z "$ac_c_werror_flag" ||
1840 test ! -s conftest.err
1841 } && test -s conftest$ac_exeext && {
1842 test "$cross_compiling" = yes ||
1843 test -x conftest$ac_exeext
1844 }; then :
1845 ac_retval=0
1846 else
1847 $as_echo "$as_me: failed program was:" >&5
1848 sed 's/^/| /' conftest.$ac_ext >&5
1849
1850 ac_retval=1
1851 fi
1852 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1853 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1854 # interfere with the next link command; also delete a directory that is
1855 # left behind by Apple's compiler. We do this before executing the actions.
1856 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858 as_fn_set_status $ac_retval
1859
1860 } # ac_fn_c_try_link
1861
1862 # ac_fn_cxx_try_compile LINENO
1863 # ----------------------------
1864 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1865 ac_fn_cxx_try_compile ()
1866 {
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 rm -f conftest.$ac_objext
1869 if { { ac_try="$ac_compile"
1870 case "(($ac_try" in
1871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1872 *) ac_try_echo=$ac_try;;
1873 esac
1874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1875 $as_echo "$ac_try_echo"; } >&5
1876 (eval "$ac_compile") 2>conftest.err
1877 ac_status=$?
1878 if test -s conftest.err; then
1879 grep -v '^ *+' conftest.err >conftest.er1
1880 cat conftest.er1 >&5
1881 mv -f conftest.er1 conftest.err
1882 fi
1883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1884 test $ac_status = 0; } && {
1885 test -z "$ac_cxx_werror_flag" ||
1886 test ! -s conftest.err
1887 } && test -s conftest.$ac_objext; then :
1888 ac_retval=0
1889 else
1890 $as_echo "$as_me: failed program was:" >&5
1891 sed 's/^/| /' conftest.$ac_ext >&5
1892
1893 ac_retval=1
1894 fi
1895 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1896 as_fn_set_status $ac_retval
1897
1898 } # ac_fn_cxx_try_compile
1899
1900 # ac_fn_c_check_func LINENO FUNC VAR
1901 # ----------------------------------
1902 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1903 ac_fn_c_check_func ()
1904 {
1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1907 $as_echo_n "checking for $2... " >&6; }
1908 if eval \${$3+:} false; then :
1909 $as_echo_n "(cached) " >&6
1910 else
1911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912 /* end confdefs.h. */
1913 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1915 #define $2 innocuous_$2
1916
1917 /* System header to define __stub macros and hopefully few prototypes,
1918 which can conflict with char $2 (); below.
1919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1920 <limits.h> exists even on freestanding compilers. */
1921
1922 #ifdef __STDC__
1923 # include <limits.h>
1924 #else
1925 # include <assert.h>
1926 #endif
1927
1928 #undef $2
1929
1930 /* Override any GCC internal prototype to avoid an error.
1931 Use char because int might match the return type of a GCC
1932 builtin and then its argument prototype would still apply. */
1933 #ifdef __cplusplus
1934 extern "C"
1935 #endif
1936 char $2 ();
1937 /* The GNU C library defines this for functions which it implements
1938 to always fail with ENOSYS. Some functions are actually named
1939 something starting with __ and the normal name is an alias. */
1940 #if defined __stub_$2 || defined __stub___$2
1941 choke me
1942 #endif
1943
1944 int
1945 main ()
1946 {
1947 return $2 ();
1948 ;
1949 return 0;
1950 }
1951 _ACEOF
1952 if ac_fn_c_try_link "$LINENO"; then :
1953 eval "$3=yes"
1954 else
1955 eval "$3=no"
1956 fi
1957 rm -f core conftest.err conftest.$ac_objext \
1958 conftest$ac_exeext conftest.$ac_ext
1959 fi
1960 eval ac_res=\$$3
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1962 $as_echo "$ac_res" >&6; }
1963 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1964
1965 } # ac_fn_c_check_func
1966
1967 # ac_fn_cxx_try_cpp LINENO
1968 # ------------------------
1969 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1970 ac_fn_cxx_try_cpp ()
1971 {
1972 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973 if { { ac_try="$ac_cpp conftest.$ac_ext"
1974 case "(($ac_try" in
1975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1976 *) ac_try_echo=$ac_try;;
1977 esac
1978 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1979 $as_echo "$ac_try_echo"; } >&5
1980 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1981 ac_status=$?
1982 if test -s conftest.err; then
1983 grep -v '^ *+' conftest.err >conftest.er1
1984 cat conftest.er1 >&5
1985 mv -f conftest.er1 conftest.err
1986 fi
1987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1988 test $ac_status = 0; } > conftest.i && {
1989 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1990 test ! -s conftest.err
1991 }; then :
1992 ac_retval=0
1993 else
1994 $as_echo "$as_me: failed program was:" >&5
1995 sed 's/^/| /' conftest.$ac_ext >&5
1996
1997 ac_retval=1
1998 fi
1999 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2000 as_fn_set_status $ac_retval
2001
2002 } # ac_fn_cxx_try_cpp
2003
2004 # ac_fn_cxx_try_link LINENO
2005 # -------------------------
2006 # Try to link conftest.$ac_ext, and return whether this succeeded.
2007 ac_fn_cxx_try_link ()
2008 {
2009 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2010 rm -f conftest.$ac_objext conftest$ac_exeext
2011 if { { ac_try="$ac_link"
2012 case "(($ac_try" in
2013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2014 *) ac_try_echo=$ac_try;;
2015 esac
2016 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2017 $as_echo "$ac_try_echo"; } >&5
2018 (eval "$ac_link") 2>conftest.err
2019 ac_status=$?
2020 if test -s conftest.err; then
2021 grep -v '^ *+' conftest.err >conftest.er1
2022 cat conftest.er1 >&5
2023 mv -f conftest.er1 conftest.err
2024 fi
2025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2026 test $ac_status = 0; } && {
2027 test -z "$ac_cxx_werror_flag" ||
2028 test ! -s conftest.err
2029 } && test -s conftest$ac_exeext && {
2030 test "$cross_compiling" = yes ||
2031 test -x conftest$ac_exeext
2032 }; then :
2033 ac_retval=0
2034 else
2035 $as_echo "$as_me: failed program was:" >&5
2036 sed 's/^/| /' conftest.$ac_ext >&5
2037
2038 ac_retval=1
2039 fi
2040 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2041 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2042 # interfere with the next link command; also delete a directory that is
2043 # left behind by Apple's compiler. We do this before executing the actions.
2044 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2045 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2046 as_fn_set_status $ac_retval
2047
2048 } # ac_fn_cxx_try_link
2049
2050 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2051 # -------------------------------------------
2052 # Tests whether TYPE exists after having included INCLUDES, setting cache
2053 # variable VAR accordingly.
2054 ac_fn_c_check_type ()
2055 {
2056 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2058 $as_echo_n "checking for $2... " >&6; }
2059 if eval \${$3+:} false; then :
2060 $as_echo_n "(cached) " >&6
2061 else
2062 eval "$3=no"
2063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2064 /* end confdefs.h. */
2065 $4
2066 int
2067 main ()
2068 {
2069 if (sizeof ($2))
2070 return 0;
2071 ;
2072 return 0;
2073 }
2074 _ACEOF
2075 if ac_fn_c_try_compile "$LINENO"; then :
2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h. */
2078 $4
2079 int
2080 main ()
2081 {
2082 if (sizeof (($2)))
2083 return 0;
2084 ;
2085 return 0;
2086 }
2087 _ACEOF
2088 if ac_fn_c_try_compile "$LINENO"; then :
2089
2090 else
2091 eval "$3=yes"
2092 fi
2093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2094 fi
2095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2096 fi
2097 eval ac_res=\$$3
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2099 $as_echo "$ac_res" >&6; }
2100 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2101
2102 } # ac_fn_c_check_type
2103
2104 # ac_fn_c_find_uintX_t LINENO BITS VAR
2105 # ------------------------------------
2106 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2107 # accordingly.
2108 ac_fn_c_find_uintX_t ()
2109 {
2110 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2112 $as_echo_n "checking for uint$2_t... " >&6; }
2113 if eval \${$3+:} false; then :
2114 $as_echo_n "(cached) " >&6
2115 else
2116 eval "$3=no"
2117 # Order is important - never check a type that is potentially smaller
2118 # than half of the expected target width.
2119 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2120 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122 /* end confdefs.h. */
2123 $ac_includes_default
2124 int
2125 main ()
2126 {
2127 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2128 test_array [0] = 0;
2129 return test_array [0];
2130
2131 ;
2132 return 0;
2133 }
2134 _ACEOF
2135 if ac_fn_c_try_compile "$LINENO"; then :
2136 case $ac_type in #(
2137 uint$2_t) :
2138 eval "$3=yes" ;; #(
2139 *) :
2140 eval "$3=\$ac_type" ;;
2141 esac
2142 fi
2143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2144 if eval test \"x\$"$3"\" = x"no"; then :
2145
2146 else
2147 break
2148 fi
2149 done
2150 fi
2151 eval ac_res=\$$3
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2153 $as_echo "$ac_res" >&6; }
2154 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2155
2156 } # ac_fn_c_find_uintX_t
2157
2158 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2159 # ---------------------------------------------
2160 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2161 # accordingly.
2162 ac_fn_c_check_decl ()
2163 {
2164 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2165 as_decl_name=`echo $2|sed 's/ *(.*//'`
2166 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2168 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2169 if eval \${$3+:} false; then :
2170 $as_echo_n "(cached) " >&6
2171 else
2172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2173 /* end confdefs.h. */
2174 $4
2175 int
2176 main ()
2177 {
2178 #ifndef $as_decl_name
2179 #ifdef __cplusplus
2180 (void) $as_decl_use;
2181 #else
2182 (void) $as_decl_name;
2183 #endif
2184 #endif
2185
2186 ;
2187 return 0;
2188 }
2189 _ACEOF
2190 if ac_fn_c_try_compile "$LINENO"; then :
2191 eval "$3=yes"
2192 else
2193 eval "$3=no"
2194 fi
2195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2196 fi
2197 eval ac_res=\$$3
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2199 $as_echo "$ac_res" >&6; }
2200 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2201
2202 } # ac_fn_c_check_decl
2203 cat >config.log <<_ACEOF
2204 This file contains any messages produced by compilers while
2205 running configure, to aid debugging if configure makes a mistake.
2206
2207 It was created by libpaf $as_me 0.3.0, which was
2208 generated by GNU Autoconf 2.69. Invocation command line was
2209
2210 $ $0 $@
2211
2212 _ACEOF
2213 exec 5>>config.log
2214 {
2215 cat <<_ASUNAME
2216 ## --------- ##
2217 ## Platform. ##
2218 ## --------- ##
2219
2220 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2221 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2222 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2223 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2224 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2225
2226 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2227 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2228
2229 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2230 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2231 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2232 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2233 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2234 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2235 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2236
2237 _ASUNAME
2238
2239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2240 for as_dir in $PATH
2241 do
2242 IFS=$as_save_IFS
2243 test -z "$as_dir" && as_dir=.
2244 $as_echo "PATH: $as_dir"
2245 done
2246 IFS=$as_save_IFS
2247
2248 } >&5
2249
2250 cat >&5 <<_ACEOF
2251
2252
2253 ## ----------- ##
2254 ## Core tests. ##
2255 ## ----------- ##
2256
2257 _ACEOF
2258
2259
2260 # Keep a trace of the command line.
2261 # Strip out --no-create and --no-recursion so they do not pile up.
2262 # Strip out --silent because we don't want to record it for future runs.
2263 # Also quote any args containing shell meta-characters.
2264 # Make two passes to allow for proper duplicate-argument suppression.
2265 ac_configure_args=
2266 ac_configure_args0=
2267 ac_configure_args1=
2268 ac_must_keep_next=false
2269 for ac_pass in 1 2
2270 do
2271 for ac_arg
2272 do
2273 case $ac_arg in
2274 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2275 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2276 | -silent | --silent | --silen | --sile | --sil)
2277 continue ;;
2278 *\'*)
2279 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2280 esac
2281 case $ac_pass in
2282 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2283 2)
2284 as_fn_append ac_configure_args1 " '$ac_arg'"
2285 if test $ac_must_keep_next = true; then
2286 ac_must_keep_next=false # Got value, back to normal.
2287 else
2288 case $ac_arg in
2289 *=* | --config-cache | -C | -disable-* | --disable-* \
2290 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2291 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2292 | -with-* | --with-* | -without-* | --without-* | --x)
2293 case "$ac_configure_args0 " in
2294 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2295 esac
2296 ;;
2297 -* ) ac_must_keep_next=true ;;
2298 esac
2299 fi
2300 as_fn_append ac_configure_args " '$ac_arg'"
2301 ;;
2302 esac
2303 done
2304 done
2305 { ac_configure_args0=; unset ac_configure_args0;}
2306 { ac_configure_args1=; unset ac_configure_args1;}
2307
2308 # When interrupted or exit'd, cleanup temporary files, and complete
2309 # config.log. We remove comments because anyway the quotes in there
2310 # would cause problems or look ugly.
2311 # WARNING: Use '\'' to represent an apostrophe within the trap.
2312 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2313 trap 'exit_status=$?
2314 # Save into config.log some information that might help in debugging.
2315 {
2316 echo
2317
2318 $as_echo "## ---------------- ##
2319 ## Cache variables. ##
2320 ## ---------------- ##"
2321 echo
2322 # The following way of writing the cache mishandles newlines in values,
2323 (
2324 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2325 eval ac_val=\$$ac_var
2326 case $ac_val in #(
2327 *${as_nl}*)
2328 case $ac_var in #(
2329 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2330 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2331 esac
2332 case $ac_var in #(
2333 _ | IFS | as_nl) ;; #(
2334 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2335 *) { eval $ac_var=; unset $ac_var;} ;;
2336 esac ;;
2337 esac
2338 done
2339 (set) 2>&1 |
2340 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2341 *${as_nl}ac_space=\ *)
2342 sed -n \
2343 "s/'\''/'\''\\\\'\'''\''/g;
2344 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2345 ;; #(
2346 *)
2347 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2348 ;;
2349 esac |
2350 sort
2351 )
2352 echo
2353
2354 $as_echo "## ----------------- ##
2355 ## Output variables. ##
2356 ## ----------------- ##"
2357 echo
2358 for ac_var in $ac_subst_vars
2359 do
2360 eval ac_val=\$$ac_var
2361 case $ac_val in
2362 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2363 esac
2364 $as_echo "$ac_var='\''$ac_val'\''"
2365 done | sort
2366 echo
2367
2368 if test -n "$ac_subst_files"; then
2369 $as_echo "## ------------------- ##
2370 ## File substitutions. ##
2371 ## ------------------- ##"
2372 echo
2373 for ac_var in $ac_subst_files
2374 do
2375 eval ac_val=\$$ac_var
2376 case $ac_val in
2377 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2378 esac
2379 $as_echo "$ac_var='\''$ac_val'\''"
2380 done | sort
2381 echo
2382 fi
2383
2384 if test -s confdefs.h; then
2385 $as_echo "## ----------- ##
2386 ## confdefs.h. ##
2387 ## ----------- ##"
2388 echo
2389 cat confdefs.h
2390 echo
2391 fi
2392 test "$ac_signal" != 0 &&
2393 $as_echo "$as_me: caught signal $ac_signal"
2394 $as_echo "$as_me: exit $exit_status"
2395 } >&5
2396 rm -f core *.core core.conftest.* &&
2397 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2398 exit $exit_status
2399 ' 0
2400 for ac_signal in 1 2 13 15; do
2401 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2402 done
2403 ac_signal=0
2404
2405 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2406 rm -f -r conftest* confdefs.h
2407
2408 $as_echo "/* confdefs.h */" > confdefs.h
2409
2410 # Predefined preprocessor variables.
2411
2412 cat >>confdefs.h <<_ACEOF
2413 #define PACKAGE_NAME "$PACKAGE_NAME"
2414 _ACEOF
2415
2416 cat >>confdefs.h <<_ACEOF
2417 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2418 _ACEOF
2419
2420 cat >>confdefs.h <<_ACEOF
2421 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2422 _ACEOF
2423
2424 cat >>confdefs.h <<_ACEOF
2425 #define PACKAGE_STRING "$PACKAGE_STRING"
2426 _ACEOF
2427
2428 cat >>confdefs.h <<_ACEOF
2429 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2430 _ACEOF
2431
2432 cat >>confdefs.h <<_ACEOF
2433 #define PACKAGE_URL "$PACKAGE_URL"
2434 _ACEOF
2435
2436
2437 # Let the site file select an alternate cache file if it wants to.
2438 # Prefer an explicitly selected file to automatically selected ones.
2439 ac_site_file1=NONE
2440 ac_site_file2=NONE
2441 if test -n "$CONFIG_SITE"; then
2442 # We do not want a PATH search for config.site.
2443 case $CONFIG_SITE in #((
2444 -*) ac_site_file1=./$CONFIG_SITE;;
2445 */*) ac_site_file1=$CONFIG_SITE;;
2446 *) ac_site_file1=./$CONFIG_SITE;;
2447 esac
2448 elif test "x$prefix" != xNONE; then
2449 ac_site_file1=$prefix/share/config.site
2450 ac_site_file2=$prefix/etc/config.site
2451 else
2452 ac_site_file1=$ac_default_prefix/share/config.site
2453 ac_site_file2=$ac_default_prefix/etc/config.site
2454 fi
2455 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2456 do
2457 test "x$ac_site_file" = xNONE && continue
2458 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2460 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2461 sed 's/^/| /' "$ac_site_file" >&5
2462 . "$ac_site_file" \
2463 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2465 as_fn_error $? "failed to load site script $ac_site_file
2466 See \`config.log' for more details" "$LINENO" 5; }
2467 fi
2468 done
2469
2470 if test -r "$cache_file"; then
2471 # Some versions of bash will fail to source /dev/null (special files
2472 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2473 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2475 $as_echo "$as_me: loading cache $cache_file" >&6;}
2476 case $cache_file in
2477 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2478 *) . "./$cache_file";;
2479 esac
2480 fi
2481 else
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2483 $as_echo "$as_me: creating cache $cache_file" >&6;}
2484 >$cache_file
2485 fi
2486
2487 # Check that the precious variables saved in the cache have kept the same
2488 # value.
2489 ac_cache_corrupted=false
2490 for ac_var in $ac_precious_vars; do
2491 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2492 eval ac_new_set=\$ac_env_${ac_var}_set
2493 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2494 eval ac_new_val=\$ac_env_${ac_var}_value
2495 case $ac_old_set,$ac_new_set in
2496 set,)
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2498 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2499 ac_cache_corrupted=: ;;
2500 ,set)
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2502 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2503 ac_cache_corrupted=: ;;
2504 ,);;
2505 *)
2506 if test "x$ac_old_val" != "x$ac_new_val"; then
2507 # differences in whitespace do not lead to failure.
2508 ac_old_val_w=`echo x $ac_old_val`
2509 ac_new_val_w=`echo x $ac_new_val`
2510 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2512 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2513 ac_cache_corrupted=:
2514 else
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2516 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2517 eval $ac_var=\$ac_old_val
2518 fi
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2520 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2522 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2523 fi;;
2524 esac
2525 # Pass precious variables to config.status.
2526 if test "$ac_new_set" = set; then
2527 case $ac_new_val in
2528 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2529 *) ac_arg=$ac_var=$ac_new_val ;;
2530 esac
2531 case " $ac_configure_args " in
2532 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2533 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2534 esac
2535 fi
2536 done
2537 if $ac_cache_corrupted; then
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2539 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2541 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2542 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2543 fi
2544 ## -------------------- ##
2545 ## Main body of script. ##
2546 ## -------------------- ##
2547
2548 ac_ext=c
2549 ac_cpp='$CPP $CPPFLAGS'
2550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2553
2554
2555 am__api_version='1.15'
2556
2557 ac_aux_dir=
2558 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2559 if test -f "$ac_dir/install-sh"; then
2560 ac_aux_dir=$ac_dir
2561 ac_install_sh="$ac_aux_dir/install-sh -c"
2562 break
2563 elif test -f "$ac_dir/install.sh"; then
2564 ac_aux_dir=$ac_dir
2565 ac_install_sh="$ac_aux_dir/install.sh -c"
2566 break
2567 elif test -f "$ac_dir/shtool"; then
2568 ac_aux_dir=$ac_dir
2569 ac_install_sh="$ac_aux_dir/shtool install -c"
2570 break
2571 fi
2572 done
2573 if test -z "$ac_aux_dir"; then
2574 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2575 fi
2576
2577 # These three variables are undocumented and unsupported,
2578 # and are intended to be withdrawn in a future Autoconf release.
2579 # They can cause serious problems if a builder's source tree is in a directory
2580 # whose full name contains unusual characters.
2581 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2582 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2583 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2584
2585
2586 # Find a good install program. We prefer a C program (faster),
2587 # so one script is as good as another. But avoid the broken or
2588 # incompatible versions:
2589 # SysV /etc/install, /usr/sbin/install
2590 # SunOS /usr/etc/install
2591 # IRIX /sbin/install
2592 # AIX /bin/install
2593 # AmigaOS /C/install, which installs bootblocks on floppy discs
2594 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2595 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2596 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2597 # OS/2's system install, which has a completely different semantic
2598 # ./install, which can be erroneously created by make from ./install.sh.
2599 # Reject install programs that cannot install multiple files.
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2601 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2602 if test -z "$INSTALL"; then
2603 if ${ac_cv_path_install+:} false; then :
2604 $as_echo_n "(cached) " >&6
2605 else
2606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607 for as_dir in $PATH
2608 do
2609 IFS=$as_save_IFS
2610 test -z "$as_dir" && as_dir=.
2611 # Account for people who put trailing slashes in PATH elements.
2612 case $as_dir/ in #((
2613 ./ | .// | /[cC]/* | \
2614 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2615 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2616 /usr/ucb/* ) ;;
2617 *)
2618 # OSF1 and SCO ODT 3.0 have their own names for install.
2619 # Don't use installbsd from OSF since it installs stuff as root
2620 # by default.
2621 for ac_prog in ginstall scoinst install; do
2622 for ac_exec_ext in '' $ac_executable_extensions; do
2623 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2624 if test $ac_prog = install &&
2625 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2626 # AIX install. It has an incompatible calling convention.
2627 :
2628 elif test $ac_prog = install &&
2629 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2630 # program-specific install script used by HP pwplus--don't use.
2631 :
2632 else
2633 rm -rf conftest.one conftest.two conftest.dir
2634 echo one > conftest.one
2635 echo two > conftest.two
2636 mkdir conftest.dir
2637 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2638 test -s conftest.one && test -s conftest.two &&
2639 test -s conftest.dir/conftest.one &&
2640 test -s conftest.dir/conftest.two
2641 then
2642 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2643 break 3
2644 fi
2645 fi
2646 fi
2647 done
2648 done
2649 ;;
2650 esac
2651
2652 done
2653 IFS=$as_save_IFS
2654
2655 rm -rf conftest.one conftest.two conftest.dir
2656
2657 fi
2658 if test "${ac_cv_path_install+set}" = set; then
2659 INSTALL=$ac_cv_path_install
2660 else
2661 # As a last resort, use the slow shell script. Don't cache a
2662 # value for INSTALL within a source directory, because that will
2663 # break other packages using the cache if that directory is
2664 # removed, or if the value is a relative name.
2665 INSTALL=$ac_install_sh
2666 fi
2667 fi
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2669 $as_echo "$INSTALL" >&6; }
2670
2671 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2672 # It thinks the first close brace ends the variable substitution.
2673 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2674
2675 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2676
2677 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2678
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2680 $as_echo_n "checking whether build environment is sane... " >&6; }
2681 # Reject unsafe characters in $srcdir or the absolute working directory
2682 # name. Accept space and tab only in the latter.
2683 am_lf='
2684 '
2685 case `pwd` in
2686 *[\\\"\#\$\&\'\`$am_lf]*)
2687 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2688 esac
2689 case $srcdir in
2690 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2691 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2692 esac
2693
2694 # Do 'set' in a subshell so we don't clobber the current shell's
2695 # arguments. Must try -L first in case configure is actually a
2696 # symlink; some systems play weird games with the mod time of symlinks
2697 # (eg FreeBSD returns the mod time of the symlink's containing
2698 # directory).
2699 if (
2700 am_has_slept=no
2701 for am_try in 1 2; do
2702 echo "timestamp, slept: $am_has_slept" > conftest.file
2703 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2704 if test "$*" = "X"; then
2705 # -L didn't work.
2706 set X `ls -t "$srcdir/configure" conftest.file`
2707 fi
2708 if test "$*" != "X $srcdir/configure conftest.file" \
2709 && test "$*" != "X conftest.file $srcdir/configure"; then
2710
2711 # If neither matched, then we have a broken ls. This can happen
2712 # if, for instance, CONFIG_SHELL is bash and it inherits a
2713 # broken ls alias from the environment. This has actually
2714 # happened. Such a system could not be considered "sane".
2715 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2716 alias in your environment" "$LINENO" 5
2717 fi
2718 if test "$2" = conftest.file || test $am_try -eq 2; then
2719 break
2720 fi
2721 # Just in case.
2722 sleep 1
2723 am_has_slept=yes
2724 done
2725 test "$2" = conftest.file
2726 )
2727 then
2728 # Ok.
2729 :
2730 else
2731 as_fn_error $? "newly created file is older than distributed files!
2732 Check your system clock" "$LINENO" 5
2733 fi
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2735 $as_echo "yes" >&6; }
2736 # If we didn't sleep, we still need to ensure time stamps of config.status and
2737 # generated files are strictly newer.
2738 am_sleep_pid=
2739 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2740 ( sleep 1 ) &
2741 am_sleep_pid=$!
2742 fi
2743
2744 rm -f conftest.file
2745
2746 test "$program_prefix" != NONE &&
2747 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2748 # Use a double $ so make ignores it.
2749 test "$program_suffix" != NONE &&
2750 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2751 # Double any \ or $.
2752 # By default was `s,x,x', remove it if useless.
2753 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2754 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2755
2756 # Expand $ac_aux_dir to an absolute path.
2757 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2758
2759 if test x"${MISSING+set}" != xset; then
2760 case $am_aux_dir in
2761 *\ * | *\ *)
2762 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2763 *)
2764 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2765 esac
2766 fi
2767 # Use eval to expand $SHELL
2768 if eval "$MISSING --is-lightweight"; then
2769 am_missing_run="$MISSING "
2770 else
2771 am_missing_run=
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2773 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2774 fi
2775
2776 if test x"${install_sh+set}" != xset; then
2777 case $am_aux_dir in
2778 *\ * | *\ *)
2779 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2780 *)
2781 install_sh="\${SHELL} $am_aux_dir/install-sh"
2782 esac
2783 fi
2784
2785 # Installed binaries are usually stripped using 'strip' when the user
2786 # run "make install-strip". However 'strip' might not be the right
2787 # tool to use in cross-compilation environments, therefore Automake
2788 # will honor the 'STRIP' environment variable to overrule this program.
2789 if test "$cross_compiling" != no; then
2790 if test -n "$ac_tool_prefix"; then
2791 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2792 set dummy ${ac_tool_prefix}strip; ac_word=$2
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2794 $as_echo_n "checking for $ac_word... " >&6; }
2795 if ${ac_cv_prog_STRIP+:} false; then :
2796 $as_echo_n "(cached) " >&6
2797 else
2798 if test -n "$STRIP"; then
2799 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2800 else
2801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802 for as_dir in $PATH
2803 do
2804 IFS=$as_save_IFS
2805 test -z "$as_dir" && as_dir=.
2806 for ac_exec_ext in '' $ac_executable_extensions; do
2807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2808 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2810 break 2
2811 fi
2812 done
2813 done
2814 IFS=$as_save_IFS
2815
2816 fi
2817 fi
2818 STRIP=$ac_cv_prog_STRIP
2819 if test -n "$STRIP"; then
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2821 $as_echo "$STRIP" >&6; }
2822 else
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2824 $as_echo "no" >&6; }
2825 fi
2826
2827
2828 fi
2829 if test -z "$ac_cv_prog_STRIP"; then
2830 ac_ct_STRIP=$STRIP
2831 # Extract the first word of "strip", so it can be a program name with args.
2832 set dummy strip; ac_word=$2
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2834 $as_echo_n "checking for $ac_word... " >&6; }
2835 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2836 $as_echo_n "(cached) " >&6
2837 else
2838 if test -n "$ac_ct_STRIP"; then
2839 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2840 else
2841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842 for as_dir in $PATH
2843 do
2844 IFS=$as_save_IFS
2845 test -z "$as_dir" && as_dir=.
2846 for ac_exec_ext in '' $ac_executable_extensions; do
2847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2848 ac_cv_prog_ac_ct_STRIP="strip"
2849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2850 break 2
2851 fi
2852 done
2853 done
2854 IFS=$as_save_IFS
2855
2856 fi
2857 fi
2858 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2859 if test -n "$ac_ct_STRIP"; then
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2861 $as_echo "$ac_ct_STRIP" >&6; }
2862 else
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2864 $as_echo "no" >&6; }
2865 fi
2866
2867 if test "x$ac_ct_STRIP" = x; then
2868 STRIP=":"
2869 else
2870 case $cross_compiling:$ac_tool_warned in
2871 yes:)
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2873 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2874 ac_tool_warned=yes ;;
2875 esac
2876 STRIP=$ac_ct_STRIP
2877 fi
2878 else
2879 STRIP="$ac_cv_prog_STRIP"
2880 fi
2881
2882 fi
2883 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2884
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2886 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2887 if test -z "$MKDIR_P"; then
2888 if ${ac_cv_path_mkdir+:} false; then :
2889 $as_echo_n "(cached) " >&6
2890 else
2891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2893 do
2894 IFS=$as_save_IFS
2895 test -z "$as_dir" && as_dir=.
2896 for ac_prog in mkdir gmkdir; do
2897 for ac_exec_ext in '' $ac_executable_extensions; do
2898 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2899 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2900 'mkdir (GNU coreutils) '* | \
2901 'mkdir (coreutils) '* | \
2902 'mkdir (fileutils) '4.1*)
2903 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2904 break 3;;
2905 esac
2906 done
2907 done
2908 done
2909 IFS=$as_save_IFS
2910
2911 fi
2912
2913 test -d ./--version && rmdir ./--version
2914 if test "${ac_cv_path_mkdir+set}" = set; then
2915 MKDIR_P="$ac_cv_path_mkdir -p"
2916 else
2917 # As a last resort, use the slow shell script. Don't cache a
2918 # value for MKDIR_P within a source directory, because that will
2919 # break other packages using the cache if that directory is
2920 # removed, or if the value is a relative name.
2921 MKDIR_P="$ac_install_sh -d"
2922 fi
2923 fi
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2925 $as_echo "$MKDIR_P" >&6; }
2926
2927 for ac_prog in gawk mawk nawk awk
2928 do
2929 # Extract the first word of "$ac_prog", so it can be a program name with args.
2930 set dummy $ac_prog; ac_word=$2
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2932 $as_echo_n "checking for $ac_word... " >&6; }
2933 if ${ac_cv_prog_AWK+:} false; then :
2934 $as_echo_n "(cached) " >&6
2935 else
2936 if test -n "$AWK"; then
2937 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2938 else
2939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940 for as_dir in $PATH
2941 do
2942 IFS=$as_save_IFS
2943 test -z "$as_dir" && as_dir=.
2944 for ac_exec_ext in '' $ac_executable_extensions; do
2945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2946 ac_cv_prog_AWK="$ac_prog"
2947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2948 break 2
2949 fi
2950 done
2951 done
2952 IFS=$as_save_IFS
2953
2954 fi
2955 fi
2956 AWK=$ac_cv_prog_AWK
2957 if test -n "$AWK"; then
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2959 $as_echo "$AWK" >&6; }
2960 else
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962 $as_echo "no" >&6; }
2963 fi
2964
2965
2966 test -n "$AWK" && break
2967 done
2968
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2970 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2971 set x ${MAKE-make}
2972 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2973 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2974 $as_echo_n "(cached) " >&6
2975 else
2976 cat >conftest.make <<\_ACEOF
2977 SHELL = /bin/sh
2978 all:
2979 @echo '@@@%%%=$(MAKE)=@@@%%%'
2980 _ACEOF
2981 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2982 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2983 *@@@%%%=?*=@@@%%%*)
2984 eval ac_cv_prog_make_${ac_make}_set=yes;;
2985 *)
2986 eval ac_cv_prog_make_${ac_make}_set=no;;
2987 esac
2988 rm -f conftest.make
2989 fi
2990 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2992 $as_echo "yes" >&6; }
2993 SET_MAKE=
2994 else
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2996 $as_echo "no" >&6; }
2997 SET_MAKE="MAKE=${MAKE-make}"
2998 fi
2999
3000 rm -rf .tst 2>/dev/null
3001 mkdir .tst 2>/dev/null
3002 if test -d .tst; then
3003 am__leading_dot=.
3004 else
3005 am__leading_dot=_
3006 fi
3007 rmdir .tst 2>/dev/null
3008
3009 # Check whether --enable-silent-rules was given.
3010 if test "${enable_silent_rules+set}" = set; then :
3011 enableval=$enable_silent_rules;
3012 fi
3013
3014 case $enable_silent_rules in # (((
3015 yes) AM_DEFAULT_VERBOSITY=0;;
3016 no) AM_DEFAULT_VERBOSITY=1;;
3017 *) AM_DEFAULT_VERBOSITY=1;;
3018 esac
3019 am_make=${MAKE-make}
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3021 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3022 if ${am_cv_make_support_nested_variables+:} false; then :
3023 $as_echo_n "(cached) " >&6
3024 else
3025 if $as_echo 'TRUE=$(BAR$(V))
3026 BAR0=false
3027 BAR1=true
3028 V=1
3029 am__doit:
3030 @$(TRUE)
3031 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3032 am_cv_make_support_nested_variables=yes
3033 else
3034 am_cv_make_support_nested_variables=no
3035 fi
3036 fi
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3038 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3039 if test $am_cv_make_support_nested_variables = yes; then
3040 AM_V='$(V)'
3041 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3042 else
3043 AM_V=$AM_DEFAULT_VERBOSITY
3044 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3045 fi
3046 AM_BACKSLASH='\'
3047
3048 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3049 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3050 # is not polluted with repeated "-I."
3051 am__isrc=' -I$(srcdir)'
3052 # test to see if srcdir already configured
3053 if test -f $srcdir/config.status; then
3054 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3055 fi
3056 fi
3057
3058 # test whether we have cygpath
3059 if test -z "$CYGPATH_W"; then
3060 if (cygpath --version) >/dev/null 2>/dev/null; then
3061 CYGPATH_W='cygpath -w'
3062 else
3063 CYGPATH_W=echo
3064 fi
3065 fi
3066
3067
3068 # Define the identity of the package.
3069 PACKAGE='libpaf'
3070 VERSION='0.3.0'
3071
3072
3073 # Some tools Automake needs.
3074
3075 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3076
3077
3078 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3079
3080
3081 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3082
3083
3084 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3085
3086
3087 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3088
3089 # For better backward compatibility. To be removed once Automake 1.9.x
3090 # dies out for good. For more background, see:
3091 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3092 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3093 mkdir_p='$(MKDIR_P)'
3094
3095 # We need awk for the "check" target (and possibly the TAP driver). The
3096 # system "awk" is bad on some platforms.
3097 # Always define AMTAR for backward compatibility. Yes, it's still used
3098 # in the wild :-( We should find a proper way to deprecate it ...
3099 AMTAR='$${TAR-tar}'
3100
3101
3102 # We'll loop over all known methods to create a tar archive until one works.
3103 _am_tools='gnutar pax cpio none'
3104
3105 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3106
3107
3108
3109
3110
3111
3112 # POSIX will say in a future version that running "rm -f" with no argument
3113 # is OK; and we want to be able to make that assumption in our Makefile
3114 # recipes. So use an aggressive probe to check that the usage we want is
3115 # actually supported "in the wild" to an acceptable degree.
3116 # See automake bug#10828.
3117 # To make any issue more visible, cause the running configure to be aborted
3118 # by default if the 'rm' program in use doesn't match our expectations; the
3119 # user can still override this though.
3120 if rm -f && rm -fr && rm -rf; then : OK; else
3121 cat >&2 <<'END'
3122 Oops!
3123
3124 Your 'rm' program seems unable to run without file operands specified
3125 on the command line, even when the '-f' option is present. This is contrary
3126 to the behaviour of most rm programs out there, and not conforming with
3127 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3128
3129 Please tell [email protected] about your system, including the value
3130 of your $PATH and any error possibly output before this message. This
3131 can help us improve future automake versions.
3132
3133 END
3134 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3135 echo 'Configuration will proceed anyway, since you have set the' >&2
3136 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3137 echo >&2
3138 else
3139 cat >&2 <<'END'
3140 Aborting the configuration process, to ensure you take notice of the issue.
3141
3142 You can download and install GNU coreutils to get an 'rm' implementation
3143 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3144
3145 If you want to complete the configuration process using your problematic
3146 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3147 to "yes", and re-run configure.
3148
3149 END
3150 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3151 fi
3152 fi
3153
3154 # Make sure we can run config.sub.
3155 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3156 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3157
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3159 $as_echo_n "checking build system type... " >&6; }
3160 if ${ac_cv_build+:} false; then :
3161 $as_echo_n "(cached) " >&6
3162 else
3163 ac_build_alias=$build_alias
3164 test "x$ac_build_alias" = x &&
3165 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3166 test "x$ac_build_alias" = x &&
3167 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3168 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3169 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3170
3171 fi
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3173 $as_echo "$ac_cv_build" >&6; }
3174 case $ac_cv_build in
3175 *-*-*) ;;
3176 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3177 esac
3178 build=$ac_cv_build
3179 ac_save_IFS=$IFS; IFS='-'
3180 set x $ac_cv_build
3181 shift
3182 build_cpu=$1
3183 build_vendor=$2
3184 shift; shift
3185 # Remember, the first character of IFS is used to create $*,
3186 # except with old shells:
3187 build_os=$*
3188 IFS=$ac_save_IFS
3189 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3190
3191
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3193 $as_echo_n "checking host system type... " >&6; }
3194 if ${ac_cv_host+:} false; then :
3195 $as_echo_n "(cached) " >&6
3196 else
3197 if test "x$host_alias" = x; then
3198 ac_cv_host=$ac_cv_build
3199 else
3200 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3201 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3202 fi
3203
3204 fi
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3206 $as_echo "$ac_cv_host" >&6; }
3207 case $ac_cv_host in
3208 *-*-*) ;;
3209 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3210 esac
3211 host=$ac_cv_host
3212 ac_save_IFS=$IFS; IFS='-'
3213 set x $ac_cv_host
3214 shift
3215 host_cpu=$1
3216 host_vendor=$2
3217 shift; shift
3218 # Remember, the first character of IFS is used to create $*,
3219 # except with old shells:
3220 host_os=$*
3221 IFS=$ac_save_IFS
3222 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3223
3224
3225
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3227 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3228 # Check whether --enable-maintainer-mode was given.
3229 if test "${enable_maintainer_mode+set}" = set; then :
3230 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3231 else
3232 USE_MAINTAINER_MODE=no
3233 fi
3234
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3236 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3237 if test $USE_MAINTAINER_MODE = yes; then
3238 MAINTAINER_MODE_TRUE=
3239 MAINTAINER_MODE_FALSE='#'
3240 else
3241 MAINTAINER_MODE_TRUE='#'
3242 MAINTAINER_MODE_FALSE=
3243 fi
3244
3245 MAINT=$MAINTAINER_MODE_TRUE
3246
3247
3248
3249
3250
3251 # Update this value for every release: (A:B:C will map to foo.so.(A-C).C.B)
3252 # http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
3253 LIBPAF_SO_VERSION=0:3:0
3254
3255
3256
3257
3258
3259 # Check for supported platforms (currently only Linux on POWER)
3260 case "$host_cpu-$host_os" in
3261 powerpc64*-linux* | ppc64*-linux* | powerpc-linux* | ppc-linux* )
3262 # Supported platforms
3263 ;;
3264 *)
3265 as_fn_error $? "Unsupported architecture/os" "$LINENO" 5
3266 ;;
3267 esac
3268
3269 # Check whether --enable-debug was given.
3270 if test "${enable_debug+set}" = set; then :
3271 enableval=$enable_debug; enable_debug=$enableval
3272 else
3273 enable_debug=no
3274 fi
3275
3276 if test $enable_debug = yes; then
3277
3278 $as_echo "#define ENABLE_DEBUG 1" >>confdefs.h
3279
3280 fi
3281
3282 # Check whether --enable-dsc was given.
3283 if test "${enable_dsc+set}" = set; then :
3284 enableval=$enable_dsc; enable_dsc=$enableval
3285 else
3286 enable_dsc=yes
3287
3288 fi
3289
3290
3291 DEPDIR="${am__leading_dot}deps"
3292
3293 ac_config_commands="$ac_config_commands depfiles"
3294
3295
3296 am_make=${MAKE-make}
3297 cat > confinc << 'END'
3298 am__doit:
3299 @echo this is the am__doit target
3300 .PHONY: am__doit
3301 END
3302 # If we don't find an include directive, just comment out the code.
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3304 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3305 am__include="#"
3306 am__quote=
3307 _am_result=none
3308 # First try GNU make style include.
3309 echo "include confinc" > confmf
3310 # Ignore all kinds of additional output from 'make'.
3311 case `$am_make -s -f confmf 2> /dev/null` in #(
3312 *the\ am__doit\ target*)
3313 am__include=include
3314 am__quote=
3315 _am_result=GNU
3316 ;;
3317 esac
3318 # Now try BSD make style include.
3319 if test "$am__include" = "#"; then
3320 echo '.include "confinc"' > confmf
3321 case `$am_make -s -f confmf 2> /dev/null` in #(
3322 *the\ am__doit\ target*)
3323 am__include=.include
3324 am__quote="\""
3325 _am_result=BSD
3326 ;;
3327 esac
3328 fi
3329
3330
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3332 $as_echo "$_am_result" >&6; }
3333 rm -f confinc confmf
3334
3335 # Check whether --enable-dependency-tracking was given.
3336 if test "${enable_dependency_tracking+set}" = set; then :
3337 enableval=$enable_dependency_tracking;
3338 fi
3339
3340 if test "x$enable_dependency_tracking" != xno; then
3341 am_depcomp="$ac_aux_dir/depcomp"
3342 AMDEPBACKSLASH='\'
3343 am__nodep='_no'
3344 fi
3345 if test "x$enable_dependency_tracking" != xno; then
3346 AMDEP_TRUE=
3347 AMDEP_FALSE='#'
3348 else
3349 AMDEP_TRUE='#'
3350 AMDEP_FALSE=
3351 fi
3352
3353
3354 ac_ext=c
3355 ac_cpp='$CPP $CPPFLAGS'
3356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3359 if test -n "$ac_tool_prefix"; then
3360 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3361 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3363 $as_echo_n "checking for $ac_word... " >&6; }
3364 if ${ac_cv_prog_CC+:} false; then :
3365 $as_echo_n "(cached) " >&6
3366 else
3367 if test -n "$CC"; then
3368 ac_cv_prog_CC="$CC" # Let the user override the test.
3369 else
3370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371 for as_dir in $PATH
3372 do
3373 IFS=$as_save_IFS
3374 test -z "$as_dir" && as_dir=.
3375 for ac_exec_ext in '' $ac_executable_extensions; do
3376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3377 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3379 break 2
3380 fi
3381 done
3382 done
3383 IFS=$as_save_IFS
3384
3385 fi
3386 fi
3387 CC=$ac_cv_prog_CC
3388 if test -n "$CC"; then
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3390 $as_echo "$CC" >&6; }
3391 else
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3393 $as_echo "no" >&6; }
3394 fi
3395
3396
3397 fi
3398 if test -z "$ac_cv_prog_CC"; then
3399 ac_ct_CC=$CC
3400 # Extract the first word of "gcc", so it can be a program name with args.
3401 set dummy gcc; ac_word=$2
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3403 $as_echo_n "checking for $ac_word... " >&6; }
3404 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3405 $as_echo_n "(cached) " >&6
3406 else
3407 if test -n "$ac_ct_CC"; then
3408 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3409 else
3410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3411 for as_dir in $PATH
3412 do
3413 IFS=$as_save_IFS
3414 test -z "$as_dir" && as_dir=.
3415 for ac_exec_ext in '' $ac_executable_extensions; do
3416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3417 ac_cv_prog_ac_ct_CC="gcc"
3418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3419 break 2
3420 fi
3421 done
3422 done
3423 IFS=$as_save_IFS
3424
3425 fi
3426 fi
3427 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3428 if test -n "$ac_ct_CC"; then
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3430 $as_echo "$ac_ct_CC" >&6; }
3431 else
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3433 $as_echo "no" >&6; }
3434 fi
3435
3436 if test "x$ac_ct_CC" = x; then
3437 CC=""
3438 else
3439 case $cross_compiling:$ac_tool_warned in
3440 yes:)
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3442 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3443 ac_tool_warned=yes ;;
3444 esac
3445 CC=$ac_ct_CC
3446 fi
3447 else
3448 CC="$ac_cv_prog_CC"
3449 fi
3450
3451 if test -z "$CC"; then
3452 if test -n "$ac_tool_prefix"; then
3453 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3454 set dummy ${ac_tool_prefix}cc; ac_word=$2
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3456 $as_echo_n "checking for $ac_word... " >&6; }
3457 if ${ac_cv_prog_CC+:} false; then :
3458 $as_echo_n "(cached) " >&6
3459 else
3460 if test -n "$CC"; then
3461 ac_cv_prog_CC="$CC" # Let the user override the test.
3462 else
3463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3464 for as_dir in $PATH
3465 do
3466 IFS=$as_save_IFS
3467 test -z "$as_dir" && as_dir=.
3468 for ac_exec_ext in '' $ac_executable_extensions; do
3469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3470 ac_cv_prog_CC="${ac_tool_prefix}cc"
3471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3472 break 2
3473 fi
3474 done
3475 done
3476 IFS=$as_save_IFS
3477
3478 fi
3479 fi
3480 CC=$ac_cv_prog_CC
3481 if test -n "$CC"; then
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3483 $as_echo "$CC" >&6; }
3484 else
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3486 $as_echo "no" >&6; }
3487 fi
3488
3489
3490 fi
3491 fi
3492 if test -z "$CC"; then
3493 # Extract the first word of "cc", so it can be a program name with args.
3494 set dummy cc; ac_word=$2
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3496 $as_echo_n "checking for $ac_word... " >&6; }
3497 if ${ac_cv_prog_CC+:} false; then :
3498 $as_echo_n "(cached) " >&6
3499 else
3500 if test -n "$CC"; then
3501 ac_cv_prog_CC="$CC" # Let the user override the test.
3502 else
3503 ac_prog_rejected=no
3504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505 for as_dir in $PATH
3506 do
3507 IFS=$as_save_IFS
3508 test -z "$as_dir" && as_dir=.
3509 for ac_exec_ext in '' $ac_executable_extensions; do
3510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3511 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3512 ac_prog_rejected=yes
3513 continue
3514 fi
3515 ac_cv_prog_CC="cc"
3516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3517 break 2
3518 fi
3519 done
3520 done
3521 IFS=$as_save_IFS
3522
3523 if test $ac_prog_rejected = yes; then
3524 # We found a bogon in the path, so make sure we never use it.
3525 set dummy $ac_cv_prog_CC
3526 shift
3527 if test $# != 0; then
3528 # We chose a different compiler from the bogus one.
3529 # However, it has the same basename, so the bogon will be chosen
3530 # first if we set CC to just the basename; use the full file name.
3531 shift
3532 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3533 fi
3534 fi
3535 fi
3536 fi
3537 CC=$ac_cv_prog_CC
3538 if test -n "$CC"; then
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3540 $as_echo "$CC" >&6; }
3541 else
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3543 $as_echo "no" >&6; }
3544 fi
3545
3546
3547 fi
3548 if test -z "$CC"; then
3549 if test -n "$ac_tool_prefix"; then
3550 for ac_prog in cl.exe
3551 do
3552 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3553 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3555 $as_echo_n "checking for $ac_word... " >&6; }
3556 if ${ac_cv_prog_CC+:} false; then :
3557 $as_echo_n "(cached) " >&6
3558 else
3559 if test -n "$CC"; then
3560 ac_cv_prog_CC="$CC" # Let the user override the test.
3561 else
3562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3563 for as_dir in $PATH
3564 do
3565 IFS=$as_save_IFS
3566 test -z "$as_dir" && as_dir=.
3567 for ac_exec_ext in '' $ac_executable_extensions; do
3568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3569 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3571 break 2
3572 fi
3573 done
3574 done
3575 IFS=$as_save_IFS
3576
3577 fi
3578 fi
3579 CC=$ac_cv_prog_CC
3580 if test -n "$CC"; then
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3582 $as_echo "$CC" >&6; }
3583 else
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3585 $as_echo "no" >&6; }
3586 fi
3587
3588
3589 test -n "$CC" && break
3590 done
3591 fi
3592 if test -z "$CC"; then
3593 ac_ct_CC=$CC
3594 for ac_prog in cl.exe
3595 do
3596 # Extract the first word of "$ac_prog", so it can be a program name with args.
3597 set dummy $ac_prog; ac_word=$2
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3599 $as_echo_n "checking for $ac_word... " >&6; }
3600 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3601 $as_echo_n "(cached) " >&6
3602 else
3603 if test -n "$ac_ct_CC"; then
3604 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3605 else
3606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3607 for as_dir in $PATH
3608 do
3609 IFS=$as_save_IFS
3610 test -z "$as_dir" && as_dir=.
3611 for ac_exec_ext in '' $ac_executable_extensions; do
3612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3613 ac_cv_prog_ac_ct_CC="$ac_prog"
3614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3615 break 2
3616 fi
3617 done
3618 done
3619 IFS=$as_save_IFS
3620
3621 fi
3622 fi
3623 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3624 if test -n "$ac_ct_CC"; then
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3626 $as_echo "$ac_ct_CC" >&6; }
3627 else
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3629 $as_echo "no" >&6; }
3630 fi
3631
3632
3633 test -n "$ac_ct_CC" && break
3634 done
3635
3636 if test "x$ac_ct_CC" = x; then
3637 CC=""
3638 else
3639 case $cross_compiling:$ac_tool_warned in
3640 yes:)
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3642 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3643 ac_tool_warned=yes ;;
3644 esac
3645 CC=$ac_ct_CC
3646 fi
3647 fi
3648
3649 fi
3650
3651
3652 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3653 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3654 as_fn_error $? "no acceptable C compiler found in \$PATH
3655 See \`config.log' for more details" "$LINENO" 5; }
3656
3657 # Provide some information about the compiler.
3658 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3659 set X $ac_compile
3660 ac_compiler=$2
3661 for ac_option in --version -v -V -qversion; do
3662 { { ac_try="$ac_compiler $ac_option >&5"
3663 case "(($ac_try" in
3664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665 *) ac_try_echo=$ac_try;;
3666 esac
3667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3668 $as_echo "$ac_try_echo"; } >&5
3669 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3670 ac_status=$?
3671 if test -s conftest.err; then
3672 sed '10a\
3673 ... rest of stderr output deleted ...
3674 10q' conftest.err >conftest.er1
3675 cat conftest.er1 >&5
3676 fi
3677 rm -f conftest.er1 conftest.err
3678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3679 test $ac_status = 0; }
3680 done
3681
3682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683 /* end confdefs.h. */
3684
3685 int
3686 main ()
3687 {
3688
3689 ;
3690 return 0;
3691 }
3692 _ACEOF
3693 ac_clean_files_save=$ac_clean_files
3694 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3695 # Try to create an executable without -o first, disregard a.out.
3696 # It will help us diagnose broken compilers, and finding out an intuition
3697 # of exeext.
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3699 $as_echo_n "checking whether the C compiler works... " >&6; }
3700 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3701
3702 # The possible output files:
3703 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3704
3705 ac_rmfiles=
3706 for ac_file in $ac_files
3707 do
3708 case $ac_file in
3709 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3710 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3711 esac
3712 done
3713 rm -f $ac_rmfiles
3714
3715 if { { ac_try="$ac_link_default"
3716 case "(($ac_try" in
3717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3718 *) ac_try_echo=$ac_try;;
3719 esac
3720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3721 $as_echo "$ac_try_echo"; } >&5
3722 (eval "$ac_link_default") 2>&5
3723 ac_status=$?
3724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3725 test $ac_status = 0; }; then :
3726 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3727 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3728 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3729 # so that the user can short-circuit this test for compilers unknown to
3730 # Autoconf.
3731 for ac_file in $ac_files ''
3732 do
3733 test -f "$ac_file" || continue
3734 case $ac_file in
3735 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3736 ;;
3737 [ab].out )
3738 # We found the default executable, but exeext='' is most
3739 # certainly right.
3740 break;;
3741 *.* )
3742 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3743 then :; else
3744 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3745 fi
3746 # We set ac_cv_exeext here because the later test for it is not
3747 # safe: cross compilers may not add the suffix if given an `-o'
3748 # argument, so we may need to know it at that point already.
3749 # Even if this section looks crufty: it has the advantage of
3750 # actually working.
3751 break;;
3752 * )
3753 break;;
3754 esac
3755 done
3756 test "$ac_cv_exeext" = no && ac_cv_exeext=
3757
3758 else
3759 ac_file=''
3760 fi
3761 if test -z "$ac_file"; then :
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3763 $as_echo "no" >&6; }
3764 $as_echo "$as_me: failed program was:" >&5
3765 sed 's/^/| /' conftest.$ac_ext >&5
3766
3767 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3768 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3769 as_fn_error 77 "C compiler cannot create executables
3770 See \`config.log' for more details" "$LINENO" 5; }
3771 else
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3773 $as_echo "yes" >&6; }
3774 fi
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3776 $as_echo_n "checking for C compiler default output file name... " >&6; }
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3778 $as_echo "$ac_file" >&6; }
3779 ac_exeext=$ac_cv_exeext
3780
3781 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3782 ac_clean_files=$ac_clean_files_save
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3784 $as_echo_n "checking for suffix of executables... " >&6; }
3785 if { { ac_try="$ac_link"
3786 case "(($ac_try" in
3787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3788 *) ac_try_echo=$ac_try;;
3789 esac
3790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3791 $as_echo "$ac_try_echo"; } >&5
3792 (eval "$ac_link") 2>&5
3793 ac_status=$?
3794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3795 test $ac_status = 0; }; then :
3796 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3797 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3798 # work properly (i.e., refer to `conftest.exe'), while it won't with
3799 # `rm'.
3800 for ac_file in conftest.exe conftest conftest.*; do
3801 test -f "$ac_file" || continue
3802 case $ac_file in
3803 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3804 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3805 break;;
3806 * ) break;;
3807 esac
3808 done
3809 else
3810 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3812 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3813 See \`config.log' for more details" "$LINENO" 5; }
3814 fi
3815 rm -f conftest conftest$ac_cv_exeext
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3817 $as_echo "$ac_cv_exeext" >&6; }
3818
3819 rm -f conftest.$ac_ext
3820 EXEEXT=$ac_cv_exeext
3821 ac_exeext=$EXEEXT
3822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3823 /* end confdefs.h. */
3824 #include <stdio.h>
3825 int
3826 main ()
3827 {
3828 FILE *f = fopen ("conftest.out", "w");
3829 return ferror (f) || fclose (f) != 0;
3830
3831 ;
3832 return 0;
3833 }
3834 _ACEOF
3835 ac_clean_files="$ac_clean_files conftest.out"
3836 # Check that the compiler produces executables we can run. If not, either
3837 # the compiler is broken, or we cross compile.
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3839 $as_echo_n "checking whether we are cross compiling... " >&6; }
3840 if test "$cross_compiling" != yes; then
3841 { { ac_try="$ac_link"
3842 case "(($ac_try" in
3843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3844 *) ac_try_echo=$ac_try;;
3845 esac
3846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3847 $as_echo "$ac_try_echo"; } >&5
3848 (eval "$ac_link") 2>&5
3849 ac_status=$?
3850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3851 test $ac_status = 0; }
3852 if { ac_try='./conftest$ac_cv_exeext'
3853 { { case "(($ac_try" in
3854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3855 *) ac_try_echo=$ac_try;;
3856 esac
3857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3858 $as_echo "$ac_try_echo"; } >&5
3859 (eval "$ac_try") 2>&5
3860 ac_status=$?
3861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3862 test $ac_status = 0; }; }; then
3863 cross_compiling=no
3864 else
3865 if test "$cross_compiling" = maybe; then
3866 cross_compiling=yes
3867 else
3868 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3869 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3870 as_fn_error $? "cannot run C compiled programs.
3871 If you meant to cross compile, use \`--host'.
3872 See \`config.log' for more details" "$LINENO" 5; }
3873 fi
3874 fi
3875 fi
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3877 $as_echo "$cross_compiling" >&6; }
3878
3879 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3880 ac_clean_files=$ac_clean_files_save
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3882 $as_echo_n "checking for suffix of object files... " >&6; }
3883 if ${ac_cv_objext+:} false; then :
3884 $as_echo_n "(cached) " >&6
3885 else
3886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887 /* end confdefs.h. */
3888
3889 int
3890 main ()
3891 {
3892
3893 ;
3894 return 0;
3895 }
3896 _ACEOF
3897 rm -f conftest.o conftest.obj
3898 if { { ac_try="$ac_compile"
3899 case "(($ac_try" in
3900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3901 *) ac_try_echo=$ac_try;;
3902 esac
3903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3904 $as_echo "$ac_try_echo"; } >&5
3905 (eval "$ac_compile") 2>&5
3906 ac_status=$?
3907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3908 test $ac_status = 0; }; then :
3909 for ac_file in conftest.o conftest.obj conftest.*; do
3910 test -f "$ac_file" || continue;
3911 case $ac_file in
3912 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3913 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3914 break;;
3915 esac
3916 done
3917 else
3918 $as_echo "$as_me: failed program was:" >&5
3919 sed 's/^/| /' conftest.$ac_ext >&5
3920
3921 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3922 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3923 as_fn_error $? "cannot compute suffix of object files: cannot compile
3924 See \`config.log' for more details" "$LINENO" 5; }
3925 fi
3926 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3927 fi
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3929 $as_echo "$ac_cv_objext" >&6; }
3930 OBJEXT=$ac_cv_objext
3931 ac_objext=$OBJEXT
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3933 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3934 if ${ac_cv_c_compiler_gnu+:} false; then :
3935 $as_echo_n "(cached) " >&6
3936 else
3937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3938 /* end confdefs.h. */
3939
3940 int
3941 main ()
3942 {
3943 #ifndef __GNUC__
3944 choke me
3945 #endif
3946
3947 ;
3948 return 0;
3949 }
3950 _ACEOF
3951 if ac_fn_c_try_compile "$LINENO"; then :
3952 ac_compiler_gnu=yes
3953 else
3954 ac_compiler_gnu=no
3955 fi
3956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3957 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3958
3959 fi
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3961 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3962 if test $ac_compiler_gnu = yes; then
3963 GCC=yes
3964 else
3965 GCC=
3966 fi
3967 ac_test_CFLAGS=${CFLAGS+set}
3968 ac_save_CFLAGS=$CFLAGS
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3970 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3971 if ${ac_cv_prog_cc_g+:} false; then :
3972 $as_echo_n "(cached) " >&6
3973 else
3974 ac_save_c_werror_flag=$ac_c_werror_flag
3975 ac_c_werror_flag=yes
3976 ac_cv_prog_cc_g=no
3977 CFLAGS="-g"
3978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3979 /* end confdefs.h. */
3980
3981 int
3982 main ()
3983 {
3984
3985 ;
3986 return 0;
3987 }
3988 _ACEOF
3989 if ac_fn_c_try_compile "$LINENO"; then :
3990 ac_cv_prog_cc_g=yes
3991 else
3992 CFLAGS=""
3993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994 /* end confdefs.h. */
3995
3996 int
3997 main ()
3998 {
3999
4000 ;
4001 return 0;
4002 }
4003 _ACEOF
4004 if ac_fn_c_try_compile "$LINENO"; then :
4005
4006 else
4007 ac_c_werror_flag=$ac_save_c_werror_flag
4008 CFLAGS="-g"
4009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4010 /* end confdefs.h. */
4011
4012 int
4013 main ()
4014 {
4015
4016 ;
4017 return 0;
4018 }
4019 _ACEOF
4020 if ac_fn_c_try_compile "$LINENO"; then :
4021 ac_cv_prog_cc_g=yes
4022 fi
4023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4024 fi
4025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4026 fi
4027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4028 ac_c_werror_flag=$ac_save_c_werror_flag
4029 fi
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4031 $as_echo "$ac_cv_prog_cc_g" >&6; }
4032 if test "$ac_test_CFLAGS" = set; then
4033 CFLAGS=$ac_save_CFLAGS
4034 elif test $ac_cv_prog_cc_g = yes; then
4035 if test "$GCC" = yes; then
4036 CFLAGS="-g -O2"
4037 else
4038 CFLAGS="-g"
4039 fi
4040 else
4041 if test "$GCC" = yes; then
4042 CFLAGS="-O2"
4043 else
4044 CFLAGS=
4045 fi
4046 fi
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4048 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4049 if ${ac_cv_prog_cc_c89+:} false; then :
4050 $as_echo_n "(cached) " >&6
4051 else
4052 ac_cv_prog_cc_c89=no
4053 ac_save_CC=$CC
4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055 /* end confdefs.h. */
4056 #include <stdarg.h>
4057 #include <stdio.h>
4058 struct stat;
4059 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4060 struct buf { int x; };
4061 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4062 static char *e (p, i)
4063 char **p;
4064 int i;
4065 {
4066 return p[i];
4067 }
4068 static char *f (char * (*g) (char **, int), char **p, ...)
4069 {
4070 char *s;
4071 va_list v;
4072 va_start (v,p);
4073 s = g (p, va_arg (v,int));
4074 va_end (v);
4075 return s;
4076 }
4077
4078 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4079 function prototypes and stuff, but not '\xHH' hex character constants.
4080 These don't provoke an error unfortunately, instead are silently treated
4081 as 'x'. The following induces an error, until -std is added to get
4082 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4083 array size at least. It's necessary to write '\x00'==0 to get something
4084 that's true only with -std. */
4085 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4086
4087 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4088 inside strings and character constants. */
4089 #define FOO(x) 'x'
4090 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4091
4092 int test (int i, double x);
4093 struct s1 {int (*f) (int a);};
4094 struct s2 {int (*f) (double a);};
4095 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4096 int argc;
4097 char **argv;
4098 int
4099 main ()
4100 {
4101 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4102 ;
4103 return 0;
4104 }
4105 _ACEOF
4106 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4107 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4108 do
4109 CC="$ac_save_CC $ac_arg"
4110 if ac_fn_c_try_compile "$LINENO"; then :
4111 ac_cv_prog_cc_c89=$ac_arg
4112 fi
4113 rm -f core conftest.err conftest.$ac_objext
4114 test "x$ac_cv_prog_cc_c89" != "xno" && break
4115 done
4116 rm -f conftest.$ac_ext
4117 CC=$ac_save_CC
4118
4119 fi
4120 # AC_CACHE_VAL
4121 case "x$ac_cv_prog_cc_c89" in
4122 x)
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4124 $as_echo "none needed" >&6; } ;;
4125 xno)
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4127 $as_echo "unsupported" >&6; } ;;
4128 *)
4129 CC="$CC $ac_cv_prog_cc_c89"
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4131 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4132 esac
4133 if test "x$ac_cv_prog_cc_c89" != xno; then :
4134
4135 fi
4136
4137 ac_ext=c
4138 ac_cpp='$CPP $CPPFLAGS'
4139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4142
4143 ac_ext=c
4144 ac_cpp='$CPP $CPPFLAGS'
4145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4149 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4150 if ${am_cv_prog_cc_c_o+:} false; then :
4151 $as_echo_n "(cached) " >&6
4152 else
4153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154 /* end confdefs.h. */
4155
4156 int
4157 main ()
4158 {
4159
4160 ;
4161 return 0;
4162 }
4163 _ACEOF
4164 # Make sure it works both with $CC and with simple cc.
4165 # Following AC_PROG_CC_C_O, we do the test twice because some
4166 # compilers refuse to overwrite an existing .o file with -o,
4167 # though they will create one.
4168 am_cv_prog_cc_c_o=yes
4169 for am_i in 1 2; do
4170 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4171 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4172 ac_status=$?
4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); } \
4175 && test -f conftest2.$ac_objext; then
4176 : OK
4177 else
4178 am_cv_prog_cc_c_o=no
4179 break
4180 fi
4181 done
4182 rm -f core conftest*
4183 unset am_i
4184 fi
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4186 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4187 if test "$am_cv_prog_cc_c_o" != yes; then
4188 # Losing compiler, so override with the script.
4189 # FIXME: It is wrong to rewrite CC.
4190 # But if we don't then we get into trouble of one sort or another.
4191 # A longer-term fix would be to have automake use am__CC in this case,
4192 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4193 CC="$am_aux_dir/compile $CC"
4194 fi
4195 ac_ext=c
4196 ac_cpp='$CPP $CPPFLAGS'
4197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4200
4201
4202 depcc="$CC" am_compiler_list=
4203
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4205 $as_echo_n "checking dependency style of $depcc... " >&6; }
4206 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4207 $as_echo_n "(cached) " >&6
4208 else
4209 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4210 # We make a subdir and do the tests there. Otherwise we can end up
4211 # making bogus files that we don't know about and never remove. For
4212 # instance it was reported that on HP-UX the gcc test will end up
4213 # making a dummy file named 'D' -- because '-MD' means "put the output
4214 # in D".
4215 rm -rf conftest.dir
4216 mkdir conftest.dir
4217 # Copy depcomp to subdir because otherwise we won't find it if we're
4218 # using a relative directory.
4219 cp "$am_depcomp" conftest.dir
4220 cd conftest.dir
4221 # We will build objects and dependencies in a subdirectory because
4222 # it helps to detect inapplicable dependency modes. For instance
4223 # both Tru64's cc and ICC support -MD to output dependencies as a
4224 # side effect of compilation, but ICC will put the dependencies in
4225 # the current directory while Tru64 will put them in the object
4226 # directory.
4227 mkdir sub
4228
4229 am_cv_CC_dependencies_compiler_type=none
4230 if test "$am_compiler_list" = ""; then
4231 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4232 fi
4233 am__universal=false
4234 case " $depcc " in #(
4235 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4236 esac
4237
4238 for depmode in $am_compiler_list; do
4239 # Setup a source with many dependencies, because some compilers
4240 # like to wrap large dependency lists on column 80 (with \), and
4241 # we should not choose a depcomp mode which is confused by this.
4242 #
4243 # We need to recreate these files for each test, as the compiler may
4244 # overwrite some of them when testing with obscure command lines.
4245 # This happens at least with the AIX C compiler.
4246 : > sub/conftest.c
4247 for i in 1 2 3 4 5 6; do
4248 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4249 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4250 # Solaris 10 /bin/sh.
4251 echo '/* dummy */' > sub/conftst$i.h
4252 done
4253 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4254
4255 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4256 # mode. It turns out that the SunPro C++ compiler does not properly
4257 # handle '-M -o', and we need to detect this. Also, some Intel
4258 # versions had trouble with output in subdirs.
4259 am__obj=sub/conftest.${OBJEXT-o}
4260 am__minus_obj="-o $am__obj"
4261 case $depmode in
4262 gcc)
4263 # This depmode causes a compiler race in universal mode.
4264 test "$am__universal" = false || continue
4265 ;;
4266 nosideeffect)
4267 # After this tag, mechanisms are not by side-effect, so they'll
4268 # only be used when explicitly requested.
4269 if test "x$enable_dependency_tracking" = xyes; then
4270 continue
4271 else
4272 break
4273 fi
4274 ;;
4275 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4276 # This compiler won't grok '-c -o', but also, the minuso test has
4277 # not run yet. These depmodes are late enough in the game, and
4278 # so weak that their functioning should not be impacted.
4279 am__obj=conftest.${OBJEXT-o}
4280 am__minus_obj=
4281 ;;
4282 none) break ;;
4283 esac
4284 if depmode=$depmode \
4285 source=sub/conftest.c object=$am__obj \
4286 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4287 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4288 >/dev/null 2>conftest.err &&
4289 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4290 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4291 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4292 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4293 # icc doesn't choke on unknown options, it will just issue warnings
4294 # or remarks (even with -Werror). So we grep stderr for any message
4295 # that says an option was ignored or not supported.
4296 # When given -MP, icc 7.0 and 7.1 complain thusly:
4297 # icc: Command line warning: ignoring option '-M'; no argument required
4298 # The diagnosis changed in icc 8.0:
4299 # icc: Command line remark: option '-MP' not supported
4300 if (grep 'ignoring option' conftest.err ||
4301 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4302 am_cv_CC_dependencies_compiler_type=$depmode
4303 break
4304 fi
4305 fi
4306 done
4307
4308 cd ..
4309 rm -rf conftest.dir
4310 else
4311 am_cv_CC_dependencies_compiler_type=none
4312 fi
4313
4314 fi
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4316 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4317 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4318
4319 if
4320 test "x$enable_dependency_tracking" != xno \
4321 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4322 am__fastdepCC_TRUE=
4323 am__fastdepCC_FALSE='#'
4324 else
4325 am__fastdepCC_TRUE='#'
4326 am__fastdepCC_FALSE=
4327 fi
4328
4329
4330
4331 # Check whether --enable-ebb was given.
4332 if test "${enable_ebb+set}" = set; then :
4333 enableval=$enable_ebb; enable_ebb=$enableval
4334 else
4335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4336 /* end confdefs.h. */
4337
4338 #ifdef _ARCH_PWR8
4339 # define SUCCESS 1
4340 #else
4341 # error "Support for EBB facility isn't available"
4342 #endif
4343
4344 _ACEOF
4345 if ac_fn_c_try_compile "$LINENO"; then :
4346 enable_ebb=yes
4347 else
4348 enable_ebb=no
4349 fi
4350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4351
4352 fi
4353
4354 # Check whether --enable-tb was given.
4355 if test "${enable_tb+set}" = set; then :
4356 enableval=$enable_tb; enable_tb=$enableval
4357 else
4358 enable_tb=yes
4359
4360 fi
4361
4362
4363 # Check whether --enable-ppr was given.
4364 if test "${enable_ppr+set}" = set; then :
4365 enableval=$enable_ppr; enable_ppr=$enableval
4366 else
4367 enable_ppr=yes
4368
4369 fi
4370
4371
4372 if test $enable_ebb != yes; then
4373 if test $enable_dsc != yes; then
4374 as_fn_error $? "All the libraries are disabled. At least one library have to be enabled." "$LINENO" 5
4375 fi
4376 fi
4377
4378 if test "$enable_dsc" = yes; then
4379 DSC_TRUE=
4380 DSC_FALSE='#'
4381 else
4382 DSC_TRUE='#'
4383 DSC_FALSE=
4384 fi
4385
4386 if test "$enable_ebb" = yes; then
4387 EBB_TRUE=
4388 EBB_FALSE='#'
4389 else
4390 EBB_TRUE='#'
4391 EBB_FALSE=
4392 fi
4393
4394 if test "$enable_tb" = yes; then
4395 TB_TRUE=
4396 TB_FALSE='#'
4397 else
4398 TB_TRUE='#'
4399 TB_FALSE=
4400 fi
4401
4402 if test "$enable_ppr" = yes; then
4403 PPR_TRUE=
4404 PPR_FALSE='#'
4405 else
4406 PPR_TRUE='#'
4407 PPR_FALSE=
4408 fi
4409
4410
4411 # Checkings for libpaf-ebb
4412 # Check whether --enable-save-area was given.
4413 if test "${enable_save_area+set}" = set; then :
4414 enableval=$enable_save_area; save_area=$enableval
4415 else
4416 save_area=runtime
4417 fi
4418
4419 if test $save_area = tcb; then
4420
4421 $as_echo "#define USE_EBB_TCB 1" >>confdefs.h
4422
4423 elif test $save_area = tls; then
4424
4425 $as_echo "#define USE_EBB_TLS 1" >>confdefs.h
4426
4427 fi
4428
4429 # Extract the first word of "gawk", so it can be a program name with args.
4430 set dummy gawk; ac_word=$2
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4432 $as_echo_n "checking for $ac_word... " >&6; }
4433 if ${ac_cv_prog_AWK+:} false; then :
4434 $as_echo_n "(cached) " >&6
4435 else
4436 if test -n "$AWK"; then
4437 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4438 else
4439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440 for as_dir in $PATH
4441 do
4442 IFS=$as_save_IFS
4443 test -z "$as_dir" && as_dir=.
4444 for ac_exec_ext in '' $ac_executable_extensions; do
4445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4446 ac_cv_prog_AWK=""
4447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4448 break 2
4449 fi
4450 done
4451 done
4452 IFS=$as_save_IFS
4453
4454 fi
4455 fi
4456 AWK=$ac_cv_prog_AWK
4457 if test -n "$AWK"; then
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4459 $as_echo "$AWK" >&6; }
4460 else
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4462 $as_echo "no" >&6; }
4463 fi
4464
4465
4466
4467 # Check if build is for 32 or 64 bits, Used in Makefile.am to select the
4468 # callback implementation
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GCC sets __powerpc64__" >&5
4470 $as_echo_n "checking if GCC sets __powerpc64__... " >&6; }
4471 if ${paflib_cv_powerpc64+:} false; then :
4472 $as_echo_n "(cached) " >&6
4473 else
4474 cat > conftest.c <<EOF
4475 int foo () {}
4476 EOF
4477 if ${CC-cc} $CFLAGS $CPPFLAGS -E -dD conftest.c -o - 2>&1 | \
4478 grep __powerpc64__ > /dev/null; then
4479 paflib_cv_powerpc64=yes
4480 else
4481 paflib_cv_powerpc64=no
4482 fi
4483 rm -f conftest*
4484 fi
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paflib_cv_powerpc64" >&5
4486 $as_echo "$paflib_cv_powerpc64" >&6; }
4487 if test $paflib_cv_powerpc64 = yes; then
4488 if true; then
4489 POWERPC64_TRUE=
4490 POWERPC64_FALSE='#'
4491 else
4492 POWERPC64_TRUE='#'
4493 POWERPC64_FALSE=
4494 fi
4495
4496 else
4497 if false; then
4498 POWERPC64_TRUE=
4499 POWERPC64_FALSE='#'
4500 else
4501 POWERPC64_TRUE='#'
4502 POWERPC64_FALSE=
4503 fi
4504
4505 fi
4506
4507 # Check which is the loader
4508 paflib_cv_loader=`
4509 cat > conftest.c <<EOF
4510 int main () {}
4511 EOF
4512 ${CC-cc} $CFLAGS $CPPFLAGS -o conftest conftest.c && ldd conftest | $AWK '
4513 BEGIN {
4514 loader=$0 ~ "ld.*so"
4515 }
4516 {
4517 gsub (/[[:space:]]*/, "", $loader)
4518 split ($loader, fields, "[=(]")
4519 }
4520 END {
4521 print fields[1]
4522 }'
4523 rm -f conftest*`
4524
4525 cat >>confdefs.h <<_ACEOF
4526 #define PAFLIB_RUNTIME_LOADER "$paflib_cv_loader"
4527 _ACEOF
4528
4529
4530 # Checkings for libpaf-dsc
4531 ac_ext=c
4532 ac_cpp='$CPP $CPPFLAGS'
4533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4536
4537
4538 ac_ext=c
4539 ac_cpp='$CPP $CPPFLAGS'
4540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4544 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4545 # On Suns, sometimes $CPP names a directory.
4546 if test -n "$CPP" && test -d "$CPP"; then
4547 CPP=
4548 fi
4549 if test -z "$CPP"; then
4550 if ${ac_cv_prog_CPP+:} false; then :
4551 $as_echo_n "(cached) " >&6
4552 else
4553 # Double quotes because CPP needs to be expanded
4554 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4555 do
4556 ac_preproc_ok=false
4557 for ac_c_preproc_warn_flag in '' yes
4558 do
4559 # Use a header file that comes with gcc, so configuring glibc
4560 # with a fresh cross-compiler works.
4561 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4562 # <limits.h> exists even on freestanding compilers.
4563 # On the NeXT, cc -E runs the code through the compiler's parser,
4564 # not just through cpp. "Syntax error" is here to catch this case.
4565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4566 /* end confdefs.h. */
4567 #ifdef __STDC__
4568 # include <limits.h>
4569 #else
4570 # include <assert.h>
4571 #endif
4572 Syntax error
4573 _ACEOF
4574 if ac_fn_c_try_cpp "$LINENO"; then :
4575
4576 else
4577 # Broken: fails on valid input.
4578 continue
4579 fi
4580 rm -f conftest.err conftest.i conftest.$ac_ext
4581
4582 # OK, works on sane cases. Now check whether nonexistent headers
4583 # can be detected and how.
4584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4585 /* end confdefs.h. */
4586 #include <ac_nonexistent.h>
4587 _ACEOF
4588 if ac_fn_c_try_cpp "$LINENO"; then :
4589 # Broken: success on invalid input.
4590 continue
4591 else
4592 # Passes both tests.
4593 ac_preproc_ok=:
4594 break
4595 fi
4596 rm -f conftest.err conftest.i conftest.$ac_ext
4597
4598 done
4599 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4600 rm -f conftest.i conftest.err conftest.$ac_ext
4601 if $ac_preproc_ok; then :
4602 break
4603 fi
4604
4605 done
4606 ac_cv_prog_CPP=$CPP
4607
4608 fi
4609 CPP=$ac_cv_prog_CPP
4610 else
4611 ac_cv_prog_CPP=$CPP
4612 fi
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4614 $as_echo "$CPP" >&6; }
4615 ac_preproc_ok=false
4616 for ac_c_preproc_warn_flag in '' yes
4617 do
4618 # Use a header file that comes with gcc, so configuring glibc
4619 # with a fresh cross-compiler works.
4620 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4621 # <limits.h> exists even on freestanding compilers.
4622 # On the NeXT, cc -E runs the code through the compiler's parser,
4623 # not just through cpp. "Syntax error" is here to catch this case.
4624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4625 /* end confdefs.h. */
4626 #ifdef __STDC__
4627 # include <limits.h>
4628 #else
4629 # include <assert.h>
4630 #endif
4631 Syntax error
4632 _ACEOF
4633 if ac_fn_c_try_cpp "$LINENO"; then :
4634
4635 else
4636 # Broken: fails on valid input.
4637 continue
4638 fi
4639 rm -f conftest.err conftest.i conftest.$ac_ext
4640
4641 # OK, works on sane cases. Now check whether nonexistent headers
4642 # can be detected and how.
4643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4644 /* end confdefs.h. */
4645 #include <ac_nonexistent.h>
4646 _ACEOF
4647 if ac_fn_c_try_cpp "$LINENO"; then :
4648 # Broken: success on invalid input.
4649 continue
4650 else
4651 # Passes both tests.
4652 ac_preproc_ok=:
4653 break
4654 fi
4655 rm -f conftest.err conftest.i conftest.$ac_ext
4656
4657 done
4658 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4659 rm -f conftest.i conftest.err conftest.$ac_ext
4660 if $ac_preproc_ok; then :
4661
4662 else
4663 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4665 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4666 See \`config.log' for more details" "$LINENO" 5; }
4667 fi
4668
4669 ac_ext=c
4670 ac_cpp='$CPP $CPPFLAGS'
4671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4674
4675
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4677 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4678 if ${ac_cv_path_GREP+:} false; then :
4679 $as_echo_n "(cached) " >&6
4680 else
4681 if test -z "$GREP"; then
4682 ac_path_GREP_found=false
4683 # Loop through the user's path and test for each of PROGNAME-LIST
4684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4685 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4686 do
4687 IFS=$as_save_IFS
4688 test -z "$as_dir" && as_dir=.
4689 for ac_prog in grep ggrep; do
4690 for ac_exec_ext in '' $ac_executable_extensions; do
4691 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4692 as_fn_executable_p "$ac_path_GREP" || continue
4693 # Check for GNU ac_path_GREP and select it if it is found.
4694 # Check for GNU $ac_path_GREP
4695 case `"$ac_path_GREP" --version 2>&1` in
4696 *GNU*)
4697 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4698 *)
4699 ac_count=0
4700 $as_echo_n 0123456789 >"conftest.in"
4701 while :
4702 do
4703 cat "conftest.in" "conftest.in" >"conftest.tmp"
4704 mv "conftest.tmp" "conftest.in"
4705 cp "conftest.in" "conftest.nl"
4706 $as_echo 'GREP' >> "conftest.nl"
4707 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4708 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4709 as_fn_arith $ac_count + 1 && ac_count=$as_val
4710 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4711 # Best one so far, save it but keep looking for a better one
4712 ac_cv_path_GREP="$ac_path_GREP"
4713 ac_path_GREP_max=$ac_count
4714 fi
4715 # 10*(2^10) chars as input seems more than enough
4716 test $ac_count -gt 10 && break
4717 done
4718 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4719 esac
4720
4721 $ac_path_GREP_found && break 3
4722 done
4723 done
4724 done
4725 IFS=$as_save_IFS
4726 if test -z "$ac_cv_path_GREP"; then
4727 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4728 fi
4729 else
4730 ac_cv_path_GREP=$GREP
4731 fi
4732
4733 fi
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4735 $as_echo "$ac_cv_path_GREP" >&6; }
4736 GREP="$ac_cv_path_GREP"
4737
4738
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4740 $as_echo_n "checking for egrep... " >&6; }
4741 if ${ac_cv_path_EGREP+:} false; then :
4742 $as_echo_n "(cached) " >&6
4743 else
4744 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4745 then ac_cv_path_EGREP="$GREP -E"
4746 else
4747 if test -z "$EGREP"; then
4748 ac_path_EGREP_found=false
4749 # Loop through the user's path and test for each of PROGNAME-LIST
4750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4752 do
4753 IFS=$as_save_IFS
4754 test -z "$as_dir" && as_dir=.
4755 for ac_prog in egrep; do
4756 for ac_exec_ext in '' $ac_executable_extensions; do
4757 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4758 as_fn_executable_p "$ac_path_EGREP" || continue
4759 # Check for GNU ac_path_EGREP and select it if it is found.
4760 # Check for GNU $ac_path_EGREP
4761 case `"$ac_path_EGREP" --version 2>&1` in
4762 *GNU*)
4763 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4764 *)
4765 ac_count=0
4766 $as_echo_n 0123456789 >"conftest.in"
4767 while :
4768 do
4769 cat "conftest.in" "conftest.in" >"conftest.tmp"
4770 mv "conftest.tmp" "conftest.in"
4771 cp "conftest.in" "conftest.nl"
4772 $as_echo 'EGREP' >> "conftest.nl"
4773 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4774 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4775 as_fn_arith $ac_count + 1 && ac_count=$as_val
4776 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4777 # Best one so far, save it but keep looking for a better one
4778 ac_cv_path_EGREP="$ac_path_EGREP"
4779 ac_path_EGREP_max=$ac_count
4780 fi
4781 # 10*(2^10) chars as input seems more than enough
4782 test $ac_count -gt 10 && break
4783 done
4784 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4785 esac
4786
4787 $ac_path_EGREP_found && break 3
4788 done
4789 done
4790 done
4791 IFS=$as_save_IFS
4792 if test -z "$ac_cv_path_EGREP"; then
4793 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4794 fi
4795 else
4796 ac_cv_path_EGREP=$EGREP
4797 fi
4798
4799 fi
4800 fi
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4802 $as_echo "$ac_cv_path_EGREP" >&6; }
4803 EGREP="$ac_cv_path_EGREP"
4804
4805
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4807 $as_echo_n "checking for ANSI C header files... " >&6; }
4808 if ${ac_cv_header_stdc+:} false; then :
4809 $as_echo_n "(cached) " >&6
4810 else
4811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4812 /* end confdefs.h. */
4813 #include <stdlib.h>
4814 #include <stdarg.h>
4815 #include <string.h>
4816 #include <float.h>
4817
4818 int
4819 main ()
4820 {
4821
4822 ;
4823 return 0;
4824 }
4825 _ACEOF
4826 if ac_fn_c_try_compile "$LINENO"; then :
4827 ac_cv_header_stdc=yes
4828 else
4829 ac_cv_header_stdc=no
4830 fi
4831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4832
4833 if test $ac_cv_header_stdc = yes; then
4834 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4836 /* end confdefs.h. */
4837 #include <string.h>
4838
4839 _ACEOF
4840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4841 $EGREP "memchr" >/dev/null 2>&1; then :
4842
4843 else
4844 ac_cv_header_stdc=no
4845 fi
4846 rm -f conftest*
4847
4848 fi
4849
4850 if test $ac_cv_header_stdc = yes; then
4851 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4853 /* end confdefs.h. */
4854 #include <stdlib.h>
4855
4856 _ACEOF
4857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4858 $EGREP "free" >/dev/null 2>&1; then :
4859
4860 else
4861 ac_cv_header_stdc=no
4862 fi
4863 rm -f conftest*
4864
4865 fi
4866
4867 if test $ac_cv_header_stdc = yes; then
4868 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4869 if test "$cross_compiling" = yes; then :
4870 :
4871 else
4872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4873 /* end confdefs.h. */
4874 #include <ctype.h>
4875 #include <stdlib.h>
4876 #if ((' ' & 0x0FF) == 0x020)
4877 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4878 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4879 #else
4880 # define ISLOWER(c) \
4881 (('a' <= (c) && (c) <= 'i') \
4882 || ('j' <= (c) && (c) <= 'r') \
4883 || ('s' <= (c) && (c) <= 'z'))
4884 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4885 #endif
4886
4887 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4888 int
4889 main ()
4890 {
4891 int i;
4892 for (i = 0; i < 256; i++)
4893 if (XOR (islower (i), ISLOWER (i))
4894 || toupper (i) != TOUPPER (i))
4895 return 2;
4896 return 0;
4897 }
4898 _ACEOF
4899 if ac_fn_c_try_run "$LINENO"; then :
4900
4901 else
4902 ac_cv_header_stdc=no
4903 fi
4904 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4905 conftest.$ac_objext conftest.beam conftest.$ac_ext
4906 fi
4907
4908 fi
4909 fi
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4911 $as_echo "$ac_cv_header_stdc" >&6; }
4912 if test $ac_cv_header_stdc = yes; then
4913
4914 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4915
4916 fi
4917
4918 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4919 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4920 inttypes.h stdint.h unistd.h
4921 do :
4922 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4923 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4924 "
4925 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4926 cat >>confdefs.h <<_ACEOF
4927 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4928 _ACEOF
4929
4930 fi
4931
4932 done
4933
4934
4935 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
4936 if test "x$ac_cv_header_pthread_h" = xyes; then :
4937
4938 else
4939 as_fn_error $? "<pthread.h> not found. libppcdsc requires libpthread." "$LINENO" 5
4940 fi
4941
4942
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
4944 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
4945 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
4946 $as_echo_n "(cached) " >&6
4947 else
4948 ac_check_lib_save_LIBS=$LIBS
4949 LIBS="-lpthread $LIBS"
4950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4951 /* end confdefs.h. */
4952
4953 /* Override any GCC internal prototype to avoid an error.
4954 Use char because int might match the return type of a GCC
4955 builtin and then its argument prototype would still apply. */
4956 #ifdef __cplusplus
4957 extern "C"
4958 #endif
4959 char pthread_create ();
4960 int
4961 main ()
4962 {
4963 return pthread_create ();
4964 ;
4965 return 0;
4966 }
4967 _ACEOF
4968 if ac_fn_c_try_link "$LINENO"; then :
4969 ac_cv_lib_pthread_pthread_create=yes
4970 else
4971 ac_cv_lib_pthread_pthread_create=no
4972 fi
4973 rm -f core conftest.err conftest.$ac_objext \
4974 conftest$ac_exeext conftest.$ac_ext
4975 LIBS=$ac_check_lib_save_LIBS
4976 fi
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
4978 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
4979 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
4980 cat >>confdefs.h <<_ACEOF
4981 #define HAVE_LIBPTHREAD 1
4982 _ACEOF
4983
4984 LIBS="-lpthread $LIBS"
4985
4986 else
4987 as_fn_error $? "pthread_create() not found. libppsdsc requires libpthread." "$LINENO" 5
4988 fi
4989
4990
4991 # Checks for programs
4992 # By default we simply use the C compiler to build assembly code.
4993
4994 test "${CCAS+set}" = set || CCAS=$CC
4995 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4996
4997
4998
4999 depcc="$CCAS" am_compiler_list=
5000
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5002 $as_echo_n "checking dependency style of $depcc... " >&6; }
5003 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
5004 $as_echo_n "(cached) " >&6
5005 else
5006 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5007 # We make a subdir and do the tests there. Otherwise we can end up
5008 # making bogus files that we don't know about and never remove. For
5009 # instance it was reported that on HP-UX the gcc test will end up
5010 # making a dummy file named 'D' -- because '-MD' means "put the output
5011 # in D".
5012 rm -rf conftest.dir
5013 mkdir conftest.dir
5014 # Copy depcomp to subdir because otherwise we won't find it if we're
5015 # using a relative directory.
5016 cp "$am_depcomp" conftest.dir
5017 cd conftest.dir
5018 # We will build objects and dependencies in a subdirectory because
5019 # it helps to detect inapplicable dependency modes. For instance
5020 # both Tru64's cc and ICC support -MD to output dependencies as a
5021 # side effect of compilation, but ICC will put the dependencies in
5022 # the current directory while Tru64 will put them in the object
5023 # directory.
5024 mkdir sub
5025
5026 am_cv_CCAS_dependencies_compiler_type=none
5027 if test "$am_compiler_list" = ""; then
5028 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5029 fi
5030 am__universal=false
5031
5032
5033 for depmode in $am_compiler_list; do
5034 # Setup a source with many dependencies, because some compilers
5035 # like to wrap large dependency lists on column 80 (with \), and
5036 # we should not choose a depcomp mode which is confused by this.
5037 #
5038 # We need to recreate these files for each test, as the compiler may
5039 # overwrite some of them when testing with obscure command lines.
5040 # This happens at least with the AIX C compiler.
5041 : > sub/conftest.c
5042 for i in 1 2 3 4 5 6; do
5043 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5044 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5045 # Solaris 10 /bin/sh.
5046 echo '/* dummy */' > sub/conftst$i.h
5047 done
5048 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5049
5050 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5051 # mode. It turns out that the SunPro C++ compiler does not properly
5052 # handle '-M -o', and we need to detect this. Also, some Intel
5053 # versions had trouble with output in subdirs.
5054 am__obj=sub/conftest.${OBJEXT-o}
5055 am__minus_obj="-o $am__obj"
5056 case $depmode in
5057 gcc)
5058 # This depmode causes a compiler race in universal mode.
5059 test "$am__universal" = false || continue
5060 ;;
5061 nosideeffect)
5062 # After this tag, mechanisms are not by side-effect, so they'll
5063 # only be used when explicitly requested.
5064 if test "x$enable_dependency_tracking" = xyes; then
5065 continue
5066 else
5067 break
5068 fi
5069 ;;
5070 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5071 # This compiler won't grok '-c -o', but also, the minuso test has
5072 # not run yet. These depmodes are late enough in the game, and
5073 # so weak that their functioning should not be impacted.
5074 am__obj=conftest.${OBJEXT-o}
5075 am__minus_obj=
5076 ;;
5077 none) break ;;
5078 esac
5079 if depmode=$depmode \
5080 source=sub/conftest.c object=$am__obj \
5081 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5082 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5083 >/dev/null 2>conftest.err &&
5084 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5085 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5086 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5087 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5088 # icc doesn't choke on unknown options, it will just issue warnings
5089 # or remarks (even with -Werror). So we grep stderr for any message
5090 # that says an option was ignored or not supported.
5091 # When given -MP, icc 7.0 and 7.1 complain thusly:
5092 # icc: Command line warning: ignoring option '-M'; no argument required
5093 # The diagnosis changed in icc 8.0:
5094 # icc: Command line remark: option '-MP' not supported
5095 if (grep 'ignoring option' conftest.err ||
5096 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5097 am_cv_CCAS_dependencies_compiler_type=$depmode
5098 break
5099 fi
5100 fi
5101 done
5102
5103 cd ..
5104 rm -rf conftest.dir
5105 else
5106 am_cv_CCAS_dependencies_compiler_type=none
5107 fi
5108
5109 fi
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
5111 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5112 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
5113
5114 if
5115 test "x$enable_dependency_tracking" != xno \
5116 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
5117 am__fastdepCCAS_TRUE=
5118 am__fastdepCCAS_FALSE='#'
5119 else
5120 am__fastdepCCAS_TRUE='#'
5121 am__fastdepCCAS_FALSE=
5122 fi
5123
5124
5125 ac_ext=cpp
5126 ac_cpp='$CXXCPP $CPPFLAGS'
5127 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5128 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5129 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5130 if test -z "$CXX"; then
5131 if test -n "$CCC"; then
5132 CXX=$CCC
5133 else
5134 if test -n "$ac_tool_prefix"; then
5135 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5136 do
5137 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5138 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5140 $as_echo_n "checking for $ac_word... " >&6; }
5141 if ${ac_cv_prog_CXX+:} false; then :
5142 $as_echo_n "(cached) " >&6
5143 else
5144 if test -n "$CXX"; then
5145 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5146 else
5147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148 for as_dir in $PATH
5149 do
5150 IFS=$as_save_IFS
5151 test -z "$as_dir" && as_dir=.
5152 for ac_exec_ext in '' $ac_executable_extensions; do
5153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5154 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5156 break 2
5157 fi
5158 done
5159 done
5160 IFS=$as_save_IFS
5161
5162 fi
5163 fi
5164 CXX=$ac_cv_prog_CXX
5165 if test -n "$CXX"; then
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5167 $as_echo "$CXX" >&6; }
5168 else
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5170 $as_echo "no" >&6; }
5171 fi
5172
5173
5174 test -n "$CXX" && break
5175 done
5176 fi
5177 if test -z "$CXX"; then
5178 ac_ct_CXX=$CXX
5179 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5180 do
5181 # Extract the first word of "$ac_prog", so it can be a program name with args.
5182 set dummy $ac_prog; ac_word=$2
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5184 $as_echo_n "checking for $ac_word... " >&6; }
5185 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5186 $as_echo_n "(cached) " >&6
5187 else
5188 if test -n "$ac_ct_CXX"; then
5189 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5190 else
5191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192 for as_dir in $PATH
5193 do
5194 IFS=$as_save_IFS
5195 test -z "$as_dir" && as_dir=.
5196 for ac_exec_ext in '' $ac_executable_extensions; do
5197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5198 ac_cv_prog_ac_ct_CXX="$ac_prog"
5199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5200 break 2
5201 fi
5202 done
5203 done
5204 IFS=$as_save_IFS
5205
5206 fi
5207 fi
5208 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5209 if test -n "$ac_ct_CXX"; then
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5211 $as_echo "$ac_ct_CXX" >&6; }
5212 else
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5214 $as_echo "no" >&6; }
5215 fi
5216
5217
5218 test -n "$ac_ct_CXX" && break
5219 done
5220
5221 if test "x$ac_ct_CXX" = x; then
5222 CXX="g++"
5223 else
5224 case $cross_compiling:$ac_tool_warned in
5225 yes:)
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5227 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5228 ac_tool_warned=yes ;;
5229 esac
5230 CXX=$ac_ct_CXX
5231 fi
5232 fi
5233
5234 fi
5235 fi
5236 # Provide some information about the compiler.
5237 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5238 set X $ac_compile
5239 ac_compiler=$2
5240 for ac_option in --version -v -V -qversion; do
5241 { { ac_try="$ac_compiler $ac_option >&5"
5242 case "(($ac_try" in
5243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5244 *) ac_try_echo=$ac_try;;
5245 esac
5246 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5247 $as_echo "$ac_try_echo"; } >&5
5248 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5249 ac_status=$?
5250 if test -s conftest.err; then
5251 sed '10a\
5252 ... rest of stderr output deleted ...
5253 10q' conftest.err >conftest.er1
5254 cat conftest.er1 >&5
5255 fi
5256 rm -f conftest.er1 conftest.err
5257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5258 test $ac_status = 0; }
5259 done
5260
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5262 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5263 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5264 $as_echo_n "(cached) " >&6
5265 else
5266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5267 /* end confdefs.h. */
5268
5269 int
5270 main ()
5271 {
5272 #ifndef __GNUC__
5273 choke me
5274 #endif
5275
5276 ;
5277 return 0;
5278 }
5279 _ACEOF
5280 if ac_fn_cxx_try_compile "$LINENO"; then :
5281 ac_compiler_gnu=yes
5282 else
5283 ac_compiler_gnu=no
5284 fi
5285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5286 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5287
5288 fi
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5290 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5291 if test $ac_compiler_gnu = yes; then
5292 GXX=yes
5293 else
5294 GXX=
5295 fi
5296 ac_test_CXXFLAGS=${CXXFLAGS+set}
5297 ac_save_CXXFLAGS=$CXXFLAGS
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5299 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5300 if ${ac_cv_prog_cxx_g+:} false; then :
5301 $as_echo_n "(cached) " >&6
5302 else
5303 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5304 ac_cxx_werror_flag=yes
5305 ac_cv_prog_cxx_g=no
5306 CXXFLAGS="-g"
5307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5308 /* end confdefs.h. */
5309
5310 int
5311 main ()
5312 {
5313
5314 ;
5315 return 0;
5316 }
5317 _ACEOF
5318 if ac_fn_cxx_try_compile "$LINENO"; then :
5319 ac_cv_prog_cxx_g=yes
5320 else
5321 CXXFLAGS=""
5322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5323 /* end confdefs.h. */
5324
5325 int
5326 main ()
5327 {
5328
5329 ;
5330 return 0;
5331 }
5332 _ACEOF
5333 if ac_fn_cxx_try_compile "$LINENO"; then :
5334
5335 else
5336 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5337 CXXFLAGS="-g"
5338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5339 /* end confdefs.h. */
5340
5341 int
5342 main ()
5343 {
5344
5345 ;
5346 return 0;
5347 }
5348 _ACEOF
5349 if ac_fn_cxx_try_compile "$LINENO"; then :
5350 ac_cv_prog_cxx_g=yes
5351 fi
5352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5353 fi
5354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5355 fi
5356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5357 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5358 fi
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5360 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5361 if test "$ac_test_CXXFLAGS" = set; then
5362 CXXFLAGS=$ac_save_CXXFLAGS
5363 elif test $ac_cv_prog_cxx_g = yes; then
5364 if test "$GXX" = yes; then
5365 CXXFLAGS="-g -O2"
5366 else
5367 CXXFLAGS="-g"
5368 fi
5369 else
5370 if test "$GXX" = yes; then
5371 CXXFLAGS="-O2"
5372 else
5373 CXXFLAGS=
5374 fi
5375 fi
5376 ac_ext=c
5377 ac_cpp='$CPP $CPPFLAGS'
5378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5381
5382 depcc="$CXX" am_compiler_list=
5383
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5385 $as_echo_n "checking dependency style of $depcc... " >&6; }
5386 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5387 $as_echo_n "(cached) " >&6
5388 else
5389 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5390 # We make a subdir and do the tests there. Otherwise we can end up
5391 # making bogus files that we don't know about and never remove. For
5392 # instance it was reported that on HP-UX the gcc test will end up
5393 # making a dummy file named 'D' -- because '-MD' means "put the output
5394 # in D".
5395 rm -rf conftest.dir
5396 mkdir conftest.dir
5397 # Copy depcomp to subdir because otherwise we won't find it if we're
5398 # using a relative directory.
5399 cp "$am_depcomp" conftest.dir
5400 cd conftest.dir
5401 # We will build objects and dependencies in a subdirectory because
5402 # it helps to detect inapplicable dependency modes. For instance
5403 # both Tru64's cc and ICC support -MD to output dependencies as a
5404 # side effect of compilation, but ICC will put the dependencies in
5405 # the current directory while Tru64 will put them in the object
5406 # directory.
5407 mkdir sub
5408
5409 am_cv_CXX_dependencies_compiler_type=none
5410 if test "$am_compiler_list" = ""; then
5411 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5412 fi
5413 am__universal=false
5414 case " $depcc " in #(
5415 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5416 esac
5417
5418 for depmode in $am_compiler_list; do
5419 # Setup a source with many dependencies, because some compilers
5420 # like to wrap large dependency lists on column 80 (with \), and
5421 # we should not choose a depcomp mode which is confused by this.
5422 #
5423 # We need to recreate these files for each test, as the compiler may
5424 # overwrite some of them when testing with obscure command lines.
5425 # This happens at least with the AIX C compiler.
5426 : > sub/conftest.c
5427 for i in 1 2 3 4 5 6; do
5428 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5429 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5430 # Solaris 10 /bin/sh.
5431 echo '/* dummy */' > sub/conftst$i.h
5432 done
5433 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5434
5435 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5436 # mode. It turns out that the SunPro C++ compiler does not properly
5437 # handle '-M -o', and we need to detect this. Also, some Intel
5438 # versions had trouble with output in subdirs.
5439 am__obj=sub/conftest.${OBJEXT-o}
5440 am__minus_obj="-o $am__obj"
5441 case $depmode in
5442 gcc)
5443 # This depmode causes a compiler race in universal mode.
5444 test "$am__universal" = false || continue
5445 ;;
5446 nosideeffect)
5447 # After this tag, mechanisms are not by side-effect, so they'll
5448 # only be used when explicitly requested.
5449 if test "x$enable_dependency_tracking" = xyes; then
5450 continue
5451 else
5452 break
5453 fi
5454 ;;
5455 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5456 # This compiler won't grok '-c -o', but also, the minuso test has
5457 # not run yet. These depmodes are late enough in the game, and
5458 # so weak that their functioning should not be impacted.
5459 am__obj=conftest.${OBJEXT-o}
5460 am__minus_obj=
5461 ;;
5462 none) break ;;
5463 esac
5464 if depmode=$depmode \
5465 source=sub/conftest.c object=$am__obj \
5466 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5467 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5468 >/dev/null 2>conftest.err &&
5469 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5470 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5471 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5472 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5473 # icc doesn't choke on unknown options, it will just issue warnings
5474 # or remarks (even with -Werror). So we grep stderr for any message
5475 # that says an option was ignored or not supported.
5476 # When given -MP, icc 7.0 and 7.1 complain thusly:
5477 # icc: Command line warning: ignoring option '-M'; no argument required
5478 # The diagnosis changed in icc 8.0:
5479 # icc: Command line remark: option '-MP' not supported
5480 if (grep 'ignoring option' conftest.err ||
5481 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5482 am_cv_CXX_dependencies_compiler_type=$depmode
5483 break
5484 fi
5485 fi
5486 done
5487
5488 cd ..
5489 rm -rf conftest.dir
5490 else
5491 am_cv_CXX_dependencies_compiler_type=none
5492 fi
5493
5494 fi
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5496 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5497 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5498
5499 if
5500 test "x$enable_dependency_tracking" != xno \
5501 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5502 am__fastdepCXX_TRUE=
5503 am__fastdepCXX_FALSE='#'
5504 else
5505 am__fastdepCXX_TRUE='#'
5506 am__fastdepCXX_FALSE=
5507 fi
5508
5509
5510 for ac_prog in gawk mawk nawk awk
5511 do
5512 # Extract the first word of "$ac_prog", so it can be a program name with args.
5513 set dummy $ac_prog; ac_word=$2
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5515 $as_echo_n "checking for $ac_word... " >&6; }
5516 if ${ac_cv_prog_AWK+:} false; then :
5517 $as_echo_n "(cached) " >&6
5518 else
5519 if test -n "$AWK"; then
5520 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5521 else
5522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5523 for as_dir in $PATH
5524 do
5525 IFS=$as_save_IFS
5526 test -z "$as_dir" && as_dir=.
5527 for ac_exec_ext in '' $ac_executable_extensions; do
5528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5529 ac_cv_prog_AWK="$ac_prog"
5530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5531 break 2
5532 fi
5533 done
5534 done
5535 IFS=$as_save_IFS
5536
5537 fi
5538 fi
5539 AWK=$ac_cv_prog_AWK
5540 if test -n "$AWK"; then
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5542 $as_echo "$AWK" >&6; }
5543 else
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5545 $as_echo "no" >&6; }
5546 fi
5547
5548
5549 test -n "$AWK" && break
5550 done
5551
5552 ac_ext=c
5553 ac_cpp='$CPP $CPPFLAGS'
5554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5557 if test -n "$ac_tool_prefix"; then
5558 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5559 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5561 $as_echo_n "checking for $ac_word... " >&6; }
5562 if ${ac_cv_prog_CC+:} false; then :
5563 $as_echo_n "(cached) " >&6
5564 else
5565 if test -n "$CC"; then
5566 ac_cv_prog_CC="$CC" # Let the user override the test.
5567 else
5568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5569 for as_dir in $PATH
5570 do
5571 IFS=$as_save_IFS
5572 test -z "$as_dir" && as_dir=.
5573 for ac_exec_ext in '' $ac_executable_extensions; do
5574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5575 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5577 break 2
5578 fi
5579 done
5580 done
5581 IFS=$as_save_IFS
5582
5583 fi
5584 fi
5585 CC=$ac_cv_prog_CC
5586 if test -n "$CC"; then
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5588 $as_echo "$CC" >&6; }
5589 else
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5591 $as_echo "no" >&6; }
5592 fi
5593
5594
5595 fi
5596 if test -z "$ac_cv_prog_CC"; then
5597 ac_ct_CC=$CC
5598 # Extract the first word of "gcc", so it can be a program name with args.
5599 set dummy gcc; ac_word=$2
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5601 $as_echo_n "checking for $ac_word... " >&6; }
5602 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5603 $as_echo_n "(cached) " >&6
5604 else
5605 if test -n "$ac_ct_CC"; then
5606 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5607 else
5608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609 for as_dir in $PATH
5610 do
5611 IFS=$as_save_IFS
5612 test -z "$as_dir" && as_dir=.
5613 for ac_exec_ext in '' $ac_executable_extensions; do
5614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5615 ac_cv_prog_ac_ct_CC="gcc"
5616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5617 break 2
5618 fi
5619 done
5620 done
5621 IFS=$as_save_IFS
5622
5623 fi
5624 fi
5625 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5626 if test -n "$ac_ct_CC"; then
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5628 $as_echo "$ac_ct_CC" >&6; }
5629 else
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5631 $as_echo "no" >&6; }
5632 fi
5633
5634 if test "x$ac_ct_CC" = x; then
5635 CC=""
5636 else
5637 case $cross_compiling:$ac_tool_warned in
5638 yes:)
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5641 ac_tool_warned=yes ;;
5642 esac
5643 CC=$ac_ct_CC
5644 fi
5645 else
5646 CC="$ac_cv_prog_CC"
5647 fi
5648
5649 if test -z "$CC"; then
5650 if test -n "$ac_tool_prefix"; then
5651 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5652 set dummy ${ac_tool_prefix}cc; ac_word=$2
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5654 $as_echo_n "checking for $ac_word... " >&6; }
5655 if ${ac_cv_prog_CC+:} false; then :
5656 $as_echo_n "(cached) " >&6
5657 else
5658 if test -n "$CC"; then
5659 ac_cv_prog_CC="$CC" # Let the user override the test.
5660 else
5661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5662 for as_dir in $PATH
5663 do
5664 IFS=$as_save_IFS
5665 test -z "$as_dir" && as_dir=.
5666 for ac_exec_ext in '' $ac_executable_extensions; do
5667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5668 ac_cv_prog_CC="${ac_tool_prefix}cc"
5669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5670 break 2
5671 fi
5672 done
5673 done
5674 IFS=$as_save_IFS
5675
5676 fi
5677 fi
5678 CC=$ac_cv_prog_CC
5679 if test -n "$CC"; then
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5681 $as_echo "$CC" >&6; }
5682 else
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5684 $as_echo "no" >&6; }
5685 fi
5686
5687
5688 fi
5689 fi
5690 if test -z "$CC"; then
5691 # Extract the first word of "cc", so it can be a program name with args.
5692 set dummy cc; ac_word=$2
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5694 $as_echo_n "checking for $ac_word... " >&6; }
5695 if ${ac_cv_prog_CC+:} false; then :
5696 $as_echo_n "(cached) " >&6
5697 else
5698 if test -n "$CC"; then
5699 ac_cv_prog_CC="$CC" # Let the user override the test.
5700 else
5701 ac_prog_rejected=no
5702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5703 for as_dir in $PATH
5704 do
5705 IFS=$as_save_IFS
5706 test -z "$as_dir" && as_dir=.
5707 for ac_exec_ext in '' $ac_executable_extensions; do
5708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5709 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5710 ac_prog_rejected=yes
5711 continue
5712 fi
5713 ac_cv_prog_CC="cc"
5714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5715 break 2
5716 fi
5717 done
5718 done
5719 IFS=$as_save_IFS
5720
5721 if test $ac_prog_rejected = yes; then
5722 # We found a bogon in the path, so make sure we never use it.
5723 set dummy $ac_cv_prog_CC
5724 shift
5725 if test $# != 0; then
5726 # We chose a different compiler from the bogus one.
5727 # However, it has the same basename, so the bogon will be chosen
5728 # first if we set CC to just the basename; use the full file name.
5729 shift
5730 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5731 fi
5732 fi
5733 fi
5734 fi
5735 CC=$ac_cv_prog_CC
5736 if test -n "$CC"; then
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5738 $as_echo "$CC" >&6; }
5739 else
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5741 $as_echo "no" >&6; }
5742 fi
5743
5744
5745 fi
5746 if test -z "$CC"; then
5747 if test -n "$ac_tool_prefix"; then
5748 for ac_prog in cl.exe
5749 do
5750 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5751 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5753 $as_echo_n "checking for $ac_word... " >&6; }
5754 if ${ac_cv_prog_CC+:} false; then :
5755 $as_echo_n "(cached) " >&6
5756 else
5757 if test -n "$CC"; then
5758 ac_cv_prog_CC="$CC" # Let the user override the test.
5759 else
5760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5761 for as_dir in $PATH
5762 do
5763 IFS=$as_save_IFS
5764 test -z "$as_dir" && as_dir=.
5765 for ac_exec_ext in '' $ac_executable_extensions; do
5766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5767 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5769 break 2
5770 fi
5771 done
5772 done
5773 IFS=$as_save_IFS
5774
5775 fi
5776 fi
5777 CC=$ac_cv_prog_CC
5778 if test -n "$CC"; then
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5780 $as_echo "$CC" >&6; }
5781 else
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5783 $as_echo "no" >&6; }
5784 fi
5785
5786
5787 test -n "$CC" && break
5788 done
5789 fi
5790 if test -z "$CC"; then
5791 ac_ct_CC=$CC
5792 for ac_prog in cl.exe
5793 do
5794 # Extract the first word of "$ac_prog", so it can be a program name with args.
5795 set dummy $ac_prog; ac_word=$2
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5797 $as_echo_n "checking for $ac_word... " >&6; }
5798 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5799 $as_echo_n "(cached) " >&6
5800 else
5801 if test -n "$ac_ct_CC"; then
5802 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5803 else
5804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805 for as_dir in $PATH
5806 do
5807 IFS=$as_save_IFS
5808 test -z "$as_dir" && as_dir=.
5809 for ac_exec_ext in '' $ac_executable_extensions; do
5810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5811 ac_cv_prog_ac_ct_CC="$ac_prog"
5812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5813 break 2
5814 fi
5815 done
5816 done
5817 IFS=$as_save_IFS
5818
5819 fi
5820 fi
5821 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5822 if test -n "$ac_ct_CC"; then
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5824 $as_echo "$ac_ct_CC" >&6; }
5825 else
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5827 $as_echo "no" >&6; }
5828 fi
5829
5830
5831 test -n "$ac_ct_CC" && break
5832 done
5833
5834 if test "x$ac_ct_CC" = x; then
5835 CC=""
5836 else
5837 case $cross_compiling:$ac_tool_warned in
5838 yes:)
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5841 ac_tool_warned=yes ;;
5842 esac
5843 CC=$ac_ct_CC
5844 fi
5845 fi
5846
5847 fi
5848
5849
5850 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5851 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5852 as_fn_error $? "no acceptable C compiler found in \$PATH
5853 See \`config.log' for more details" "$LINENO" 5; }
5854
5855 # Provide some information about the compiler.
5856 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5857 set X $ac_compile
5858 ac_compiler=$2
5859 for ac_option in --version -v -V -qversion; do
5860 { { ac_try="$ac_compiler $ac_option >&5"
5861 case "(($ac_try" in
5862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5863 *) ac_try_echo=$ac_try;;
5864 esac
5865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5866 $as_echo "$ac_try_echo"; } >&5
5867 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5868 ac_status=$?
5869 if test -s conftest.err; then
5870 sed '10a\
5871 ... rest of stderr output deleted ...
5872 10q' conftest.err >conftest.er1
5873 cat conftest.er1 >&5
5874 fi
5875 rm -f conftest.er1 conftest.err
5876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5877 test $ac_status = 0; }
5878 done
5879
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5881 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5882 if ${ac_cv_c_compiler_gnu+:} false; then :
5883 $as_echo_n "(cached) " >&6
5884 else
5885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5886 /* end confdefs.h. */
5887
5888 int
5889 main ()
5890 {
5891 #ifndef __GNUC__
5892 choke me
5893 #endif
5894
5895 ;
5896 return 0;
5897 }
5898 _ACEOF
5899 if ac_fn_c_try_compile "$LINENO"; then :
5900 ac_compiler_gnu=yes
5901 else
5902 ac_compiler_gnu=no
5903 fi
5904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5905 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5906
5907 fi
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5909 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5910 if test $ac_compiler_gnu = yes; then
5911 GCC=yes
5912 else
5913 GCC=
5914 fi
5915 ac_test_CFLAGS=${CFLAGS+set}
5916 ac_save_CFLAGS=$CFLAGS
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5918 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5919 if ${ac_cv_prog_cc_g+:} false; then :
5920 $as_echo_n "(cached) " >&6
5921 else
5922 ac_save_c_werror_flag=$ac_c_werror_flag
5923 ac_c_werror_flag=yes
5924 ac_cv_prog_cc_g=no
5925 CFLAGS="-g"
5926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5927 /* end confdefs.h. */
5928
5929 int
5930 main ()
5931 {
5932
5933 ;
5934 return 0;
5935 }
5936 _ACEOF
5937 if ac_fn_c_try_compile "$LINENO"; then :
5938 ac_cv_prog_cc_g=yes
5939 else
5940 CFLAGS=""
5941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5942 /* end confdefs.h. */
5943
5944 int
5945 main ()
5946 {
5947
5948 ;
5949 return 0;
5950 }
5951 _ACEOF
5952 if ac_fn_c_try_compile "$LINENO"; then :
5953
5954 else
5955 ac_c_werror_flag=$ac_save_c_werror_flag
5956 CFLAGS="-g"
5957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5958 /* end confdefs.h. */
5959
5960 int
5961 main ()
5962 {
5963
5964 ;
5965 return 0;
5966 }
5967 _ACEOF
5968 if ac_fn_c_try_compile "$LINENO"; then :
5969 ac_cv_prog_cc_g=yes
5970 fi
5971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5972 fi
5973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5974 fi
5975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5976 ac_c_werror_flag=$ac_save_c_werror_flag
5977 fi
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5979 $as_echo "$ac_cv_prog_cc_g" >&6; }
5980 if test "$ac_test_CFLAGS" = set; then
5981 CFLAGS=$ac_save_CFLAGS
5982 elif test $ac_cv_prog_cc_g = yes; then
5983 if test "$GCC" = yes; then
5984 CFLAGS="-g -O2"
5985 else
5986 CFLAGS="-g"
5987 fi
5988 else
5989 if test "$GCC" = yes; then
5990 CFLAGS="-O2"
5991 else
5992 CFLAGS=
5993 fi
5994 fi
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5996 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5997 if ${ac_cv_prog_cc_c89+:} false; then :
5998 $as_echo_n "(cached) " >&6
5999 else
6000 ac_cv_prog_cc_c89=no
6001 ac_save_CC=$CC
6002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6003 /* end confdefs.h. */
6004 #include <stdarg.h>
6005 #include <stdio.h>
6006 struct stat;
6007 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6008 struct buf { int x; };
6009 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6010 static char *e (p, i)
6011 char **p;
6012 int i;
6013 {
6014 return p[i];
6015 }
6016 static char *f (char * (*g) (char **, int), char **p, ...)
6017 {
6018 char *s;
6019 va_list v;
6020 va_start (v,p);
6021 s = g (p, va_arg (v,int));
6022 va_end (v);
6023 return s;
6024 }
6025
6026 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6027 function prototypes and stuff, but not '\xHH' hex character constants.
6028 These don't provoke an error unfortunately, instead are silently treated
6029 as 'x'. The following induces an error, until -std is added to get
6030 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6031 array size at least. It's necessary to write '\x00'==0 to get something
6032 that's true only with -std. */
6033 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6034
6035 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6036 inside strings and character constants. */
6037 #define FOO(x) 'x'
6038 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6039
6040 int test (int i, double x);
6041 struct s1 {int (*f) (int a);};
6042 struct s2 {int (*f) (double a);};
6043 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6044 int argc;
6045 char **argv;
6046 int
6047 main ()
6048 {
6049 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6050 ;
6051 return 0;
6052 }
6053 _ACEOF
6054 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6055 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6056 do
6057 CC="$ac_save_CC $ac_arg"
6058 if ac_fn_c_try_compile "$LINENO"; then :
6059 ac_cv_prog_cc_c89=$ac_arg
6060 fi
6061 rm -f core conftest.err conftest.$ac_objext
6062 test "x$ac_cv_prog_cc_c89" != "xno" && break
6063 done
6064 rm -f conftest.$ac_ext
6065 CC=$ac_save_CC
6066
6067 fi
6068 # AC_CACHE_VAL
6069 case "x$ac_cv_prog_cc_c89" in
6070 x)
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6072 $as_echo "none needed" >&6; } ;;
6073 xno)
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6075 $as_echo "unsupported" >&6; } ;;
6076 *)
6077 CC="$CC $ac_cv_prog_cc_c89"
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6079 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6080 esac
6081 if test "x$ac_cv_prog_cc_c89" != xno; then :
6082
6083 fi
6084
6085 ac_ext=c
6086 ac_cpp='$CPP $CPPFLAGS'
6087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6090
6091 ac_ext=c
6092 ac_cpp='$CPP $CPPFLAGS'
6093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6097 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6098 if ${am_cv_prog_cc_c_o+:} false; then :
6099 $as_echo_n "(cached) " >&6
6100 else
6101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6102 /* end confdefs.h. */
6103
6104 int
6105 main ()
6106 {
6107
6108 ;
6109 return 0;
6110 }
6111 _ACEOF
6112 # Make sure it works both with $CC and with simple cc.
6113 # Following AC_PROG_CC_C_O, we do the test twice because some
6114 # compilers refuse to overwrite an existing .o file with -o,
6115 # though they will create one.
6116 am_cv_prog_cc_c_o=yes
6117 for am_i in 1 2; do
6118 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6119 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6120 ac_status=$?
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); } \
6123 && test -f conftest2.$ac_objext; then
6124 : OK
6125 else
6126 am_cv_prog_cc_c_o=no
6127 break
6128 fi
6129 done
6130 rm -f core conftest*
6131 unset am_i
6132 fi
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6134 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6135 if test "$am_cv_prog_cc_c_o" != yes; then
6136 # Losing compiler, so override with the script.
6137 # FIXME: It is wrong to rewrite CC.
6138 # But if we don't then we get into trouble of one sort or another.
6139 # A longer-term fix would be to have automake use am__CC in this case,
6140 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6141 CC="$am_aux_dir/compile $CC"
6142 fi
6143 ac_ext=c
6144 ac_cpp='$CPP $CPPFLAGS'
6145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6148
6149
6150 depcc="$CC" am_compiler_list=
6151
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6153 $as_echo_n "checking dependency style of $depcc... " >&6; }
6154 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6155 $as_echo_n "(cached) " >&6
6156 else
6157 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6158 # We make a subdir and do the tests there. Otherwise we can end up
6159 # making bogus files that we don't know about and never remove. For
6160 # instance it was reported that on HP-UX the gcc test will end up
6161 # making a dummy file named 'D' -- because '-MD' means "put the output
6162 # in D".
6163 rm -rf conftest.dir
6164 mkdir conftest.dir
6165 # Copy depcomp to subdir because otherwise we won't find it if we're
6166 # using a relative directory.
6167 cp "$am_depcomp" conftest.dir
6168 cd conftest.dir
6169 # We will build objects and dependencies in a subdirectory because
6170 # it helps to detect inapplicable dependency modes. For instance
6171 # both Tru64's cc and ICC support -MD to output dependencies as a
6172 # side effect of compilation, but ICC will put the dependencies in
6173 # the current directory while Tru64 will put them in the object
6174 # directory.
6175 mkdir sub
6176
6177 am_cv_CC_dependencies_compiler_type=none
6178 if test "$am_compiler_list" = ""; then
6179 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6180 fi
6181 am__universal=false
6182 case " $depcc " in #(
6183 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6184 esac
6185
6186 for depmode in $am_compiler_list; do
6187 # Setup a source with many dependencies, because some compilers
6188 # like to wrap large dependency lists on column 80 (with \), and
6189 # we should not choose a depcomp mode which is confused by this.
6190 #
6191 # We need to recreate these files for each test, as the compiler may
6192 # overwrite some of them when testing with obscure command lines.
6193 # This happens at least with the AIX C compiler.
6194 : > sub/conftest.c
6195 for i in 1 2 3 4 5 6; do
6196 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6197 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6198 # Solaris 10 /bin/sh.
6199 echo '/* dummy */' > sub/conftst$i.h
6200 done
6201 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6202
6203 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6204 # mode. It turns out that the SunPro C++ compiler does not properly
6205 # handle '-M -o', and we need to detect this. Also, some Intel
6206 # versions had trouble with output in subdirs.
6207 am__obj=sub/conftest.${OBJEXT-o}
6208 am__minus_obj="-o $am__obj"
6209 case $depmode in
6210 gcc)
6211 # This depmode causes a compiler race in universal mode.
6212 test "$am__universal" = false || continue
6213 ;;
6214 nosideeffect)
6215 # After this tag, mechanisms are not by side-effect, so they'll
6216 # only be used when explicitly requested.
6217 if test "x$enable_dependency_tracking" = xyes; then
6218 continue
6219 else
6220 break
6221 fi
6222 ;;
6223 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6224 # This compiler won't grok '-c -o', but also, the minuso test has
6225 # not run yet. These depmodes are late enough in the game, and
6226 # so weak that their functioning should not be impacted.
6227 am__obj=conftest.${OBJEXT-o}
6228 am__minus_obj=
6229 ;;
6230 none) break ;;
6231 esac
6232 if depmode=$depmode \
6233 source=sub/conftest.c object=$am__obj \
6234 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6235 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6236 >/dev/null 2>conftest.err &&
6237 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6238 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6239 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6240 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6241 # icc doesn't choke on unknown options, it will just issue warnings
6242 # or remarks (even with -Werror). So we grep stderr for any message
6243 # that says an option was ignored or not supported.
6244 # When given -MP, icc 7.0 and 7.1 complain thusly:
6245 # icc: Command line warning: ignoring option '-M'; no argument required
6246 # The diagnosis changed in icc 8.0:
6247 # icc: Command line remark: option '-MP' not supported
6248 if (grep 'ignoring option' conftest.err ||
6249 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6250 am_cv_CC_dependencies_compiler_type=$depmode
6251 break
6252 fi
6253 fi
6254 done
6255
6256 cd ..
6257 rm -rf conftest.dir
6258 else
6259 am_cv_CC_dependencies_compiler_type=none
6260 fi
6261
6262 fi
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6264 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6265 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6266
6267 if
6268 test "x$enable_dependency_tracking" != xno \
6269 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6270 am__fastdepCC_TRUE=
6271 am__fastdepCC_FALSE='#'
6272 else
6273 am__fastdepCC_TRUE='#'
6274 am__fastdepCC_FALSE=
6275 fi
6276
6277
6278
6279 ac_ext=c
6280 ac_cpp='$CPP $CPPFLAGS'
6281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6285 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6286 # On Suns, sometimes $CPP names a directory.
6287 if test -n "$CPP" && test -d "$CPP"; then
6288 CPP=
6289 fi
6290 if test -z "$CPP"; then
6291 if ${ac_cv_prog_CPP+:} false; then :
6292 $as_echo_n "(cached) " >&6
6293 else
6294 # Double quotes because CPP needs to be expanded
6295 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6296 do
6297 ac_preproc_ok=false
6298 for ac_c_preproc_warn_flag in '' yes
6299 do
6300 # Use a header file that comes with gcc, so configuring glibc
6301 # with a fresh cross-compiler works.
6302 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6303 # <limits.h> exists even on freestanding compilers.
6304 # On the NeXT, cc -E runs the code through the compiler's parser,
6305 # not just through cpp. "Syntax error" is here to catch this case.
6306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6307 /* end confdefs.h. */
6308 #ifdef __STDC__
6309 # include <limits.h>
6310 #else
6311 # include <assert.h>
6312 #endif
6313 Syntax error
6314 _ACEOF
6315 if ac_fn_c_try_cpp "$LINENO"; then :
6316
6317 else
6318 # Broken: fails on valid input.
6319 continue
6320 fi
6321 rm -f conftest.err conftest.i conftest.$ac_ext
6322
6323 # OK, works on sane cases. Now check whether nonexistent headers
6324 # can be detected and how.
6325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6326 /* end confdefs.h. */
6327 #include <ac_nonexistent.h>
6328 _ACEOF
6329 if ac_fn_c_try_cpp "$LINENO"; then :
6330 # Broken: success on invalid input.
6331 continue
6332 else
6333 # Passes both tests.
6334 ac_preproc_ok=:
6335 break
6336 fi
6337 rm -f conftest.err conftest.i conftest.$ac_ext
6338
6339 done
6340 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6341 rm -f conftest.i conftest.err conftest.$ac_ext
6342 if $ac_preproc_ok; then :
6343 break
6344 fi
6345
6346 done
6347 ac_cv_prog_CPP=$CPP
6348
6349 fi
6350 CPP=$ac_cv_prog_CPP
6351 else
6352 ac_cv_prog_CPP=$CPP
6353 fi
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6355 $as_echo "$CPP" >&6; }
6356 ac_preproc_ok=false
6357 for ac_c_preproc_warn_flag in '' yes
6358 do
6359 # Use a header file that comes with gcc, so configuring glibc
6360 # with a fresh cross-compiler works.
6361 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6362 # <limits.h> exists even on freestanding compilers.
6363 # On the NeXT, cc -E runs the code through the compiler's parser,
6364 # not just through cpp. "Syntax error" is here to catch this case.
6365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6366 /* end confdefs.h. */
6367 #ifdef __STDC__
6368 # include <limits.h>
6369 #else
6370 # include <assert.h>
6371 #endif
6372 Syntax error
6373 _ACEOF
6374 if ac_fn_c_try_cpp "$LINENO"; then :
6375
6376 else
6377 # Broken: fails on valid input.
6378 continue
6379 fi
6380 rm -f conftest.err conftest.i conftest.$ac_ext
6381
6382 # OK, works on sane cases. Now check whether nonexistent headers
6383 # can be detected and how.
6384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6385 /* end confdefs.h. */
6386 #include <ac_nonexistent.h>
6387 _ACEOF
6388 if ac_fn_c_try_cpp "$LINENO"; then :
6389 # Broken: success on invalid input.
6390 continue
6391 else
6392 # Passes both tests.
6393 ac_preproc_ok=:
6394 break
6395 fi
6396 rm -f conftest.err conftest.i conftest.$ac_ext
6397
6398 done
6399 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6400 rm -f conftest.i conftest.err conftest.$ac_ext
6401 if $ac_preproc_ok; then :
6402
6403 else
6404 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6405 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6406 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6407 See \`config.log' for more details" "$LINENO" 5; }
6408 fi
6409
6410 ac_ext=c
6411 ac_cpp='$CPP $CPPFLAGS'
6412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6415
6416
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6418 $as_echo_n "checking whether ln -s works... " >&6; }
6419 LN_S=$as_ln_s
6420 if test "$LN_S" = "ln -s"; then
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6422 $as_echo "yes" >&6; }
6423 else
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6425 $as_echo "no, using $LN_S" >&6; }
6426 fi
6427
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6429 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6430 set x ${MAKE-make}
6431 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6432 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6433 $as_echo_n "(cached) " >&6
6434 else
6435 cat >conftest.make <<\_ACEOF
6436 SHELL = /bin/sh
6437 all:
6438 @echo '@@@%%%=$(MAKE)=@@@%%%'
6439 _ACEOF
6440 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6441 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6442 *@@@%%%=?*=@@@%%%*)
6443 eval ac_cv_prog_make_${ac_make}_set=yes;;
6444 *)
6445 eval ac_cv_prog_make_${ac_make}_set=no;;
6446 esac
6447 rm -f conftest.make
6448 fi
6449 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6451 $as_echo "yes" >&6; }
6452 SET_MAKE=
6453 else
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6455 $as_echo "no" >&6; }
6456 SET_MAKE="MAKE=${MAKE-make}"
6457 fi
6458
6459 if test -n "$ac_tool_prefix"; then
6460 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6461 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6463 $as_echo_n "checking for $ac_word... " >&6; }
6464 if ${ac_cv_prog_RANLIB+:} false; then :
6465 $as_echo_n "(cached) " >&6
6466 else
6467 if test -n "$RANLIB"; then
6468 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6469 else
6470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6471 for as_dir in $PATH
6472 do
6473 IFS=$as_save_IFS
6474 test -z "$as_dir" && as_dir=.
6475 for ac_exec_ext in '' $ac_executable_extensions; do
6476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6477 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6479 break 2
6480 fi
6481 done
6482 done
6483 IFS=$as_save_IFS
6484
6485 fi
6486 fi
6487 RANLIB=$ac_cv_prog_RANLIB
6488 if test -n "$RANLIB"; then
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6490 $as_echo "$RANLIB" >&6; }
6491 else
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6493 $as_echo "no" >&6; }
6494 fi
6495
6496
6497 fi
6498 if test -z "$ac_cv_prog_RANLIB"; then
6499 ac_ct_RANLIB=$RANLIB
6500 # Extract the first word of "ranlib", so it can be a program name with args.
6501 set dummy ranlib; ac_word=$2
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6503 $as_echo_n "checking for $ac_word... " >&6; }
6504 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6505 $as_echo_n "(cached) " >&6
6506 else
6507 if test -n "$ac_ct_RANLIB"; then
6508 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6509 else
6510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6511 for as_dir in $PATH
6512 do
6513 IFS=$as_save_IFS
6514 test -z "$as_dir" && as_dir=.
6515 for ac_exec_ext in '' $ac_executable_extensions; do
6516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6517 ac_cv_prog_ac_ct_RANLIB="ranlib"
6518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6519 break 2
6520 fi
6521 done
6522 done
6523 IFS=$as_save_IFS
6524
6525 fi
6526 fi
6527 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6528 if test -n "$ac_ct_RANLIB"; then
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6530 $as_echo "$ac_ct_RANLIB" >&6; }
6531 else
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6533 $as_echo "no" >&6; }
6534 fi
6535
6536 if test "x$ac_ct_RANLIB" = x; then
6537 RANLIB=":"
6538 else
6539 case $cross_compiling:$ac_tool_warned in
6540 yes:)
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6543 ac_tool_warned=yes ;;
6544 esac
6545 RANLIB=$ac_ct_RANLIB
6546 fi
6547 else
6548 RANLIB="$ac_cv_prog_RANLIB"
6549 fi
6550
6551
6552 # Fixes the warning for automake >= 1.12
6553 if test -n "$ac_tool_prefix"; then
6554 for ac_prog in ar lib "link -lib"
6555 do
6556 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6557 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6559 $as_echo_n "checking for $ac_word... " >&6; }
6560 if ${ac_cv_prog_AR+:} false; then :
6561 $as_echo_n "(cached) " >&6
6562 else
6563 if test -n "$AR"; then
6564 ac_cv_prog_AR="$AR" # Let the user override the test.
6565 else
6566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6567 for as_dir in $PATH
6568 do
6569 IFS=$as_save_IFS
6570 test -z "$as_dir" && as_dir=.
6571 for ac_exec_ext in '' $ac_executable_extensions; do
6572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6573 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6575 break 2
6576 fi
6577 done
6578 done
6579 IFS=$as_save_IFS
6580
6581 fi
6582 fi
6583 AR=$ac_cv_prog_AR
6584 if test -n "$AR"; then
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6586 $as_echo "$AR" >&6; }
6587 else
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6589 $as_echo "no" >&6; }
6590 fi
6591
6592
6593 test -n "$AR" && break
6594 done
6595 fi
6596 if test -z "$AR"; then
6597 ac_ct_AR=$AR
6598 for ac_prog in ar lib "link -lib"
6599 do
6600 # Extract the first word of "$ac_prog", so it can be a program name with args.
6601 set dummy $ac_prog; ac_word=$2
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6603 $as_echo_n "checking for $ac_word... " >&6; }
6604 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6605 $as_echo_n "(cached) " >&6
6606 else
6607 if test -n "$ac_ct_AR"; then
6608 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6609 else
6610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6611 for as_dir in $PATH
6612 do
6613 IFS=$as_save_IFS
6614 test -z "$as_dir" && as_dir=.
6615 for ac_exec_ext in '' $ac_executable_extensions; do
6616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6617 ac_cv_prog_ac_ct_AR="$ac_prog"
6618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6619 break 2
6620 fi
6621 done
6622 done
6623 IFS=$as_save_IFS
6624
6625 fi
6626 fi
6627 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6628 if test -n "$ac_ct_AR"; then
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6630 $as_echo "$ac_ct_AR" >&6; }
6631 else
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6633 $as_echo "no" >&6; }
6634 fi
6635
6636
6637 test -n "$ac_ct_AR" && break
6638 done
6639
6640 if test "x$ac_ct_AR" = x; then
6641 AR="false"
6642 else
6643 case $cross_compiling:$ac_tool_warned in
6644 yes:)
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6646 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6647 ac_tool_warned=yes ;;
6648 esac
6649 AR=$ac_ct_AR
6650 fi
6651 fi
6652
6653 : ${AR=ar}
6654
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
6656 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
6657 if ${am_cv_ar_interface+:} false; then :
6658 $as_echo_n "(cached) " >&6
6659 else
6660 ac_ext=c
6661 ac_cpp='$CPP $CPPFLAGS'
6662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6665
6666 am_cv_ar_interface=ar
6667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6668 /* end confdefs.h. */
6669 int some_variable = 0;
6670 _ACEOF
6671 if ac_fn_c_try_compile "$LINENO"; then :
6672 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
6673 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6674 (eval $am_ar_try) 2>&5
6675 ac_status=$?
6676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6677 test $ac_status = 0; }
6678 if test "$ac_status" -eq 0; then
6679 am_cv_ar_interface=ar
6680 else
6681 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
6682 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6683 (eval $am_ar_try) 2>&5
6684 ac_status=$?
6685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6686 test $ac_status = 0; }
6687 if test "$ac_status" -eq 0; then
6688 am_cv_ar_interface=lib
6689 else
6690 am_cv_ar_interface=unknown
6691 fi
6692 fi
6693 rm -f conftest.lib libconftest.a
6694
6695 fi
6696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6697 ac_ext=c
6698 ac_cpp='$CPP $CPPFLAGS'
6699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6702
6703 fi
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6705 $as_echo "$am_cv_ar_interface" >&6; }
6706
6707 case $am_cv_ar_interface in
6708 ar)
6709 ;;
6710 lib)
6711 # Microsoft lib, so override with the ar-lib wrapper script.
6712 # FIXME: It is wrong to rewrite AR.
6713 # But if we don't then we get into trouble of one sort or another.
6714 # A longer-term fix would be to have automake use am__AR in this case,
6715 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6716 # similar.
6717 AR="$am_aux_dir/ar-lib $AR"
6718 ;;
6719 unknown)
6720 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6721 ;;
6722 esac
6723
6724
6725 case `pwd` in
6726 *\ * | *\ *)
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6728 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6729 esac
6730
6731
6732
6733 macro_version='2.4.6'
6734 macro_revision='2.4.6'
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748 ltmain=$ac_aux_dir/ltmain.sh
6749
6750 # Backslashify metacharacters that are still active within
6751 # double-quoted strings.
6752 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6753
6754 # Same as above, but do not quote variable references.
6755 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6756
6757 # Sed substitution to delay expansion of an escaped shell variable in a
6758 # double_quote_subst'ed string.
6759 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6760
6761 # Sed substitution to delay expansion of an escaped single quote.
6762 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6763
6764 # Sed substitution to avoid accidental globbing in evaled expressions
6765 no_glob_subst='s/\*/\\\*/g'
6766
6767 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6768 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6769 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6770
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6772 $as_echo_n "checking how to print strings... " >&6; }
6773 # Test print first, because it will be a builtin if present.
6774 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6775 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6776 ECHO='print -r --'
6777 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6778 ECHO='printf %s\n'
6779 else
6780 # Use this function as a fallback that always works.
6781 func_fallback_echo ()
6782 {
6783 eval 'cat <<_LTECHO_EOF
6784 $1
6785 _LTECHO_EOF'
6786 }
6787 ECHO='func_fallback_echo'
6788 fi
6789
6790 # func_echo_all arg...
6791 # Invoke $ECHO with all args, space-separated.
6792 func_echo_all ()
6793 {
6794 $ECHO ""
6795 }
6796
6797 case $ECHO in
6798 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6799 $as_echo "printf" >&6; } ;;
6800 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6801 $as_echo "print -r" >&6; } ;;
6802 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6803 $as_echo "cat" >&6; } ;;
6804 esac
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6820 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6821 if ${ac_cv_path_SED+:} false; then :
6822 $as_echo_n "(cached) " >&6
6823 else
6824 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6825 for ac_i in 1 2 3 4 5 6 7; do
6826 ac_script="$ac_script$as_nl$ac_script"
6827 done
6828 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6829 { ac_script=; unset ac_script;}
6830 if test -z "$SED"; then
6831 ac_path_SED_found=false
6832 # Loop through the user's path and test for each of PROGNAME-LIST
6833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834 for as_dir in $PATH
6835 do
6836 IFS=$as_save_IFS
6837 test -z "$as_dir" && as_dir=.
6838 for ac_prog in sed gsed; do
6839 for ac_exec_ext in '' $ac_executable_extensions; do
6840 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6841 as_fn_executable_p "$ac_path_SED" || continue
6842 # Check for GNU ac_path_SED and select it if it is found.
6843 # Check for GNU $ac_path_SED
6844 case `"$ac_path_SED" --version 2>&1` in
6845 *GNU*)
6846 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6847 *)
6848 ac_count=0
6849 $as_echo_n 0123456789 >"conftest.in"
6850 while :
6851 do
6852 cat "conftest.in" "conftest.in" >"conftest.tmp"
6853 mv "conftest.tmp" "conftest.in"
6854 cp "conftest.in" "conftest.nl"
6855 $as_echo '' >> "conftest.nl"
6856 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6857 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6858 as_fn_arith $ac_count + 1 && ac_count=$as_val
6859 if test $ac_count -gt ${ac_path_SED_max-0}; then
6860 # Best one so far, save it but keep looking for a better one
6861 ac_cv_path_SED="$ac_path_SED"
6862 ac_path_SED_max=$ac_count
6863 fi
6864 # 10*(2^10) chars as input seems more than enough
6865 test $ac_count -gt 10 && break
6866 done
6867 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6868 esac
6869
6870 $ac_path_SED_found && break 3
6871 done
6872 done
6873 done
6874 IFS=$as_save_IFS
6875 if test -z "$ac_cv_path_SED"; then
6876 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6877 fi
6878 else
6879 ac_cv_path_SED=$SED
6880 fi
6881
6882 fi
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6884 $as_echo "$ac_cv_path_SED" >&6; }
6885 SED="$ac_cv_path_SED"
6886 rm -f conftest.sed
6887
6888 test -z "$SED" && SED=sed
6889 Xsed="$SED -e 1s/^X//"
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6902 $as_echo_n "checking for fgrep... " >&6; }
6903 if ${ac_cv_path_FGREP+:} false; then :
6904 $as_echo_n "(cached) " >&6
6905 else
6906 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6907 then ac_cv_path_FGREP="$GREP -F"
6908 else
6909 if test -z "$FGREP"; then
6910 ac_path_FGREP_found=false
6911 # Loop through the user's path and test for each of PROGNAME-LIST
6912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6914 do
6915 IFS=$as_save_IFS
6916 test -z "$as_dir" && as_dir=.
6917 for ac_prog in fgrep; do
6918 for ac_exec_ext in '' $ac_executable_extensions; do
6919 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6920 as_fn_executable_p "$ac_path_FGREP" || continue
6921 # Check for GNU ac_path_FGREP and select it if it is found.
6922 # Check for GNU $ac_path_FGREP
6923 case `"$ac_path_FGREP" --version 2>&1` in
6924 *GNU*)
6925 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6926 *)
6927 ac_count=0
6928 $as_echo_n 0123456789 >"conftest.in"
6929 while :
6930 do
6931 cat "conftest.in" "conftest.in" >"conftest.tmp"
6932 mv "conftest.tmp" "conftest.in"
6933 cp "conftest.in" "conftest.nl"
6934 $as_echo 'FGREP' >> "conftest.nl"
6935 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6936 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6937 as_fn_arith $ac_count + 1 && ac_count=$as_val
6938 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6939 # Best one so far, save it but keep looking for a better one
6940 ac_cv_path_FGREP="$ac_path_FGREP"
6941 ac_path_FGREP_max=$ac_count
6942 fi
6943 # 10*(2^10) chars as input seems more than enough
6944 test $ac_count -gt 10 && break
6945 done
6946 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6947 esac
6948
6949 $ac_path_FGREP_found && break 3
6950 done
6951 done
6952 done
6953 IFS=$as_save_IFS
6954 if test -z "$ac_cv_path_FGREP"; then
6955 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6956 fi
6957 else
6958 ac_cv_path_FGREP=$FGREP
6959 fi
6960
6961 fi
6962 fi
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6964 $as_echo "$ac_cv_path_FGREP" >&6; }
6965 FGREP="$ac_cv_path_FGREP"
6966
6967
6968 test -z "$GREP" && GREP=grep
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988 # Check whether --with-gnu-ld was given.
6989 if test "${with_gnu_ld+set}" = set; then :
6990 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6991 else
6992 with_gnu_ld=no
6993 fi
6994
6995 ac_prog=ld
6996 if test yes = "$GCC"; then
6997 # Check if gcc -print-prog-name=ld gives a path.
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6999 $as_echo_n "checking for ld used by $CC... " >&6; }
7000 case $host in
7001 *-*-mingw*)
7002 # gcc leaves a trailing carriage return, which upsets mingw
7003 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7004 *)
7005 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7006 esac
7007 case $ac_prog in
7008 # Accept absolute paths.
7009 [\\/]* | ?:[\\/]*)
7010 re_direlt='/[^/][^/]*/\.\./'
7011 # Canonicalize the pathname of ld
7012 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7013 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7014 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7015 done
7016 test -z "$LD" && LD=$ac_prog
7017 ;;
7018 "")
7019 # If it fails, then pretend we aren't using GCC.
7020 ac_prog=ld
7021 ;;
7022 *)
7023 # If it is relative, then search for the first ld in PATH.
7024 with_gnu_ld=unknown
7025 ;;
7026 esac
7027 elif test yes = "$with_gnu_ld"; then
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7029 $as_echo_n "checking for GNU ld... " >&6; }
7030 else
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7032 $as_echo_n "checking for non-GNU ld... " >&6; }
7033 fi
7034 if ${lt_cv_path_LD+:} false; then :
7035 $as_echo_n "(cached) " >&6
7036 else
7037 if test -z "$LD"; then
7038 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7039 for ac_dir in $PATH; do
7040 IFS=$lt_save_ifs
7041 test -z "$ac_dir" && ac_dir=.
7042 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7043 lt_cv_path_LD=$ac_dir/$ac_prog
7044 # Check to see if the program is GNU ld. I'd rather use --version,
7045 # but apparently some variants of GNU ld only accept -v.
7046 # Break only if it was the GNU/non-GNU ld that we prefer.
7047 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7048 *GNU* | *'with BFD'*)
7049 test no != "$with_gnu_ld" && break
7050 ;;
7051 *)
7052 test yes != "$with_gnu_ld" && break
7053 ;;
7054 esac
7055 fi
7056 done
7057 IFS=$lt_save_ifs
7058 else
7059 lt_cv_path_LD=$LD # Let the user override the test with a path.
7060 fi
7061 fi
7062
7063 LD=$lt_cv_path_LD
7064 if test -n "$LD"; then
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7066 $as_echo "$LD" >&6; }
7067 else
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7069 $as_echo "no" >&6; }
7070 fi
7071 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7073 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7074 if ${lt_cv_prog_gnu_ld+:} false; then :
7075 $as_echo_n "(cached) " >&6
7076 else
7077 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7078 case `$LD -v 2>&1 </dev/null` in
7079 *GNU* | *'with BFD'*)
7080 lt_cv_prog_gnu_ld=yes
7081 ;;
7082 *)
7083 lt_cv_prog_gnu_ld=no
7084 ;;
7085 esac
7086 fi
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7088 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7089 with_gnu_ld=$lt_cv_prog_gnu_ld
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7100 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7101 if ${lt_cv_path_NM+:} false; then :
7102 $as_echo_n "(cached) " >&6
7103 else
7104 if test -n "$NM"; then
7105 # Let the user override the test.
7106 lt_cv_path_NM=$NM
7107 else
7108 lt_nm_to_check=${ac_tool_prefix}nm
7109 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7110 lt_nm_to_check="$lt_nm_to_check nm"
7111 fi
7112 for lt_tmp_nm in $lt_nm_to_check; do
7113 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7114 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7115 IFS=$lt_save_ifs
7116 test -z "$ac_dir" && ac_dir=.
7117 tmp_nm=$ac_dir/$lt_tmp_nm
7118 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7119 # Check to see if the nm accepts a BSD-compat flag.
7120 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7121 # nm: unknown option "B" ignored
7122 # Tru64's nm complains that /dev/null is an invalid object file
7123 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7124 case $build_os in
7125 mingw*) lt_bad_file=conftest.nm/nofile ;;
7126 *) lt_bad_file=/dev/null ;;
7127 esac
7128 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7129 *$lt_bad_file* | *'Invalid file or object type'*)
7130 lt_cv_path_NM="$tmp_nm -B"
7131 break 2
7132 ;;
7133 *)
7134 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7135 */dev/null*)
7136 lt_cv_path_NM="$tmp_nm -p"
7137 break 2
7138 ;;
7139 *)
7140 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7141 continue # so that we can try to find one that supports BSD flags
7142 ;;
7143 esac
7144 ;;
7145 esac
7146 fi
7147 done
7148 IFS=$lt_save_ifs
7149 done
7150 : ${lt_cv_path_NM=no}
7151 fi
7152 fi
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7154 $as_echo "$lt_cv_path_NM" >&6; }
7155 if test no != "$lt_cv_path_NM"; then
7156 NM=$lt_cv_path_NM
7157 else
7158 # Didn't find any BSD compatible name lister, look for dumpbin.
7159 if test -n "$DUMPBIN"; then :
7160 # Let the user override the test.
7161 else
7162 if test -n "$ac_tool_prefix"; then
7163 for ac_prog in dumpbin "link -dump"
7164 do
7165 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7166 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7168 $as_echo_n "checking for $ac_word... " >&6; }
7169 if ${ac_cv_prog_DUMPBIN+:} false; then :
7170 $as_echo_n "(cached) " >&6
7171 else
7172 if test -n "$DUMPBIN"; then
7173 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7174 else
7175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176 for as_dir in $PATH
7177 do
7178 IFS=$as_save_IFS
7179 test -z "$as_dir" && as_dir=.
7180 for ac_exec_ext in '' $ac_executable_extensions; do
7181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7182 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7184 break 2
7185 fi
7186 done
7187 done
7188 IFS=$as_save_IFS
7189
7190 fi
7191 fi
7192 DUMPBIN=$ac_cv_prog_DUMPBIN
7193 if test -n "$DUMPBIN"; then
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7195 $as_echo "$DUMPBIN" >&6; }
7196 else
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7198 $as_echo "no" >&6; }
7199 fi
7200
7201
7202 test -n "$DUMPBIN" && break
7203 done
7204 fi
7205 if test -z "$DUMPBIN"; then
7206 ac_ct_DUMPBIN=$DUMPBIN
7207 for ac_prog in dumpbin "link -dump"
7208 do
7209 # Extract the first word of "$ac_prog", so it can be a program name with args.
7210 set dummy $ac_prog; ac_word=$2
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7212 $as_echo_n "checking for $ac_word... " >&6; }
7213 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7214 $as_echo_n "(cached) " >&6
7215 else
7216 if test -n "$ac_ct_DUMPBIN"; then
7217 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7218 else
7219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7220 for as_dir in $PATH
7221 do
7222 IFS=$as_save_IFS
7223 test -z "$as_dir" && as_dir=.
7224 for ac_exec_ext in '' $ac_executable_extensions; do
7225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7226 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7228 break 2
7229 fi
7230 done
7231 done
7232 IFS=$as_save_IFS
7233
7234 fi
7235 fi
7236 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7237 if test -n "$ac_ct_DUMPBIN"; then
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7239 $as_echo "$ac_ct_DUMPBIN" >&6; }
7240 else
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7242 $as_echo "no" >&6; }
7243 fi
7244
7245
7246 test -n "$ac_ct_DUMPBIN" && break
7247 done
7248
7249 if test "x$ac_ct_DUMPBIN" = x; then
7250 DUMPBIN=":"
7251 else
7252 case $cross_compiling:$ac_tool_warned in
7253 yes:)
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7256 ac_tool_warned=yes ;;
7257 esac
7258 DUMPBIN=$ac_ct_DUMPBIN
7259 fi
7260 fi
7261
7262 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7263 *COFF*)
7264 DUMPBIN="$DUMPBIN -symbols -headers"
7265 ;;
7266 *)
7267 DUMPBIN=:
7268 ;;
7269 esac
7270 fi
7271
7272 if test : != "$DUMPBIN"; then
7273 NM=$DUMPBIN
7274 fi
7275 fi
7276 test -z "$NM" && NM=nm
7277
7278
7279
7280
7281
7282
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7284 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7285 if ${lt_cv_nm_interface+:} false; then :
7286 $as_echo_n "(cached) " >&6
7287 else
7288 lt_cv_nm_interface="BSD nm"
7289 echo "int some_variable = 0;" > conftest.$ac_ext
7290 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7291 (eval "$ac_compile" 2>conftest.err)
7292 cat conftest.err >&5
7293 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7294 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7295 cat conftest.err >&5
7296 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7297 cat conftest.out >&5
7298 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7299 lt_cv_nm_interface="MS dumpbin"
7300 fi
7301 rm -f conftest*
7302 fi
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7304 $as_echo "$lt_cv_nm_interface" >&6; }
7305
7306 # find the maximum length of command line arguments
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7308 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7309 if ${lt_cv_sys_max_cmd_len+:} false; then :
7310 $as_echo_n "(cached) " >&6
7311 else
7312 i=0
7313 teststring=ABCD
7314
7315 case $build_os in
7316 msdosdjgpp*)
7317 # On DJGPP, this test can blow up pretty badly due to problems in libc
7318 # (any single argument exceeding 2000 bytes causes a buffer overrun
7319 # during glob expansion). Even if it were fixed, the result of this
7320 # check would be larger than it should be.
7321 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7322 ;;
7323
7324 gnu*)
7325 # Under GNU Hurd, this test is not required because there is
7326 # no limit to the length of command line arguments.
7327 # Libtool will interpret -1 as no limit whatsoever
7328 lt_cv_sys_max_cmd_len=-1;
7329 ;;
7330
7331 cygwin* | mingw* | cegcc*)
7332 # On Win9x/ME, this test blows up -- it succeeds, but takes
7333 # about 5 minutes as the teststring grows exponentially.
7334 # Worse, since 9x/ME are not pre-emptively multitasking,
7335 # you end up with a "frozen" computer, even though with patience
7336 # the test eventually succeeds (with a max line length of 256k).
7337 # Instead, let's just punt: use the minimum linelength reported by
7338 # all of the supported platforms: 8192 (on NT/2K/XP).
7339 lt_cv_sys_max_cmd_len=8192;
7340 ;;
7341
7342 mint*)
7343 # On MiNT this can take a long time and run out of memory.
7344 lt_cv_sys_max_cmd_len=8192;
7345 ;;
7346
7347 amigaos*)
7348 # On AmigaOS with pdksh, this test takes hours, literally.
7349 # So we just punt and use a minimum line length of 8192.
7350 lt_cv_sys_max_cmd_len=8192;
7351 ;;
7352
7353 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7354 # This has been around since 386BSD, at least. Likely further.
7355 if test -x /sbin/sysctl; then
7356 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7357 elif test -x /usr/sbin/sysctl; then
7358 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7359 else
7360 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7361 fi
7362 # And add a safety zone
7363 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7364 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7365 ;;
7366
7367 interix*)
7368 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7369 lt_cv_sys_max_cmd_len=196608
7370 ;;
7371
7372 os2*)
7373 # The test takes a long time on OS/2.
7374 lt_cv_sys_max_cmd_len=8192
7375 ;;
7376
7377 osf*)
7378 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7379 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7380 # nice to cause kernel panics so lets avoid the loop below.
7381 # First set a reasonable default.
7382 lt_cv_sys_max_cmd_len=16384
7383 #
7384 if test -x /sbin/sysconfig; then
7385 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7386 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7387 esac
7388 fi
7389 ;;
7390 sco3.2v5*)
7391 lt_cv_sys_max_cmd_len=102400
7392 ;;
7393 sysv5* | sco5v6* | sysv4.2uw2*)
7394 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7395 if test -n "$kargmax"; then
7396 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7397 else
7398 lt_cv_sys_max_cmd_len=32768
7399 fi
7400 ;;
7401 *)
7402 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7403 if test -n "$lt_cv_sys_max_cmd_len" && \
7404 test undefined != "$lt_cv_sys_max_cmd_len"; then
7405 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7406 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7407 else
7408 # Make teststring a little bigger before we do anything with it.
7409 # a 1K string should be a reasonable start.
7410 for i in 1 2 3 4 5 6 7 8; do
7411 teststring=$teststring$teststring
7412 done
7413 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7414 # If test is not a shell built-in, we'll probably end up computing a
7415 # maximum length that is only half of the actual maximum length, but
7416 # we can't tell.
7417 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7418 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7419 test 17 != "$i" # 1/2 MB should be enough
7420 do
7421 i=`expr $i + 1`
7422 teststring=$teststring$teststring
7423 done
7424 # Only check the string length outside the loop.
7425 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7426 teststring=
7427 # Add a significant safety factor because C++ compilers can tack on
7428 # massive amounts of additional arguments before passing them to the
7429 # linker. It appears as though 1/2 is a usable value.
7430 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7431 fi
7432 ;;
7433 esac
7434
7435 fi
7436
7437 if test -n "$lt_cv_sys_max_cmd_len"; then
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7439 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7440 else
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7442 $as_echo "none" >&6; }
7443 fi
7444 max_cmd_len=$lt_cv_sys_max_cmd_len
7445
7446
7447
7448
7449
7450
7451 : ${CP="cp -f"}
7452 : ${MV="mv -f"}
7453 : ${RM="rm -f"}
7454
7455 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7456 lt_unset=unset
7457 else
7458 lt_unset=false
7459 fi
7460
7461
7462
7463
7464
7465 # test EBCDIC or ASCII
7466 case `echo X|tr X '\101'` in
7467 A) # ASCII based system
7468 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7469 lt_SP2NL='tr \040 \012'
7470 lt_NL2SP='tr \015\012 \040\040'
7471 ;;
7472 *) # EBCDIC based system
7473 lt_SP2NL='tr \100 \n'
7474 lt_NL2SP='tr \r\n \100\100'
7475 ;;
7476 esac
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7487 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7488 if ${lt_cv_to_host_file_cmd+:} false; then :
7489 $as_echo_n "(cached) " >&6
7490 else
7491 case $host in
7492 *-*-mingw* )
7493 case $build in
7494 *-*-mingw* ) # actually msys
7495 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7496 ;;
7497 *-*-cygwin* )
7498 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7499 ;;
7500 * ) # otherwise, assume *nix
7501 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7502 ;;
7503 esac
7504 ;;
7505 *-*-cygwin* )
7506 case $build in
7507 *-*-mingw* ) # actually msys
7508 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7509 ;;
7510 *-*-cygwin* )
7511 lt_cv_to_host_file_cmd=func_convert_file_noop
7512 ;;
7513 * ) # otherwise, assume *nix
7514 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7515 ;;
7516 esac
7517 ;;
7518 * ) # unhandled hosts (and "normal" native builds)
7519 lt_cv_to_host_file_cmd=func_convert_file_noop
7520 ;;
7521 esac
7522
7523 fi
7524
7525 to_host_file_cmd=$lt_cv_to_host_file_cmd
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7527 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7528
7529
7530
7531
7532
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7534 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7535 if ${lt_cv_to_tool_file_cmd+:} false; then :
7536 $as_echo_n "(cached) " >&6
7537 else
7538 #assume ordinary cross tools, or native build.
7539 lt_cv_to_tool_file_cmd=func_convert_file_noop
7540 case $host in
7541 *-*-mingw* )
7542 case $build in
7543 *-*-mingw* ) # actually msys
7544 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7545 ;;
7546 esac
7547 ;;
7548 esac
7549
7550 fi
7551
7552 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7554 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7555
7556
7557
7558
7559
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7561 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7562 if ${lt_cv_ld_reload_flag+:} false; then :
7563 $as_echo_n "(cached) " >&6
7564 else
7565 lt_cv_ld_reload_flag='-r'
7566 fi
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7568 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7569 reload_flag=$lt_cv_ld_reload_flag
7570 case $reload_flag in
7571 "" | " "*) ;;
7572 *) reload_flag=" $reload_flag" ;;
7573 esac
7574 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7575 case $host_os in
7576 cygwin* | mingw* | pw32* | cegcc*)
7577 if test yes != "$GCC"; then
7578 reload_cmds=false
7579 fi
7580 ;;
7581 darwin*)
7582 if test yes = "$GCC"; then
7583 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7584 else
7585 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7586 fi
7587 ;;
7588 esac
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598 if test -n "$ac_tool_prefix"; then
7599 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7600 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7602 $as_echo_n "checking for $ac_word... " >&6; }
7603 if ${ac_cv_prog_OBJDUMP+:} false; then :
7604 $as_echo_n "(cached) " >&6
7605 else
7606 if test -n "$OBJDUMP"; then
7607 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7608 else
7609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7610 for as_dir in $PATH
7611 do
7612 IFS=$as_save_IFS
7613 test -z "$as_dir" && as_dir=.
7614 for ac_exec_ext in '' $ac_executable_extensions; do
7615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7616 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7618 break 2
7619 fi
7620 done
7621 done
7622 IFS=$as_save_IFS
7623
7624 fi
7625 fi
7626 OBJDUMP=$ac_cv_prog_OBJDUMP
7627 if test -n "$OBJDUMP"; then
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7629 $as_echo "$OBJDUMP" >&6; }
7630 else
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7632 $as_echo "no" >&6; }
7633 fi
7634
7635
7636 fi
7637 if test -z "$ac_cv_prog_OBJDUMP"; then
7638 ac_ct_OBJDUMP=$OBJDUMP
7639 # Extract the first word of "objdump", so it can be a program name with args.
7640 set dummy objdump; ac_word=$2
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7642 $as_echo_n "checking for $ac_word... " >&6; }
7643 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7644 $as_echo_n "(cached) " >&6
7645 else
7646 if test -n "$ac_ct_OBJDUMP"; then
7647 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7648 else
7649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7650 for as_dir in $PATH
7651 do
7652 IFS=$as_save_IFS
7653 test -z "$as_dir" && as_dir=.
7654 for ac_exec_ext in '' $ac_executable_extensions; do
7655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7656 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7658 break 2
7659 fi
7660 done
7661 done
7662 IFS=$as_save_IFS
7663
7664 fi
7665 fi
7666 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7667 if test -n "$ac_ct_OBJDUMP"; then
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7669 $as_echo "$ac_ct_OBJDUMP" >&6; }
7670 else
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7672 $as_echo "no" >&6; }
7673 fi
7674
7675 if test "x$ac_ct_OBJDUMP" = x; then
7676 OBJDUMP="false"
7677 else
7678 case $cross_compiling:$ac_tool_warned in
7679 yes:)
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7682 ac_tool_warned=yes ;;
7683 esac
7684 OBJDUMP=$ac_ct_OBJDUMP
7685 fi
7686 else
7687 OBJDUMP="$ac_cv_prog_OBJDUMP"
7688 fi
7689
7690 test -z "$OBJDUMP" && OBJDUMP=objdump
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7701 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7702 if ${lt_cv_deplibs_check_method+:} false; then :
7703 $as_echo_n "(cached) " >&6
7704 else
7705 lt_cv_file_magic_cmd='$MAGIC_CMD'
7706 lt_cv_file_magic_test_file=
7707 lt_cv_deplibs_check_method='unknown'
7708 # Need to set the preceding variable on all platforms that support
7709 # interlibrary dependencies.
7710 # 'none' -- dependencies not supported.
7711 # 'unknown' -- same as none, but documents that we really don't know.
7712 # 'pass_all' -- all dependencies passed with no checks.
7713 # 'test_compile' -- check by making test program.
7714 # 'file_magic [[regex]]' -- check by looking for files in library path
7715 # that responds to the $file_magic_cmd with a given extended regex.
7716 # If you have 'file' or equivalent on your system and you're not sure
7717 # whether 'pass_all' will *always* work, you probably want this one.
7718
7719 case $host_os in
7720 aix[4-9]*)
7721 lt_cv_deplibs_check_method=pass_all
7722 ;;
7723
7724 beos*)
7725 lt_cv_deplibs_check_method=pass_all
7726 ;;
7727
7728 bsdi[45]*)
7729 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7730 lt_cv_file_magic_cmd='/usr/bin/file -L'
7731 lt_cv_file_magic_test_file=/shlib/libc.so
7732 ;;
7733
7734 cygwin*)
7735 # func_win32_libid is a shell function defined in ltmain.sh
7736 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7737 lt_cv_file_magic_cmd='func_win32_libid'
7738 ;;
7739
7740 mingw* | pw32*)
7741 # Base MSYS/MinGW do not provide the 'file' command needed by
7742 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7743 # unless we find 'file', for example because we are cross-compiling.
7744 if ( file / ) >/dev/null 2>&1; then
7745 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7746 lt_cv_file_magic_cmd='func_win32_libid'
7747 else
7748 # Keep this pattern in sync with the one in func_win32_libid.
7749 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7750 lt_cv_file_magic_cmd='$OBJDUMP -f'
7751 fi
7752 ;;
7753
7754 cegcc*)
7755 # use the weaker test based on 'objdump'. See mingw*.
7756 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7757 lt_cv_file_magic_cmd='$OBJDUMP -f'
7758 ;;
7759
7760 darwin* | rhapsody*)
7761 lt_cv_deplibs_check_method=pass_all
7762 ;;
7763
7764 freebsd* | dragonfly*)
7765 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7766 case $host_cpu in
7767 i*86 )
7768 # Not sure whether the presence of OpenBSD here was a mistake.
7769 # Let's accept both of them until this is cleared up.
7770 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7771 lt_cv_file_magic_cmd=/usr/bin/file
7772 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7773 ;;
7774 esac
7775 else
7776 lt_cv_deplibs_check_method=pass_all
7777 fi
7778 ;;
7779
7780 haiku*)
7781 lt_cv_deplibs_check_method=pass_all
7782 ;;
7783
7784 hpux10.20* | hpux11*)
7785 lt_cv_file_magic_cmd=/usr/bin/file
7786 case $host_cpu in
7787 ia64*)
7788 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7789 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7790 ;;
7791 hppa*64*)
7792 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]'
7793 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7794 ;;
7795 *)
7796 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7797 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7798 ;;
7799 esac
7800 ;;
7801
7802 interix[3-9]*)
7803 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7804 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7805 ;;
7806
7807 irix5* | irix6* | nonstopux*)
7808 case $LD in
7809 *-32|*"-32 ") libmagic=32-bit;;
7810 *-n32|*"-n32 ") libmagic=N32;;
7811 *-64|*"-64 ") libmagic=64-bit;;
7812 *) libmagic=never-match;;
7813 esac
7814 lt_cv_deplibs_check_method=pass_all
7815 ;;
7816
7817 # This must be glibc/ELF.
7818 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7819 lt_cv_deplibs_check_method=pass_all
7820 ;;
7821
7822 netbsd*)
7823 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7824 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7825 else
7826 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7827 fi
7828 ;;
7829
7830 newos6*)
7831 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7832 lt_cv_file_magic_cmd=/usr/bin/file
7833 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7834 ;;
7835
7836 *nto* | *qnx*)
7837 lt_cv_deplibs_check_method=pass_all
7838 ;;
7839
7840 openbsd* | bitrig*)
7841 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7842 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7843 else
7844 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7845 fi
7846 ;;
7847
7848 osf3* | osf4* | osf5*)
7849 lt_cv_deplibs_check_method=pass_all
7850 ;;
7851
7852 rdos*)
7853 lt_cv_deplibs_check_method=pass_all
7854 ;;
7855
7856 solaris*)
7857 lt_cv_deplibs_check_method=pass_all
7858 ;;
7859
7860 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7861 lt_cv_deplibs_check_method=pass_all
7862 ;;
7863
7864 sysv4 | sysv4.3*)
7865 case $host_vendor in
7866 motorola)
7867 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]'
7868 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7869 ;;
7870 ncr)
7871 lt_cv_deplibs_check_method=pass_all
7872 ;;
7873 sequent)
7874 lt_cv_file_magic_cmd='/bin/file'
7875 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7876 ;;
7877 sni)
7878 lt_cv_file_magic_cmd='/bin/file'
7879 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7880 lt_cv_file_magic_test_file=/lib/libc.so
7881 ;;
7882 siemens)
7883 lt_cv_deplibs_check_method=pass_all
7884 ;;
7885 pc)
7886 lt_cv_deplibs_check_method=pass_all
7887 ;;
7888 esac
7889 ;;
7890
7891 tpf*)
7892 lt_cv_deplibs_check_method=pass_all
7893 ;;
7894 os2*)
7895 lt_cv_deplibs_check_method=pass_all
7896 ;;
7897 esac
7898
7899 fi
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7901 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7902
7903 file_magic_glob=
7904 want_nocaseglob=no
7905 if test "$build" = "$host"; then
7906 case $host_os in
7907 mingw* | pw32*)
7908 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7909 want_nocaseglob=yes
7910 else
7911 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7912 fi
7913 ;;
7914 esac
7915 fi
7916
7917 file_magic_cmd=$lt_cv_file_magic_cmd
7918 deplibs_check_method=$lt_cv_deplibs_check_method
7919 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942 if test -n "$ac_tool_prefix"; then
7943 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7944 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7946 $as_echo_n "checking for $ac_word... " >&6; }
7947 if ${ac_cv_prog_DLLTOOL+:} false; then :
7948 $as_echo_n "(cached) " >&6
7949 else
7950 if test -n "$DLLTOOL"; then
7951 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7952 else
7953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7954 for as_dir in $PATH
7955 do
7956 IFS=$as_save_IFS
7957 test -z "$as_dir" && as_dir=.
7958 for ac_exec_ext in '' $ac_executable_extensions; do
7959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7960 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7962 break 2
7963 fi
7964 done
7965 done
7966 IFS=$as_save_IFS
7967
7968 fi
7969 fi
7970 DLLTOOL=$ac_cv_prog_DLLTOOL
7971 if test -n "$DLLTOOL"; then
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7973 $as_echo "$DLLTOOL" >&6; }
7974 else
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7976 $as_echo "no" >&6; }
7977 fi
7978
7979
7980 fi
7981 if test -z "$ac_cv_prog_DLLTOOL"; then
7982 ac_ct_DLLTOOL=$DLLTOOL
7983 # Extract the first word of "dlltool", so it can be a program name with args.
7984 set dummy dlltool; ac_word=$2
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7986 $as_echo_n "checking for $ac_word... " >&6; }
7987 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7988 $as_echo_n "(cached) " >&6
7989 else
7990 if test -n "$ac_ct_DLLTOOL"; then
7991 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7992 else
7993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7994 for as_dir in $PATH
7995 do
7996 IFS=$as_save_IFS
7997 test -z "$as_dir" && as_dir=.
7998 for ac_exec_ext in '' $ac_executable_extensions; do
7999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8000 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8002 break 2
8003 fi
8004 done
8005 done
8006 IFS=$as_save_IFS
8007
8008 fi
8009 fi
8010 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8011 if test -n "$ac_ct_DLLTOOL"; then
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8013 $as_echo "$ac_ct_DLLTOOL" >&6; }
8014 else
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8016 $as_echo "no" >&6; }
8017 fi
8018
8019 if test "x$ac_ct_DLLTOOL" = x; then
8020 DLLTOOL="false"
8021 else
8022 case $cross_compiling:$ac_tool_warned in
8023 yes:)
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8026 ac_tool_warned=yes ;;
8027 esac
8028 DLLTOOL=$ac_ct_DLLTOOL
8029 fi
8030 else
8031 DLLTOOL="$ac_cv_prog_DLLTOOL"
8032 fi
8033
8034 test -z "$DLLTOOL" && DLLTOOL=dlltool
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8046 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8047 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8048 $as_echo_n "(cached) " >&6
8049 else
8050 lt_cv_sharedlib_from_linklib_cmd='unknown'
8051
8052 case $host_os in
8053 cygwin* | mingw* | pw32* | cegcc*)
8054 # two different shell functions defined in ltmain.sh;
8055 # decide which one to use based on capabilities of $DLLTOOL
8056 case `$DLLTOOL --help 2>&1` in
8057 *--identify-strict*)
8058 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8059 ;;
8060 *)
8061 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8062 ;;
8063 esac
8064 ;;
8065 *)
8066 # fallback: assume linklib IS sharedlib
8067 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8068 ;;
8069 esac
8070
8071 fi
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8073 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8074 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8075 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8076
8077
8078
8079
8080
8081
8082
8083 if test -n "$ac_tool_prefix"; then
8084 for ac_prog in ar
8085 do
8086 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8087 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8089 $as_echo_n "checking for $ac_word... " >&6; }
8090 if ${ac_cv_prog_AR+:} false; then :
8091 $as_echo_n "(cached) " >&6
8092 else
8093 if test -n "$AR"; then
8094 ac_cv_prog_AR="$AR" # Let the user override the test.
8095 else
8096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8097 for as_dir in $PATH
8098 do
8099 IFS=$as_save_IFS
8100 test -z "$as_dir" && as_dir=.
8101 for ac_exec_ext in '' $ac_executable_extensions; do
8102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8103 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8105 break 2
8106 fi
8107 done
8108 done
8109 IFS=$as_save_IFS
8110
8111 fi
8112 fi
8113 AR=$ac_cv_prog_AR
8114 if test -n "$AR"; then
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8116 $as_echo "$AR" >&6; }
8117 else
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8119 $as_echo "no" >&6; }
8120 fi
8121
8122
8123 test -n "$AR" && break
8124 done
8125 fi
8126 if test -z "$AR"; then
8127 ac_ct_AR=$AR
8128 for ac_prog in ar
8129 do
8130 # Extract the first word of "$ac_prog", so it can be a program name with args.
8131 set dummy $ac_prog; ac_word=$2
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8133 $as_echo_n "checking for $ac_word... " >&6; }
8134 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8135 $as_echo_n "(cached) " >&6
8136 else
8137 if test -n "$ac_ct_AR"; then
8138 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8139 else
8140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8141 for as_dir in $PATH
8142 do
8143 IFS=$as_save_IFS
8144 test -z "$as_dir" && as_dir=.
8145 for ac_exec_ext in '' $ac_executable_extensions; do
8146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8147 ac_cv_prog_ac_ct_AR="$ac_prog"
8148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8149 break 2
8150 fi
8151 done
8152 done
8153 IFS=$as_save_IFS
8154
8155 fi
8156 fi
8157 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8158 if test -n "$ac_ct_AR"; then
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8160 $as_echo "$ac_ct_AR" >&6; }
8161 else
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8163 $as_echo "no" >&6; }
8164 fi
8165
8166
8167 test -n "$ac_ct_AR" && break
8168 done
8169
8170 if test "x$ac_ct_AR" = x; then
8171 AR="false"
8172 else
8173 case $cross_compiling:$ac_tool_warned in
8174 yes:)
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8177 ac_tool_warned=yes ;;
8178 esac
8179 AR=$ac_ct_AR
8180 fi
8181 fi
8182
8183 : ${AR=ar}
8184 : ${AR_FLAGS=cru}
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8197 $as_echo_n "checking for archiver @FILE support... " >&6; }
8198 if ${lt_cv_ar_at_file+:} false; then :
8199 $as_echo_n "(cached) " >&6
8200 else
8201 lt_cv_ar_at_file=no
8202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8203 /* end confdefs.h. */
8204
8205 int
8206 main ()
8207 {
8208
8209 ;
8210 return 0;
8211 }
8212 _ACEOF
8213 if ac_fn_c_try_compile "$LINENO"; then :
8214 echo conftest.$ac_objext > conftest.lst
8215 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8216 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8217 (eval $lt_ar_try) 2>&5
8218 ac_status=$?
8219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8220 test $ac_status = 0; }
8221 if test 0 -eq "$ac_status"; then
8222 # Ensure the archiver fails upon bogus file names.
8223 rm -f conftest.$ac_objext libconftest.a
8224 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8225 (eval $lt_ar_try) 2>&5
8226 ac_status=$?
8227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8228 test $ac_status = 0; }
8229 if test 0 -ne "$ac_status"; then
8230 lt_cv_ar_at_file=@
8231 fi
8232 fi
8233 rm -f conftest.* libconftest.a
8234
8235 fi
8236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8237
8238 fi
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8240 $as_echo "$lt_cv_ar_at_file" >&6; }
8241
8242 if test no = "$lt_cv_ar_at_file"; then
8243 archiver_list_spec=
8244 else
8245 archiver_list_spec=$lt_cv_ar_at_file
8246 fi
8247
8248
8249
8250
8251
8252
8253
8254 if test -n "$ac_tool_prefix"; then
8255 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8256 set dummy ${ac_tool_prefix}strip; ac_word=$2
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8258 $as_echo_n "checking for $ac_word... " >&6; }
8259 if ${ac_cv_prog_STRIP+:} false; then :
8260 $as_echo_n "(cached) " >&6
8261 else
8262 if test -n "$STRIP"; then
8263 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8264 else
8265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8266 for as_dir in $PATH
8267 do
8268 IFS=$as_save_IFS
8269 test -z "$as_dir" && as_dir=.
8270 for ac_exec_ext in '' $ac_executable_extensions; do
8271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8272 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8274 break 2
8275 fi
8276 done
8277 done
8278 IFS=$as_save_IFS
8279
8280 fi
8281 fi
8282 STRIP=$ac_cv_prog_STRIP
8283 if test -n "$STRIP"; then
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8285 $as_echo "$STRIP" >&6; }
8286 else
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8288 $as_echo "no" >&6; }
8289 fi
8290
8291
8292 fi
8293 if test -z "$ac_cv_prog_STRIP"; then
8294 ac_ct_STRIP=$STRIP
8295 # Extract the first word of "strip", so it can be a program name with args.
8296 set dummy strip; ac_word=$2
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8298 $as_echo_n "checking for $ac_word... " >&6; }
8299 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8300 $as_echo_n "(cached) " >&6
8301 else
8302 if test -n "$ac_ct_STRIP"; then
8303 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8304 else
8305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8306 for as_dir in $PATH
8307 do
8308 IFS=$as_save_IFS
8309 test -z "$as_dir" && as_dir=.
8310 for ac_exec_ext in '' $ac_executable_extensions; do
8311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8312 ac_cv_prog_ac_ct_STRIP="strip"
8313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8314 break 2
8315 fi
8316 done
8317 done
8318 IFS=$as_save_IFS
8319
8320 fi
8321 fi
8322 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8323 if test -n "$ac_ct_STRIP"; then
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8325 $as_echo "$ac_ct_STRIP" >&6; }
8326 else
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8328 $as_echo "no" >&6; }
8329 fi
8330
8331 if test "x$ac_ct_STRIP" = x; then
8332 STRIP=":"
8333 else
8334 case $cross_compiling:$ac_tool_warned in
8335 yes:)
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8337 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8338 ac_tool_warned=yes ;;
8339 esac
8340 STRIP=$ac_ct_STRIP
8341 fi
8342 else
8343 STRIP="$ac_cv_prog_STRIP"
8344 fi
8345
8346 test -z "$STRIP" && STRIP=:
8347
8348
8349
8350
8351
8352
8353 if test -n "$ac_tool_prefix"; then
8354 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8355 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8357 $as_echo_n "checking for $ac_word... " >&6; }
8358 if ${ac_cv_prog_RANLIB+:} false; then :
8359 $as_echo_n "(cached) " >&6
8360 else
8361 if test -n "$RANLIB"; then
8362 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8363 else
8364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8365 for as_dir in $PATH
8366 do
8367 IFS=$as_save_IFS
8368 test -z "$as_dir" && as_dir=.
8369 for ac_exec_ext in '' $ac_executable_extensions; do
8370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8371 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8373 break 2
8374 fi
8375 done
8376 done
8377 IFS=$as_save_IFS
8378
8379 fi
8380 fi
8381 RANLIB=$ac_cv_prog_RANLIB
8382 if test -n "$RANLIB"; then
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8384 $as_echo "$RANLIB" >&6; }
8385 else
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8387 $as_echo "no" >&6; }
8388 fi
8389
8390
8391 fi
8392 if test -z "$ac_cv_prog_RANLIB"; then
8393 ac_ct_RANLIB=$RANLIB
8394 # Extract the first word of "ranlib", so it can be a program name with args.
8395 set dummy ranlib; ac_word=$2
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8397 $as_echo_n "checking for $ac_word... " >&6; }
8398 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8399 $as_echo_n "(cached) " >&6
8400 else
8401 if test -n "$ac_ct_RANLIB"; then
8402 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8403 else
8404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8405 for as_dir in $PATH
8406 do
8407 IFS=$as_save_IFS
8408 test -z "$as_dir" && as_dir=.
8409 for ac_exec_ext in '' $ac_executable_extensions; do
8410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8411 ac_cv_prog_ac_ct_RANLIB="ranlib"
8412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8413 break 2
8414 fi
8415 done
8416 done
8417 IFS=$as_save_IFS
8418
8419 fi
8420 fi
8421 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8422 if test -n "$ac_ct_RANLIB"; then
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8424 $as_echo "$ac_ct_RANLIB" >&6; }
8425 else
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8427 $as_echo "no" >&6; }
8428 fi
8429
8430 if test "x$ac_ct_RANLIB" = x; then
8431 RANLIB=":"
8432 else
8433 case $cross_compiling:$ac_tool_warned in
8434 yes:)
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8437 ac_tool_warned=yes ;;
8438 esac
8439 RANLIB=$ac_ct_RANLIB
8440 fi
8441 else
8442 RANLIB="$ac_cv_prog_RANLIB"
8443 fi
8444
8445 test -z "$RANLIB" && RANLIB=:
8446
8447
8448
8449
8450
8451
8452 # Determine commands to create old-style static archives.
8453 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8454 old_postinstall_cmds='chmod 644 $oldlib'
8455 old_postuninstall_cmds=
8456
8457 if test -n "$RANLIB"; then
8458 case $host_os in
8459 bitrig* | openbsd*)
8460 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8461 ;;
8462 *)
8463 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8464 ;;
8465 esac
8466 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8467 fi
8468
8469 case $host_os in
8470 darwin*)
8471 lock_old_archive_extraction=yes ;;
8472 *)
8473 lock_old_archive_extraction=no ;;
8474 esac
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514 # If no C compiler was specified, use CC.
8515 LTCC=${LTCC-"$CC"}
8516
8517 # If no C compiler flags were specified, use CFLAGS.
8518 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8519
8520 # Allow CC to be a program name with arguments.
8521 compiler=$CC
8522
8523
8524 # Check for command to grab the raw symbol name followed by C symbol from nm.
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8526 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8527 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8528 $as_echo_n "(cached) " >&6
8529 else
8530
8531 # These are sane defaults that work on at least a few old systems.
8532 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8533
8534 # Character class describing NM global symbol codes.
8535 symcode='[BCDEGRST]'
8536
8537 # Regexp to match symbols that can be accessed directly from C.
8538 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8539
8540 # Define system-specific variables.
8541 case $host_os in
8542 aix*)
8543 symcode='[BCDT]'
8544 ;;
8545 cygwin* | mingw* | pw32* | cegcc*)
8546 symcode='[ABCDGISTW]'
8547 ;;
8548 hpux*)
8549 if test ia64 = "$host_cpu"; then
8550 symcode='[ABCDEGRST]'
8551 fi
8552 ;;
8553 irix* | nonstopux*)
8554 symcode='[BCDEGRST]'
8555 ;;
8556 osf*)
8557 symcode='[BCDEGQRST]'
8558 ;;
8559 solaris*)
8560 symcode='[BDRT]'
8561 ;;
8562 sco3.2v5*)
8563 symcode='[DT]'
8564 ;;
8565 sysv4.2uw2*)
8566 symcode='[DT]'
8567 ;;
8568 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8569 symcode='[ABDT]'
8570 ;;
8571 sysv4)
8572 symcode='[DFNSTU]'
8573 ;;
8574 esac
8575
8576 # If we're using GNU nm, then use its standard symbol codes.
8577 case `$NM -V 2>&1` in
8578 *GNU* | *'with BFD'*)
8579 symcode='[ABCDGIRSTW]' ;;
8580 esac
8581
8582 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8583 # Gets list of data symbols to import.
8584 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8585 # Adjust the below global symbol transforms to fixup imported variables.
8586 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8587 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8588 lt_c_name_lib_hook="\
8589 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8590 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8591 else
8592 # Disable hooks by default.
8593 lt_cv_sys_global_symbol_to_import=
8594 lt_cdecl_hook=
8595 lt_c_name_hook=
8596 lt_c_name_lib_hook=
8597 fi
8598
8599 # Transform an extracted symbol line into a proper C declaration.
8600 # Some systems (esp. on ia64) link data and code symbols differently,
8601 # so use this general approach.
8602 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8603 $lt_cdecl_hook\
8604 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8605 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8606
8607 # Transform an extracted symbol line into symbol name and symbol address
8608 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8609 $lt_c_name_hook\
8610 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8611 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8612
8613 # Transform an extracted symbol line into symbol name with lib prefix and
8614 # symbol address.
8615 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8616 $lt_c_name_lib_hook\
8617 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8618 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8619 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8620
8621 # Handle CRLF in mingw tool chain
8622 opt_cr=
8623 case $build_os in
8624 mingw*)
8625 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8626 ;;
8627 esac
8628
8629 # Try without a prefix underscore, then with it.
8630 for ac_symprfx in "" "_"; do
8631
8632 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8633 symxfrm="\\1 $ac_symprfx\\2 \\2"
8634
8635 # Write the raw and C identifiers.
8636 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8637 # Fake it for dumpbin and say T for any non-static function,
8638 # D for any global variable and I for any imported variable.
8639 # Also find C++ and __fastcall symbols from MSVC++,
8640 # which start with @ or ?.
8641 lt_cv_sys_global_symbol_pipe="$AWK '"\
8642 " {last_section=section; section=\$ 3};"\
8643 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8644 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8645 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8646 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8647 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8648 " \$ 0!~/External *\|/{next};"\
8649 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8650 " {if(hide[section]) next};"\
8651 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8652 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8653 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8654 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8655 " ' prfx=^$ac_symprfx"
8656 else
8657 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8658 fi
8659 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8660
8661 # Check to see that the pipe works correctly.
8662 pipe_works=no
8663
8664 rm -f conftest*
8665 cat > conftest.$ac_ext <<_LT_EOF
8666 #ifdef __cplusplus
8667 extern "C" {
8668 #endif
8669 char nm_test_var;
8670 void nm_test_func(void);
8671 void nm_test_func(void){}
8672 #ifdef __cplusplus
8673 }
8674 #endif
8675 int main(){nm_test_var='a';nm_test_func();return(0);}
8676 _LT_EOF
8677
8678 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8679 (eval $ac_compile) 2>&5
8680 ac_status=$?
8681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8682 test $ac_status = 0; }; then
8683 # Now try to grab the symbols.
8684 nlist=conftest.nm
8685 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8686 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8687 ac_status=$?
8688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8689 test $ac_status = 0; } && test -s "$nlist"; then
8690 # Try sorting and uniquifying the output.
8691 if sort "$nlist" | uniq > "$nlist"T; then
8692 mv -f "$nlist"T "$nlist"
8693 else
8694 rm -f "$nlist"T
8695 fi
8696
8697 # Make sure that we snagged all the symbols we need.
8698 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8699 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8700 cat <<_LT_EOF > conftest.$ac_ext
8701 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8702 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8703 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8704 relocations are performed -- see ld's documentation on pseudo-relocs. */
8705 # define LT_DLSYM_CONST
8706 #elif defined __osf__
8707 /* This system does not cope well with relocations in const data. */
8708 # define LT_DLSYM_CONST
8709 #else
8710 # define LT_DLSYM_CONST const
8711 #endif
8712
8713 #ifdef __cplusplus
8714 extern "C" {
8715 #endif
8716
8717 _LT_EOF
8718 # Now generate the symbol file.
8719 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8720
8721 cat <<_LT_EOF >> conftest.$ac_ext
8722
8723 /* The mapping between symbol names and symbols. */
8724 LT_DLSYM_CONST struct {
8725 const char *name;
8726 void *address;
8727 }
8728 lt__PROGRAM__LTX_preloaded_symbols[] =
8729 {
8730 { "@PROGRAM@", (void *) 0 },
8731 _LT_EOF
8732 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8733 cat <<\_LT_EOF >> conftest.$ac_ext
8734 {0, (void *) 0}
8735 };
8736
8737 /* This works around a problem in FreeBSD linker */
8738 #ifdef FREEBSD_WORKAROUND
8739 static const void *lt_preloaded_setup() {
8740 return lt__PROGRAM__LTX_preloaded_symbols;
8741 }
8742 #endif
8743
8744 #ifdef __cplusplus
8745 }
8746 #endif
8747 _LT_EOF
8748 # Now try linking the two files.
8749 mv conftest.$ac_objext conftstm.$ac_objext
8750 lt_globsym_save_LIBS=$LIBS
8751 lt_globsym_save_CFLAGS=$CFLAGS
8752 LIBS=conftstm.$ac_objext
8753 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8754 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8755 (eval $ac_link) 2>&5
8756 ac_status=$?
8757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8758 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8759 pipe_works=yes
8760 fi
8761 LIBS=$lt_globsym_save_LIBS
8762 CFLAGS=$lt_globsym_save_CFLAGS
8763 else
8764 echo "cannot find nm_test_func in $nlist" >&5
8765 fi
8766 else
8767 echo "cannot find nm_test_var in $nlist" >&5
8768 fi
8769 else
8770 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8771 fi
8772 else
8773 echo "$progname: failed program was:" >&5
8774 cat conftest.$ac_ext >&5
8775 fi
8776 rm -rf conftest* conftst*
8777
8778 # Do not use the global_symbol_pipe unless it works.
8779 if test yes = "$pipe_works"; then
8780 break
8781 else
8782 lt_cv_sys_global_symbol_pipe=
8783 fi
8784 done
8785
8786 fi
8787
8788 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8789 lt_cv_sys_global_symbol_to_cdecl=
8790 fi
8791 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8793 $as_echo "failed" >&6; }
8794 else
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8796 $as_echo "ok" >&6; }
8797 fi
8798
8799 # Response file support.
8800 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8801 nm_file_list_spec='@'
8802 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8803 nm_file_list_spec='@'
8804 fi
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8843 $as_echo_n "checking for sysroot... " >&6; }
8844
8845 # Check whether --with-sysroot was given.
8846 if test "${with_sysroot+set}" = set; then :
8847 withval=$with_sysroot;
8848 else
8849 with_sysroot=no
8850 fi
8851
8852
8853 lt_sysroot=
8854 case $with_sysroot in #(
8855 yes)
8856 if test yes = "$GCC"; then
8857 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8858 fi
8859 ;; #(
8860 /*)
8861 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8862 ;; #(
8863 no|'')
8864 ;; #(
8865 *)
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8867 $as_echo "$with_sysroot" >&6; }
8868 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8869 ;;
8870 esac
8871
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8873 $as_echo "${lt_sysroot:-no}" >&6; }
8874
8875
8876
8877
8878
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8880 $as_echo_n "checking for a working dd... " >&6; }
8881 if ${ac_cv_path_lt_DD+:} false; then :
8882 $as_echo_n "(cached) " >&6
8883 else
8884 printf 0123456789abcdef0123456789abcdef >conftest.i
8885 cat conftest.i conftest.i >conftest2.i
8886 : ${lt_DD:=$DD}
8887 if test -z "$lt_DD"; then
8888 ac_path_lt_DD_found=false
8889 # Loop through the user's path and test for each of PROGNAME-LIST
8890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8891 for as_dir in $PATH
8892 do
8893 IFS=$as_save_IFS
8894 test -z "$as_dir" && as_dir=.
8895 for ac_prog in dd; do
8896 for ac_exec_ext in '' $ac_executable_extensions; do
8897 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8898 as_fn_executable_p "$ac_path_lt_DD" || continue
8899 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8900 cmp -s conftest.i conftest.out \
8901 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8902 fi
8903 $ac_path_lt_DD_found && break 3
8904 done
8905 done
8906 done
8907 IFS=$as_save_IFS
8908 if test -z "$ac_cv_path_lt_DD"; then
8909 :
8910 fi
8911 else
8912 ac_cv_path_lt_DD=$lt_DD
8913 fi
8914
8915 rm -f conftest.i conftest2.i conftest.out
8916 fi
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8918 $as_echo "$ac_cv_path_lt_DD" >&6; }
8919
8920
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8922 $as_echo_n "checking how to truncate binary pipes... " >&6; }
8923 if ${lt_cv_truncate_bin+:} false; then :
8924 $as_echo_n "(cached) " >&6
8925 else
8926 printf 0123456789abcdef0123456789abcdef >conftest.i
8927 cat conftest.i conftest.i >conftest2.i
8928 lt_cv_truncate_bin=
8929 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8930 cmp -s conftest.i conftest.out \
8931 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8932 fi
8933 rm -f conftest.i conftest2.i conftest.out
8934 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8935 fi
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8937 $as_echo "$lt_cv_truncate_bin" >&6; }
8938
8939
8940
8941
8942
8943
8944
8945 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8946 func_cc_basename ()
8947 {
8948 for cc_temp in $*""; do
8949 case $cc_temp in
8950 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8951 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8952 \-*) ;;
8953 *) break;;
8954 esac
8955 done
8956 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8957 }
8958
8959 # Check whether --enable-libtool-lock was given.
8960 if test "${enable_libtool_lock+set}" = set; then :
8961 enableval=$enable_libtool_lock;
8962 fi
8963
8964 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8965
8966 # Some flags need to be propagated to the compiler or linker for good
8967 # libtool support.
8968 case $host in
8969 ia64-*-hpux*)
8970 # Find out what ABI is being produced by ac_compile, and set mode
8971 # options accordingly.
8972 echo 'int i;' > conftest.$ac_ext
8973 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8974 (eval $ac_compile) 2>&5
8975 ac_status=$?
8976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8977 test $ac_status = 0; }; then
8978 case `/usr/bin/file conftest.$ac_objext` in
8979 *ELF-32*)
8980 HPUX_IA64_MODE=32
8981 ;;
8982 *ELF-64*)
8983 HPUX_IA64_MODE=64
8984 ;;
8985 esac
8986 fi
8987 rm -rf conftest*
8988 ;;
8989 *-*-irix6*)
8990 # Find out what ABI is being produced by ac_compile, and set linker
8991 # options accordingly.
8992 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8993 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8994 (eval $ac_compile) 2>&5
8995 ac_status=$?
8996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8997 test $ac_status = 0; }; then
8998 if test yes = "$lt_cv_prog_gnu_ld"; then
8999 case `/usr/bin/file conftest.$ac_objext` in
9000 *32-bit*)
9001 LD="${LD-ld} -melf32bsmip"
9002 ;;
9003 *N32*)
9004 LD="${LD-ld} -melf32bmipn32"
9005 ;;
9006 *64-bit*)
9007 LD="${LD-ld} -melf64bmip"
9008 ;;
9009 esac
9010 else
9011 case `/usr/bin/file conftest.$ac_objext` in
9012 *32-bit*)
9013 LD="${LD-ld} -32"
9014 ;;
9015 *N32*)
9016 LD="${LD-ld} -n32"
9017 ;;
9018 *64-bit*)
9019 LD="${LD-ld} -64"
9020 ;;
9021 esac
9022 fi
9023 fi
9024 rm -rf conftest*
9025 ;;
9026
9027 mips64*-*linux*)
9028 # Find out what ABI is being produced by ac_compile, and set linker
9029 # options accordingly.
9030 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9031 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9032 (eval $ac_compile) 2>&5
9033 ac_status=$?
9034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9035 test $ac_status = 0; }; then
9036 emul=elf
9037 case `/usr/bin/file conftest.$ac_objext` in
9038 *32-bit*)
9039 emul="${emul}32"
9040 ;;
9041 *64-bit*)
9042 emul="${emul}64"
9043 ;;
9044 esac
9045 case `/usr/bin/file conftest.$ac_objext` in
9046 *MSB*)
9047 emul="${emul}btsmip"
9048 ;;
9049 *LSB*)
9050 emul="${emul}ltsmip"
9051 ;;
9052 esac
9053 case `/usr/bin/file conftest.$ac_objext` in
9054 *N32*)
9055 emul="${emul}n32"
9056 ;;
9057 esac
9058 LD="${LD-ld} -m $emul"
9059 fi
9060 rm -rf conftest*
9061 ;;
9062
9063 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9064 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9065 # Find out what ABI is being produced by ac_compile, and set linker
9066 # options accordingly. Note that the listed cases only cover the
9067 # situations where additional linker options are needed (such as when
9068 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9069 # vice versa); the common cases where no linker options are needed do
9070 # not appear in the list.
9071 echo 'int i;' > conftest.$ac_ext
9072 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9073 (eval $ac_compile) 2>&5
9074 ac_status=$?
9075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9076 test $ac_status = 0; }; then
9077 case `/usr/bin/file conftest.o` in
9078 *32-bit*)
9079 case $host in
9080 x86_64-*kfreebsd*-gnu)
9081 LD="${LD-ld} -m elf_i386_fbsd"
9082 ;;
9083 x86_64-*linux*)
9084 case `/usr/bin/file conftest.o` in
9085 *x86-64*)
9086 LD="${LD-ld} -m elf32_x86_64"
9087 ;;
9088 *)
9089 LD="${LD-ld} -m elf_i386"
9090 ;;
9091 esac
9092 ;;
9093 powerpc64le-*linux*)
9094 LD="${LD-ld} -m elf32lppclinux"
9095 ;;
9096 powerpc64-*linux*)
9097 LD="${LD-ld} -m elf32ppclinux"
9098 ;;
9099 s390x-*linux*)
9100 LD="${LD-ld} -m elf_s390"
9101 ;;
9102 sparc64-*linux*)
9103 LD="${LD-ld} -m elf32_sparc"
9104 ;;
9105 esac
9106 ;;
9107 *64-bit*)
9108 case $host in
9109 x86_64-*kfreebsd*-gnu)
9110 LD="${LD-ld} -m elf_x86_64_fbsd"
9111 ;;
9112 x86_64-*linux*)
9113 LD="${LD-ld} -m elf_x86_64"
9114 ;;
9115 powerpcle-*linux*)
9116 LD="${LD-ld} -m elf64lppc"
9117 ;;
9118 powerpc-*linux*)
9119 LD="${LD-ld} -m elf64ppc"
9120 ;;
9121 s390*-*linux*|s390*-*tpf*)
9122 LD="${LD-ld} -m elf64_s390"
9123 ;;
9124 sparc*-*linux*)
9125 LD="${LD-ld} -m elf64_sparc"
9126 ;;
9127 esac
9128 ;;
9129 esac
9130 fi
9131 rm -rf conftest*
9132 ;;
9133
9134 *-*-sco3.2v5*)
9135 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9136 SAVE_CFLAGS=$CFLAGS
9137 CFLAGS="$CFLAGS -belf"
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9139 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9140 if ${lt_cv_cc_needs_belf+:} false; then :
9141 $as_echo_n "(cached) " >&6
9142 else
9143 ac_ext=c
9144 ac_cpp='$CPP $CPPFLAGS'
9145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9148
9149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9150 /* end confdefs.h. */
9151
9152 int
9153 main ()
9154 {
9155
9156 ;
9157 return 0;
9158 }
9159 _ACEOF
9160 if ac_fn_c_try_link "$LINENO"; then :
9161 lt_cv_cc_needs_belf=yes
9162 else
9163 lt_cv_cc_needs_belf=no
9164 fi
9165 rm -f core conftest.err conftest.$ac_objext \
9166 conftest$ac_exeext conftest.$ac_ext
9167 ac_ext=c
9168 ac_cpp='$CPP $CPPFLAGS'
9169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9172
9173 fi
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9175 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9176 if test yes != "$lt_cv_cc_needs_belf"; then
9177 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9178 CFLAGS=$SAVE_CFLAGS
9179 fi
9180 ;;
9181 *-*solaris*)
9182 # Find out what ABI is being produced by ac_compile, and set linker
9183 # options accordingly.
9184 echo 'int i;' > conftest.$ac_ext
9185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9186 (eval $ac_compile) 2>&5
9187 ac_status=$?
9188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9189 test $ac_status = 0; }; then
9190 case `/usr/bin/file conftest.o` in
9191 *64-bit*)
9192 case $lt_cv_prog_gnu_ld in
9193 yes*)
9194 case $host in
9195 i?86-*-solaris*|x86_64-*-solaris*)
9196 LD="${LD-ld} -m elf_x86_64"
9197 ;;
9198 sparc*-*-solaris*)
9199 LD="${LD-ld} -m elf64_sparc"
9200 ;;
9201 esac
9202 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9203 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9204 LD=${LD-ld}_sol2
9205 fi
9206 ;;
9207 *)
9208 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9209 LD="${LD-ld} -64"
9210 fi
9211 ;;
9212 esac
9213 ;;
9214 esac
9215 fi
9216 rm -rf conftest*
9217 ;;
9218 esac
9219
9220 need_locks=$enable_libtool_lock
9221
9222 if test -n "$ac_tool_prefix"; then
9223 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9224 set dummy ${ac_tool_prefix}mt; ac_word=$2
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9226 $as_echo_n "checking for $ac_word... " >&6; }
9227 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9228 $as_echo_n "(cached) " >&6
9229 else
9230 if test -n "$MANIFEST_TOOL"; then
9231 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9232 else
9233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9234 for as_dir in $PATH
9235 do
9236 IFS=$as_save_IFS
9237 test -z "$as_dir" && as_dir=.
9238 for ac_exec_ext in '' $ac_executable_extensions; do
9239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9240 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9242 break 2
9243 fi
9244 done
9245 done
9246 IFS=$as_save_IFS
9247
9248 fi
9249 fi
9250 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9251 if test -n "$MANIFEST_TOOL"; then
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9253 $as_echo "$MANIFEST_TOOL" >&6; }
9254 else
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9256 $as_echo "no" >&6; }
9257 fi
9258
9259
9260 fi
9261 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9262 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9263 # Extract the first word of "mt", so it can be a program name with args.
9264 set dummy mt; ac_word=$2
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9266 $as_echo_n "checking for $ac_word... " >&6; }
9267 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9268 $as_echo_n "(cached) " >&6
9269 else
9270 if test -n "$ac_ct_MANIFEST_TOOL"; then
9271 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9272 else
9273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9274 for as_dir in $PATH
9275 do
9276 IFS=$as_save_IFS
9277 test -z "$as_dir" && as_dir=.
9278 for ac_exec_ext in '' $ac_executable_extensions; do
9279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9280 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9282 break 2
9283 fi
9284 done
9285 done
9286 IFS=$as_save_IFS
9287
9288 fi
9289 fi
9290 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9291 if test -n "$ac_ct_MANIFEST_TOOL"; then
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9293 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9294 else
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9296 $as_echo "no" >&6; }
9297 fi
9298
9299 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9300 MANIFEST_TOOL=":"
9301 else
9302 case $cross_compiling:$ac_tool_warned in
9303 yes:)
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9306 ac_tool_warned=yes ;;
9307 esac
9308 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9309 fi
9310 else
9311 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9312 fi
9313
9314 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9316 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9317 if ${lt_cv_path_mainfest_tool+:} false; then :
9318 $as_echo_n "(cached) " >&6
9319 else
9320 lt_cv_path_mainfest_tool=no
9321 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9322 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9323 cat conftest.err >&5
9324 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9325 lt_cv_path_mainfest_tool=yes
9326 fi
9327 rm -f conftest*
9328 fi
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9330 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9331 if test yes != "$lt_cv_path_mainfest_tool"; then
9332 MANIFEST_TOOL=:
9333 fi
9334
9335
9336
9337
9338
9339
9340 case $host_os in
9341 rhapsody* | darwin*)
9342 if test -n "$ac_tool_prefix"; then
9343 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9344 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9346 $as_echo_n "checking for $ac_word... " >&6; }
9347 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9348 $as_echo_n "(cached) " >&6
9349 else
9350 if test -n "$DSYMUTIL"; then
9351 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9352 else
9353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9354 for as_dir in $PATH
9355 do
9356 IFS=$as_save_IFS
9357 test -z "$as_dir" && as_dir=.
9358 for ac_exec_ext in '' $ac_executable_extensions; do
9359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9360 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9362 break 2
9363 fi
9364 done
9365 done
9366 IFS=$as_save_IFS
9367
9368 fi
9369 fi
9370 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9371 if test -n "$DSYMUTIL"; then
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9373 $as_echo "$DSYMUTIL" >&6; }
9374 else
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9376 $as_echo "no" >&6; }
9377 fi
9378
9379
9380 fi
9381 if test -z "$ac_cv_prog_DSYMUTIL"; then
9382 ac_ct_DSYMUTIL=$DSYMUTIL
9383 # Extract the first word of "dsymutil", so it can be a program name with args.
9384 set dummy dsymutil; ac_word=$2
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9386 $as_echo_n "checking for $ac_word... " >&6; }
9387 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9388 $as_echo_n "(cached) " >&6
9389 else
9390 if test -n "$ac_ct_DSYMUTIL"; then
9391 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9392 else
9393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9394 for as_dir in $PATH
9395 do
9396 IFS=$as_save_IFS
9397 test -z "$as_dir" && as_dir=.
9398 for ac_exec_ext in '' $ac_executable_extensions; do
9399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9400 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9402 break 2
9403 fi
9404 done
9405 done
9406 IFS=$as_save_IFS
9407
9408 fi
9409 fi
9410 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9411 if test -n "$ac_ct_DSYMUTIL"; then
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9413 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9414 else
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9416 $as_echo "no" >&6; }
9417 fi
9418
9419 if test "x$ac_ct_DSYMUTIL" = x; then
9420 DSYMUTIL=":"
9421 else
9422 case $cross_compiling:$ac_tool_warned in
9423 yes:)
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9425 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9426 ac_tool_warned=yes ;;
9427 esac
9428 DSYMUTIL=$ac_ct_DSYMUTIL
9429 fi
9430 else
9431 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9432 fi
9433
9434 if test -n "$ac_tool_prefix"; then
9435 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9436 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9438 $as_echo_n "checking for $ac_word... " >&6; }
9439 if ${ac_cv_prog_NMEDIT+:} false; then :
9440 $as_echo_n "(cached) " >&6
9441 else
9442 if test -n "$NMEDIT"; then
9443 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9444 else
9445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9446 for as_dir in $PATH
9447 do
9448 IFS=$as_save_IFS
9449 test -z "$as_dir" && as_dir=.
9450 for ac_exec_ext in '' $ac_executable_extensions; do
9451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9452 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9454 break 2
9455 fi
9456 done
9457 done
9458 IFS=$as_save_IFS
9459
9460 fi
9461 fi
9462 NMEDIT=$ac_cv_prog_NMEDIT
9463 if test -n "$NMEDIT"; then
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9465 $as_echo "$NMEDIT" >&6; }
9466 else
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9468 $as_echo "no" >&6; }
9469 fi
9470
9471
9472 fi
9473 if test -z "$ac_cv_prog_NMEDIT"; then
9474 ac_ct_NMEDIT=$NMEDIT
9475 # Extract the first word of "nmedit", so it can be a program name with args.
9476 set dummy nmedit; ac_word=$2
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9478 $as_echo_n "checking for $ac_word... " >&6; }
9479 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9480 $as_echo_n "(cached) " >&6
9481 else
9482 if test -n "$ac_ct_NMEDIT"; then
9483 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9484 else
9485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9486 for as_dir in $PATH
9487 do
9488 IFS=$as_save_IFS
9489 test -z "$as_dir" && as_dir=.
9490 for ac_exec_ext in '' $ac_executable_extensions; do
9491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9492 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9494 break 2
9495 fi
9496 done
9497 done
9498 IFS=$as_save_IFS
9499
9500 fi
9501 fi
9502 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9503 if test -n "$ac_ct_NMEDIT"; then
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9505 $as_echo "$ac_ct_NMEDIT" >&6; }
9506 else
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9508 $as_echo "no" >&6; }
9509 fi
9510
9511 if test "x$ac_ct_NMEDIT" = x; then
9512 NMEDIT=":"
9513 else
9514 case $cross_compiling:$ac_tool_warned in
9515 yes:)
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9517 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9518 ac_tool_warned=yes ;;
9519 esac
9520 NMEDIT=$ac_ct_NMEDIT
9521 fi
9522 else
9523 NMEDIT="$ac_cv_prog_NMEDIT"
9524 fi
9525
9526 if test -n "$ac_tool_prefix"; then
9527 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9528 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9530 $as_echo_n "checking for $ac_word... " >&6; }
9531 if ${ac_cv_prog_LIPO+:} false; then :
9532 $as_echo_n "(cached) " >&6
9533 else
9534 if test -n "$LIPO"; then
9535 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9536 else
9537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9538 for as_dir in $PATH
9539 do
9540 IFS=$as_save_IFS
9541 test -z "$as_dir" && as_dir=.
9542 for ac_exec_ext in '' $ac_executable_extensions; do
9543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9544 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9546 break 2
9547 fi
9548 done
9549 done
9550 IFS=$as_save_IFS
9551
9552 fi
9553 fi
9554 LIPO=$ac_cv_prog_LIPO
9555 if test -n "$LIPO"; then
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9557 $as_echo "$LIPO" >&6; }
9558 else
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9560 $as_echo "no" >&6; }
9561 fi
9562
9563
9564 fi
9565 if test -z "$ac_cv_prog_LIPO"; then
9566 ac_ct_LIPO=$LIPO
9567 # Extract the first word of "lipo", so it can be a program name with args.
9568 set dummy lipo; ac_word=$2
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9570 $as_echo_n "checking for $ac_word... " >&6; }
9571 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9572 $as_echo_n "(cached) " >&6
9573 else
9574 if test -n "$ac_ct_LIPO"; then
9575 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9576 else
9577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9578 for as_dir in $PATH
9579 do
9580 IFS=$as_save_IFS
9581 test -z "$as_dir" && as_dir=.
9582 for ac_exec_ext in '' $ac_executable_extensions; do
9583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9584 ac_cv_prog_ac_ct_LIPO="lipo"
9585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9586 break 2
9587 fi
9588 done
9589 done
9590 IFS=$as_save_IFS
9591
9592 fi
9593 fi
9594 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9595 if test -n "$ac_ct_LIPO"; then
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9597 $as_echo "$ac_ct_LIPO" >&6; }
9598 else
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9600 $as_echo "no" >&6; }
9601 fi
9602
9603 if test "x$ac_ct_LIPO" = x; then
9604 LIPO=":"
9605 else
9606 case $cross_compiling:$ac_tool_warned in
9607 yes:)
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9610 ac_tool_warned=yes ;;
9611 esac
9612 LIPO=$ac_ct_LIPO
9613 fi
9614 else
9615 LIPO="$ac_cv_prog_LIPO"
9616 fi
9617
9618 if test -n "$ac_tool_prefix"; then
9619 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9620 set dummy ${ac_tool_prefix}otool; ac_word=$2
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9622 $as_echo_n "checking for $ac_word... " >&6; }
9623 if ${ac_cv_prog_OTOOL+:} false; then :
9624 $as_echo_n "(cached) " >&6
9625 else
9626 if test -n "$OTOOL"; then
9627 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9628 else
9629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9630 for as_dir in $PATH
9631 do
9632 IFS=$as_save_IFS
9633 test -z "$as_dir" && as_dir=.
9634 for ac_exec_ext in '' $ac_executable_extensions; do
9635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9636 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9638 break 2
9639 fi
9640 done
9641 done
9642 IFS=$as_save_IFS
9643
9644 fi
9645 fi
9646 OTOOL=$ac_cv_prog_OTOOL
9647 if test -n "$OTOOL"; then
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9649 $as_echo "$OTOOL" >&6; }
9650 else
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9652 $as_echo "no" >&6; }
9653 fi
9654
9655
9656 fi
9657 if test -z "$ac_cv_prog_OTOOL"; then
9658 ac_ct_OTOOL=$OTOOL
9659 # Extract the first word of "otool", so it can be a program name with args.
9660 set dummy otool; ac_word=$2
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9662 $as_echo_n "checking for $ac_word... " >&6; }
9663 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9664 $as_echo_n "(cached) " >&6
9665 else
9666 if test -n "$ac_ct_OTOOL"; then
9667 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9668 else
9669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9670 for as_dir in $PATH
9671 do
9672 IFS=$as_save_IFS
9673 test -z "$as_dir" && as_dir=.
9674 for ac_exec_ext in '' $ac_executable_extensions; do
9675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9676 ac_cv_prog_ac_ct_OTOOL="otool"
9677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9678 break 2
9679 fi
9680 done
9681 done
9682 IFS=$as_save_IFS
9683
9684 fi
9685 fi
9686 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9687 if test -n "$ac_ct_OTOOL"; then
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9689 $as_echo "$ac_ct_OTOOL" >&6; }
9690 else
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9692 $as_echo "no" >&6; }
9693 fi
9694
9695 if test "x$ac_ct_OTOOL" = x; then
9696 OTOOL=":"
9697 else
9698 case $cross_compiling:$ac_tool_warned in
9699 yes:)
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9702 ac_tool_warned=yes ;;
9703 esac
9704 OTOOL=$ac_ct_OTOOL
9705 fi
9706 else
9707 OTOOL="$ac_cv_prog_OTOOL"
9708 fi
9709
9710 if test -n "$ac_tool_prefix"; then
9711 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9712 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9714 $as_echo_n "checking for $ac_word... " >&6; }
9715 if ${ac_cv_prog_OTOOL64+:} false; then :
9716 $as_echo_n "(cached) " >&6
9717 else
9718 if test -n "$OTOOL64"; then
9719 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9720 else
9721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9722 for as_dir in $PATH
9723 do
9724 IFS=$as_save_IFS
9725 test -z "$as_dir" && as_dir=.
9726 for ac_exec_ext in '' $ac_executable_extensions; do
9727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9728 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9730 break 2
9731 fi
9732 done
9733 done
9734 IFS=$as_save_IFS
9735
9736 fi
9737 fi
9738 OTOOL64=$ac_cv_prog_OTOOL64
9739 if test -n "$OTOOL64"; then
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9741 $as_echo "$OTOOL64" >&6; }
9742 else
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9744 $as_echo "no" >&6; }
9745 fi
9746
9747
9748 fi
9749 if test -z "$ac_cv_prog_OTOOL64"; then
9750 ac_ct_OTOOL64=$OTOOL64
9751 # Extract the first word of "otool64", so it can be a program name with args.
9752 set dummy otool64; ac_word=$2
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9754 $as_echo_n "checking for $ac_word... " >&6; }
9755 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9756 $as_echo_n "(cached) " >&6
9757 else
9758 if test -n "$ac_ct_OTOOL64"; then
9759 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9760 else
9761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9762 for as_dir in $PATH
9763 do
9764 IFS=$as_save_IFS
9765 test -z "$as_dir" && as_dir=.
9766 for ac_exec_ext in '' $ac_executable_extensions; do
9767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9768 ac_cv_prog_ac_ct_OTOOL64="otool64"
9769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9770 break 2
9771 fi
9772 done
9773 done
9774 IFS=$as_save_IFS
9775
9776 fi
9777 fi
9778 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9779 if test -n "$ac_ct_OTOOL64"; then
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9781 $as_echo "$ac_ct_OTOOL64" >&6; }
9782 else
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9784 $as_echo "no" >&6; }
9785 fi
9786
9787 if test "x$ac_ct_OTOOL64" = x; then
9788 OTOOL64=":"
9789 else
9790 case $cross_compiling:$ac_tool_warned in
9791 yes:)
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9793 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9794 ac_tool_warned=yes ;;
9795 esac
9796 OTOOL64=$ac_ct_OTOOL64
9797 fi
9798 else
9799 OTOOL64="$ac_cv_prog_OTOOL64"
9800 fi
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9829 $as_echo_n "checking for -single_module linker flag... " >&6; }
9830 if ${lt_cv_apple_cc_single_mod+:} false; then :
9831 $as_echo_n "(cached) " >&6
9832 else
9833 lt_cv_apple_cc_single_mod=no
9834 if test -z "$LT_MULTI_MODULE"; then
9835 # By default we will add the -single_module flag. You can override
9836 # by either setting the environment variable LT_MULTI_MODULE
9837 # non-empty at configure time, or by adding -multi_module to the
9838 # link flags.
9839 rm -rf libconftest.dylib*
9840 echo "int foo(void){return 1;}" > conftest.c
9841 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9842 -dynamiclib -Wl,-single_module conftest.c" >&5
9843 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9844 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9845 _lt_result=$?
9846 # If there is a non-empty error log, and "single_module"
9847 # appears in it, assume the flag caused a linker warning
9848 if test -s conftest.err && $GREP single_module conftest.err; then
9849 cat conftest.err >&5
9850 # Otherwise, if the output was created with a 0 exit code from
9851 # the compiler, it worked.
9852 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9853 lt_cv_apple_cc_single_mod=yes
9854 else
9855 cat conftest.err >&5
9856 fi
9857 rm -rf libconftest.dylib*
9858 rm -f conftest.*
9859 fi
9860 fi
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9862 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9863
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9865 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9866 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9867 $as_echo_n "(cached) " >&6
9868 else
9869 lt_cv_ld_exported_symbols_list=no
9870 save_LDFLAGS=$LDFLAGS
9871 echo "_main" > conftest.sym
9872 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
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 lt_cv_ld_exported_symbols_list=yes
9886 else
9887 lt_cv_ld_exported_symbols_list=no
9888 fi
9889 rm -f core conftest.err conftest.$ac_objext \
9890 conftest$ac_exeext conftest.$ac_ext
9891 LDFLAGS=$save_LDFLAGS
9892
9893 fi
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9895 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9896
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9898 $as_echo_n "checking for -force_load linker flag... " >&6; }
9899 if ${lt_cv_ld_force_load+:} false; then :
9900 $as_echo_n "(cached) " >&6
9901 else
9902 lt_cv_ld_force_load=no
9903 cat > conftest.c << _LT_EOF
9904 int forced_loaded() { return 2;}
9905 _LT_EOF
9906 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9907 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9908 echo "$AR cru libconftest.a conftest.o" >&5
9909 $AR cru libconftest.a conftest.o 2>&5
9910 echo "$RANLIB libconftest.a" >&5
9911 $RANLIB libconftest.a 2>&5
9912 cat > conftest.c << _LT_EOF
9913 int main() { return 0;}
9914 _LT_EOF
9915 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9916 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9917 _lt_result=$?
9918 if test -s conftest.err && $GREP force_load conftest.err; then
9919 cat conftest.err >&5
9920 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9921 lt_cv_ld_force_load=yes
9922 else
9923 cat conftest.err >&5
9924 fi
9925 rm -f conftest.err libconftest.a conftest conftest.c
9926 rm -rf conftest.dSYM
9927
9928 fi
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9930 $as_echo "$lt_cv_ld_force_load" >&6; }
9931 case $host_os in
9932 rhapsody* | darwin1.[012])
9933 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9934 darwin1.*)
9935 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9936 darwin*) # darwin 5.x on
9937 # if running on 10.5 or later, the deployment target defaults
9938 # to the OS version, if on x86, and 10.4, the deployment
9939 # target defaults to 10.4. Don't you love it?
9940 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9941 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9942 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9943 10.[012][,.]*)
9944 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9945 10.*)
9946 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9947 esac
9948 ;;
9949 esac
9950 if test yes = "$lt_cv_apple_cc_single_mod"; then
9951 _lt_dar_single_mod='$single_module'
9952 fi
9953 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9954 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9955 else
9956 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9957 fi
9958 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9959 _lt_dsymutil='~$DSYMUTIL $lib || :'
9960 else
9961 _lt_dsymutil=
9962 fi
9963 ;;
9964 esac
9965
9966 # func_munge_path_list VARIABLE PATH
9967 # -----------------------------------
9968 # VARIABLE is name of variable containing _space_ separated list of
9969 # directories to be munged by the contents of PATH, which is string
9970 # having a format:
9971 # "DIR[:DIR]:"
9972 # string "DIR[ DIR]" will be prepended to VARIABLE
9973 # ":DIR[:DIR]"
9974 # string "DIR[ DIR]" will be appended to VARIABLE
9975 # "DIRP[:DIRP]::[DIRA:]DIRA"
9976 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9977 # "DIRA[ DIRA]" will be appended to VARIABLE
9978 # "DIR[:DIR]"
9979 # VARIABLE will be replaced by "DIR[ DIR]"
9980 func_munge_path_list ()
9981 {
9982 case x$2 in
9983 x)
9984 ;;
9985 *:)
9986 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9987 ;;
9988 x:*)
9989 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9990 ;;
9991 *::*)
9992 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9993 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9994 ;;
9995 *)
9996 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9997 ;;
9998 esac
9999 }
10000
10001 for ac_header in dlfcn.h
10002 do :
10003 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10004 "
10005 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10006 cat >>confdefs.h <<_ACEOF
10007 #define HAVE_DLFCN_H 1
10008 _ACEOF
10009
10010 fi
10011
10012 done
10013
10014
10015
10016
10017 func_stripname_cnf ()
10018 {
10019 case $2 in
10020 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
10021 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
10022 esac
10023 } # func_stripname_cnf
10024
10025
10026
10027
10028
10029 # Set options
10030
10031
10032
10033 enable_dlopen=no
10034
10035
10036 enable_win32_dll=no
10037
10038
10039 # Check whether --enable-shared was given.
10040 if test "${enable_shared+set}" = set; then :
10041 enableval=$enable_shared; p=${PACKAGE-default}
10042 case $enableval in
10043 yes) enable_shared=yes ;;
10044 no) enable_shared=no ;;
10045 *)
10046 enable_shared=no
10047 # Look at the argument we got. We use all the common list separators.
10048 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10049 for pkg in $enableval; do
10050 IFS=$lt_save_ifs
10051 if test "X$pkg" = "X$p"; then
10052 enable_shared=yes
10053 fi
10054 done
10055 IFS=$lt_save_ifs
10056 ;;
10057 esac
10058 else
10059 enable_shared=yes
10060 fi
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070 # Check whether --enable-static was given.
10071 if test "${enable_static+set}" = set; then :
10072 enableval=$enable_static; p=${PACKAGE-default}
10073 case $enableval in
10074 yes) enable_static=yes ;;
10075 no) enable_static=no ;;
10076 *)
10077 enable_static=no
10078 # Look at the argument we got. We use all the common list separators.
10079 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10080 for pkg in $enableval; do
10081 IFS=$lt_save_ifs
10082 if test "X$pkg" = "X$p"; then
10083 enable_static=yes
10084 fi
10085 done
10086 IFS=$lt_save_ifs
10087 ;;
10088 esac
10089 else
10090 enable_static=yes
10091 fi
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102 # Check whether --with-pic was given.
10103 if test "${with_pic+set}" = set; then :
10104 withval=$with_pic; lt_p=${PACKAGE-default}
10105 case $withval in
10106 yes|no) pic_mode=$withval ;;
10107 *)
10108 pic_mode=default
10109 # Look at the argument we got. We use all the common list separators.
10110 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10111 for lt_pkg in $withval; do
10112 IFS=$lt_save_ifs
10113 if test "X$lt_pkg" = "X$lt_p"; then
10114 pic_mode=yes
10115 fi
10116 done
10117 IFS=$lt_save_ifs
10118 ;;
10119 esac
10120 else
10121 pic_mode=default
10122 fi
10123
10124
10125
10126
10127
10128
10129
10130
10131 # Check whether --enable-fast-install was given.
10132 if test "${enable_fast_install+set}" = set; then :
10133 enableval=$enable_fast_install; p=${PACKAGE-default}
10134 case $enableval in
10135 yes) enable_fast_install=yes ;;
10136 no) enable_fast_install=no ;;
10137 *)
10138 enable_fast_install=no
10139 # Look at the argument we got. We use all the common list separators.
10140 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10141 for pkg in $enableval; do
10142 IFS=$lt_save_ifs
10143 if test "X$pkg" = "X$p"; then
10144 enable_fast_install=yes
10145 fi
10146 done
10147 IFS=$lt_save_ifs
10148 ;;
10149 esac
10150 else
10151 enable_fast_install=yes
10152 fi
10153
10154
10155
10156
10157
10158
10159
10160
10161 shared_archive_member_spec=
10162 case $host,$enable_shared in
10163 power*-*-aix[5-9]*,yes)
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10165 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10166
10167 # Check whether --with-aix-soname was given.
10168 if test "${with_aix_soname+set}" = set; then :
10169 withval=$with_aix_soname; case $withval in
10170 aix|svr4|both)
10171 ;;
10172 *)
10173 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10174 ;;
10175 esac
10176 lt_cv_with_aix_soname=$with_aix_soname
10177 else
10178 if ${lt_cv_with_aix_soname+:} false; then :
10179 $as_echo_n "(cached) " >&6
10180 else
10181 lt_cv_with_aix_soname=aix
10182 fi
10183
10184 with_aix_soname=$lt_cv_with_aix_soname
10185 fi
10186
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10188 $as_echo "$with_aix_soname" >&6; }
10189 if test aix != "$with_aix_soname"; then
10190 # For the AIX way of multilib, we name the shared archive member
10191 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10192 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10193 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10194 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10195 if test 64 = "${OBJECT_MODE-32}"; then
10196 shared_archive_member_spec=shr_64
10197 else
10198 shared_archive_member_spec=shr
10199 fi
10200 fi
10201 ;;
10202 *)
10203 with_aix_soname=aix
10204 ;;
10205 esac
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216 # This can be used to rebuild libtool when needed
10217 LIBTOOL_DEPS=$ltmain
10218
10219 # Always use our own libtool.
10220 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251 test -z "$LN_S" && LN_S="ln -s"
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266 if test -n "${ZSH_VERSION+set}"; then
10267 setopt NO_GLOB_SUBST
10268 fi
10269
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10271 $as_echo_n "checking for objdir... " >&6; }
10272 if ${lt_cv_objdir+:} false; then :
10273 $as_echo_n "(cached) " >&6
10274 else
10275 rm -f .libs 2>/dev/null
10276 mkdir .libs 2>/dev/null
10277 if test -d .libs; then
10278 lt_cv_objdir=.libs
10279 else
10280 # MS-DOS does not allow filenames that begin with a dot.
10281 lt_cv_objdir=_libs
10282 fi
10283 rmdir .libs 2>/dev/null
10284 fi
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10286 $as_echo "$lt_cv_objdir" >&6; }
10287 objdir=$lt_cv_objdir
10288
10289
10290
10291
10292
10293 cat >>confdefs.h <<_ACEOF
10294 #define LT_OBJDIR "$lt_cv_objdir/"
10295 _ACEOF
10296
10297
10298
10299
10300 case $host_os in
10301 aix3*)
10302 # AIX sometimes has problems with the GCC collect2 program. For some
10303 # reason, if we set the COLLECT_NAMES environment variable, the problems
10304 # vanish in a puff of smoke.
10305 if test set != "${COLLECT_NAMES+set}"; then
10306 COLLECT_NAMES=
10307 export COLLECT_NAMES
10308 fi
10309 ;;
10310 esac
10311
10312 # Global variables:
10313 ofile=libtool
10314 can_build_shared=yes
10315
10316 # All known linkers require a '.a' archive for static linking (except MSVC,
10317 # which needs '.lib').
10318 libext=a
10319
10320 with_gnu_ld=$lt_cv_prog_gnu_ld
10321
10322 old_CC=$CC
10323 old_CFLAGS=$CFLAGS
10324
10325 # Set sane defaults for various variables
10326 test -z "$CC" && CC=cc
10327 test -z "$LTCC" && LTCC=$CC
10328 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10329 test -z "$LD" && LD=ld
10330 test -z "$ac_objext" && ac_objext=o
10331
10332 func_cc_basename $compiler
10333 cc_basename=$func_cc_basename_result
10334
10335
10336 # Only perform the check for file, if the check method requires it
10337 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10338 case $deplibs_check_method in
10339 file_magic*)
10340 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10342 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10343 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10344 $as_echo_n "(cached) " >&6
10345 else
10346 case $MAGIC_CMD in
10347 [\\/*] | ?:[\\/]*)
10348 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10349 ;;
10350 *)
10351 lt_save_MAGIC_CMD=$MAGIC_CMD
10352 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10353 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10354 for ac_dir in $ac_dummy; do
10355 IFS=$lt_save_ifs
10356 test -z "$ac_dir" && ac_dir=.
10357 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10358 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10359 if test -n "$file_magic_test_file"; then
10360 case $deplibs_check_method in
10361 "file_magic "*)
10362 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10363 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10364 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10365 $EGREP "$file_magic_regex" > /dev/null; then
10366 :
10367 else
10368 cat <<_LT_EOF 1>&2
10369
10370 *** Warning: the command libtool uses to detect shared libraries,
10371 *** $file_magic_cmd, produces output that libtool cannot recognize.
10372 *** The result is that libtool may fail to recognize shared libraries
10373 *** as such. This will affect the creation of libtool libraries that
10374 *** depend on shared libraries, but programs linked with such libtool
10375 *** libraries will work regardless of this problem. Nevertheless, you
10376 *** may want to report the problem to your system manager and/or to
10377 *** [email protected]
10378
10379 _LT_EOF
10380 fi ;;
10381 esac
10382 fi
10383 break
10384 fi
10385 done
10386 IFS=$lt_save_ifs
10387 MAGIC_CMD=$lt_save_MAGIC_CMD
10388 ;;
10389 esac
10390 fi
10391
10392 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10393 if test -n "$MAGIC_CMD"; then
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10395 $as_echo "$MAGIC_CMD" >&6; }
10396 else
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10398 $as_echo "no" >&6; }
10399 fi
10400
10401
10402
10403
10404
10405 if test -z "$lt_cv_path_MAGIC_CMD"; then
10406 if test -n "$ac_tool_prefix"; then
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10408 $as_echo_n "checking for file... " >&6; }
10409 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10410 $as_echo_n "(cached) " >&6
10411 else
10412 case $MAGIC_CMD in
10413 [\\/*] | ?:[\\/]*)
10414 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10415 ;;
10416 *)
10417 lt_save_MAGIC_CMD=$MAGIC_CMD
10418 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10419 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10420 for ac_dir in $ac_dummy; do
10421 IFS=$lt_save_ifs
10422 test -z "$ac_dir" && ac_dir=.
10423 if test -f "$ac_dir/file"; then
10424 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10425 if test -n "$file_magic_test_file"; then
10426 case $deplibs_check_method in
10427 "file_magic "*)
10428 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10429 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10430 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10431 $EGREP "$file_magic_regex" > /dev/null; then
10432 :
10433 else
10434 cat <<_LT_EOF 1>&2
10435
10436 *** Warning: the command libtool uses to detect shared libraries,
10437 *** $file_magic_cmd, produces output that libtool cannot recognize.
10438 *** The result is that libtool may fail to recognize shared libraries
10439 *** as such. This will affect the creation of libtool libraries that
10440 *** depend on shared libraries, but programs linked with such libtool
10441 *** libraries will work regardless of this problem. Nevertheless, you
10442 *** may want to report the problem to your system manager and/or to
10443 *** [email protected]
10444
10445 _LT_EOF
10446 fi ;;
10447 esac
10448 fi
10449 break
10450 fi
10451 done
10452 IFS=$lt_save_ifs
10453 MAGIC_CMD=$lt_save_MAGIC_CMD
10454 ;;
10455 esac
10456 fi
10457
10458 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10459 if test -n "$MAGIC_CMD"; then
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10461 $as_echo "$MAGIC_CMD" >&6; }
10462 else
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10464 $as_echo "no" >&6; }
10465 fi
10466
10467
10468 else
10469 MAGIC_CMD=:
10470 fi
10471 fi
10472
10473 fi
10474 ;;
10475 esac
10476
10477 # Use C for the default configuration in the libtool script
10478
10479 lt_save_CC=$CC
10480 ac_ext=c
10481 ac_cpp='$CPP $CPPFLAGS'
10482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10485
10486
10487 # Source file extension for C test sources.
10488 ac_ext=c
10489
10490 # Object file extension for compiled C test sources.
10491 objext=o
10492 objext=$objext
10493
10494 # Code to be used in simple compile tests
10495 lt_simple_compile_test_code="int some_variable = 0;"
10496
10497 # Code to be used in simple link tests
10498 lt_simple_link_test_code='int main(){return(0);}'
10499
10500
10501
10502
10503
10504
10505
10506 # If no C compiler was specified, use CC.
10507 LTCC=${LTCC-"$CC"}
10508
10509 # If no C compiler flags were specified, use CFLAGS.
10510 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10511
10512 # Allow CC to be a program name with arguments.
10513 compiler=$CC
10514
10515 # Save the default compiler, since it gets overwritten when the other
10516 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10517 compiler_DEFAULT=$CC
10518
10519 # save warnings/boilerplate of simple test code
10520 ac_outfile=conftest.$ac_objext
10521 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10522 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10523 _lt_compiler_boilerplate=`cat conftest.err`
10524 $RM conftest*
10525
10526 ac_outfile=conftest.$ac_objext
10527 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10528 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10529 _lt_linker_boilerplate=`cat conftest.err`
10530 $RM -r conftest*
10531
10532
10533 ## CAVEAT EMPTOR:
10534 ## There is no encapsulation within the following macros, do not change
10535 ## the running order or otherwise move them around unless you know exactly
10536 ## what you are doing...
10537 if test -n "$compiler"; then
10538
10539 lt_prog_compiler_no_builtin_flag=
10540
10541 if test yes = "$GCC"; then
10542 case $cc_basename in
10543 nvcc*)
10544 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10545 *)
10546 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10547 esac
10548
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10550 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10551 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10552 $as_echo_n "(cached) " >&6
10553 else
10554 lt_cv_prog_compiler_rtti_exceptions=no
10555 ac_outfile=conftest.$ac_objext
10556 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10557 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10558 # Insert the option either (1) after the last *FLAGS variable, or
10559 # (2) before a word containing "conftest.", or (3) at the end.
10560 # Note that $ac_compile itself does not contain backslashes and begins
10561 # with a dollar sign (not a hyphen), so the echo should work correctly.
10562 # The option is referenced via a variable to avoid confusing sed.
10563 lt_compile=`echo "$ac_compile" | $SED \
10564 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10565 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10566 -e 's:$: $lt_compiler_flag:'`
10567 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10568 (eval "$lt_compile" 2>conftest.err)
10569 ac_status=$?
10570 cat conftest.err >&5
10571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572 if (exit $ac_status) && test -s "$ac_outfile"; then
10573 # The compiler can only warn and ignore the option if not recognized
10574 # So say no if there are warnings other than the usual output.
10575 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10576 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10577 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10578 lt_cv_prog_compiler_rtti_exceptions=yes
10579 fi
10580 fi
10581 $RM conftest*
10582
10583 fi
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10585 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10586
10587 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10588 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10589 else
10590 :
10591 fi
10592
10593 fi
10594
10595
10596
10597
10598
10599
10600 lt_prog_compiler_wl=
10601 lt_prog_compiler_pic=
10602 lt_prog_compiler_static=
10603
10604
10605 if test yes = "$GCC"; then
10606 lt_prog_compiler_wl='-Wl,'
10607 lt_prog_compiler_static='-static'
10608
10609 case $host_os in
10610 aix*)
10611 # All AIX code is PIC.
10612 if test ia64 = "$host_cpu"; then
10613 # AIX 5 now supports IA64 processor
10614 lt_prog_compiler_static='-Bstatic'
10615 fi
10616 lt_prog_compiler_pic='-fPIC'
10617 ;;
10618
10619 amigaos*)
10620 case $host_cpu in
10621 powerpc)
10622 # see comment about AmigaOS4 .so support
10623 lt_prog_compiler_pic='-fPIC'
10624 ;;
10625 m68k)
10626 # FIXME: we need at least 68020 code to build shared libraries, but
10627 # adding the '-m68020' flag to GCC prevents building anything better,
10628 # like '-m68040'.
10629 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10630 ;;
10631 esac
10632 ;;
10633
10634 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10635 # PIC is the default for these OSes.
10636 ;;
10637
10638 mingw* | cygwin* | pw32* | os2* | cegcc*)
10639 # This hack is so that the source file can tell whether it is being
10640 # built for inclusion in a dll (and should export symbols for example).
10641 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10642 # (--disable-auto-import) libraries
10643 lt_prog_compiler_pic='-DDLL_EXPORT'
10644 case $host_os in
10645 os2*)
10646 lt_prog_compiler_static='$wl-static'
10647 ;;
10648 esac
10649 ;;
10650
10651 darwin* | rhapsody*)
10652 # PIC is the default on this platform
10653 # Common symbols not allowed in MH_DYLIB files
10654 lt_prog_compiler_pic='-fno-common'
10655 ;;
10656
10657 haiku*)
10658 # PIC is the default for Haiku.
10659 # The "-static" flag exists, but is broken.
10660 lt_prog_compiler_static=
10661 ;;
10662
10663 hpux*)
10664 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10665 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10666 # sets the default TLS model and affects inlining.
10667 case $host_cpu in
10668 hppa*64*)
10669 # +Z the default
10670 ;;
10671 *)
10672 lt_prog_compiler_pic='-fPIC'
10673 ;;
10674 esac
10675 ;;
10676
10677 interix[3-9]*)
10678 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10679 # Instead, we relocate shared libraries at runtime.
10680 ;;
10681
10682 msdosdjgpp*)
10683 # Just because we use GCC doesn't mean we suddenly get shared libraries
10684 # on systems that don't support them.
10685 lt_prog_compiler_can_build_shared=no
10686 enable_shared=no
10687 ;;
10688
10689 *nto* | *qnx*)
10690 # QNX uses GNU C++, but need to define -shared option too, otherwise
10691 # it will coredump.
10692 lt_prog_compiler_pic='-fPIC -shared'
10693 ;;
10694
10695 sysv4*MP*)
10696 if test -d /usr/nec; then
10697 lt_prog_compiler_pic=-Kconform_pic
10698 fi
10699 ;;
10700
10701 *)
10702 lt_prog_compiler_pic='-fPIC'
10703 ;;
10704 esac
10705
10706 case $cc_basename in
10707 nvcc*) # Cuda Compiler Driver 2.2
10708 lt_prog_compiler_wl='-Xlinker '
10709 if test -n "$lt_prog_compiler_pic"; then
10710 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10711 fi
10712 ;;
10713 esac
10714 else
10715 # PORTME Check for flag to pass linker flags through the system compiler.
10716 case $host_os in
10717 aix*)
10718 lt_prog_compiler_wl='-Wl,'
10719 if test ia64 = "$host_cpu"; then
10720 # AIX 5 now supports IA64 processor
10721 lt_prog_compiler_static='-Bstatic'
10722 else
10723 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10724 fi
10725 ;;
10726
10727 darwin* | rhapsody*)
10728 # PIC is the default on this platform
10729 # Common symbols not allowed in MH_DYLIB files
10730 lt_prog_compiler_pic='-fno-common'
10731 case $cc_basename in
10732 nagfor*)
10733 # NAG Fortran compiler
10734 lt_prog_compiler_wl='-Wl,-Wl,,'
10735 lt_prog_compiler_pic='-PIC'
10736 lt_prog_compiler_static='-Bstatic'
10737 ;;
10738 esac
10739 ;;
10740
10741 mingw* | cygwin* | pw32* | os2* | cegcc*)
10742 # This hack is so that the source file can tell whether it is being
10743 # built for inclusion in a dll (and should export symbols for example).
10744 lt_prog_compiler_pic='-DDLL_EXPORT'
10745 case $host_os in
10746 os2*)
10747 lt_prog_compiler_static='$wl-static'
10748 ;;
10749 esac
10750 ;;
10751
10752 hpux9* | hpux10* | hpux11*)
10753 lt_prog_compiler_wl='-Wl,'
10754 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10755 # not for PA HP-UX.
10756 case $host_cpu in
10757 hppa*64*|ia64*)
10758 # +Z the default
10759 ;;
10760 *)
10761 lt_prog_compiler_pic='+Z'
10762 ;;
10763 esac
10764 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10765 lt_prog_compiler_static='$wl-a ${wl}archive'
10766 ;;
10767
10768 irix5* | irix6* | nonstopux*)
10769 lt_prog_compiler_wl='-Wl,'
10770 # PIC (with -KPIC) is the default.
10771 lt_prog_compiler_static='-non_shared'
10772 ;;
10773
10774 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10775 case $cc_basename in
10776 # old Intel for x86_64, which still supported -KPIC.
10777 ecc*)
10778 lt_prog_compiler_wl='-Wl,'
10779 lt_prog_compiler_pic='-KPIC'
10780 lt_prog_compiler_static='-static'
10781 ;;
10782 # icc used to be incompatible with GCC.
10783 # ICC 10 doesn't accept -KPIC any more.
10784 icc* | ifort*)
10785 lt_prog_compiler_wl='-Wl,'
10786 lt_prog_compiler_pic='-fPIC'
10787 lt_prog_compiler_static='-static'
10788 ;;
10789 # Lahey Fortran 8.1.
10790 lf95*)
10791 lt_prog_compiler_wl='-Wl,'
10792 lt_prog_compiler_pic='--shared'
10793 lt_prog_compiler_static='--static'
10794 ;;
10795 nagfor*)
10796 # NAG Fortran compiler
10797 lt_prog_compiler_wl='-Wl,-Wl,,'
10798 lt_prog_compiler_pic='-PIC'
10799 lt_prog_compiler_static='-Bstatic'
10800 ;;
10801 tcc*)
10802 # Fabrice Bellard et al's Tiny C Compiler
10803 lt_prog_compiler_wl='-Wl,'
10804 lt_prog_compiler_pic='-fPIC'
10805 lt_prog_compiler_static='-static'
10806 ;;
10807 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10808 # Portland Group compilers (*not* the Pentium gcc compiler,
10809 # which looks to be a dead project)
10810 lt_prog_compiler_wl='-Wl,'
10811 lt_prog_compiler_pic='-fpic'
10812 lt_prog_compiler_static='-Bstatic'
10813 ;;
10814 ccc*)
10815 lt_prog_compiler_wl='-Wl,'
10816 # All Alpha code is PIC.
10817 lt_prog_compiler_static='-non_shared'
10818 ;;
10819 xl* | bgxl* | bgf* | mpixl*)
10820 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10821 lt_prog_compiler_wl='-Wl,'
10822 lt_prog_compiler_pic='-qpic'
10823 lt_prog_compiler_static='-qstaticlink'
10824 ;;
10825 *)
10826 case `$CC -V 2>&1 | sed 5q` in
10827 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10828 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10829 lt_prog_compiler_pic='-KPIC'
10830 lt_prog_compiler_static='-Bstatic'
10831 lt_prog_compiler_wl=''
10832 ;;
10833 *Sun\ F* | *Sun*Fortran*)
10834 lt_prog_compiler_pic='-KPIC'
10835 lt_prog_compiler_static='-Bstatic'
10836 lt_prog_compiler_wl='-Qoption ld '
10837 ;;
10838 *Sun\ C*)
10839 # Sun C 5.9
10840 lt_prog_compiler_pic='-KPIC'
10841 lt_prog_compiler_static='-Bstatic'
10842 lt_prog_compiler_wl='-Wl,'
10843 ;;
10844 *Intel*\ [CF]*Compiler*)
10845 lt_prog_compiler_wl='-Wl,'
10846 lt_prog_compiler_pic='-fPIC'
10847 lt_prog_compiler_static='-static'
10848 ;;
10849 *Portland\ Group*)
10850 lt_prog_compiler_wl='-Wl,'
10851 lt_prog_compiler_pic='-fpic'
10852 lt_prog_compiler_static='-Bstatic'
10853 ;;
10854 esac
10855 ;;
10856 esac
10857 ;;
10858
10859 newsos6)
10860 lt_prog_compiler_pic='-KPIC'
10861 lt_prog_compiler_static='-Bstatic'
10862 ;;
10863
10864 *nto* | *qnx*)
10865 # QNX uses GNU C++, but need to define -shared option too, otherwise
10866 # it will coredump.
10867 lt_prog_compiler_pic='-fPIC -shared'
10868 ;;
10869
10870 osf3* | osf4* | osf5*)
10871 lt_prog_compiler_wl='-Wl,'
10872 # All OSF/1 code is PIC.
10873 lt_prog_compiler_static='-non_shared'
10874 ;;
10875
10876 rdos*)
10877 lt_prog_compiler_static='-non_shared'
10878 ;;
10879
10880 solaris*)
10881 lt_prog_compiler_pic='-KPIC'
10882 lt_prog_compiler_static='-Bstatic'
10883 case $cc_basename in
10884 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10885 lt_prog_compiler_wl='-Qoption ld ';;
10886 *)
10887 lt_prog_compiler_wl='-Wl,';;
10888 esac
10889 ;;
10890
10891 sunos4*)
10892 lt_prog_compiler_wl='-Qoption ld '
10893 lt_prog_compiler_pic='-PIC'
10894 lt_prog_compiler_static='-Bstatic'
10895 ;;
10896
10897 sysv4 | sysv4.2uw2* | sysv4.3*)
10898 lt_prog_compiler_wl='-Wl,'
10899 lt_prog_compiler_pic='-KPIC'
10900 lt_prog_compiler_static='-Bstatic'
10901 ;;
10902
10903 sysv4*MP*)
10904 if test -d /usr/nec; then
10905 lt_prog_compiler_pic='-Kconform_pic'
10906 lt_prog_compiler_static='-Bstatic'
10907 fi
10908 ;;
10909
10910 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10911 lt_prog_compiler_wl='-Wl,'
10912 lt_prog_compiler_pic='-KPIC'
10913 lt_prog_compiler_static='-Bstatic'
10914 ;;
10915
10916 unicos*)
10917 lt_prog_compiler_wl='-Wl,'
10918 lt_prog_compiler_can_build_shared=no
10919 ;;
10920
10921 uts4*)
10922 lt_prog_compiler_pic='-pic'
10923 lt_prog_compiler_static='-Bstatic'
10924 ;;
10925
10926 *)
10927 lt_prog_compiler_can_build_shared=no
10928 ;;
10929 esac
10930 fi
10931
10932 case $host_os in
10933 # For platforms that do not support PIC, -DPIC is meaningless:
10934 *djgpp*)
10935 lt_prog_compiler_pic=
10936 ;;
10937 *)
10938 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10939 ;;
10940 esac
10941
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10943 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10944 if ${lt_cv_prog_compiler_pic+:} false; then :
10945 $as_echo_n "(cached) " >&6
10946 else
10947 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10948 fi
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10950 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10951 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10952
10953 #
10954 # Check to make sure the PIC flag actually works.
10955 #
10956 if test -n "$lt_prog_compiler_pic"; then
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10958 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10959 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10960 $as_echo_n "(cached) " >&6
10961 else
10962 lt_cv_prog_compiler_pic_works=no
10963 ac_outfile=conftest.$ac_objext
10964 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10965 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10966 # Insert the option either (1) after the last *FLAGS variable, or
10967 # (2) before a word containing "conftest.", or (3) at the end.
10968 # Note that $ac_compile itself does not contain backslashes and begins
10969 # with a dollar sign (not a hyphen), so the echo should work correctly.
10970 # The option is referenced via a variable to avoid confusing sed.
10971 lt_compile=`echo "$ac_compile" | $SED \
10972 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10973 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10974 -e 's:$: $lt_compiler_flag:'`
10975 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10976 (eval "$lt_compile" 2>conftest.err)
10977 ac_status=$?
10978 cat conftest.err >&5
10979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980 if (exit $ac_status) && test -s "$ac_outfile"; then
10981 # The compiler can only warn and ignore the option if not recognized
10982 # So say no if there are warnings other than the usual output.
10983 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10984 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10985 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10986 lt_cv_prog_compiler_pic_works=yes
10987 fi
10988 fi
10989 $RM conftest*
10990
10991 fi
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10993 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10994
10995 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10996 case $lt_prog_compiler_pic in
10997 "" | " "*) ;;
10998 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10999 esac
11000 else
11001 lt_prog_compiler_pic=
11002 lt_prog_compiler_can_build_shared=no
11003 fi
11004
11005 fi
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017 #
11018 # Check to make sure the static flag actually works.
11019 #
11020 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11022 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11023 if ${lt_cv_prog_compiler_static_works+:} false; then :
11024 $as_echo_n "(cached) " >&6
11025 else
11026 lt_cv_prog_compiler_static_works=no
11027 save_LDFLAGS=$LDFLAGS
11028 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11029 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11030 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11031 # The linker can only warn and ignore the option if not recognized
11032 # So say no if there are warnings
11033 if test -s conftest.err; then
11034 # Append any errors to the config.log.
11035 cat conftest.err 1>&5
11036 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11037 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11038 if diff conftest.exp conftest.er2 >/dev/null; then
11039 lt_cv_prog_compiler_static_works=yes
11040 fi
11041 else
11042 lt_cv_prog_compiler_static_works=yes
11043 fi
11044 fi
11045 $RM -r conftest*
11046 LDFLAGS=$save_LDFLAGS
11047
11048 fi
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11050 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11051
11052 if test yes = "$lt_cv_prog_compiler_static_works"; then
11053 :
11054 else
11055 lt_prog_compiler_static=
11056 fi
11057
11058
11059
11060
11061
11062
11063
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11065 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11066 if ${lt_cv_prog_compiler_c_o+:} false; then :
11067 $as_echo_n "(cached) " >&6
11068 else
11069 lt_cv_prog_compiler_c_o=no
11070 $RM -r conftest 2>/dev/null
11071 mkdir conftest
11072 cd conftest
11073 mkdir out
11074 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11075
11076 lt_compiler_flag="-o out/conftest2.$ac_objext"
11077 # Insert the option either (1) after the last *FLAGS variable, or
11078 # (2) before a word containing "conftest.", or (3) at the end.
11079 # Note that $ac_compile itself does not contain backslashes and begins
11080 # with a dollar sign (not a hyphen), so the echo should work correctly.
11081 lt_compile=`echo "$ac_compile" | $SED \
11082 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11083 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11084 -e 's:$: $lt_compiler_flag:'`
11085 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11086 (eval "$lt_compile" 2>out/conftest.err)
11087 ac_status=$?
11088 cat out/conftest.err >&5
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11091 then
11092 # The compiler can only warn and ignore the option if not recognized
11093 # So say no if there are warnings
11094 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11095 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11096 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11097 lt_cv_prog_compiler_c_o=yes
11098 fi
11099 fi
11100 chmod u+w . 2>&5
11101 $RM conftest*
11102 # SGI C++ compiler will create directory out/ii_files/ for
11103 # template instantiation
11104 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11105 $RM out/* && rmdir out
11106 cd ..
11107 $RM -r conftest
11108 $RM conftest*
11109
11110 fi
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11112 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11113
11114
11115
11116
11117
11118
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11120 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11121 if ${lt_cv_prog_compiler_c_o+:} false; then :
11122 $as_echo_n "(cached) " >&6
11123 else
11124 lt_cv_prog_compiler_c_o=no
11125 $RM -r conftest 2>/dev/null
11126 mkdir conftest
11127 cd conftest
11128 mkdir out
11129 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11130
11131 lt_compiler_flag="-o out/conftest2.$ac_objext"
11132 # Insert the option either (1) after the last *FLAGS variable, or
11133 # (2) before a word containing "conftest.", or (3) at the end.
11134 # Note that $ac_compile itself does not contain backslashes and begins
11135 # with a dollar sign (not a hyphen), so the echo should work correctly.
11136 lt_compile=`echo "$ac_compile" | $SED \
11137 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11138 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11139 -e 's:$: $lt_compiler_flag:'`
11140 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11141 (eval "$lt_compile" 2>out/conftest.err)
11142 ac_status=$?
11143 cat out/conftest.err >&5
11144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11146 then
11147 # The compiler can only warn and ignore the option if not recognized
11148 # So say no if there are warnings
11149 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11150 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11151 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11152 lt_cv_prog_compiler_c_o=yes
11153 fi
11154 fi
11155 chmod u+w . 2>&5
11156 $RM conftest*
11157 # SGI C++ compiler will create directory out/ii_files/ for
11158 # template instantiation
11159 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11160 $RM out/* && rmdir out
11161 cd ..
11162 $RM -r conftest
11163 $RM conftest*
11164
11165 fi
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11167 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11168
11169
11170
11171
11172 hard_links=nottested
11173 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11174 # do not overwrite the value of need_locks provided by the user
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11176 $as_echo_n "checking if we can lock with hard links... " >&6; }
11177 hard_links=yes
11178 $RM conftest*
11179 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11180 touch conftest.a
11181 ln conftest.a conftest.b 2>&5 || hard_links=no
11182 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11184 $as_echo "$hard_links" >&6; }
11185 if test no = "$hard_links"; then
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11187 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11188 need_locks=warn
11189 fi
11190 else
11191 need_locks=no
11192 fi
11193
11194
11195
11196
11197
11198
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11200 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11201
11202 runpath_var=
11203 allow_undefined_flag=
11204 always_export_symbols=no
11205 archive_cmds=
11206 archive_expsym_cmds=
11207 compiler_needs_object=no
11208 enable_shared_with_static_runtimes=no
11209 export_dynamic_flag_spec=
11210 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11211 hardcode_automatic=no
11212 hardcode_direct=no
11213 hardcode_direct_absolute=no
11214 hardcode_libdir_flag_spec=
11215 hardcode_libdir_separator=
11216 hardcode_minus_L=no
11217 hardcode_shlibpath_var=unsupported
11218 inherit_rpath=no
11219 link_all_deplibs=unknown
11220 module_cmds=
11221 module_expsym_cmds=
11222 old_archive_from_new_cmds=
11223 old_archive_from_expsyms_cmds=
11224 thread_safe_flag_spec=
11225 whole_archive_flag_spec=
11226 # include_expsyms should be a list of space-separated symbols to be *always*
11227 # included in the symbol list
11228 include_expsyms=
11229 # exclude_expsyms can be an extended regexp of symbols to exclude
11230 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11231 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11232 # as well as any symbol that contains 'd'.
11233 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11234 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11235 # platforms (ab)use it in PIC code, but their linkers get confused if
11236 # the symbol is explicitly referenced. Since portable code cannot
11237 # rely on this symbol name, it's probably fine to never include it in
11238 # preloaded symbol tables.
11239 # Exclude shared library initialization/finalization symbols.
11240 extract_expsyms_cmds=
11241
11242 case $host_os in
11243 cygwin* | mingw* | pw32* | cegcc*)
11244 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11245 # When not using gcc, we currently assume that we are using
11246 # Microsoft Visual C++.
11247 if test yes != "$GCC"; then
11248 with_gnu_ld=no
11249 fi
11250 ;;
11251 interix*)
11252 # we just hope/assume this is gcc and not c89 (= MSVC++)
11253 with_gnu_ld=yes
11254 ;;
11255 openbsd* | bitrig*)
11256 with_gnu_ld=no
11257 ;;
11258 esac
11259
11260 ld_shlibs=yes
11261
11262 # On some targets, GNU ld is compatible enough with the native linker
11263 # that we're better off using the native interface for both.
11264 lt_use_gnu_ld_interface=no
11265 if test yes = "$with_gnu_ld"; then
11266 case $host_os in
11267 aix*)
11268 # The AIX port of GNU ld has always aspired to compatibility
11269 # with the native linker. However, as the warning in the GNU ld
11270 # block says, versions before 2.19.5* couldn't really create working
11271 # shared libraries, regardless of the interface used.
11272 case `$LD -v 2>&1` in
11273 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11274 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11275 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11276 *)
11277 lt_use_gnu_ld_interface=yes
11278 ;;
11279 esac
11280 ;;
11281 *)
11282 lt_use_gnu_ld_interface=yes
11283 ;;
11284 esac
11285 fi
11286
11287 if test yes = "$lt_use_gnu_ld_interface"; then
11288 # If archive_cmds runs LD, not CC, wlarc should be empty
11289 wlarc='$wl'
11290
11291 # Set some defaults for GNU ld with shared library support. These
11292 # are reset later if shared libraries are not supported. Putting them
11293 # here allows them to be overridden if necessary.
11294 runpath_var=LD_RUN_PATH
11295 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11296 export_dynamic_flag_spec='$wl--export-dynamic'
11297 # ancient GNU ld didn't support --whole-archive et. al.
11298 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11299 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11300 else
11301 whole_archive_flag_spec=
11302 fi
11303 supports_anon_versioning=no
11304 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11305 *GNU\ gold*) supports_anon_versioning=yes ;;
11306 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11307 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11308 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11309 *\ 2.11.*) ;; # other 2.11 versions
11310 *) supports_anon_versioning=yes ;;
11311 esac
11312
11313 # See if GNU ld supports shared libraries.
11314 case $host_os in
11315 aix[3-9]*)
11316 # On AIX/PPC, the GNU linker is very broken
11317 if test ia64 != "$host_cpu"; then
11318 ld_shlibs=no
11319 cat <<_LT_EOF 1>&2
11320
11321 *** Warning: the GNU linker, at least up to release 2.19, is reported
11322 *** to be unable to reliably create shared libraries on AIX.
11323 *** Therefore, libtool is disabling shared libraries support. If you
11324 *** really care for shared libraries, you may want to install binutils
11325 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11326 *** You will then need to restart the configuration process.
11327
11328 _LT_EOF
11329 fi
11330 ;;
11331
11332 amigaos*)
11333 case $host_cpu in
11334 powerpc)
11335 # see comment about AmigaOS4 .so support
11336 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11337 archive_expsym_cmds=''
11338 ;;
11339 m68k)
11340 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)'
11341 hardcode_libdir_flag_spec='-L$libdir'
11342 hardcode_minus_L=yes
11343 ;;
11344 esac
11345 ;;
11346
11347 beos*)
11348 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11349 allow_undefined_flag=unsupported
11350 # Joseph Beckenbach <[email protected]> says some releases of gcc
11351 # support --undefined. This deserves some investigation. FIXME
11352 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11353 else
11354 ld_shlibs=no
11355 fi
11356 ;;
11357
11358 cygwin* | mingw* | pw32* | cegcc*)
11359 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11360 # as there is no search path for DLLs.
11361 hardcode_libdir_flag_spec='-L$libdir'
11362 export_dynamic_flag_spec='$wl--export-all-symbols'
11363 allow_undefined_flag=unsupported
11364 always_export_symbols=no
11365 enable_shared_with_static_runtimes=yes
11366 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'
11367 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11368
11369 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11370 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11371 # If the export-symbols file already is a .def file, use it as
11372 # is; otherwise, prepend EXPORTS...
11373 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11374 cp $export_symbols $output_objdir/$soname.def;
11375 else
11376 echo EXPORTS > $output_objdir/$soname.def;
11377 cat $export_symbols >> $output_objdir/$soname.def;
11378 fi~
11379 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11380 else
11381 ld_shlibs=no
11382 fi
11383 ;;
11384
11385 haiku*)
11386 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11387 link_all_deplibs=yes
11388 ;;
11389
11390 os2*)
11391 hardcode_libdir_flag_spec='-L$libdir'
11392 hardcode_minus_L=yes
11393 allow_undefined_flag=unsupported
11394 shrext_cmds=.dll
11395 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11396 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11397 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11398 $ECHO EXPORTS >> $output_objdir/$libname.def~
11399 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11400 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11401 emximp -o $lib $output_objdir/$libname.def'
11402 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11403 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11404 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11405 $ECHO EXPORTS >> $output_objdir/$libname.def~
11406 prefix_cmds="$SED"~
11407 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11408 prefix_cmds="$prefix_cmds -e 1d";
11409 fi~
11410 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11411 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11412 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11413 emximp -o $lib $output_objdir/$libname.def'
11414 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11415 enable_shared_with_static_runtimes=yes
11416 ;;
11417
11418 interix[3-9]*)
11419 hardcode_direct=no
11420 hardcode_shlibpath_var=no
11421 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11422 export_dynamic_flag_spec='$wl-E'
11423 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11424 # Instead, shared libraries are loaded at an image base (0x10000000 by
11425 # default) and relocated if they conflict, which is a slow very memory
11426 # consuming and fragmenting process. To avoid this, we pick a random,
11427 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11428 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11429 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11430 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'
11431 ;;
11432
11433 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11434 tmp_diet=no
11435 if test linux-dietlibc = "$host_os"; then
11436 case $cc_basename in
11437 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11438 esac
11439 fi
11440 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11441 && test no = "$tmp_diet"
11442 then
11443 tmp_addflag=' $pic_flag'
11444 tmp_sharedflag='-shared'
11445 case $cc_basename,$host_cpu in
11446 pgcc*) # Portland Group C compiler
11447 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'
11448 tmp_addflag=' $pic_flag'
11449 ;;
11450 pgf77* | pgf90* | pgf95* | pgfortran*)
11451 # Portland Group f77 and f90 compilers
11452 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'
11453 tmp_addflag=' $pic_flag -Mnomain' ;;
11454 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11455 tmp_addflag=' -i_dynamic' ;;
11456 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11457 tmp_addflag=' -i_dynamic -nofor_main' ;;
11458 ifc* | ifort*) # Intel Fortran compiler
11459 tmp_addflag=' -nofor_main' ;;
11460 lf95*) # Lahey Fortran 8.1
11461 whole_archive_flag_spec=
11462 tmp_sharedflag='--shared' ;;
11463 nagfor*) # NAGFOR 5.3
11464 tmp_sharedflag='-Wl,-shared' ;;
11465 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11466 tmp_sharedflag='-qmkshrobj'
11467 tmp_addflag= ;;
11468 nvcc*) # Cuda Compiler Driver 2.2
11469 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'
11470 compiler_needs_object=yes
11471 ;;
11472 esac
11473 case `$CC -V 2>&1 | sed 5q` in
11474 *Sun\ C*) # Sun C 5.9
11475 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'
11476 compiler_needs_object=yes
11477 tmp_sharedflag='-G' ;;
11478 *Sun\ F*) # Sun Fortran 8.3
11479 tmp_sharedflag='-G' ;;
11480 esac
11481 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11482
11483 if test yes = "$supports_anon_versioning"; then
11484 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11485 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11486 echo "local: *; };" >> $output_objdir/$libname.ver~
11487 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11488 fi
11489
11490 case $cc_basename in
11491 tcc*)
11492 export_dynamic_flag_spec='-rdynamic'
11493 ;;
11494 xlf* | bgf* | bgxlf* | mpixlf*)
11495 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11496 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11497 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11498 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11499 if test yes = "$supports_anon_versioning"; then
11500 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11501 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11502 echo "local: *; };" >> $output_objdir/$libname.ver~
11503 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11504 fi
11505 ;;
11506 esac
11507 else
11508 ld_shlibs=no
11509 fi
11510 ;;
11511
11512 netbsd*)
11513 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11514 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11515 wlarc=
11516 else
11517 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11518 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11519 fi
11520 ;;
11521
11522 solaris*)
11523 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11524 ld_shlibs=no
11525 cat <<_LT_EOF 1>&2
11526
11527 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11528 *** create shared libraries on Solaris systems. Therefore, libtool
11529 *** is disabling shared libraries support. We urge you to upgrade GNU
11530 *** binutils to release 2.9.1 or newer. Another option is to modify
11531 *** your PATH or compiler configuration so that the native linker is
11532 *** used, and then restart.
11533
11534 _LT_EOF
11535 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11536 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11537 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11538 else
11539 ld_shlibs=no
11540 fi
11541 ;;
11542
11543 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11544 case `$LD -v 2>&1` in
11545 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11546 ld_shlibs=no
11547 cat <<_LT_EOF 1>&2
11548
11549 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11550 *** reliably create shared libraries on SCO systems. Therefore, libtool
11551 *** is disabling shared libraries support. We urge you to upgrade GNU
11552 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11553 *** your PATH or compiler configuration so that the native linker is
11554 *** used, and then restart.
11555
11556 _LT_EOF
11557 ;;
11558 *)
11559 # For security reasons, it is highly recommended that you always
11560 # use absolute paths for naming shared libraries, and exclude the
11561 # DT_RUNPATH tag from executables and libraries. But doing so
11562 # requires that you compile everything twice, which is a pain.
11563 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11564 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11565 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11566 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11567 else
11568 ld_shlibs=no
11569 fi
11570 ;;
11571 esac
11572 ;;
11573
11574 sunos4*)
11575 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11576 wlarc=
11577 hardcode_direct=yes
11578 hardcode_shlibpath_var=no
11579 ;;
11580
11581 *)
11582 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11583 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11584 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11585 else
11586 ld_shlibs=no
11587 fi
11588 ;;
11589 esac
11590
11591 if test no = "$ld_shlibs"; then
11592 runpath_var=
11593 hardcode_libdir_flag_spec=
11594 export_dynamic_flag_spec=
11595 whole_archive_flag_spec=
11596 fi
11597 else
11598 # PORTME fill in a description of your system's linker (not GNU ld)
11599 case $host_os in
11600 aix3*)
11601 allow_undefined_flag=unsupported
11602 always_export_symbols=yes
11603 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'
11604 # Note: this linker hardcodes the directories in LIBPATH if there
11605 # are no directories specified by -L.
11606 hardcode_minus_L=yes
11607 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11608 # Neither direct hardcoding nor static linking is supported with a
11609 # broken collect2.
11610 hardcode_direct=unsupported
11611 fi
11612 ;;
11613
11614 aix[4-9]*)
11615 if test ia64 = "$host_cpu"; then
11616 # On IA64, the linker does run time linking by default, so we don't
11617 # have to do anything special.
11618 aix_use_runtimelinking=no
11619 exp_sym_flag='-Bexport'
11620 no_entry_flag=
11621 else
11622 # If we're using GNU nm, then we don't want the "-C" option.
11623 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11624 # Without the "-l" option, or with the "-B" option, AIX nm treats
11625 # weak defined symbols like other global defined symbols, whereas
11626 # GNU nm marks them as "W".
11627 # While the 'weak' keyword is ignored in the Export File, we need
11628 # it in the Import File for the 'aix-soname' feature, so we have
11629 # to replace the "-B" option with "-P" for AIX nm.
11630 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11631 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
11632 else
11633 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
11634 fi
11635 aix_use_runtimelinking=no
11636
11637 # Test if we are trying to use run time linking or normal
11638 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11639 # have runtime linking enabled, and use it for executables.
11640 # For shared libraries, we enable/disable runtime linking
11641 # depending on the kind of the shared library created -
11642 # when "with_aix_soname,aix_use_runtimelinking" is:
11643 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11644 # "aix,yes" lib.so shared, rtl:yes, for executables
11645 # lib.a static archive
11646 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11647 # lib.a(lib.so.V) shared, rtl:no, for executables
11648 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11649 # lib.a(lib.so.V) shared, rtl:no
11650 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11651 # lib.a static archive
11652 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11653 for ld_flag in $LDFLAGS; do
11654 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11655 aix_use_runtimelinking=yes
11656 break
11657 fi
11658 done
11659 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11660 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11661 # so we don't have lib.a shared libs to link our executables.
11662 # We have to force runtime linking in this case.
11663 aix_use_runtimelinking=yes
11664 LDFLAGS="$LDFLAGS -Wl,-brtl"
11665 fi
11666 ;;
11667 esac
11668
11669 exp_sym_flag='-bexport'
11670 no_entry_flag='-bnoentry'
11671 fi
11672
11673 # When large executables or shared objects are built, AIX ld can
11674 # have problems creating the table of contents. If linking a library
11675 # or program results in "error TOC overflow" add -mminimal-toc to
11676 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11677 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11678
11679 archive_cmds=''
11680 hardcode_direct=yes
11681 hardcode_direct_absolute=yes
11682 hardcode_libdir_separator=':'
11683 link_all_deplibs=yes
11684 file_list_spec='$wl-f,'
11685 case $with_aix_soname,$aix_use_runtimelinking in
11686 aix,*) ;; # traditional, no import file
11687 svr4,* | *,yes) # use import file
11688 # The Import File defines what to hardcode.
11689 hardcode_direct=no
11690 hardcode_direct_absolute=no
11691 ;;
11692 esac
11693
11694 if test yes = "$GCC"; then
11695 case $host_os in aix4.[012]|aix4.[012].*)
11696 # We only want to do this on AIX 4.2 and lower, the check
11697 # below for broken collect2 doesn't work under 4.3+
11698 collect2name=`$CC -print-prog-name=collect2`
11699 if test -f "$collect2name" &&
11700 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11701 then
11702 # We have reworked collect2
11703 :
11704 else
11705 # We have old collect2
11706 hardcode_direct=unsupported
11707 # It fails to find uninstalled libraries when the uninstalled
11708 # path is not listed in the libpath. Setting hardcode_minus_L
11709 # to unsupported forces relinking
11710 hardcode_minus_L=yes
11711 hardcode_libdir_flag_spec='-L$libdir'
11712 hardcode_libdir_separator=
11713 fi
11714 ;;
11715 esac
11716 shared_flag='-shared'
11717 if test yes = "$aix_use_runtimelinking"; then
11718 shared_flag="$shared_flag "'$wl-G'
11719 fi
11720 # Need to ensure runtime linking is disabled for the traditional
11721 # shared library, or the linker may eventually find shared libraries
11722 # /with/ Import File - we do not want to mix them.
11723 shared_flag_aix='-shared'
11724 shared_flag_svr4='-shared $wl-G'
11725 else
11726 # not using gcc
11727 if test ia64 = "$host_cpu"; then
11728 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11729 # chokes on -Wl,-G. The following line is correct:
11730 shared_flag='-G'
11731 else
11732 if test yes = "$aix_use_runtimelinking"; then
11733 shared_flag='$wl-G'
11734 else
11735 shared_flag='$wl-bM:SRE'
11736 fi
11737 shared_flag_aix='$wl-bM:SRE'
11738 shared_flag_svr4='$wl-G'
11739 fi
11740 fi
11741
11742 export_dynamic_flag_spec='$wl-bexpall'
11743 # It seems that -bexpall does not export symbols beginning with
11744 # underscore (_), so it is better to generate a list of symbols to export.
11745 always_export_symbols=yes
11746 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11747 # Warning - without using the other runtime loading flags (-brtl),
11748 # -berok will link without error, but may produce a broken library.
11749 allow_undefined_flag='-berok'
11750 # Determine the default libpath from the value encoded in an
11751 # empty executable.
11752 if test set = "${lt_cv_aix_libpath+set}"; then
11753 aix_libpath=$lt_cv_aix_libpath
11754 else
11755 if ${lt_cv_aix_libpath_+:} false; then :
11756 $as_echo_n "(cached) " >&6
11757 else
11758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11759 /* end confdefs.h. */
11760
11761 int
11762 main ()
11763 {
11764
11765 ;
11766 return 0;
11767 }
11768 _ACEOF
11769 if ac_fn_c_try_link "$LINENO"; then :
11770
11771 lt_aix_libpath_sed='
11772 /Import File Strings/,/^$/ {
11773 /^0/ {
11774 s/^0 *\([^ ]*\) *$/\1/
11775 p
11776 }
11777 }'
11778 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11779 # Check for a 64-bit object if we didn't find anything.
11780 if test -z "$lt_cv_aix_libpath_"; then
11781 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11782 fi
11783 fi
11784 rm -f core conftest.err conftest.$ac_objext \
11785 conftest$ac_exeext conftest.$ac_ext
11786 if test -z "$lt_cv_aix_libpath_"; then
11787 lt_cv_aix_libpath_=/usr/lib:/lib
11788 fi
11789
11790 fi
11791
11792 aix_libpath=$lt_cv_aix_libpath_
11793 fi
11794
11795 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11796 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
11797 else
11798 if test ia64 = "$host_cpu"; then
11799 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11800 allow_undefined_flag="-z nodefs"
11801 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"
11802 else
11803 # Determine the default libpath from the value encoded in an
11804 # empty executable.
11805 if test set = "${lt_cv_aix_libpath+set}"; then
11806 aix_libpath=$lt_cv_aix_libpath
11807 else
11808 if ${lt_cv_aix_libpath_+:} false; then :
11809 $as_echo_n "(cached) " >&6
11810 else
11811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11812 /* end confdefs.h. */
11813
11814 int
11815 main ()
11816 {
11817
11818 ;
11819 return 0;
11820 }
11821 _ACEOF
11822 if ac_fn_c_try_link "$LINENO"; then :
11823
11824 lt_aix_libpath_sed='
11825 /Import File Strings/,/^$/ {
11826 /^0/ {
11827 s/^0 *\([^ ]*\) *$/\1/
11828 p
11829 }
11830 }'
11831 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11832 # Check for a 64-bit object if we didn't find anything.
11833 if test -z "$lt_cv_aix_libpath_"; then
11834 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11835 fi
11836 fi
11837 rm -f core conftest.err conftest.$ac_objext \
11838 conftest$ac_exeext conftest.$ac_ext
11839 if test -z "$lt_cv_aix_libpath_"; then
11840 lt_cv_aix_libpath_=/usr/lib:/lib
11841 fi
11842
11843 fi
11844
11845 aix_libpath=$lt_cv_aix_libpath_
11846 fi
11847
11848 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11849 # Warning - without using the other run time loading flags,
11850 # -berok will link without error, but may produce a broken library.
11851 no_undefined_flag=' $wl-bernotok'
11852 allow_undefined_flag=' $wl-berok'
11853 if test yes = "$with_gnu_ld"; then
11854 # We only use this code for GNU lds that support --whole-archive.
11855 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11856 else
11857 # Exported symbols can be pulled into shared objects from archives
11858 whole_archive_flag_spec='$convenience'
11859 fi
11860 archive_cmds_need_lc=yes
11861 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11862 # -brtl affects multiple linker settings, -berok does not and is overridden later
11863 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11864 if test svr4 != "$with_aix_soname"; then
11865 # This is similar to how AIX traditionally builds its shared libraries.
11866 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
11867 fi
11868 if test aix != "$with_aix_soname"; then
11869 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
11870 else
11871 # used by -dlpreopen to get the symbols
11872 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11873 fi
11874 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11875 fi
11876 fi
11877 ;;
11878
11879 amigaos*)
11880 case $host_cpu in
11881 powerpc)
11882 # see comment about AmigaOS4 .so support
11883 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11884 archive_expsym_cmds=''
11885 ;;
11886 m68k)
11887 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)'
11888 hardcode_libdir_flag_spec='-L$libdir'
11889 hardcode_minus_L=yes
11890 ;;
11891 esac
11892 ;;
11893
11894 bsdi[45]*)
11895 export_dynamic_flag_spec=-rdynamic
11896 ;;
11897
11898 cygwin* | mingw* | pw32* | cegcc*)
11899 # When not using gcc, we currently assume that we are using
11900 # Microsoft Visual C++.
11901 # hardcode_libdir_flag_spec is actually meaningless, as there is
11902 # no search path for DLLs.
11903 case $cc_basename in
11904 cl*)
11905 # Native MSVC
11906 hardcode_libdir_flag_spec=' '
11907 allow_undefined_flag=unsupported
11908 always_export_symbols=yes
11909 file_list_spec='@'
11910 # Tell ltmain to make .lib files, not .a files.
11911 libext=lib
11912 # Tell ltmain to make .dll files, not .so files.
11913 shrext_cmds=.dll
11914 # FIXME: Setting linknames here is a bad hack.
11915 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11916 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11917 cp "$export_symbols" "$output_objdir/$soname.def";
11918 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11919 else
11920 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11921 fi~
11922 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11923 linknames='
11924 # The linker will not automatically build a static lib if we build a DLL.
11925 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11926 enable_shared_with_static_runtimes=yes
11927 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11928 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11929 # Don't use ranlib
11930 old_postinstall_cmds='chmod 644 $oldlib'
11931 postlink_cmds='lt_outputfile="@OUTPUT@"~
11932 lt_tool_outputfile="@TOOL_OUTPUT@"~
11933 case $lt_outputfile in
11934 *.exe|*.EXE) ;;
11935 *)
11936 lt_outputfile=$lt_outputfile.exe
11937 lt_tool_outputfile=$lt_tool_outputfile.exe
11938 ;;
11939 esac~
11940 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11941 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11942 $RM "$lt_outputfile.manifest";
11943 fi'
11944 ;;
11945 *)
11946 # Assume MSVC wrapper
11947 hardcode_libdir_flag_spec=' '
11948 allow_undefined_flag=unsupported
11949 # Tell ltmain to make .lib files, not .a files.
11950 libext=lib
11951 # Tell ltmain to make .dll files, not .so files.
11952 shrext_cmds=.dll
11953 # FIXME: Setting linknames here is a bad hack.
11954 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11955 # The linker will automatically build a .lib file if we build a DLL.
11956 old_archive_from_new_cmds='true'
11957 # FIXME: Should let the user specify the lib program.
11958 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11959 enable_shared_with_static_runtimes=yes
11960 ;;
11961 esac
11962 ;;
11963
11964 darwin* | rhapsody*)
11965
11966
11967 archive_cmds_need_lc=no
11968 hardcode_direct=no
11969 hardcode_automatic=yes
11970 hardcode_shlibpath_var=unsupported
11971 if test yes = "$lt_cv_ld_force_load"; then
11972 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\"`'
11973
11974 else
11975 whole_archive_flag_spec=''
11976 fi
11977 link_all_deplibs=yes
11978 allow_undefined_flag=$_lt_dar_allow_undefined
11979 case $cc_basename in
11980 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11981 *) _lt_dar_can_shared=$GCC ;;
11982 esac
11983 if test yes = "$_lt_dar_can_shared"; then
11984 output_verbose_link_cmd=func_echo_all
11985 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11986 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11987 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"
11988 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"
11989
11990 else
11991 ld_shlibs=no
11992 fi
11993
11994 ;;
11995
11996 dgux*)
11997 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11998 hardcode_libdir_flag_spec='-L$libdir'
11999 hardcode_shlibpath_var=no
12000 ;;
12001
12002 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12003 # support. Future versions do this automatically, but an explicit c++rt0.o
12004 # does not break anything, and helps significantly (at the cost of a little
12005 # extra space).
12006 freebsd2.2*)
12007 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12008 hardcode_libdir_flag_spec='-R$libdir'
12009 hardcode_direct=yes
12010 hardcode_shlibpath_var=no
12011 ;;
12012
12013 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12014 freebsd2.*)
12015 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12016 hardcode_direct=yes
12017 hardcode_minus_L=yes
12018 hardcode_shlibpath_var=no
12019 ;;
12020
12021 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12022 freebsd* | dragonfly*)
12023 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12024 hardcode_libdir_flag_spec='-R$libdir'
12025 hardcode_direct=yes
12026 hardcode_shlibpath_var=no
12027 ;;
12028
12029 hpux9*)
12030 if test yes = "$GCC"; then
12031 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12032 else
12033 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12034 fi
12035 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12036 hardcode_libdir_separator=:
12037 hardcode_direct=yes
12038
12039 # hardcode_minus_L: Not really in the search PATH,
12040 # but as the default location of the library.
12041 hardcode_minus_L=yes
12042 export_dynamic_flag_spec='$wl-E'
12043 ;;
12044
12045 hpux10*)
12046 if test yes,no = "$GCC,$with_gnu_ld"; then
12047 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12048 else
12049 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12050 fi
12051 if test no = "$with_gnu_ld"; then
12052 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12053 hardcode_libdir_separator=:
12054 hardcode_direct=yes
12055 hardcode_direct_absolute=yes
12056 export_dynamic_flag_spec='$wl-E'
12057 # hardcode_minus_L: Not really in the search PATH,
12058 # but as the default location of the library.
12059 hardcode_minus_L=yes
12060 fi
12061 ;;
12062
12063 hpux11*)
12064 if test yes,no = "$GCC,$with_gnu_ld"; then
12065 case $host_cpu in
12066 hppa*64*)
12067 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12068 ;;
12069 ia64*)
12070 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12071 ;;
12072 *)
12073 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12074 ;;
12075 esac
12076 else
12077 case $host_cpu in
12078 hppa*64*)
12079 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12080 ;;
12081 ia64*)
12082 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12083 ;;
12084 *)
12085
12086 # Older versions of the 11.00 compiler do not understand -b yet
12087 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12089 $as_echo_n "checking if $CC understands -b... " >&6; }
12090 if ${lt_cv_prog_compiler__b+:} false; then :
12091 $as_echo_n "(cached) " >&6
12092 else
12093 lt_cv_prog_compiler__b=no
12094 save_LDFLAGS=$LDFLAGS
12095 LDFLAGS="$LDFLAGS -b"
12096 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12097 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12098 # The linker can only warn and ignore the option if not recognized
12099 # So say no if there are warnings
12100 if test -s conftest.err; then
12101 # Append any errors to the config.log.
12102 cat conftest.err 1>&5
12103 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12104 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12105 if diff conftest.exp conftest.er2 >/dev/null; then
12106 lt_cv_prog_compiler__b=yes
12107 fi
12108 else
12109 lt_cv_prog_compiler__b=yes
12110 fi
12111 fi
12112 $RM -r conftest*
12113 LDFLAGS=$save_LDFLAGS
12114
12115 fi
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12117 $as_echo "$lt_cv_prog_compiler__b" >&6; }
12118
12119 if test yes = "$lt_cv_prog_compiler__b"; then
12120 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12121 else
12122 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12123 fi
12124
12125 ;;
12126 esac
12127 fi
12128 if test no = "$with_gnu_ld"; then
12129 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12130 hardcode_libdir_separator=:
12131
12132 case $host_cpu in
12133 hppa*64*|ia64*)
12134 hardcode_direct=no
12135 hardcode_shlibpath_var=no
12136 ;;
12137 *)
12138 hardcode_direct=yes
12139 hardcode_direct_absolute=yes
12140 export_dynamic_flag_spec='$wl-E'
12141
12142 # hardcode_minus_L: Not really in the search PATH,
12143 # but as the default location of the library.
12144 hardcode_minus_L=yes
12145 ;;
12146 esac
12147 fi
12148 ;;
12149
12150 irix5* | irix6* | nonstopux*)
12151 if test yes = "$GCC"; then
12152 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'
12153 # Try to use the -exported_symbol ld option, if it does not
12154 # work, assume that -exports_file does not work either and
12155 # implicitly export all symbols.
12156 # This should be the same for all languages, so no per-tag cache variable.
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12158 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12159 if ${lt_cv_irix_exported_symbol+:} false; then :
12160 $as_echo_n "(cached) " >&6
12161 else
12162 save_LDFLAGS=$LDFLAGS
12163 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12165 /* end confdefs.h. */
12166 int foo (void) { return 0; }
12167 _ACEOF
12168 if ac_fn_c_try_link "$LINENO"; then :
12169 lt_cv_irix_exported_symbol=yes
12170 else
12171 lt_cv_irix_exported_symbol=no
12172 fi
12173 rm -f core conftest.err conftest.$ac_objext \
12174 conftest$ac_exeext conftest.$ac_ext
12175 LDFLAGS=$save_LDFLAGS
12176 fi
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12178 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
12179 if test yes = "$lt_cv_irix_exported_symbol"; then
12180 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'
12181 fi
12182 else
12183 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'
12184 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'
12185 fi
12186 archive_cmds_need_lc='no'
12187 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12188 hardcode_libdir_separator=:
12189 inherit_rpath=yes
12190 link_all_deplibs=yes
12191 ;;
12192
12193 linux*)
12194 case $cc_basename in
12195 tcc*)
12196 # Fabrice Bellard et al's Tiny C Compiler
12197 ld_shlibs=yes
12198 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12199 ;;
12200 esac
12201 ;;
12202
12203 netbsd*)
12204 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12205 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12206 else
12207 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12208 fi
12209 hardcode_libdir_flag_spec='-R$libdir'
12210 hardcode_direct=yes
12211 hardcode_shlibpath_var=no
12212 ;;
12213
12214 newsos6)
12215 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12216 hardcode_direct=yes
12217 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12218 hardcode_libdir_separator=:
12219 hardcode_shlibpath_var=no
12220 ;;
12221
12222 *nto* | *qnx*)
12223 ;;
12224
12225 openbsd* | bitrig*)
12226 if test -f /usr/libexec/ld.so; then
12227 hardcode_direct=yes
12228 hardcode_shlibpath_var=no
12229 hardcode_direct_absolute=yes
12230 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12231 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12232 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12233 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12234 export_dynamic_flag_spec='$wl-E'
12235 else
12236 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12237 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12238 fi
12239 else
12240 ld_shlibs=no
12241 fi
12242 ;;
12243
12244 os2*)
12245 hardcode_libdir_flag_spec='-L$libdir'
12246 hardcode_minus_L=yes
12247 allow_undefined_flag=unsupported
12248 shrext_cmds=.dll
12249 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12250 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12251 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12252 $ECHO EXPORTS >> $output_objdir/$libname.def~
12253 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12254 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12255 emximp -o $lib $output_objdir/$libname.def'
12256 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12257 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12258 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12259 $ECHO EXPORTS >> $output_objdir/$libname.def~
12260 prefix_cmds="$SED"~
12261 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12262 prefix_cmds="$prefix_cmds -e 1d";
12263 fi~
12264 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12265 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12266 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12267 emximp -o $lib $output_objdir/$libname.def'
12268 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12269 enable_shared_with_static_runtimes=yes
12270 ;;
12271
12272 osf3*)
12273 if test yes = "$GCC"; then
12274 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12275 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'
12276 else
12277 allow_undefined_flag=' -expect_unresolved \*'
12278 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'
12279 fi
12280 archive_cmds_need_lc='no'
12281 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12282 hardcode_libdir_separator=:
12283 ;;
12284
12285 osf4* | osf5*) # as osf3* with the addition of -msym flag
12286 if test yes = "$GCC"; then
12287 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12288 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'
12289 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12290 else
12291 allow_undefined_flag=' -expect_unresolved \*'
12292 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'
12293 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~
12294 $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'
12295
12296 # Both c and cxx compiler support -rpath directly
12297 hardcode_libdir_flag_spec='-rpath $libdir'
12298 fi
12299 archive_cmds_need_lc='no'
12300 hardcode_libdir_separator=:
12301 ;;
12302
12303 solaris*)
12304 no_undefined_flag=' -z defs'
12305 if test yes = "$GCC"; then
12306 wlarc='$wl'
12307 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12308 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12309 $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'
12310 else
12311 case `$CC -V 2>&1` in
12312 *"Compilers 5.0"*)
12313 wlarc=''
12314 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12315 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12316 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12317 ;;
12318 *)
12319 wlarc='$wl'
12320 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12321 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12322 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12323 ;;
12324 esac
12325 fi
12326 hardcode_libdir_flag_spec='-R$libdir'
12327 hardcode_shlibpath_var=no
12328 case $host_os in
12329 solaris2.[0-5] | solaris2.[0-5].*) ;;
12330 *)
12331 # The compiler driver will combine and reorder linker options,
12332 # but understands '-z linker_flag'. GCC discards it without '$wl',
12333 # but is careful enough not to reorder.
12334 # Supported since Solaris 2.6 (maybe 2.5.1?)
12335 if test yes = "$GCC"; then
12336 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12337 else
12338 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12339 fi
12340 ;;
12341 esac
12342 link_all_deplibs=yes
12343 ;;
12344
12345 sunos4*)
12346 if test sequent = "$host_vendor"; then
12347 # Use $CC to link under sequent, because it throws in some extra .o
12348 # files that make .init and .fini sections work.
12349 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12350 else
12351 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12352 fi
12353 hardcode_libdir_flag_spec='-L$libdir'
12354 hardcode_direct=yes
12355 hardcode_minus_L=yes
12356 hardcode_shlibpath_var=no
12357 ;;
12358
12359 sysv4)
12360 case $host_vendor in
12361 sni)
12362 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12363 hardcode_direct=yes # is this really true???
12364 ;;
12365 siemens)
12366 ## LD is ld it makes a PLAMLIB
12367 ## CC just makes a GrossModule.
12368 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12369 reload_cmds='$CC -r -o $output$reload_objs'
12370 hardcode_direct=no
12371 ;;
12372 motorola)
12373 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12374 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12375 ;;
12376 esac
12377 runpath_var='LD_RUN_PATH'
12378 hardcode_shlibpath_var=no
12379 ;;
12380
12381 sysv4.3*)
12382 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12383 hardcode_shlibpath_var=no
12384 export_dynamic_flag_spec='-Bexport'
12385 ;;
12386
12387 sysv4*MP*)
12388 if test -d /usr/nec; then
12389 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12390 hardcode_shlibpath_var=no
12391 runpath_var=LD_RUN_PATH
12392 hardcode_runpath_var=yes
12393 ld_shlibs=yes
12394 fi
12395 ;;
12396
12397 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12398 no_undefined_flag='$wl-z,text'
12399 archive_cmds_need_lc=no
12400 hardcode_shlibpath_var=no
12401 runpath_var='LD_RUN_PATH'
12402
12403 if test yes = "$GCC"; then
12404 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12405 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12406 else
12407 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12408 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12409 fi
12410 ;;
12411
12412 sysv5* | sco3.2v5* | sco5v6*)
12413 # Note: We CANNOT use -z defs as we might desire, because we do not
12414 # link with -lc, and that would cause any symbols used from libc to
12415 # always be unresolved, which means just about no library would
12416 # ever link correctly. If we're not using GNU ld we use -z text
12417 # though, which does catch some bad symbols but isn't as heavy-handed
12418 # as -z defs.
12419 no_undefined_flag='$wl-z,text'
12420 allow_undefined_flag='$wl-z,nodefs'
12421 archive_cmds_need_lc=no
12422 hardcode_shlibpath_var=no
12423 hardcode_libdir_flag_spec='$wl-R,$libdir'
12424 hardcode_libdir_separator=':'
12425 link_all_deplibs=yes
12426 export_dynamic_flag_spec='$wl-Bexport'
12427 runpath_var='LD_RUN_PATH'
12428
12429 if test yes = "$GCC"; then
12430 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12431 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12432 else
12433 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12434 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12435 fi
12436 ;;
12437
12438 uts4*)
12439 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12440 hardcode_libdir_flag_spec='-L$libdir'
12441 hardcode_shlibpath_var=no
12442 ;;
12443
12444 *)
12445 ld_shlibs=no
12446 ;;
12447 esac
12448
12449 if test sni = "$host_vendor"; then
12450 case $host in
12451 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12452 export_dynamic_flag_spec='$wl-Blargedynsym'
12453 ;;
12454 esac
12455 fi
12456 fi
12457
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12459 $as_echo "$ld_shlibs" >&6; }
12460 test no = "$ld_shlibs" && can_build_shared=no
12461
12462 with_gnu_ld=$with_gnu_ld
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478 #
12479 # Do we need to explicitly link libc?
12480 #
12481 case "x$archive_cmds_need_lc" in
12482 x|xyes)
12483 # Assume -lc should be added
12484 archive_cmds_need_lc=yes
12485
12486 if test yes,yes = "$GCC,$enable_shared"; then
12487 case $archive_cmds in
12488 *'~'*)
12489 # FIXME: we may have to deal with multi-command sequences.
12490 ;;
12491 '$CC '*)
12492 # Test whether the compiler implicitly links with -lc since on some
12493 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12494 # to ld, don't add -lc before -lgcc.
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12496 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12497 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12498 $as_echo_n "(cached) " >&6
12499 else
12500 $RM conftest*
12501 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12502
12503 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12504 (eval $ac_compile) 2>&5
12505 ac_status=$?
12506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12507 test $ac_status = 0; } 2>conftest.err; then
12508 soname=conftest
12509 lib=conftest
12510 libobjs=conftest.$ac_objext
12511 deplibs=
12512 wl=$lt_prog_compiler_wl
12513 pic_flag=$lt_prog_compiler_pic
12514 compiler_flags=-v
12515 linker_flags=-v
12516 verstring=
12517 output_objdir=.
12518 libname=conftest
12519 lt_save_allow_undefined_flag=$allow_undefined_flag
12520 allow_undefined_flag=
12521 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12522 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12523 ac_status=$?
12524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12525 test $ac_status = 0; }
12526 then
12527 lt_cv_archive_cmds_need_lc=no
12528 else
12529 lt_cv_archive_cmds_need_lc=yes
12530 fi
12531 allow_undefined_flag=$lt_save_allow_undefined_flag
12532 else
12533 cat conftest.err 1>&5
12534 fi
12535 $RM conftest*
12536
12537 fi
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12539 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12540 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12541 ;;
12542 esac
12543 fi
12544 ;;
12545 esac
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12699 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12700
12701 if test yes = "$GCC"; then
12702 case $host_os in
12703 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12704 *) lt_awk_arg='/^libraries:/' ;;
12705 esac
12706 case $host_os in
12707 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12708 *) lt_sed_strip_eq='s|=/|/|g' ;;
12709 esac
12710 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12711 case $lt_search_path_spec in
12712 *\;*)
12713 # if the path contains ";" then we assume it to be the separator
12714 # otherwise default to the standard path separator (i.e. ":") - it is
12715 # assumed that no part of a normal pathname contains ";" but that should
12716 # okay in the real world where ";" in dirpaths is itself problematic.
12717 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12718 ;;
12719 *)
12720 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12721 ;;
12722 esac
12723 # Ok, now we have the path, separated by spaces, we can step through it
12724 # and add multilib dir if necessary...
12725 lt_tmp_lt_search_path_spec=
12726 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12727 # ...but if some path component already ends with the multilib dir we assume
12728 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12729 case "$lt_multi_os_dir; $lt_search_path_spec " in
12730 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12731 lt_multi_os_dir=
12732 ;;
12733 esac
12734 for lt_sys_path in $lt_search_path_spec; do
12735 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12736 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12737 elif test -n "$lt_multi_os_dir"; then
12738 test -d "$lt_sys_path" && \
12739 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12740 fi
12741 done
12742 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12743 BEGIN {RS = " "; FS = "/|\n";} {
12744 lt_foo = "";
12745 lt_count = 0;
12746 for (lt_i = NF; lt_i > 0; lt_i--) {
12747 if ($lt_i != "" && $lt_i != ".") {
12748 if ($lt_i == "..") {
12749 lt_count++;
12750 } else {
12751 if (lt_count == 0) {
12752 lt_foo = "/" $lt_i lt_foo;
12753 } else {
12754 lt_count--;
12755 }
12756 }
12757 }
12758 }
12759 if (lt_foo != "") { lt_freq[lt_foo]++; }
12760 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12761 }'`
12762 # AWK program above erroneously prepends '/' to C:/dos/paths
12763 # for these hosts.
12764 case $host_os in
12765 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12766 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12767 esac
12768 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12769 else
12770 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12771 fi
12772 library_names_spec=
12773 libname_spec='lib$name'
12774 soname_spec=
12775 shrext_cmds=.so
12776 postinstall_cmds=
12777 postuninstall_cmds=
12778 finish_cmds=
12779 finish_eval=
12780 shlibpath_var=
12781 shlibpath_overrides_runpath=unknown
12782 version_type=none
12783 dynamic_linker="$host_os ld.so"
12784 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12785 need_lib_prefix=unknown
12786 hardcode_into_libs=no
12787
12788 # when you set need_version to no, make sure it does not cause -set_version
12789 # flags to be left without arguments
12790 need_version=unknown
12791
12792
12793
12794 case $host_os in
12795 aix3*)
12796 version_type=linux # correct to gnu/linux during the next big refactor
12797 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12798 shlibpath_var=LIBPATH
12799
12800 # AIX 3 has no versioning support, so we append a major version to the name.
12801 soname_spec='$libname$release$shared_ext$major'
12802 ;;
12803
12804 aix[4-9]*)
12805 version_type=linux # correct to gnu/linux during the next big refactor
12806 need_lib_prefix=no
12807 need_version=no
12808 hardcode_into_libs=yes
12809 if test ia64 = "$host_cpu"; then
12810 # AIX 5 supports IA64
12811 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12812 shlibpath_var=LD_LIBRARY_PATH
12813 else
12814 # With GCC up to 2.95.x, collect2 would create an import file
12815 # for dependence libraries. The import file would start with
12816 # the line '#! .'. This would cause the generated library to
12817 # depend on '.', always an invalid library. This was fixed in
12818 # development snapshots of GCC prior to 3.0.
12819 case $host_os in
12820 aix4 | aix4.[01] | aix4.[01].*)
12821 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12822 echo ' yes '
12823 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12824 :
12825 else
12826 can_build_shared=no
12827 fi
12828 ;;
12829 esac
12830 # Using Import Files as archive members, it is possible to support
12831 # filename-based versioning of shared library archives on AIX. While
12832 # this would work for both with and without runtime linking, it will
12833 # prevent static linking of such archives. So we do filename-based
12834 # shared library versioning with .so extension only, which is used
12835 # when both runtime linking and shared linking is enabled.
12836 # Unfortunately, runtime linking may impact performance, so we do
12837 # not want this to be the default eventually. Also, we use the
12838 # versioned .so libs for executables only if there is the -brtl
12839 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12840 # To allow for filename-based versioning support, we need to create
12841 # libNAME.so.V as an archive file, containing:
12842 # *) an Import File, referring to the versioned filename of the
12843 # archive as well as the shared archive member, telling the
12844 # bitwidth (32 or 64) of that shared object, and providing the
12845 # list of exported symbols of that shared object, eventually
12846 # decorated with the 'weak' keyword
12847 # *) the shared object with the F_LOADONLY flag set, to really avoid
12848 # it being seen by the linker.
12849 # At run time we better use the real file rather than another symlink,
12850 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12851
12852 case $with_aix_soname,$aix_use_runtimelinking in
12853 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12854 # soname into executable. Probably we can add versioning support to
12855 # collect2, so additional links can be useful in future.
12856 aix,yes) # traditional libtool
12857 dynamic_linker='AIX unversionable lib.so'
12858 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12859 # instead of lib<name>.a to let people know that these are not
12860 # typical AIX shared libraries.
12861 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12862 ;;
12863 aix,no) # traditional AIX only
12864 dynamic_linker='AIX lib.a(lib.so.V)'
12865 # We preserve .a as extension for shared libraries through AIX4.2
12866 # and later when we are not doing run time linking.
12867 library_names_spec='$libname$release.a $libname.a'
12868 soname_spec='$libname$release$shared_ext$major'
12869 ;;
12870 svr4,*) # full svr4 only
12871 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12872 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12873 # We do not specify a path in Import Files, so LIBPATH fires.
12874 shlibpath_overrides_runpath=yes
12875 ;;
12876 *,yes) # both, prefer svr4
12877 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12878 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12879 # unpreferred sharedlib libNAME.a needs extra handling
12880 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
12881 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
12882 # We do not specify a path in Import Files, so LIBPATH fires.
12883 shlibpath_overrides_runpath=yes
12884 ;;
12885 *,no) # both, prefer aix
12886 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12887 library_names_spec='$libname$release.a $libname.a'
12888 soname_spec='$libname$release$shared_ext$major'
12889 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12890 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
12891 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
12892 ;;
12893 esac
12894 shlibpath_var=LIBPATH
12895 fi
12896 ;;
12897
12898 amigaos*)
12899 case $host_cpu in
12900 powerpc)
12901 # Since July 2007 AmigaOS4 officially supports .so libraries.
12902 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12903 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12904 ;;
12905 m68k)
12906 library_names_spec='$libname.ixlibrary $libname.a'
12907 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12908 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
12909 ;;
12910 esac
12911 ;;
12912
12913 beos*)
12914 library_names_spec='$libname$shared_ext'
12915 dynamic_linker="$host_os ld.so"
12916 shlibpath_var=LIBRARY_PATH
12917 ;;
12918
12919 bsdi[45]*)
12920 version_type=linux # correct to gnu/linux during the next big refactor
12921 need_version=no
12922 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12923 soname_spec='$libname$release$shared_ext$major'
12924 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12925 shlibpath_var=LD_LIBRARY_PATH
12926 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12927 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12928 # the default ld.so.conf also contains /usr/contrib/lib and
12929 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12930 # libtool to hard-code these into programs
12931 ;;
12932
12933 cygwin* | mingw* | pw32* | cegcc*)
12934 version_type=windows
12935 shrext_cmds=.dll
12936 need_version=no
12937 need_lib_prefix=no
12938
12939 case $GCC,$cc_basename in
12940 yes,*)
12941 # gcc
12942 library_names_spec='$libname.dll.a'
12943 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12944 postinstall_cmds='base_file=`basename \$file`~
12945 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12946 dldir=$destdir/`dirname \$dlpath`~
12947 test -d \$dldir || mkdir -p \$dldir~
12948 $install_prog $dir/$dlname \$dldir/$dlname~
12949 chmod a+x \$dldir/$dlname~
12950 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12951 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12952 fi'
12953 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12954 dlpath=$dir/\$dldll~
12955 $RM \$dlpath'
12956 shlibpath_overrides_runpath=yes
12957
12958 case $host_os in
12959 cygwin*)
12960 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12961 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12962
12963 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12964 ;;
12965 mingw* | cegcc*)
12966 # MinGW DLLs use traditional 'lib' prefix
12967 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12968 ;;
12969 pw32*)
12970 # pw32 DLLs use 'pw' prefix rather than 'lib'
12971 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12972 ;;
12973 esac
12974 dynamic_linker='Win32 ld.exe'
12975 ;;
12976
12977 *,cl*)
12978 # Native MSVC
12979 libname_spec='$name'
12980 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12981 library_names_spec='$libname.dll.lib'
12982
12983 case $build_os in
12984 mingw*)
12985 sys_lib_search_path_spec=
12986 lt_save_ifs=$IFS
12987 IFS=';'
12988 for lt_path in $LIB
12989 do
12990 IFS=$lt_save_ifs
12991 # Let DOS variable expansion print the short 8.3 style file name.
12992 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12993 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12994 done
12995 IFS=$lt_save_ifs
12996 # Convert to MSYS style.
12997 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12998 ;;
12999 cygwin*)
13000 # Convert to unix form, then to dos form, then back to unix form
13001 # but this time dos style (no spaces!) so that the unix form looks
13002 # like /cygdrive/c/PROGRA~1:/cygdr...
13003 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13004 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13005 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13006 ;;
13007 *)
13008 sys_lib_search_path_spec=$LIB
13009 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13010 # It is most probably a Windows format PATH.
13011 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13012 else
13013 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13014 fi
13015 # FIXME: find the short name or the path components, as spaces are
13016 # common. (e.g. "Program Files" -> "PROGRA~1")
13017 ;;
13018 esac
13019
13020 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13021 postinstall_cmds='base_file=`basename \$file`~
13022 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13023 dldir=$destdir/`dirname \$dlpath`~
13024 test -d \$dldir || mkdir -p \$dldir~
13025 $install_prog $dir/$dlname \$dldir/$dlname'
13026 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13027 dlpath=$dir/\$dldll~
13028 $RM \$dlpath'
13029 shlibpath_overrides_runpath=yes
13030 dynamic_linker='Win32 link.exe'
13031 ;;
13032
13033 *)
13034 # Assume MSVC wrapper
13035 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13036 dynamic_linker='Win32 ld.exe'
13037 ;;
13038 esac
13039 # FIXME: first we should search . and the directory the executable is in
13040 shlibpath_var=PATH
13041 ;;
13042
13043 darwin* | rhapsody*)
13044 dynamic_linker="$host_os dyld"
13045 version_type=darwin
13046 need_lib_prefix=no
13047 need_version=no
13048 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13049 soname_spec='$libname$release$major$shared_ext'
13050 shlibpath_overrides_runpath=yes
13051 shlibpath_var=DYLD_LIBRARY_PATH
13052 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13053
13054 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13055 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13056 ;;
13057
13058 dgux*)
13059 version_type=linux # correct to gnu/linux during the next big refactor
13060 need_lib_prefix=no
13061 need_version=no
13062 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13063 soname_spec='$libname$release$shared_ext$major'
13064 shlibpath_var=LD_LIBRARY_PATH
13065 ;;
13066
13067 freebsd* | dragonfly*)
13068 # DragonFly does not have aout. When/if they implement a new
13069 # versioning mechanism, adjust this.
13070 if test -x /usr/bin/objformat; then
13071 objformat=`/usr/bin/objformat`
13072 else
13073 case $host_os in
13074 freebsd[23].*) objformat=aout ;;
13075 *) objformat=elf ;;
13076 esac
13077 fi
13078 version_type=freebsd-$objformat
13079 case $version_type in
13080 freebsd-elf*)
13081 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13082 soname_spec='$libname$release$shared_ext$major'
13083 need_version=no
13084 need_lib_prefix=no
13085 ;;
13086 freebsd-*)
13087 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13088 need_version=yes
13089 ;;
13090 esac
13091 shlibpath_var=LD_LIBRARY_PATH
13092 case $host_os in
13093 freebsd2.*)
13094 shlibpath_overrides_runpath=yes
13095 ;;
13096 freebsd3.[01]* | freebsdelf3.[01]*)
13097 shlibpath_overrides_runpath=yes
13098 hardcode_into_libs=yes
13099 ;;
13100 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13101 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13102 shlibpath_overrides_runpath=no
13103 hardcode_into_libs=yes
13104 ;;
13105 *) # from 4.6 on, and DragonFly
13106 shlibpath_overrides_runpath=yes
13107 hardcode_into_libs=yes
13108 ;;
13109 esac
13110 ;;
13111
13112 haiku*)
13113 version_type=linux # correct to gnu/linux during the next big refactor
13114 need_lib_prefix=no
13115 need_version=no
13116 dynamic_linker="$host_os runtime_loader"
13117 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13118 soname_spec='$libname$release$shared_ext$major'
13119 shlibpath_var=LIBRARY_PATH
13120 shlibpath_overrides_runpath=no
13121 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13122 hardcode_into_libs=yes
13123 ;;
13124
13125 hpux9* | hpux10* | hpux11*)
13126 # Give a soname corresponding to the major version so that dld.sl refuses to
13127 # link against other versions.
13128 version_type=sunos
13129 need_lib_prefix=no
13130 need_version=no
13131 case $host_cpu in
13132 ia64*)
13133 shrext_cmds='.so'
13134 hardcode_into_libs=yes
13135 dynamic_linker="$host_os dld.so"
13136 shlibpath_var=LD_LIBRARY_PATH
13137 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13138 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13139 soname_spec='$libname$release$shared_ext$major'
13140 if test 32 = "$HPUX_IA64_MODE"; then
13141 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13142 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13143 else
13144 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13145 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13146 fi
13147 ;;
13148 hppa*64*)
13149 shrext_cmds='.sl'
13150 hardcode_into_libs=yes
13151 dynamic_linker="$host_os dld.sl"
13152 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13153 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13154 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13155 soname_spec='$libname$release$shared_ext$major'
13156 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13157 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13158 ;;
13159 *)
13160 shrext_cmds='.sl'
13161 dynamic_linker="$host_os dld.sl"
13162 shlibpath_var=SHLIB_PATH
13163 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13164 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13165 soname_spec='$libname$release$shared_ext$major'
13166 ;;
13167 esac
13168 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13169 postinstall_cmds='chmod 555 $lib'
13170 # or fails outright, so override atomically:
13171 install_override_mode=555
13172 ;;
13173
13174 interix[3-9]*)
13175 version_type=linux # correct to gnu/linux during the next big refactor
13176 need_lib_prefix=no
13177 need_version=no
13178 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13179 soname_spec='$libname$release$shared_ext$major'
13180 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13181 shlibpath_var=LD_LIBRARY_PATH
13182 shlibpath_overrides_runpath=no
13183 hardcode_into_libs=yes
13184 ;;
13185
13186 irix5* | irix6* | nonstopux*)
13187 case $host_os in
13188 nonstopux*) version_type=nonstopux ;;
13189 *)
13190 if test yes = "$lt_cv_prog_gnu_ld"; then
13191 version_type=linux # correct to gnu/linux during the next big refactor
13192 else
13193 version_type=irix
13194 fi ;;
13195 esac
13196 need_lib_prefix=no
13197 need_version=no
13198 soname_spec='$libname$release$shared_ext$major'
13199 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13200 case $host_os in
13201 irix5* | nonstopux*)
13202 libsuff= shlibsuff=
13203 ;;
13204 *)
13205 case $LD in # libtool.m4 will add one of these switches to LD
13206 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13207 libsuff= shlibsuff= libmagic=32-bit;;
13208 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13209 libsuff=32 shlibsuff=N32 libmagic=N32;;
13210 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13211 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13212 *) libsuff= shlibsuff= libmagic=never-match;;
13213 esac
13214 ;;
13215 esac
13216 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13217 shlibpath_overrides_runpath=no
13218 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13219 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13220 hardcode_into_libs=yes
13221 ;;
13222
13223 # No shared lib support for Linux oldld, aout, or coff.
13224 linux*oldld* | linux*aout* | linux*coff*)
13225 dynamic_linker=no
13226 ;;
13227
13228 linux*android*)
13229 version_type=none # Android doesn't support versioned libraries.
13230 need_lib_prefix=no
13231 need_version=no
13232 library_names_spec='$libname$release$shared_ext'
13233 soname_spec='$libname$release$shared_ext'
13234 finish_cmds=
13235 shlibpath_var=LD_LIBRARY_PATH
13236 shlibpath_overrides_runpath=yes
13237
13238 # This implies no fast_install, which is unacceptable.
13239 # Some rework will be needed to allow for fast_install
13240 # before this can be enabled.
13241 hardcode_into_libs=yes
13242
13243 dynamic_linker='Android linker'
13244 # Don't embed -rpath directories since the linker doesn't support them.
13245 hardcode_libdir_flag_spec='-L$libdir'
13246 ;;
13247
13248 # This must be glibc/ELF.
13249 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13250 version_type=linux # correct to gnu/linux during the next big refactor
13251 need_lib_prefix=no
13252 need_version=no
13253 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13254 soname_spec='$libname$release$shared_ext$major'
13255 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13256 shlibpath_var=LD_LIBRARY_PATH
13257 shlibpath_overrides_runpath=no
13258
13259 # Some binutils ld are patched to set DT_RUNPATH
13260 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13261 $as_echo_n "(cached) " >&6
13262 else
13263 lt_cv_shlibpath_overrides_runpath=no
13264 save_LDFLAGS=$LDFLAGS
13265 save_libdir=$libdir
13266 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13267 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13269 /* end confdefs.h. */
13270
13271 int
13272 main ()
13273 {
13274
13275 ;
13276 return 0;
13277 }
13278 _ACEOF
13279 if ac_fn_c_try_link "$LINENO"; then :
13280 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13281 lt_cv_shlibpath_overrides_runpath=yes
13282 fi
13283 fi
13284 rm -f core conftest.err conftest.$ac_objext \
13285 conftest$ac_exeext conftest.$ac_ext
13286 LDFLAGS=$save_LDFLAGS
13287 libdir=$save_libdir
13288
13289 fi
13290
13291 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13292
13293 # This implies no fast_install, which is unacceptable.
13294 # Some rework will be needed to allow for fast_install
13295 # before this can be enabled.
13296 hardcode_into_libs=yes
13297
13298 # Ideally, we could use ldconfig to report *all* directores which are
13299 # searched for libraries, however this is still not possible. Aside from not
13300 # being certain /sbin/ldconfig is available, command
13301 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13302 # even though it is searched at run-time. Try to do the best guess by
13303 # appending ld.so.conf contents (and includes) to the search path.
13304 if test -f /etc/ld.so.conf; then
13305 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' ' '`
13306 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13307 fi
13308
13309 # We used to test for /lib/ld.so.1 and disable shared libraries on
13310 # powerpc, because MkLinux only supported shared libraries with the
13311 # GNU dynamic linker. Since this was broken with cross compilers,
13312 # most powerpc-linux boxes support dynamic linking these days and
13313 # people can always --disable-shared, the test was removed, and we
13314 # assume the GNU/Linux dynamic linker is in use.
13315 dynamic_linker='GNU/Linux ld.so'
13316 ;;
13317
13318 netbsd*)
13319 version_type=sunos
13320 need_lib_prefix=no
13321 need_version=no
13322 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13323 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13324 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13325 dynamic_linker='NetBSD (a.out) ld.so'
13326 else
13327 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13328 soname_spec='$libname$release$shared_ext$major'
13329 dynamic_linker='NetBSD ld.elf_so'
13330 fi
13331 shlibpath_var=LD_LIBRARY_PATH
13332 shlibpath_overrides_runpath=yes
13333 hardcode_into_libs=yes
13334 ;;
13335
13336 newsos6)
13337 version_type=linux # correct to gnu/linux during the next big refactor
13338 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13339 shlibpath_var=LD_LIBRARY_PATH
13340 shlibpath_overrides_runpath=yes
13341 ;;
13342
13343 *nto* | *qnx*)
13344 version_type=qnx
13345 need_lib_prefix=no
13346 need_version=no
13347 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13348 soname_spec='$libname$release$shared_ext$major'
13349 shlibpath_var=LD_LIBRARY_PATH
13350 shlibpath_overrides_runpath=no
13351 hardcode_into_libs=yes
13352 dynamic_linker='ldqnx.so'
13353 ;;
13354
13355 openbsd* | bitrig*)
13356 version_type=sunos
13357 sys_lib_dlsearch_path_spec=/usr/lib
13358 need_lib_prefix=no
13359 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13360 need_version=no
13361 else
13362 need_version=yes
13363 fi
13364 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13365 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13366 shlibpath_var=LD_LIBRARY_PATH
13367 shlibpath_overrides_runpath=yes
13368 ;;
13369
13370 os2*)
13371 libname_spec='$name'
13372 version_type=windows
13373 shrext_cmds=.dll
13374 need_version=no
13375 need_lib_prefix=no
13376 # OS/2 can only load a DLL with a base name of 8 characters or less.
13377 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13378 v=$($ECHO $release$versuffix | tr -d .-);
13379 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13380 $ECHO $n$v`$shared_ext'
13381 library_names_spec='${libname}_dll.$libext'
13382 dynamic_linker='OS/2 ld.exe'
13383 shlibpath_var=BEGINLIBPATH
13384 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13385 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13386 postinstall_cmds='base_file=`basename \$file`~
13387 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13388 dldir=$destdir/`dirname \$dlpath`~
13389 test -d \$dldir || mkdir -p \$dldir~
13390 $install_prog $dir/$dlname \$dldir/$dlname~
13391 chmod a+x \$dldir/$dlname~
13392 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13393 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13394 fi'
13395 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13396 dlpath=$dir/\$dldll~
13397 $RM \$dlpath'
13398 ;;
13399
13400 osf3* | osf4* | osf5*)
13401 version_type=osf
13402 need_lib_prefix=no
13403 need_version=no
13404 soname_spec='$libname$release$shared_ext$major'
13405 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13406 shlibpath_var=LD_LIBRARY_PATH
13407 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13408 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13409 ;;
13410
13411 rdos*)
13412 dynamic_linker=no
13413 ;;
13414
13415 solaris*)
13416 version_type=linux # correct to gnu/linux during the next big refactor
13417 need_lib_prefix=no
13418 need_version=no
13419 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13420 soname_spec='$libname$release$shared_ext$major'
13421 shlibpath_var=LD_LIBRARY_PATH
13422 shlibpath_overrides_runpath=yes
13423 hardcode_into_libs=yes
13424 # ldd complains unless libraries are executable
13425 postinstall_cmds='chmod +x $lib'
13426 ;;
13427
13428 sunos4*)
13429 version_type=sunos
13430 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13431 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13432 shlibpath_var=LD_LIBRARY_PATH
13433 shlibpath_overrides_runpath=yes
13434 if test yes = "$with_gnu_ld"; then
13435 need_lib_prefix=no
13436 fi
13437 need_version=yes
13438 ;;
13439
13440 sysv4 | sysv4.3*)
13441 version_type=linux # correct to gnu/linux during the next big refactor
13442 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13443 soname_spec='$libname$release$shared_ext$major'
13444 shlibpath_var=LD_LIBRARY_PATH
13445 case $host_vendor in
13446 sni)
13447 shlibpath_overrides_runpath=no
13448 need_lib_prefix=no
13449 runpath_var=LD_RUN_PATH
13450 ;;
13451 siemens)
13452 need_lib_prefix=no
13453 ;;
13454 motorola)
13455 need_lib_prefix=no
13456 need_version=no
13457 shlibpath_overrides_runpath=no
13458 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13459 ;;
13460 esac
13461 ;;
13462
13463 sysv4*MP*)
13464 if test -d /usr/nec; then
13465 version_type=linux # correct to gnu/linux during the next big refactor
13466 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13467 soname_spec='$libname$shared_ext.$major'
13468 shlibpath_var=LD_LIBRARY_PATH
13469 fi
13470 ;;
13471
13472 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13473 version_type=sco
13474 need_lib_prefix=no
13475 need_version=no
13476 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13477 soname_spec='$libname$release$shared_ext$major'
13478 shlibpath_var=LD_LIBRARY_PATH
13479 shlibpath_overrides_runpath=yes
13480 hardcode_into_libs=yes
13481 if test yes = "$with_gnu_ld"; then
13482 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13483 else
13484 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13485 case $host_os in
13486 sco3.2v5*)
13487 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13488 ;;
13489 esac
13490 fi
13491 sys_lib_dlsearch_path_spec='/usr/lib'
13492 ;;
13493
13494 tpf*)
13495 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13496 version_type=linux # correct to gnu/linux during the next big refactor
13497 need_lib_prefix=no
13498 need_version=no
13499 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13500 shlibpath_var=LD_LIBRARY_PATH
13501 shlibpath_overrides_runpath=no
13502 hardcode_into_libs=yes
13503 ;;
13504
13505 uts4*)
13506 version_type=linux # correct to gnu/linux during the next big refactor
13507 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13508 soname_spec='$libname$release$shared_ext$major'
13509 shlibpath_var=LD_LIBRARY_PATH
13510 ;;
13511
13512 *)
13513 dynamic_linker=no
13514 ;;
13515 esac
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13517 $as_echo "$dynamic_linker" >&6; }
13518 test no = "$dynamic_linker" && can_build_shared=no
13519
13520 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13521 if test yes = "$GCC"; then
13522 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13523 fi
13524
13525 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13526 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13527 fi
13528
13529 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13530 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13531 fi
13532
13533 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13534 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13535
13536 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13537 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13538
13539 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13540 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13639 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13640 hardcode_action=
13641 if test -n "$hardcode_libdir_flag_spec" ||
13642 test -n "$runpath_var" ||
13643 test yes = "$hardcode_automatic"; then
13644
13645 # We can hardcode non-existent directories.
13646 if test no != "$hardcode_direct" &&
13647 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13648 # have to relink, otherwise we might link with an installed library
13649 # when we should be linking with a yet-to-be-installed one
13650 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13651 test no != "$hardcode_minus_L"; then
13652 # Linking always hardcodes the temporary library directory.
13653 hardcode_action=relink
13654 else
13655 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13656 hardcode_action=immediate
13657 fi
13658 else
13659 # We cannot hardcode anything, or else we can only hardcode existing
13660 # directories.
13661 hardcode_action=unsupported
13662 fi
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13664 $as_echo "$hardcode_action" >&6; }
13665
13666 if test relink = "$hardcode_action" ||
13667 test yes = "$inherit_rpath"; then
13668 # Fast installation is not supported
13669 enable_fast_install=no
13670 elif test yes = "$shlibpath_overrides_runpath" ||
13671 test no = "$enable_shared"; then
13672 # Fast installation is not necessary
13673 enable_fast_install=needless
13674 fi
13675
13676
13677
13678
13679
13680
13681 if test yes != "$enable_dlopen"; then
13682 enable_dlopen=unknown
13683 enable_dlopen_self=unknown
13684 enable_dlopen_self_static=unknown
13685 else
13686 lt_cv_dlopen=no
13687 lt_cv_dlopen_libs=
13688
13689 case $host_os in
13690 beos*)
13691 lt_cv_dlopen=load_add_on
13692 lt_cv_dlopen_libs=
13693 lt_cv_dlopen_self=yes
13694 ;;
13695
13696 mingw* | pw32* | cegcc*)
13697 lt_cv_dlopen=LoadLibrary
13698 lt_cv_dlopen_libs=
13699 ;;
13700
13701 cygwin*)
13702 lt_cv_dlopen=dlopen
13703 lt_cv_dlopen_libs=
13704 ;;
13705
13706 darwin*)
13707 # if libdl is installed we need to link against it
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13709 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13710 if ${ac_cv_lib_dl_dlopen+:} false; then :
13711 $as_echo_n "(cached) " >&6
13712 else
13713 ac_check_lib_save_LIBS=$LIBS
13714 LIBS="-ldl $LIBS"
13715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13716 /* end confdefs.h. */
13717
13718 /* Override any GCC internal prototype to avoid an error.
13719 Use char because int might match the return type of a GCC
13720 builtin and then its argument prototype would still apply. */
13721 #ifdef __cplusplus
13722 extern "C"
13723 #endif
13724 char dlopen ();
13725 int
13726 main ()
13727 {
13728 return dlopen ();
13729 ;
13730 return 0;
13731 }
13732 _ACEOF
13733 if ac_fn_c_try_link "$LINENO"; then :
13734 ac_cv_lib_dl_dlopen=yes
13735 else
13736 ac_cv_lib_dl_dlopen=no
13737 fi
13738 rm -f core conftest.err conftest.$ac_objext \
13739 conftest$ac_exeext conftest.$ac_ext
13740 LIBS=$ac_check_lib_save_LIBS
13741 fi
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13743 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13744 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13745 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13746 else
13747
13748 lt_cv_dlopen=dyld
13749 lt_cv_dlopen_libs=
13750 lt_cv_dlopen_self=yes
13751
13752 fi
13753
13754 ;;
13755
13756 tpf*)
13757 # Don't try to run any link tests for TPF. We know it's impossible
13758 # because TPF is a cross-compiler, and we know how we open DSOs.
13759 lt_cv_dlopen=dlopen
13760 lt_cv_dlopen_libs=
13761 lt_cv_dlopen_self=no
13762 ;;
13763
13764 *)
13765 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13766 if test "x$ac_cv_func_shl_load" = xyes; then :
13767 lt_cv_dlopen=shl_load
13768 else
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13770 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13771 if ${ac_cv_lib_dld_shl_load+:} false; then :
13772 $as_echo_n "(cached) " >&6
13773 else
13774 ac_check_lib_save_LIBS=$LIBS
13775 LIBS="-ldld $LIBS"
13776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13777 /* end confdefs.h. */
13778
13779 /* Override any GCC internal prototype to avoid an error.
13780 Use char because int might match the return type of a GCC
13781 builtin and then its argument prototype would still apply. */
13782 #ifdef __cplusplus
13783 extern "C"
13784 #endif
13785 char shl_load ();
13786 int
13787 main ()
13788 {
13789 return shl_load ();
13790 ;
13791 return 0;
13792 }
13793 _ACEOF
13794 if ac_fn_c_try_link "$LINENO"; then :
13795 ac_cv_lib_dld_shl_load=yes
13796 else
13797 ac_cv_lib_dld_shl_load=no
13798 fi
13799 rm -f core conftest.err conftest.$ac_objext \
13800 conftest$ac_exeext conftest.$ac_ext
13801 LIBS=$ac_check_lib_save_LIBS
13802 fi
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13804 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13805 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13806 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13807 else
13808 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13809 if test "x$ac_cv_func_dlopen" = xyes; then :
13810 lt_cv_dlopen=dlopen
13811 else
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13813 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13814 if ${ac_cv_lib_dl_dlopen+:} false; then :
13815 $as_echo_n "(cached) " >&6
13816 else
13817 ac_check_lib_save_LIBS=$LIBS
13818 LIBS="-ldl $LIBS"
13819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13820 /* end confdefs.h. */
13821
13822 /* Override any GCC internal prototype to avoid an error.
13823 Use char because int might match the return type of a GCC
13824 builtin and then its argument prototype would still apply. */
13825 #ifdef __cplusplus
13826 extern "C"
13827 #endif
13828 char dlopen ();
13829 int
13830 main ()
13831 {
13832 return dlopen ();
13833 ;
13834 return 0;
13835 }
13836 _ACEOF
13837 if ac_fn_c_try_link "$LINENO"; then :
13838 ac_cv_lib_dl_dlopen=yes
13839 else
13840 ac_cv_lib_dl_dlopen=no
13841 fi
13842 rm -f core conftest.err conftest.$ac_objext \
13843 conftest$ac_exeext conftest.$ac_ext
13844 LIBS=$ac_check_lib_save_LIBS
13845 fi
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13847 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13848 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13849 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13850 else
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13852 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13853 if ${ac_cv_lib_svld_dlopen+:} false; then :
13854 $as_echo_n "(cached) " >&6
13855 else
13856 ac_check_lib_save_LIBS=$LIBS
13857 LIBS="-lsvld $LIBS"
13858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13859 /* end confdefs.h. */
13860
13861 /* Override any GCC internal prototype to avoid an error.
13862 Use char because int might match the return type of a GCC
13863 builtin and then its argument prototype would still apply. */
13864 #ifdef __cplusplus
13865 extern "C"
13866 #endif
13867 char dlopen ();
13868 int
13869 main ()
13870 {
13871 return dlopen ();
13872 ;
13873 return 0;
13874 }
13875 _ACEOF
13876 if ac_fn_c_try_link "$LINENO"; then :
13877 ac_cv_lib_svld_dlopen=yes
13878 else
13879 ac_cv_lib_svld_dlopen=no
13880 fi
13881 rm -f core conftest.err conftest.$ac_objext \
13882 conftest$ac_exeext conftest.$ac_ext
13883 LIBS=$ac_check_lib_save_LIBS
13884 fi
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13886 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13887 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13888 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13889 else
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13891 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13892 if ${ac_cv_lib_dld_dld_link+:} false; then :
13893 $as_echo_n "(cached) " >&6
13894 else
13895 ac_check_lib_save_LIBS=$LIBS
13896 LIBS="-ldld $LIBS"
13897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13898 /* end confdefs.h. */
13899
13900 /* Override any GCC internal prototype to avoid an error.
13901 Use char because int might match the return type of a GCC
13902 builtin and then its argument prototype would still apply. */
13903 #ifdef __cplusplus
13904 extern "C"
13905 #endif
13906 char dld_link ();
13907 int
13908 main ()
13909 {
13910 return dld_link ();
13911 ;
13912 return 0;
13913 }
13914 _ACEOF
13915 if ac_fn_c_try_link "$LINENO"; then :
13916 ac_cv_lib_dld_dld_link=yes
13917 else
13918 ac_cv_lib_dld_dld_link=no
13919 fi
13920 rm -f core conftest.err conftest.$ac_objext \
13921 conftest$ac_exeext conftest.$ac_ext
13922 LIBS=$ac_check_lib_save_LIBS
13923 fi
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13925 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13926 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13927 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13928 fi
13929
13930
13931 fi
13932
13933
13934 fi
13935
13936
13937 fi
13938
13939
13940 fi
13941
13942
13943 fi
13944
13945 ;;
13946 esac
13947
13948 if test no = "$lt_cv_dlopen"; then
13949 enable_dlopen=no
13950 else
13951 enable_dlopen=yes
13952 fi
13953
13954 case $lt_cv_dlopen in
13955 dlopen)
13956 save_CPPFLAGS=$CPPFLAGS
13957 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13958
13959 save_LDFLAGS=$LDFLAGS
13960 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13961
13962 save_LIBS=$LIBS
13963 LIBS="$lt_cv_dlopen_libs $LIBS"
13964
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13966 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13967 if ${lt_cv_dlopen_self+:} false; then :
13968 $as_echo_n "(cached) " >&6
13969 else
13970 if test yes = "$cross_compiling"; then :
13971 lt_cv_dlopen_self=cross
13972 else
13973 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13974 lt_status=$lt_dlunknown
13975 cat > conftest.$ac_ext <<_LT_EOF
13976 #line $LINENO "configure"
13977 #include "confdefs.h"
13978
13979 #if HAVE_DLFCN_H
13980 #include <dlfcn.h>
13981 #endif
13982
13983 #include <stdio.h>
13984
13985 #ifdef RTLD_GLOBAL
13986 # define LT_DLGLOBAL RTLD_GLOBAL
13987 #else
13988 # ifdef DL_GLOBAL
13989 # define LT_DLGLOBAL DL_GLOBAL
13990 # else
13991 # define LT_DLGLOBAL 0
13992 # endif
13993 #endif
13994
13995 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13996 find out it does not work in some platform. */
13997 #ifndef LT_DLLAZY_OR_NOW
13998 # ifdef RTLD_LAZY
13999 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14000 # else
14001 # ifdef DL_LAZY
14002 # define LT_DLLAZY_OR_NOW DL_LAZY
14003 # else
14004 # ifdef RTLD_NOW
14005 # define LT_DLLAZY_OR_NOW RTLD_NOW
14006 # else
14007 # ifdef DL_NOW
14008 # define LT_DLLAZY_OR_NOW DL_NOW
14009 # else
14010 # define LT_DLLAZY_OR_NOW 0
14011 # endif
14012 # endif
14013 # endif
14014 # endif
14015 #endif
14016
14017 /* When -fvisibility=hidden is used, assume the code has been annotated
14018 correspondingly for the symbols needed. */
14019 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14020 int fnord () __attribute__((visibility("default")));
14021 #endif
14022
14023 int fnord () { return 42; }
14024 int main ()
14025 {
14026 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14027 int status = $lt_dlunknown;
14028
14029 if (self)
14030 {
14031 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14032 else
14033 {
14034 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14035 else puts (dlerror ());
14036 }
14037 /* dlclose (self); */
14038 }
14039 else
14040 puts (dlerror ());
14041
14042 return status;
14043 }
14044 _LT_EOF
14045 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14046 (eval $ac_link) 2>&5
14047 ac_status=$?
14048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14049 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14050 (./conftest; exit; ) >&5 2>/dev/null
14051 lt_status=$?
14052 case x$lt_status in
14053 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14054 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14055 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14056 esac
14057 else :
14058 # compilation failed
14059 lt_cv_dlopen_self=no
14060 fi
14061 fi
14062 rm -fr conftest*
14063
14064
14065 fi
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14067 $as_echo "$lt_cv_dlopen_self" >&6; }
14068
14069 if test yes = "$lt_cv_dlopen_self"; then
14070 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14072 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14073 if ${lt_cv_dlopen_self_static+:} false; then :
14074 $as_echo_n "(cached) " >&6
14075 else
14076 if test yes = "$cross_compiling"; then :
14077 lt_cv_dlopen_self_static=cross
14078 else
14079 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14080 lt_status=$lt_dlunknown
14081 cat > conftest.$ac_ext <<_LT_EOF
14082 #line $LINENO "configure"
14083 #include "confdefs.h"
14084
14085 #if HAVE_DLFCN_H
14086 #include <dlfcn.h>
14087 #endif
14088
14089 #include <stdio.h>
14090
14091 #ifdef RTLD_GLOBAL
14092 # define LT_DLGLOBAL RTLD_GLOBAL
14093 #else
14094 # ifdef DL_GLOBAL
14095 # define LT_DLGLOBAL DL_GLOBAL
14096 # else
14097 # define LT_DLGLOBAL 0
14098 # endif
14099 #endif
14100
14101 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14102 find out it does not work in some platform. */
14103 #ifndef LT_DLLAZY_OR_NOW
14104 # ifdef RTLD_LAZY
14105 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14106 # else
14107 # ifdef DL_LAZY
14108 # define LT_DLLAZY_OR_NOW DL_LAZY
14109 # else
14110 # ifdef RTLD_NOW
14111 # define LT_DLLAZY_OR_NOW RTLD_NOW
14112 # else
14113 # ifdef DL_NOW
14114 # define LT_DLLAZY_OR_NOW DL_NOW
14115 # else
14116 # define LT_DLLAZY_OR_NOW 0
14117 # endif
14118 # endif
14119 # endif
14120 # endif
14121 #endif
14122
14123 /* When -fvisibility=hidden is used, assume the code has been annotated
14124 correspondingly for the symbols needed. */
14125 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14126 int fnord () __attribute__((visibility("default")));
14127 #endif
14128
14129 int fnord () { return 42; }
14130 int main ()
14131 {
14132 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14133 int status = $lt_dlunknown;
14134
14135 if (self)
14136 {
14137 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14138 else
14139 {
14140 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14141 else puts (dlerror ());
14142 }
14143 /* dlclose (self); */
14144 }
14145 else
14146 puts (dlerror ());
14147
14148 return status;
14149 }
14150 _LT_EOF
14151 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14152 (eval $ac_link) 2>&5
14153 ac_status=$?
14154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14155 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14156 (./conftest; exit; ) >&5 2>/dev/null
14157 lt_status=$?
14158 case x$lt_status in
14159 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14160 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14161 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14162 esac
14163 else :
14164 # compilation failed
14165 lt_cv_dlopen_self_static=no
14166 fi
14167 fi
14168 rm -fr conftest*
14169
14170
14171 fi
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14173 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14174 fi
14175
14176 CPPFLAGS=$save_CPPFLAGS
14177 LDFLAGS=$save_LDFLAGS
14178 LIBS=$save_LIBS
14179 ;;
14180 esac
14181
14182 case $lt_cv_dlopen_self in
14183 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14184 *) enable_dlopen_self=unknown ;;
14185 esac
14186
14187 case $lt_cv_dlopen_self_static in
14188 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14189 *) enable_dlopen_self_static=unknown ;;
14190 esac
14191 fi
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209 striplib=
14210 old_striplib=
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14212 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14213 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14214 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14215 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14217 $as_echo "yes" >&6; }
14218 else
14219 # FIXME - insert some real tests, host_os isn't really good enough
14220 case $host_os in
14221 darwin*)
14222 if test -n "$STRIP"; then
14223 striplib="$STRIP -x"
14224 old_striplib="$STRIP -S"
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14226 $as_echo "yes" >&6; }
14227 else
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14229 $as_echo "no" >&6; }
14230 fi
14231 ;;
14232 *)
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14234 $as_echo "no" >&6; }
14235 ;;
14236 esac
14237 fi
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250 # Report what library types will actually be built
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14252 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14254 $as_echo "$can_build_shared" >&6; }
14255
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14257 $as_echo_n "checking whether to build shared libraries... " >&6; }
14258 test no = "$can_build_shared" && enable_shared=no
14259
14260 # On AIX, shared libraries and static libraries use the same namespace, and
14261 # are all built from PIC.
14262 case $host_os in
14263 aix3*)
14264 test yes = "$enable_shared" && enable_static=no
14265 if test -n "$RANLIB"; then
14266 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14267 postinstall_cmds='$RANLIB $lib'
14268 fi
14269 ;;
14270
14271 aix[4-9]*)
14272 if test ia64 != "$host_cpu"; then
14273 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14274 yes,aix,yes) ;; # shared object as lib.so file only
14275 yes,svr4,*) ;; # shared object as lib.so archive member only
14276 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14277 esac
14278 fi
14279 ;;
14280 esac
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14282 $as_echo "$enable_shared" >&6; }
14283
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14285 $as_echo_n "checking whether to build static libraries... " >&6; }
14286 # Make sure either enable_shared or enable_static is yes.
14287 test yes = "$enable_shared" || enable_static=yes
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14289 $as_echo "$enable_static" >&6; }
14290
14291
14292
14293
14294 fi
14295 ac_ext=c
14296 ac_cpp='$CPP $CPPFLAGS'
14297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14300
14301 CC=$lt_save_CC
14302
14303 if test -n "$CXX" && ( test no != "$CXX" &&
14304 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
14305 (test g++ != "$CXX"))); then
14306 ac_ext=cpp
14307 ac_cpp='$CXXCPP $CPPFLAGS'
14308 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14309 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14310 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14312 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14313 if test -z "$CXXCPP"; then
14314 if ${ac_cv_prog_CXXCPP+:} false; then :
14315 $as_echo_n "(cached) " >&6
14316 else
14317 # Double quotes because CXXCPP needs to be expanded
14318 for CXXCPP in "$CXX -E" "/lib/cpp"
14319 do
14320 ac_preproc_ok=false
14321 for ac_cxx_preproc_warn_flag in '' yes
14322 do
14323 # Use a header file that comes with gcc, so configuring glibc
14324 # with a fresh cross-compiler works.
14325 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14326 # <limits.h> exists even on freestanding compilers.
14327 # On the NeXT, cc -E runs the code through the compiler's parser,
14328 # not just through cpp. "Syntax error" is here to catch this case.
14329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14330 /* end confdefs.h. */
14331 #ifdef __STDC__
14332 # include <limits.h>
14333 #else
14334 # include <assert.h>
14335 #endif
14336 Syntax error
14337 _ACEOF
14338 if ac_fn_cxx_try_cpp "$LINENO"; then :
14339
14340 else
14341 # Broken: fails on valid input.
14342 continue
14343 fi
14344 rm -f conftest.err conftest.i conftest.$ac_ext
14345
14346 # OK, works on sane cases. Now check whether nonexistent headers
14347 # can be detected and how.
14348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14349 /* end confdefs.h. */
14350 #include <ac_nonexistent.h>
14351 _ACEOF
14352 if ac_fn_cxx_try_cpp "$LINENO"; then :
14353 # Broken: success on invalid input.
14354 continue
14355 else
14356 # Passes both tests.
14357 ac_preproc_ok=:
14358 break
14359 fi
14360 rm -f conftest.err conftest.i conftest.$ac_ext
14361
14362 done
14363 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14364 rm -f conftest.i conftest.err conftest.$ac_ext
14365 if $ac_preproc_ok; then :
14366 break
14367 fi
14368
14369 done
14370 ac_cv_prog_CXXCPP=$CXXCPP
14371
14372 fi
14373 CXXCPP=$ac_cv_prog_CXXCPP
14374 else
14375 ac_cv_prog_CXXCPP=$CXXCPP
14376 fi
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14378 $as_echo "$CXXCPP" >&6; }
14379 ac_preproc_ok=false
14380 for ac_cxx_preproc_warn_flag in '' yes
14381 do
14382 # Use a header file that comes with gcc, so configuring glibc
14383 # with a fresh cross-compiler works.
14384 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14385 # <limits.h> exists even on freestanding compilers.
14386 # On the NeXT, cc -E runs the code through the compiler's parser,
14387 # not just through cpp. "Syntax error" is here to catch this case.
14388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14389 /* end confdefs.h. */
14390 #ifdef __STDC__
14391 # include <limits.h>
14392 #else
14393 # include <assert.h>
14394 #endif
14395 Syntax error
14396 _ACEOF
14397 if ac_fn_cxx_try_cpp "$LINENO"; then :
14398
14399 else
14400 # Broken: fails on valid input.
14401 continue
14402 fi
14403 rm -f conftest.err conftest.i conftest.$ac_ext
14404
14405 # OK, works on sane cases. Now check whether nonexistent headers
14406 # can be detected and how.
14407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14408 /* end confdefs.h. */
14409 #include <ac_nonexistent.h>
14410 _ACEOF
14411 if ac_fn_cxx_try_cpp "$LINENO"; then :
14412 # Broken: success on invalid input.
14413 continue
14414 else
14415 # Passes both tests.
14416 ac_preproc_ok=:
14417 break
14418 fi
14419 rm -f conftest.err conftest.i conftest.$ac_ext
14420
14421 done
14422 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14423 rm -f conftest.i conftest.err conftest.$ac_ext
14424 if $ac_preproc_ok; then :
14425
14426 else
14427 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14428 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14429 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14430 See \`config.log' for more details" "$LINENO" 5; }
14431 fi
14432
14433 ac_ext=c
14434 ac_cpp='$CPP $CPPFLAGS'
14435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14438
14439 else
14440 _lt_caught_CXX_error=yes
14441 fi
14442
14443 ac_ext=cpp
14444 ac_cpp='$CXXCPP $CPPFLAGS'
14445 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14446 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14447 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14448
14449 archive_cmds_need_lc_CXX=no
14450 allow_undefined_flag_CXX=
14451 always_export_symbols_CXX=no
14452 archive_expsym_cmds_CXX=
14453 compiler_needs_object_CXX=no
14454 export_dynamic_flag_spec_CXX=
14455 hardcode_direct_CXX=no
14456 hardcode_direct_absolute_CXX=no
14457 hardcode_libdir_flag_spec_CXX=
14458 hardcode_libdir_separator_CXX=
14459 hardcode_minus_L_CXX=no
14460 hardcode_shlibpath_var_CXX=unsupported
14461 hardcode_automatic_CXX=no
14462 inherit_rpath_CXX=no
14463 module_cmds_CXX=
14464 module_expsym_cmds_CXX=
14465 link_all_deplibs_CXX=unknown
14466 old_archive_cmds_CXX=$old_archive_cmds
14467 reload_flag_CXX=$reload_flag
14468 reload_cmds_CXX=$reload_cmds
14469 no_undefined_flag_CXX=
14470 whole_archive_flag_spec_CXX=
14471 enable_shared_with_static_runtimes_CXX=no
14472
14473 # Source file extension for C++ test sources.
14474 ac_ext=cpp
14475
14476 # Object file extension for compiled C++ test sources.
14477 objext=o
14478 objext_CXX=$objext
14479
14480 # No sense in running all these tests if we already determined that
14481 # the CXX compiler isn't working. Some variables (like enable_shared)
14482 # are currently assumed to apply to all compilers on this platform,
14483 # and will be corrupted by setting them based on a non-working compiler.
14484 if test yes != "$_lt_caught_CXX_error"; then
14485 # Code to be used in simple compile tests
14486 lt_simple_compile_test_code="int some_variable = 0;"
14487
14488 # Code to be used in simple link tests
14489 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14490
14491 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14492
14493
14494
14495
14496
14497
14498 # If no C compiler was specified, use CC.
14499 LTCC=${LTCC-"$CC"}
14500
14501 # If no C compiler flags were specified, use CFLAGS.
14502 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14503
14504 # Allow CC to be a program name with arguments.
14505 compiler=$CC
14506
14507
14508 # save warnings/boilerplate of simple test code
14509 ac_outfile=conftest.$ac_objext
14510 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14511 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14512 _lt_compiler_boilerplate=`cat conftest.err`
14513 $RM conftest*
14514
14515 ac_outfile=conftest.$ac_objext
14516 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14517 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14518 _lt_linker_boilerplate=`cat conftest.err`
14519 $RM -r conftest*
14520
14521
14522 # Allow CC to be a program name with arguments.
14523 lt_save_CC=$CC
14524 lt_save_CFLAGS=$CFLAGS
14525 lt_save_LD=$LD
14526 lt_save_GCC=$GCC
14527 GCC=$GXX
14528 lt_save_with_gnu_ld=$with_gnu_ld
14529 lt_save_path_LD=$lt_cv_path_LD
14530 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14531 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14532 else
14533 $as_unset lt_cv_prog_gnu_ld
14534 fi
14535 if test -n "${lt_cv_path_LDCXX+set}"; then
14536 lt_cv_path_LD=$lt_cv_path_LDCXX
14537 else
14538 $as_unset lt_cv_path_LD
14539 fi
14540 test -z "${LDCXX+set}" || LD=$LDCXX
14541 CC=${CXX-"c++"}
14542 CFLAGS=$CXXFLAGS
14543 compiler=$CC
14544 compiler_CXX=$CC
14545 func_cc_basename $compiler
14546 cc_basename=$func_cc_basename_result
14547
14548
14549 if test -n "$compiler"; then
14550 # We don't want -fno-exception when compiling C++ code, so set the
14551 # no_builtin_flag separately
14552 if test yes = "$GXX"; then
14553 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14554 else
14555 lt_prog_compiler_no_builtin_flag_CXX=
14556 fi
14557
14558 if test yes = "$GXX"; then
14559 # Set up default GNU C++ configuration
14560
14561
14562
14563 # Check whether --with-gnu-ld was given.
14564 if test "${with_gnu_ld+set}" = set; then :
14565 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
14566 else
14567 with_gnu_ld=no
14568 fi
14569
14570 ac_prog=ld
14571 if test yes = "$GCC"; then
14572 # Check if gcc -print-prog-name=ld gives a path.
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14574 $as_echo_n "checking for ld used by $CC... " >&6; }
14575 case $host in
14576 *-*-mingw*)
14577 # gcc leaves a trailing carriage return, which upsets mingw
14578 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14579 *)
14580 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14581 esac
14582 case $ac_prog in
14583 # Accept absolute paths.
14584 [\\/]* | ?:[\\/]*)
14585 re_direlt='/[^/][^/]*/\.\./'
14586 # Canonicalize the pathname of ld
14587 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14588 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14589 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14590 done
14591 test -z "$LD" && LD=$ac_prog
14592 ;;
14593 "")
14594 # If it fails, then pretend we aren't using GCC.
14595 ac_prog=ld
14596 ;;
14597 *)
14598 # If it is relative, then search for the first ld in PATH.
14599 with_gnu_ld=unknown
14600 ;;
14601 esac
14602 elif test yes = "$with_gnu_ld"; then
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14604 $as_echo_n "checking for GNU ld... " >&6; }
14605 else
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14607 $as_echo_n "checking for non-GNU ld... " >&6; }
14608 fi
14609 if ${lt_cv_path_LD+:} false; then :
14610 $as_echo_n "(cached) " >&6
14611 else
14612 if test -z "$LD"; then
14613 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14614 for ac_dir in $PATH; do
14615 IFS=$lt_save_ifs
14616 test -z "$ac_dir" && ac_dir=.
14617 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14618 lt_cv_path_LD=$ac_dir/$ac_prog
14619 # Check to see if the program is GNU ld. I'd rather use --version,
14620 # but apparently some variants of GNU ld only accept -v.
14621 # Break only if it was the GNU/non-GNU ld that we prefer.
14622 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14623 *GNU* | *'with BFD'*)
14624 test no != "$with_gnu_ld" && break
14625 ;;
14626 *)
14627 test yes != "$with_gnu_ld" && break
14628 ;;
14629 esac
14630 fi
14631 done
14632 IFS=$lt_save_ifs
14633 else
14634 lt_cv_path_LD=$LD # Let the user override the test with a path.
14635 fi
14636 fi
14637
14638 LD=$lt_cv_path_LD
14639 if test -n "$LD"; then
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14641 $as_echo "$LD" >&6; }
14642 else
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14644 $as_echo "no" >&6; }
14645 fi
14646 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14648 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14649 if ${lt_cv_prog_gnu_ld+:} false; then :
14650 $as_echo_n "(cached) " >&6
14651 else
14652 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14653 case `$LD -v 2>&1 </dev/null` in
14654 *GNU* | *'with BFD'*)
14655 lt_cv_prog_gnu_ld=yes
14656 ;;
14657 *)
14658 lt_cv_prog_gnu_ld=no
14659 ;;
14660 esac
14661 fi
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14663 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14664 with_gnu_ld=$lt_cv_prog_gnu_ld
14665
14666
14667
14668
14669
14670
14671
14672 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14673 # archiving commands below assume that GNU ld is being used.
14674 if test yes = "$with_gnu_ld"; then
14675 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14676 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'
14677
14678 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14679 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14680
14681 # If archive_cmds runs LD, not CC, wlarc should be empty
14682 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14683 # investigate it a little bit more. (MM)
14684 wlarc='$wl'
14685
14686 # ancient GNU ld didn't support --whole-archive et. al.
14687 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14688 $GREP 'no-whole-archive' > /dev/null; then
14689 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14690 else
14691 whole_archive_flag_spec_CXX=
14692 fi
14693 else
14694 with_gnu_ld=no
14695 wlarc=
14696
14697 # A generic and very simple default shared library creation
14698 # command for GNU C++ for the case where it uses the native
14699 # linker, instead of GNU ld. If possible, this setting should
14700 # overridden to take advantage of the native linker features on
14701 # the platform it is being used on.
14702 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14703 fi
14704
14705 # Commands to make compiler produce verbose output that lists
14706 # what "hidden" libraries, object files and flags are used when
14707 # linking a shared library.
14708 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14709
14710 else
14711 GXX=no
14712 with_gnu_ld=no
14713 wlarc=
14714 fi
14715
14716 # PORTME: fill in a description of your system's C++ link characteristics
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14718 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14719 ld_shlibs_CXX=yes
14720 case $host_os in
14721 aix3*)
14722 # FIXME: insert proper C++ library support
14723 ld_shlibs_CXX=no
14724 ;;
14725 aix[4-9]*)
14726 if test ia64 = "$host_cpu"; then
14727 # On IA64, the linker does run time linking by default, so we don't
14728 # have to do anything special.
14729 aix_use_runtimelinking=no
14730 exp_sym_flag='-Bexport'
14731 no_entry_flag=
14732 else
14733 aix_use_runtimelinking=no
14734
14735 # Test if we are trying to use run time linking or normal
14736 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14737 # have runtime linking enabled, and use it for executables.
14738 # For shared libraries, we enable/disable runtime linking
14739 # depending on the kind of the shared library created -
14740 # when "with_aix_soname,aix_use_runtimelinking" is:
14741 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
14742 # "aix,yes" lib.so shared, rtl:yes, for executables
14743 # lib.a static archive
14744 # "both,no" lib.so.V(shr.o) shared, rtl:yes
14745 # lib.a(lib.so.V) shared, rtl:no, for executables
14746 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14747 # lib.a(lib.so.V) shared, rtl:no
14748 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
14749 # lib.a static archive
14750 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14751 for ld_flag in $LDFLAGS; do
14752 case $ld_flag in
14753 *-brtl*)
14754 aix_use_runtimelinking=yes
14755 break
14756 ;;
14757 esac
14758 done
14759 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14760 # With aix-soname=svr4, we create the lib.so.V shared archives only,
14761 # so we don't have lib.a shared libs to link our executables.
14762 # We have to force runtime linking in this case.
14763 aix_use_runtimelinking=yes
14764 LDFLAGS="$LDFLAGS -Wl,-brtl"
14765 fi
14766 ;;
14767 esac
14768
14769 exp_sym_flag='-bexport'
14770 no_entry_flag='-bnoentry'
14771 fi
14772
14773 # When large executables or shared objects are built, AIX ld can
14774 # have problems creating the table of contents. If linking a library
14775 # or program results in "error TOC overflow" add -mminimal-toc to
14776 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14777 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14778
14779 archive_cmds_CXX=''
14780 hardcode_direct_CXX=yes
14781 hardcode_direct_absolute_CXX=yes
14782 hardcode_libdir_separator_CXX=':'
14783 link_all_deplibs_CXX=yes
14784 file_list_spec_CXX='$wl-f,'
14785 case $with_aix_soname,$aix_use_runtimelinking in
14786 aix,*) ;; # no import file
14787 svr4,* | *,yes) # use import file
14788 # The Import File defines what to hardcode.
14789 hardcode_direct_CXX=no
14790 hardcode_direct_absolute_CXX=no
14791 ;;
14792 esac
14793
14794 if test yes = "$GXX"; then
14795 case $host_os in aix4.[012]|aix4.[012].*)
14796 # We only want to do this on AIX 4.2 and lower, the check
14797 # below for broken collect2 doesn't work under 4.3+
14798 collect2name=`$CC -print-prog-name=collect2`
14799 if test -f "$collect2name" &&
14800 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14801 then
14802 # We have reworked collect2
14803 :
14804 else
14805 # We have old collect2
14806 hardcode_direct_CXX=unsupported
14807 # It fails to find uninstalled libraries when the uninstalled
14808 # path is not listed in the libpath. Setting hardcode_minus_L
14809 # to unsupported forces relinking
14810 hardcode_minus_L_CXX=yes
14811 hardcode_libdir_flag_spec_CXX='-L$libdir'
14812 hardcode_libdir_separator_CXX=
14813 fi
14814 esac
14815 shared_flag='-shared'
14816 if test yes = "$aix_use_runtimelinking"; then
14817 shared_flag=$shared_flag' $wl-G'
14818 fi
14819 # Need to ensure runtime linking is disabled for the traditional
14820 # shared library, or the linker may eventually find shared libraries
14821 # /with/ Import File - we do not want to mix them.
14822 shared_flag_aix='-shared'
14823 shared_flag_svr4='-shared $wl-G'
14824 else
14825 # not using gcc
14826 if test ia64 = "$host_cpu"; then
14827 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14828 # chokes on -Wl,-G. The following line is correct:
14829 shared_flag='-G'
14830 else
14831 if test yes = "$aix_use_runtimelinking"; then
14832 shared_flag='$wl-G'
14833 else
14834 shared_flag='$wl-bM:SRE'
14835 fi
14836 shared_flag_aix='$wl-bM:SRE'
14837 shared_flag_svr4='$wl-G'
14838 fi
14839 fi
14840
14841 export_dynamic_flag_spec_CXX='$wl-bexpall'
14842 # It seems that -bexpall does not export symbols beginning with
14843 # underscore (_), so it is better to generate a list of symbols to
14844 # export.
14845 always_export_symbols_CXX=yes
14846 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14847 # Warning - without using the other runtime loading flags (-brtl),
14848 # -berok will link without error, but may produce a broken library.
14849 # The "-G" linker flag allows undefined symbols.
14850 no_undefined_flag_CXX='-bernotok'
14851 # Determine the default libpath from the value encoded in an empty
14852 # executable.
14853 if test set = "${lt_cv_aix_libpath+set}"; then
14854 aix_libpath=$lt_cv_aix_libpath
14855 else
14856 if ${lt_cv_aix_libpath__CXX+:} false; then :
14857 $as_echo_n "(cached) " >&6
14858 else
14859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14860 /* end confdefs.h. */
14861
14862 int
14863 main ()
14864 {
14865
14866 ;
14867 return 0;
14868 }
14869 _ACEOF
14870 if ac_fn_cxx_try_link "$LINENO"; then :
14871
14872 lt_aix_libpath_sed='
14873 /Import File Strings/,/^$/ {
14874 /^0/ {
14875 s/^0 *\([^ ]*\) *$/\1/
14876 p
14877 }
14878 }'
14879 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14880 # Check for a 64-bit object if we didn't find anything.
14881 if test -z "$lt_cv_aix_libpath__CXX"; then
14882 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14883 fi
14884 fi
14885 rm -f core conftest.err conftest.$ac_objext \
14886 conftest$ac_exeext conftest.$ac_ext
14887 if test -z "$lt_cv_aix_libpath__CXX"; then
14888 lt_cv_aix_libpath__CXX=/usr/lib:/lib
14889 fi
14890
14891 fi
14892
14893 aix_libpath=$lt_cv_aix_libpath__CXX
14894 fi
14895
14896 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14897
14898 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
14899 else
14900 if test ia64 = "$host_cpu"; then
14901 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
14902 allow_undefined_flag_CXX="-z nodefs"
14903 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"
14904 else
14905 # Determine the default libpath from the value encoded in an
14906 # empty executable.
14907 if test set = "${lt_cv_aix_libpath+set}"; then
14908 aix_libpath=$lt_cv_aix_libpath
14909 else
14910 if ${lt_cv_aix_libpath__CXX+:} false; then :
14911 $as_echo_n "(cached) " >&6
14912 else
14913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14914 /* end confdefs.h. */
14915
14916 int
14917 main ()
14918 {
14919
14920 ;
14921 return 0;
14922 }
14923 _ACEOF
14924 if ac_fn_cxx_try_link "$LINENO"; then :
14925
14926 lt_aix_libpath_sed='
14927 /Import File Strings/,/^$/ {
14928 /^0/ {
14929 s/^0 *\([^ ]*\) *$/\1/
14930 p
14931 }
14932 }'
14933 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14934 # Check for a 64-bit object if we didn't find anything.
14935 if test -z "$lt_cv_aix_libpath__CXX"; then
14936 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14937 fi
14938 fi
14939 rm -f core conftest.err conftest.$ac_objext \
14940 conftest$ac_exeext conftest.$ac_ext
14941 if test -z "$lt_cv_aix_libpath__CXX"; then
14942 lt_cv_aix_libpath__CXX=/usr/lib:/lib
14943 fi
14944
14945 fi
14946
14947 aix_libpath=$lt_cv_aix_libpath__CXX
14948 fi
14949
14950 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14951 # Warning - without using the other run time loading flags,
14952 # -berok will link without error, but may produce a broken library.
14953 no_undefined_flag_CXX=' $wl-bernotok'
14954 allow_undefined_flag_CXX=' $wl-berok'
14955 if test yes = "$with_gnu_ld"; then
14956 # We only use this code for GNU lds that support --whole-archive.
14957 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14958 else
14959 # Exported symbols can be pulled into shared objects from archives
14960 whole_archive_flag_spec_CXX='$convenience'
14961 fi
14962 archive_cmds_need_lc_CXX=yes
14963 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14964 # -brtl affects multiple linker settings, -berok does not and is overridden later
14965 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14966 if test svr4 != "$with_aix_soname"; then
14967 # This is similar to how AIX traditionally builds its shared
14968 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14969 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
14970 fi
14971 if test aix != "$with_aix_soname"; then
14972 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
14973 else
14974 # used by -dlpreopen to get the symbols
14975 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
14976 fi
14977 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
14978 fi
14979 fi
14980 ;;
14981
14982 beos*)
14983 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14984 allow_undefined_flag_CXX=unsupported
14985 # Joseph Beckenbach <[email protected]> says some releases of gcc
14986 # support --undefined. This deserves some investigation. FIXME
14987 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14988 else
14989 ld_shlibs_CXX=no
14990 fi
14991 ;;
14992
14993 chorus*)
14994 case $cc_basename in
14995 *)
14996 # FIXME: insert proper C++ library support
14997 ld_shlibs_CXX=no
14998 ;;
14999 esac
15000 ;;
15001
15002 cygwin* | mingw* | pw32* | cegcc*)
15003 case $GXX,$cc_basename in
15004 ,cl* | no,cl*)
15005 # Native MSVC
15006 # hardcode_libdir_flag_spec is actually meaningless, as there is
15007 # no search path for DLLs.
15008 hardcode_libdir_flag_spec_CXX=' '
15009 allow_undefined_flag_CXX=unsupported
15010 always_export_symbols_CXX=yes
15011 file_list_spec_CXX='@'
15012 # Tell ltmain to make .lib files, not .a files.
15013 libext=lib
15014 # Tell ltmain to make .dll files, not .so files.
15015 shrext_cmds=.dll
15016 # FIXME: Setting linknames here is a bad hack.
15017 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15018 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15019 cp "$export_symbols" "$output_objdir/$soname.def";
15020 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15021 else
15022 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15023 fi~
15024 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15025 linknames='
15026 # The linker will not automatically build a static lib if we build a DLL.
15027 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15028 enable_shared_with_static_runtimes_CXX=yes
15029 # Don't use ranlib
15030 old_postinstall_cmds_CXX='chmod 644 $oldlib'
15031 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15032 lt_tool_outputfile="@TOOL_OUTPUT@"~
15033 case $lt_outputfile in
15034 *.exe|*.EXE) ;;
15035 *)
15036 lt_outputfile=$lt_outputfile.exe
15037 lt_tool_outputfile=$lt_tool_outputfile.exe
15038 ;;
15039 esac~
15040 func_to_tool_file "$lt_outputfile"~
15041 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15042 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15043 $RM "$lt_outputfile.manifest";
15044 fi'
15045 ;;
15046 *)
15047 # g++
15048 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15049 # as there is no search path for DLLs.
15050 hardcode_libdir_flag_spec_CXX='-L$libdir'
15051 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
15052 allow_undefined_flag_CXX=unsupported
15053 always_export_symbols_CXX=no
15054 enable_shared_with_static_runtimes_CXX=yes
15055
15056 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15057 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'
15058 # If the export-symbols file already is a .def file, use it as
15059 # is; otherwise, prepend EXPORTS...
15060 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15061 cp $export_symbols $output_objdir/$soname.def;
15062 else
15063 echo EXPORTS > $output_objdir/$soname.def;
15064 cat $export_symbols >> $output_objdir/$soname.def;
15065 fi~
15066 $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'
15067 else
15068 ld_shlibs_CXX=no
15069 fi
15070 ;;
15071 esac
15072 ;;
15073 darwin* | rhapsody*)
15074
15075
15076 archive_cmds_need_lc_CXX=no
15077 hardcode_direct_CXX=no
15078 hardcode_automatic_CXX=yes
15079 hardcode_shlibpath_var_CXX=unsupported
15080 if test yes = "$lt_cv_ld_force_load"; then
15081 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\"`'
15082
15083 else
15084 whole_archive_flag_spec_CXX=''
15085 fi
15086 link_all_deplibs_CXX=yes
15087 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
15088 case $cc_basename in
15089 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15090 *) _lt_dar_can_shared=$GCC ;;
15091 esac
15092 if test yes = "$_lt_dar_can_shared"; then
15093 output_verbose_link_cmd=func_echo_all
15094 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"
15095 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15096 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"
15097 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"
15098 if test yes != "$lt_cv_apple_cc_single_mod"; then
15099 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"
15100 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"
15101 fi
15102
15103 else
15104 ld_shlibs_CXX=no
15105 fi
15106
15107 ;;
15108
15109 os2*)
15110 hardcode_libdir_flag_spec_CXX='-L$libdir'
15111 hardcode_minus_L_CXX=yes
15112 allow_undefined_flag_CXX=unsupported
15113 shrext_cmds=.dll
15114 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15115 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15116 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15117 $ECHO EXPORTS >> $output_objdir/$libname.def~
15118 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15119 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15120 emximp -o $lib $output_objdir/$libname.def'
15121 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15122 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15123 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15124 $ECHO EXPORTS >> $output_objdir/$libname.def~
15125 prefix_cmds="$SED"~
15126 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15127 prefix_cmds="$prefix_cmds -e 1d";
15128 fi~
15129 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15130 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15131 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15132 emximp -o $lib $output_objdir/$libname.def'
15133 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15134 enable_shared_with_static_runtimes_CXX=yes
15135 ;;
15136
15137 dgux*)
15138 case $cc_basename in
15139 ec++*)
15140 # FIXME: insert proper C++ library support
15141 ld_shlibs_CXX=no
15142 ;;
15143 ghcx*)
15144 # Green Hills C++ Compiler
15145 # FIXME: insert proper C++ library support
15146 ld_shlibs_CXX=no
15147 ;;
15148 *)
15149 # FIXME: insert proper C++ library support
15150 ld_shlibs_CXX=no
15151 ;;
15152 esac
15153 ;;
15154
15155 freebsd2.*)
15156 # C++ shared libraries reported to be fairly broken before
15157 # switch to ELF
15158 ld_shlibs_CXX=no
15159 ;;
15160
15161 freebsd-elf*)
15162 archive_cmds_need_lc_CXX=no
15163 ;;
15164
15165 freebsd* | dragonfly*)
15166 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15167 # conventions
15168 ld_shlibs_CXX=yes
15169 ;;
15170
15171 haiku*)
15172 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15173 link_all_deplibs_CXX=yes
15174 ;;
15175
15176 hpux9*)
15177 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15178 hardcode_libdir_separator_CXX=:
15179 export_dynamic_flag_spec_CXX='$wl-E'
15180 hardcode_direct_CXX=yes
15181 hardcode_minus_L_CXX=yes # Not in the search PATH,
15182 # but as the default
15183 # location of the library.
15184
15185 case $cc_basename in
15186 CC*)
15187 # FIXME: insert proper C++ library support
15188 ld_shlibs_CXX=no
15189 ;;
15190 aCC*)
15191 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15192 # Commands to make compiler produce verbose output that lists
15193 # what "hidden" libraries, object files and flags are used when
15194 # linking a shared library.
15195 #
15196 # There doesn't appear to be a way to prevent this compiler from
15197 # explicitly linking system object files so we need to strip them
15198 # from the output so that they don't get included in the library
15199 # dependencies.
15200 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"'
15201 ;;
15202 *)
15203 if test yes = "$GXX"; then
15204 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15205 else
15206 # FIXME: insert proper C++ library support
15207 ld_shlibs_CXX=no
15208 fi
15209 ;;
15210 esac
15211 ;;
15212
15213 hpux10*|hpux11*)
15214 if test no = "$with_gnu_ld"; then
15215 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15216 hardcode_libdir_separator_CXX=:
15217
15218 case $host_cpu in
15219 hppa*64*|ia64*)
15220 ;;
15221 *)
15222 export_dynamic_flag_spec_CXX='$wl-E'
15223 ;;
15224 esac
15225 fi
15226 case $host_cpu in
15227 hppa*64*|ia64*)
15228 hardcode_direct_CXX=no
15229 hardcode_shlibpath_var_CXX=no
15230 ;;
15231 *)
15232 hardcode_direct_CXX=yes
15233 hardcode_direct_absolute_CXX=yes
15234 hardcode_minus_L_CXX=yes # Not in the search PATH,
15235 # but as the default
15236 # location of the library.
15237 ;;
15238 esac
15239
15240 case $cc_basename in
15241 CC*)
15242 # FIXME: insert proper C++ library support
15243 ld_shlibs_CXX=no
15244 ;;
15245 aCC*)
15246 case $host_cpu in
15247 hppa*64*)
15248 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15249 ;;
15250 ia64*)
15251 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15252 ;;
15253 *)
15254 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15255 ;;
15256 esac
15257 # Commands to make compiler produce verbose output that lists
15258 # what "hidden" libraries, object files and flags are used when
15259 # linking a shared library.
15260 #
15261 # There doesn't appear to be a way to prevent this compiler from
15262 # explicitly linking system object files so we need to strip them
15263 # from the output so that they don't get included in the library
15264 # dependencies.
15265 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"'
15266 ;;
15267 *)
15268 if test yes = "$GXX"; then
15269 if test no = "$with_gnu_ld"; then
15270 case $host_cpu in
15271 hppa*64*)
15272 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15273 ;;
15274 ia64*)
15275 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15276 ;;
15277 *)
15278 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'
15279 ;;
15280 esac
15281 fi
15282 else
15283 # FIXME: insert proper C++ library support
15284 ld_shlibs_CXX=no
15285 fi
15286 ;;
15287 esac
15288 ;;
15289
15290 interix[3-9]*)
15291 hardcode_direct_CXX=no
15292 hardcode_shlibpath_var_CXX=no
15293 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15294 export_dynamic_flag_spec_CXX='$wl-E'
15295 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15296 # Instead, shared libraries are loaded at an image base (0x10000000 by
15297 # default) and relocated if they conflict, which is a slow very memory
15298 # consuming and fragmenting process. To avoid this, we pick a random,
15299 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15300 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15301 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'
15302 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'
15303 ;;
15304 irix5* | irix6*)
15305 case $cc_basename in
15306 CC*)
15307 # SGI C++
15308 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'
15309
15310 # Archives containing C++ object files must be created using
15311 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15312 # necessary to make sure instantiated templates are included
15313 # in the archive.
15314 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15315 ;;
15316 *)
15317 if test yes = "$GXX"; then
15318 if test no = "$with_gnu_ld"; then
15319 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'
15320 else
15321 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'
15322 fi
15323 fi
15324 link_all_deplibs_CXX=yes
15325 ;;
15326 esac
15327 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15328 hardcode_libdir_separator_CXX=:
15329 inherit_rpath_CXX=yes
15330 ;;
15331
15332 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15333 case $cc_basename in
15334 KCC*)
15335 # Kuck and Associates, Inc. (KAI) C++ Compiler
15336
15337 # KCC will only create a shared library if the output file
15338 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15339 # to its proper name (with version) after linking.
15340 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'
15341 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'
15342 # Commands to make compiler produce verbose output that lists
15343 # what "hidden" libraries, object files and flags are used when
15344 # linking a shared library.
15345 #
15346 # There doesn't appear to be a way to prevent this compiler from
15347 # explicitly linking system object files so we need to strip them
15348 # from the output so that they don't get included in the library
15349 # dependencies.
15350 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"'
15351
15352 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15353 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15354
15355 # Archives containing C++ object files must be created using
15356 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15357 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15358 ;;
15359 icpc* | ecpc* )
15360 # Intel C++
15361 with_gnu_ld=yes
15362 # version 8.0 and above of icpc choke on multiply defined symbols
15363 # if we add $predep_objects and $postdep_objects, however 7.1 and
15364 # earlier do not add the objects themselves.
15365 case `$CC -V 2>&1` in
15366 *"Version 7."*)
15367 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15368 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'
15369 ;;
15370 *) # Version 8.0 or newer
15371 tmp_idyn=
15372 case $host_cpu in
15373 ia64*) tmp_idyn=' -i_dynamic';;
15374 esac
15375 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15376 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'
15377 ;;
15378 esac
15379 archive_cmds_need_lc_CXX=no
15380 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15381 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15382 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15383 ;;
15384 pgCC* | pgcpp*)
15385 # Portland Group C++ compiler
15386 case `$CC -V` in
15387 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15388 prelink_cmds_CXX='tpldir=Template.dir~
15389 rm -rf $tpldir~
15390 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15391 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15392 old_archive_cmds_CXX='tpldir=Template.dir~
15393 rm -rf $tpldir~
15394 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15395 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15396 $RANLIB $oldlib'
15397 archive_cmds_CXX='tpldir=Template.dir~
15398 rm -rf $tpldir~
15399 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15400 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15401 archive_expsym_cmds_CXX='tpldir=Template.dir~
15402 rm -rf $tpldir~
15403 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15404 $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'
15405 ;;
15406 *) # Version 6 and above use weak symbols
15407 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15408 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'
15409 ;;
15410 esac
15411
15412 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
15413 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15414 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'
15415 ;;
15416 cxx*)
15417 # Compaq C++
15418 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15419 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'
15420
15421 runpath_var=LD_RUN_PATH
15422 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15423 hardcode_libdir_separator_CXX=:
15424
15425 # Commands to make compiler produce verbose output that lists
15426 # what "hidden" libraries, object files and flags are used when
15427 # linking a shared library.
15428 #
15429 # There doesn't appear to be a way to prevent this compiler from
15430 # explicitly linking system object files so we need to strip them
15431 # from the output so that they don't get included in the library
15432 # dependencies.
15433 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'
15434 ;;
15435 xl* | mpixl* | bgxl*)
15436 # IBM XL 8.0 on PPC, with GNU ld
15437 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15438 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15439 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15440 if test yes = "$supports_anon_versioning"; then
15441 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15442 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15443 echo "local: *; };" >> $output_objdir/$libname.ver~
15444 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15445 fi
15446 ;;
15447 *)
15448 case `$CC -V 2>&1 | sed 5q` in
15449 *Sun\ C*)
15450 # Sun C++ 5.9
15451 no_undefined_flag_CXX=' -zdefs'
15452 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15453 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'
15454 hardcode_libdir_flag_spec_CXX='-R$libdir'
15455 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'
15456 compiler_needs_object_CXX=yes
15457
15458 # Not sure whether something based on
15459 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15460 # would be better.
15461 output_verbose_link_cmd='func_echo_all'
15462
15463 # Archives containing C++ object files must be created using
15464 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15465 # necessary to make sure instantiated templates are included
15466 # in the archive.
15467 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15468 ;;
15469 esac
15470 ;;
15471 esac
15472 ;;
15473
15474 lynxos*)
15475 # FIXME: insert proper C++ library support
15476 ld_shlibs_CXX=no
15477 ;;
15478
15479 m88k*)
15480 # FIXME: insert proper C++ library support
15481 ld_shlibs_CXX=no
15482 ;;
15483
15484 mvs*)
15485 case $cc_basename in
15486 cxx*)
15487 # FIXME: insert proper C++ library support
15488 ld_shlibs_CXX=no
15489 ;;
15490 *)
15491 # FIXME: insert proper C++ library support
15492 ld_shlibs_CXX=no
15493 ;;
15494 esac
15495 ;;
15496
15497 netbsd*)
15498 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15499 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15500 wlarc=
15501 hardcode_libdir_flag_spec_CXX='-R$libdir'
15502 hardcode_direct_CXX=yes
15503 hardcode_shlibpath_var_CXX=no
15504 fi
15505 # Workaround some broken pre-1.5 toolchains
15506 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15507 ;;
15508
15509 *nto* | *qnx*)
15510 ld_shlibs_CXX=yes
15511 ;;
15512
15513 openbsd* | bitrig*)
15514 if test -f /usr/libexec/ld.so; then
15515 hardcode_direct_CXX=yes
15516 hardcode_shlibpath_var_CXX=no
15517 hardcode_direct_absolute_CXX=yes
15518 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15519 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15520 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
15521 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
15522 export_dynamic_flag_spec_CXX='$wl-E'
15523 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15524 fi
15525 output_verbose_link_cmd=func_echo_all
15526 else
15527 ld_shlibs_CXX=no
15528 fi
15529 ;;
15530
15531 osf3* | osf4* | osf5*)
15532 case $cc_basename in
15533 KCC*)
15534 # Kuck and Associates, Inc. (KAI) C++ Compiler
15535
15536 # KCC will only create a shared library if the output file
15537 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15538 # to its proper name (with version) after linking.
15539 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'
15540
15541 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15542 hardcode_libdir_separator_CXX=:
15543
15544 # Archives containing C++ object files must be created using
15545 # the KAI C++ compiler.
15546 case $host in
15547 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15548 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15549 esac
15550 ;;
15551 RCC*)
15552 # Rational C++ 2.4.1
15553 # FIXME: insert proper C++ library support
15554 ld_shlibs_CXX=no
15555 ;;
15556 cxx*)
15557 case $host in
15558 osf3*)
15559 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15560 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'
15561 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15562 ;;
15563 *)
15564 allow_undefined_flag_CXX=' -expect_unresolved \*'
15565 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'
15566 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15567 echo "-hidden">> $lib.exp~
15568 $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~
15569 $RM $lib.exp'
15570 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15571 ;;
15572 esac
15573
15574 hardcode_libdir_separator_CXX=:
15575
15576 # Commands to make compiler produce verbose output that lists
15577 # what "hidden" libraries, object files and flags are used when
15578 # linking a shared library.
15579 #
15580 # There doesn't appear to be a way to prevent this compiler from
15581 # explicitly linking system object files so we need to strip them
15582 # from the output so that they don't get included in the library
15583 # dependencies.
15584 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"'
15585 ;;
15586 *)
15587 if test yes,no = "$GXX,$with_gnu_ld"; then
15588 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15589 case $host in
15590 osf3*)
15591 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'
15592 ;;
15593 *)
15594 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'
15595 ;;
15596 esac
15597
15598 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15599 hardcode_libdir_separator_CXX=:
15600
15601 # Commands to make compiler produce verbose output that lists
15602 # what "hidden" libraries, object files and flags are used when
15603 # linking a shared library.
15604 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15605
15606 else
15607 # FIXME: insert proper C++ library support
15608 ld_shlibs_CXX=no
15609 fi
15610 ;;
15611 esac
15612 ;;
15613
15614 psos*)
15615 # FIXME: insert proper C++ library support
15616 ld_shlibs_CXX=no
15617 ;;
15618
15619 sunos4*)
15620 case $cc_basename in
15621 CC*)
15622 # Sun C++ 4.x
15623 # FIXME: insert proper C++ library support
15624 ld_shlibs_CXX=no
15625 ;;
15626 lcc*)
15627 # Lucid
15628 # FIXME: insert proper C++ library support
15629 ld_shlibs_CXX=no
15630 ;;
15631 *)
15632 # FIXME: insert proper C++ library support
15633 ld_shlibs_CXX=no
15634 ;;
15635 esac
15636 ;;
15637
15638 solaris*)
15639 case $cc_basename in
15640 CC* | sunCC*)
15641 # Sun C++ 4.2, 5.x and Centerline C++
15642 archive_cmds_need_lc_CXX=yes
15643 no_undefined_flag_CXX=' -zdefs'
15644 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15645 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15646 $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'
15647
15648 hardcode_libdir_flag_spec_CXX='-R$libdir'
15649 hardcode_shlibpath_var_CXX=no
15650 case $host_os in
15651 solaris2.[0-5] | solaris2.[0-5].*) ;;
15652 *)
15653 # The compiler driver will combine and reorder linker options,
15654 # but understands '-z linker_flag'.
15655 # Supported since Solaris 2.6 (maybe 2.5.1?)
15656 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15657 ;;
15658 esac
15659 link_all_deplibs_CXX=yes
15660
15661 output_verbose_link_cmd='func_echo_all'
15662
15663 # Archives containing C++ object files must be created using
15664 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15665 # necessary to make sure instantiated templates are included
15666 # in the archive.
15667 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15668 ;;
15669 gcx*)
15670 # Green Hills C++ Compiler
15671 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15672
15673 # The C++ compiler must be used to create the archive.
15674 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15675 ;;
15676 *)
15677 # GNU C++ compiler with Solaris linker
15678 if test yes,no = "$GXX,$with_gnu_ld"; then
15679 no_undefined_flag_CXX=' $wl-z ${wl}defs'
15680 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15681 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15682 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15683 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15684
15685 # Commands to make compiler produce verbose output that lists
15686 # what "hidden" libraries, object files and flags are used when
15687 # linking a shared library.
15688 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15689 else
15690 # g++ 2.7 appears to require '-G' NOT '-shared' on this
15691 # platform.
15692 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15693 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15694 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15695
15696 # Commands to make compiler produce verbose output that lists
15697 # what "hidden" libraries, object files and flags are used when
15698 # linking a shared library.
15699 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15700 fi
15701
15702 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
15703 case $host_os in
15704 solaris2.[0-5] | solaris2.[0-5].*) ;;
15705 *)
15706 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
15707 ;;
15708 esac
15709 fi
15710 ;;
15711 esac
15712 ;;
15713
15714 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15715 no_undefined_flag_CXX='$wl-z,text'
15716 archive_cmds_need_lc_CXX=no
15717 hardcode_shlibpath_var_CXX=no
15718 runpath_var='LD_RUN_PATH'
15719
15720 case $cc_basename in
15721 CC*)
15722 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15723 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15724 ;;
15725 *)
15726 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15727 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15728 ;;
15729 esac
15730 ;;
15731
15732 sysv5* | sco3.2v5* | sco5v6*)
15733 # Note: We CANNOT use -z defs as we might desire, because we do not
15734 # link with -lc, and that would cause any symbols used from libc to
15735 # always be unresolved, which means just about no library would
15736 # ever link correctly. If we're not using GNU ld we use -z text
15737 # though, which does catch some bad symbols but isn't as heavy-handed
15738 # as -z defs.
15739 no_undefined_flag_CXX='$wl-z,text'
15740 allow_undefined_flag_CXX='$wl-z,nodefs'
15741 archive_cmds_need_lc_CXX=no
15742 hardcode_shlibpath_var_CXX=no
15743 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
15744 hardcode_libdir_separator_CXX=':'
15745 link_all_deplibs_CXX=yes
15746 export_dynamic_flag_spec_CXX='$wl-Bexport'
15747 runpath_var='LD_RUN_PATH'
15748
15749 case $cc_basename in
15750 CC*)
15751 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15752 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15753 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15754 '"$old_archive_cmds_CXX"
15755 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15756 '"$reload_cmds_CXX"
15757 ;;
15758 *)
15759 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15760 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15761 ;;
15762 esac
15763 ;;
15764
15765 tandem*)
15766 case $cc_basename in
15767 NCC*)
15768 # NonStop-UX NCC 3.20
15769 # FIXME: insert proper C++ library support
15770 ld_shlibs_CXX=no
15771 ;;
15772 *)
15773 # FIXME: insert proper C++ library support
15774 ld_shlibs_CXX=no
15775 ;;
15776 esac
15777 ;;
15778
15779 vxworks*)
15780 # FIXME: insert proper C++ library support
15781 ld_shlibs_CXX=no
15782 ;;
15783
15784 *)
15785 # FIXME: insert proper C++ library support
15786 ld_shlibs_CXX=no
15787 ;;
15788 esac
15789
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15791 $as_echo "$ld_shlibs_CXX" >&6; }
15792 test no = "$ld_shlibs_CXX" && can_build_shared=no
15793
15794 GCC_CXX=$GXX
15795 LD_CXX=$LD
15796
15797 ## CAVEAT EMPTOR:
15798 ## There is no encapsulation within the following macros, do not change
15799 ## the running order or otherwise move them around unless you know exactly
15800 ## what you are doing...
15801 # Dependencies to place before and after the object being linked:
15802 predep_objects_CXX=
15803 postdep_objects_CXX=
15804 predeps_CXX=
15805 postdeps_CXX=
15806 compiler_lib_search_path_CXX=
15807
15808 cat > conftest.$ac_ext <<_LT_EOF
15809 class Foo
15810 {
15811 public:
15812 Foo (void) { a = 0; }
15813 private:
15814 int a;
15815 };
15816 _LT_EOF
15817
15818
15819 _lt_libdeps_save_CFLAGS=$CFLAGS
15820 case "$CC $CFLAGS " in #(
15821 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15822 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15823 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15824 esac
15825
15826 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15827 (eval $ac_compile) 2>&5
15828 ac_status=$?
15829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15830 test $ac_status = 0; }; then
15831 # Parse the compiler output and extract the necessary
15832 # objects, libraries and library flags.
15833
15834 # Sentinel used to keep track of whether or not we are before
15835 # the conftest object file.
15836 pre_test_object_deps_done=no
15837
15838 for p in `eval "$output_verbose_link_cmd"`; do
15839 case $prev$p in
15840
15841 -L* | -R* | -l*)
15842 # Some compilers place space between "-{L,R}" and the path.
15843 # Remove the space.
15844 if test x-L = "$p" ||
15845 test x-R = "$p"; then
15846 prev=$p
15847 continue
15848 fi
15849
15850 # Expand the sysroot to ease extracting the directories later.
15851 if test -z "$prev"; then
15852 case $p in
15853 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15854 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15855 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15856 esac
15857 fi
15858 case $p in
15859 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15860 esac
15861 if test no = "$pre_test_object_deps_done"; then
15862 case $prev in
15863 -L | -R)
15864 # Internal compiler library paths should come after those
15865 # provided the user. The postdeps already come after the
15866 # user supplied libs so there is no need to process them.
15867 if test -z "$compiler_lib_search_path_CXX"; then
15868 compiler_lib_search_path_CXX=$prev$p
15869 else
15870 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
15871 fi
15872 ;;
15873 # The "-l" case would never come before the object being
15874 # linked, so don't bother handling this case.
15875 esac
15876 else
15877 if test -z "$postdeps_CXX"; then
15878 postdeps_CXX=$prev$p
15879 else
15880 postdeps_CXX="${postdeps_CXX} $prev$p"
15881 fi
15882 fi
15883 prev=
15884 ;;
15885
15886 *.lto.$objext) ;; # Ignore GCC LTO objects
15887 *.$objext)
15888 # This assumes that the test object file only shows up
15889 # once in the compiler output.
15890 if test "$p" = "conftest.$objext"; then
15891 pre_test_object_deps_done=yes
15892 continue
15893 fi
15894
15895 if test no = "$pre_test_object_deps_done"; then
15896 if test -z "$predep_objects_CXX"; then
15897 predep_objects_CXX=$p
15898 else
15899 predep_objects_CXX="$predep_objects_CXX $p"
15900 fi
15901 else
15902 if test -z "$postdep_objects_CXX"; then
15903 postdep_objects_CXX=$p
15904 else
15905 postdep_objects_CXX="$postdep_objects_CXX $p"
15906 fi
15907 fi
15908 ;;
15909
15910 *) ;; # Ignore the rest.
15911
15912 esac
15913 done
15914
15915 # Clean up.
15916 rm -f a.out a.exe
15917 else
15918 echo "libtool.m4: error: problem compiling CXX test program"
15919 fi
15920
15921 $RM -f confest.$objext
15922 CFLAGS=$_lt_libdeps_save_CFLAGS
15923
15924 # PORTME: override above test on systems where it is broken
15925 case $host_os in
15926 interix[3-9]*)
15927 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15928 # hack all around it, let's just trust "g++" to DTRT.
15929 predep_objects_CXX=
15930 postdep_objects_CXX=
15931 postdeps_CXX=
15932 ;;
15933 esac
15934
15935
15936 case " $postdeps_CXX " in
15937 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15938 esac
15939 compiler_lib_search_dirs_CXX=
15940 if test -n "${compiler_lib_search_path_CXX}"; then
15941 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
15942 fi
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974 lt_prog_compiler_wl_CXX=
15975 lt_prog_compiler_pic_CXX=
15976 lt_prog_compiler_static_CXX=
15977
15978
15979 # C++ specific cases for pic, static, wl, etc.
15980 if test yes = "$GXX"; then
15981 lt_prog_compiler_wl_CXX='-Wl,'
15982 lt_prog_compiler_static_CXX='-static'
15983
15984 case $host_os in
15985 aix*)
15986 # All AIX code is PIC.
15987 if test ia64 = "$host_cpu"; then
15988 # AIX 5 now supports IA64 processor
15989 lt_prog_compiler_static_CXX='-Bstatic'
15990 fi
15991 lt_prog_compiler_pic_CXX='-fPIC'
15992 ;;
15993
15994 amigaos*)
15995 case $host_cpu in
15996 powerpc)
15997 # see comment about AmigaOS4 .so support
15998 lt_prog_compiler_pic_CXX='-fPIC'
15999 ;;
16000 m68k)
16001 # FIXME: we need at least 68020 code to build shared libraries, but
16002 # adding the '-m68020' flag to GCC prevents building anything better,
16003 # like '-m68040'.
16004 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16005 ;;
16006 esac
16007 ;;
16008
16009 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16010 # PIC is the default for these OSes.
16011 ;;
16012 mingw* | cygwin* | os2* | pw32* | cegcc*)
16013 # This hack is so that the source file can tell whether it is being
16014 # built for inclusion in a dll (and should export symbols for example).
16015 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16016 # (--disable-auto-import) libraries
16017 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16018 case $host_os in
16019 os2*)
16020 lt_prog_compiler_static_CXX='$wl-static'
16021 ;;
16022 esac
16023 ;;
16024 darwin* | rhapsody*)
16025 # PIC is the default on this platform
16026 # Common symbols not allowed in MH_DYLIB files
16027 lt_prog_compiler_pic_CXX='-fno-common'
16028 ;;
16029 *djgpp*)
16030 # DJGPP does not support shared libraries at all
16031 lt_prog_compiler_pic_CXX=
16032 ;;
16033 haiku*)
16034 # PIC is the default for Haiku.
16035 # The "-static" flag exists, but is broken.
16036 lt_prog_compiler_static_CXX=
16037 ;;
16038 interix[3-9]*)
16039 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16040 # Instead, we relocate shared libraries at runtime.
16041 ;;
16042 sysv4*MP*)
16043 if test -d /usr/nec; then
16044 lt_prog_compiler_pic_CXX=-Kconform_pic
16045 fi
16046 ;;
16047 hpux*)
16048 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16049 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16050 # sets the default TLS model and affects inlining.
16051 case $host_cpu in
16052 hppa*64*)
16053 ;;
16054 *)
16055 lt_prog_compiler_pic_CXX='-fPIC'
16056 ;;
16057 esac
16058 ;;
16059 *qnx* | *nto*)
16060 # QNX uses GNU C++, but need to define -shared option too, otherwise
16061 # it will coredump.
16062 lt_prog_compiler_pic_CXX='-fPIC -shared'
16063 ;;
16064 *)
16065 lt_prog_compiler_pic_CXX='-fPIC'
16066 ;;
16067 esac
16068 else
16069 case $host_os in
16070 aix[4-9]*)
16071 # All AIX code is PIC.
16072 if test ia64 = "$host_cpu"; then
16073 # AIX 5 now supports IA64 processor
16074 lt_prog_compiler_static_CXX='-Bstatic'
16075 else
16076 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16077 fi
16078 ;;
16079 chorus*)
16080 case $cc_basename in
16081 cxch68*)
16082 # Green Hills C++ Compiler
16083 # _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"
16084 ;;
16085 esac
16086 ;;
16087 mingw* | cygwin* | os2* | pw32* | cegcc*)
16088 # This hack is so that the source file can tell whether it is being
16089 # built for inclusion in a dll (and should export symbols for example).
16090 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16091 ;;
16092 dgux*)
16093 case $cc_basename in
16094 ec++*)
16095 lt_prog_compiler_pic_CXX='-KPIC'
16096 ;;
16097 ghcx*)
16098 # Green Hills C++ Compiler
16099 lt_prog_compiler_pic_CXX='-pic'
16100 ;;
16101 *)
16102 ;;
16103 esac
16104 ;;
16105 freebsd* | dragonfly*)
16106 # FreeBSD uses GNU C++
16107 ;;
16108 hpux9* | hpux10* | hpux11*)
16109 case $cc_basename in
16110 CC*)
16111 lt_prog_compiler_wl_CXX='-Wl,'
16112 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16113 if test ia64 != "$host_cpu"; then
16114 lt_prog_compiler_pic_CXX='+Z'
16115 fi
16116 ;;
16117 aCC*)
16118 lt_prog_compiler_wl_CXX='-Wl,'
16119 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16120 case $host_cpu in
16121 hppa*64*|ia64*)
16122 # +Z the default
16123 ;;
16124 *)
16125 lt_prog_compiler_pic_CXX='+Z'
16126 ;;
16127 esac
16128 ;;
16129 *)
16130 ;;
16131 esac
16132 ;;
16133 interix*)
16134 # This is c89, which is MS Visual C++ (no shared libs)
16135 # Anyone wants to do a port?
16136 ;;
16137 irix5* | irix6* | nonstopux*)
16138 case $cc_basename in
16139 CC*)
16140 lt_prog_compiler_wl_CXX='-Wl,'
16141 lt_prog_compiler_static_CXX='-non_shared'
16142 # CC pic flag -KPIC is the default.
16143 ;;
16144 *)
16145 ;;
16146 esac
16147 ;;
16148 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16149 case $cc_basename in
16150 KCC*)
16151 # KAI C++ Compiler
16152 lt_prog_compiler_wl_CXX='--backend -Wl,'
16153 lt_prog_compiler_pic_CXX='-fPIC'
16154 ;;
16155 ecpc* )
16156 # old Intel C++ for x86_64, which still supported -KPIC.
16157 lt_prog_compiler_wl_CXX='-Wl,'
16158 lt_prog_compiler_pic_CXX='-KPIC'
16159 lt_prog_compiler_static_CXX='-static'
16160 ;;
16161 icpc* )
16162 # Intel C++, used to be incompatible with GCC.
16163 # ICC 10 doesn't accept -KPIC any more.
16164 lt_prog_compiler_wl_CXX='-Wl,'
16165 lt_prog_compiler_pic_CXX='-fPIC'
16166 lt_prog_compiler_static_CXX='-static'
16167 ;;
16168 pgCC* | pgcpp*)
16169 # Portland Group C++ compiler
16170 lt_prog_compiler_wl_CXX='-Wl,'
16171 lt_prog_compiler_pic_CXX='-fpic'
16172 lt_prog_compiler_static_CXX='-Bstatic'
16173 ;;
16174 cxx*)
16175 # Compaq C++
16176 # Make sure the PIC flag is empty. It appears that all Alpha
16177 # Linux and Compaq Tru64 Unix objects are PIC.
16178 lt_prog_compiler_pic_CXX=
16179 lt_prog_compiler_static_CXX='-non_shared'
16180 ;;
16181 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16182 # IBM XL 8.0, 9.0 on PPC and BlueGene
16183 lt_prog_compiler_wl_CXX='-Wl,'
16184 lt_prog_compiler_pic_CXX='-qpic'
16185 lt_prog_compiler_static_CXX='-qstaticlink'
16186 ;;
16187 *)
16188 case `$CC -V 2>&1 | sed 5q` in
16189 *Sun\ C*)
16190 # Sun C++ 5.9
16191 lt_prog_compiler_pic_CXX='-KPIC'
16192 lt_prog_compiler_static_CXX='-Bstatic'
16193 lt_prog_compiler_wl_CXX='-Qoption ld '
16194 ;;
16195 esac
16196 ;;
16197 esac
16198 ;;
16199 lynxos*)
16200 ;;
16201 m88k*)
16202 ;;
16203 mvs*)
16204 case $cc_basename in
16205 cxx*)
16206 lt_prog_compiler_pic_CXX='-W c,exportall'
16207 ;;
16208 *)
16209 ;;
16210 esac
16211 ;;
16212 netbsd*)
16213 ;;
16214 *qnx* | *nto*)
16215 # QNX uses GNU C++, but need to define -shared option too, otherwise
16216 # it will coredump.
16217 lt_prog_compiler_pic_CXX='-fPIC -shared'
16218 ;;
16219 osf3* | osf4* | osf5*)
16220 case $cc_basename in
16221 KCC*)
16222 lt_prog_compiler_wl_CXX='--backend -Wl,'
16223 ;;
16224 RCC*)
16225 # Rational C++ 2.4.1
16226 lt_prog_compiler_pic_CXX='-pic'
16227 ;;
16228 cxx*)
16229 # Digital/Compaq C++
16230 lt_prog_compiler_wl_CXX='-Wl,'
16231 # Make sure the PIC flag is empty. It appears that all Alpha
16232 # Linux and Compaq Tru64 Unix objects are PIC.
16233 lt_prog_compiler_pic_CXX=
16234 lt_prog_compiler_static_CXX='-non_shared'
16235 ;;
16236 *)
16237 ;;
16238 esac
16239 ;;
16240 psos*)
16241 ;;
16242 solaris*)
16243 case $cc_basename in
16244 CC* | sunCC*)
16245 # Sun C++ 4.2, 5.x and Centerline C++
16246 lt_prog_compiler_pic_CXX='-KPIC'
16247 lt_prog_compiler_static_CXX='-Bstatic'
16248 lt_prog_compiler_wl_CXX='-Qoption ld '
16249 ;;
16250 gcx*)
16251 # Green Hills C++ Compiler
16252 lt_prog_compiler_pic_CXX='-PIC'
16253 ;;
16254 *)
16255 ;;
16256 esac
16257 ;;
16258 sunos4*)
16259 case $cc_basename in
16260 CC*)
16261 # Sun C++ 4.x
16262 lt_prog_compiler_pic_CXX='-pic'
16263 lt_prog_compiler_static_CXX='-Bstatic'
16264 ;;
16265 lcc*)
16266 # Lucid
16267 lt_prog_compiler_pic_CXX='-pic'
16268 ;;
16269 *)
16270 ;;
16271 esac
16272 ;;
16273 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16274 case $cc_basename in
16275 CC*)
16276 lt_prog_compiler_wl_CXX='-Wl,'
16277 lt_prog_compiler_pic_CXX='-KPIC'
16278 lt_prog_compiler_static_CXX='-Bstatic'
16279 ;;
16280 esac
16281 ;;
16282 tandem*)
16283 case $cc_basename in
16284 NCC*)
16285 # NonStop-UX NCC 3.20
16286 lt_prog_compiler_pic_CXX='-KPIC'
16287 ;;
16288 *)
16289 ;;
16290 esac
16291 ;;
16292 vxworks*)
16293 ;;
16294 *)
16295 lt_prog_compiler_can_build_shared_CXX=no
16296 ;;
16297 esac
16298 fi
16299
16300 case $host_os in
16301 # For platforms that do not support PIC, -DPIC is meaningless:
16302 *djgpp*)
16303 lt_prog_compiler_pic_CXX=
16304 ;;
16305 *)
16306 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16307 ;;
16308 esac
16309
16310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16311 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16312 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
16313 $as_echo_n "(cached) " >&6
16314 else
16315 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16316 fi
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16318 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
16319 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16320
16321 #
16322 # Check to make sure the PIC flag actually works.
16323 #
16324 if test -n "$lt_prog_compiler_pic_CXX"; then
16325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16326 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16327 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
16328 $as_echo_n "(cached) " >&6
16329 else
16330 lt_cv_prog_compiler_pic_works_CXX=no
16331 ac_outfile=conftest.$ac_objext
16332 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16333 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
16334 # Insert the option either (1) after the last *FLAGS variable, or
16335 # (2) before a word containing "conftest.", or (3) at the end.
16336 # Note that $ac_compile itself does not contain backslashes and begins
16337 # with a dollar sign (not a hyphen), so the echo should work correctly.
16338 # The option is referenced via a variable to avoid confusing sed.
16339 lt_compile=`echo "$ac_compile" | $SED \
16340 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16341 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16342 -e 's:$: $lt_compiler_flag:'`
16343 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16344 (eval "$lt_compile" 2>conftest.err)
16345 ac_status=$?
16346 cat conftest.err >&5
16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 if (exit $ac_status) && test -s "$ac_outfile"; then
16349 # The compiler can only warn and ignore the option if not recognized
16350 # So say no if there are warnings other than the usual output.
16351 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16352 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16353 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16354 lt_cv_prog_compiler_pic_works_CXX=yes
16355 fi
16356 fi
16357 $RM conftest*
16358
16359 fi
16360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16361 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16362
16363 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
16364 case $lt_prog_compiler_pic_CXX in
16365 "" | " "*) ;;
16366 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16367 esac
16368 else
16369 lt_prog_compiler_pic_CXX=
16370 lt_prog_compiler_can_build_shared_CXX=no
16371 fi
16372
16373 fi
16374
16375
16376
16377
16378
16379 #
16380 # Check to make sure the static flag actually works.
16381 #
16382 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16384 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16385 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16386 $as_echo_n "(cached) " >&6
16387 else
16388 lt_cv_prog_compiler_static_works_CXX=no
16389 save_LDFLAGS=$LDFLAGS
16390 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16391 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16392 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16393 # The linker can only warn and ignore the option if not recognized
16394 # So say no if there are warnings
16395 if test -s conftest.err; then
16396 # Append any errors to the config.log.
16397 cat conftest.err 1>&5
16398 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16399 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16400 if diff conftest.exp conftest.er2 >/dev/null; then
16401 lt_cv_prog_compiler_static_works_CXX=yes
16402 fi
16403 else
16404 lt_cv_prog_compiler_static_works_CXX=yes
16405 fi
16406 fi
16407 $RM -r conftest*
16408 LDFLAGS=$save_LDFLAGS
16409
16410 fi
16411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16412 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16413
16414 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
16415 :
16416 else
16417 lt_prog_compiler_static_CXX=
16418 fi
16419
16420
16421
16422
16423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16424 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16425 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16426 $as_echo_n "(cached) " >&6
16427 else
16428 lt_cv_prog_compiler_c_o_CXX=no
16429 $RM -r conftest 2>/dev/null
16430 mkdir conftest
16431 cd conftest
16432 mkdir out
16433 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16434
16435 lt_compiler_flag="-o out/conftest2.$ac_objext"
16436 # Insert the option either (1) after the last *FLAGS variable, or
16437 # (2) before a word containing "conftest.", or (3) at the end.
16438 # Note that $ac_compile itself does not contain backslashes and begins
16439 # with a dollar sign (not a hyphen), so the echo should work correctly.
16440 lt_compile=`echo "$ac_compile" | $SED \
16441 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16442 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16443 -e 's:$: $lt_compiler_flag:'`
16444 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16445 (eval "$lt_compile" 2>out/conftest.err)
16446 ac_status=$?
16447 cat out/conftest.err >&5
16448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16450 then
16451 # The compiler can only warn and ignore the option if not recognized
16452 # So say no if there are warnings
16453 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16454 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16455 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16456 lt_cv_prog_compiler_c_o_CXX=yes
16457 fi
16458 fi
16459 chmod u+w . 2>&5
16460 $RM conftest*
16461 # SGI C++ compiler will create directory out/ii_files/ for
16462 # template instantiation
16463 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16464 $RM out/* && rmdir out
16465 cd ..
16466 $RM -r conftest
16467 $RM conftest*
16468
16469 fi
16470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16471 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16472
16473
16474
16475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16476 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16477 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16478 $as_echo_n "(cached) " >&6
16479 else
16480 lt_cv_prog_compiler_c_o_CXX=no
16481 $RM -r conftest 2>/dev/null
16482 mkdir conftest
16483 cd conftest
16484 mkdir out
16485 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16486
16487 lt_compiler_flag="-o out/conftest2.$ac_objext"
16488 # Insert the option either (1) after the last *FLAGS variable, or
16489 # (2) before a word containing "conftest.", or (3) at the end.
16490 # Note that $ac_compile itself does not contain backslashes and begins
16491 # with a dollar sign (not a hyphen), so the echo should work correctly.
16492 lt_compile=`echo "$ac_compile" | $SED \
16493 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16494 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16495 -e 's:$: $lt_compiler_flag:'`
16496 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16497 (eval "$lt_compile" 2>out/conftest.err)
16498 ac_status=$?
16499 cat out/conftest.err >&5
16500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16502 then
16503 # The compiler can only warn and ignore the option if not recognized
16504 # So say no if there are warnings
16505 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16506 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16507 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16508 lt_cv_prog_compiler_c_o_CXX=yes
16509 fi
16510 fi
16511 chmod u+w . 2>&5
16512 $RM conftest*
16513 # SGI C++ compiler will create directory out/ii_files/ for
16514 # template instantiation
16515 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16516 $RM out/* && rmdir out
16517 cd ..
16518 $RM -r conftest
16519 $RM conftest*
16520
16521 fi
16522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16523 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16524
16525
16526
16527
16528 hard_links=nottested
16529 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
16530 # do not overwrite the value of need_locks provided by the user
16531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16532 $as_echo_n "checking if we can lock with hard links... " >&6; }
16533 hard_links=yes
16534 $RM conftest*
16535 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16536 touch conftest.a
16537 ln conftest.a conftest.b 2>&5 || hard_links=no
16538 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16540 $as_echo "$hard_links" >&6; }
16541 if test no = "$hard_links"; then
16542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16543 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16544 need_locks=warn
16545 fi
16546 else
16547 need_locks=no
16548 fi
16549
16550
16551
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16553 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16554
16555 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16556 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16557 case $host_os in
16558 aix[4-9]*)
16559 # If we're using GNU nm, then we don't want the "-C" option.
16560 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16561 # Without the "-l" option, or with the "-B" option, AIX nm treats
16562 # weak defined symbols like other global defined symbols, whereas
16563 # GNU nm marks them as "W".
16564 # While the 'weak' keyword is ignored in the Export File, we need
16565 # it in the Import File for the 'aix-soname' feature, so we have
16566 # to replace the "-B" option with "-P" for AIX nm.
16567 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16568 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
16569 else
16570 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
16571 fi
16572 ;;
16573 pw32*)
16574 export_symbols_cmds_CXX=$ltdll_cmds
16575 ;;
16576 cygwin* | mingw* | cegcc*)
16577 case $cc_basename in
16578 cl*)
16579 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16580 ;;
16581 *)
16582 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'
16583 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16584 ;;
16585 esac
16586 ;;
16587 *)
16588 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16589 ;;
16590 esac
16591
16592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16593 $as_echo "$ld_shlibs_CXX" >&6; }
16594 test no = "$ld_shlibs_CXX" && can_build_shared=no
16595
16596 with_gnu_ld_CXX=$with_gnu_ld
16597
16598
16599
16600
16601
16602
16603 #
16604 # Do we need to explicitly link libc?
16605 #
16606 case "x$archive_cmds_need_lc_CXX" in
16607 x|xyes)
16608 # Assume -lc should be added
16609 archive_cmds_need_lc_CXX=yes
16610
16611 if test yes,yes = "$GCC,$enable_shared"; then
16612 case $archive_cmds_CXX in
16613 *'~'*)
16614 # FIXME: we may have to deal with multi-command sequences.
16615 ;;
16616 '$CC '*)
16617 # Test whether the compiler implicitly links with -lc since on some
16618 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16619 # to ld, don't add -lc before -lgcc.
16620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16621 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16622 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
16623 $as_echo_n "(cached) " >&6
16624 else
16625 $RM conftest*
16626 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16627
16628 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16629 (eval $ac_compile) 2>&5
16630 ac_status=$?
16631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16632 test $ac_status = 0; } 2>conftest.err; then
16633 soname=conftest
16634 lib=conftest
16635 libobjs=conftest.$ac_objext
16636 deplibs=
16637 wl=$lt_prog_compiler_wl_CXX
16638 pic_flag=$lt_prog_compiler_pic_CXX
16639 compiler_flags=-v
16640 linker_flags=-v
16641 verstring=
16642 output_objdir=.
16643 libname=conftest
16644 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16645 allow_undefined_flag_CXX=
16646 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16647 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16648 ac_status=$?
16649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16650 test $ac_status = 0; }
16651 then
16652 lt_cv_archive_cmds_need_lc_CXX=no
16653 else
16654 lt_cv_archive_cmds_need_lc_CXX=yes
16655 fi
16656 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16657 else
16658 cat conftest.err 1>&5
16659 fi
16660 $RM conftest*
16661
16662 fi
16663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16664 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16665 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16666 ;;
16667 esac
16668 fi
16669 ;;
16670 esac
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16734 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16735
16736 library_names_spec=
16737 libname_spec='lib$name'
16738 soname_spec=
16739 shrext_cmds=.so
16740 postinstall_cmds=
16741 postuninstall_cmds=
16742 finish_cmds=
16743 finish_eval=
16744 shlibpath_var=
16745 shlibpath_overrides_runpath=unknown
16746 version_type=none
16747 dynamic_linker="$host_os ld.so"
16748 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16749 need_lib_prefix=unknown
16750 hardcode_into_libs=no
16751
16752 # when you set need_version to no, make sure it does not cause -set_version
16753 # flags to be left without arguments
16754 need_version=unknown
16755
16756
16757
16758 case $host_os in
16759 aix3*)
16760 version_type=linux # correct to gnu/linux during the next big refactor
16761 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16762 shlibpath_var=LIBPATH
16763
16764 # AIX 3 has no versioning support, so we append a major version to the name.
16765 soname_spec='$libname$release$shared_ext$major'
16766 ;;
16767
16768 aix[4-9]*)
16769 version_type=linux # correct to gnu/linux during the next big refactor
16770 need_lib_prefix=no
16771 need_version=no
16772 hardcode_into_libs=yes
16773 if test ia64 = "$host_cpu"; then
16774 # AIX 5 supports IA64
16775 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16776 shlibpath_var=LD_LIBRARY_PATH
16777 else
16778 # With GCC up to 2.95.x, collect2 would create an import file
16779 # for dependence libraries. The import file would start with
16780 # the line '#! .'. This would cause the generated library to
16781 # depend on '.', always an invalid library. This was fixed in
16782 # development snapshots of GCC prior to 3.0.
16783 case $host_os in
16784 aix4 | aix4.[01] | aix4.[01].*)
16785 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16786 echo ' yes '
16787 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16788 :
16789 else
16790 can_build_shared=no
16791 fi
16792 ;;
16793 esac
16794 # Using Import Files as archive members, it is possible to support
16795 # filename-based versioning of shared library archives on AIX. While
16796 # this would work for both with and without runtime linking, it will
16797 # prevent static linking of such archives. So we do filename-based
16798 # shared library versioning with .so extension only, which is used
16799 # when both runtime linking and shared linking is enabled.
16800 # Unfortunately, runtime linking may impact performance, so we do
16801 # not want this to be the default eventually. Also, we use the
16802 # versioned .so libs for executables only if there is the -brtl
16803 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16804 # To allow for filename-based versioning support, we need to create
16805 # libNAME.so.V as an archive file, containing:
16806 # *) an Import File, referring to the versioned filename of the
16807 # archive as well as the shared archive member, telling the
16808 # bitwidth (32 or 64) of that shared object, and providing the
16809 # list of exported symbols of that shared object, eventually
16810 # decorated with the 'weak' keyword
16811 # *) the shared object with the F_LOADONLY flag set, to really avoid
16812 # it being seen by the linker.
16813 # At run time we better use the real file rather than another symlink,
16814 # but for link time we create the symlink libNAME.so -> libNAME.so.V
16815
16816 case $with_aix_soname,$aix_use_runtimelinking in
16817 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16818 # soname into executable. Probably we can add versioning support to
16819 # collect2, so additional links can be useful in future.
16820 aix,yes) # traditional libtool
16821 dynamic_linker='AIX unversionable lib.so'
16822 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16823 # instead of lib<name>.a to let people know that these are not
16824 # typical AIX shared libraries.
16825 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16826 ;;
16827 aix,no) # traditional AIX only
16828 dynamic_linker='AIX lib.a(lib.so.V)'
16829 # We preserve .a as extension for shared libraries through AIX4.2
16830 # and later when we are not doing run time linking.
16831 library_names_spec='$libname$release.a $libname.a'
16832 soname_spec='$libname$release$shared_ext$major'
16833 ;;
16834 svr4,*) # full svr4 only
16835 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16836 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16837 # We do not specify a path in Import Files, so LIBPATH fires.
16838 shlibpath_overrides_runpath=yes
16839 ;;
16840 *,yes) # both, prefer svr4
16841 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16842 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16843 # unpreferred sharedlib libNAME.a needs extra handling
16844 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
16845 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
16846 # We do not specify a path in Import Files, so LIBPATH fires.
16847 shlibpath_overrides_runpath=yes
16848 ;;
16849 *,no) # both, prefer aix
16850 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16851 library_names_spec='$libname$release.a $libname.a'
16852 soname_spec='$libname$release$shared_ext$major'
16853 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16854 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
16855 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
16856 ;;
16857 esac
16858 shlibpath_var=LIBPATH
16859 fi
16860 ;;
16861
16862 amigaos*)
16863 case $host_cpu in
16864 powerpc)
16865 # Since July 2007 AmigaOS4 officially supports .so libraries.
16866 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16867 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16868 ;;
16869 m68k)
16870 library_names_spec='$libname.ixlibrary $libname.a'
16871 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16872 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
16873 ;;
16874 esac
16875 ;;
16876
16877 beos*)
16878 library_names_spec='$libname$shared_ext'
16879 dynamic_linker="$host_os ld.so"
16880 shlibpath_var=LIBRARY_PATH
16881 ;;
16882
16883 bsdi[45]*)
16884 version_type=linux # correct to gnu/linux during the next big refactor
16885 need_version=no
16886 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16887 soname_spec='$libname$release$shared_ext$major'
16888 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16889 shlibpath_var=LD_LIBRARY_PATH
16890 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16891 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16892 # the default ld.so.conf also contains /usr/contrib/lib and
16893 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16894 # libtool to hard-code these into programs
16895 ;;
16896
16897 cygwin* | mingw* | pw32* | cegcc*)
16898 version_type=windows
16899 shrext_cmds=.dll
16900 need_version=no
16901 need_lib_prefix=no
16902
16903 case $GCC,$cc_basename in
16904 yes,*)
16905 # gcc
16906 library_names_spec='$libname.dll.a'
16907 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16908 postinstall_cmds='base_file=`basename \$file`~
16909 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16910 dldir=$destdir/`dirname \$dlpath`~
16911 test -d \$dldir || mkdir -p \$dldir~
16912 $install_prog $dir/$dlname \$dldir/$dlname~
16913 chmod a+x \$dldir/$dlname~
16914 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16915 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16916 fi'
16917 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16918 dlpath=$dir/\$dldll~
16919 $RM \$dlpath'
16920 shlibpath_overrides_runpath=yes
16921
16922 case $host_os in
16923 cygwin*)
16924 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16925 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16926
16927 ;;
16928 mingw* | cegcc*)
16929 # MinGW DLLs use traditional 'lib' prefix
16930 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16931 ;;
16932 pw32*)
16933 # pw32 DLLs use 'pw' prefix rather than 'lib'
16934 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16935 ;;
16936 esac
16937 dynamic_linker='Win32 ld.exe'
16938 ;;
16939
16940 *,cl*)
16941 # Native MSVC
16942 libname_spec='$name'
16943 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16944 library_names_spec='$libname.dll.lib'
16945
16946 case $build_os in
16947 mingw*)
16948 sys_lib_search_path_spec=
16949 lt_save_ifs=$IFS
16950 IFS=';'
16951 for lt_path in $LIB
16952 do
16953 IFS=$lt_save_ifs
16954 # Let DOS variable expansion print the short 8.3 style file name.
16955 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16956 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16957 done
16958 IFS=$lt_save_ifs
16959 # Convert to MSYS style.
16960 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16961 ;;
16962 cygwin*)
16963 # Convert to unix form, then to dos form, then back to unix form
16964 # but this time dos style (no spaces!) so that the unix form looks
16965 # like /cygdrive/c/PROGRA~1:/cygdr...
16966 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16967 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16968 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16969 ;;
16970 *)
16971 sys_lib_search_path_spec=$LIB
16972 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16973 # It is most probably a Windows format PATH.
16974 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16975 else
16976 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16977 fi
16978 # FIXME: find the short name or the path components, as spaces are
16979 # common. (e.g. "Program Files" -> "PROGRA~1")
16980 ;;
16981 esac
16982
16983 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16984 postinstall_cmds='base_file=`basename \$file`~
16985 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16986 dldir=$destdir/`dirname \$dlpath`~
16987 test -d \$dldir || mkdir -p \$dldir~
16988 $install_prog $dir/$dlname \$dldir/$dlname'
16989 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16990 dlpath=$dir/\$dldll~
16991 $RM \$dlpath'
16992 shlibpath_overrides_runpath=yes
16993 dynamic_linker='Win32 link.exe'
16994 ;;
16995
16996 *)
16997 # Assume MSVC wrapper
16998 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16999 dynamic_linker='Win32 ld.exe'
17000 ;;
17001 esac
17002 # FIXME: first we should search . and the directory the executable is in
17003 shlibpath_var=PATH
17004 ;;
17005
17006 darwin* | rhapsody*)
17007 dynamic_linker="$host_os dyld"
17008 version_type=darwin
17009 need_lib_prefix=no
17010 need_version=no
17011 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17012 soname_spec='$libname$release$major$shared_ext'
17013 shlibpath_overrides_runpath=yes
17014 shlibpath_var=DYLD_LIBRARY_PATH
17015 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17016
17017 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17018 ;;
17019
17020 dgux*)
17021 version_type=linux # correct to gnu/linux during the next big refactor
17022 need_lib_prefix=no
17023 need_version=no
17024 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17025 soname_spec='$libname$release$shared_ext$major'
17026 shlibpath_var=LD_LIBRARY_PATH
17027 ;;
17028
17029 freebsd* | dragonfly*)
17030 # DragonFly does not have aout. When/if they implement a new
17031 # versioning mechanism, adjust this.
17032 if test -x /usr/bin/objformat; then
17033 objformat=`/usr/bin/objformat`
17034 else
17035 case $host_os in
17036 freebsd[23].*) objformat=aout ;;
17037 *) objformat=elf ;;
17038 esac
17039 fi
17040 version_type=freebsd-$objformat
17041 case $version_type in
17042 freebsd-elf*)
17043 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17044 soname_spec='$libname$release$shared_ext$major'
17045 need_version=no
17046 need_lib_prefix=no
17047 ;;
17048 freebsd-*)
17049 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17050 need_version=yes
17051 ;;
17052 esac
17053 shlibpath_var=LD_LIBRARY_PATH
17054 case $host_os in
17055 freebsd2.*)
17056 shlibpath_overrides_runpath=yes
17057 ;;
17058 freebsd3.[01]* | freebsdelf3.[01]*)
17059 shlibpath_overrides_runpath=yes
17060 hardcode_into_libs=yes
17061 ;;
17062 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17063 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17064 shlibpath_overrides_runpath=no
17065 hardcode_into_libs=yes
17066 ;;
17067 *) # from 4.6 on, and DragonFly
17068 shlibpath_overrides_runpath=yes
17069 hardcode_into_libs=yes
17070 ;;
17071 esac
17072 ;;
17073
17074 haiku*)
17075 version_type=linux # correct to gnu/linux during the next big refactor
17076 need_lib_prefix=no
17077 need_version=no
17078 dynamic_linker="$host_os runtime_loader"
17079 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17080 soname_spec='$libname$release$shared_ext$major'
17081 shlibpath_var=LIBRARY_PATH
17082 shlibpath_overrides_runpath=no
17083 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17084 hardcode_into_libs=yes
17085 ;;
17086
17087 hpux9* | hpux10* | hpux11*)
17088 # Give a soname corresponding to the major version so that dld.sl refuses to
17089 # link against other versions.
17090 version_type=sunos
17091 need_lib_prefix=no
17092 need_version=no
17093 case $host_cpu in
17094 ia64*)
17095 shrext_cmds='.so'
17096 hardcode_into_libs=yes
17097 dynamic_linker="$host_os dld.so"
17098 shlibpath_var=LD_LIBRARY_PATH
17099 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17100 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17101 soname_spec='$libname$release$shared_ext$major'
17102 if test 32 = "$HPUX_IA64_MODE"; then
17103 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17104 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17105 else
17106 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17107 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17108 fi
17109 ;;
17110 hppa*64*)
17111 shrext_cmds='.sl'
17112 hardcode_into_libs=yes
17113 dynamic_linker="$host_os dld.sl"
17114 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17115 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17116 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17117 soname_spec='$libname$release$shared_ext$major'
17118 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17119 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17120 ;;
17121 *)
17122 shrext_cmds='.sl'
17123 dynamic_linker="$host_os dld.sl"
17124 shlibpath_var=SHLIB_PATH
17125 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17126 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17127 soname_spec='$libname$release$shared_ext$major'
17128 ;;
17129 esac
17130 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17131 postinstall_cmds='chmod 555 $lib'
17132 # or fails outright, so override atomically:
17133 install_override_mode=555
17134 ;;
17135
17136 interix[3-9]*)
17137 version_type=linux # correct to gnu/linux during the next big refactor
17138 need_lib_prefix=no
17139 need_version=no
17140 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17141 soname_spec='$libname$release$shared_ext$major'
17142 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17143 shlibpath_var=LD_LIBRARY_PATH
17144 shlibpath_overrides_runpath=no
17145 hardcode_into_libs=yes
17146 ;;
17147
17148 irix5* | irix6* | nonstopux*)
17149 case $host_os in
17150 nonstopux*) version_type=nonstopux ;;
17151 *)
17152 if test yes = "$lt_cv_prog_gnu_ld"; then
17153 version_type=linux # correct to gnu/linux during the next big refactor
17154 else
17155 version_type=irix
17156 fi ;;
17157 esac
17158 need_lib_prefix=no
17159 need_version=no
17160 soname_spec='$libname$release$shared_ext$major'
17161 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17162 case $host_os in
17163 irix5* | nonstopux*)
17164 libsuff= shlibsuff=
17165 ;;
17166 *)
17167 case $LD in # libtool.m4 will add one of these switches to LD
17168 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17169 libsuff= shlibsuff= libmagic=32-bit;;
17170 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17171 libsuff=32 shlibsuff=N32 libmagic=N32;;
17172 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17173 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17174 *) libsuff= shlibsuff= libmagic=never-match;;
17175 esac
17176 ;;
17177 esac
17178 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17179 shlibpath_overrides_runpath=no
17180 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17181 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17182 hardcode_into_libs=yes
17183 ;;
17184
17185 # No shared lib support for Linux oldld, aout, or coff.
17186 linux*oldld* | linux*aout* | linux*coff*)
17187 dynamic_linker=no
17188 ;;
17189
17190 linux*android*)
17191 version_type=none # Android doesn't support versioned libraries.
17192 need_lib_prefix=no
17193 need_version=no
17194 library_names_spec='$libname$release$shared_ext'
17195 soname_spec='$libname$release$shared_ext'
17196 finish_cmds=
17197 shlibpath_var=LD_LIBRARY_PATH
17198 shlibpath_overrides_runpath=yes
17199
17200 # This implies no fast_install, which is unacceptable.
17201 # Some rework will be needed to allow for fast_install
17202 # before this can be enabled.
17203 hardcode_into_libs=yes
17204
17205 dynamic_linker='Android linker'
17206 # Don't embed -rpath directories since the linker doesn't support them.
17207 hardcode_libdir_flag_spec_CXX='-L$libdir'
17208 ;;
17209
17210 # This must be glibc/ELF.
17211 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17212 version_type=linux # correct to gnu/linux during the next big refactor
17213 need_lib_prefix=no
17214 need_version=no
17215 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17216 soname_spec='$libname$release$shared_ext$major'
17217 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17218 shlibpath_var=LD_LIBRARY_PATH
17219 shlibpath_overrides_runpath=no
17220
17221 # Some binutils ld are patched to set DT_RUNPATH
17222 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17223 $as_echo_n "(cached) " >&6
17224 else
17225 lt_cv_shlibpath_overrides_runpath=no
17226 save_LDFLAGS=$LDFLAGS
17227 save_libdir=$libdir
17228 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17229 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17231 /* end confdefs.h. */
17232
17233 int
17234 main ()
17235 {
17236
17237 ;
17238 return 0;
17239 }
17240 _ACEOF
17241 if ac_fn_cxx_try_link "$LINENO"; then :
17242 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17243 lt_cv_shlibpath_overrides_runpath=yes
17244 fi
17245 fi
17246 rm -f core conftest.err conftest.$ac_objext \
17247 conftest$ac_exeext conftest.$ac_ext
17248 LDFLAGS=$save_LDFLAGS
17249 libdir=$save_libdir
17250
17251 fi
17252
17253 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17254
17255 # This implies no fast_install, which is unacceptable.
17256 # Some rework will be needed to allow for fast_install
17257 # before this can be enabled.
17258 hardcode_into_libs=yes
17259
17260 # Ideally, we could use ldconfig to report *all* directores which are
17261 # searched for libraries, however this is still not possible. Aside from not
17262 # being certain /sbin/ldconfig is available, command
17263 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17264 # even though it is searched at run-time. Try to do the best guess by
17265 # appending ld.so.conf contents (and includes) to the search path.
17266 if test -f /etc/ld.so.conf; then
17267 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' ' '`
17268 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17269 fi
17270
17271 # We used to test for /lib/ld.so.1 and disable shared libraries on
17272 # powerpc, because MkLinux only supported shared libraries with the
17273 # GNU dynamic linker. Since this was broken with cross compilers,
17274 # most powerpc-linux boxes support dynamic linking these days and
17275 # people can always --disable-shared, the test was removed, and we
17276 # assume the GNU/Linux dynamic linker is in use.
17277 dynamic_linker='GNU/Linux ld.so'
17278 ;;
17279
17280 netbsd*)
17281 version_type=sunos
17282 need_lib_prefix=no
17283 need_version=no
17284 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17285 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17286 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17287 dynamic_linker='NetBSD (a.out) ld.so'
17288 else
17289 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17290 soname_spec='$libname$release$shared_ext$major'
17291 dynamic_linker='NetBSD ld.elf_so'
17292 fi
17293 shlibpath_var=LD_LIBRARY_PATH
17294 shlibpath_overrides_runpath=yes
17295 hardcode_into_libs=yes
17296 ;;
17297
17298 newsos6)
17299 version_type=linux # correct to gnu/linux during the next big refactor
17300 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17301 shlibpath_var=LD_LIBRARY_PATH
17302 shlibpath_overrides_runpath=yes
17303 ;;
17304
17305 *nto* | *qnx*)
17306 version_type=qnx
17307 need_lib_prefix=no
17308 need_version=no
17309 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17310 soname_spec='$libname$release$shared_ext$major'
17311 shlibpath_var=LD_LIBRARY_PATH
17312 shlibpath_overrides_runpath=no
17313 hardcode_into_libs=yes
17314 dynamic_linker='ldqnx.so'
17315 ;;
17316
17317 openbsd* | bitrig*)
17318 version_type=sunos
17319 sys_lib_dlsearch_path_spec=/usr/lib
17320 need_lib_prefix=no
17321 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17322 need_version=no
17323 else
17324 need_version=yes
17325 fi
17326 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17327 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17328 shlibpath_var=LD_LIBRARY_PATH
17329 shlibpath_overrides_runpath=yes
17330 ;;
17331
17332 os2*)
17333 libname_spec='$name'
17334 version_type=windows
17335 shrext_cmds=.dll
17336 need_version=no
17337 need_lib_prefix=no
17338 # OS/2 can only load a DLL with a base name of 8 characters or less.
17339 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17340 v=$($ECHO $release$versuffix | tr -d .-);
17341 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17342 $ECHO $n$v`$shared_ext'
17343 library_names_spec='${libname}_dll.$libext'
17344 dynamic_linker='OS/2 ld.exe'
17345 shlibpath_var=BEGINLIBPATH
17346 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17347 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17348 postinstall_cmds='base_file=`basename \$file`~
17349 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17350 dldir=$destdir/`dirname \$dlpath`~
17351 test -d \$dldir || mkdir -p \$dldir~
17352 $install_prog $dir/$dlname \$dldir/$dlname~
17353 chmod a+x \$dldir/$dlname~
17354 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17355 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17356 fi'
17357 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17358 dlpath=$dir/\$dldll~
17359 $RM \$dlpath'
17360 ;;
17361
17362 osf3* | osf4* | osf5*)
17363 version_type=osf
17364 need_lib_prefix=no
17365 need_version=no
17366 soname_spec='$libname$release$shared_ext$major'
17367 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17368 shlibpath_var=LD_LIBRARY_PATH
17369 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17370 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17371 ;;
17372
17373 rdos*)
17374 dynamic_linker=no
17375 ;;
17376
17377 solaris*)
17378 version_type=linux # correct to gnu/linux during the next big refactor
17379 need_lib_prefix=no
17380 need_version=no
17381 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17382 soname_spec='$libname$release$shared_ext$major'
17383 shlibpath_var=LD_LIBRARY_PATH
17384 shlibpath_overrides_runpath=yes
17385 hardcode_into_libs=yes
17386 # ldd complains unless libraries are executable
17387 postinstall_cmds='chmod +x $lib'
17388 ;;
17389
17390 sunos4*)
17391 version_type=sunos
17392 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17393 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17394 shlibpath_var=LD_LIBRARY_PATH
17395 shlibpath_overrides_runpath=yes
17396 if test yes = "$with_gnu_ld"; then
17397 need_lib_prefix=no
17398 fi
17399 need_version=yes
17400 ;;
17401
17402 sysv4 | sysv4.3*)
17403 version_type=linux # correct to gnu/linux during the next big refactor
17404 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17405 soname_spec='$libname$release$shared_ext$major'
17406 shlibpath_var=LD_LIBRARY_PATH
17407 case $host_vendor in
17408 sni)
17409 shlibpath_overrides_runpath=no
17410 need_lib_prefix=no
17411 runpath_var=LD_RUN_PATH
17412 ;;
17413 siemens)
17414 need_lib_prefix=no
17415 ;;
17416 motorola)
17417 need_lib_prefix=no
17418 need_version=no
17419 shlibpath_overrides_runpath=no
17420 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17421 ;;
17422 esac
17423 ;;
17424
17425 sysv4*MP*)
17426 if test -d /usr/nec; then
17427 version_type=linux # correct to gnu/linux during the next big refactor
17428 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17429 soname_spec='$libname$shared_ext.$major'
17430 shlibpath_var=LD_LIBRARY_PATH
17431 fi
17432 ;;
17433
17434 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17435 version_type=sco
17436 need_lib_prefix=no
17437 need_version=no
17438 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17439 soname_spec='$libname$release$shared_ext$major'
17440 shlibpath_var=LD_LIBRARY_PATH
17441 shlibpath_overrides_runpath=yes
17442 hardcode_into_libs=yes
17443 if test yes = "$with_gnu_ld"; then
17444 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17445 else
17446 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17447 case $host_os in
17448 sco3.2v5*)
17449 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17450 ;;
17451 esac
17452 fi
17453 sys_lib_dlsearch_path_spec='/usr/lib'
17454 ;;
17455
17456 tpf*)
17457 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17458 version_type=linux # correct to gnu/linux during the next big refactor
17459 need_lib_prefix=no
17460 need_version=no
17461 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17462 shlibpath_var=LD_LIBRARY_PATH
17463 shlibpath_overrides_runpath=no
17464 hardcode_into_libs=yes
17465 ;;
17466
17467 uts4*)
17468 version_type=linux # correct to gnu/linux during the next big refactor
17469 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17470 soname_spec='$libname$release$shared_ext$major'
17471 shlibpath_var=LD_LIBRARY_PATH
17472 ;;
17473
17474 *)
17475 dynamic_linker=no
17476 ;;
17477 esac
17478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17479 $as_echo "$dynamic_linker" >&6; }
17480 test no = "$dynamic_linker" && can_build_shared=no
17481
17482 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17483 if test yes = "$GCC"; then
17484 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17485 fi
17486
17487 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17488 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17489 fi
17490
17491 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17492 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17493 fi
17494
17495 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17496 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17497
17498 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17499 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17500
17501 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17502 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17503
17504
17505
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17544 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17545 hardcode_action_CXX=
17546 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17547 test -n "$runpath_var_CXX" ||
17548 test yes = "$hardcode_automatic_CXX"; then
17549
17550 # We can hardcode non-existent directories.
17551 if test no != "$hardcode_direct_CXX" &&
17552 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17553 # have to relink, otherwise we might link with an installed library
17554 # when we should be linking with a yet-to-be-installed one
17555 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
17556 test no != "$hardcode_minus_L_CXX"; then
17557 # Linking always hardcodes the temporary library directory.
17558 hardcode_action_CXX=relink
17559 else
17560 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17561 hardcode_action_CXX=immediate
17562 fi
17563 else
17564 # We cannot hardcode anything, or else we can only hardcode existing
17565 # directories.
17566 hardcode_action_CXX=unsupported
17567 fi
17568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17569 $as_echo "$hardcode_action_CXX" >&6; }
17570
17571 if test relink = "$hardcode_action_CXX" ||
17572 test yes = "$inherit_rpath_CXX"; then
17573 # Fast installation is not supported
17574 enable_fast_install=no
17575 elif test yes = "$shlibpath_overrides_runpath" ||
17576 test no = "$enable_shared"; then
17577 # Fast installation is not necessary
17578 enable_fast_install=needless
17579 fi
17580
17581
17582
17583
17584
17585
17586
17587 fi # test -n "$compiler"
17588
17589 CC=$lt_save_CC
17590 CFLAGS=$lt_save_CFLAGS
17591 LDCXX=$LD
17592 LD=$lt_save_LD
17593 GCC=$lt_save_GCC
17594 with_gnu_ld=$lt_save_with_gnu_ld
17595 lt_cv_path_LDCXX=$lt_cv_path_LD
17596 lt_cv_path_LD=$lt_save_path_LD
17597 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17598 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17599 fi # test yes != "$_lt_caught_CXX_error"
17600
17601 ac_ext=c
17602 ac_cpp='$CPP $CPPFLAGS'
17603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621 ac_config_commands="$ac_config_commands libtool"
17622
17623
17624
17625
17626 # Only expand once:
17627
17628
17629
17630
17631 # Checks for header files
17632 ac_config_headers="$ac_config_headers config.h"
17633
17634 for ac_header in fcntl.h signal.h errno.h dlfnc.h unistd.h link.h \
17635 gnu/libc-version.h \
17636 linux/perf_event.h \
17637 sys/ioctl.h
17638 do :
17639 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17640 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17641 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17642 cat >>confdefs.h <<_ACEOF
17643 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17644 _ACEOF
17645
17646 fi
17647
17648 done
17649
17650
17651 # Checks for typedefs, structures, and compiler characteristics
17652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
17653 $as_echo_n "checking for inline... " >&6; }
17654 if ${ac_cv_c_inline+:} false; then :
17655 $as_echo_n "(cached) " >&6
17656 else
17657 ac_cv_c_inline=no
17658 for ac_kw in inline __inline__ __inline; do
17659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17660 /* end confdefs.h. */
17661 #ifndef __cplusplus
17662 typedef int foo_t;
17663 static $ac_kw foo_t static_foo () {return 0; }
17664 $ac_kw foo_t foo () {return 0; }
17665 #endif
17666
17667 _ACEOF
17668 if ac_fn_c_try_compile "$LINENO"; then :
17669 ac_cv_c_inline=$ac_kw
17670 fi
17671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17672 test "$ac_cv_c_inline" != no && break
17673 done
17674
17675 fi
17676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
17677 $as_echo "$ac_cv_c_inline" >&6; }
17678
17679 case $ac_cv_c_inline in
17680 inline | yes) ;;
17681 *)
17682 case $ac_cv_c_inline in
17683 no) ac_val=;;
17684 *) ac_val=$ac_cv_c_inline;;
17685 esac
17686 cat >>confdefs.h <<_ACEOF
17687 #ifndef __cplusplus
17688 #define inline $ac_val
17689 #endif
17690 _ACEOF
17691 ;;
17692 esac
17693
17694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
17695 $as_echo_n "checking for working volatile... " >&6; }
17696 if ${ac_cv_c_volatile+:} false; then :
17697 $as_echo_n "(cached) " >&6
17698 else
17699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17700 /* end confdefs.h. */
17701
17702 int
17703 main ()
17704 {
17705
17706 volatile int x;
17707 int * volatile y = (int *) 0;
17708 return !x && !y;
17709 ;
17710 return 0;
17711 }
17712 _ACEOF
17713 if ac_fn_c_try_compile "$LINENO"; then :
17714 ac_cv_c_volatile=yes
17715 else
17716 ac_cv_c_volatile=no
17717 fi
17718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17719 fi
17720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
17721 $as_echo "$ac_cv_c_volatile" >&6; }
17722 if test $ac_cv_c_volatile = no; then
17723
17724 $as_echo "#define volatile /**/" >>confdefs.h
17725
17726 fi
17727
17728 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
17729 if test "x$ac_cv_type_pid_t" = xyes; then :
17730
17731 else
17732
17733 cat >>confdefs.h <<_ACEOF
17734 #define pid_t int
17735 _ACEOF
17736
17737 fi
17738
17739 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17740 if test "x$ac_cv_type_size_t" = xyes; then :
17741
17742 else
17743
17744 cat >>confdefs.h <<_ACEOF
17745 #define size_t unsigned int
17746 _ACEOF
17747
17748 fi
17749
17750 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
17751 if test "x$ac_cv_type_ssize_t" = xyes; then :
17752
17753 else
17754
17755 cat >>confdefs.h <<_ACEOF
17756 #define ssize_t int
17757 _ACEOF
17758
17759 fi
17760
17761 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
17762 case $ac_cv_c_uint32_t in #(
17763 no|yes) ;; #(
17764 *)
17765
17766 $as_echo "#define _UINT32_T 1" >>confdefs.h
17767
17768
17769 cat >>confdefs.h <<_ACEOF
17770 #define uint32_t $ac_cv_c_uint32_t
17771 _ACEOF
17772 ;;
17773 esac
17774
17775 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
17776 case $ac_cv_c_uint64_t in #(
17777 no|yes) ;; #(
17778 *)
17779
17780 $as_echo "#define _UINT64_T 1" >>confdefs.h
17781
17782
17783 cat >>confdefs.h <<_ACEOF
17784 #define uint64_t $ac_cv_c_uint64_t
17785 _ACEOF
17786 ;;
17787 esac
17788
17789
17790 # Checks for library functions.
17791 for ac_header in vfork.h
17792 do :
17793 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
17794 if test "x$ac_cv_header_vfork_h" = xyes; then :
17795 cat >>confdefs.h <<_ACEOF
17796 #define HAVE_VFORK_H 1
17797 _ACEOF
17798
17799 fi
17800
17801 done
17802
17803 for ac_func in fork vfork
17804 do :
17805 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17806 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17807 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17808 cat >>confdefs.h <<_ACEOF
17809 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17810 _ACEOF
17811
17812 fi
17813 done
17814
17815 if test "x$ac_cv_func_fork" = xyes; then
17816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
17817 $as_echo_n "checking for working fork... " >&6; }
17818 if ${ac_cv_func_fork_works+:} false; then :
17819 $as_echo_n "(cached) " >&6
17820 else
17821 if test "$cross_compiling" = yes; then :
17822 ac_cv_func_fork_works=cross
17823 else
17824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17825 /* end confdefs.h. */
17826 $ac_includes_default
17827 int
17828 main ()
17829 {
17830
17831 /* By Ruediger Kuhlmann. */
17832 return fork () < 0;
17833
17834 ;
17835 return 0;
17836 }
17837 _ACEOF
17838 if ac_fn_c_try_run "$LINENO"; then :
17839 ac_cv_func_fork_works=yes
17840 else
17841 ac_cv_func_fork_works=no
17842 fi
17843 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17844 conftest.$ac_objext conftest.beam conftest.$ac_ext
17845 fi
17846
17847 fi
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
17849 $as_echo "$ac_cv_func_fork_works" >&6; }
17850
17851 else
17852 ac_cv_func_fork_works=$ac_cv_func_fork
17853 fi
17854 if test "x$ac_cv_func_fork_works" = xcross; then
17855 case $host in
17856 *-*-amigaos* | *-*-msdosdjgpp*)
17857 # Override, as these systems have only a dummy fork() stub
17858 ac_cv_func_fork_works=no
17859 ;;
17860 *)
17861 ac_cv_func_fork_works=yes
17862 ;;
17863 esac
17864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
17865 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
17866 fi
17867 ac_cv_func_vfork_works=$ac_cv_func_vfork
17868 if test "x$ac_cv_func_vfork" = xyes; then
17869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
17870 $as_echo_n "checking for working vfork... " >&6; }
17871 if ${ac_cv_func_vfork_works+:} false; then :
17872 $as_echo_n "(cached) " >&6
17873 else
17874 if test "$cross_compiling" = yes; then :
17875 ac_cv_func_vfork_works=cross
17876 else
17877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17878 /* end confdefs.h. */
17879 /* Thanks to Paul Eggert for this test. */
17880 $ac_includes_default
17881 #include <sys/wait.h>
17882 #ifdef HAVE_VFORK_H
17883 # include <vfork.h>
17884 #endif
17885 /* On some sparc systems, changes by the child to local and incoming
17886 argument registers are propagated back to the parent. The compiler
17887 is told about this with #include <vfork.h>, but some compilers
17888 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
17889 static variable whose address is put into a register that is
17890 clobbered by the vfork. */
17891 static void
17892 #ifdef __cplusplus
17893 sparc_address_test (int arg)
17894 # else
17895 sparc_address_test (arg) int arg;
17896 #endif
17897 {
17898 static pid_t child;
17899 if (!child) {
17900 child = vfork ();
17901 if (child < 0) {
17902 perror ("vfork");
17903 _exit(2);
17904 }
17905 if (!child) {
17906 arg = getpid();
17907 write(-1, "", 0);
17908 _exit (arg);
17909 }
17910 }
17911 }
17912
17913 int
17914 main ()
17915 {
17916 pid_t parent = getpid ();
17917 pid_t child;
17918
17919 sparc_address_test (0);
17920
17921 child = vfork ();
17922
17923 if (child == 0) {
17924 /* Here is another test for sparc vfork register problems. This
17925 test uses lots of local variables, at least as many local
17926 variables as main has allocated so far including compiler
17927 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
17928 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
17929 reuse the register of parent for one of the local variables,
17930 since it will think that parent can't possibly be used any more
17931 in this routine. Assigning to the local variable will thus
17932 munge parent in the parent process. */
17933 pid_t
17934 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
17935 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
17936 /* Convince the compiler that p..p7 are live; otherwise, it might
17937 use the same hardware register for all 8 local variables. */
17938 if (p != p1 || p != p2 || p != p3 || p != p4
17939 || p != p5 || p != p6 || p != p7)
17940 _exit(1);
17941
17942 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
17943 from child file descriptors. If the child closes a descriptor
17944 before it execs or exits, this munges the parent's descriptor
17945 as well. Test for this by closing stdout in the child. */
17946 _exit(close(fileno(stdout)) != 0);
17947 } else {
17948 int status;
17949 struct stat st;
17950
17951 while (wait(&status) != child)
17952 ;
17953 return (
17954 /* Was there some problem with vforking? */
17955 child < 0
17956
17957 /* Did the child fail? (This shouldn't happen.) */
17958 || status
17959
17960 /* Did the vfork/compiler bug occur? */
17961 || parent != getpid()
17962
17963 /* Did the file descriptor bug occur? */
17964 || fstat(fileno(stdout), &st) != 0
17965 );
17966 }
17967 }
17968 _ACEOF
17969 if ac_fn_c_try_run "$LINENO"; then :
17970 ac_cv_func_vfork_works=yes
17971 else
17972 ac_cv_func_vfork_works=no
17973 fi
17974 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17975 conftest.$ac_objext conftest.beam conftest.$ac_ext
17976 fi
17977
17978 fi
17979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
17980 $as_echo "$ac_cv_func_vfork_works" >&6; }
17981
17982 fi;
17983 if test "x$ac_cv_func_fork_works" = xcross; then
17984 ac_cv_func_vfork_works=$ac_cv_func_vfork
17985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
17986 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
17987 fi
17988
17989 if test "x$ac_cv_func_vfork_works" = xyes; then
17990
17991 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
17992
17993 else
17994
17995 $as_echo "#define vfork fork" >>confdefs.h
17996
17997 fi
17998 if test "x$ac_cv_func_fork_works" = xyes; then
17999
18000 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
18001
18002 fi
18003
18004 for ac_header in stdlib.h
18005 do :
18006 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
18007 if test "x$ac_cv_header_stdlib_h" = xyes; then :
18008 cat >>confdefs.h <<_ACEOF
18009 #define HAVE_STDLIB_H 1
18010 _ACEOF
18011
18012 fi
18013
18014 done
18015
18016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
18017 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
18018 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
18019 $as_echo_n "(cached) " >&6
18020 else
18021 if test "$cross_compiling" = yes; then :
18022 ac_cv_func_malloc_0_nonnull=no
18023 else
18024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18025 /* end confdefs.h. */
18026 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
18027 # include <stdlib.h>
18028 #else
18029 char *malloc ();
18030 #endif
18031
18032 int
18033 main ()
18034 {
18035 return ! malloc (0);
18036 ;
18037 return 0;
18038 }
18039 _ACEOF
18040 if ac_fn_c_try_run "$LINENO"; then :
18041 ac_cv_func_malloc_0_nonnull=yes
18042 else
18043 ac_cv_func_malloc_0_nonnull=no
18044 fi
18045 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18046 conftest.$ac_objext conftest.beam conftest.$ac_ext
18047 fi
18048
18049 fi
18050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
18051 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
18052 if test $ac_cv_func_malloc_0_nonnull = yes; then :
18053
18054 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
18055
18056 else
18057 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
18058
18059 case " $LIBOBJS " in
18060 *" malloc.$ac_objext "* ) ;;
18061 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
18062 ;;
18063 esac
18064
18065
18066 $as_echo "#define malloc rpl_malloc" >>confdefs.h
18067
18068 fi
18069
18070
18071 for ac_func in alarm getpagesize memset strchr strerror strncasecmp strstr \
18072 strtol
18073 do :
18074 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18075 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18076 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18077 cat >>confdefs.h <<_ACEOF
18078 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18079 _ACEOF
18080
18081 fi
18082 done
18083
18084
18085 ac_fn_c_check_decl "$LINENO" "__NR_perf_event_open" "ac_cv_have_decl___NR_perf_event_open" "#include <sys/syscall.h>
18086 "
18087 if test "x$ac_cv_have_decl___NR_perf_event_open" = xyes; then :
18088
18089 else
18090 as_fn_error $? "__NR_perf_event_open not found. Are you using Linux >= \
18091 2.6.32?" "$LINENO" 5
18092 fi
18093
18094
18095 ac_config_files="$ac_config_files Makefile common/Makefile ebb/Makefile dsc/Makefile tb/Makefile ppr/Makefile"
18096
18097 cat >confcache <<\_ACEOF
18098 # This file is a shell script that caches the results of configure
18099 # tests run on this system so they can be shared between configure
18100 # scripts and configure runs, see configure's option --config-cache.
18101 # It is not useful on other systems. If it contains results you don't
18102 # want to keep, you may remove or edit it.
18103 #
18104 # config.status only pays attention to the cache file if you give it
18105 # the --recheck option to rerun configure.
18106 #
18107 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18108 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18109 # following values.
18110
18111 _ACEOF
18112
18113 # The following way of writing the cache mishandles newlines in values,
18114 # but we know of no workaround that is simple, portable, and efficient.
18115 # So, we kill variables containing newlines.
18116 # Ultrix sh set writes to stderr and can't be redirected directly,
18117 # and sets the high bit in the cache file unless we assign to the vars.
18118 (
18119 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18120 eval ac_val=\$$ac_var
18121 case $ac_val in #(
18122 *${as_nl}*)
18123 case $ac_var in #(
18124 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18125 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18126 esac
18127 case $ac_var in #(
18128 _ | IFS | as_nl) ;; #(
18129 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18130 *) { eval $ac_var=; unset $ac_var;} ;;
18131 esac ;;
18132 esac
18133 done
18134
18135 (set) 2>&1 |
18136 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18137 *${as_nl}ac_space=\ *)
18138 # `set' does not quote correctly, so add quotes: double-quote
18139 # substitution turns \\\\ into \\, and sed turns \\ into \.
18140 sed -n \
18141 "s/'/'\\\\''/g;
18142 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18143 ;; #(
18144 *)
18145 # `set' quotes correctly as required by POSIX, so do not add quotes.
18146 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18147 ;;
18148 esac |
18149 sort
18150 ) |
18151 sed '
18152 /^ac_cv_env_/b end
18153 t clear
18154 :clear
18155 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18156 t end
18157 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18158 :end' >>confcache
18159 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18160 if test -w "$cache_file"; then
18161 if test "x$cache_file" != "x/dev/null"; then
18162 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18163 $as_echo "$as_me: updating cache $cache_file" >&6;}
18164 if test ! -f "$cache_file" || test -h "$cache_file"; then
18165 cat confcache >"$cache_file"
18166 else
18167 case $cache_file in #(
18168 */* | ?:*)
18169 mv -f confcache "$cache_file"$$ &&
18170 mv -f "$cache_file"$$ "$cache_file" ;; #(
18171 *)
18172 mv -f confcache "$cache_file" ;;
18173 esac
18174 fi
18175 fi
18176 else
18177 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18178 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18179 fi
18180 fi
18181 rm -f confcache
18182
18183 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18184 # Let make expand exec_prefix.
18185 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18186
18187 DEFS=-DHAVE_CONFIG_H
18188
18189 ac_libobjs=
18190 ac_ltlibobjs=
18191 U=
18192 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18193 # 1. Remove the extension, and $U if already installed.
18194 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18195 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18196 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18197 # will be set to the directory where LIBOBJS objects are built.
18198 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18199 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18200 done
18201 LIBOBJS=$ac_libobjs
18202
18203 LTLIBOBJS=$ac_ltlibobjs
18204
18205
18206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18207 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18208 if test -n "$am_sleep_pid"; then
18209 # Hide warnings about reused PIDs.
18210 wait $am_sleep_pid 2>/dev/null
18211 fi
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18213 $as_echo "done" >&6; }
18214 if test -n "$EXEEXT"; then
18215 am__EXEEXT_TRUE=
18216 am__EXEEXT_FALSE='#'
18217 else
18218 am__EXEEXT_TRUE='#'
18219 am__EXEEXT_FALSE=
18220 fi
18221
18222 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18223 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18224 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18225 fi
18226 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18227 as_fn_error $? "conditional \"AMDEP\" was never defined.
18228 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18229 fi
18230 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18231 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18232 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18233 fi
18234 if test -z "${DSC_TRUE}" && test -z "${DSC_FALSE}"; then
18235 as_fn_error $? "conditional \"DSC\" was never defined.
18236 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18237 fi
18238 if test -z "${EBB_TRUE}" && test -z "${EBB_FALSE}"; then
18239 as_fn_error $? "conditional \"EBB\" was never defined.
18240 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18241 fi
18242 if test -z "${TB_TRUE}" && test -z "${TB_FALSE}"; then
18243 as_fn_error $? "conditional \"TB\" was never defined.
18244 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18245 fi
18246 if test -z "${PPR_TRUE}" && test -z "${PPR_FALSE}"; then
18247 as_fn_error $? "conditional \"PPR\" was never defined.
18248 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18249 fi
18250 if test -z "${POWERPC64_TRUE}" && test -z "${POWERPC64_FALSE}"; then
18251 as_fn_error $? "conditional \"POWERPC64\" was never defined.
18252 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18253 fi
18254 if test -z "${POWERPC64_TRUE}" && test -z "${POWERPC64_FALSE}"; then
18255 as_fn_error $? "conditional \"POWERPC64\" was never defined.
18256 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18257 fi
18258 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
18259 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
18260 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18261 fi
18262 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18263 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18264 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18265 fi
18266 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18267 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18268 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18269 fi
18270
18271 : "${CONFIG_STATUS=./config.status}"
18272 ac_write_fail=0
18273 ac_clean_files_save=$ac_clean_files
18274 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18275 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18276 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18277 as_write_fail=0
18278 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18279 #! $SHELL
18280 # Generated by $as_me.
18281 # Run this file to recreate the current configuration.
18282 # Compiler output produced by configure, useful for debugging
18283 # configure, is in config.log if it exists.
18284
18285 debug=false
18286 ac_cs_recheck=false
18287 ac_cs_silent=false
18288
18289 SHELL=\${CONFIG_SHELL-$SHELL}
18290 export SHELL
18291 _ASEOF
18292 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18293 ## -------------------- ##
18294 ## M4sh Initialization. ##
18295 ## -------------------- ##
18296
18297 # Be more Bourne compatible
18298 DUALCASE=1; export DUALCASE # for MKS sh
18299 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18300 emulate sh
18301 NULLCMD=:
18302 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18303 # is contrary to our usage. Disable this feature.
18304 alias -g '${1+"$@"}'='"$@"'
18305 setopt NO_GLOB_SUBST
18306 else
18307 case `(set -o) 2>/dev/null` in #(
18308 *posix*) :
18309 set -o posix ;; #(
18310 *) :
18311 ;;
18312 esac
18313 fi
18314
18315
18316 as_nl='
18317 '
18318 export as_nl
18319 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18320 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18321 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18322 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18323 # Prefer a ksh shell builtin over an external printf program on Solaris,
18324 # but without wasting forks for bash or zsh.
18325 if test -z "$BASH_VERSION$ZSH_VERSION" \
18326 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18327 as_echo='print -r --'
18328 as_echo_n='print -rn --'
18329 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18330 as_echo='printf %s\n'
18331 as_echo_n='printf %s'
18332 else
18333 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18334 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18335 as_echo_n='/usr/ucb/echo -n'
18336 else
18337 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18338 as_echo_n_body='eval
18339 arg=$1;
18340 case $arg in #(
18341 *"$as_nl"*)
18342 expr "X$arg" : "X\\(.*\\)$as_nl";
18343 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18344 esac;
18345 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18346 '
18347 export as_echo_n_body
18348 as_echo_n='sh -c $as_echo_n_body as_echo'
18349 fi
18350 export as_echo_body
18351 as_echo='sh -c $as_echo_body as_echo'
18352 fi
18353
18354 # The user is always right.
18355 if test "${PATH_SEPARATOR+set}" != set; then
18356 PATH_SEPARATOR=:
18357 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18358 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18359 PATH_SEPARATOR=';'
18360 }
18361 fi
18362
18363
18364 # IFS
18365 # We need space, tab and new line, in precisely that order. Quoting is
18366 # there to prevent editors from complaining about space-tab.
18367 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18368 # splitting by setting IFS to empty value.)
18369 IFS=" "" $as_nl"
18370
18371 # Find who we are. Look in the path if we contain no directory separator.
18372 as_myself=
18373 case $0 in #((
18374 *[\\/]* ) as_myself=$0 ;;
18375 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18376 for as_dir in $PATH
18377 do
18378 IFS=$as_save_IFS
18379 test -z "$as_dir" && as_dir=.
18380 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18381 done
18382 IFS=$as_save_IFS
18383
18384 ;;
18385 esac
18386 # We did not find ourselves, most probably we were run as `sh COMMAND'
18387 # in which case we are not to be found in the path.
18388 if test "x$as_myself" = x; then
18389 as_myself=$0
18390 fi
18391 if test ! -f "$as_myself"; then
18392 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18393 exit 1
18394 fi
18395
18396 # Unset variables that we do not need and which cause bugs (e.g. in
18397 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18398 # suppresses any "Segmentation fault" message there. '((' could
18399 # trigger a bug in pdksh 5.2.14.
18400 for as_var in BASH_ENV ENV MAIL MAILPATH
18401 do eval test x\${$as_var+set} = xset \
18402 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18403 done
18404 PS1='$ '
18405 PS2='> '
18406 PS4='+ '
18407
18408 # NLS nuisances.
18409 LC_ALL=C
18410 export LC_ALL
18411 LANGUAGE=C
18412 export LANGUAGE
18413
18414 # CDPATH.
18415 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18416
18417
18418 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18419 # ----------------------------------------
18420 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18421 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18422 # script with STATUS, using 1 if that was 0.
18423 as_fn_error ()
18424 {
18425 as_status=$1; test $as_status -eq 0 && as_status=1
18426 if test "$4"; then
18427 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18428 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18429 fi
18430 $as_echo "$as_me: error: $2" >&2
18431 as_fn_exit $as_status
18432 } # as_fn_error
18433
18434
18435 # as_fn_set_status STATUS
18436 # -----------------------
18437 # Set $? to STATUS, without forking.
18438 as_fn_set_status ()
18439 {
18440 return $1
18441 } # as_fn_set_status
18442
18443 # as_fn_exit STATUS
18444 # -----------------
18445 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18446 as_fn_exit ()
18447 {
18448 set +e
18449 as_fn_set_status $1
18450 exit $1
18451 } # as_fn_exit
18452
18453 # as_fn_unset VAR
18454 # ---------------
18455 # Portably unset VAR.
18456 as_fn_unset ()
18457 {
18458 { eval $1=; unset $1;}
18459 }
18460 as_unset=as_fn_unset
18461 # as_fn_append VAR VALUE
18462 # ----------------------
18463 # Append the text in VALUE to the end of the definition contained in VAR. Take
18464 # advantage of any shell optimizations that allow amortized linear growth over
18465 # repeated appends, instead of the typical quadratic growth present in naive
18466 # implementations.
18467 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18468 eval 'as_fn_append ()
18469 {
18470 eval $1+=\$2
18471 }'
18472 else
18473 as_fn_append ()
18474 {
18475 eval $1=\$$1\$2
18476 }
18477 fi # as_fn_append
18478
18479 # as_fn_arith ARG...
18480 # ------------------
18481 # Perform arithmetic evaluation on the ARGs, and store the result in the
18482 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18483 # must be portable across $(()) and expr.
18484 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18485 eval 'as_fn_arith ()
18486 {
18487 as_val=$(( $* ))
18488 }'
18489 else
18490 as_fn_arith ()
18491 {
18492 as_val=`expr "$@" || test $? -eq 1`
18493 }
18494 fi # as_fn_arith
18495
18496
18497 if expr a : '\(a\)' >/dev/null 2>&1 &&
18498 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18499 as_expr=expr
18500 else
18501 as_expr=false
18502 fi
18503
18504 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18505 as_basename=basename
18506 else
18507 as_basename=false
18508 fi
18509
18510 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18511 as_dirname=dirname
18512 else
18513 as_dirname=false
18514 fi
18515
18516 as_me=`$as_basename -- "$0" ||
18517 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18518 X"$0" : 'X\(//\)$' \| \
18519 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18520 $as_echo X/"$0" |
18521 sed '/^.*\/\([^/][^/]*\)\/*$/{
18522 s//\1/
18523 q
18524 }
18525 /^X\/\(\/\/\)$/{
18526 s//\1/
18527 q
18528 }
18529 /^X\/\(\/\).*/{
18530 s//\1/
18531 q
18532 }
18533 s/.*/./; q'`
18534
18535 # Avoid depending upon Character Ranges.
18536 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18537 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18538 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18539 as_cr_digits='0123456789'
18540 as_cr_alnum=$as_cr_Letters$as_cr_digits
18541
18542 ECHO_C= ECHO_N= ECHO_T=
18543 case `echo -n x` in #(((((
18544 -n*)
18545 case `echo 'xy\c'` in
18546 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18547 xy) ECHO_C='\c';;
18548 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18549 ECHO_T=' ';;
18550 esac;;
18551 *)
18552 ECHO_N='-n';;
18553 esac
18554
18555 rm -f conf$$ conf$$.exe conf$$.file
18556 if test -d conf$$.dir; then
18557 rm -f conf$$.dir/conf$$.file
18558 else
18559 rm -f conf$$.dir
18560 mkdir conf$$.dir 2>/dev/null
18561 fi
18562 if (echo >conf$$.file) 2>/dev/null; then
18563 if ln -s conf$$.file conf$$ 2>/dev/null; then
18564 as_ln_s='ln -s'
18565 # ... but there are two gotchas:
18566 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18567 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18568 # In both cases, we have to default to `cp -pR'.
18569 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18570 as_ln_s='cp -pR'
18571 elif ln conf$$.file conf$$ 2>/dev/null; then
18572 as_ln_s=ln
18573 else
18574 as_ln_s='cp -pR'
18575 fi
18576 else
18577 as_ln_s='cp -pR'
18578 fi
18579 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18580 rmdir conf$$.dir 2>/dev/null
18581
18582
18583 # as_fn_mkdir_p
18584 # -------------
18585 # Create "$as_dir" as a directory, including parents if necessary.
18586 as_fn_mkdir_p ()
18587 {
18588
18589 case $as_dir in #(
18590 -*) as_dir=./$as_dir;;
18591 esac
18592 test -d "$as_dir" || eval $as_mkdir_p || {
18593 as_dirs=
18594 while :; do
18595 case $as_dir in #(
18596 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18597 *) as_qdir=$as_dir;;
18598 esac
18599 as_dirs="'$as_qdir' $as_dirs"
18600 as_dir=`$as_dirname -- "$as_dir" ||
18601 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18602 X"$as_dir" : 'X\(//\)[^/]' \| \
18603 X"$as_dir" : 'X\(//\)$' \| \
18604 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18605 $as_echo X"$as_dir" |
18606 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18607 s//\1/
18608 q
18609 }
18610 /^X\(\/\/\)[^/].*/{
18611 s//\1/
18612 q
18613 }
18614 /^X\(\/\/\)$/{
18615 s//\1/
18616 q
18617 }
18618 /^X\(\/\).*/{
18619 s//\1/
18620 q
18621 }
18622 s/.*/./; q'`
18623 test -d "$as_dir" && break
18624 done
18625 test -z "$as_dirs" || eval "mkdir $as_dirs"
18626 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18627
18628
18629 } # as_fn_mkdir_p
18630 if mkdir -p . 2>/dev/null; then
18631 as_mkdir_p='mkdir -p "$as_dir"'
18632 else
18633 test -d ./-p && rmdir ./-p
18634 as_mkdir_p=false
18635 fi
18636
18637
18638 # as_fn_executable_p FILE
18639 # -----------------------
18640 # Test if FILE is an executable regular file.
18641 as_fn_executable_p ()
18642 {
18643 test -f "$1" && test -x "$1"
18644 } # as_fn_executable_p
18645 as_test_x='test -x'
18646 as_executable_p=as_fn_executable_p
18647
18648 # Sed expression to map a string onto a valid CPP name.
18649 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18650
18651 # Sed expression to map a string onto a valid variable name.
18652 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18653
18654
18655 exec 6>&1
18656 ## ----------------------------------- ##
18657 ## Main body of $CONFIG_STATUS script. ##
18658 ## ----------------------------------- ##
18659 _ASEOF
18660 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18661
18662 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18663 # Save the log message, to keep $0 and so on meaningful, and to
18664 # report actual input values of CONFIG_FILES etc. instead of their
18665 # values after options handling.
18666 ac_log="
18667 This file was extended by libpaf $as_me 0.3.0, which was
18668 generated by GNU Autoconf 2.69. Invocation command line was
18669
18670 CONFIG_FILES = $CONFIG_FILES
18671 CONFIG_HEADERS = $CONFIG_HEADERS
18672 CONFIG_LINKS = $CONFIG_LINKS
18673 CONFIG_COMMANDS = $CONFIG_COMMANDS
18674 $ $0 $@
18675
18676 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18677 "
18678
18679 _ACEOF
18680
18681 case $ac_config_files in *"
18682 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18683 esac
18684
18685 case $ac_config_headers in *"
18686 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18687 esac
18688
18689
18690 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18691 # Files that config.status was made for.
18692 config_files="$ac_config_files"
18693 config_headers="$ac_config_headers"
18694 config_commands="$ac_config_commands"
18695
18696 _ACEOF
18697
18698 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18699 ac_cs_usage="\
18700 \`$as_me' instantiates files and other configuration actions
18701 from templates according to the current configuration. Unless the files
18702 and actions are specified as TAGs, all are instantiated by default.
18703
18704 Usage: $0 [OPTION]... [TAG]...
18705
18706 -h, --help print this help, then exit
18707 -V, --version print version number and configuration settings, then exit
18708 --config print configuration, then exit
18709 -q, --quiet, --silent
18710 do not print progress messages
18711 -d, --debug don't remove temporary files
18712 --recheck update $as_me by reconfiguring in the same conditions
18713 --file=FILE[:TEMPLATE]
18714 instantiate the configuration file FILE
18715 --header=FILE[:TEMPLATE]
18716 instantiate the configuration header FILE
18717
18718 Configuration files:
18719 $config_files
18720
18721 Configuration headers:
18722 $config_headers
18723
18724 Configuration commands:
18725 $config_commands
18726
18727 Report bugs to <[email protected] [email protected] [email protected]>."
18728
18729 _ACEOF
18730 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18731 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18732 ac_cs_version="\\
18733 libpaf config.status 0.3.0
18734 configured by $0, generated by GNU Autoconf 2.69,
18735 with options \\"\$ac_cs_config\\"
18736
18737 Copyright (C) 2012 Free Software Foundation, Inc.
18738 This config.status script is free software; the Free Software Foundation
18739 gives unlimited permission to copy, distribute and modify it."
18740
18741 ac_pwd='$ac_pwd'
18742 srcdir='$srcdir'
18743 INSTALL='$INSTALL'
18744 MKDIR_P='$MKDIR_P'
18745 AWK='$AWK'
18746 test -n "\$AWK" || AWK=awk
18747 _ACEOF
18748
18749 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18750 # The default lists apply if the user does not specify any file.
18751 ac_need_defaults=:
18752 while test $# != 0
18753 do
18754 case $1 in
18755 --*=?*)
18756 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18757 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18758 ac_shift=:
18759 ;;
18760 --*=)
18761 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18762 ac_optarg=
18763 ac_shift=:
18764 ;;
18765 *)
18766 ac_option=$1
18767 ac_optarg=$2
18768 ac_shift=shift
18769 ;;
18770 esac
18771
18772 case $ac_option in
18773 # Handling of the options.
18774 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18775 ac_cs_recheck=: ;;
18776 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18777 $as_echo "$ac_cs_version"; exit ;;
18778 --config | --confi | --conf | --con | --co | --c )
18779 $as_echo "$ac_cs_config"; exit ;;
18780 --debug | --debu | --deb | --de | --d | -d )
18781 debug=: ;;
18782 --file | --fil | --fi | --f )
18783 $ac_shift
18784 case $ac_optarg in
18785 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18786 '') as_fn_error $? "missing file argument" ;;
18787 esac
18788 as_fn_append CONFIG_FILES " '$ac_optarg'"
18789 ac_need_defaults=false;;
18790 --header | --heade | --head | --hea )
18791 $ac_shift
18792 case $ac_optarg in
18793 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18794 esac
18795 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18796 ac_need_defaults=false;;
18797 --he | --h)
18798 # Conflict between --help and --header
18799 as_fn_error $? "ambiguous option: \`$1'
18800 Try \`$0 --help' for more information.";;
18801 --help | --hel | -h )
18802 $as_echo "$ac_cs_usage"; exit ;;
18803 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18804 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18805 ac_cs_silent=: ;;
18806
18807 # This is an error.
18808 -*) as_fn_error $? "unrecognized option: \`$1'
18809 Try \`$0 --help' for more information." ;;
18810
18811 *) as_fn_append ac_config_targets " $1"
18812 ac_need_defaults=false ;;
18813
18814 esac
18815 shift
18816 done
18817
18818 ac_configure_extra_args=
18819
18820 if $ac_cs_silent; then
18821 exec 6>/dev/null
18822 ac_configure_extra_args="$ac_configure_extra_args --silent"
18823 fi
18824
18825 _ACEOF
18826 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18827 if \$ac_cs_recheck; then
18828 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18829 shift
18830 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18831 CONFIG_SHELL='$SHELL'
18832 export CONFIG_SHELL
18833 exec "\$@"
18834 fi
18835
18836 _ACEOF
18837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18838 exec 5>>config.log
18839 {
18840 echo
18841 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18842 ## Running $as_me. ##
18843 _ASBOX
18844 $as_echo "$ac_log"
18845 } >&5
18846
18847 _ACEOF
18848 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18849 #
18850 # INIT-COMMANDS
18851 #
18852 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18853
18854
18855 # The HP-UX ksh and POSIX shell print the target directory to stdout
18856 # if CDPATH is set.
18857 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18858
18859 sed_quote_subst='$sed_quote_subst'
18860 double_quote_subst='$double_quote_subst'
18861 delay_variable_subst='$delay_variable_subst'
18862 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18863 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18864 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18865 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18866 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18867 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18868 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18869 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18870 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18871 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18872 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18873 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18874 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18875 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18876 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18877 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18878 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18879 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18880 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18881 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18882 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18883 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18884 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18885 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18886 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18887 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18888 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18889 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18890 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18891 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18892 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18893 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18894 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18895 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18896 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18897 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18898 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18899 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18900 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18901 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18902 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18903 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18904 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18905 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18906 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18907 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18908 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18909 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18910 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18911 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18912 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18913 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18914 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18915 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18916 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18917 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18918 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18919 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18920 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"`'
18921 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18922 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18923 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18924 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18925 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18926 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18927 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18928 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18929 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18930 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18931 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18932 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18933 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18934 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18935 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18936 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18937 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18938 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18939 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18940 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18941 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18942 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18943 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18944 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18945 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18946 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18947 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18948 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18949 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18950 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18951 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18952 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18953 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18954 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18955 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18956 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18957 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18958 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18959 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18960 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18961 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18962 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18963 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18964 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18965 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18966 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18967 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18968 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18969 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18970 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18971 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18972 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18973 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18974 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18975 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18976 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18977 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18978 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18979 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18980 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18981 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18982 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18983 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18984 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18985 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18986 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18987 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18988 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18989 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18990 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18991 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18992 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18993 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18994 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18995 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18996 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18997 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18998 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18999 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19000 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19001 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19002 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19003 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19004 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19005 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19006 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19007 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19008 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19009 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19010 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19011 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19012 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19013 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19014 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19015 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19016 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19017 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19018 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19019 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19020 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19021 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19022 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19023 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19024 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19025 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19026 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19027 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19028 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19029 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19030 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19031 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19032 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19033 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19034 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19035 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19036 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19037 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19038 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19039 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19040 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19041 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19042 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19043 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19044 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19045 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19046 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19047 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19048 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19049 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19050 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19051
19052 LTCC='$LTCC'
19053 LTCFLAGS='$LTCFLAGS'
19054 compiler='$compiler_DEFAULT'
19055
19056 # A function that is used when there is no print builtin or printf.
19057 func_fallback_echo ()
19058 {
19059 eval 'cat <<_LTECHO_EOF
19060 \$1
19061 _LTECHO_EOF'
19062 }
19063
19064 # Quote evaled strings.
19065 for var in SHELL \
19066 ECHO \
19067 PATH_SEPARATOR \
19068 SED \
19069 GREP \
19070 EGREP \
19071 FGREP \
19072 LD \
19073 NM \
19074 LN_S \
19075 lt_SP2NL \
19076 lt_NL2SP \
19077 reload_flag \
19078 OBJDUMP \
19079 deplibs_check_method \
19080 file_magic_cmd \
19081 file_magic_glob \
19082 want_nocaseglob \
19083 DLLTOOL \
19084 sharedlib_from_linklib_cmd \
19085 AR \
19086 AR_FLAGS \
19087 archiver_list_spec \
19088 STRIP \
19089 RANLIB \
19090 CC \
19091 CFLAGS \
19092 compiler \
19093 lt_cv_sys_global_symbol_pipe \
19094 lt_cv_sys_global_symbol_to_cdecl \
19095 lt_cv_sys_global_symbol_to_import \
19096 lt_cv_sys_global_symbol_to_c_name_address \
19097 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19098 lt_cv_nm_interface \
19099 nm_file_list_spec \
19100 lt_cv_truncate_bin \
19101 lt_prog_compiler_no_builtin_flag \
19102 lt_prog_compiler_pic \
19103 lt_prog_compiler_wl \
19104 lt_prog_compiler_static \
19105 lt_cv_prog_compiler_c_o \
19106 need_locks \
19107 MANIFEST_TOOL \
19108 DSYMUTIL \
19109 NMEDIT \
19110 LIPO \
19111 OTOOL \
19112 OTOOL64 \
19113 shrext_cmds \
19114 export_dynamic_flag_spec \
19115 whole_archive_flag_spec \
19116 compiler_needs_object \
19117 with_gnu_ld \
19118 allow_undefined_flag \
19119 no_undefined_flag \
19120 hardcode_libdir_flag_spec \
19121 hardcode_libdir_separator \
19122 exclude_expsyms \
19123 include_expsyms \
19124 file_list_spec \
19125 variables_saved_for_relink \
19126 libname_spec \
19127 library_names_spec \
19128 soname_spec \
19129 install_override_mode \
19130 finish_eval \
19131 old_striplib \
19132 striplib \
19133 compiler_lib_search_dirs \
19134 predep_objects \
19135 postdep_objects \
19136 predeps \
19137 postdeps \
19138 compiler_lib_search_path \
19139 LD_CXX \
19140 reload_flag_CXX \
19141 compiler_CXX \
19142 lt_prog_compiler_no_builtin_flag_CXX \
19143 lt_prog_compiler_pic_CXX \
19144 lt_prog_compiler_wl_CXX \
19145 lt_prog_compiler_static_CXX \
19146 lt_cv_prog_compiler_c_o_CXX \
19147 export_dynamic_flag_spec_CXX \
19148 whole_archive_flag_spec_CXX \
19149 compiler_needs_object_CXX \
19150 with_gnu_ld_CXX \
19151 allow_undefined_flag_CXX \
19152 no_undefined_flag_CXX \
19153 hardcode_libdir_flag_spec_CXX \
19154 hardcode_libdir_separator_CXX \
19155 exclude_expsyms_CXX \
19156 include_expsyms_CXX \
19157 file_list_spec_CXX \
19158 compiler_lib_search_dirs_CXX \
19159 predep_objects_CXX \
19160 postdep_objects_CXX \
19161 predeps_CXX \
19162 postdeps_CXX \
19163 compiler_lib_search_path_CXX; do
19164 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19165 *[\\\\\\\`\\"\\\$]*)
19166 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19167 ;;
19168 *)
19169 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19170 ;;
19171 esac
19172 done
19173
19174 # Double-quote double-evaled strings.
19175 for var in reload_cmds \
19176 old_postinstall_cmds \
19177 old_postuninstall_cmds \
19178 old_archive_cmds \
19179 extract_expsyms_cmds \
19180 old_archive_from_new_cmds \
19181 old_archive_from_expsyms_cmds \
19182 archive_cmds \
19183 archive_expsym_cmds \
19184 module_cmds \
19185 module_expsym_cmds \
19186 export_symbols_cmds \
19187 prelink_cmds \
19188 postlink_cmds \
19189 postinstall_cmds \
19190 postuninstall_cmds \
19191 finish_cmds \
19192 sys_lib_search_path_spec \
19193 configure_time_dlsearch_path \
19194 configure_time_lt_sys_library_path \
19195 reload_cmds_CXX \
19196 old_archive_cmds_CXX \
19197 old_archive_from_new_cmds_CXX \
19198 old_archive_from_expsyms_cmds_CXX \
19199 archive_cmds_CXX \
19200 archive_expsym_cmds_CXX \
19201 module_cmds_CXX \
19202 module_expsym_cmds_CXX \
19203 export_symbols_cmds_CXX \
19204 prelink_cmds_CXX \
19205 postlink_cmds_CXX; do
19206 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19207 *[\\\\\\\`\\"\\\$]*)
19208 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19209 ;;
19210 *)
19211 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19212 ;;
19213 esac
19214 done
19215
19216 ac_aux_dir='$ac_aux_dir'
19217
19218 # See if we are running on zsh, and set the options that allow our
19219 # commands through without removal of \ escapes INIT.
19220 if test -n "\${ZSH_VERSION+set}"; then
19221 setopt NO_GLOB_SUBST
19222 fi
19223
19224
19225 PACKAGE='$PACKAGE'
19226 VERSION='$VERSION'
19227 RM='$RM'
19228 ofile='$ofile'
19229
19230
19231
19232
19233
19234
19235 _ACEOF
19236
19237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19238
19239 # Handling of arguments.
19240 for ac_config_target in $ac_config_targets
19241 do
19242 case $ac_config_target in
19243 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19244 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19245 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19246 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19247 "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
19248 "ebb/Makefile") CONFIG_FILES="$CONFIG_FILES ebb/Makefile" ;;
19249 "dsc/Makefile") CONFIG_FILES="$CONFIG_FILES dsc/Makefile" ;;
19250 "tb/Makefile") CONFIG_FILES="$CONFIG_FILES tb/Makefile" ;;
19251 "ppr/Makefile") CONFIG_FILES="$CONFIG_FILES ppr/Makefile" ;;
19252
19253 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19254 esac
19255 done
19256
19257
19258 # If the user did not use the arguments to specify the items to instantiate,
19259 # then the envvar interface is used. Set only those that are not.
19260 # We use the long form for the default assignment because of an extremely
19261 # bizarre bug on SunOS 4.1.3.
19262 if $ac_need_defaults; then
19263 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19264 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19265 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19266 fi
19267
19268 # Have a temporary directory for convenience. Make it in the build tree
19269 # simply because there is no reason against having it here, and in addition,
19270 # creating and moving files from /tmp can sometimes cause problems.
19271 # Hook for its removal unless debugging.
19272 # Note that there is a small window in which the directory will not be cleaned:
19273 # after its creation but before its name has been assigned to `$tmp'.
19274 $debug ||
19275 {
19276 tmp= ac_tmp=
19277 trap 'exit_status=$?
19278 : "${ac_tmp:=$tmp}"
19279 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19280 ' 0
19281 trap 'as_fn_exit 1' 1 2 13 15
19282 }
19283 # Create a (secure) tmp directory for tmp files.
19284
19285 {
19286 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19287 test -d "$tmp"
19288 } ||
19289 {
19290 tmp=./conf$$-$RANDOM
19291 (umask 077 && mkdir "$tmp")
19292 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19293 ac_tmp=$tmp
19294
19295 # Set up the scripts for CONFIG_FILES section.
19296 # No need to generate them if there are no CONFIG_FILES.
19297 # This happens for instance with `./config.status config.h'.
19298 if test -n "$CONFIG_FILES"; then
19299
19300
19301 ac_cr=`echo X | tr X '\015'`
19302 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19303 # But we know of no other shell where ac_cr would be empty at this
19304 # point, so we can use a bashism as a fallback.
19305 if test "x$ac_cr" = x; then
19306 eval ac_cr=\$\'\\r\'
19307 fi
19308 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19309 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19310 ac_cs_awk_cr='\\r'
19311 else
19312 ac_cs_awk_cr=$ac_cr
19313 fi
19314
19315 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19316 _ACEOF
19317
19318
19319 {
19320 echo "cat >conf$$subs.awk <<_ACEOF" &&
19321 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19322 echo "_ACEOF"
19323 } >conf$$subs.sh ||
19324 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19325 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19326 ac_delim='%!_!# '
19327 for ac_last_try in false false false false false :; do
19328 . ./conf$$subs.sh ||
19329 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19330
19331 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19332 if test $ac_delim_n = $ac_delim_num; then
19333 break
19334 elif $ac_last_try; then
19335 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19336 else
19337 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19338 fi
19339 done
19340 rm -f conf$$subs.sh
19341
19342 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19343 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19344 _ACEOF
19345 sed -n '
19346 h
19347 s/^/S["/; s/!.*/"]=/
19348 p
19349 g
19350 s/^[^!]*!//
19351 :repl
19352 t repl
19353 s/'"$ac_delim"'$//
19354 t delim
19355 :nl
19356 h
19357 s/\(.\{148\}\)..*/\1/
19358 t more1
19359 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19360 p
19361 n
19362 b repl
19363 :more1
19364 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19365 p
19366 g
19367 s/.\{148\}//
19368 t nl
19369 :delim
19370 h
19371 s/\(.\{148\}\)..*/\1/
19372 t more2
19373 s/["\\]/\\&/g; s/^/"/; s/$/"/
19374 p
19375 b
19376 :more2
19377 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19378 p
19379 g
19380 s/.\{148\}//
19381 t delim
19382 ' <conf$$subs.awk | sed '
19383 /^[^""]/{
19384 N
19385 s/\n//
19386 }
19387 ' >>$CONFIG_STATUS || ac_write_fail=1
19388 rm -f conf$$subs.awk
19389 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19390 _ACAWK
19391 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19392 for (key in S) S_is_set[key] = 1
19393 FS = ""
19394
19395 }
19396 {
19397 line = $ 0
19398 nfields = split(line, field, "@")
19399 substed = 0
19400 len = length(field[1])
19401 for (i = 2; i < nfields; i++) {
19402 key = field[i]
19403 keylen = length(key)
19404 if (S_is_set[key]) {
19405 value = S[key]
19406 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19407 len += length(value) + length(field[++i])
19408 substed = 1
19409 } else
19410 len += 1 + keylen
19411 }
19412
19413 print line
19414 }
19415
19416 _ACAWK
19417 _ACEOF
19418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19419 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19420 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19421 else
19422 cat
19423 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19424 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19425 _ACEOF
19426
19427 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19428 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19429 # trailing colons and then remove the whole line if VPATH becomes empty
19430 # (actually we leave an empty line to preserve line numbers).
19431 if test "x$srcdir" = x.; then
19432 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19433 h
19434 s///
19435 s/^/:/
19436 s/[ ]*$/:/
19437 s/:\$(srcdir):/:/g
19438 s/:\${srcdir}:/:/g
19439 s/:@srcdir@:/:/g
19440 s/^:*//
19441 s/:*$//
19442 x
19443 s/\(=[ ]*\).*/\1/
19444 G
19445 s/\n//
19446 s/^[^=]*=[ ]*$//
19447 }'
19448 fi
19449
19450 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19451 fi # test -n "$CONFIG_FILES"
19452
19453 # Set up the scripts for CONFIG_HEADERS section.
19454 # No need to generate them if there are no CONFIG_HEADERS.
19455 # This happens for instance with `./config.status Makefile'.
19456 if test -n "$CONFIG_HEADERS"; then
19457 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19458 BEGIN {
19459 _ACEOF
19460
19461 # Transform confdefs.h into an awk script `defines.awk', embedded as
19462 # here-document in config.status, that substitutes the proper values into
19463 # config.h.in to produce config.h.
19464
19465 # Create a delimiter string that does not exist in confdefs.h, to ease
19466 # handling of long lines.
19467 ac_delim='%!_!# '
19468 for ac_last_try in false false :; do
19469 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19470 if test -z "$ac_tt"; then
19471 break
19472 elif $ac_last_try; then
19473 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19474 else
19475 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19476 fi
19477 done
19478
19479 # For the awk script, D is an array of macro values keyed by name,
19480 # likewise P contains macro parameters if any. Preserve backslash
19481 # newline sequences.
19482
19483 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19484 sed -n '
19485 s/.\{148\}/&'"$ac_delim"'/g
19486 t rset
19487 :rset
19488 s/^[ ]*#[ ]*define[ ][ ]*/ /
19489 t def
19490 d
19491 :def
19492 s/\\$//
19493 t bsnl
19494 s/["\\]/\\&/g
19495 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19496 D["\1"]=" \3"/p
19497 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19498 d
19499 :bsnl
19500 s/["\\]/\\&/g
19501 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19502 D["\1"]=" \3\\\\\\n"\\/p
19503 t cont
19504 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19505 t cont
19506 d
19507 :cont
19508 n
19509 s/.\{148\}/&'"$ac_delim"'/g
19510 t clear
19511 :clear
19512 s/\\$//
19513 t bsnlc
19514 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19515 d
19516 :bsnlc
19517 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19518 b cont
19519 ' <confdefs.h | sed '
19520 s/'"$ac_delim"'/"\\\
19521 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19522
19523 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19524 for (key in D) D_is_set[key] = 1
19525 FS = ""
19526 }
19527 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19528 line = \$ 0
19529 split(line, arg, " ")
19530 if (arg[1] == "#") {
19531 defundef = arg[2]
19532 mac1 = arg[3]
19533 } else {
19534 defundef = substr(arg[1], 2)
19535 mac1 = arg[2]
19536 }
19537 split(mac1, mac2, "(") #)
19538 macro = mac2[1]
19539 prefix = substr(line, 1, index(line, defundef) - 1)
19540 if (D_is_set[macro]) {
19541 # Preserve the white space surrounding the "#".
19542 print prefix "define", macro P[macro] D[macro]
19543 next
19544 } else {
19545 # Replace #undef with comments. This is necessary, for example,
19546 # in the case of _POSIX_SOURCE, which is predefined and required
19547 # on some systems where configure will not decide to define it.
19548 if (defundef == "undef") {
19549 print "/*", prefix defundef, macro, "*/"
19550 next
19551 }
19552 }
19553 }
19554 { print }
19555 _ACAWK
19556 _ACEOF
19557 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19558 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19559 fi # test -n "$CONFIG_HEADERS"
19560
19561
19562 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19563 shift
19564 for ac_tag
19565 do
19566 case $ac_tag in
19567 :[FHLC]) ac_mode=$ac_tag; continue;;
19568 esac
19569 case $ac_mode$ac_tag in
19570 :[FHL]*:*);;
19571 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19572 :[FH]-) ac_tag=-:-;;
19573 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19574 esac
19575 ac_save_IFS=$IFS
19576 IFS=:
19577 set x $ac_tag
19578 IFS=$ac_save_IFS
19579 shift
19580 ac_file=$1
19581 shift
19582
19583 case $ac_mode in
19584 :L) ac_source=$1;;
19585 :[FH])
19586 ac_file_inputs=
19587 for ac_f
19588 do
19589 case $ac_f in
19590 -) ac_f="$ac_tmp/stdin";;
19591 *) # Look for the file first in the build tree, then in the source tree
19592 # (if the path is not absolute). The absolute path cannot be DOS-style,
19593 # because $ac_f cannot contain `:'.
19594 test -f "$ac_f" ||
19595 case $ac_f in
19596 [\\/$]*) false;;
19597 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19598 esac ||
19599 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19600 esac
19601 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19602 as_fn_append ac_file_inputs " '$ac_f'"
19603 done
19604
19605 # Let's still pretend it is `configure' which instantiates (i.e., don't
19606 # use $as_me), people would be surprised to read:
19607 # /* config.h. Generated by config.status. */
19608 configure_input='Generated from '`
19609 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19610 `' by configure.'
19611 if test x"$ac_file" != x-; then
19612 configure_input="$ac_file. $configure_input"
19613 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19614 $as_echo "$as_me: creating $ac_file" >&6;}
19615 fi
19616 # Neutralize special characters interpreted by sed in replacement strings.
19617 case $configure_input in #(
19618 *\&* | *\|* | *\\* )
19619 ac_sed_conf_input=`$as_echo "$configure_input" |
19620 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19621 *) ac_sed_conf_input=$configure_input;;
19622 esac
19623
19624 case $ac_tag in
19625 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19626 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19627 esac
19628 ;;
19629 esac
19630
19631 ac_dir=`$as_dirname -- "$ac_file" ||
19632 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19633 X"$ac_file" : 'X\(//\)[^/]' \| \
19634 X"$ac_file" : 'X\(//\)$' \| \
19635 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19636 $as_echo X"$ac_file" |
19637 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19638 s//\1/
19639 q
19640 }
19641 /^X\(\/\/\)[^/].*/{
19642 s//\1/
19643 q
19644 }
19645 /^X\(\/\/\)$/{
19646 s//\1/
19647 q
19648 }
19649 /^X\(\/\).*/{
19650 s//\1/
19651 q
19652 }
19653 s/.*/./; q'`
19654 as_dir="$ac_dir"; as_fn_mkdir_p
19655 ac_builddir=.
19656
19657 case "$ac_dir" in
19658 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19659 *)
19660 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19661 # A ".." for each directory in $ac_dir_suffix.
19662 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19663 case $ac_top_builddir_sub in
19664 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19665 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19666 esac ;;
19667 esac
19668 ac_abs_top_builddir=$ac_pwd
19669 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19670 # for backward compatibility:
19671 ac_top_builddir=$ac_top_build_prefix
19672
19673 case $srcdir in
19674 .) # We are building in place.
19675 ac_srcdir=.
19676 ac_top_srcdir=$ac_top_builddir_sub
19677 ac_abs_top_srcdir=$ac_pwd ;;
19678 [\\/]* | ?:[\\/]* ) # Absolute name.
19679 ac_srcdir=$srcdir$ac_dir_suffix;
19680 ac_top_srcdir=$srcdir
19681 ac_abs_top_srcdir=$srcdir ;;
19682 *) # Relative name.
19683 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19684 ac_top_srcdir=$ac_top_build_prefix$srcdir
19685 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19686 esac
19687 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19688
19689
19690 case $ac_mode in
19691 :F)
19692 #
19693 # CONFIG_FILE
19694 #
19695
19696 case $INSTALL in
19697 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19698 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19699 esac
19700 ac_MKDIR_P=$MKDIR_P
19701 case $MKDIR_P in
19702 [\\/$]* | ?:[\\/]* ) ;;
19703 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19704 esac
19705 _ACEOF
19706
19707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19708 # If the template does not know about datarootdir, expand it.
19709 # FIXME: This hack should be removed a few years after 2.60.
19710 ac_datarootdir_hack=; ac_datarootdir_seen=
19711 ac_sed_dataroot='
19712 /datarootdir/ {
19713 p
19714 q
19715 }
19716 /@datadir@/p
19717 /@docdir@/p
19718 /@infodir@/p
19719 /@localedir@/p
19720 /@mandir@/p'
19721 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19722 *datarootdir*) ac_datarootdir_seen=yes;;
19723 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19725 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19726 _ACEOF
19727 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19728 ac_datarootdir_hack='
19729 s&@datadir@&$datadir&g
19730 s&@docdir@&$docdir&g
19731 s&@infodir@&$infodir&g
19732 s&@localedir@&$localedir&g
19733 s&@mandir@&$mandir&g
19734 s&\\\${datarootdir}&$datarootdir&g' ;;
19735 esac
19736 _ACEOF
19737
19738 # Neutralize VPATH when `$srcdir' = `.'.
19739 # Shell code in configure.ac might set extrasub.
19740 # FIXME: do we really want to maintain this feature?
19741 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19742 ac_sed_extra="$ac_vpsub
19743 $extrasub
19744 _ACEOF
19745 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19746 :t
19747 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19748 s|@configure_input@|$ac_sed_conf_input|;t t
19749 s&@top_builddir@&$ac_top_builddir_sub&;t t
19750 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19751 s&@srcdir@&$ac_srcdir&;t t
19752 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19753 s&@top_srcdir@&$ac_top_srcdir&;t t
19754 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19755 s&@builddir@&$ac_builddir&;t t
19756 s&@abs_builddir@&$ac_abs_builddir&;t t
19757 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19758 s&@INSTALL@&$ac_INSTALL&;t t
19759 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19760 $ac_datarootdir_hack
19761 "
19762 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19763 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19764
19765 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19766 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19767 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19768 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19770 which seems to be undefined. Please make sure it is defined" >&5
19771 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19772 which seems to be undefined. Please make sure it is defined" >&2;}
19773
19774 rm -f "$ac_tmp/stdin"
19775 case $ac_file in
19776 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19777 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19778 esac \
19779 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19780 ;;
19781 :H)
19782 #
19783 # CONFIG_HEADER
19784 #
19785 if test x"$ac_file" != x-; then
19786 {
19787 $as_echo "/* $configure_input */" \
19788 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19789 } >"$ac_tmp/config.h" \
19790 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19791 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19792 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19793 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19794 else
19795 rm -f "$ac_file"
19796 mv "$ac_tmp/config.h" "$ac_file" \
19797 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19798 fi
19799 else
19800 $as_echo "/* $configure_input */" \
19801 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19802 || as_fn_error $? "could not create -" "$LINENO" 5
19803 fi
19804 # Compute "$ac_file"'s index in $config_headers.
19805 _am_arg="$ac_file"
19806 _am_stamp_count=1
19807 for _am_header in $config_headers :; do
19808 case $_am_header in
19809 $_am_arg | $_am_arg:* )
19810 break ;;
19811 * )
19812 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19813 esac
19814 done
19815 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19816 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19817 X"$_am_arg" : 'X\(//\)[^/]' \| \
19818 X"$_am_arg" : 'X\(//\)$' \| \
19819 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19820 $as_echo X"$_am_arg" |
19821 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19822 s//\1/
19823 q
19824 }
19825 /^X\(\/\/\)[^/].*/{
19826 s//\1/
19827 q
19828 }
19829 /^X\(\/\/\)$/{
19830 s//\1/
19831 q
19832 }
19833 /^X\(\/\).*/{
19834 s//\1/
19835 q
19836 }
19837 s/.*/./; q'`/stamp-h$_am_stamp_count
19838 ;;
19839
19840 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19841 $as_echo "$as_me: executing $ac_file commands" >&6;}
19842 ;;
19843 esac
19844
19845
19846 case $ac_file$ac_mode in
19847 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19848 # Older Autoconf quotes --file arguments for eval, but not when files
19849 # are listed without --file. Let's play safe and only enable the eval
19850 # if we detect the quoting.
19851 case $CONFIG_FILES in
19852 *\'*) eval set x "$CONFIG_FILES" ;;
19853 *) set x $CONFIG_FILES ;;
19854 esac
19855 shift
19856 for mf
19857 do
19858 # Strip MF so we end up with the name of the file.
19859 mf=`echo "$mf" | sed -e 's/:.*$//'`
19860 # Check whether this is an Automake generated Makefile or not.
19861 # We used to match only the files named 'Makefile.in', but
19862 # some people rename them; so instead we look at the file content.
19863 # Grep'ing the first line is not enough: some people post-process
19864 # each Makefile.in and add a new line on top of each file to say so.
19865 # Grep'ing the whole file is not good either: AIX grep has a line
19866 # limit of 2048, but all sed's we know have understand at least 4000.
19867 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19868 dirpart=`$as_dirname -- "$mf" ||
19869 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19870 X"$mf" : 'X\(//\)[^/]' \| \
19871 X"$mf" : 'X\(//\)$' \| \
19872 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19873 $as_echo X"$mf" |
19874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19875 s//\1/
19876 q
19877 }
19878 /^X\(\/\/\)[^/].*/{
19879 s//\1/
19880 q
19881 }
19882 /^X\(\/\/\)$/{
19883 s//\1/
19884 q
19885 }
19886 /^X\(\/\).*/{
19887 s//\1/
19888 q
19889 }
19890 s/.*/./; q'`
19891 else
19892 continue
19893 fi
19894 # Extract the definition of DEPDIR, am__include, and am__quote
19895 # from the Makefile without running 'make'.
19896 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19897 test -z "$DEPDIR" && continue
19898 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19899 test -z "$am__include" && continue
19900 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19901 # Find all dependency output files, they are included files with
19902 # $(DEPDIR) in their names. We invoke sed twice because it is the
19903 # simplest approach to changing $(DEPDIR) to its actual value in the
19904 # expansion.
19905 for file in `sed -n "
19906 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19907 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19908 # Make sure the directory exists.
19909 test -f "$dirpart/$file" && continue
19910 fdir=`$as_dirname -- "$file" ||
19911 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19912 X"$file" : 'X\(//\)[^/]' \| \
19913 X"$file" : 'X\(//\)$' \| \
19914 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19915 $as_echo X"$file" |
19916 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19917 s//\1/
19918 q
19919 }
19920 /^X\(\/\/\)[^/].*/{
19921 s//\1/
19922 q
19923 }
19924 /^X\(\/\/\)$/{
19925 s//\1/
19926 q
19927 }
19928 /^X\(\/\).*/{
19929 s//\1/
19930 q
19931 }
19932 s/.*/./; q'`
19933 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19934 # echo "creating $dirpart/$file"
19935 echo '# dummy' > "$dirpart/$file"
19936 done
19937 done
19938 }
19939 ;;
19940 "libtool":C)
19941
19942 # See if we are running on zsh, and set the options that allow our
19943 # commands through without removal of \ escapes.
19944 if test -n "${ZSH_VERSION+set}"; then
19945 setopt NO_GLOB_SUBST
19946 fi
19947
19948 cfgfile=${ofile}T
19949 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19950 $RM "$cfgfile"
19951
19952 cat <<_LT_EOF >> "$cfgfile"
19953 #! $SHELL
19954 # Generated automatically by $as_me ($PACKAGE) $VERSION
19955 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19956 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19957
19958 # Provide generalized library-building support services.
19959 # Written by Gordon Matzigkeit, 1996
19960
19961 # Copyright (C) 2014 Free Software Foundation, Inc.
19962 # This is free software; see the source for copying conditions. There is NO
19963 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19964
19965 # GNU Libtool is free software; you can redistribute it and/or modify
19966 # it under the terms of the GNU General Public License as published by
19967 # the Free Software Foundation; either version 2 of of the License, or
19968 # (at your option) any later version.
19969 #
19970 # As a special exception to the GNU General Public License, if you
19971 # distribute this file as part of a program or library that is built
19972 # using GNU Libtool, you may include this file under the same
19973 # distribution terms that you use for the rest of that program.
19974 #
19975 # GNU Libtool is distributed in the hope that it will be useful, but
19976 # WITHOUT ANY WARRANTY; without even the implied warranty of
19977 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19978 # GNU General Public License for more details.
19979 #
19980 # You should have received a copy of the GNU General Public License
19981 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19982
19983
19984 # The names of the tagged configurations supported by this script.
19985 available_tags='CXX '
19986
19987 # Configured defaults for sys_lib_dlsearch_path munging.
19988 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19989
19990 # ### BEGIN LIBTOOL CONFIG
19991
19992 # Which release of libtool.m4 was used?
19993 macro_version=$macro_version
19994 macro_revision=$macro_revision
19995
19996 # Whether or not to build shared libraries.
19997 build_libtool_libs=$enable_shared
19998
19999 # Whether or not to build static libraries.
20000 build_old_libs=$enable_static
20001
20002 # What type of objects to build.
20003 pic_mode=$pic_mode
20004
20005 # Whether or not to optimize for fast installation.
20006 fast_install=$enable_fast_install
20007
20008 # Shared archive member basename,for filename based shared library versioning on AIX.
20009 shared_archive_member_spec=$shared_archive_member_spec
20010
20011 # Shell to use when invoking shell scripts.
20012 SHELL=$lt_SHELL
20013
20014 # An echo program that protects backslashes.
20015 ECHO=$lt_ECHO
20016
20017 # The PATH separator for the build system.
20018 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20019
20020 # The host system.
20021 host_alias=$host_alias
20022 host=$host
20023 host_os=$host_os
20024
20025 # The build system.
20026 build_alias=$build_alias
20027 build=$build
20028 build_os=$build_os
20029
20030 # A sed program that does not truncate output.
20031 SED=$lt_SED
20032
20033 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20034 Xsed="\$SED -e 1s/^X//"
20035
20036 # A grep program that handles long lines.
20037 GREP=$lt_GREP
20038
20039 # An ERE matcher.
20040 EGREP=$lt_EGREP
20041
20042 # A literal string matcher.
20043 FGREP=$lt_FGREP
20044
20045 # A BSD- or MS-compatible name lister.
20046 NM=$lt_NM
20047
20048 # Whether we need soft or hard links.
20049 LN_S=$lt_LN_S
20050
20051 # What is the maximum length of a command?
20052 max_cmd_len=$max_cmd_len
20053
20054 # Object file suffix (normally "o").
20055 objext=$ac_objext
20056
20057 # Executable file suffix (normally "").
20058 exeext=$exeext
20059
20060 # whether the shell understands "unset".
20061 lt_unset=$lt_unset
20062
20063 # turn spaces into newlines.
20064 SP2NL=$lt_lt_SP2NL
20065
20066 # turn newlines into spaces.
20067 NL2SP=$lt_lt_NL2SP
20068
20069 # convert \$build file names to \$host format.
20070 to_host_file_cmd=$lt_cv_to_host_file_cmd
20071
20072 # convert \$build files to toolchain format.
20073 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20074
20075 # An object symbol dumper.
20076 OBJDUMP=$lt_OBJDUMP
20077
20078 # Method to check whether dependent libraries are shared objects.
20079 deplibs_check_method=$lt_deplibs_check_method
20080
20081 # Command to use when deplibs_check_method = "file_magic".
20082 file_magic_cmd=$lt_file_magic_cmd
20083
20084 # How to find potential files when deplibs_check_method = "file_magic".
20085 file_magic_glob=$lt_file_magic_glob
20086
20087 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20088 want_nocaseglob=$lt_want_nocaseglob
20089
20090 # DLL creation program.
20091 DLLTOOL=$lt_DLLTOOL
20092
20093 # Command to associate shared and link libraries.
20094 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20095
20096 # The archiver.
20097 AR=$lt_AR
20098
20099 # Flags to create an archive.
20100 AR_FLAGS=$lt_AR_FLAGS
20101
20102 # How to feed a file listing to the archiver.
20103 archiver_list_spec=$lt_archiver_list_spec
20104
20105 # A symbol stripping program.
20106 STRIP=$lt_STRIP
20107
20108 # Commands used to install an old-style archive.
20109 RANLIB=$lt_RANLIB
20110 old_postinstall_cmds=$lt_old_postinstall_cmds
20111 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20112
20113 # Whether to use a lock for old archive extraction.
20114 lock_old_archive_extraction=$lock_old_archive_extraction
20115
20116 # A C compiler.
20117 LTCC=$lt_CC
20118
20119 # LTCC compiler flags.
20120 LTCFLAGS=$lt_CFLAGS
20121
20122 # Take the output of nm and produce a listing of raw symbols and C names.
20123 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20124
20125 # Transform the output of nm in a proper C declaration.
20126 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20127
20128 # Transform the output of nm into a list of symbols to manually relocate.
20129 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20130
20131 # Transform the output of nm in a C name address pair.
20132 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20133
20134 # Transform the output of nm in a C name address pair when lib prefix is needed.
20135 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20136
20137 # The name lister interface.
20138 nm_interface=$lt_lt_cv_nm_interface
20139
20140 # Specify filename containing input files for \$NM.
20141 nm_file_list_spec=$lt_nm_file_list_spec
20142
20143 # The root where to search for dependent libraries,and where our libraries should be installed.
20144 lt_sysroot=$lt_sysroot
20145
20146 # Command to truncate a binary pipe.
20147 lt_truncate_bin=$lt_lt_cv_truncate_bin
20148
20149 # The name of the directory that contains temporary libtool files.
20150 objdir=$objdir
20151
20152 # Used to examine libraries when file_magic_cmd begins with "file".
20153 MAGIC_CMD=$MAGIC_CMD
20154
20155 # Must we lock files when doing compilation?
20156 need_locks=$lt_need_locks
20157
20158 # Manifest tool.
20159 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20160
20161 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20162 DSYMUTIL=$lt_DSYMUTIL
20163
20164 # Tool to change global to local symbols on Mac OS X.
20165 NMEDIT=$lt_NMEDIT
20166
20167 # Tool to manipulate fat objects and archives on Mac OS X.
20168 LIPO=$lt_LIPO
20169
20170 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20171 OTOOL=$lt_OTOOL
20172
20173 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20174 OTOOL64=$lt_OTOOL64
20175
20176 # Old archive suffix (normally "a").
20177 libext=$libext
20178
20179 # Shared library suffix (normally ".so").
20180 shrext_cmds=$lt_shrext_cmds
20181
20182 # The commands to extract the exported symbol list from a shared archive.
20183 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20184
20185 # Variables whose values should be saved in libtool wrapper scripts and
20186 # restored at link time.
20187 variables_saved_for_relink=$lt_variables_saved_for_relink
20188
20189 # Do we need the "lib" prefix for modules?
20190 need_lib_prefix=$need_lib_prefix
20191
20192 # Do we need a version for libraries?
20193 need_version=$need_version
20194
20195 # Library versioning type.
20196 version_type=$version_type
20197
20198 # Shared library runtime path variable.
20199 runpath_var=$runpath_var
20200
20201 # Shared library path variable.
20202 shlibpath_var=$shlibpath_var
20203
20204 # Is shlibpath searched before the hard-coded library search path?
20205 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20206
20207 # Format of library name prefix.
20208 libname_spec=$lt_libname_spec
20209
20210 # List of archive names. First name is the real one, the rest are links.
20211 # The last name is the one that the linker finds with -lNAME
20212 library_names_spec=$lt_library_names_spec
20213
20214 # The coded name of the library, if different from the real name.
20215 soname_spec=$lt_soname_spec
20216
20217 # Permission mode override for installation of shared libraries.
20218 install_override_mode=$lt_install_override_mode
20219
20220 # Command to use after installation of a shared archive.
20221 postinstall_cmds=$lt_postinstall_cmds
20222
20223 # Command to use after uninstallation of a shared archive.
20224 postuninstall_cmds=$lt_postuninstall_cmds
20225
20226 # Commands used to finish a libtool library installation in a directory.
20227 finish_cmds=$lt_finish_cmds
20228
20229 # As "finish_cmds", except a single script fragment to be evaled but
20230 # not shown.
20231 finish_eval=$lt_finish_eval
20232
20233 # Whether we should hardcode library paths into libraries.
20234 hardcode_into_libs=$hardcode_into_libs
20235
20236 # Compile-time system search path for libraries.
20237 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20238
20239 # Detected run-time system search path for libraries.
20240 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20241
20242 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20243 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20244
20245 # Whether dlopen is supported.
20246 dlopen_support=$enable_dlopen
20247
20248 # Whether dlopen of programs is supported.
20249 dlopen_self=$enable_dlopen_self
20250
20251 # Whether dlopen of statically linked programs is supported.
20252 dlopen_self_static=$enable_dlopen_self_static
20253
20254 # Commands to strip libraries.
20255 old_striplib=$lt_old_striplib
20256 striplib=$lt_striplib
20257
20258
20259 # The linker used to build libraries.
20260 LD=$lt_LD
20261
20262 # How to create reloadable object files.
20263 reload_flag=$lt_reload_flag
20264 reload_cmds=$lt_reload_cmds
20265
20266 # Commands used to build an old-style archive.
20267 old_archive_cmds=$lt_old_archive_cmds
20268
20269 # A language specific compiler.
20270 CC=$lt_compiler
20271
20272 # Is the compiler the GNU compiler?
20273 with_gcc=$GCC
20274
20275 # Compiler flag to turn off builtin functions.
20276 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20277
20278 # Additional compiler flags for building library objects.
20279 pic_flag=$lt_lt_prog_compiler_pic
20280
20281 # How to pass a linker flag through the compiler.
20282 wl=$lt_lt_prog_compiler_wl
20283
20284 # Compiler flag to prevent dynamic linking.
20285 link_static_flag=$lt_lt_prog_compiler_static
20286
20287 # Does compiler simultaneously support -c and -o options?
20288 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20289
20290 # Whether or not to add -lc for building shared libraries.
20291 build_libtool_need_lc=$archive_cmds_need_lc
20292
20293 # Whether or not to disallow shared libs when runtime libs are static.
20294 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20295
20296 # Compiler flag to allow reflexive dlopens.
20297 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20298
20299 # Compiler flag to generate shared objects directly from archives.
20300 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20301
20302 # Whether the compiler copes with passing no objects directly.
20303 compiler_needs_object=$lt_compiler_needs_object
20304
20305 # Create an old-style archive from a shared archive.
20306 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20307
20308 # Create a temporary old-style archive to link instead of a shared archive.
20309 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20310
20311 # Commands used to build a shared archive.
20312 archive_cmds=$lt_archive_cmds
20313 archive_expsym_cmds=$lt_archive_expsym_cmds
20314
20315 # Commands used to build a loadable module if different from building
20316 # a shared archive.
20317 module_cmds=$lt_module_cmds
20318 module_expsym_cmds=$lt_module_expsym_cmds
20319
20320 # Whether we are building with GNU ld or not.
20321 with_gnu_ld=$lt_with_gnu_ld
20322
20323 # Flag that allows shared libraries with undefined symbols to be built.
20324 allow_undefined_flag=$lt_allow_undefined_flag
20325
20326 # Flag that enforces no undefined symbols.
20327 no_undefined_flag=$lt_no_undefined_flag
20328
20329 # Flag to hardcode \$libdir into a binary during linking.
20330 # This must work even if \$libdir does not exist
20331 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20332
20333 # Whether we need a single "-rpath" flag with a separated argument.
20334 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20335
20336 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20337 # DIR into the resulting binary.
20338 hardcode_direct=$hardcode_direct
20339
20340 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20341 # DIR into the resulting binary and the resulting library dependency is
20342 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
20343 # library is relocated.
20344 hardcode_direct_absolute=$hardcode_direct_absolute
20345
20346 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20347 # into the resulting binary.
20348 hardcode_minus_L=$hardcode_minus_L
20349
20350 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20351 # into the resulting binary.
20352 hardcode_shlibpath_var=$hardcode_shlibpath_var
20353
20354 # Set to "yes" if building a shared library automatically hardcodes DIR
20355 # into the library and all subsequent libraries and executables linked
20356 # against it.
20357 hardcode_automatic=$hardcode_automatic
20358
20359 # Set to yes if linker adds runtime paths of dependent libraries
20360 # to runtime path list.
20361 inherit_rpath=$inherit_rpath
20362
20363 # Whether libtool must link a program against all its dependency libraries.
20364 link_all_deplibs=$link_all_deplibs
20365
20366 # Set to "yes" if exported symbols are required.
20367 always_export_symbols=$always_export_symbols
20368
20369 # The commands to list exported symbols.
20370 export_symbols_cmds=$lt_export_symbols_cmds
20371
20372 # Symbols that should not be listed in the preloaded symbols.
20373 exclude_expsyms=$lt_exclude_expsyms
20374
20375 # Symbols that must always be exported.
20376 include_expsyms=$lt_include_expsyms
20377
20378 # Commands necessary for linking programs (against libraries) with templates.
20379 prelink_cmds=$lt_prelink_cmds
20380
20381 # Commands necessary for finishing linking programs.
20382 postlink_cmds=$lt_postlink_cmds
20383
20384 # Specify filename containing input files.
20385 file_list_spec=$lt_file_list_spec
20386
20387 # How to hardcode a shared library path into an executable.
20388 hardcode_action=$hardcode_action
20389
20390 # The directories searched by this compiler when creating a shared library.
20391 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20392
20393 # Dependencies to place before and after the objects being linked to
20394 # create a shared library.
20395 predep_objects=$lt_predep_objects
20396 postdep_objects=$lt_postdep_objects
20397 predeps=$lt_predeps
20398 postdeps=$lt_postdeps
20399
20400 # The library search path used internally by the compiler when linking
20401 # a shared library.
20402 compiler_lib_search_path=$lt_compiler_lib_search_path
20403
20404 # ### END LIBTOOL CONFIG
20405
20406 _LT_EOF
20407
20408 cat <<'_LT_EOF' >> "$cfgfile"
20409
20410 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20411
20412 # func_munge_path_list VARIABLE PATH
20413 # -----------------------------------
20414 # VARIABLE is name of variable containing _space_ separated list of
20415 # directories to be munged by the contents of PATH, which is string
20416 # having a format:
20417 # "DIR[:DIR]:"
20418 # string "DIR[ DIR]" will be prepended to VARIABLE
20419 # ":DIR[:DIR]"
20420 # string "DIR[ DIR]" will be appended to VARIABLE
20421 # "DIRP[:DIRP]::[DIRA:]DIRA"
20422 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20423 # "DIRA[ DIRA]" will be appended to VARIABLE
20424 # "DIR[:DIR]"
20425 # VARIABLE will be replaced by "DIR[ DIR]"
20426 func_munge_path_list ()
20427 {
20428 case x$2 in
20429 x)
20430 ;;
20431 *:)
20432 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20433 ;;
20434 x:*)
20435 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20436 ;;
20437 *::*)
20438 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20439 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20440 ;;
20441 *)
20442 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20443 ;;
20444 esac
20445 }
20446
20447
20448 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
20449 func_cc_basename ()
20450 {
20451 for cc_temp in $*""; do
20452 case $cc_temp in
20453 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20454 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20455 \-*) ;;
20456 *) break;;
20457 esac
20458 done
20459 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20460 }
20461
20462
20463 # ### END FUNCTIONS SHARED WITH CONFIGURE
20464
20465 _LT_EOF
20466
20467 case $host_os in
20468 aix3*)
20469 cat <<\_LT_EOF >> "$cfgfile"
20470 # AIX sometimes has problems with the GCC collect2 program. For some
20471 # reason, if we set the COLLECT_NAMES environment variable, the problems
20472 # vanish in a puff of smoke.
20473 if test set != "${COLLECT_NAMES+set}"; then
20474 COLLECT_NAMES=
20475 export COLLECT_NAMES
20476 fi
20477 _LT_EOF
20478 ;;
20479 esac
20480
20481
20482 ltmain=$ac_aux_dir/ltmain.sh
20483
20484
20485 # We use sed instead of cat because bash on DJGPP gets confused if
20486 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20487 # text mode, it properly converts lines to CR/LF. This bash problem
20488 # is reportedly fixed, but why not run on old versions too?
20489 sed '$q' "$ltmain" >> "$cfgfile" \
20490 || (rm -f "$cfgfile"; exit 1)
20491
20492 mv -f "$cfgfile" "$ofile" ||
20493 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20494 chmod +x "$ofile"
20495
20496
20497 cat <<_LT_EOF >> "$ofile"
20498
20499 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20500
20501 # The linker used to build libraries.
20502 LD=$lt_LD_CXX
20503
20504 # How to create reloadable object files.
20505 reload_flag=$lt_reload_flag_CXX
20506 reload_cmds=$lt_reload_cmds_CXX
20507
20508 # Commands used to build an old-style archive.
20509 old_archive_cmds=$lt_old_archive_cmds_CXX
20510
20511 # A language specific compiler.
20512 CC=$lt_compiler_CXX
20513
20514 # Is the compiler the GNU compiler?
20515 with_gcc=$GCC_CXX
20516
20517 # Compiler flag to turn off builtin functions.
20518 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20519
20520 # Additional compiler flags for building library objects.
20521 pic_flag=$lt_lt_prog_compiler_pic_CXX
20522
20523 # How to pass a linker flag through the compiler.
20524 wl=$lt_lt_prog_compiler_wl_CXX
20525
20526 # Compiler flag to prevent dynamic linking.
20527 link_static_flag=$lt_lt_prog_compiler_static_CXX
20528
20529 # Does compiler simultaneously support -c and -o options?
20530 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20531
20532 # Whether or not to add -lc for building shared libraries.
20533 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20534
20535 # Whether or not to disallow shared libs when runtime libs are static.
20536 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20537
20538 # Compiler flag to allow reflexive dlopens.
20539 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20540
20541 # Compiler flag to generate shared objects directly from archives.
20542 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20543
20544 # Whether the compiler copes with passing no objects directly.
20545 compiler_needs_object=$lt_compiler_needs_object_CXX
20546
20547 # Create an old-style archive from a shared archive.
20548 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20549
20550 # Create a temporary old-style archive to link instead of a shared archive.
20551 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20552
20553 # Commands used to build a shared archive.
20554 archive_cmds=$lt_archive_cmds_CXX
20555 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20556
20557 # Commands used to build a loadable module if different from building
20558 # a shared archive.
20559 module_cmds=$lt_module_cmds_CXX
20560 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20561
20562 # Whether we are building with GNU ld or not.
20563 with_gnu_ld=$lt_with_gnu_ld_CXX
20564
20565 # Flag that allows shared libraries with undefined symbols to be built.
20566 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20567
20568 # Flag that enforces no undefined symbols.
20569 no_undefined_flag=$lt_no_undefined_flag_CXX
20570
20571 # Flag to hardcode \$libdir into a binary during linking.
20572 # This must work even if \$libdir does not exist
20573 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20574
20575 # Whether we need a single "-rpath" flag with a separated argument.
20576 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20577
20578 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20579 # DIR into the resulting binary.
20580 hardcode_direct=$hardcode_direct_CXX
20581
20582 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20583 # DIR into the resulting binary and the resulting library dependency is
20584 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
20585 # library is relocated.
20586 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20587
20588 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20589 # into the resulting binary.
20590 hardcode_minus_L=$hardcode_minus_L_CXX
20591
20592 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20593 # into the resulting binary.
20594 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20595
20596 # Set to "yes" if building a shared library automatically hardcodes DIR
20597 # into the library and all subsequent libraries and executables linked
20598 # against it.
20599 hardcode_automatic=$hardcode_automatic_CXX
20600
20601 # Set to yes if linker adds runtime paths of dependent libraries
20602 # to runtime path list.
20603 inherit_rpath=$inherit_rpath_CXX
20604
20605 # Whether libtool must link a program against all its dependency libraries.
20606 link_all_deplibs=$link_all_deplibs_CXX
20607
20608 # Set to "yes" if exported symbols are required.
20609 always_export_symbols=$always_export_symbols_CXX
20610
20611 # The commands to list exported symbols.
20612 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20613
20614 # Symbols that should not be listed in the preloaded symbols.
20615 exclude_expsyms=$lt_exclude_expsyms_CXX
20616
20617 # Symbols that must always be exported.
20618 include_expsyms=$lt_include_expsyms_CXX
20619
20620 # Commands necessary for linking programs (against libraries) with templates.
20621 prelink_cmds=$lt_prelink_cmds_CXX
20622
20623 # Commands necessary for finishing linking programs.
20624 postlink_cmds=$lt_postlink_cmds_CXX
20625
20626 # Specify filename containing input files.
20627 file_list_spec=$lt_file_list_spec_CXX
20628
20629 # How to hardcode a shared library path into an executable.
20630 hardcode_action=$hardcode_action_CXX
20631
20632 # The directories searched by this compiler when creating a shared library.
20633 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20634
20635 # Dependencies to place before and after the objects being linked to
20636 # create a shared library.
20637 predep_objects=$lt_predep_objects_CXX
20638 postdep_objects=$lt_postdep_objects_CXX
20639 predeps=$lt_predeps_CXX
20640 postdeps=$lt_postdeps_CXX
20641
20642 # The library search path used internally by the compiler when linking
20643 # a shared library.
20644 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20645
20646 # ### END LIBTOOL TAG CONFIG: CXX
20647 _LT_EOF
20648
20649 ;;
20650
20651 esac
20652 done # for ac_tag
20653
20654
20655 as_fn_exit 0
20656 _ACEOF
20657 ac_clean_files=$ac_clean_files_save
20658
20659 test $ac_write_fail = 0 ||
20660 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20661
20662
20663 # configure is writing to config.log, and then calls config.status.
20664 # config.status does its own redirection, appending to config.log.
20665 # Unfortunately, on DOS this fails, as config.log is still kept open
20666 # by configure, so config.status won't be able to write to it; its
20667 # output is simply discarded. So we exec the FD to /dev/null,
20668 # effectively closing config.log, so it can be properly (re)opened and
20669 # appended to by config.status. When coming back to configure, we
20670 # need to make the FD available again.
20671 if test "$no_create" != yes; then
20672 ac_cs_success=:
20673 ac_config_status_args=
20674 test "$silent" = yes &&
20675 ac_config_status_args="$ac_config_status_args --quiet"
20676 exec 5>/dev/null
20677 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20678 exec 5>>config.log
20679 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20680 # would make configure fail if this is the last instruction.
20681 $ac_cs_success || as_fn_exit 1
20682 fi
20683 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20685 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20686 fi
20687