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 hesiod 3.2.1.
4 #
5 # Report bugs to <[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
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || 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 [email protected]
278 $0: about your system, including any error possibly output
279 $0: before this message. Then install a modern shell, or
280 $0: manually run the script under such a shell if you do
281 $0: have one."
282 fi
283 exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520 *)
521 ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='hesiod'
592 PACKAGE_TARNAME='hesiod'
593 PACKAGE_VERSION='3.2.1'
594 PACKAGE_STRING='hesiod 3.2.1'
595 PACKAGE_BUGREPORT='[email protected]'
596 PACKAGE_URL=''
597
598 ac_unique_file="src/lib/hesiod.h"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 SUPPORTING_LIBS
640 CXXCPP
641 OTOOL64
642 OTOOL
643 LIPO
644 NMEDIT
645 DSYMUTIL
646 MANIFEST_TOOL
647 RANLIB
648 DLLTOOL
649 OBJDUMP
650 NM
651 ac_ct_DUMPBIN
652 DUMPBIN
653 LD
654 FGREP
655 EGREP
656 GREP
657 SED
658 host_os
659 host_vendor
660 host_cpu
661 host
662 build_os
663 build_vendor
664 build_cpu
665 build
666 LIBTOOL
667 ac_ct_AR
668 AR
669 LN_S
670 CPP
671 am__fastdepCXX_FALSE
672 am__fastdepCXX_TRUE
673 CXXDEPMODE
674 ac_ct_CXX
675 CXXFLAGS
676 CXX
677 am__fastdepCC_FALSE
678 am__fastdepCC_TRUE
679 CCDEPMODE
680 am__nodep
681 AMDEPBACKSLASH
682 AMDEP_FALSE
683 AMDEP_TRUE
684 am__quote
685 am__include
686 DEPDIR
687 OBJEXT
688 EXEEXT
689 ac_ct_CC
690 CPPFLAGS
691 LDFLAGS
692 CFLAGS
693 CC
694 AM_BACKSLASH
695 AM_DEFAULT_VERBOSITY
696 AM_DEFAULT_V
697 AM_V
698 MAINT
699 MAINTAINER_MODE_FALSE
700 MAINTAINER_MODE_TRUE
701 am__untar
702 am__tar
703 AMTAR
704 am__leading_dot
705 SET_MAKE
706 AWK
707 mkdir_p
708 MKDIR_P
709 INSTALL_STRIP_PROGRAM
710 STRIP
711 install_sh
712 MAKEINFO
713 AUTOHEADER
714 AUTOMAKE
715 AUTOCONF
716 ACLOCAL
717 VERSION
718 PACKAGE
719 CYGPATH_W
720 am__isrc
721 INSTALL_DATA
722 INSTALL_SCRIPT
723 INSTALL_PROGRAM
724 target_alias
725 host_alias
726 build_alias
727 LIBS
728 ECHO_T
729 ECHO_N
730 ECHO_C
731 DEFS
732 mandir
733 localedir
734 libdir
735 psdir
736 pdfdir
737 dvidir
738 htmldir
739 infodir
740 docdir
741 oldincludedir
742 includedir
743 localstatedir
744 sharedstatedir
745 sysconfdir
746 datadir
747 datarootdir
748 libexecdir
749 sbindir
750 bindir
751 program_transform_name
752 prefix
753 exec_prefix
754 PACKAGE_URL
755 PACKAGE_BUGREPORT
756 PACKAGE_STRING
757 PACKAGE_VERSION
758 PACKAGE_TARNAME
759 PACKAGE_NAME
760 PATH_SEPARATOR
761 SHELL'
762 ac_subst_files=''
763 ac_user_opts='
764 enable_option_checking
765 enable_maintainer_mode
766 enable_silent_rules
767 enable_dependency_tracking
768 enable_shared
769 enable_static
770 with_pic
771 enable_fast_install
772 with_gnu_ld
773 with_sysroot
774 enable_libtool_lock
775 with_libidn
776 '
777 ac_precious_vars='build_alias
778 host_alias
779 target_alias
780 CC
781 CFLAGS
782 LDFLAGS
783 LIBS
784 CPPFLAGS
785 CXX
786 CXXFLAGS
787 CCC
788 CPP
789 CXXCPP'
790
791
792 # Initialize some variables set by options.
793 ac_init_help=
794 ac_init_version=false
795 ac_unrecognized_opts=
796 ac_unrecognized_sep=
797 # The variables have the same names as the options, with
798 # dashes changed to underlines.
799 cache_file=/dev/null
800 exec_prefix=NONE
801 no_create=
802 no_recursion=
803 prefix=NONE
804 program_prefix=NONE
805 program_suffix=NONE
806 program_transform_name=s,x,x,
807 silent=
808 site=
809 srcdir=
810 verbose=
811 x_includes=NONE
812 x_libraries=NONE
813
814 # Installation directory options.
815 # These are left unexpanded so users can "make install exec_prefix=/foo"
816 # and all the variables that are supposed to be based on exec_prefix
817 # by default will actually change.
818 # Use braces instead of parens because sh, perl, etc. also accept them.
819 # (The list follows the same order as the GNU Coding Standards.)
820 bindir='${exec_prefix}/bin'
821 sbindir='${exec_prefix}/sbin'
822 libexecdir='${exec_prefix}/libexec'
823 datarootdir='${prefix}/share'
824 datadir='${datarootdir}'
825 sysconfdir='${prefix}/etc'
826 sharedstatedir='${prefix}/com'
827 localstatedir='${prefix}/var'
828 includedir='${prefix}/include'
829 oldincludedir='/usr/include'
830 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
831 infodir='${datarootdir}/info'
832 htmldir='${docdir}'
833 dvidir='${docdir}'
834 pdfdir='${docdir}'
835 psdir='${docdir}'
836 libdir='${exec_prefix}/lib'
837 localedir='${datarootdir}/locale'
838 mandir='${datarootdir}/man'
839
840 ac_prev=
841 ac_dashdash=
842 for ac_option
843 do
844 # If the previous option needs an argument, assign it.
845 if test -n "$ac_prev"; then
846 eval $ac_prev=\$ac_option
847 ac_prev=
848 continue
849 fi
850
851 case $ac_option in
852 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
853 *=) ac_optarg= ;;
854 *) ac_optarg=yes ;;
855 esac
856
857 # Accept the important Cygnus configure options, so we can diagnose typos.
858
859 case $ac_dashdash$ac_option in
860 --)
861 ac_dashdash=yes ;;
862
863 -bindir | --bindir | --bindi | --bind | --bin | --bi)
864 ac_prev=bindir ;;
865 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
866 bindir=$ac_optarg ;;
867
868 -build | --build | --buil | --bui | --bu)
869 ac_prev=build_alias ;;
870 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
871 build_alias=$ac_optarg ;;
872
873 -cache-file | --cache-file | --cache-fil | --cache-fi \
874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875 ac_prev=cache_file ;;
876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
878 cache_file=$ac_optarg ;;
879
880 --config-cache | -C)
881 cache_file=config.cache ;;
882
883 -datadir | --datadir | --datadi | --datad)
884 ac_prev=datadir ;;
885 -datadir=* | --datadir=* | --datadi=* | --datad=*)
886 datadir=$ac_optarg ;;
887
888 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889 | --dataroo | --dataro | --datar)
890 ac_prev=datarootdir ;;
891 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893 datarootdir=$ac_optarg ;;
894
895 -disable-* | --disable-*)
896 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899 as_fn_error $? "invalid feature name: $ac_useropt"
900 ac_useropt_orig=$ac_useropt
901 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902 case $ac_user_opts in
903 *"
904 "enable_$ac_useropt"
905 "*) ;;
906 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
907 ac_unrecognized_sep=', ';;
908 esac
909 eval enable_$ac_useropt=no ;;
910
911 -docdir | --docdir | --docdi | --doc | --do)
912 ac_prev=docdir ;;
913 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
914 docdir=$ac_optarg ;;
915
916 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
917 ac_prev=dvidir ;;
918 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
919 dvidir=$ac_optarg ;;
920
921 -enable-* | --enable-*)
922 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925 as_fn_error $? "invalid feature name: $ac_useropt"
926 ac_useropt_orig=$ac_useropt
927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
929 *"
930 "enable_$ac_useropt"
931 "*) ;;
932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
933 ac_unrecognized_sep=', ';;
934 esac
935 eval enable_$ac_useropt=\$ac_optarg ;;
936
937 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
938 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
939 | --exec | --exe | --ex)
940 ac_prev=exec_prefix ;;
941 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
942 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
943 | --exec=* | --exe=* | --ex=*)
944 exec_prefix=$ac_optarg ;;
945
946 -gas | --gas | --ga | --g)
947 # Obsolete; use --with-gas.
948 with_gas=yes ;;
949
950 -help | --help | --hel | --he | -h)
951 ac_init_help=long ;;
952 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
953 ac_init_help=recursive ;;
954 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
955 ac_init_help=short ;;
956
957 -host | --host | --hos | --ho)
958 ac_prev=host_alias ;;
959 -host=* | --host=* | --hos=* | --ho=*)
960 host_alias=$ac_optarg ;;
961
962 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
963 ac_prev=htmldir ;;
964 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
965 | --ht=*)
966 htmldir=$ac_optarg ;;
967
968 -includedir | --includedir | --includedi | --included | --include \
969 | --includ | --inclu | --incl | --inc)
970 ac_prev=includedir ;;
971 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
972 | --includ=* | --inclu=* | --incl=* | --inc=*)
973 includedir=$ac_optarg ;;
974
975 -infodir | --infodir | --infodi | --infod | --info | --inf)
976 ac_prev=infodir ;;
977 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
978 infodir=$ac_optarg ;;
979
980 -libdir | --libdir | --libdi | --libd)
981 ac_prev=libdir ;;
982 -libdir=* | --libdir=* | --libdi=* | --libd=*)
983 libdir=$ac_optarg ;;
984
985 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
986 | --libexe | --libex | --libe)
987 ac_prev=libexecdir ;;
988 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
989 | --libexe=* | --libex=* | --libe=*)
990 libexecdir=$ac_optarg ;;
991
992 -localedir | --localedir | --localedi | --localed | --locale)
993 ac_prev=localedir ;;
994 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
995 localedir=$ac_optarg ;;
996
997 -localstatedir | --localstatedir | --localstatedi | --localstated \
998 | --localstate | --localstat | --localsta | --localst | --locals)
999 ac_prev=localstatedir ;;
1000 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1001 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1002 localstatedir=$ac_optarg ;;
1003
1004 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1005 ac_prev=mandir ;;
1006 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1007 mandir=$ac_optarg ;;
1008
1009 -nfp | --nfp | --nf)
1010 # Obsolete; use --without-fp.
1011 with_fp=no ;;
1012
1013 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1014 | --no-cr | --no-c | -n)
1015 no_create=yes ;;
1016
1017 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1018 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1019 no_recursion=yes ;;
1020
1021 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1022 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1023 | --oldin | --oldi | --old | --ol | --o)
1024 ac_prev=oldincludedir ;;
1025 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1026 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1027 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1028 oldincludedir=$ac_optarg ;;
1029
1030 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1031 ac_prev=prefix ;;
1032 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1033 prefix=$ac_optarg ;;
1034
1035 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1036 | --program-pre | --program-pr | --program-p)
1037 ac_prev=program_prefix ;;
1038 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1039 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1040 program_prefix=$ac_optarg ;;
1041
1042 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1043 | --program-suf | --program-su | --program-s)
1044 ac_prev=program_suffix ;;
1045 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1046 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1047 program_suffix=$ac_optarg ;;
1048
1049 -program-transform-name | --program-transform-name \
1050 | --program-transform-nam | --program-transform-na \
1051 | --program-transform-n | --program-transform- \
1052 | --program-transform | --program-transfor \
1053 | --program-transfo | --program-transf \
1054 | --program-trans | --program-tran \
1055 | --progr-tra | --program-tr | --program-t)
1056 ac_prev=program_transform_name ;;
1057 -program-transform-name=* | --program-transform-name=* \
1058 | --program-transform-nam=* | --program-transform-na=* \
1059 | --program-transform-n=* | --program-transform-=* \
1060 | --program-transform=* | --program-transfor=* \
1061 | --program-transfo=* | --program-transf=* \
1062 | --program-trans=* | --program-tran=* \
1063 | --progr-tra=* | --program-tr=* | --program-t=*)
1064 program_transform_name=$ac_optarg ;;
1065
1066 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1067 ac_prev=pdfdir ;;
1068 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1069 pdfdir=$ac_optarg ;;
1070
1071 -psdir | --psdir | --psdi | --psd | --ps)
1072 ac_prev=psdir ;;
1073 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1074 psdir=$ac_optarg ;;
1075
1076 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1077 | -silent | --silent | --silen | --sile | --sil)
1078 silent=yes ;;
1079
1080 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1081 ac_prev=sbindir ;;
1082 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1083 | --sbi=* | --sb=*)
1084 sbindir=$ac_optarg ;;
1085
1086 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1087 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1088 | --sharedst | --shareds | --shared | --share | --shar \
1089 | --sha | --sh)
1090 ac_prev=sharedstatedir ;;
1091 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1092 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1093 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1094 | --sha=* | --sh=*)
1095 sharedstatedir=$ac_optarg ;;
1096
1097 -site | --site | --sit)
1098 ac_prev=site ;;
1099 -site=* | --site=* | --sit=*)
1100 site=$ac_optarg ;;
1101
1102 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1103 ac_prev=srcdir ;;
1104 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1105 srcdir=$ac_optarg ;;
1106
1107 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1108 | --syscon | --sysco | --sysc | --sys | --sy)
1109 ac_prev=sysconfdir ;;
1110 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1111 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1112 sysconfdir=$ac_optarg ;;
1113
1114 -target | --target | --targe | --targ | --tar | --ta | --t)
1115 ac_prev=target_alias ;;
1116 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1117 target_alias=$ac_optarg ;;
1118
1119 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1120 verbose=yes ;;
1121
1122 -version | --version | --versio | --versi | --vers | -V)
1123 ac_init_version=: ;;
1124
1125 -with-* | --with-*)
1126 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1127 # Reject names that are not valid shell variable names.
1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129 as_fn_error $? "invalid package name: $ac_useropt"
1130 ac_useropt_orig=$ac_useropt
1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132 case $ac_user_opts in
1133 *"
1134 "with_$ac_useropt"
1135 "*) ;;
1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1137 ac_unrecognized_sep=', ';;
1138 esac
1139 eval with_$ac_useropt=\$ac_optarg ;;
1140
1141 -without-* | --without-*)
1142 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145 as_fn_error $? "invalid package name: $ac_useropt"
1146 ac_useropt_orig=$ac_useropt
1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148 case $ac_user_opts in
1149 *"
1150 "with_$ac_useropt"
1151 "*) ;;
1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1153 ac_unrecognized_sep=', ';;
1154 esac
1155 eval with_$ac_useropt=no ;;
1156
1157 --x)
1158 # Obsolete; use --with-x.
1159 with_x=yes ;;
1160
1161 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162 | --x-incl | --x-inc | --x-in | --x-i)
1163 ac_prev=x_includes ;;
1164 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166 x_includes=$ac_optarg ;;
1167
1168 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170 ac_prev=x_libraries ;;
1171 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173 x_libraries=$ac_optarg ;;
1174
1175 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1176 Try \`$0 --help' for more information"
1177 ;;
1178
1179 *=*)
1180 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181 # Reject names that are not valid shell variable names.
1182 case $ac_envvar in #(
1183 '' | [0-9]* | *[!_$as_cr_alnum]* )
1184 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1185 esac
1186 eval $ac_envvar=\$ac_optarg
1187 export $ac_envvar ;;
1188
1189 *)
1190 # FIXME: should be removed in autoconf 3.0.
1191 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1193 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1194 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1195 ;;
1196
1197 esac
1198 done
1199
1200 if test -n "$ac_prev"; then
1201 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1202 as_fn_error $? "missing argument to $ac_option"
1203 fi
1204
1205 if test -n "$ac_unrecognized_opts"; then
1206 case $enable_option_checking in
1207 no) ;;
1208 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1209 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1210 esac
1211 fi
1212
1213 # Check all directory arguments for consistency.
1214 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1215 datadir sysconfdir sharedstatedir localstatedir includedir \
1216 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1217 libdir localedir mandir
1218 do
1219 eval ac_val=\$$ac_var
1220 # Remove trailing slashes.
1221 case $ac_val in
1222 */ )
1223 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1224 eval $ac_var=\$ac_val;;
1225 esac
1226 # Be sure to have absolute directory names.
1227 case $ac_val in
1228 [\\/$]* | ?:[\\/]* ) continue;;
1229 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1230 esac
1231 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1232 done
1233
1234 # There might be people who depend on the old broken behavior: `$host'
1235 # used to hold the argument of --host etc.
1236 # FIXME: To remove some day.
1237 build=$build_alias
1238 host=$host_alias
1239 target=$target_alias
1240
1241 # FIXME: To remove some day.
1242 if test "x$host_alias" != x; then
1243 if test "x$build_alias" = x; then
1244 cross_compiling=maybe
1245 elif test "x$build_alias" != "x$host_alias"; then
1246 cross_compiling=yes
1247 fi
1248 fi
1249
1250 ac_tool_prefix=
1251 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1252
1253 test "$silent" = yes && exec 6>/dev/null
1254
1255
1256 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1257 ac_ls_di=`ls -di .` &&
1258 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1259 as_fn_error $? "working directory cannot be determined"
1260 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1261 as_fn_error $? "pwd does not report name of working directory"
1262
1263
1264 # Find the source files, if location was not specified.
1265 if test -z "$srcdir"; then
1266 ac_srcdir_defaulted=yes
1267 # Try the directory containing this script, then the parent directory.
1268 ac_confdir=`$as_dirname -- "$as_myself" ||
1269 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270 X"$as_myself" : 'X\(//\)[^/]' \| \
1271 X"$as_myself" : 'X\(//\)$' \| \
1272 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1273 $as_echo X"$as_myself" |
1274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275 s//\1/
1276 q
1277 }
1278 /^X\(\/\/\)[^/].*/{
1279 s//\1/
1280 q
1281 }
1282 /^X\(\/\/\)$/{
1283 s//\1/
1284 q
1285 }
1286 /^X\(\/\).*/{
1287 s//\1/
1288 q
1289 }
1290 s/.*/./; q'`
1291 srcdir=$ac_confdir
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1293 srcdir=..
1294 fi
1295 else
1296 ac_srcdir_defaulted=no
1297 fi
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1299 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1300 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1301 fi
1302 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1303 ac_abs_confdir=`(
1304 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1305 pwd)`
1306 # When building in place, set srcdir=.
1307 if test "$ac_abs_confdir" = "$ac_pwd"; then
1308 srcdir=.
1309 fi
1310 # Remove unnecessary trailing slashes from srcdir.
1311 # Double slashes in file names in object file debugging info
1312 # mess up M-x gdb in Emacs.
1313 case $srcdir in
1314 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1315 esac
1316 for ac_var in $ac_precious_vars; do
1317 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1318 eval ac_env_${ac_var}_value=\$${ac_var}
1319 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1321 done
1322
1323 #
1324 # Report the --help message.
1325 #
1326 if test "$ac_init_help" = "long"; then
1327 # Omit some internal or obsolete options to make the list less imposing.
1328 # This message is too long to be a string in the A/UX 3.1 sh.
1329 cat <<_ACEOF
1330 \`configure' configures hesiod 3.2.1 to adapt to many kinds of systems.
1331
1332 Usage: $0 [OPTION]... [VAR=VALUE]...
1333
1334 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1335 VAR=VALUE. See below for descriptions of some of the useful variables.
1336
1337 Defaults for the options are specified in brackets.
1338
1339 Configuration:
1340 -h, --help display this help and exit
1341 --help=short display options specific to this package
1342 --help=recursive display the short help of all the included packages
1343 -V, --version display version information and exit
1344 -q, --quiet, --silent do not print \`checking ...' messages
1345 --cache-file=FILE cache test results in FILE [disabled]
1346 -C, --config-cache alias for \`--cache-file=config.cache'
1347 -n, --no-create do not create output files
1348 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1349
1350 Installation directories:
1351 --prefix=PREFIX install architecture-independent files in PREFIX
1352 [$ac_default_prefix]
1353 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1354 [PREFIX]
1355
1356 By default, \`make install' will install all the files in
1357 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1358 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1359 for instance \`--prefix=\$HOME'.
1360
1361 For better control, use the options below.
1362
1363 Fine tuning of the installation directories:
1364 --bindir=DIR user executables [EPREFIX/bin]
1365 --sbindir=DIR system admin executables [EPREFIX/sbin]
1366 --libexecdir=DIR program executables [EPREFIX/libexec]
1367 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1368 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1369 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1370 --libdir=DIR object code libraries [EPREFIX/lib]
1371 --includedir=DIR C header files [PREFIX/include]
1372 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1373 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1374 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1375 --infodir=DIR info documentation [DATAROOTDIR/info]
1376 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1377 --mandir=DIR man documentation [DATAROOTDIR/man]
1378 --docdir=DIR documentation root [DATAROOTDIR/doc/hesiod]
1379 --htmldir=DIR html documentation [DOCDIR]
1380 --dvidir=DIR dvi documentation [DOCDIR]
1381 --pdfdir=DIR pdf documentation [DOCDIR]
1382 --psdir=DIR ps documentation [DOCDIR]
1383 _ACEOF
1384
1385 cat <<\_ACEOF
1386
1387 Program names:
1388 --program-prefix=PREFIX prepend PREFIX to installed program names
1389 --program-suffix=SUFFIX append SUFFIX to installed program names
1390 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1391
1392 System types:
1393 --build=BUILD configure for building on BUILD [guessed]
1394 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1395 _ACEOF
1396 fi
1397
1398 if test -n "$ac_init_help"; then
1399 case $ac_init_help in
1400 short | recursive ) echo "Configuration of hesiod 3.2.1:";;
1401 esac
1402 cat <<\_ACEOF
1403
1404 Optional Features:
1405 --disable-option-checking ignore unrecognized --enable/--with options
1406 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1407 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1408 --disable-maintainer-mode disable make rules and dependencies not useful
1409 (and sometimes confusing) to the casual installer
1410 --enable-silent-rules less verbose build output (undo: `make V=1')
1411 --disable-silent-rules verbose build output (undo: `make V=0')
1412 --disable-dependency-tracking speeds up one-time build
1413 --enable-dependency-tracking do not reject slow dependency extractors
1414 --enable-shared[=PKGS] build shared libraries [default=yes]
1415 --enable-static[=PKGS] build static libraries [default=yes]
1416 --enable-fast-install[=PKGS]
1417 optimize for fast installation [default=yes]
1418 --disable-libtool-lock avoid locking (might break parallel builds)
1419
1420 Optional Packages:
1421 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1422 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1423 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1424 both]
1425 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1426 --with-sysroot=DIR Search for dependent libraries within DIR
1427 (or the compiler's sysroot if not specified).
1428 --with-libidn Support IDN (needs GNU libidn) [check]
1429
1430 Some influential environment variables:
1431 CC C compiler command
1432 CFLAGS C compiler flags
1433 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1434 nonstandard directory <lib dir>
1435 LIBS libraries to pass to the linker, e.g. -l<library>
1436 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1437 you have headers in a nonstandard directory <include dir>
1438 CXX C++ compiler command
1439 CXXFLAGS C++ compiler flags
1440 CPP C preprocessor
1441 CXXCPP C++ preprocessor
1442
1443 Use these variables to override the choices made by `configure' or to help
1444 it to find libraries and programs with nonstandard names/locations.
1445
1446 Report bugs to <[email protected]>.
1447 _ACEOF
1448 ac_status=$?
1449 fi
1450
1451 if test "$ac_init_help" = "recursive"; then
1452 # If there are subdirs, report their specific --help.
1453 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1454 test -d "$ac_dir" ||
1455 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1456 continue
1457 ac_builddir=.
1458
1459 case "$ac_dir" in
1460 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1461 *)
1462 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1463 # A ".." for each directory in $ac_dir_suffix.
1464 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1465 case $ac_top_builddir_sub in
1466 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1467 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1468 esac ;;
1469 esac
1470 ac_abs_top_builddir=$ac_pwd
1471 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1472 # for backward compatibility:
1473 ac_top_builddir=$ac_top_build_prefix
1474
1475 case $srcdir in
1476 .) # We are building in place.
1477 ac_srcdir=.
1478 ac_top_srcdir=$ac_top_builddir_sub
1479 ac_abs_top_srcdir=$ac_pwd ;;
1480 [\\/]* | ?:[\\/]* ) # Absolute name.
1481 ac_srcdir=$srcdir$ac_dir_suffix;
1482 ac_top_srcdir=$srcdir
1483 ac_abs_top_srcdir=$srcdir ;;
1484 *) # Relative name.
1485 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1486 ac_top_srcdir=$ac_top_build_prefix$srcdir
1487 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1488 esac
1489 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1490
1491 cd "$ac_dir" || { ac_status=$?; continue; }
1492 # Check for guested configure.
1493 if test -f "$ac_srcdir/configure.gnu"; then
1494 echo &&
1495 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1496 elif test -f "$ac_srcdir/configure"; then
1497 echo &&
1498 $SHELL "$ac_srcdir/configure" --help=recursive
1499 else
1500 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1501 fi || ac_status=$?
1502 cd "$ac_pwd" || { ac_status=$?; break; }
1503 done
1504 fi
1505
1506 test -n "$ac_init_help" && exit $ac_status
1507 if $ac_init_version; then
1508 cat <<\_ACEOF
1509 hesiod configure 3.2.1
1510 generated by GNU Autoconf 2.69
1511
1512 Copyright (C) 2012 Free Software Foundation, Inc.
1513 This configure script is free software; the Free Software Foundation
1514 gives unlimited permission to copy, distribute and modify it.
1515 _ACEOF
1516 exit
1517 fi
1518
1519 ## ------------------------ ##
1520 ## Autoconf initialization. ##
1521 ## ------------------------ ##
1522
1523 # ac_fn_c_try_compile LINENO
1524 # --------------------------
1525 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1526 ac_fn_c_try_compile ()
1527 {
1528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1529 rm -f conftest.$ac_objext
1530 if { { ac_try="$ac_compile"
1531 case "(($ac_try" in
1532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1533 *) ac_try_echo=$ac_try;;
1534 esac
1535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1536 $as_echo "$ac_try_echo"; } >&5
1537 (eval "$ac_compile") 2>conftest.err
1538 ac_status=$?
1539 if test -s conftest.err; then
1540 grep -v '^ *+' conftest.err >conftest.er1
1541 cat conftest.er1 >&5
1542 mv -f conftest.er1 conftest.err
1543 fi
1544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1545 test $ac_status = 0; } && {
1546 test -z "$ac_c_werror_flag" ||
1547 test ! -s conftest.err
1548 } && test -s conftest.$ac_objext; then :
1549 ac_retval=0
1550 else
1551 $as_echo "$as_me: failed program was:" >&5
1552 sed 's/^/| /' conftest.$ac_ext >&5
1553
1554 ac_retval=1
1555 fi
1556 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1557 as_fn_set_status $ac_retval
1558
1559 } # ac_fn_c_try_compile
1560
1561 # ac_fn_cxx_try_compile LINENO
1562 # ----------------------------
1563 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1564 ac_fn_cxx_try_compile ()
1565 {
1566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567 rm -f conftest.$ac_objext
1568 if { { ac_try="$ac_compile"
1569 case "(($ac_try" in
1570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1571 *) ac_try_echo=$ac_try;;
1572 esac
1573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1574 $as_echo "$ac_try_echo"; } >&5
1575 (eval "$ac_compile") 2>conftest.err
1576 ac_status=$?
1577 if test -s conftest.err; then
1578 grep -v '^ *+' conftest.err >conftest.er1
1579 cat conftest.er1 >&5
1580 mv -f conftest.er1 conftest.err
1581 fi
1582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1583 test $ac_status = 0; } && {
1584 test -z "$ac_cxx_werror_flag" ||
1585 test ! -s conftest.err
1586 } && test -s conftest.$ac_objext; then :
1587 ac_retval=0
1588 else
1589 $as_echo "$as_me: failed program was:" >&5
1590 sed 's/^/| /' conftest.$ac_ext >&5
1591
1592 ac_retval=1
1593 fi
1594 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1595 as_fn_set_status $ac_retval
1596
1597 } # ac_fn_cxx_try_compile
1598
1599 # ac_fn_c_try_cpp LINENO
1600 # ----------------------
1601 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1602 ac_fn_c_try_cpp ()
1603 {
1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605 if { { ac_try="$ac_cpp conftest.$ac_ext"
1606 case "(($ac_try" in
1607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1608 *) ac_try_echo=$ac_try;;
1609 esac
1610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611 $as_echo "$ac_try_echo"; } >&5
1612 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1613 ac_status=$?
1614 if test -s conftest.err; then
1615 grep -v '^ *+' conftest.err >conftest.er1
1616 cat conftest.er1 >&5
1617 mv -f conftest.er1 conftest.err
1618 fi
1619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1620 test $ac_status = 0; } > conftest.i && {
1621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1622 test ! -s conftest.err
1623 }; then :
1624 ac_retval=0
1625 else
1626 $as_echo "$as_me: failed program was:" >&5
1627 sed 's/^/| /' conftest.$ac_ext >&5
1628
1629 ac_retval=1
1630 fi
1631 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1632 as_fn_set_status $ac_retval
1633
1634 } # ac_fn_c_try_cpp
1635
1636 # ac_fn_c_try_link LINENO
1637 # -----------------------
1638 # Try to link conftest.$ac_ext, and return whether this succeeded.
1639 ac_fn_c_try_link ()
1640 {
1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 rm -f conftest.$ac_objext conftest$ac_exeext
1643 if { { ac_try="$ac_link"
1644 case "(($ac_try" in
1645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646 *) ac_try_echo=$ac_try;;
1647 esac
1648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649 $as_echo "$ac_try_echo"; } >&5
1650 (eval "$ac_link") 2>conftest.err
1651 ac_status=$?
1652 if test -s conftest.err; then
1653 grep -v '^ *+' conftest.err >conftest.er1
1654 cat conftest.er1 >&5
1655 mv -f conftest.er1 conftest.err
1656 fi
1657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658 test $ac_status = 0; } && {
1659 test -z "$ac_c_werror_flag" ||
1660 test ! -s conftest.err
1661 } && test -s conftest$ac_exeext && {
1662 test "$cross_compiling" = yes ||
1663 test -x conftest$ac_exeext
1664 }; then :
1665 ac_retval=0
1666 else
1667 $as_echo "$as_me: failed program was:" >&5
1668 sed 's/^/| /' conftest.$ac_ext >&5
1669
1670 ac_retval=1
1671 fi
1672 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1673 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1674 # interfere with the next link command; also delete a directory that is
1675 # left behind by Apple's compiler. We do this before executing the actions.
1676 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1677 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1678 as_fn_set_status $ac_retval
1679
1680 } # ac_fn_c_try_link
1681
1682 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1683 # -------------------------------------------------------
1684 # Tests whether HEADER exists and can be compiled using the include files in
1685 # INCLUDES, setting the cache variable VAR accordingly.
1686 ac_fn_c_check_header_compile ()
1687 {
1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1690 $as_echo_n "checking for $2... " >&6; }
1691 if eval \${$3+:} false; then :
1692 $as_echo_n "(cached) " >&6
1693 else
1694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1695 /* end confdefs.h. */
1696 $4
1697 #include <$2>
1698 _ACEOF
1699 if ac_fn_c_try_compile "$LINENO"; then :
1700 eval "$3=yes"
1701 else
1702 eval "$3=no"
1703 fi
1704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1705 fi
1706 eval ac_res=\$$3
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1708 $as_echo "$ac_res" >&6; }
1709 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1710
1711 } # ac_fn_c_check_header_compile
1712
1713 # ac_fn_c_try_run LINENO
1714 # ----------------------
1715 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1716 # that executables *can* be run.
1717 ac_fn_c_try_run ()
1718 {
1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720 if { { ac_try="$ac_link"
1721 case "(($ac_try" in
1722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723 *) ac_try_echo=$ac_try;;
1724 esac
1725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726 $as_echo "$ac_try_echo"; } >&5
1727 (eval "$ac_link") 2>&5
1728 ac_status=$?
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1731 { { case "(($ac_try" in
1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733 *) ac_try_echo=$ac_try;;
1734 esac
1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737 (eval "$ac_try") 2>&5
1738 ac_status=$?
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; }; }; then :
1741 ac_retval=0
1742 else
1743 $as_echo "$as_me: program exited with status $ac_status" >&5
1744 $as_echo "$as_me: failed program was:" >&5
1745 sed 's/^/| /' conftest.$ac_ext >&5
1746
1747 ac_retval=$ac_status
1748 fi
1749 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751 as_fn_set_status $ac_retval
1752
1753 } # ac_fn_c_try_run
1754
1755 # ac_fn_c_check_func LINENO FUNC VAR
1756 # ----------------------------------
1757 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1758 ac_fn_c_check_func ()
1759 {
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1762 $as_echo_n "checking for $2... " >&6; }
1763 if eval \${$3+:} false; then :
1764 $as_echo_n "(cached) " >&6
1765 else
1766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1767 /* end confdefs.h. */
1768 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1770 #define $2 innocuous_$2
1771
1772 /* System header to define __stub macros and hopefully few prototypes,
1773 which can conflict with char $2 (); below.
1774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1775 <limits.h> exists even on freestanding compilers. */
1776
1777 #ifdef __STDC__
1778 # include <limits.h>
1779 #else
1780 # include <assert.h>
1781 #endif
1782
1783 #undef $2
1784
1785 /* Override any GCC internal prototype to avoid an error.
1786 Use char because int might match the return type of a GCC
1787 builtin and then its argument prototype would still apply. */
1788 #ifdef __cplusplus
1789 extern "C"
1790 #endif
1791 char $2 ();
1792 /* The GNU C library defines this for functions which it implements
1793 to always fail with ENOSYS. Some functions are actually named
1794 something starting with __ and the normal name is an alias. */
1795 #if defined __stub_$2 || defined __stub___$2
1796 choke me
1797 #endif
1798
1799 int
1800 main ()
1801 {
1802 return $2 ();
1803 ;
1804 return 0;
1805 }
1806 _ACEOF
1807 if ac_fn_c_try_link "$LINENO"; then :
1808 eval "$3=yes"
1809 else
1810 eval "$3=no"
1811 fi
1812 rm -f core conftest.err conftest.$ac_objext \
1813 conftest$ac_exeext conftest.$ac_ext
1814 fi
1815 eval ac_res=\$$3
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1817 $as_echo "$ac_res" >&6; }
1818 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1819
1820 } # ac_fn_c_check_func
1821
1822 # ac_fn_cxx_try_cpp LINENO
1823 # ------------------------
1824 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1825 ac_fn_cxx_try_cpp ()
1826 {
1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828 if { { ac_try="$ac_cpp conftest.$ac_ext"
1829 case "(($ac_try" in
1830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831 *) ac_try_echo=$ac_try;;
1832 esac
1833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834 $as_echo "$ac_try_echo"; } >&5
1835 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1836 ac_status=$?
1837 if test -s conftest.err; then
1838 grep -v '^ *+' conftest.err >conftest.er1
1839 cat conftest.er1 >&5
1840 mv -f conftest.er1 conftest.err
1841 fi
1842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1843 test $ac_status = 0; } > conftest.i && {
1844 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1845 test ! -s conftest.err
1846 }; then :
1847 ac_retval=0
1848 else
1849 $as_echo "$as_me: failed program was:" >&5
1850 sed 's/^/| /' conftest.$ac_ext >&5
1851
1852 ac_retval=1
1853 fi
1854 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1855 as_fn_set_status $ac_retval
1856
1857 } # ac_fn_cxx_try_cpp
1858
1859 # ac_fn_cxx_try_link LINENO
1860 # -------------------------
1861 # Try to link conftest.$ac_ext, and return whether this succeeded.
1862 ac_fn_cxx_try_link ()
1863 {
1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865 rm -f conftest.$ac_objext conftest$ac_exeext
1866 if { { ac_try="$ac_link"
1867 case "(($ac_try" in
1868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1869 *) ac_try_echo=$ac_try;;
1870 esac
1871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872 $as_echo "$ac_try_echo"; } >&5
1873 (eval "$ac_link") 2>conftest.err
1874 ac_status=$?
1875 if test -s conftest.err; then
1876 grep -v '^ *+' conftest.err >conftest.er1
1877 cat conftest.er1 >&5
1878 mv -f conftest.er1 conftest.err
1879 fi
1880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881 test $ac_status = 0; } && {
1882 test -z "$ac_cxx_werror_flag" ||
1883 test ! -s conftest.err
1884 } && test -s conftest$ac_exeext && {
1885 test "$cross_compiling" = yes ||
1886 test -x conftest$ac_exeext
1887 }; 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 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1896 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1897 # interfere with the next link command; also delete a directory that is
1898 # left behind by Apple's compiler. We do this before executing the actions.
1899 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1900 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901 as_fn_set_status $ac_retval
1902
1903 } # ac_fn_cxx_try_link
1904
1905 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1906 # -------------------------------------------------------
1907 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1908 # the include files in INCLUDES and setting the cache variable VAR
1909 # accordingly.
1910 ac_fn_c_check_header_mongrel ()
1911 {
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 if eval \${$3+:} false; then :
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1915 $as_echo_n "checking for $2... " >&6; }
1916 if eval \${$3+:} false; then :
1917 $as_echo_n "(cached) " >&6
1918 fi
1919 eval ac_res=\$$3
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1921 $as_echo "$ac_res" >&6; }
1922 else
1923 # Is the header compilable?
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1925 $as_echo_n "checking $2 usability... " >&6; }
1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927 /* end confdefs.h. */
1928 $4
1929 #include <$2>
1930 _ACEOF
1931 if ac_fn_c_try_compile "$LINENO"; then :
1932 ac_header_compiler=yes
1933 else
1934 ac_header_compiler=no
1935 fi
1936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1938 $as_echo "$ac_header_compiler" >&6; }
1939
1940 # Is the header present?
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1942 $as_echo_n "checking $2 presence... " >&6; }
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h. */
1945 #include <$2>
1946 _ACEOF
1947 if ac_fn_c_try_cpp "$LINENO"; then :
1948 ac_header_preproc=yes
1949 else
1950 ac_header_preproc=no
1951 fi
1952 rm -f conftest.err conftest.i conftest.$ac_ext
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1954 $as_echo "$ac_header_preproc" >&6; }
1955
1956 # So? What about this header?
1957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1958 yes:no: )
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1960 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1962 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1963 ;;
1964 no:yes:* )
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1966 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1968 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1970 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1972 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1974 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1975 ( $as_echo "## ----------------------------- ##
1976 ## Report this to [email protected] ##
1977 ## ----------------------------- ##"
1978 ) | sed "s/^/$as_me: WARNING: /" >&2
1979 ;;
1980 esac
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1982 $as_echo_n "checking for $2... " >&6; }
1983 if eval \${$3+:} false; then :
1984 $as_echo_n "(cached) " >&6
1985 else
1986 eval "$3=\$ac_header_compiler"
1987 fi
1988 eval ac_res=\$$3
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990 $as_echo "$ac_res" >&6; }
1991 fi
1992 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1993
1994 } # ac_fn_c_check_header_mongrel
1995
1996 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1997 # -------------------------------------------
1998 # Tests whether TYPE exists after having included INCLUDES, setting cache
1999 # variable VAR accordingly.
2000 ac_fn_c_check_type ()
2001 {
2002 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2004 $as_echo_n "checking for $2... " >&6; }
2005 if eval \${$3+:} false; then :
2006 $as_echo_n "(cached) " >&6
2007 else
2008 eval "$3=no"
2009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010 /* end confdefs.h. */
2011 $4
2012 int
2013 main ()
2014 {
2015 if (sizeof ($2))
2016 return 0;
2017 ;
2018 return 0;
2019 }
2020 _ACEOF
2021 if ac_fn_c_try_compile "$LINENO"; then :
2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023 /* end confdefs.h. */
2024 $4
2025 int
2026 main ()
2027 {
2028 if (sizeof (($2)))
2029 return 0;
2030 ;
2031 return 0;
2032 }
2033 _ACEOF
2034 if ac_fn_c_try_compile "$LINENO"; then :
2035
2036 else
2037 eval "$3=yes"
2038 fi
2039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2040 fi
2041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2042 fi
2043 eval ac_res=\$$3
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2045 $as_echo "$ac_res" >&6; }
2046 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2047
2048 } # ac_fn_c_check_type
2049 cat >config.log <<_ACEOF
2050 This file contains any messages produced by compilers while
2051 running configure, to aid debugging if configure makes a mistake.
2052
2053 It was created by hesiod $as_me 3.2.1, which was
2054 generated by GNU Autoconf 2.69. Invocation command line was
2055
2056 $ $0 $@
2057
2058 _ACEOF
2059 exec 5>>config.log
2060 {
2061 cat <<_ASUNAME
2062 ## --------- ##
2063 ## Platform. ##
2064 ## --------- ##
2065
2066 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2067 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2068 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2069 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2070 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2071
2072 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2073 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2074
2075 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2076 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2077 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2078 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2079 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2080 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2081 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2082
2083 _ASUNAME
2084
2085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2086 for as_dir in $PATH
2087 do
2088 IFS=$as_save_IFS
2089 test -z "$as_dir" && as_dir=.
2090 $as_echo "PATH: $as_dir"
2091 done
2092 IFS=$as_save_IFS
2093
2094 } >&5
2095
2096 cat >&5 <<_ACEOF
2097
2098
2099 ## ----------- ##
2100 ## Core tests. ##
2101 ## ----------- ##
2102
2103 _ACEOF
2104
2105
2106 # Keep a trace of the command line.
2107 # Strip out --no-create and --no-recursion so they do not pile up.
2108 # Strip out --silent because we don't want to record it for future runs.
2109 # Also quote any args containing shell meta-characters.
2110 # Make two passes to allow for proper duplicate-argument suppression.
2111 ac_configure_args=
2112 ac_configure_args0=
2113 ac_configure_args1=
2114 ac_must_keep_next=false
2115 for ac_pass in 1 2
2116 do
2117 for ac_arg
2118 do
2119 case $ac_arg in
2120 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2122 | -silent | --silent | --silen | --sile | --sil)
2123 continue ;;
2124 *\'*)
2125 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2126 esac
2127 case $ac_pass in
2128 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2129 2)
2130 as_fn_append ac_configure_args1 " '$ac_arg'"
2131 if test $ac_must_keep_next = true; then
2132 ac_must_keep_next=false # Got value, back to normal.
2133 else
2134 case $ac_arg in
2135 *=* | --config-cache | -C | -disable-* | --disable-* \
2136 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2137 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2138 | -with-* | --with-* | -without-* | --without-* | --x)
2139 case "$ac_configure_args0 " in
2140 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2141 esac
2142 ;;
2143 -* ) ac_must_keep_next=true ;;
2144 esac
2145 fi
2146 as_fn_append ac_configure_args " '$ac_arg'"
2147 ;;
2148 esac
2149 done
2150 done
2151 { ac_configure_args0=; unset ac_configure_args0;}
2152 { ac_configure_args1=; unset ac_configure_args1;}
2153
2154 # When interrupted or exit'd, cleanup temporary files, and complete
2155 # config.log. We remove comments because anyway the quotes in there
2156 # would cause problems or look ugly.
2157 # WARNING: Use '\'' to represent an apostrophe within the trap.
2158 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2159 trap 'exit_status=$?
2160 # Save into config.log some information that might help in debugging.
2161 {
2162 echo
2163
2164 $as_echo "## ---------------- ##
2165 ## Cache variables. ##
2166 ## ---------------- ##"
2167 echo
2168 # The following way of writing the cache mishandles newlines in values,
2169 (
2170 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2171 eval ac_val=\$$ac_var
2172 case $ac_val in #(
2173 *${as_nl}*)
2174 case $ac_var in #(
2175 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2176 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2177 esac
2178 case $ac_var in #(
2179 _ | IFS | as_nl) ;; #(
2180 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2181 *) { eval $ac_var=; unset $ac_var;} ;;
2182 esac ;;
2183 esac
2184 done
2185 (set) 2>&1 |
2186 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2187 *${as_nl}ac_space=\ *)
2188 sed -n \
2189 "s/'\''/'\''\\\\'\'''\''/g;
2190 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2191 ;; #(
2192 *)
2193 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2194 ;;
2195 esac |
2196 sort
2197 )
2198 echo
2199
2200 $as_echo "## ----------------- ##
2201 ## Output variables. ##
2202 ## ----------------- ##"
2203 echo
2204 for ac_var in $ac_subst_vars
2205 do
2206 eval ac_val=\$$ac_var
2207 case $ac_val in
2208 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2209 esac
2210 $as_echo "$ac_var='\''$ac_val'\''"
2211 done | sort
2212 echo
2213
2214 if test -n "$ac_subst_files"; then
2215 $as_echo "## ------------------- ##
2216 ## File substitutions. ##
2217 ## ------------------- ##"
2218 echo
2219 for ac_var in $ac_subst_files
2220 do
2221 eval ac_val=\$$ac_var
2222 case $ac_val in
2223 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2224 esac
2225 $as_echo "$ac_var='\''$ac_val'\''"
2226 done | sort
2227 echo
2228 fi
2229
2230 if test -s confdefs.h; then
2231 $as_echo "## ----------- ##
2232 ## confdefs.h. ##
2233 ## ----------- ##"
2234 echo
2235 cat confdefs.h
2236 echo
2237 fi
2238 test "$ac_signal" != 0 &&
2239 $as_echo "$as_me: caught signal $ac_signal"
2240 $as_echo "$as_me: exit $exit_status"
2241 } >&5
2242 rm -f core *.core core.conftest.* &&
2243 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2244 exit $exit_status
2245 ' 0
2246 for ac_signal in 1 2 13 15; do
2247 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2248 done
2249 ac_signal=0
2250
2251 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2252 rm -f -r conftest* confdefs.h
2253
2254 $as_echo "/* confdefs.h */" > confdefs.h
2255
2256 # Predefined preprocessor variables.
2257
2258 cat >>confdefs.h <<_ACEOF
2259 #define PACKAGE_NAME "$PACKAGE_NAME"
2260 _ACEOF
2261
2262 cat >>confdefs.h <<_ACEOF
2263 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2264 _ACEOF
2265
2266 cat >>confdefs.h <<_ACEOF
2267 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2268 _ACEOF
2269
2270 cat >>confdefs.h <<_ACEOF
2271 #define PACKAGE_STRING "$PACKAGE_STRING"
2272 _ACEOF
2273
2274 cat >>confdefs.h <<_ACEOF
2275 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2276 _ACEOF
2277
2278 cat >>confdefs.h <<_ACEOF
2279 #define PACKAGE_URL "$PACKAGE_URL"
2280 _ACEOF
2281
2282
2283 # Let the site file select an alternate cache file if it wants to.
2284 # Prefer an explicitly selected file to automatically selected ones.
2285 ac_site_file1=NONE
2286 ac_site_file2=NONE
2287 if test -n "$CONFIG_SITE"; then
2288 # We do not want a PATH search for config.site.
2289 case $CONFIG_SITE in #((
2290 -*) ac_site_file1=./$CONFIG_SITE;;
2291 */*) ac_site_file1=$CONFIG_SITE;;
2292 *) ac_site_file1=./$CONFIG_SITE;;
2293 esac
2294 elif test "x$prefix" != xNONE; then
2295 ac_site_file1=$prefix/share/config.site
2296 ac_site_file2=$prefix/etc/config.site
2297 else
2298 ac_site_file1=$ac_default_prefix/share/config.site
2299 ac_site_file2=$ac_default_prefix/etc/config.site
2300 fi
2301 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2302 do
2303 test "x$ac_site_file" = xNONE && continue
2304 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2306 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2307 sed 's/^/| /' "$ac_site_file" >&5
2308 . "$ac_site_file" \
2309 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2311 as_fn_error $? "failed to load site script $ac_site_file
2312 See \`config.log' for more details" "$LINENO" 5; }
2313 fi
2314 done
2315
2316 if test -r "$cache_file"; then
2317 # Some versions of bash will fail to source /dev/null (special files
2318 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2319 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2321 $as_echo "$as_me: loading cache $cache_file" >&6;}
2322 case $cache_file in
2323 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2324 *) . "./$cache_file";;
2325 esac
2326 fi
2327 else
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2329 $as_echo "$as_me: creating cache $cache_file" >&6;}
2330 >$cache_file
2331 fi
2332
2333 # Check that the precious variables saved in the cache have kept the same
2334 # value.
2335 ac_cache_corrupted=false
2336 for ac_var in $ac_precious_vars; do
2337 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2338 eval ac_new_set=\$ac_env_${ac_var}_set
2339 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2340 eval ac_new_val=\$ac_env_${ac_var}_value
2341 case $ac_old_set,$ac_new_set in
2342 set,)
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2344 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2345 ac_cache_corrupted=: ;;
2346 ,set)
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2348 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2349 ac_cache_corrupted=: ;;
2350 ,);;
2351 *)
2352 if test "x$ac_old_val" != "x$ac_new_val"; then
2353 # differences in whitespace do not lead to failure.
2354 ac_old_val_w=`echo x $ac_old_val`
2355 ac_new_val_w=`echo x $ac_new_val`
2356 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2358 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2359 ac_cache_corrupted=:
2360 else
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2362 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2363 eval $ac_var=\$ac_old_val
2364 fi
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2366 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2368 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2369 fi;;
2370 esac
2371 # Pass precious variables to config.status.
2372 if test "$ac_new_set" = set; then
2373 case $ac_new_val in
2374 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2375 *) ac_arg=$ac_var=$ac_new_val ;;
2376 esac
2377 case " $ac_configure_args " in
2378 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2379 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2380 esac
2381 fi
2382 done
2383 if $ac_cache_corrupted; then
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2385 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2387 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2388 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2389 fi
2390 ## -------------------- ##
2391 ## Main body of script. ##
2392 ## -------------------- ##
2393
2394 ac_ext=c
2395 ac_cpp='$CPP $CPPFLAGS'
2396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2399
2400
2401 am__api_version='1.11'
2402
2403 ac_aux_dir=
2404 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2405 if test -f "$ac_dir/install-sh"; then
2406 ac_aux_dir=$ac_dir
2407 ac_install_sh="$ac_aux_dir/install-sh -c"
2408 break
2409 elif test -f "$ac_dir/install.sh"; then
2410 ac_aux_dir=$ac_dir
2411 ac_install_sh="$ac_aux_dir/install.sh -c"
2412 break
2413 elif test -f "$ac_dir/shtool"; then
2414 ac_aux_dir=$ac_dir
2415 ac_install_sh="$ac_aux_dir/shtool install -c"
2416 break
2417 fi
2418 done
2419 if test -z "$ac_aux_dir"; then
2420 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2421 fi
2422
2423 # These three variables are undocumented and unsupported,
2424 # and are intended to be withdrawn in a future Autoconf release.
2425 # They can cause serious problems if a builder's source tree is in a directory
2426 # whose full name contains unusual characters.
2427 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2428 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2429 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2430
2431
2432 # Find a good install program. We prefer a C program (faster),
2433 # so one script is as good as another. But avoid the broken or
2434 # incompatible versions:
2435 # SysV /etc/install, /usr/sbin/install
2436 # SunOS /usr/etc/install
2437 # IRIX /sbin/install
2438 # AIX /bin/install
2439 # AmigaOS /C/install, which installs bootblocks on floppy discs
2440 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2441 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2442 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2443 # OS/2's system install, which has a completely different semantic
2444 # ./install, which can be erroneously created by make from ./install.sh.
2445 # Reject install programs that cannot install multiple files.
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2447 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2448 if test -z "$INSTALL"; then
2449 if ${ac_cv_path_install+:} false; then :
2450 $as_echo_n "(cached) " >&6
2451 else
2452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453 for as_dir in $PATH
2454 do
2455 IFS=$as_save_IFS
2456 test -z "$as_dir" && as_dir=.
2457 # Account for people who put trailing slashes in PATH elements.
2458 case $as_dir/ in #((
2459 ./ | .// | /[cC]/* | \
2460 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2461 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2462 /usr/ucb/* ) ;;
2463 *)
2464 # OSF1 and SCO ODT 3.0 have their own names for install.
2465 # Don't use installbsd from OSF since it installs stuff as root
2466 # by default.
2467 for ac_prog in ginstall scoinst install; do
2468 for ac_exec_ext in '' $ac_executable_extensions; do
2469 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2470 if test $ac_prog = install &&
2471 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2472 # AIX install. It has an incompatible calling convention.
2473 :
2474 elif test $ac_prog = install &&
2475 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2476 # program-specific install script used by HP pwplus--don't use.
2477 :
2478 else
2479 rm -rf conftest.one conftest.two conftest.dir
2480 echo one > conftest.one
2481 echo two > conftest.two
2482 mkdir conftest.dir
2483 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2484 test -s conftest.one && test -s conftest.two &&
2485 test -s conftest.dir/conftest.one &&
2486 test -s conftest.dir/conftest.two
2487 then
2488 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2489 break 3
2490 fi
2491 fi
2492 fi
2493 done
2494 done
2495 ;;
2496 esac
2497
2498 done
2499 IFS=$as_save_IFS
2500
2501 rm -rf conftest.one conftest.two conftest.dir
2502
2503 fi
2504 if test "${ac_cv_path_install+set}" = set; then
2505 INSTALL=$ac_cv_path_install
2506 else
2507 # As a last resort, use the slow shell script. Don't cache a
2508 # value for INSTALL within a source directory, because that will
2509 # break other packages using the cache if that directory is
2510 # removed, or if the value is a relative name.
2511 INSTALL=$ac_install_sh
2512 fi
2513 fi
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2515 $as_echo "$INSTALL" >&6; }
2516
2517 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2518 # It thinks the first close brace ends the variable substitution.
2519 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2520
2521 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2522
2523 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2524
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2526 $as_echo_n "checking whether build environment is sane... " >&6; }
2527 # Just in case
2528 sleep 1
2529 echo timestamp > conftest.file
2530 # Reject unsafe characters in $srcdir or the absolute working directory
2531 # name. Accept space and tab only in the latter.
2532 am_lf='
2533 '
2534 case `pwd` in
2535 *[\\\"\#\$\&\'\`$am_lf]*)
2536 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2537 esac
2538 case $srcdir in
2539 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2540 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2541 esac
2542
2543 # Do `set' in a subshell so we don't clobber the current shell's
2544 # arguments. Must try -L first in case configure is actually a
2545 # symlink; some systems play weird games with the mod time of symlinks
2546 # (eg FreeBSD returns the mod time of the symlink's containing
2547 # directory).
2548 if (
2549 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2550 if test "$*" = "X"; then
2551 # -L didn't work.
2552 set X `ls -t "$srcdir/configure" conftest.file`
2553 fi
2554 rm -f conftest.file
2555 if test "$*" != "X $srcdir/configure conftest.file" \
2556 && test "$*" != "X conftest.file $srcdir/configure"; then
2557
2558 # If neither matched, then we have a broken ls. This can happen
2559 # if, for instance, CONFIG_SHELL is bash and it inherits a
2560 # broken ls alias from the environment. This has actually
2561 # happened. Such a system could not be considered "sane".
2562 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2563 alias in your environment" "$LINENO" 5
2564 fi
2565
2566 test "$2" = conftest.file
2567 )
2568 then
2569 # Ok.
2570 :
2571 else
2572 as_fn_error $? "newly created file is older than distributed files!
2573 Check your system clock" "$LINENO" 5
2574 fi
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2576 $as_echo "yes" >&6; }
2577 test "$program_prefix" != NONE &&
2578 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2579 # Use a double $ so make ignores it.
2580 test "$program_suffix" != NONE &&
2581 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2582 # Double any \ or $.
2583 # By default was `s,x,x', remove it if useless.
2584 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2585 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2586
2587 # expand $ac_aux_dir to an absolute path
2588 am_aux_dir=`cd $ac_aux_dir && pwd`
2589
2590 if test x"${MISSING+set}" != xset; then
2591 case $am_aux_dir in
2592 *\ * | *\ *)
2593 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2594 *)
2595 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2596 esac
2597 fi
2598 # Use eval to expand $SHELL
2599 if eval "$MISSING --run true"; then
2600 am_missing_run="$MISSING --run "
2601 else
2602 am_missing_run=
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2604 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2605 fi
2606
2607 if test x"${install_sh}" != xset; then
2608 case $am_aux_dir in
2609 *\ * | *\ *)
2610 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2611 *)
2612 install_sh="\${SHELL} $am_aux_dir/install-sh"
2613 esac
2614 fi
2615
2616 # Installed binaries are usually stripped using `strip' when the user
2617 # run `make install-strip'. However `strip' might not be the right
2618 # tool to use in cross-compilation environments, therefore Automake
2619 # will honor the `STRIP' environment variable to overrule this program.
2620 if test "$cross_compiling" != no; then
2621 if test -n "$ac_tool_prefix"; then
2622 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2623 set dummy ${ac_tool_prefix}strip; ac_word=$2
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2625 $as_echo_n "checking for $ac_word... " >&6; }
2626 if ${ac_cv_prog_STRIP+:} false; then :
2627 $as_echo_n "(cached) " >&6
2628 else
2629 if test -n "$STRIP"; then
2630 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2631 else
2632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2633 for as_dir in $PATH
2634 do
2635 IFS=$as_save_IFS
2636 test -z "$as_dir" && as_dir=.
2637 for ac_exec_ext in '' $ac_executable_extensions; do
2638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2639 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2641 break 2
2642 fi
2643 done
2644 done
2645 IFS=$as_save_IFS
2646
2647 fi
2648 fi
2649 STRIP=$ac_cv_prog_STRIP
2650 if test -n "$STRIP"; then
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2652 $as_echo "$STRIP" >&6; }
2653 else
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2655 $as_echo "no" >&6; }
2656 fi
2657
2658
2659 fi
2660 if test -z "$ac_cv_prog_STRIP"; then
2661 ac_ct_STRIP=$STRIP
2662 # Extract the first word of "strip", so it can be a program name with args.
2663 set dummy strip; ac_word=$2
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2665 $as_echo_n "checking for $ac_word... " >&6; }
2666 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2667 $as_echo_n "(cached) " >&6
2668 else
2669 if test -n "$ac_ct_STRIP"; then
2670 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2671 else
2672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673 for as_dir in $PATH
2674 do
2675 IFS=$as_save_IFS
2676 test -z "$as_dir" && as_dir=.
2677 for ac_exec_ext in '' $ac_executable_extensions; do
2678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2679 ac_cv_prog_ac_ct_STRIP="strip"
2680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2681 break 2
2682 fi
2683 done
2684 done
2685 IFS=$as_save_IFS
2686
2687 fi
2688 fi
2689 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2690 if test -n "$ac_ct_STRIP"; then
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2692 $as_echo "$ac_ct_STRIP" >&6; }
2693 else
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2695 $as_echo "no" >&6; }
2696 fi
2697
2698 if test "x$ac_ct_STRIP" = x; then
2699 STRIP=":"
2700 else
2701 case $cross_compiling:$ac_tool_warned in
2702 yes:)
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2704 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2705 ac_tool_warned=yes ;;
2706 esac
2707 STRIP=$ac_ct_STRIP
2708 fi
2709 else
2710 STRIP="$ac_cv_prog_STRIP"
2711 fi
2712
2713 fi
2714 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2715
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2717 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2718 if test -z "$MKDIR_P"; then
2719 if ${ac_cv_path_mkdir+:} false; then :
2720 $as_echo_n "(cached) " >&6
2721 else
2722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2724 do
2725 IFS=$as_save_IFS
2726 test -z "$as_dir" && as_dir=.
2727 for ac_prog in mkdir gmkdir; do
2728 for ac_exec_ext in '' $ac_executable_extensions; do
2729 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2730 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2731 'mkdir (GNU coreutils) '* | \
2732 'mkdir (coreutils) '* | \
2733 'mkdir (fileutils) '4.1*)
2734 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2735 break 3;;
2736 esac
2737 done
2738 done
2739 done
2740 IFS=$as_save_IFS
2741
2742 fi
2743
2744 test -d ./--version && rmdir ./--version
2745 if test "${ac_cv_path_mkdir+set}" = set; then
2746 MKDIR_P="$ac_cv_path_mkdir -p"
2747 else
2748 # As a last resort, use the slow shell script. Don't cache a
2749 # value for MKDIR_P within a source directory, because that will
2750 # break other packages using the cache if that directory is
2751 # removed, or if the value is a relative name.
2752 MKDIR_P="$ac_install_sh -d"
2753 fi
2754 fi
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2756 $as_echo "$MKDIR_P" >&6; }
2757
2758 mkdir_p="$MKDIR_P"
2759 case $mkdir_p in
2760 [\\/$]* | ?:[\\/]*) ;;
2761 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2762 esac
2763
2764 for ac_prog in gawk mawk nawk awk
2765 do
2766 # Extract the first word of "$ac_prog", so it can be a program name with args.
2767 set dummy $ac_prog; ac_word=$2
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2769 $as_echo_n "checking for $ac_word... " >&6; }
2770 if ${ac_cv_prog_AWK+:} false; then :
2771 $as_echo_n "(cached) " >&6
2772 else
2773 if test -n "$AWK"; then
2774 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2775 else
2776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777 for as_dir in $PATH
2778 do
2779 IFS=$as_save_IFS
2780 test -z "$as_dir" && as_dir=.
2781 for ac_exec_ext in '' $ac_executable_extensions; do
2782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2783 ac_cv_prog_AWK="$ac_prog"
2784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2785 break 2
2786 fi
2787 done
2788 done
2789 IFS=$as_save_IFS
2790
2791 fi
2792 fi
2793 AWK=$ac_cv_prog_AWK
2794 if test -n "$AWK"; then
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2796 $as_echo "$AWK" >&6; }
2797 else
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2799 $as_echo "no" >&6; }
2800 fi
2801
2802
2803 test -n "$AWK" && break
2804 done
2805
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2807 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2808 set x ${MAKE-make}
2809 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2810 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2811 $as_echo_n "(cached) " >&6
2812 else
2813 cat >conftest.make <<\_ACEOF
2814 SHELL = /bin/sh
2815 all:
2816 @echo '@@@%%%=$(MAKE)=@@@%%%'
2817 _ACEOF
2818 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2819 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2820 *@@@%%%=?*=@@@%%%*)
2821 eval ac_cv_prog_make_${ac_make}_set=yes;;
2822 *)
2823 eval ac_cv_prog_make_${ac_make}_set=no;;
2824 esac
2825 rm -f conftest.make
2826 fi
2827 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2829 $as_echo "yes" >&6; }
2830 SET_MAKE=
2831 else
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2833 $as_echo "no" >&6; }
2834 SET_MAKE="MAKE=${MAKE-make}"
2835 fi
2836
2837 rm -rf .tst 2>/dev/null
2838 mkdir .tst 2>/dev/null
2839 if test -d .tst; then
2840 am__leading_dot=.
2841 else
2842 am__leading_dot=_
2843 fi
2844 rmdir .tst 2>/dev/null
2845
2846 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2847 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2848 # is not polluted with repeated "-I."
2849 am__isrc=' -I$(srcdir)'
2850 # test to see if srcdir already configured
2851 if test -f $srcdir/config.status; then
2852 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2853 fi
2854 fi
2855
2856 # test whether we have cygpath
2857 if test -z "$CYGPATH_W"; then
2858 if (cygpath --version) >/dev/null 2>/dev/null; then
2859 CYGPATH_W='cygpath -w'
2860 else
2861 CYGPATH_W=echo
2862 fi
2863 fi
2864
2865
2866 # Define the identity of the package.
2867 PACKAGE='hesiod'
2868 VERSION='3.2.1'
2869
2870
2871 cat >>confdefs.h <<_ACEOF
2872 #define PACKAGE "$PACKAGE"
2873 _ACEOF
2874
2875
2876 cat >>confdefs.h <<_ACEOF
2877 #define VERSION "$VERSION"
2878 _ACEOF
2879
2880 # Some tools Automake needs.
2881
2882 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2883
2884
2885 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2886
2887
2888 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2889
2890
2891 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2892
2893
2894 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2895
2896 # We need awk for the "check" target. The system "awk" is bad on
2897 # some platforms.
2898 # Always define AMTAR for backward compatibility. Yes, it's still used
2899 # in the wild :-( We should find a proper way to deprecate it ...
2900 AMTAR='$${TAR-tar}'
2901
2902 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2903
2904
2905
2906
2907
2908
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2910 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2911 # Check whether --enable-maintainer-mode was given.
2912 if test "${enable_maintainer_mode+set}" = set; then :
2913 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2914 else
2915 USE_MAINTAINER_MODE=yes
2916 fi
2917
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2919 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2920 if test $USE_MAINTAINER_MODE = yes; then
2921 MAINTAINER_MODE_TRUE=
2922 MAINTAINER_MODE_FALSE='#'
2923 else
2924 MAINTAINER_MODE_TRUE='#'
2925 MAINTAINER_MODE_FALSE=
2926 fi
2927
2928 MAINT=$MAINTAINER_MODE_TRUE
2929
2930
2931 # Check whether --enable-silent-rules was given.
2932 if test "${enable_silent_rules+set}" = set; then :
2933 enableval=$enable_silent_rules;
2934 fi
2935
2936 case $enable_silent_rules in
2937 yes) AM_DEFAULT_VERBOSITY=0;;
2938 no) AM_DEFAULT_VERBOSITY=1;;
2939 *) AM_DEFAULT_VERBOSITY=0;;
2940 esac
2941 am_make=${MAKE-make}
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2943 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2944 if ${am_cv_make_support_nested_variables+:} false; then :
2945 $as_echo_n "(cached) " >&6
2946 else
2947 if $as_echo 'TRUE=$(BAR$(V))
2948 BAR0=false
2949 BAR1=true
2950 V=1
2951 am__doit:
2952 @$(TRUE)
2953 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2954 am_cv_make_support_nested_variables=yes
2955 else
2956 am_cv_make_support_nested_variables=no
2957 fi
2958 fi
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2960 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2961 if test $am_cv_make_support_nested_variables = yes; then
2962 AM_V='$(V)'
2963 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2964 else
2965 AM_V=$AM_DEFAULT_VERBOSITY
2966 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2967 fi
2968 AM_BACKSLASH='\'
2969
2970
2971
2972 ac_config_headers="$ac_config_headers config.h"
2973
2974
2975 # Checks for programs.
2976 ac_ext=c
2977 ac_cpp='$CPP $CPPFLAGS'
2978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2981 if test -n "$ac_tool_prefix"; then
2982 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2983 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2985 $as_echo_n "checking for $ac_word... " >&6; }
2986 if ${ac_cv_prog_CC+:} false; then :
2987 $as_echo_n "(cached) " >&6
2988 else
2989 if test -n "$CC"; then
2990 ac_cv_prog_CC="$CC" # Let the user override the test.
2991 else
2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993 for as_dir in $PATH
2994 do
2995 IFS=$as_save_IFS
2996 test -z "$as_dir" && as_dir=.
2997 for ac_exec_ext in '' $ac_executable_extensions; do
2998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2999 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3001 break 2
3002 fi
3003 done
3004 done
3005 IFS=$as_save_IFS
3006
3007 fi
3008 fi
3009 CC=$ac_cv_prog_CC
3010 if test -n "$CC"; then
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3012 $as_echo "$CC" >&6; }
3013 else
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3015 $as_echo "no" >&6; }
3016 fi
3017
3018
3019 fi
3020 if test -z "$ac_cv_prog_CC"; then
3021 ac_ct_CC=$CC
3022 # Extract the first word of "gcc", so it can be a program name with args.
3023 set dummy gcc; ac_word=$2
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3025 $as_echo_n "checking for $ac_word... " >&6; }
3026 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3027 $as_echo_n "(cached) " >&6
3028 else
3029 if test -n "$ac_ct_CC"; then
3030 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3031 else
3032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033 for as_dir in $PATH
3034 do
3035 IFS=$as_save_IFS
3036 test -z "$as_dir" && as_dir=.
3037 for ac_exec_ext in '' $ac_executable_extensions; do
3038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3039 ac_cv_prog_ac_ct_CC="gcc"
3040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3041 break 2
3042 fi
3043 done
3044 done
3045 IFS=$as_save_IFS
3046
3047 fi
3048 fi
3049 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3050 if test -n "$ac_ct_CC"; then
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3052 $as_echo "$ac_ct_CC" >&6; }
3053 else
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3055 $as_echo "no" >&6; }
3056 fi
3057
3058 if test "x$ac_ct_CC" = x; then
3059 CC=""
3060 else
3061 case $cross_compiling:$ac_tool_warned in
3062 yes:)
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3065 ac_tool_warned=yes ;;
3066 esac
3067 CC=$ac_ct_CC
3068 fi
3069 else
3070 CC="$ac_cv_prog_CC"
3071 fi
3072
3073 if test -z "$CC"; then
3074 if test -n "$ac_tool_prefix"; then
3075 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3076 set dummy ${ac_tool_prefix}cc; ac_word=$2
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3078 $as_echo_n "checking for $ac_word... " >&6; }
3079 if ${ac_cv_prog_CC+:} false; then :
3080 $as_echo_n "(cached) " >&6
3081 else
3082 if test -n "$CC"; then
3083 ac_cv_prog_CC="$CC" # Let the user override the test.
3084 else
3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086 for as_dir in $PATH
3087 do
3088 IFS=$as_save_IFS
3089 test -z "$as_dir" && as_dir=.
3090 for ac_exec_ext in '' $ac_executable_extensions; do
3091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3092 ac_cv_prog_CC="${ac_tool_prefix}cc"
3093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3094 break 2
3095 fi
3096 done
3097 done
3098 IFS=$as_save_IFS
3099
3100 fi
3101 fi
3102 CC=$ac_cv_prog_CC
3103 if test -n "$CC"; then
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3105 $as_echo "$CC" >&6; }
3106 else
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108 $as_echo "no" >&6; }
3109 fi
3110
3111
3112 fi
3113 fi
3114 if test -z "$CC"; then
3115 # Extract the first word of "cc", so it can be a program name with args.
3116 set dummy cc; ac_word=$2
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3118 $as_echo_n "checking for $ac_word... " >&6; }
3119 if ${ac_cv_prog_CC+:} false; then :
3120 $as_echo_n "(cached) " >&6
3121 else
3122 if test -n "$CC"; then
3123 ac_cv_prog_CC="$CC" # Let the user override the test.
3124 else
3125 ac_prog_rejected=no
3126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127 for as_dir in $PATH
3128 do
3129 IFS=$as_save_IFS
3130 test -z "$as_dir" && as_dir=.
3131 for ac_exec_ext in '' $ac_executable_extensions; do
3132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3133 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3134 ac_prog_rejected=yes
3135 continue
3136 fi
3137 ac_cv_prog_CC="cc"
3138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3139 break 2
3140 fi
3141 done
3142 done
3143 IFS=$as_save_IFS
3144
3145 if test $ac_prog_rejected = yes; then
3146 # We found a bogon in the path, so make sure we never use it.
3147 set dummy $ac_cv_prog_CC
3148 shift
3149 if test $# != 0; then
3150 # We chose a different compiler from the bogus one.
3151 # However, it has the same basename, so the bogon will be chosen
3152 # first if we set CC to just the basename; use the full file name.
3153 shift
3154 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3155 fi
3156 fi
3157 fi
3158 fi
3159 CC=$ac_cv_prog_CC
3160 if test -n "$CC"; then
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3162 $as_echo "$CC" >&6; }
3163 else
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3165 $as_echo "no" >&6; }
3166 fi
3167
3168
3169 fi
3170 if test -z "$CC"; then
3171 if test -n "$ac_tool_prefix"; then
3172 for ac_prog in cl.exe
3173 do
3174 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3175 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3177 $as_echo_n "checking for $ac_word... " >&6; }
3178 if ${ac_cv_prog_CC+:} false; then :
3179 $as_echo_n "(cached) " >&6
3180 else
3181 if test -n "$CC"; then
3182 ac_cv_prog_CC="$CC" # Let the user override the test.
3183 else
3184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185 for as_dir in $PATH
3186 do
3187 IFS=$as_save_IFS
3188 test -z "$as_dir" && as_dir=.
3189 for ac_exec_ext in '' $ac_executable_extensions; do
3190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3191 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3193 break 2
3194 fi
3195 done
3196 done
3197 IFS=$as_save_IFS
3198
3199 fi
3200 fi
3201 CC=$ac_cv_prog_CC
3202 if test -n "$CC"; then
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3204 $as_echo "$CC" >&6; }
3205 else
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3207 $as_echo "no" >&6; }
3208 fi
3209
3210
3211 test -n "$CC" && break
3212 done
3213 fi
3214 if test -z "$CC"; then
3215 ac_ct_CC=$CC
3216 for ac_prog in cl.exe
3217 do
3218 # Extract the first word of "$ac_prog", so it can be a program name with args.
3219 set dummy $ac_prog; ac_word=$2
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3221 $as_echo_n "checking for $ac_word... " >&6; }
3222 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3223 $as_echo_n "(cached) " >&6
3224 else
3225 if test -n "$ac_ct_CC"; then
3226 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3227 else
3228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229 for as_dir in $PATH
3230 do
3231 IFS=$as_save_IFS
3232 test -z "$as_dir" && as_dir=.
3233 for ac_exec_ext in '' $ac_executable_extensions; do
3234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3235 ac_cv_prog_ac_ct_CC="$ac_prog"
3236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3237 break 2
3238 fi
3239 done
3240 done
3241 IFS=$as_save_IFS
3242
3243 fi
3244 fi
3245 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3246 if test -n "$ac_ct_CC"; then
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3248 $as_echo "$ac_ct_CC" >&6; }
3249 else
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3251 $as_echo "no" >&6; }
3252 fi
3253
3254
3255 test -n "$ac_ct_CC" && break
3256 done
3257
3258 if test "x$ac_ct_CC" = x; then
3259 CC=""
3260 else
3261 case $cross_compiling:$ac_tool_warned in
3262 yes:)
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3265 ac_tool_warned=yes ;;
3266 esac
3267 CC=$ac_ct_CC
3268 fi
3269 fi
3270
3271 fi
3272
3273
3274 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3275 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3276 as_fn_error $? "no acceptable C compiler found in \$PATH
3277 See \`config.log' for more details" "$LINENO" 5; }
3278
3279 # Provide some information about the compiler.
3280 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3281 set X $ac_compile
3282 ac_compiler=$2
3283 for ac_option in --version -v -V -qversion; do
3284 { { ac_try="$ac_compiler $ac_option >&5"
3285 case "(($ac_try" in
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3288 esac
3289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3290 $as_echo "$ac_try_echo"; } >&5
3291 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3292 ac_status=$?
3293 if test -s conftest.err; then
3294 sed '10a\
3295 ... rest of stderr output deleted ...
3296 10q' conftest.err >conftest.er1
3297 cat conftest.er1 >&5
3298 fi
3299 rm -f conftest.er1 conftest.err
3300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3301 test $ac_status = 0; }
3302 done
3303
3304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3305 /* end confdefs.h. */
3306
3307 int
3308 main ()
3309 {
3310
3311 ;
3312 return 0;
3313 }
3314 _ACEOF
3315 ac_clean_files_save=$ac_clean_files
3316 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3317 # Try to create an executable without -o first, disregard a.out.
3318 # It will help us diagnose broken compilers, and finding out an intuition
3319 # of exeext.
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3321 $as_echo_n "checking whether the C compiler works... " >&6; }
3322 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3323
3324 # The possible output files:
3325 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3326
3327 ac_rmfiles=
3328 for ac_file in $ac_files
3329 do
3330 case $ac_file in
3331 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3332 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3333 esac
3334 done
3335 rm -f $ac_rmfiles
3336
3337 if { { ac_try="$ac_link_default"
3338 case "(($ac_try" in
3339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340 *) ac_try_echo=$ac_try;;
3341 esac
3342 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3343 $as_echo "$ac_try_echo"; } >&5
3344 (eval "$ac_link_default") 2>&5
3345 ac_status=$?
3346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3347 test $ac_status = 0; }; then :
3348 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3349 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3350 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3351 # so that the user can short-circuit this test for compilers unknown to
3352 # Autoconf.
3353 for ac_file in $ac_files ''
3354 do
3355 test -f "$ac_file" || continue
3356 case $ac_file in
3357 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3358 ;;
3359 [ab].out )
3360 # We found the default executable, but exeext='' is most
3361 # certainly right.
3362 break;;
3363 *.* )
3364 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3365 then :; else
3366 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3367 fi
3368 # We set ac_cv_exeext here because the later test for it is not
3369 # safe: cross compilers may not add the suffix if given an `-o'
3370 # argument, so we may need to know it at that point already.
3371 # Even if this section looks crufty: it has the advantage of
3372 # actually working.
3373 break;;
3374 * )
3375 break;;
3376 esac
3377 done
3378 test "$ac_cv_exeext" = no && ac_cv_exeext=
3379
3380 else
3381 ac_file=''
3382 fi
3383 if test -z "$ac_file"; then :
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3385 $as_echo "no" >&6; }
3386 $as_echo "$as_me: failed program was:" >&5
3387 sed 's/^/| /' conftest.$ac_ext >&5
3388
3389 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3391 as_fn_error 77 "C compiler cannot create executables
3392 See \`config.log' for more details" "$LINENO" 5; }
3393 else
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3395 $as_echo "yes" >&6; }
3396 fi
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3398 $as_echo_n "checking for C compiler default output file name... " >&6; }
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3400 $as_echo "$ac_file" >&6; }
3401 ac_exeext=$ac_cv_exeext
3402
3403 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3404 ac_clean_files=$ac_clean_files_save
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3406 $as_echo_n "checking for suffix of executables... " >&6; }
3407 if { { ac_try="$ac_link"
3408 case "(($ac_try" in
3409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410 *) ac_try_echo=$ac_try;;
3411 esac
3412 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3413 $as_echo "$ac_try_echo"; } >&5
3414 (eval "$ac_link") 2>&5
3415 ac_status=$?
3416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3417 test $ac_status = 0; }; then :
3418 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3419 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3420 # work properly (i.e., refer to `conftest.exe'), while it won't with
3421 # `rm'.
3422 for ac_file in conftest.exe conftest conftest.*; do
3423 test -f "$ac_file" || continue
3424 case $ac_file in
3425 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3426 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3427 break;;
3428 * ) break;;
3429 esac
3430 done
3431 else
3432 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3434 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3435 See \`config.log' for more details" "$LINENO" 5; }
3436 fi
3437 rm -f conftest conftest$ac_cv_exeext
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3439 $as_echo "$ac_cv_exeext" >&6; }
3440
3441 rm -f conftest.$ac_ext
3442 EXEEXT=$ac_cv_exeext
3443 ac_exeext=$EXEEXT
3444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3445 /* end confdefs.h. */
3446 #include <stdio.h>
3447 int
3448 main ()
3449 {
3450 FILE *f = fopen ("conftest.out", "w");
3451 return ferror (f) || fclose (f) != 0;
3452
3453 ;
3454 return 0;
3455 }
3456 _ACEOF
3457 ac_clean_files="$ac_clean_files conftest.out"
3458 # Check that the compiler produces executables we can run. If not, either
3459 # the compiler is broken, or we cross compile.
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3461 $as_echo_n "checking whether we are cross compiling... " >&6; }
3462 if test "$cross_compiling" != yes; then
3463 { { ac_try="$ac_link"
3464 case "(($ac_try" in
3465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3466 *) ac_try_echo=$ac_try;;
3467 esac
3468 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3469 $as_echo "$ac_try_echo"; } >&5
3470 (eval "$ac_link") 2>&5
3471 ac_status=$?
3472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3473 test $ac_status = 0; }
3474 if { ac_try='./conftest$ac_cv_exeext'
3475 { { case "(($ac_try" in
3476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477 *) ac_try_echo=$ac_try;;
3478 esac
3479 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3480 $as_echo "$ac_try_echo"; } >&5
3481 (eval "$ac_try") 2>&5
3482 ac_status=$?
3483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3484 test $ac_status = 0; }; }; then
3485 cross_compiling=no
3486 else
3487 if test "$cross_compiling" = maybe; then
3488 cross_compiling=yes
3489 else
3490 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3491 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3492 as_fn_error $? "cannot run C compiled programs.
3493 If you meant to cross compile, use \`--host'.
3494 See \`config.log' for more details" "$LINENO" 5; }
3495 fi
3496 fi
3497 fi
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3499 $as_echo "$cross_compiling" >&6; }
3500
3501 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3502 ac_clean_files=$ac_clean_files_save
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3504 $as_echo_n "checking for suffix of object files... " >&6; }
3505 if ${ac_cv_objext+:} false; then :
3506 $as_echo_n "(cached) " >&6
3507 else
3508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3509 /* end confdefs.h. */
3510
3511 int
3512 main ()
3513 {
3514
3515 ;
3516 return 0;
3517 }
3518 _ACEOF
3519 rm -f conftest.o conftest.obj
3520 if { { ac_try="$ac_compile"
3521 case "(($ac_try" in
3522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3523 *) ac_try_echo=$ac_try;;
3524 esac
3525 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3526 $as_echo "$ac_try_echo"; } >&5
3527 (eval "$ac_compile") 2>&5
3528 ac_status=$?
3529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3530 test $ac_status = 0; }; then :
3531 for ac_file in conftest.o conftest.obj conftest.*; do
3532 test -f "$ac_file" || continue;
3533 case $ac_file in
3534 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3535 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3536 break;;
3537 esac
3538 done
3539 else
3540 $as_echo "$as_me: failed program was:" >&5
3541 sed 's/^/| /' conftest.$ac_ext >&5
3542
3543 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3545 as_fn_error $? "cannot compute suffix of object files: cannot compile
3546 See \`config.log' for more details" "$LINENO" 5; }
3547 fi
3548 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3549 fi
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3551 $as_echo "$ac_cv_objext" >&6; }
3552 OBJEXT=$ac_cv_objext
3553 ac_objext=$OBJEXT
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3555 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3556 if ${ac_cv_c_compiler_gnu+:} false; then :
3557 $as_echo_n "(cached) " >&6
3558 else
3559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3560 /* end confdefs.h. */
3561
3562 int
3563 main ()
3564 {
3565 #ifndef __GNUC__
3566 choke me
3567 #endif
3568
3569 ;
3570 return 0;
3571 }
3572 _ACEOF
3573 if ac_fn_c_try_compile "$LINENO"; then :
3574 ac_compiler_gnu=yes
3575 else
3576 ac_compiler_gnu=no
3577 fi
3578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3579 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3580
3581 fi
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3583 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3584 if test $ac_compiler_gnu = yes; then
3585 GCC=yes
3586 else
3587 GCC=
3588 fi
3589 ac_test_CFLAGS=${CFLAGS+set}
3590 ac_save_CFLAGS=$CFLAGS
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3592 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3593 if ${ac_cv_prog_cc_g+:} false; then :
3594 $as_echo_n "(cached) " >&6
3595 else
3596 ac_save_c_werror_flag=$ac_c_werror_flag
3597 ac_c_werror_flag=yes
3598 ac_cv_prog_cc_g=no
3599 CFLAGS="-g"
3600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601 /* end confdefs.h. */
3602
3603 int
3604 main ()
3605 {
3606
3607 ;
3608 return 0;
3609 }
3610 _ACEOF
3611 if ac_fn_c_try_compile "$LINENO"; then :
3612 ac_cv_prog_cc_g=yes
3613 else
3614 CFLAGS=""
3615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3616 /* end confdefs.h. */
3617
3618 int
3619 main ()
3620 {
3621
3622 ;
3623 return 0;
3624 }
3625 _ACEOF
3626 if ac_fn_c_try_compile "$LINENO"; then :
3627
3628 else
3629 ac_c_werror_flag=$ac_save_c_werror_flag
3630 CFLAGS="-g"
3631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632 /* end confdefs.h. */
3633
3634 int
3635 main ()
3636 {
3637
3638 ;
3639 return 0;
3640 }
3641 _ACEOF
3642 if ac_fn_c_try_compile "$LINENO"; then :
3643 ac_cv_prog_cc_g=yes
3644 fi
3645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3646 fi
3647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3648 fi
3649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3650 ac_c_werror_flag=$ac_save_c_werror_flag
3651 fi
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3653 $as_echo "$ac_cv_prog_cc_g" >&6; }
3654 if test "$ac_test_CFLAGS" = set; then
3655 CFLAGS=$ac_save_CFLAGS
3656 elif test $ac_cv_prog_cc_g = yes; then
3657 if test "$GCC" = yes; then
3658 CFLAGS="-g -O2"
3659 else
3660 CFLAGS="-g"
3661 fi
3662 else
3663 if test "$GCC" = yes; then
3664 CFLAGS="-O2"
3665 else
3666 CFLAGS=
3667 fi
3668 fi
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3670 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3671 if ${ac_cv_prog_cc_c89+:} false; then :
3672 $as_echo_n "(cached) " >&6
3673 else
3674 ac_cv_prog_cc_c89=no
3675 ac_save_CC=$CC
3676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3677 /* end confdefs.h. */
3678 #include <stdarg.h>
3679 #include <stdio.h>
3680 struct stat;
3681 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3682 struct buf { int x; };
3683 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3684 static char *e (p, i)
3685 char **p;
3686 int i;
3687 {
3688 return p[i];
3689 }
3690 static char *f (char * (*g) (char **, int), char **p, ...)
3691 {
3692 char *s;
3693 va_list v;
3694 va_start (v,p);
3695 s = g (p, va_arg (v,int));
3696 va_end (v);
3697 return s;
3698 }
3699
3700 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3701 function prototypes and stuff, but not '\xHH' hex character constants.
3702 These don't provoke an error unfortunately, instead are silently treated
3703 as 'x'. The following induces an error, until -std is added to get
3704 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3705 array size at least. It's necessary to write '\x00'==0 to get something
3706 that's true only with -std. */
3707 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3708
3709 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3710 inside strings and character constants. */
3711 #define FOO(x) 'x'
3712 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3713
3714 int test (int i, double x);
3715 struct s1 {int (*f) (int a);};
3716 struct s2 {int (*f) (double a);};
3717 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3718 int argc;
3719 char **argv;
3720 int
3721 main ()
3722 {
3723 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3724 ;
3725 return 0;
3726 }
3727 _ACEOF
3728 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3729 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3730 do
3731 CC="$ac_save_CC $ac_arg"
3732 if ac_fn_c_try_compile "$LINENO"; then :
3733 ac_cv_prog_cc_c89=$ac_arg
3734 fi
3735 rm -f core conftest.err conftest.$ac_objext
3736 test "x$ac_cv_prog_cc_c89" != "xno" && break
3737 done
3738 rm -f conftest.$ac_ext
3739 CC=$ac_save_CC
3740
3741 fi
3742 # AC_CACHE_VAL
3743 case "x$ac_cv_prog_cc_c89" in
3744 x)
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3746 $as_echo "none needed" >&6; } ;;
3747 xno)
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3749 $as_echo "unsupported" >&6; } ;;
3750 *)
3751 CC="$CC $ac_cv_prog_cc_c89"
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3753 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3754 esac
3755 if test "x$ac_cv_prog_cc_c89" != xno; then :
3756
3757 fi
3758
3759 ac_ext=c
3760 ac_cpp='$CPP $CPPFLAGS'
3761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3764 DEPDIR="${am__leading_dot}deps"
3765
3766 ac_config_commands="$ac_config_commands depfiles"
3767
3768
3769 am_make=${MAKE-make}
3770 cat > confinc << 'END'
3771 am__doit:
3772 @echo this is the am__doit target
3773 .PHONY: am__doit
3774 END
3775 # If we don't find an include directive, just comment out the code.
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3777 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3778 am__include="#"
3779 am__quote=
3780 _am_result=none
3781 # First try GNU make style include.
3782 echo "include confinc" > confmf
3783 # Ignore all kinds of additional output from `make'.
3784 case `$am_make -s -f confmf 2> /dev/null` in #(
3785 *the\ am__doit\ target*)
3786 am__include=include
3787 am__quote=
3788 _am_result=GNU
3789 ;;
3790 esac
3791 # Now try BSD make style include.
3792 if test "$am__include" = "#"; then
3793 echo '.include "confinc"' > confmf
3794 case `$am_make -s -f confmf 2> /dev/null` in #(
3795 *the\ am__doit\ target*)
3796 am__include=.include
3797 am__quote="\""
3798 _am_result=BSD
3799 ;;
3800 esac
3801 fi
3802
3803
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3805 $as_echo "$_am_result" >&6; }
3806 rm -f confinc confmf
3807
3808 # Check whether --enable-dependency-tracking was given.
3809 if test "${enable_dependency_tracking+set}" = set; then :
3810 enableval=$enable_dependency_tracking;
3811 fi
3812
3813 if test "x$enable_dependency_tracking" != xno; then
3814 am_depcomp="$ac_aux_dir/depcomp"
3815 AMDEPBACKSLASH='\'
3816 am__nodep='_no'
3817 fi
3818 if test "x$enable_dependency_tracking" != xno; then
3819 AMDEP_TRUE=
3820 AMDEP_FALSE='#'
3821 else
3822 AMDEP_TRUE='#'
3823 AMDEP_FALSE=
3824 fi
3825
3826
3827
3828 depcc="$CC" am_compiler_list=
3829
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3831 $as_echo_n "checking dependency style of $depcc... " >&6; }
3832 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3833 $as_echo_n "(cached) " >&6
3834 else
3835 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3836 # We make a subdir and do the tests there. Otherwise we can end up
3837 # making bogus files that we don't know about and never remove. For
3838 # instance it was reported that on HP-UX the gcc test will end up
3839 # making a dummy file named `D' -- because `-MD' means `put the output
3840 # in D'.
3841 rm -rf conftest.dir
3842 mkdir conftest.dir
3843 # Copy depcomp to subdir because otherwise we won't find it if we're
3844 # using a relative directory.
3845 cp "$am_depcomp" conftest.dir
3846 cd conftest.dir
3847 # We will build objects and dependencies in a subdirectory because
3848 # it helps to detect inapplicable dependency modes. For instance
3849 # both Tru64's cc and ICC support -MD to output dependencies as a
3850 # side effect of compilation, but ICC will put the dependencies in
3851 # the current directory while Tru64 will put them in the object
3852 # directory.
3853 mkdir sub
3854
3855 am_cv_CC_dependencies_compiler_type=none
3856 if test "$am_compiler_list" = ""; then
3857 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3858 fi
3859 am__universal=false
3860 case " $depcc " in #(
3861 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3862 esac
3863
3864 for depmode in $am_compiler_list; do
3865 # Setup a source with many dependencies, because some compilers
3866 # like to wrap large dependency lists on column 80 (with \), and
3867 # we should not choose a depcomp mode which is confused by this.
3868 #
3869 # We need to recreate these files for each test, as the compiler may
3870 # overwrite some of them when testing with obscure command lines.
3871 # This happens at least with the AIX C compiler.
3872 : > sub/conftest.c
3873 for i in 1 2 3 4 5 6; do
3874 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3875 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3876 # Solaris 8's {/usr,}/bin/sh.
3877 touch sub/conftst$i.h
3878 done
3879 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3880
3881 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3882 # mode. It turns out that the SunPro C++ compiler does not properly
3883 # handle `-M -o', and we need to detect this. Also, some Intel
3884 # versions had trouble with output in subdirs
3885 am__obj=sub/conftest.${OBJEXT-o}
3886 am__minus_obj="-o $am__obj"
3887 case $depmode in
3888 gcc)
3889 # This depmode causes a compiler race in universal mode.
3890 test "$am__universal" = false || continue
3891 ;;
3892 nosideeffect)
3893 # after this tag, mechanisms are not by side-effect, so they'll
3894 # only be used when explicitly requested
3895 if test "x$enable_dependency_tracking" = xyes; then
3896 continue
3897 else
3898 break
3899 fi
3900 ;;
3901 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3902 # This compiler won't grok `-c -o', but also, the minuso test has
3903 # not run yet. These depmodes are late enough in the game, and
3904 # so weak that their functioning should not be impacted.
3905 am__obj=conftest.${OBJEXT-o}
3906 am__minus_obj=
3907 ;;
3908 none) break ;;
3909 esac
3910 if depmode=$depmode \
3911 source=sub/conftest.c object=$am__obj \
3912 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3913 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3914 >/dev/null 2>conftest.err &&
3915 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3916 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3917 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3918 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3919 # icc doesn't choke on unknown options, it will just issue warnings
3920 # or remarks (even with -Werror). So we grep stderr for any message
3921 # that says an option was ignored or not supported.
3922 # When given -MP, icc 7.0 and 7.1 complain thusly:
3923 # icc: Command line warning: ignoring option '-M'; no argument required
3924 # The diagnosis changed in icc 8.0:
3925 # icc: Command line remark: option '-MP' not supported
3926 if (grep 'ignoring option' conftest.err ||
3927 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3928 am_cv_CC_dependencies_compiler_type=$depmode
3929 break
3930 fi
3931 fi
3932 done
3933
3934 cd ..
3935 rm -rf conftest.dir
3936 else
3937 am_cv_CC_dependencies_compiler_type=none
3938 fi
3939
3940 fi
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3942 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3943 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3944
3945 if
3946 test "x$enable_dependency_tracking" != xno \
3947 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3948 am__fastdepCC_TRUE=
3949 am__fastdepCC_FALSE='#'
3950 else
3951 am__fastdepCC_TRUE='#'
3952 am__fastdepCC_FALSE=
3953 fi
3954
3955
3956 ac_ext=cpp
3957 ac_cpp='$CXXCPP $CPPFLAGS'
3958 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3959 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3960 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3961 if test -z "$CXX"; then
3962 if test -n "$CCC"; then
3963 CXX=$CCC
3964 else
3965 if test -n "$ac_tool_prefix"; then
3966 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3967 do
3968 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3969 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3971 $as_echo_n "checking for $ac_word... " >&6; }
3972 if ${ac_cv_prog_CXX+:} false; then :
3973 $as_echo_n "(cached) " >&6
3974 else
3975 if test -n "$CXX"; then
3976 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3977 else
3978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979 for as_dir in $PATH
3980 do
3981 IFS=$as_save_IFS
3982 test -z "$as_dir" && as_dir=.
3983 for ac_exec_ext in '' $ac_executable_extensions; do
3984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3985 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3987 break 2
3988 fi
3989 done
3990 done
3991 IFS=$as_save_IFS
3992
3993 fi
3994 fi
3995 CXX=$ac_cv_prog_CXX
3996 if test -n "$CXX"; then
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3998 $as_echo "$CXX" >&6; }
3999 else
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4001 $as_echo "no" >&6; }
4002 fi
4003
4004
4005 test -n "$CXX" && break
4006 done
4007 fi
4008 if test -z "$CXX"; then
4009 ac_ct_CXX=$CXX
4010 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4011 do
4012 # Extract the first word of "$ac_prog", so it can be a program name with args.
4013 set dummy $ac_prog; ac_word=$2
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4015 $as_echo_n "checking for $ac_word... " >&6; }
4016 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4017 $as_echo_n "(cached) " >&6
4018 else
4019 if test -n "$ac_ct_CXX"; then
4020 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4021 else
4022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023 for as_dir in $PATH
4024 do
4025 IFS=$as_save_IFS
4026 test -z "$as_dir" && as_dir=.
4027 for ac_exec_ext in '' $ac_executable_extensions; do
4028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4029 ac_cv_prog_ac_ct_CXX="$ac_prog"
4030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4031 break 2
4032 fi
4033 done
4034 done
4035 IFS=$as_save_IFS
4036
4037 fi
4038 fi
4039 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4040 if test -n "$ac_ct_CXX"; then
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4042 $as_echo "$ac_ct_CXX" >&6; }
4043 else
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4045 $as_echo "no" >&6; }
4046 fi
4047
4048
4049 test -n "$ac_ct_CXX" && break
4050 done
4051
4052 if test "x$ac_ct_CXX" = x; then
4053 CXX="g++"
4054 else
4055 case $cross_compiling:$ac_tool_warned in
4056 yes:)
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4059 ac_tool_warned=yes ;;
4060 esac
4061 CXX=$ac_ct_CXX
4062 fi
4063 fi
4064
4065 fi
4066 fi
4067 # Provide some information about the compiler.
4068 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4069 set X $ac_compile
4070 ac_compiler=$2
4071 for ac_option in --version -v -V -qversion; do
4072 { { ac_try="$ac_compiler $ac_option >&5"
4073 case "(($ac_try" in
4074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075 *) ac_try_echo=$ac_try;;
4076 esac
4077 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4078 $as_echo "$ac_try_echo"; } >&5
4079 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4080 ac_status=$?
4081 if test -s conftest.err; then
4082 sed '10a\
4083 ... rest of stderr output deleted ...
4084 10q' conftest.err >conftest.er1
4085 cat conftest.er1 >&5
4086 fi
4087 rm -f conftest.er1 conftest.err
4088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4089 test $ac_status = 0; }
4090 done
4091
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4093 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4094 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4095 $as_echo_n "(cached) " >&6
4096 else
4097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4098 /* end confdefs.h. */
4099
4100 int
4101 main ()
4102 {
4103 #ifndef __GNUC__
4104 choke me
4105 #endif
4106
4107 ;
4108 return 0;
4109 }
4110 _ACEOF
4111 if ac_fn_cxx_try_compile "$LINENO"; then :
4112 ac_compiler_gnu=yes
4113 else
4114 ac_compiler_gnu=no
4115 fi
4116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4117 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4118
4119 fi
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4121 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4122 if test $ac_compiler_gnu = yes; then
4123 GXX=yes
4124 else
4125 GXX=
4126 fi
4127 ac_test_CXXFLAGS=${CXXFLAGS+set}
4128 ac_save_CXXFLAGS=$CXXFLAGS
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4130 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4131 if ${ac_cv_prog_cxx_g+:} false; then :
4132 $as_echo_n "(cached) " >&6
4133 else
4134 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4135 ac_cxx_werror_flag=yes
4136 ac_cv_prog_cxx_g=no
4137 CXXFLAGS="-g"
4138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4139 /* end confdefs.h. */
4140
4141 int
4142 main ()
4143 {
4144
4145 ;
4146 return 0;
4147 }
4148 _ACEOF
4149 if ac_fn_cxx_try_compile "$LINENO"; then :
4150 ac_cv_prog_cxx_g=yes
4151 else
4152 CXXFLAGS=""
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 if ac_fn_cxx_try_compile "$LINENO"; then :
4165
4166 else
4167 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4168 CXXFLAGS="-g"
4169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170 /* end confdefs.h. */
4171
4172 int
4173 main ()
4174 {
4175
4176 ;
4177 return 0;
4178 }
4179 _ACEOF
4180 if ac_fn_cxx_try_compile "$LINENO"; then :
4181 ac_cv_prog_cxx_g=yes
4182 fi
4183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4184 fi
4185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4186 fi
4187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4188 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4189 fi
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4191 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4192 if test "$ac_test_CXXFLAGS" = set; then
4193 CXXFLAGS=$ac_save_CXXFLAGS
4194 elif test $ac_cv_prog_cxx_g = yes; then
4195 if test "$GXX" = yes; then
4196 CXXFLAGS="-g -O2"
4197 else
4198 CXXFLAGS="-g"
4199 fi
4200 else
4201 if test "$GXX" = yes; then
4202 CXXFLAGS="-O2"
4203 else
4204 CXXFLAGS=
4205 fi
4206 fi
4207 ac_ext=c
4208 ac_cpp='$CPP $CPPFLAGS'
4209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4212
4213 depcc="$CXX" am_compiler_list=
4214
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4216 $as_echo_n "checking dependency style of $depcc... " >&6; }
4217 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4218 $as_echo_n "(cached) " >&6
4219 else
4220 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4221 # We make a subdir and do the tests there. Otherwise we can end up
4222 # making bogus files that we don't know about and never remove. For
4223 # instance it was reported that on HP-UX the gcc test will end up
4224 # making a dummy file named `D' -- because `-MD' means `put the output
4225 # in D'.
4226 rm -rf conftest.dir
4227 mkdir conftest.dir
4228 # Copy depcomp to subdir because otherwise we won't find it if we're
4229 # using a relative directory.
4230 cp "$am_depcomp" conftest.dir
4231 cd conftest.dir
4232 # We will build objects and dependencies in a subdirectory because
4233 # it helps to detect inapplicable dependency modes. For instance
4234 # both Tru64's cc and ICC support -MD to output dependencies as a
4235 # side effect of compilation, but ICC will put the dependencies in
4236 # the current directory while Tru64 will put them in the object
4237 # directory.
4238 mkdir sub
4239
4240 am_cv_CXX_dependencies_compiler_type=none
4241 if test "$am_compiler_list" = ""; then
4242 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4243 fi
4244 am__universal=false
4245 case " $depcc " in #(
4246 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4247 esac
4248
4249 for depmode in $am_compiler_list; do
4250 # Setup a source with many dependencies, because some compilers
4251 # like to wrap large dependency lists on column 80 (with \), and
4252 # we should not choose a depcomp mode which is confused by this.
4253 #
4254 # We need to recreate these files for each test, as the compiler may
4255 # overwrite some of them when testing with obscure command lines.
4256 # This happens at least with the AIX C compiler.
4257 : > sub/conftest.c
4258 for i in 1 2 3 4 5 6; do
4259 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4260 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4261 # Solaris 8's {/usr,}/bin/sh.
4262 touch sub/conftst$i.h
4263 done
4264 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4265
4266 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4267 # mode. It turns out that the SunPro C++ compiler does not properly
4268 # handle `-M -o', and we need to detect this. Also, some Intel
4269 # versions had trouble with output in subdirs
4270 am__obj=sub/conftest.${OBJEXT-o}
4271 am__minus_obj="-o $am__obj"
4272 case $depmode in
4273 gcc)
4274 # This depmode causes a compiler race in universal mode.
4275 test "$am__universal" = false || continue
4276 ;;
4277 nosideeffect)
4278 # after this tag, mechanisms are not by side-effect, so they'll
4279 # only be used when explicitly requested
4280 if test "x$enable_dependency_tracking" = xyes; then
4281 continue
4282 else
4283 break
4284 fi
4285 ;;
4286 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4287 # This compiler won't grok `-c -o', but also, the minuso test has
4288 # not run yet. These depmodes are late enough in the game, and
4289 # so weak that their functioning should not be impacted.
4290 am__obj=conftest.${OBJEXT-o}
4291 am__minus_obj=
4292 ;;
4293 none) break ;;
4294 esac
4295 if depmode=$depmode \
4296 source=sub/conftest.c object=$am__obj \
4297 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4298 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4299 >/dev/null 2>conftest.err &&
4300 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4301 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4302 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4303 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4304 # icc doesn't choke on unknown options, it will just issue warnings
4305 # or remarks (even with -Werror). So we grep stderr for any message
4306 # that says an option was ignored or not supported.
4307 # When given -MP, icc 7.0 and 7.1 complain thusly:
4308 # icc: Command line warning: ignoring option '-M'; no argument required
4309 # The diagnosis changed in icc 8.0:
4310 # icc: Command line remark: option '-MP' not supported
4311 if (grep 'ignoring option' conftest.err ||
4312 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4313 am_cv_CXX_dependencies_compiler_type=$depmode
4314 break
4315 fi
4316 fi
4317 done
4318
4319 cd ..
4320 rm -rf conftest.dir
4321 else
4322 am_cv_CXX_dependencies_compiler_type=none
4323 fi
4324
4325 fi
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4327 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4328 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4329
4330 if
4331 test "x$enable_dependency_tracking" != xno \
4332 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4333 am__fastdepCXX_TRUE=
4334 am__fastdepCXX_FALSE='#'
4335 else
4336 am__fastdepCXX_TRUE='#'
4337 am__fastdepCXX_FALSE=
4338 fi
4339
4340
4341 for ac_prog in gawk mawk nawk awk
4342 do
4343 # Extract the first word of "$ac_prog", so it can be a program name with args.
4344 set dummy $ac_prog; ac_word=$2
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4346 $as_echo_n "checking for $ac_word... " >&6; }
4347 if ${ac_cv_prog_AWK+:} false; then :
4348 $as_echo_n "(cached) " >&6
4349 else
4350 if test -n "$AWK"; then
4351 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4352 else
4353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4354 for as_dir in $PATH
4355 do
4356 IFS=$as_save_IFS
4357 test -z "$as_dir" && as_dir=.
4358 for ac_exec_ext in '' $ac_executable_extensions; do
4359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4360 ac_cv_prog_AWK="$ac_prog"
4361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4362 break 2
4363 fi
4364 done
4365 done
4366 IFS=$as_save_IFS
4367
4368 fi
4369 fi
4370 AWK=$ac_cv_prog_AWK
4371 if test -n "$AWK"; then
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4373 $as_echo "$AWK" >&6; }
4374 else
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4376 $as_echo "no" >&6; }
4377 fi
4378
4379
4380 test -n "$AWK" && break
4381 done
4382
4383 ac_ext=c
4384 ac_cpp='$CPP $CPPFLAGS'
4385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4388 if test -n "$ac_tool_prefix"; then
4389 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4390 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4392 $as_echo_n "checking for $ac_word... " >&6; }
4393 if ${ac_cv_prog_CC+:} false; then :
4394 $as_echo_n "(cached) " >&6
4395 else
4396 if test -n "$CC"; then
4397 ac_cv_prog_CC="$CC" # Let the user override the test.
4398 else
4399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4400 for as_dir in $PATH
4401 do
4402 IFS=$as_save_IFS
4403 test -z "$as_dir" && as_dir=.
4404 for ac_exec_ext in '' $ac_executable_extensions; do
4405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4406 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4408 break 2
4409 fi
4410 done
4411 done
4412 IFS=$as_save_IFS
4413
4414 fi
4415 fi
4416 CC=$ac_cv_prog_CC
4417 if test -n "$CC"; then
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4419 $as_echo "$CC" >&6; }
4420 else
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4422 $as_echo "no" >&6; }
4423 fi
4424
4425
4426 fi
4427 if test -z "$ac_cv_prog_CC"; then
4428 ac_ct_CC=$CC
4429 # Extract the first word of "gcc", so it can be a program name with args.
4430 set dummy gcc; 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_ac_ct_CC+:} false; then :
4434 $as_echo_n "(cached) " >&6
4435 else
4436 if test -n "$ac_ct_CC"; then
4437 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # 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_ac_ct_CC="gcc"
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 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4457 if test -n "$ac_ct_CC"; then
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4459 $as_echo "$ac_ct_CC" >&6; }
4460 else
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4462 $as_echo "no" >&6; }
4463 fi
4464
4465 if test "x$ac_ct_CC" = x; then
4466 CC=""
4467 else
4468 case $cross_compiling:$ac_tool_warned in
4469 yes:)
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4472 ac_tool_warned=yes ;;
4473 esac
4474 CC=$ac_ct_CC
4475 fi
4476 else
4477 CC="$ac_cv_prog_CC"
4478 fi
4479
4480 if test -z "$CC"; then
4481 if test -n "$ac_tool_prefix"; then
4482 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4483 set dummy ${ac_tool_prefix}cc; ac_word=$2
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4485 $as_echo_n "checking for $ac_word... " >&6; }
4486 if ${ac_cv_prog_CC+:} false; then :
4487 $as_echo_n "(cached) " >&6
4488 else
4489 if test -n "$CC"; then
4490 ac_cv_prog_CC="$CC" # Let the user override the test.
4491 else
4492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4493 for as_dir in $PATH
4494 do
4495 IFS=$as_save_IFS
4496 test -z "$as_dir" && as_dir=.
4497 for ac_exec_ext in '' $ac_executable_extensions; do
4498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4499 ac_cv_prog_CC="${ac_tool_prefix}cc"
4500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4501 break 2
4502 fi
4503 done
4504 done
4505 IFS=$as_save_IFS
4506
4507 fi
4508 fi
4509 CC=$ac_cv_prog_CC
4510 if test -n "$CC"; then
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4512 $as_echo "$CC" >&6; }
4513 else
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4515 $as_echo "no" >&6; }
4516 fi
4517
4518
4519 fi
4520 fi
4521 if test -z "$CC"; then
4522 # Extract the first word of "cc", so it can be a program name with args.
4523 set dummy cc; ac_word=$2
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4525 $as_echo_n "checking for $ac_word... " >&6; }
4526 if ${ac_cv_prog_CC+:} false; then :
4527 $as_echo_n "(cached) " >&6
4528 else
4529 if test -n "$CC"; then
4530 ac_cv_prog_CC="$CC" # Let the user override the test.
4531 else
4532 ac_prog_rejected=no
4533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534 for as_dir in $PATH
4535 do
4536 IFS=$as_save_IFS
4537 test -z "$as_dir" && as_dir=.
4538 for ac_exec_ext in '' $ac_executable_extensions; do
4539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4540 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4541 ac_prog_rejected=yes
4542 continue
4543 fi
4544 ac_cv_prog_CC="cc"
4545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4546 break 2
4547 fi
4548 done
4549 done
4550 IFS=$as_save_IFS
4551
4552 if test $ac_prog_rejected = yes; then
4553 # We found a bogon in the path, so make sure we never use it.
4554 set dummy $ac_cv_prog_CC
4555 shift
4556 if test $# != 0; then
4557 # We chose a different compiler from the bogus one.
4558 # However, it has the same basename, so the bogon will be chosen
4559 # first if we set CC to just the basename; use the full file name.
4560 shift
4561 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4562 fi
4563 fi
4564 fi
4565 fi
4566 CC=$ac_cv_prog_CC
4567 if test -n "$CC"; then
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4569 $as_echo "$CC" >&6; }
4570 else
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4572 $as_echo "no" >&6; }
4573 fi
4574
4575
4576 fi
4577 if test -z "$CC"; then
4578 if test -n "$ac_tool_prefix"; then
4579 for ac_prog in cl.exe
4580 do
4581 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4582 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4584 $as_echo_n "checking for $ac_word... " >&6; }
4585 if ${ac_cv_prog_CC+:} false; then :
4586 $as_echo_n "(cached) " >&6
4587 else
4588 if test -n "$CC"; then
4589 ac_cv_prog_CC="$CC" # Let the user override the test.
4590 else
4591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592 for as_dir in $PATH
4593 do
4594 IFS=$as_save_IFS
4595 test -z "$as_dir" && as_dir=.
4596 for ac_exec_ext in '' $ac_executable_extensions; do
4597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4598 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4600 break 2
4601 fi
4602 done
4603 done
4604 IFS=$as_save_IFS
4605
4606 fi
4607 fi
4608 CC=$ac_cv_prog_CC
4609 if test -n "$CC"; then
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4611 $as_echo "$CC" >&6; }
4612 else
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4614 $as_echo "no" >&6; }
4615 fi
4616
4617
4618 test -n "$CC" && break
4619 done
4620 fi
4621 if test -z "$CC"; then
4622 ac_ct_CC=$CC
4623 for ac_prog in cl.exe
4624 do
4625 # Extract the first word of "$ac_prog", so it can be a program name with args.
4626 set dummy $ac_prog; ac_word=$2
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4628 $as_echo_n "checking for $ac_word... " >&6; }
4629 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4630 $as_echo_n "(cached) " >&6
4631 else
4632 if test -n "$ac_ct_CC"; then
4633 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4634 else
4635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636 for as_dir in $PATH
4637 do
4638 IFS=$as_save_IFS
4639 test -z "$as_dir" && as_dir=.
4640 for ac_exec_ext in '' $ac_executable_extensions; do
4641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4642 ac_cv_prog_ac_ct_CC="$ac_prog"
4643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4644 break 2
4645 fi
4646 done
4647 done
4648 IFS=$as_save_IFS
4649
4650 fi
4651 fi
4652 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4653 if test -n "$ac_ct_CC"; then
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4655 $as_echo "$ac_ct_CC" >&6; }
4656 else
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4658 $as_echo "no" >&6; }
4659 fi
4660
4661
4662 test -n "$ac_ct_CC" && break
4663 done
4664
4665 if test "x$ac_ct_CC" = x; then
4666 CC=""
4667 else
4668 case $cross_compiling:$ac_tool_warned in
4669 yes:)
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4672 ac_tool_warned=yes ;;
4673 esac
4674 CC=$ac_ct_CC
4675 fi
4676 fi
4677
4678 fi
4679
4680
4681 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4682 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4683 as_fn_error $? "no acceptable C compiler found in \$PATH
4684 See \`config.log' for more details" "$LINENO" 5; }
4685
4686 # Provide some information about the compiler.
4687 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4688 set X $ac_compile
4689 ac_compiler=$2
4690 for ac_option in --version -v -V -qversion; do
4691 { { ac_try="$ac_compiler $ac_option >&5"
4692 case "(($ac_try" in
4693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4694 *) ac_try_echo=$ac_try;;
4695 esac
4696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4697 $as_echo "$ac_try_echo"; } >&5
4698 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4699 ac_status=$?
4700 if test -s conftest.err; then
4701 sed '10a\
4702 ... rest of stderr output deleted ...
4703 10q' conftest.err >conftest.er1
4704 cat conftest.er1 >&5
4705 fi
4706 rm -f conftest.er1 conftest.err
4707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4708 test $ac_status = 0; }
4709 done
4710
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4712 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4713 if ${ac_cv_c_compiler_gnu+:} false; then :
4714 $as_echo_n "(cached) " >&6
4715 else
4716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4717 /* end confdefs.h. */
4718
4719 int
4720 main ()
4721 {
4722 #ifndef __GNUC__
4723 choke me
4724 #endif
4725
4726 ;
4727 return 0;
4728 }
4729 _ACEOF
4730 if ac_fn_c_try_compile "$LINENO"; then :
4731 ac_compiler_gnu=yes
4732 else
4733 ac_compiler_gnu=no
4734 fi
4735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4736 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4737
4738 fi
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4740 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4741 if test $ac_compiler_gnu = yes; then
4742 GCC=yes
4743 else
4744 GCC=
4745 fi
4746 ac_test_CFLAGS=${CFLAGS+set}
4747 ac_save_CFLAGS=$CFLAGS
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4749 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4750 if ${ac_cv_prog_cc_g+:} false; then :
4751 $as_echo_n "(cached) " >&6
4752 else
4753 ac_save_c_werror_flag=$ac_c_werror_flag
4754 ac_c_werror_flag=yes
4755 ac_cv_prog_cc_g=no
4756 CFLAGS="-g"
4757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4758 /* end confdefs.h. */
4759
4760 int
4761 main ()
4762 {
4763
4764 ;
4765 return 0;
4766 }
4767 _ACEOF
4768 if ac_fn_c_try_compile "$LINENO"; then :
4769 ac_cv_prog_cc_g=yes
4770 else
4771 CFLAGS=""
4772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4773 /* end confdefs.h. */
4774
4775 int
4776 main ()
4777 {
4778
4779 ;
4780 return 0;
4781 }
4782 _ACEOF
4783 if ac_fn_c_try_compile "$LINENO"; then :
4784
4785 else
4786 ac_c_werror_flag=$ac_save_c_werror_flag
4787 CFLAGS="-g"
4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789 /* end confdefs.h. */
4790
4791 int
4792 main ()
4793 {
4794
4795 ;
4796 return 0;
4797 }
4798 _ACEOF
4799 if ac_fn_c_try_compile "$LINENO"; then :
4800 ac_cv_prog_cc_g=yes
4801 fi
4802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4803 fi
4804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4805 fi
4806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4807 ac_c_werror_flag=$ac_save_c_werror_flag
4808 fi
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4810 $as_echo "$ac_cv_prog_cc_g" >&6; }
4811 if test "$ac_test_CFLAGS" = set; then
4812 CFLAGS=$ac_save_CFLAGS
4813 elif test $ac_cv_prog_cc_g = yes; then
4814 if test "$GCC" = yes; then
4815 CFLAGS="-g -O2"
4816 else
4817 CFLAGS="-g"
4818 fi
4819 else
4820 if test "$GCC" = yes; then
4821 CFLAGS="-O2"
4822 else
4823 CFLAGS=
4824 fi
4825 fi
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4827 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4828 if ${ac_cv_prog_cc_c89+:} false; then :
4829 $as_echo_n "(cached) " >&6
4830 else
4831 ac_cv_prog_cc_c89=no
4832 ac_save_CC=$CC
4833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4834 /* end confdefs.h. */
4835 #include <stdarg.h>
4836 #include <stdio.h>
4837 struct stat;
4838 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4839 struct buf { int x; };
4840 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4841 static char *e (p, i)
4842 char **p;
4843 int i;
4844 {
4845 return p[i];
4846 }
4847 static char *f (char * (*g) (char **, int), char **p, ...)
4848 {
4849 char *s;
4850 va_list v;
4851 va_start (v,p);
4852 s = g (p, va_arg (v,int));
4853 va_end (v);
4854 return s;
4855 }
4856
4857 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4858 function prototypes and stuff, but not '\xHH' hex character constants.
4859 These don't provoke an error unfortunately, instead are silently treated
4860 as 'x'. The following induces an error, until -std is added to get
4861 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4862 array size at least. It's necessary to write '\x00'==0 to get something
4863 that's true only with -std. */
4864 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4865
4866 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4867 inside strings and character constants. */
4868 #define FOO(x) 'x'
4869 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4870
4871 int test (int i, double x);
4872 struct s1 {int (*f) (int a);};
4873 struct s2 {int (*f) (double a);};
4874 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4875 int argc;
4876 char **argv;
4877 int
4878 main ()
4879 {
4880 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4881 ;
4882 return 0;
4883 }
4884 _ACEOF
4885 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4886 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4887 do
4888 CC="$ac_save_CC $ac_arg"
4889 if ac_fn_c_try_compile "$LINENO"; then :
4890 ac_cv_prog_cc_c89=$ac_arg
4891 fi
4892 rm -f core conftest.err conftest.$ac_objext
4893 test "x$ac_cv_prog_cc_c89" != "xno" && break
4894 done
4895 rm -f conftest.$ac_ext
4896 CC=$ac_save_CC
4897
4898 fi
4899 # AC_CACHE_VAL
4900 case "x$ac_cv_prog_cc_c89" in
4901 x)
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4903 $as_echo "none needed" >&6; } ;;
4904 xno)
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4906 $as_echo "unsupported" >&6; } ;;
4907 *)
4908 CC="$CC $ac_cv_prog_cc_c89"
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4910 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4911 esac
4912 if test "x$ac_cv_prog_cc_c89" != xno; then :
4913
4914 fi
4915
4916 ac_ext=c
4917 ac_cpp='$CPP $CPPFLAGS'
4918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4921
4922 depcc="$CC" am_compiler_list=
4923
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4925 $as_echo_n "checking dependency style of $depcc... " >&6; }
4926 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4927 $as_echo_n "(cached) " >&6
4928 else
4929 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4930 # We make a subdir and do the tests there. Otherwise we can end up
4931 # making bogus files that we don't know about and never remove. For
4932 # instance it was reported that on HP-UX the gcc test will end up
4933 # making a dummy file named `D' -- because `-MD' means `put the output
4934 # in D'.
4935 rm -rf conftest.dir
4936 mkdir conftest.dir
4937 # Copy depcomp to subdir because otherwise we won't find it if we're
4938 # using a relative directory.
4939 cp "$am_depcomp" conftest.dir
4940 cd conftest.dir
4941 # We will build objects and dependencies in a subdirectory because
4942 # it helps to detect inapplicable dependency modes. For instance
4943 # both Tru64's cc and ICC support -MD to output dependencies as a
4944 # side effect of compilation, but ICC will put the dependencies in
4945 # the current directory while Tru64 will put them in the object
4946 # directory.
4947 mkdir sub
4948
4949 am_cv_CC_dependencies_compiler_type=none
4950 if test "$am_compiler_list" = ""; then
4951 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4952 fi
4953 am__universal=false
4954 case " $depcc " in #(
4955 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4956 esac
4957
4958 for depmode in $am_compiler_list; do
4959 # Setup a source with many dependencies, because some compilers
4960 # like to wrap large dependency lists on column 80 (with \), and
4961 # we should not choose a depcomp mode which is confused by this.
4962 #
4963 # We need to recreate these files for each test, as the compiler may
4964 # overwrite some of them when testing with obscure command lines.
4965 # This happens at least with the AIX C compiler.
4966 : > sub/conftest.c
4967 for i in 1 2 3 4 5 6; do
4968 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4969 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4970 # Solaris 8's {/usr,}/bin/sh.
4971 touch sub/conftst$i.h
4972 done
4973 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4974
4975 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4976 # mode. It turns out that the SunPro C++ compiler does not properly
4977 # handle `-M -o', and we need to detect this. Also, some Intel
4978 # versions had trouble with output in subdirs
4979 am__obj=sub/conftest.${OBJEXT-o}
4980 am__minus_obj="-o $am__obj"
4981 case $depmode in
4982 gcc)
4983 # This depmode causes a compiler race in universal mode.
4984 test "$am__universal" = false || continue
4985 ;;
4986 nosideeffect)
4987 # after this tag, mechanisms are not by side-effect, so they'll
4988 # only be used when explicitly requested
4989 if test "x$enable_dependency_tracking" = xyes; then
4990 continue
4991 else
4992 break
4993 fi
4994 ;;
4995 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4996 # This compiler won't grok `-c -o', but also, the minuso test has
4997 # not run yet. These depmodes are late enough in the game, and
4998 # so weak that their functioning should not be impacted.
4999 am__obj=conftest.${OBJEXT-o}
5000 am__minus_obj=
5001 ;;
5002 none) break ;;
5003 esac
5004 if depmode=$depmode \
5005 source=sub/conftest.c object=$am__obj \
5006 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5007 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5008 >/dev/null 2>conftest.err &&
5009 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5010 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5011 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5012 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5013 # icc doesn't choke on unknown options, it will just issue warnings
5014 # or remarks (even with -Werror). So we grep stderr for any message
5015 # that says an option was ignored or not supported.
5016 # When given -MP, icc 7.0 and 7.1 complain thusly:
5017 # icc: Command line warning: ignoring option '-M'; no argument required
5018 # The diagnosis changed in icc 8.0:
5019 # icc: Command line remark: option '-MP' not supported
5020 if (grep 'ignoring option' conftest.err ||
5021 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5022 am_cv_CC_dependencies_compiler_type=$depmode
5023 break
5024 fi
5025 fi
5026 done
5027
5028 cd ..
5029 rm -rf conftest.dir
5030 else
5031 am_cv_CC_dependencies_compiler_type=none
5032 fi
5033
5034 fi
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5036 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5037 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5038
5039 if
5040 test "x$enable_dependency_tracking" != xno \
5041 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5042 am__fastdepCC_TRUE=
5043 am__fastdepCC_FALSE='#'
5044 else
5045 am__fastdepCC_TRUE='#'
5046 am__fastdepCC_FALSE=
5047 fi
5048
5049
5050 ac_ext=c
5051 ac_cpp='$CPP $CPPFLAGS'
5052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5056 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5057 # On Suns, sometimes $CPP names a directory.
5058 if test -n "$CPP" && test -d "$CPP"; then
5059 CPP=
5060 fi
5061 if test -z "$CPP"; then
5062 if ${ac_cv_prog_CPP+:} false; then :
5063 $as_echo_n "(cached) " >&6
5064 else
5065 # Double quotes because CPP needs to be expanded
5066 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5067 do
5068 ac_preproc_ok=false
5069 for ac_c_preproc_warn_flag in '' yes
5070 do
5071 # Use a header file that comes with gcc, so configuring glibc
5072 # with a fresh cross-compiler works.
5073 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5074 # <limits.h> exists even on freestanding compilers.
5075 # On the NeXT, cc -E runs the code through the compiler's parser,
5076 # not just through cpp. "Syntax error" is here to catch this case.
5077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5078 /* end confdefs.h. */
5079 #ifdef __STDC__
5080 # include <limits.h>
5081 #else
5082 # include <assert.h>
5083 #endif
5084 Syntax error
5085 _ACEOF
5086 if ac_fn_c_try_cpp "$LINENO"; then :
5087
5088 else
5089 # Broken: fails on valid input.
5090 continue
5091 fi
5092 rm -f conftest.err conftest.i conftest.$ac_ext
5093
5094 # OK, works on sane cases. Now check whether nonexistent headers
5095 # can be detected and how.
5096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5097 /* end confdefs.h. */
5098 #include <ac_nonexistent.h>
5099 _ACEOF
5100 if ac_fn_c_try_cpp "$LINENO"; then :
5101 # Broken: success on invalid input.
5102 continue
5103 else
5104 # Passes both tests.
5105 ac_preproc_ok=:
5106 break
5107 fi
5108 rm -f conftest.err conftest.i conftest.$ac_ext
5109
5110 done
5111 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5112 rm -f conftest.i conftest.err conftest.$ac_ext
5113 if $ac_preproc_ok; then :
5114 break
5115 fi
5116
5117 done
5118 ac_cv_prog_CPP=$CPP
5119
5120 fi
5121 CPP=$ac_cv_prog_CPP
5122 else
5123 ac_cv_prog_CPP=$CPP
5124 fi
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5126 $as_echo "$CPP" >&6; }
5127 ac_preproc_ok=false
5128 for ac_c_preproc_warn_flag in '' yes
5129 do
5130 # Use a header file that comes with gcc, so configuring glibc
5131 # with a fresh cross-compiler works.
5132 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5133 # <limits.h> exists even on freestanding compilers.
5134 # On the NeXT, cc -E runs the code through the compiler's parser,
5135 # not just through cpp. "Syntax error" is here to catch this case.
5136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5137 /* end confdefs.h. */
5138 #ifdef __STDC__
5139 # include <limits.h>
5140 #else
5141 # include <assert.h>
5142 #endif
5143 Syntax error
5144 _ACEOF
5145 if ac_fn_c_try_cpp "$LINENO"; then :
5146
5147 else
5148 # Broken: fails on valid input.
5149 continue
5150 fi
5151 rm -f conftest.err conftest.i conftest.$ac_ext
5152
5153 # OK, works on sane cases. Now check whether nonexistent headers
5154 # can be detected and how.
5155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5156 /* end confdefs.h. */
5157 #include <ac_nonexistent.h>
5158 _ACEOF
5159 if ac_fn_c_try_cpp "$LINENO"; then :
5160 # Broken: success on invalid input.
5161 continue
5162 else
5163 # Passes both tests.
5164 ac_preproc_ok=:
5165 break
5166 fi
5167 rm -f conftest.err conftest.i conftest.$ac_ext
5168
5169 done
5170 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5171 rm -f conftest.i conftest.err conftest.$ac_ext
5172 if $ac_preproc_ok; then :
5173
5174 else
5175 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5176 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5177 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5178 See \`config.log' for more details" "$LINENO" 5; }
5179 fi
5180
5181 ac_ext=c
5182 ac_cpp='$CPP $CPPFLAGS'
5183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5186
5187
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5189 $as_echo_n "checking whether ln -s works... " >&6; }
5190 LN_S=$as_ln_s
5191 if test "$LN_S" = "ln -s"; then
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5193 $as_echo "yes" >&6; }
5194 else
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5196 $as_echo "no, using $LN_S" >&6; }
5197 fi
5198
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5200 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5201 set x ${MAKE-make}
5202 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5203 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5204 $as_echo_n "(cached) " >&6
5205 else
5206 cat >conftest.make <<\_ACEOF
5207 SHELL = /bin/sh
5208 all:
5209 @echo '@@@%%%=$(MAKE)=@@@%%%'
5210 _ACEOF
5211 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5212 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5213 *@@@%%%=?*=@@@%%%*)
5214 eval ac_cv_prog_make_${ac_make}_set=yes;;
5215 *)
5216 eval ac_cv_prog_make_${ac_make}_set=no;;
5217 esac
5218 rm -f conftest.make
5219 fi
5220 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5222 $as_echo "yes" >&6; }
5223 SET_MAKE=
5224 else
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5226 $as_echo "no" >&6; }
5227 SET_MAKE="MAKE=${MAKE-make}"
5228 fi
5229
5230 # automake 1.12 seems to require this, but automake 1.11 doesn't recognize it
5231
5232 if test -n "$ac_tool_prefix"; then
5233 for ac_prog in ar lib "link -lib"
5234 do
5235 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5236 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5238 $as_echo_n "checking for $ac_word... " >&6; }
5239 if ${ac_cv_prog_AR+:} false; then :
5240 $as_echo_n "(cached) " >&6
5241 else
5242 if test -n "$AR"; then
5243 ac_cv_prog_AR="$AR" # Let the user override the test.
5244 else
5245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246 for as_dir in $PATH
5247 do
5248 IFS=$as_save_IFS
5249 test -z "$as_dir" && as_dir=.
5250 for ac_exec_ext in '' $ac_executable_extensions; do
5251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5252 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5254 break 2
5255 fi
5256 done
5257 done
5258 IFS=$as_save_IFS
5259
5260 fi
5261 fi
5262 AR=$ac_cv_prog_AR
5263 if test -n "$AR"; then
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5265 $as_echo "$AR" >&6; }
5266 else
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5268 $as_echo "no" >&6; }
5269 fi
5270
5271
5272 test -n "$AR" && break
5273 done
5274 fi
5275 if test -z "$AR"; then
5276 ac_ct_AR=$AR
5277 for ac_prog in ar lib "link -lib"
5278 do
5279 # Extract the first word of "$ac_prog", so it can be a program name with args.
5280 set dummy $ac_prog; ac_word=$2
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5282 $as_echo_n "checking for $ac_word... " >&6; }
5283 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5284 $as_echo_n "(cached) " >&6
5285 else
5286 if test -n "$ac_ct_AR"; then
5287 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5288 else
5289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5290 for as_dir in $PATH
5291 do
5292 IFS=$as_save_IFS
5293 test -z "$as_dir" && as_dir=.
5294 for ac_exec_ext in '' $ac_executable_extensions; do
5295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5296 ac_cv_prog_ac_ct_AR="$ac_prog"
5297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5298 break 2
5299 fi
5300 done
5301 done
5302 IFS=$as_save_IFS
5303
5304 fi
5305 fi
5306 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5307 if test -n "$ac_ct_AR"; then
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5309 $as_echo "$ac_ct_AR" >&6; }
5310 else
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5312 $as_echo "no" >&6; }
5313 fi
5314
5315
5316 test -n "$ac_ct_AR" && break
5317 done
5318
5319 if test "x$ac_ct_AR" = x; then
5320 AR="false"
5321 else
5322 case $cross_compiling:$ac_tool_warned in
5323 yes:)
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5325 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5326 ac_tool_warned=yes ;;
5327 esac
5328 AR=$ac_ct_AR
5329 fi
5330 fi
5331
5332 : ${AR=ar}
5333
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5335 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5336 if ${am_cv_ar_interface+:} false; then :
5337 $as_echo_n "(cached) " >&6
5338 else
5339 am_cv_ar_interface=ar
5340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5341 /* end confdefs.h. */
5342 int some_variable = 0;
5343 _ACEOF
5344 if ac_fn_c_try_compile "$LINENO"; then :
5345 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5347 (eval $am_ar_try) 2>&5
5348 ac_status=$?
5349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5350 test $ac_status = 0; }
5351 if test "$ac_status" -eq 0; then
5352 am_cv_ar_interface=ar
5353 else
5354 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5355 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5356 (eval $am_ar_try) 2>&5
5357 ac_status=$?
5358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5359 test $ac_status = 0; }
5360 if test "$ac_status" -eq 0; then
5361 am_cv_ar_interface=lib
5362 else
5363 am_cv_ar_interface=unknown
5364 fi
5365 fi
5366 rm -f conftest.lib libconftest.a
5367
5368 fi
5369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5370
5371 fi
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5373 $as_echo "$am_cv_ar_interface" >&6; }
5374
5375 case $am_cv_ar_interface in
5376 ar)
5377 ;;
5378 lib)
5379 # Microsoft lib, so override with the ar-lib wrapper script.
5380 # FIXME: It is wrong to rewrite AR.
5381 # But if we don't then we get into trouble of one sort or another.
5382 # A longer-term fix would be to have automake use am__AR in this case,
5383 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5384 # similar.
5385 AR="$am_aux_dir/ar-lib $AR"
5386 ;;
5387 unknown)
5388 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5389 ;;
5390 esac
5391
5392 case `pwd` in
5393 *\ * | *\ *)
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5395 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5396 esac
5397
5398
5399
5400 macro_version='2.4.2'
5401 macro_revision='1.3337'
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415 ltmain="$ac_aux_dir/ltmain.sh"
5416
5417 # Make sure we can run config.sub.
5418 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5419 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5420
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5422 $as_echo_n "checking build system type... " >&6; }
5423 if ${ac_cv_build+:} false; then :
5424 $as_echo_n "(cached) " >&6
5425 else
5426 ac_build_alias=$build_alias
5427 test "x$ac_build_alias" = x &&
5428 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5429 test "x$ac_build_alias" = x &&
5430 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5431 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5432 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5433
5434 fi
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5436 $as_echo "$ac_cv_build" >&6; }
5437 case $ac_cv_build in
5438 *-*-*) ;;
5439 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5440 esac
5441 build=$ac_cv_build
5442 ac_save_IFS=$IFS; IFS='-'
5443 set x $ac_cv_build
5444 shift
5445 build_cpu=$1
5446 build_vendor=$2
5447 shift; shift
5448 # Remember, the first character of IFS is used to create $*,
5449 # except with old shells:
5450 build_os=$*
5451 IFS=$ac_save_IFS
5452 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5453
5454
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5456 $as_echo_n "checking host system type... " >&6; }
5457 if ${ac_cv_host+:} false; then :
5458 $as_echo_n "(cached) " >&6
5459 else
5460 if test "x$host_alias" = x; then
5461 ac_cv_host=$ac_cv_build
5462 else
5463 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5464 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5465 fi
5466
5467 fi
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5469 $as_echo "$ac_cv_host" >&6; }
5470 case $ac_cv_host in
5471 *-*-*) ;;
5472 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5473 esac
5474 host=$ac_cv_host
5475 ac_save_IFS=$IFS; IFS='-'
5476 set x $ac_cv_host
5477 shift
5478 host_cpu=$1
5479 host_vendor=$2
5480 shift; shift
5481 # Remember, the first character of IFS is used to create $*,
5482 # except with old shells:
5483 host_os=$*
5484 IFS=$ac_save_IFS
5485 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5486
5487
5488 # Backslashify metacharacters that are still active within
5489 # double-quoted strings.
5490 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5491
5492 # Same as above, but do not quote variable references.
5493 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5494
5495 # Sed substitution to delay expansion of an escaped shell variable in a
5496 # double_quote_subst'ed string.
5497 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5498
5499 # Sed substitution to delay expansion of an escaped single quote.
5500 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5501
5502 # Sed substitution to avoid accidental globbing in evaled expressions
5503 no_glob_subst='s/\*/\\\*/g'
5504
5505 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5506 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5507 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5508
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5510 $as_echo_n "checking how to print strings... " >&6; }
5511 # Test print first, because it will be a builtin if present.
5512 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5513 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5514 ECHO='print -r --'
5515 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5516 ECHO='printf %s\n'
5517 else
5518 # Use this function as a fallback that always works.
5519 func_fallback_echo ()
5520 {
5521 eval 'cat <<_LTECHO_EOF
5522 $1
5523 _LTECHO_EOF'
5524 }
5525 ECHO='func_fallback_echo'
5526 fi
5527
5528 # func_echo_all arg...
5529 # Invoke $ECHO with all args, space-separated.
5530 func_echo_all ()
5531 {
5532 $ECHO ""
5533 }
5534
5535 case "$ECHO" in
5536 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5537 $as_echo "printf" >&6; } ;;
5538 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5539 $as_echo "print -r" >&6; } ;;
5540 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5541 $as_echo "cat" >&6; } ;;
5542 esac
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5558 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5559 if ${ac_cv_path_SED+:} false; then :
5560 $as_echo_n "(cached) " >&6
5561 else
5562 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5563 for ac_i in 1 2 3 4 5 6 7; do
5564 ac_script="$ac_script$as_nl$ac_script"
5565 done
5566 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5567 { ac_script=; unset ac_script;}
5568 if test -z "$SED"; then
5569 ac_path_SED_found=false
5570 # Loop through the user's path and test for each of PROGNAME-LIST
5571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5572 for as_dir in $PATH
5573 do
5574 IFS=$as_save_IFS
5575 test -z "$as_dir" && as_dir=.
5576 for ac_prog in sed gsed; do
5577 for ac_exec_ext in '' $ac_executable_extensions; do
5578 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5579 as_fn_executable_p "$ac_path_SED" || continue
5580 # Check for GNU ac_path_SED and select it if it is found.
5581 # Check for GNU $ac_path_SED
5582 case `"$ac_path_SED" --version 2>&1` in
5583 *GNU*)
5584 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5585 *)
5586 ac_count=0
5587 $as_echo_n 0123456789 >"conftest.in"
5588 while :
5589 do
5590 cat "conftest.in" "conftest.in" >"conftest.tmp"
5591 mv "conftest.tmp" "conftest.in"
5592 cp "conftest.in" "conftest.nl"
5593 $as_echo '' >> "conftest.nl"
5594 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5595 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5596 as_fn_arith $ac_count + 1 && ac_count=$as_val
5597 if test $ac_count -gt ${ac_path_SED_max-0}; then
5598 # Best one so far, save it but keep looking for a better one
5599 ac_cv_path_SED="$ac_path_SED"
5600 ac_path_SED_max=$ac_count
5601 fi
5602 # 10*(2^10) chars as input seems more than enough
5603 test $ac_count -gt 10 && break
5604 done
5605 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5606 esac
5607
5608 $ac_path_SED_found && break 3
5609 done
5610 done
5611 done
5612 IFS=$as_save_IFS
5613 if test -z "$ac_cv_path_SED"; then
5614 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5615 fi
5616 else
5617 ac_cv_path_SED=$SED
5618 fi
5619
5620 fi
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5622 $as_echo "$ac_cv_path_SED" >&6; }
5623 SED="$ac_cv_path_SED"
5624 rm -f conftest.sed
5625
5626 test -z "$SED" && SED=sed
5627 Xsed="$SED -e 1s/^X//"
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5640 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5641 if ${ac_cv_path_GREP+:} false; then :
5642 $as_echo_n "(cached) " >&6
5643 else
5644 if test -z "$GREP"; then
5645 ac_path_GREP_found=false
5646 # Loop through the user's path and test for each of PROGNAME-LIST
5647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5648 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5649 do
5650 IFS=$as_save_IFS
5651 test -z "$as_dir" && as_dir=.
5652 for ac_prog in grep ggrep; do
5653 for ac_exec_ext in '' $ac_executable_extensions; do
5654 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5655 as_fn_executable_p "$ac_path_GREP" || continue
5656 # Check for GNU ac_path_GREP and select it if it is found.
5657 # Check for GNU $ac_path_GREP
5658 case `"$ac_path_GREP" --version 2>&1` in
5659 *GNU*)
5660 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5661 *)
5662 ac_count=0
5663 $as_echo_n 0123456789 >"conftest.in"
5664 while :
5665 do
5666 cat "conftest.in" "conftest.in" >"conftest.tmp"
5667 mv "conftest.tmp" "conftest.in"
5668 cp "conftest.in" "conftest.nl"
5669 $as_echo 'GREP' >> "conftest.nl"
5670 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5671 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5672 as_fn_arith $ac_count + 1 && ac_count=$as_val
5673 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5674 # Best one so far, save it but keep looking for a better one
5675 ac_cv_path_GREP="$ac_path_GREP"
5676 ac_path_GREP_max=$ac_count
5677 fi
5678 # 10*(2^10) chars as input seems more than enough
5679 test $ac_count -gt 10 && break
5680 done
5681 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5682 esac
5683
5684 $ac_path_GREP_found && break 3
5685 done
5686 done
5687 done
5688 IFS=$as_save_IFS
5689 if test -z "$ac_cv_path_GREP"; then
5690 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5691 fi
5692 else
5693 ac_cv_path_GREP=$GREP
5694 fi
5695
5696 fi
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5698 $as_echo "$ac_cv_path_GREP" >&6; }
5699 GREP="$ac_cv_path_GREP"
5700
5701
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5703 $as_echo_n "checking for egrep... " >&6; }
5704 if ${ac_cv_path_EGREP+:} false; then :
5705 $as_echo_n "(cached) " >&6
5706 else
5707 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5708 then ac_cv_path_EGREP="$GREP -E"
5709 else
5710 if test -z "$EGREP"; then
5711 ac_path_EGREP_found=false
5712 # Loop through the user's path and test for each of PROGNAME-LIST
5713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5714 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5715 do
5716 IFS=$as_save_IFS
5717 test -z "$as_dir" && as_dir=.
5718 for ac_prog in egrep; do
5719 for ac_exec_ext in '' $ac_executable_extensions; do
5720 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5721 as_fn_executable_p "$ac_path_EGREP" || continue
5722 # Check for GNU ac_path_EGREP and select it if it is found.
5723 # Check for GNU $ac_path_EGREP
5724 case `"$ac_path_EGREP" --version 2>&1` in
5725 *GNU*)
5726 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5727 *)
5728 ac_count=0
5729 $as_echo_n 0123456789 >"conftest.in"
5730 while :
5731 do
5732 cat "conftest.in" "conftest.in" >"conftest.tmp"
5733 mv "conftest.tmp" "conftest.in"
5734 cp "conftest.in" "conftest.nl"
5735 $as_echo 'EGREP' >> "conftest.nl"
5736 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5737 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5738 as_fn_arith $ac_count + 1 && ac_count=$as_val
5739 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5740 # Best one so far, save it but keep looking for a better one
5741 ac_cv_path_EGREP="$ac_path_EGREP"
5742 ac_path_EGREP_max=$ac_count
5743 fi
5744 # 10*(2^10) chars as input seems more than enough
5745 test $ac_count -gt 10 && break
5746 done
5747 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5748 esac
5749
5750 $ac_path_EGREP_found && break 3
5751 done
5752 done
5753 done
5754 IFS=$as_save_IFS
5755 if test -z "$ac_cv_path_EGREP"; then
5756 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5757 fi
5758 else
5759 ac_cv_path_EGREP=$EGREP
5760 fi
5761
5762 fi
5763 fi
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5765 $as_echo "$ac_cv_path_EGREP" >&6; }
5766 EGREP="$ac_cv_path_EGREP"
5767
5768
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5770 $as_echo_n "checking for fgrep... " >&6; }
5771 if ${ac_cv_path_FGREP+:} false; then :
5772 $as_echo_n "(cached) " >&6
5773 else
5774 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5775 then ac_cv_path_FGREP="$GREP -F"
5776 else
5777 if test -z "$FGREP"; then
5778 ac_path_FGREP_found=false
5779 # Loop through the user's path and test for each of PROGNAME-LIST
5780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5781 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5782 do
5783 IFS=$as_save_IFS
5784 test -z "$as_dir" && as_dir=.
5785 for ac_prog in fgrep; do
5786 for ac_exec_ext in '' $ac_executable_extensions; do
5787 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5788 as_fn_executable_p "$ac_path_FGREP" || continue
5789 # Check for GNU ac_path_FGREP and select it if it is found.
5790 # Check for GNU $ac_path_FGREP
5791 case `"$ac_path_FGREP" --version 2>&1` in
5792 *GNU*)
5793 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5794 *)
5795 ac_count=0
5796 $as_echo_n 0123456789 >"conftest.in"
5797 while :
5798 do
5799 cat "conftest.in" "conftest.in" >"conftest.tmp"
5800 mv "conftest.tmp" "conftest.in"
5801 cp "conftest.in" "conftest.nl"
5802 $as_echo 'FGREP' >> "conftest.nl"
5803 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5804 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5805 as_fn_arith $ac_count + 1 && ac_count=$as_val
5806 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5807 # Best one so far, save it but keep looking for a better one
5808 ac_cv_path_FGREP="$ac_path_FGREP"
5809 ac_path_FGREP_max=$ac_count
5810 fi
5811 # 10*(2^10) chars as input seems more than enough
5812 test $ac_count -gt 10 && break
5813 done
5814 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5815 esac
5816
5817 $ac_path_FGREP_found && break 3
5818 done
5819 done
5820 done
5821 IFS=$as_save_IFS
5822 if test -z "$ac_cv_path_FGREP"; then
5823 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5824 fi
5825 else
5826 ac_cv_path_FGREP=$FGREP
5827 fi
5828
5829 fi
5830 fi
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5832 $as_echo "$ac_cv_path_FGREP" >&6; }
5833 FGREP="$ac_cv_path_FGREP"
5834
5835
5836 test -z "$GREP" && GREP=grep
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856 # Check whether --with-gnu-ld was given.
5857 if test "${with_gnu_ld+set}" = set; then :
5858 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5859 else
5860 with_gnu_ld=no
5861 fi
5862
5863 ac_prog=ld
5864 if test "$GCC" = yes; then
5865 # Check if gcc -print-prog-name=ld gives a path.
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5867 $as_echo_n "checking for ld used by $CC... " >&6; }
5868 case $host in
5869 *-*-mingw*)
5870 # gcc leaves a trailing carriage return which upsets mingw
5871 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5872 *)
5873 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5874 esac
5875 case $ac_prog in
5876 # Accept absolute paths.
5877 [\\/]* | ?:[\\/]*)
5878 re_direlt='/[^/][^/]*/\.\./'
5879 # Canonicalize the pathname of ld
5880 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5881 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5882 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5883 done
5884 test -z "$LD" && LD="$ac_prog"
5885 ;;
5886 "")
5887 # If it fails, then pretend we aren't using GCC.
5888 ac_prog=ld
5889 ;;
5890 *)
5891 # If it is relative, then search for the first ld in PATH.
5892 with_gnu_ld=unknown
5893 ;;
5894 esac
5895 elif test "$with_gnu_ld" = yes; then
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5897 $as_echo_n "checking for GNU ld... " >&6; }
5898 else
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5900 $as_echo_n "checking for non-GNU ld... " >&6; }
5901 fi
5902 if ${lt_cv_path_LD+:} false; then :
5903 $as_echo_n "(cached) " >&6
5904 else
5905 if test -z "$LD"; then
5906 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5907 for ac_dir in $PATH; do
5908 IFS="$lt_save_ifs"
5909 test -z "$ac_dir" && ac_dir=.
5910 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5911 lt_cv_path_LD="$ac_dir/$ac_prog"
5912 # Check to see if the program is GNU ld. I'd rather use --version,
5913 # but apparently some variants of GNU ld only accept -v.
5914 # Break only if it was the GNU/non-GNU ld that we prefer.
5915 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5916 *GNU* | *'with BFD'*)
5917 test "$with_gnu_ld" != no && break
5918 ;;
5919 *)
5920 test "$with_gnu_ld" != yes && break
5921 ;;
5922 esac
5923 fi
5924 done
5925 IFS="$lt_save_ifs"
5926 else
5927 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5928 fi
5929 fi
5930
5931 LD="$lt_cv_path_LD"
5932 if test -n "$LD"; then
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5934 $as_echo "$LD" >&6; }
5935 else
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5937 $as_echo "no" >&6; }
5938 fi
5939 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5941 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5942 if ${lt_cv_prog_gnu_ld+:} false; then :
5943 $as_echo_n "(cached) " >&6
5944 else
5945 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5946 case `$LD -v 2>&1 </dev/null` in
5947 *GNU* | *'with BFD'*)
5948 lt_cv_prog_gnu_ld=yes
5949 ;;
5950 *)
5951 lt_cv_prog_gnu_ld=no
5952 ;;
5953 esac
5954 fi
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5956 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5957 with_gnu_ld=$lt_cv_prog_gnu_ld
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5968 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5969 if ${lt_cv_path_NM+:} false; then :
5970 $as_echo_n "(cached) " >&6
5971 else
5972 if test -n "$NM"; then
5973 # Let the user override the test.
5974 lt_cv_path_NM="$NM"
5975 else
5976 lt_nm_to_check="${ac_tool_prefix}nm"
5977 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5978 lt_nm_to_check="$lt_nm_to_check nm"
5979 fi
5980 for lt_tmp_nm in $lt_nm_to_check; do
5981 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5982 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5983 IFS="$lt_save_ifs"
5984 test -z "$ac_dir" && ac_dir=.
5985 tmp_nm="$ac_dir/$lt_tmp_nm"
5986 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5987 # Check to see if the nm accepts a BSD-compat flag.
5988 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5989 # nm: unknown option "B" ignored
5990 # Tru64's nm complains that /dev/null is an invalid object file
5991 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5992 */dev/null* | *'Invalid file or object type'*)
5993 lt_cv_path_NM="$tmp_nm -B"
5994 break
5995 ;;
5996 *)
5997 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5998 */dev/null*)
5999 lt_cv_path_NM="$tmp_nm -p"
6000 break
6001 ;;
6002 *)
6003 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6004 continue # so that we can try to find one that supports BSD flags
6005 ;;
6006 esac
6007 ;;
6008 esac
6009 fi
6010 done
6011 IFS="$lt_save_ifs"
6012 done
6013 : ${lt_cv_path_NM=no}
6014 fi
6015 fi
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6017 $as_echo "$lt_cv_path_NM" >&6; }
6018 if test "$lt_cv_path_NM" != "no"; then
6019 NM="$lt_cv_path_NM"
6020 else
6021 # Didn't find any BSD compatible name lister, look for dumpbin.
6022 if test -n "$DUMPBIN"; then :
6023 # Let the user override the test.
6024 else
6025 if test -n "$ac_tool_prefix"; then
6026 for ac_prog in dumpbin "link -dump"
6027 do
6028 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6029 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6031 $as_echo_n "checking for $ac_word... " >&6; }
6032 if ${ac_cv_prog_DUMPBIN+:} false; then :
6033 $as_echo_n "(cached) " >&6
6034 else
6035 if test -n "$DUMPBIN"; then
6036 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6037 else
6038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6039 for as_dir in $PATH
6040 do
6041 IFS=$as_save_IFS
6042 test -z "$as_dir" && as_dir=.
6043 for ac_exec_ext in '' $ac_executable_extensions; do
6044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6045 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6047 break 2
6048 fi
6049 done
6050 done
6051 IFS=$as_save_IFS
6052
6053 fi
6054 fi
6055 DUMPBIN=$ac_cv_prog_DUMPBIN
6056 if test -n "$DUMPBIN"; then
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6058 $as_echo "$DUMPBIN" >&6; }
6059 else
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6061 $as_echo "no" >&6; }
6062 fi
6063
6064
6065 test -n "$DUMPBIN" && break
6066 done
6067 fi
6068 if test -z "$DUMPBIN"; then
6069 ac_ct_DUMPBIN=$DUMPBIN
6070 for ac_prog in dumpbin "link -dump"
6071 do
6072 # Extract the first word of "$ac_prog", so it can be a program name with args.
6073 set dummy $ac_prog; ac_word=$2
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6075 $as_echo_n "checking for $ac_word... " >&6; }
6076 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6077 $as_echo_n "(cached) " >&6
6078 else
6079 if test -n "$ac_ct_DUMPBIN"; then
6080 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6081 else
6082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083 for as_dir in $PATH
6084 do
6085 IFS=$as_save_IFS
6086 test -z "$as_dir" && as_dir=.
6087 for ac_exec_ext in '' $ac_executable_extensions; do
6088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6089 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6091 break 2
6092 fi
6093 done
6094 done
6095 IFS=$as_save_IFS
6096
6097 fi
6098 fi
6099 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6100 if test -n "$ac_ct_DUMPBIN"; then
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6102 $as_echo "$ac_ct_DUMPBIN" >&6; }
6103 else
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6105 $as_echo "no" >&6; }
6106 fi
6107
6108
6109 test -n "$ac_ct_DUMPBIN" && break
6110 done
6111
6112 if test "x$ac_ct_DUMPBIN" = x; then
6113 DUMPBIN=":"
6114 else
6115 case $cross_compiling:$ac_tool_warned in
6116 yes:)
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6119 ac_tool_warned=yes ;;
6120 esac
6121 DUMPBIN=$ac_ct_DUMPBIN
6122 fi
6123 fi
6124
6125 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6126 *COFF*)
6127 DUMPBIN="$DUMPBIN -symbols"
6128 ;;
6129 *)
6130 DUMPBIN=:
6131 ;;
6132 esac
6133 fi
6134
6135 if test "$DUMPBIN" != ":"; then
6136 NM="$DUMPBIN"
6137 fi
6138 fi
6139 test -z "$NM" && NM=nm
6140
6141
6142
6143
6144
6145
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6147 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6148 if ${lt_cv_nm_interface+:} false; then :
6149 $as_echo_n "(cached) " >&6
6150 else
6151 lt_cv_nm_interface="BSD nm"
6152 echo "int some_variable = 0;" > conftest.$ac_ext
6153 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6154 (eval "$ac_compile" 2>conftest.err)
6155 cat conftest.err >&5
6156 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6157 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6158 cat conftest.err >&5
6159 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6160 cat conftest.out >&5
6161 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6162 lt_cv_nm_interface="MS dumpbin"
6163 fi
6164 rm -f conftest*
6165 fi
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6167 $as_echo "$lt_cv_nm_interface" >&6; }
6168
6169 # find the maximum length of command line arguments
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6171 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6172 if ${lt_cv_sys_max_cmd_len+:} false; then :
6173 $as_echo_n "(cached) " >&6
6174 else
6175 i=0
6176 teststring="ABCD"
6177
6178 case $build_os in
6179 msdosdjgpp*)
6180 # On DJGPP, this test can blow up pretty badly due to problems in libc
6181 # (any single argument exceeding 2000 bytes causes a buffer overrun
6182 # during glob expansion). Even if it were fixed, the result of this
6183 # check would be larger than it should be.
6184 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6185 ;;
6186
6187 gnu*)
6188 # Under GNU Hurd, this test is not required because there is
6189 # no limit to the length of command line arguments.
6190 # Libtool will interpret -1 as no limit whatsoever
6191 lt_cv_sys_max_cmd_len=-1;
6192 ;;
6193
6194 cygwin* | mingw* | cegcc*)
6195 # On Win9x/ME, this test blows up -- it succeeds, but takes
6196 # about 5 minutes as the teststring grows exponentially.
6197 # Worse, since 9x/ME are not pre-emptively multitasking,
6198 # you end up with a "frozen" computer, even though with patience
6199 # the test eventually succeeds (with a max line length of 256k).
6200 # Instead, let's just punt: use the minimum linelength reported by
6201 # all of the supported platforms: 8192 (on NT/2K/XP).
6202 lt_cv_sys_max_cmd_len=8192;
6203 ;;
6204
6205 mint*)
6206 # On MiNT this can take a long time and run out of memory.
6207 lt_cv_sys_max_cmd_len=8192;
6208 ;;
6209
6210 amigaos*)
6211 # On AmigaOS with pdksh, this test takes hours, literally.
6212 # So we just punt and use a minimum line length of 8192.
6213 lt_cv_sys_max_cmd_len=8192;
6214 ;;
6215
6216 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6217 # This has been around since 386BSD, at least. Likely further.
6218 if test -x /sbin/sysctl; then
6219 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6220 elif test -x /usr/sbin/sysctl; then
6221 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6222 else
6223 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6224 fi
6225 # And add a safety zone
6226 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6227 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6228 ;;
6229
6230 interix*)
6231 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6232 lt_cv_sys_max_cmd_len=196608
6233 ;;
6234
6235 os2*)
6236 # The test takes a long time on OS/2.
6237 lt_cv_sys_max_cmd_len=8192
6238 ;;
6239
6240 osf*)
6241 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6242 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6243 # nice to cause kernel panics so lets avoid the loop below.
6244 # First set a reasonable default.
6245 lt_cv_sys_max_cmd_len=16384
6246 #
6247 if test -x /sbin/sysconfig; then
6248 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6249 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6250 esac
6251 fi
6252 ;;
6253 sco3.2v5*)
6254 lt_cv_sys_max_cmd_len=102400
6255 ;;
6256 sysv5* | sco5v6* | sysv4.2uw2*)
6257 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6258 if test -n "$kargmax"; then
6259 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6260 else
6261 lt_cv_sys_max_cmd_len=32768
6262 fi
6263 ;;
6264 *)
6265 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6266 if test -n "$lt_cv_sys_max_cmd_len"; then
6267 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6268 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6269 else
6270 # Make teststring a little bigger before we do anything with it.
6271 # a 1K string should be a reasonable start.
6272 for i in 1 2 3 4 5 6 7 8 ; do
6273 teststring=$teststring$teststring
6274 done
6275 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6276 # If test is not a shell built-in, we'll probably end up computing a
6277 # maximum length that is only half of the actual maximum length, but
6278 # we can't tell.
6279 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6280 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6281 test $i != 17 # 1/2 MB should be enough
6282 do
6283 i=`expr $i + 1`
6284 teststring=$teststring$teststring
6285 done
6286 # Only check the string length outside the loop.
6287 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6288 teststring=
6289 # Add a significant safety factor because C++ compilers can tack on
6290 # massive amounts of additional arguments before passing them to the
6291 # linker. It appears as though 1/2 is a usable value.
6292 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6293 fi
6294 ;;
6295 esac
6296
6297 fi
6298
6299 if test -n $lt_cv_sys_max_cmd_len ; then
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6301 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6302 else
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6304 $as_echo "none" >&6; }
6305 fi
6306 max_cmd_len=$lt_cv_sys_max_cmd_len
6307
6308
6309
6310
6311
6312
6313 : ${CP="cp -f"}
6314 : ${MV="mv -f"}
6315 : ${RM="rm -f"}
6316
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6318 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6319 # Try some XSI features
6320 xsi_shell=no
6321 ( _lt_dummy="a/b/c"
6322 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6323 = c,a/b,b/c, \
6324 && eval 'test $(( 1 + 1 )) -eq 2 \
6325 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6326 && xsi_shell=yes
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6328 $as_echo "$xsi_shell" >&6; }
6329
6330
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6332 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6333 lt_shell_append=no
6334 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6335 >/dev/null 2>&1 \
6336 && lt_shell_append=yes
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6338 $as_echo "$lt_shell_append" >&6; }
6339
6340
6341 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6342 lt_unset=unset
6343 else
6344 lt_unset=false
6345 fi
6346
6347
6348
6349
6350
6351 # test EBCDIC or ASCII
6352 case `echo X|tr X '\101'` in
6353 A) # ASCII based system
6354 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6355 lt_SP2NL='tr \040 \012'
6356 lt_NL2SP='tr \015\012 \040\040'
6357 ;;
6358 *) # EBCDIC based system
6359 lt_SP2NL='tr \100 \n'
6360 lt_NL2SP='tr \r\n \100\100'
6361 ;;
6362 esac
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6373 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6374 if ${lt_cv_to_host_file_cmd+:} false; then :
6375 $as_echo_n "(cached) " >&6
6376 else
6377 case $host in
6378 *-*-mingw* )
6379 case $build in
6380 *-*-mingw* ) # actually msys
6381 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6382 ;;
6383 *-*-cygwin* )
6384 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6385 ;;
6386 * ) # otherwise, assume *nix
6387 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6388 ;;
6389 esac
6390 ;;
6391 *-*-cygwin* )
6392 case $build in
6393 *-*-mingw* ) # actually msys
6394 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6395 ;;
6396 *-*-cygwin* )
6397 lt_cv_to_host_file_cmd=func_convert_file_noop
6398 ;;
6399 * ) # otherwise, assume *nix
6400 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6401 ;;
6402 esac
6403 ;;
6404 * ) # unhandled hosts (and "normal" native builds)
6405 lt_cv_to_host_file_cmd=func_convert_file_noop
6406 ;;
6407 esac
6408
6409 fi
6410
6411 to_host_file_cmd=$lt_cv_to_host_file_cmd
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6413 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6414
6415
6416
6417
6418
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6420 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6421 if ${lt_cv_to_tool_file_cmd+:} false; then :
6422 $as_echo_n "(cached) " >&6
6423 else
6424 #assume ordinary cross tools, or native build.
6425 lt_cv_to_tool_file_cmd=func_convert_file_noop
6426 case $host in
6427 *-*-mingw* )
6428 case $build in
6429 *-*-mingw* ) # actually msys
6430 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6431 ;;
6432 esac
6433 ;;
6434 esac
6435
6436 fi
6437
6438 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6440 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6441
6442
6443
6444
6445
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6447 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6448 if ${lt_cv_ld_reload_flag+:} false; then :
6449 $as_echo_n "(cached) " >&6
6450 else
6451 lt_cv_ld_reload_flag='-r'
6452 fi
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6454 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6455 reload_flag=$lt_cv_ld_reload_flag
6456 case $reload_flag in
6457 "" | " "*) ;;
6458 *) reload_flag=" $reload_flag" ;;
6459 esac
6460 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6461 case $host_os in
6462 cygwin* | mingw* | pw32* | cegcc*)
6463 if test "$GCC" != yes; then
6464 reload_cmds=false
6465 fi
6466 ;;
6467 darwin*)
6468 if test "$GCC" = yes; then
6469 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6470 else
6471 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6472 fi
6473 ;;
6474 esac
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484 if test -n "$ac_tool_prefix"; then
6485 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6486 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6488 $as_echo_n "checking for $ac_word... " >&6; }
6489 if ${ac_cv_prog_OBJDUMP+:} false; then :
6490 $as_echo_n "(cached) " >&6
6491 else
6492 if test -n "$OBJDUMP"; then
6493 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6494 else
6495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6496 for as_dir in $PATH
6497 do
6498 IFS=$as_save_IFS
6499 test -z "$as_dir" && as_dir=.
6500 for ac_exec_ext in '' $ac_executable_extensions; do
6501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6502 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6504 break 2
6505 fi
6506 done
6507 done
6508 IFS=$as_save_IFS
6509
6510 fi
6511 fi
6512 OBJDUMP=$ac_cv_prog_OBJDUMP
6513 if test -n "$OBJDUMP"; then
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6515 $as_echo "$OBJDUMP" >&6; }
6516 else
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6518 $as_echo "no" >&6; }
6519 fi
6520
6521
6522 fi
6523 if test -z "$ac_cv_prog_OBJDUMP"; then
6524 ac_ct_OBJDUMP=$OBJDUMP
6525 # Extract the first word of "objdump", so it can be a program name with args.
6526 set dummy objdump; ac_word=$2
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6528 $as_echo_n "checking for $ac_word... " >&6; }
6529 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6530 $as_echo_n "(cached) " >&6
6531 else
6532 if test -n "$ac_ct_OBJDUMP"; then
6533 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6534 else
6535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6536 for as_dir in $PATH
6537 do
6538 IFS=$as_save_IFS
6539 test -z "$as_dir" && as_dir=.
6540 for ac_exec_ext in '' $ac_executable_extensions; do
6541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6542 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6544 break 2
6545 fi
6546 done
6547 done
6548 IFS=$as_save_IFS
6549
6550 fi
6551 fi
6552 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6553 if test -n "$ac_ct_OBJDUMP"; then
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6555 $as_echo "$ac_ct_OBJDUMP" >&6; }
6556 else
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6558 $as_echo "no" >&6; }
6559 fi
6560
6561 if test "x$ac_ct_OBJDUMP" = x; then
6562 OBJDUMP="false"
6563 else
6564 case $cross_compiling:$ac_tool_warned in
6565 yes:)
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6567 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6568 ac_tool_warned=yes ;;
6569 esac
6570 OBJDUMP=$ac_ct_OBJDUMP
6571 fi
6572 else
6573 OBJDUMP="$ac_cv_prog_OBJDUMP"
6574 fi
6575
6576 test -z "$OBJDUMP" && OBJDUMP=objdump
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6587 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6588 if ${lt_cv_deplibs_check_method+:} false; then :
6589 $as_echo_n "(cached) " >&6
6590 else
6591 lt_cv_file_magic_cmd='$MAGIC_CMD'
6592 lt_cv_file_magic_test_file=
6593 lt_cv_deplibs_check_method='unknown'
6594 # Need to set the preceding variable on all platforms that support
6595 # interlibrary dependencies.
6596 # 'none' -- dependencies not supported.
6597 # `unknown' -- same as none, but documents that we really don't know.
6598 # 'pass_all' -- all dependencies passed with no checks.
6599 # 'test_compile' -- check by making test program.
6600 # 'file_magic [[regex]]' -- check by looking for files in library path
6601 # which responds to the $file_magic_cmd with a given extended regex.
6602 # If you have `file' or equivalent on your system and you're not sure
6603 # whether `pass_all' will *always* work, you probably want this one.
6604
6605 case $host_os in
6606 aix[4-9]*)
6607 lt_cv_deplibs_check_method=pass_all
6608 ;;
6609
6610 beos*)
6611 lt_cv_deplibs_check_method=pass_all
6612 ;;
6613
6614 bsdi[45]*)
6615 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6616 lt_cv_file_magic_cmd='/usr/bin/file -L'
6617 lt_cv_file_magic_test_file=/shlib/libc.so
6618 ;;
6619
6620 cygwin*)
6621 # func_win32_libid is a shell function defined in ltmain.sh
6622 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6623 lt_cv_file_magic_cmd='func_win32_libid'
6624 ;;
6625
6626 mingw* | pw32*)
6627 # Base MSYS/MinGW do not provide the 'file' command needed by
6628 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6629 # unless we find 'file', for example because we are cross-compiling.
6630 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6631 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6632 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6633 lt_cv_file_magic_cmd='func_win32_libid'
6634 else
6635 # Keep this pattern in sync with the one in func_win32_libid.
6636 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6637 lt_cv_file_magic_cmd='$OBJDUMP -f'
6638 fi
6639 ;;
6640
6641 cegcc*)
6642 # use the weaker test based on 'objdump'. See mingw*.
6643 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6644 lt_cv_file_magic_cmd='$OBJDUMP -f'
6645 ;;
6646
6647 darwin* | rhapsody*)
6648 lt_cv_deplibs_check_method=pass_all
6649 ;;
6650
6651 freebsd* | dragonfly*)
6652 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6653 case $host_cpu in
6654 i*86 )
6655 # Not sure whether the presence of OpenBSD here was a mistake.
6656 # Let's accept both of them until this is cleared up.
6657 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6658 lt_cv_file_magic_cmd=/usr/bin/file
6659 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6660 ;;
6661 esac
6662 else
6663 lt_cv_deplibs_check_method=pass_all
6664 fi
6665 ;;
6666
6667 haiku*)
6668 lt_cv_deplibs_check_method=pass_all
6669 ;;
6670
6671 hpux10.20* | hpux11*)
6672 lt_cv_file_magic_cmd=/usr/bin/file
6673 case $host_cpu in
6674 ia64*)
6675 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6676 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6677 ;;
6678 hppa*64*)
6679 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]'
6680 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6681 ;;
6682 *)
6683 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6684 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6685 ;;
6686 esac
6687 ;;
6688
6689 interix[3-9]*)
6690 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6691 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6692 ;;
6693
6694 irix5* | irix6* | nonstopux*)
6695 case $LD in
6696 *-32|*"-32 ") libmagic=32-bit;;
6697 *-n32|*"-n32 ") libmagic=N32;;
6698 *-64|*"-64 ") libmagic=64-bit;;
6699 *) libmagic=never-match;;
6700 esac
6701 lt_cv_deplibs_check_method=pass_all
6702 ;;
6703
6704 # This must be glibc/ELF.
6705 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6706 lt_cv_deplibs_check_method=pass_all
6707 ;;
6708
6709 netbsd* | netbsdelf*-gnu)
6710 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6711 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6712 else
6713 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6714 fi
6715 ;;
6716
6717 newos6*)
6718 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6719 lt_cv_file_magic_cmd=/usr/bin/file
6720 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6721 ;;
6722
6723 *nto* | *qnx*)
6724 lt_cv_deplibs_check_method=pass_all
6725 ;;
6726
6727 openbsd*)
6728 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6729 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6730 else
6731 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6732 fi
6733 ;;
6734
6735 osf3* | osf4* | osf5*)
6736 lt_cv_deplibs_check_method=pass_all
6737 ;;
6738
6739 rdos*)
6740 lt_cv_deplibs_check_method=pass_all
6741 ;;
6742
6743 solaris*)
6744 lt_cv_deplibs_check_method=pass_all
6745 ;;
6746
6747 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6748 lt_cv_deplibs_check_method=pass_all
6749 ;;
6750
6751 sysv4 | sysv4.3*)
6752 case $host_vendor in
6753 motorola)
6754 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]'
6755 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6756 ;;
6757 ncr)
6758 lt_cv_deplibs_check_method=pass_all
6759 ;;
6760 sequent)
6761 lt_cv_file_magic_cmd='/bin/file'
6762 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6763 ;;
6764 sni)
6765 lt_cv_file_magic_cmd='/bin/file'
6766 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6767 lt_cv_file_magic_test_file=/lib/libc.so
6768 ;;
6769 siemens)
6770 lt_cv_deplibs_check_method=pass_all
6771 ;;
6772 pc)
6773 lt_cv_deplibs_check_method=pass_all
6774 ;;
6775 esac
6776 ;;
6777
6778 tpf*)
6779 lt_cv_deplibs_check_method=pass_all
6780 ;;
6781 esac
6782
6783 fi
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6785 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6786
6787 file_magic_glob=
6788 want_nocaseglob=no
6789 if test "$build" = "$host"; then
6790 case $host_os in
6791 mingw* | pw32*)
6792 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6793 want_nocaseglob=yes
6794 else
6795 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6796 fi
6797 ;;
6798 esac
6799 fi
6800
6801 file_magic_cmd=$lt_cv_file_magic_cmd
6802 deplibs_check_method=$lt_cv_deplibs_check_method
6803 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826 if test -n "$ac_tool_prefix"; then
6827 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6828 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6830 $as_echo_n "checking for $ac_word... " >&6; }
6831 if ${ac_cv_prog_DLLTOOL+:} false; then :
6832 $as_echo_n "(cached) " >&6
6833 else
6834 if test -n "$DLLTOOL"; then
6835 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6836 else
6837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838 for as_dir in $PATH
6839 do
6840 IFS=$as_save_IFS
6841 test -z "$as_dir" && as_dir=.
6842 for ac_exec_ext in '' $ac_executable_extensions; do
6843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6844 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6846 break 2
6847 fi
6848 done
6849 done
6850 IFS=$as_save_IFS
6851
6852 fi
6853 fi
6854 DLLTOOL=$ac_cv_prog_DLLTOOL
6855 if test -n "$DLLTOOL"; then
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6857 $as_echo "$DLLTOOL" >&6; }
6858 else
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6860 $as_echo "no" >&6; }
6861 fi
6862
6863
6864 fi
6865 if test -z "$ac_cv_prog_DLLTOOL"; then
6866 ac_ct_DLLTOOL=$DLLTOOL
6867 # Extract the first word of "dlltool", so it can be a program name with args.
6868 set dummy dlltool; ac_word=$2
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6870 $as_echo_n "checking for $ac_word... " >&6; }
6871 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6872 $as_echo_n "(cached) " >&6
6873 else
6874 if test -n "$ac_ct_DLLTOOL"; then
6875 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6876 else
6877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6878 for as_dir in $PATH
6879 do
6880 IFS=$as_save_IFS
6881 test -z "$as_dir" && as_dir=.
6882 for ac_exec_ext in '' $ac_executable_extensions; do
6883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6884 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6886 break 2
6887 fi
6888 done
6889 done
6890 IFS=$as_save_IFS
6891
6892 fi
6893 fi
6894 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6895 if test -n "$ac_ct_DLLTOOL"; then
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6897 $as_echo "$ac_ct_DLLTOOL" >&6; }
6898 else
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6900 $as_echo "no" >&6; }
6901 fi
6902
6903 if test "x$ac_ct_DLLTOOL" = x; then
6904 DLLTOOL="false"
6905 else
6906 case $cross_compiling:$ac_tool_warned in
6907 yes:)
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6909 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6910 ac_tool_warned=yes ;;
6911 esac
6912 DLLTOOL=$ac_ct_DLLTOOL
6913 fi
6914 else
6915 DLLTOOL="$ac_cv_prog_DLLTOOL"
6916 fi
6917
6918 test -z "$DLLTOOL" && DLLTOOL=dlltool
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6930 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6931 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6932 $as_echo_n "(cached) " >&6
6933 else
6934 lt_cv_sharedlib_from_linklib_cmd='unknown'
6935
6936 case $host_os in
6937 cygwin* | mingw* | pw32* | cegcc*)
6938 # two different shell functions defined in ltmain.sh
6939 # decide which to use based on capabilities of $DLLTOOL
6940 case `$DLLTOOL --help 2>&1` in
6941 *--identify-strict*)
6942 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6943 ;;
6944 *)
6945 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6946 ;;
6947 esac
6948 ;;
6949 *)
6950 # fallback: assume linklib IS sharedlib
6951 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6952 ;;
6953 esac
6954
6955 fi
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6957 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6958 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6959 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6960
6961
6962
6963
6964
6965
6966
6967 if test -n "$ac_tool_prefix"; then
6968 for ac_prog in ar
6969 do
6970 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6971 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6973 $as_echo_n "checking for $ac_word... " >&6; }
6974 if ${ac_cv_prog_AR+:} false; then :
6975 $as_echo_n "(cached) " >&6
6976 else
6977 if test -n "$AR"; then
6978 ac_cv_prog_AR="$AR" # Let the user override the test.
6979 else
6980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6981 for as_dir in $PATH
6982 do
6983 IFS=$as_save_IFS
6984 test -z "$as_dir" && as_dir=.
6985 for ac_exec_ext in '' $ac_executable_extensions; do
6986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6987 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6989 break 2
6990 fi
6991 done
6992 done
6993 IFS=$as_save_IFS
6994
6995 fi
6996 fi
6997 AR=$ac_cv_prog_AR
6998 if test -n "$AR"; then
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7000 $as_echo "$AR" >&6; }
7001 else
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7003 $as_echo "no" >&6; }
7004 fi
7005
7006
7007 test -n "$AR" && break
7008 done
7009 fi
7010 if test -z "$AR"; then
7011 ac_ct_AR=$AR
7012 for ac_prog in ar
7013 do
7014 # Extract the first word of "$ac_prog", so it can be a program name with args.
7015 set dummy $ac_prog; ac_word=$2
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7017 $as_echo_n "checking for $ac_word... " >&6; }
7018 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7019 $as_echo_n "(cached) " >&6
7020 else
7021 if test -n "$ac_ct_AR"; then
7022 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7023 else
7024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7025 for as_dir in $PATH
7026 do
7027 IFS=$as_save_IFS
7028 test -z "$as_dir" && as_dir=.
7029 for ac_exec_ext in '' $ac_executable_extensions; do
7030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7031 ac_cv_prog_ac_ct_AR="$ac_prog"
7032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7033 break 2
7034 fi
7035 done
7036 done
7037 IFS=$as_save_IFS
7038
7039 fi
7040 fi
7041 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7042 if test -n "$ac_ct_AR"; then
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7044 $as_echo "$ac_ct_AR" >&6; }
7045 else
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7047 $as_echo "no" >&6; }
7048 fi
7049
7050
7051 test -n "$ac_ct_AR" && break
7052 done
7053
7054 if test "x$ac_ct_AR" = x; then
7055 AR="false"
7056 else
7057 case $cross_compiling:$ac_tool_warned in
7058 yes:)
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7060 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7061 ac_tool_warned=yes ;;
7062 esac
7063 AR=$ac_ct_AR
7064 fi
7065 fi
7066
7067 : ${AR=ar}
7068 : ${AR_FLAGS=cru}
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7081 $as_echo_n "checking for archiver @FILE support... " >&6; }
7082 if ${lt_cv_ar_at_file+:} false; then :
7083 $as_echo_n "(cached) " >&6
7084 else
7085 lt_cv_ar_at_file=no
7086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7087 /* end confdefs.h. */
7088
7089 int
7090 main ()
7091 {
7092
7093 ;
7094 return 0;
7095 }
7096 _ACEOF
7097 if ac_fn_c_try_compile "$LINENO"; then :
7098 echo conftest.$ac_objext > conftest.lst
7099 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7100 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7101 (eval $lt_ar_try) 2>&5
7102 ac_status=$?
7103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7104 test $ac_status = 0; }
7105 if test "$ac_status" -eq 0; then
7106 # Ensure the archiver fails upon bogus file names.
7107 rm -f conftest.$ac_objext libconftest.a
7108 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7109 (eval $lt_ar_try) 2>&5
7110 ac_status=$?
7111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7112 test $ac_status = 0; }
7113 if test "$ac_status" -ne 0; then
7114 lt_cv_ar_at_file=@
7115 fi
7116 fi
7117 rm -f conftest.* libconftest.a
7118
7119 fi
7120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7121
7122 fi
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7124 $as_echo "$lt_cv_ar_at_file" >&6; }
7125
7126 if test "x$lt_cv_ar_at_file" = xno; then
7127 archiver_list_spec=
7128 else
7129 archiver_list_spec=$lt_cv_ar_at_file
7130 fi
7131
7132
7133
7134
7135
7136
7137
7138 if test -n "$ac_tool_prefix"; then
7139 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7140 set dummy ${ac_tool_prefix}strip; ac_word=$2
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7142 $as_echo_n "checking for $ac_word... " >&6; }
7143 if ${ac_cv_prog_STRIP+:} false; then :
7144 $as_echo_n "(cached) " >&6
7145 else
7146 if test -n "$STRIP"; then
7147 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7148 else
7149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7150 for as_dir in $PATH
7151 do
7152 IFS=$as_save_IFS
7153 test -z "$as_dir" && as_dir=.
7154 for ac_exec_ext in '' $ac_executable_extensions; do
7155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7156 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7158 break 2
7159 fi
7160 done
7161 done
7162 IFS=$as_save_IFS
7163
7164 fi
7165 fi
7166 STRIP=$ac_cv_prog_STRIP
7167 if test -n "$STRIP"; then
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7169 $as_echo "$STRIP" >&6; }
7170 else
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7172 $as_echo "no" >&6; }
7173 fi
7174
7175
7176 fi
7177 if test -z "$ac_cv_prog_STRIP"; then
7178 ac_ct_STRIP=$STRIP
7179 # Extract the first word of "strip", so it can be a program name with args.
7180 set dummy strip; ac_word=$2
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7182 $as_echo_n "checking for $ac_word... " >&6; }
7183 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7184 $as_echo_n "(cached) " >&6
7185 else
7186 if test -n "$ac_ct_STRIP"; then
7187 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7188 else
7189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7190 for as_dir in $PATH
7191 do
7192 IFS=$as_save_IFS
7193 test -z "$as_dir" && as_dir=.
7194 for ac_exec_ext in '' $ac_executable_extensions; do
7195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7196 ac_cv_prog_ac_ct_STRIP="strip"
7197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7198 break 2
7199 fi
7200 done
7201 done
7202 IFS=$as_save_IFS
7203
7204 fi
7205 fi
7206 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7207 if test -n "$ac_ct_STRIP"; then
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7209 $as_echo "$ac_ct_STRIP" >&6; }
7210 else
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7212 $as_echo "no" >&6; }
7213 fi
7214
7215 if test "x$ac_ct_STRIP" = x; then
7216 STRIP=":"
7217 else
7218 case $cross_compiling:$ac_tool_warned in
7219 yes:)
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7221 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7222 ac_tool_warned=yes ;;
7223 esac
7224 STRIP=$ac_ct_STRIP
7225 fi
7226 else
7227 STRIP="$ac_cv_prog_STRIP"
7228 fi
7229
7230 test -z "$STRIP" && STRIP=:
7231
7232
7233
7234
7235
7236
7237 if test -n "$ac_tool_prefix"; then
7238 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7239 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7241 $as_echo_n "checking for $ac_word... " >&6; }
7242 if ${ac_cv_prog_RANLIB+:} false; then :
7243 $as_echo_n "(cached) " >&6
7244 else
7245 if test -n "$RANLIB"; then
7246 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7247 else
7248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7249 for as_dir in $PATH
7250 do
7251 IFS=$as_save_IFS
7252 test -z "$as_dir" && as_dir=.
7253 for ac_exec_ext in '' $ac_executable_extensions; do
7254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7255 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7257 break 2
7258 fi
7259 done
7260 done
7261 IFS=$as_save_IFS
7262
7263 fi
7264 fi
7265 RANLIB=$ac_cv_prog_RANLIB
7266 if test -n "$RANLIB"; then
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7268 $as_echo "$RANLIB" >&6; }
7269 else
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7271 $as_echo "no" >&6; }
7272 fi
7273
7274
7275 fi
7276 if test -z "$ac_cv_prog_RANLIB"; then
7277 ac_ct_RANLIB=$RANLIB
7278 # Extract the first word of "ranlib", so it can be a program name with args.
7279 set dummy ranlib; ac_word=$2
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7281 $as_echo_n "checking for $ac_word... " >&6; }
7282 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7283 $as_echo_n "(cached) " >&6
7284 else
7285 if test -n "$ac_ct_RANLIB"; then
7286 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7287 else
7288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289 for as_dir in $PATH
7290 do
7291 IFS=$as_save_IFS
7292 test -z "$as_dir" && as_dir=.
7293 for ac_exec_ext in '' $ac_executable_extensions; do
7294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7295 ac_cv_prog_ac_ct_RANLIB="ranlib"
7296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7297 break 2
7298 fi
7299 done
7300 done
7301 IFS=$as_save_IFS
7302
7303 fi
7304 fi
7305 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7306 if test -n "$ac_ct_RANLIB"; then
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7308 $as_echo "$ac_ct_RANLIB" >&6; }
7309 else
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7311 $as_echo "no" >&6; }
7312 fi
7313
7314 if test "x$ac_ct_RANLIB" = x; then
7315 RANLIB=":"
7316 else
7317 case $cross_compiling:$ac_tool_warned in
7318 yes:)
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7320 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7321 ac_tool_warned=yes ;;
7322 esac
7323 RANLIB=$ac_ct_RANLIB
7324 fi
7325 else
7326 RANLIB="$ac_cv_prog_RANLIB"
7327 fi
7328
7329 test -z "$RANLIB" && RANLIB=:
7330
7331
7332
7333
7334
7335
7336 # Determine commands to create old-style static archives.
7337 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7338 old_postinstall_cmds='chmod 644 $oldlib'
7339 old_postuninstall_cmds=
7340
7341 if test -n "$RANLIB"; then
7342 case $host_os in
7343 openbsd*)
7344 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7345 ;;
7346 *)
7347 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7348 ;;
7349 esac
7350 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7351 fi
7352
7353 case $host_os in
7354 darwin*)
7355 lock_old_archive_extraction=yes ;;
7356 *)
7357 lock_old_archive_extraction=no ;;
7358 esac
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398 # If no C compiler was specified, use CC.
7399 LTCC=${LTCC-"$CC"}
7400
7401 # If no C compiler flags were specified, use CFLAGS.
7402 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7403
7404 # Allow CC to be a program name with arguments.
7405 compiler=$CC
7406
7407
7408 # Check for command to grab the raw symbol name followed by C symbol from nm.
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7410 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7411 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7412 $as_echo_n "(cached) " >&6
7413 else
7414
7415 # These are sane defaults that work on at least a few old systems.
7416 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7417
7418 # Character class describing NM global symbol codes.
7419 symcode='[BCDEGRST]'
7420
7421 # Regexp to match symbols that can be accessed directly from C.
7422 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7423
7424 # Define system-specific variables.
7425 case $host_os in
7426 aix*)
7427 symcode='[BCDT]'
7428 ;;
7429 cygwin* | mingw* | pw32* | cegcc*)
7430 symcode='[ABCDGISTW]'
7431 ;;
7432 hpux*)
7433 if test "$host_cpu" = ia64; then
7434 symcode='[ABCDEGRST]'
7435 fi
7436 ;;
7437 irix* | nonstopux*)
7438 symcode='[BCDEGRST]'
7439 ;;
7440 osf*)
7441 symcode='[BCDEGQRST]'
7442 ;;
7443 solaris*)
7444 symcode='[BDRT]'
7445 ;;
7446 sco3.2v5*)
7447 symcode='[DT]'
7448 ;;
7449 sysv4.2uw2*)
7450 symcode='[DT]'
7451 ;;
7452 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7453 symcode='[ABDT]'
7454 ;;
7455 sysv4)
7456 symcode='[DFNSTU]'
7457 ;;
7458 esac
7459
7460 # If we're using GNU nm, then use its standard symbol codes.
7461 case `$NM -V 2>&1` in
7462 *GNU* | *'with BFD'*)
7463 symcode='[ABCDGIRSTW]' ;;
7464 esac
7465
7466 # Transform an extracted symbol line into a proper C declaration.
7467 # Some systems (esp. on ia64) link data and code symbols differently,
7468 # so use this general approach.
7469 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7470
7471 # Transform an extracted symbol line into symbol name and symbol address
7472 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7473 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7474
7475 # Handle CRLF in mingw tool chain
7476 opt_cr=
7477 case $build_os in
7478 mingw*)
7479 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7480 ;;
7481 esac
7482
7483 # Try without a prefix underscore, then with it.
7484 for ac_symprfx in "" "_"; do
7485
7486 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7487 symxfrm="\\1 $ac_symprfx\\2 \\2"
7488
7489 # Write the raw and C identifiers.
7490 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7491 # Fake it for dumpbin and say T for any non-static function
7492 # and D for any global variable.
7493 # Also find C++ and __fastcall symbols from MSVC++,
7494 # which start with @ or ?.
7495 lt_cv_sys_global_symbol_pipe="$AWK '"\
7496 " {last_section=section; section=\$ 3};"\
7497 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7498 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7499 " \$ 0!~/External *\|/{next};"\
7500 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7501 " {if(hide[section]) next};"\
7502 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7503 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7504 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7505 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7506 " ' prfx=^$ac_symprfx"
7507 else
7508 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7509 fi
7510 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7511
7512 # Check to see that the pipe works correctly.
7513 pipe_works=no
7514
7515 rm -f conftest*
7516 cat > conftest.$ac_ext <<_LT_EOF
7517 #ifdef __cplusplus
7518 extern "C" {
7519 #endif
7520 char nm_test_var;
7521 void nm_test_func(void);
7522 void nm_test_func(void){}
7523 #ifdef __cplusplus
7524 }
7525 #endif
7526 int main(){nm_test_var='a';nm_test_func();return(0);}
7527 _LT_EOF
7528
7529 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7530 (eval $ac_compile) 2>&5
7531 ac_status=$?
7532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7533 test $ac_status = 0; }; then
7534 # Now try to grab the symbols.
7535 nlist=conftest.nm
7536 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7537 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7538 ac_status=$?
7539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7540 test $ac_status = 0; } && test -s "$nlist"; then
7541 # Try sorting and uniquifying the output.
7542 if sort "$nlist" | uniq > "$nlist"T; then
7543 mv -f "$nlist"T "$nlist"
7544 else
7545 rm -f "$nlist"T
7546 fi
7547
7548 # Make sure that we snagged all the symbols we need.
7549 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7550 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7551 cat <<_LT_EOF > conftest.$ac_ext
7552 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7553 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7554 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7555 relocations are performed -- see ld's documentation on pseudo-relocs. */
7556 # define LT_DLSYM_CONST
7557 #elif defined(__osf__)
7558 /* This system does not cope well with relocations in const data. */
7559 # define LT_DLSYM_CONST
7560 #else
7561 # define LT_DLSYM_CONST const
7562 #endif
7563
7564 #ifdef __cplusplus
7565 extern "C" {
7566 #endif
7567
7568 _LT_EOF
7569 # Now generate the symbol file.
7570 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7571
7572 cat <<_LT_EOF >> conftest.$ac_ext
7573
7574 /* The mapping between symbol names and symbols. */
7575 LT_DLSYM_CONST struct {
7576 const char *name;
7577 void *address;
7578 }
7579 lt__PROGRAM__LTX_preloaded_symbols[] =
7580 {
7581 { "@PROGRAM@", (void *) 0 },
7582 _LT_EOF
7583 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7584 cat <<\_LT_EOF >> conftest.$ac_ext
7585 {0, (void *) 0}
7586 };
7587
7588 /* This works around a problem in FreeBSD linker */
7589 #ifdef FREEBSD_WORKAROUND
7590 static const void *lt_preloaded_setup() {
7591 return lt__PROGRAM__LTX_preloaded_symbols;
7592 }
7593 #endif
7594
7595 #ifdef __cplusplus
7596 }
7597 #endif
7598 _LT_EOF
7599 # Now try linking the two files.
7600 mv conftest.$ac_objext conftstm.$ac_objext
7601 lt_globsym_save_LIBS=$LIBS
7602 lt_globsym_save_CFLAGS=$CFLAGS
7603 LIBS="conftstm.$ac_objext"
7604 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7606 (eval $ac_link) 2>&5
7607 ac_status=$?
7608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7609 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7610 pipe_works=yes
7611 fi
7612 LIBS=$lt_globsym_save_LIBS
7613 CFLAGS=$lt_globsym_save_CFLAGS
7614 else
7615 echo "cannot find nm_test_func in $nlist" >&5
7616 fi
7617 else
7618 echo "cannot find nm_test_var in $nlist" >&5
7619 fi
7620 else
7621 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7622 fi
7623 else
7624 echo "$progname: failed program was:" >&5
7625 cat conftest.$ac_ext >&5
7626 fi
7627 rm -rf conftest* conftst*
7628
7629 # Do not use the global_symbol_pipe unless it works.
7630 if test "$pipe_works" = yes; then
7631 break
7632 else
7633 lt_cv_sys_global_symbol_pipe=
7634 fi
7635 done
7636
7637 fi
7638
7639 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7640 lt_cv_sys_global_symbol_to_cdecl=
7641 fi
7642 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7644 $as_echo "failed" >&6; }
7645 else
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7647 $as_echo "ok" >&6; }
7648 fi
7649
7650 # Response file support.
7651 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7652 nm_file_list_spec='@'
7653 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7654 nm_file_list_spec='@'
7655 fi
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7684 $as_echo_n "checking for sysroot... " >&6; }
7685
7686 # Check whether --with-sysroot was given.
7687 if test "${with_sysroot+set}" = set; then :
7688 withval=$with_sysroot;
7689 else
7690 with_sysroot=no
7691 fi
7692
7693
7694 lt_sysroot=
7695 case ${with_sysroot} in #(
7696 yes)
7697 if test "$GCC" = yes; then
7698 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7699 fi
7700 ;; #(
7701 /*)
7702 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7703 ;; #(
7704 no|'')
7705 ;; #(
7706 *)
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7708 $as_echo "${with_sysroot}" >&6; }
7709 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7710 ;;
7711 esac
7712
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7714 $as_echo "${lt_sysroot:-no}" >&6; }
7715
7716
7717
7718
7719
7720 # Check whether --enable-libtool-lock was given.
7721 if test "${enable_libtool_lock+set}" = set; then :
7722 enableval=$enable_libtool_lock;
7723 fi
7724
7725 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7726
7727 # Some flags need to be propagated to the compiler or linker for good
7728 # libtool support.
7729 case $host in
7730 ia64-*-hpux*)
7731 # Find out which ABI we are using.
7732 echo 'int i;' > conftest.$ac_ext
7733 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7734 (eval $ac_compile) 2>&5
7735 ac_status=$?
7736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7737 test $ac_status = 0; }; then
7738 case `/usr/bin/file conftest.$ac_objext` in
7739 *ELF-32*)
7740 HPUX_IA64_MODE="32"
7741 ;;
7742 *ELF-64*)
7743 HPUX_IA64_MODE="64"
7744 ;;
7745 esac
7746 fi
7747 rm -rf conftest*
7748 ;;
7749 *-*-irix6*)
7750 # Find out which ABI we are using.
7751 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7752 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7753 (eval $ac_compile) 2>&5
7754 ac_status=$?
7755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7756 test $ac_status = 0; }; then
7757 if test "$lt_cv_prog_gnu_ld" = yes; then
7758 case `/usr/bin/file conftest.$ac_objext` in
7759 *32-bit*)
7760 LD="${LD-ld} -melf32bsmip"
7761 ;;
7762 *N32*)
7763 LD="${LD-ld} -melf32bmipn32"
7764 ;;
7765 *64-bit*)
7766 LD="${LD-ld} -melf64bmip"
7767 ;;
7768 esac
7769 else
7770 case `/usr/bin/file conftest.$ac_objext` in
7771 *32-bit*)
7772 LD="${LD-ld} -32"
7773 ;;
7774 *N32*)
7775 LD="${LD-ld} -n32"
7776 ;;
7777 *64-bit*)
7778 LD="${LD-ld} -64"
7779 ;;
7780 esac
7781 fi
7782 fi
7783 rm -rf conftest*
7784 ;;
7785
7786 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7787 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7788 # Find out which ABI we are using.
7789 echo 'int i;' > conftest.$ac_ext
7790 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7791 (eval $ac_compile) 2>&5
7792 ac_status=$?
7793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7794 test $ac_status = 0; }; then
7795 case `/usr/bin/file conftest.o` in
7796 *32-bit*)
7797 case $host in
7798 x86_64-*kfreebsd*-gnu)
7799 LD="${LD-ld} -m elf_i386_fbsd"
7800 ;;
7801 x86_64-*linux*)
7802 LD="${LD-ld} -m elf_i386"
7803 ;;
7804 ppc64-*linux*|powerpc64-*linux*)
7805 LD="${LD-ld} -m elf32ppclinux"
7806 ;;
7807 s390x-*linux*)
7808 LD="${LD-ld} -m elf_s390"
7809 ;;
7810 sparc64-*linux*)
7811 LD="${LD-ld} -m elf32_sparc"
7812 ;;
7813 esac
7814 ;;
7815 *64-bit*)
7816 case $host in
7817 x86_64-*kfreebsd*-gnu)
7818 LD="${LD-ld} -m elf_x86_64_fbsd"
7819 ;;
7820 x86_64-*linux*)
7821 LD="${LD-ld} -m elf_x86_64"
7822 ;;
7823 ppc*-*linux*|powerpc*-*linux*)
7824 LD="${LD-ld} -m elf64ppc"
7825 ;;
7826 s390*-*linux*|s390*-*tpf*)
7827 LD="${LD-ld} -m elf64_s390"
7828 ;;
7829 sparc*-*linux*)
7830 LD="${LD-ld} -m elf64_sparc"
7831 ;;
7832 esac
7833 ;;
7834 esac
7835 fi
7836 rm -rf conftest*
7837 ;;
7838
7839 *-*-sco3.2v5*)
7840 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7841 SAVE_CFLAGS="$CFLAGS"
7842 CFLAGS="$CFLAGS -belf"
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7844 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7845 if ${lt_cv_cc_needs_belf+:} false; then :
7846 $as_echo_n "(cached) " >&6
7847 else
7848 ac_ext=c
7849 ac_cpp='$CPP $CPPFLAGS'
7850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7853
7854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7855 /* end confdefs.h. */
7856
7857 int
7858 main ()
7859 {
7860
7861 ;
7862 return 0;
7863 }
7864 _ACEOF
7865 if ac_fn_c_try_link "$LINENO"; then :
7866 lt_cv_cc_needs_belf=yes
7867 else
7868 lt_cv_cc_needs_belf=no
7869 fi
7870 rm -f core conftest.err conftest.$ac_objext \
7871 conftest$ac_exeext conftest.$ac_ext
7872 ac_ext=c
7873 ac_cpp='$CPP $CPPFLAGS'
7874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7877
7878 fi
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7880 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7881 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7882 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7883 CFLAGS="$SAVE_CFLAGS"
7884 fi
7885 ;;
7886 *-*solaris*)
7887 # Find out which ABI we are using.
7888 echo 'int i;' > conftest.$ac_ext
7889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7890 (eval $ac_compile) 2>&5
7891 ac_status=$?
7892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7893 test $ac_status = 0; }; then
7894 case `/usr/bin/file conftest.o` in
7895 *64-bit*)
7896 case $lt_cv_prog_gnu_ld in
7897 yes*)
7898 case $host in
7899 i?86-*-solaris*)
7900 LD="${LD-ld} -m elf_x86_64"
7901 ;;
7902 sparc*-*-solaris*)
7903 LD="${LD-ld} -m elf64_sparc"
7904 ;;
7905 esac
7906 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7907 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7908 LD="${LD-ld}_sol2"
7909 fi
7910 ;;
7911 *)
7912 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7913 LD="${LD-ld} -64"
7914 fi
7915 ;;
7916 esac
7917 ;;
7918 esac
7919 fi
7920 rm -rf conftest*
7921 ;;
7922 esac
7923
7924 need_locks="$enable_libtool_lock"
7925
7926 if test -n "$ac_tool_prefix"; then
7927 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7928 set dummy ${ac_tool_prefix}mt; ac_word=$2
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7930 $as_echo_n "checking for $ac_word... " >&6; }
7931 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7932 $as_echo_n "(cached) " >&6
7933 else
7934 if test -n "$MANIFEST_TOOL"; then
7935 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7936 else
7937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7938 for as_dir in $PATH
7939 do
7940 IFS=$as_save_IFS
7941 test -z "$as_dir" && as_dir=.
7942 for ac_exec_ext in '' $ac_executable_extensions; do
7943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7944 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7946 break 2
7947 fi
7948 done
7949 done
7950 IFS=$as_save_IFS
7951
7952 fi
7953 fi
7954 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7955 if test -n "$MANIFEST_TOOL"; then
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7957 $as_echo "$MANIFEST_TOOL" >&6; }
7958 else
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7960 $as_echo "no" >&6; }
7961 fi
7962
7963
7964 fi
7965 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7966 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7967 # Extract the first word of "mt", so it can be a program name with args.
7968 set dummy mt; ac_word=$2
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7970 $as_echo_n "checking for $ac_word... " >&6; }
7971 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7972 $as_echo_n "(cached) " >&6
7973 else
7974 if test -n "$ac_ct_MANIFEST_TOOL"; then
7975 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7976 else
7977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7978 for as_dir in $PATH
7979 do
7980 IFS=$as_save_IFS
7981 test -z "$as_dir" && as_dir=.
7982 for ac_exec_ext in '' $ac_executable_extensions; do
7983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7984 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7986 break 2
7987 fi
7988 done
7989 done
7990 IFS=$as_save_IFS
7991
7992 fi
7993 fi
7994 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7995 if test -n "$ac_ct_MANIFEST_TOOL"; then
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7997 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7998 else
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8000 $as_echo "no" >&6; }
8001 fi
8002
8003 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8004 MANIFEST_TOOL=":"
8005 else
8006 case $cross_compiling:$ac_tool_warned in
8007 yes:)
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8010 ac_tool_warned=yes ;;
8011 esac
8012 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8013 fi
8014 else
8015 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8016 fi
8017
8018 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8020 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8021 if ${lt_cv_path_mainfest_tool+:} false; then :
8022 $as_echo_n "(cached) " >&6
8023 else
8024 lt_cv_path_mainfest_tool=no
8025 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8026 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8027 cat conftest.err >&5
8028 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8029 lt_cv_path_mainfest_tool=yes
8030 fi
8031 rm -f conftest*
8032 fi
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8034 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8035 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8036 MANIFEST_TOOL=:
8037 fi
8038
8039
8040
8041
8042
8043
8044 case $host_os in
8045 rhapsody* | darwin*)
8046 if test -n "$ac_tool_prefix"; then
8047 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8048 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8050 $as_echo_n "checking for $ac_word... " >&6; }
8051 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8052 $as_echo_n "(cached) " >&6
8053 else
8054 if test -n "$DSYMUTIL"; then
8055 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8056 else
8057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8058 for as_dir in $PATH
8059 do
8060 IFS=$as_save_IFS
8061 test -z "$as_dir" && as_dir=.
8062 for ac_exec_ext in '' $ac_executable_extensions; do
8063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8064 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8066 break 2
8067 fi
8068 done
8069 done
8070 IFS=$as_save_IFS
8071
8072 fi
8073 fi
8074 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8075 if test -n "$DSYMUTIL"; then
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8077 $as_echo "$DSYMUTIL" >&6; }
8078 else
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8080 $as_echo "no" >&6; }
8081 fi
8082
8083
8084 fi
8085 if test -z "$ac_cv_prog_DSYMUTIL"; then
8086 ac_ct_DSYMUTIL=$DSYMUTIL
8087 # Extract the first word of "dsymutil", so it can be a program name with args.
8088 set dummy dsymutil; ac_word=$2
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8090 $as_echo_n "checking for $ac_word... " >&6; }
8091 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8092 $as_echo_n "(cached) " >&6
8093 else
8094 if test -n "$ac_ct_DSYMUTIL"; then
8095 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8096 else
8097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8098 for as_dir in $PATH
8099 do
8100 IFS=$as_save_IFS
8101 test -z "$as_dir" && as_dir=.
8102 for ac_exec_ext in '' $ac_executable_extensions; do
8103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8104 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8106 break 2
8107 fi
8108 done
8109 done
8110 IFS=$as_save_IFS
8111
8112 fi
8113 fi
8114 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8115 if test -n "$ac_ct_DSYMUTIL"; then
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8117 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8118 else
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8120 $as_echo "no" >&6; }
8121 fi
8122
8123 if test "x$ac_ct_DSYMUTIL" = x; then
8124 DSYMUTIL=":"
8125 else
8126 case $cross_compiling:$ac_tool_warned in
8127 yes:)
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8129 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8130 ac_tool_warned=yes ;;
8131 esac
8132 DSYMUTIL=$ac_ct_DSYMUTIL
8133 fi
8134 else
8135 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8136 fi
8137
8138 if test -n "$ac_tool_prefix"; then
8139 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8140 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8142 $as_echo_n "checking for $ac_word... " >&6; }
8143 if ${ac_cv_prog_NMEDIT+:} false; then :
8144 $as_echo_n "(cached) " >&6
8145 else
8146 if test -n "$NMEDIT"; then
8147 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8148 else
8149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8150 for as_dir in $PATH
8151 do
8152 IFS=$as_save_IFS
8153 test -z "$as_dir" && as_dir=.
8154 for ac_exec_ext in '' $ac_executable_extensions; do
8155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8156 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8158 break 2
8159 fi
8160 done
8161 done
8162 IFS=$as_save_IFS
8163
8164 fi
8165 fi
8166 NMEDIT=$ac_cv_prog_NMEDIT
8167 if test -n "$NMEDIT"; then
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8169 $as_echo "$NMEDIT" >&6; }
8170 else
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8172 $as_echo "no" >&6; }
8173 fi
8174
8175
8176 fi
8177 if test -z "$ac_cv_prog_NMEDIT"; then
8178 ac_ct_NMEDIT=$NMEDIT
8179 # Extract the first word of "nmedit", so it can be a program name with args.
8180 set dummy nmedit; ac_word=$2
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8182 $as_echo_n "checking for $ac_word... " >&6; }
8183 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8184 $as_echo_n "(cached) " >&6
8185 else
8186 if test -n "$ac_ct_NMEDIT"; then
8187 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8188 else
8189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8190 for as_dir in $PATH
8191 do
8192 IFS=$as_save_IFS
8193 test -z "$as_dir" && as_dir=.
8194 for ac_exec_ext in '' $ac_executable_extensions; do
8195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8196 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8198 break 2
8199 fi
8200 done
8201 done
8202 IFS=$as_save_IFS
8203
8204 fi
8205 fi
8206 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8207 if test -n "$ac_ct_NMEDIT"; then
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8209 $as_echo "$ac_ct_NMEDIT" >&6; }
8210 else
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8212 $as_echo "no" >&6; }
8213 fi
8214
8215 if test "x$ac_ct_NMEDIT" = x; then
8216 NMEDIT=":"
8217 else
8218 case $cross_compiling:$ac_tool_warned in
8219 yes:)
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8221 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8222 ac_tool_warned=yes ;;
8223 esac
8224 NMEDIT=$ac_ct_NMEDIT
8225 fi
8226 else
8227 NMEDIT="$ac_cv_prog_NMEDIT"
8228 fi
8229
8230 if test -n "$ac_tool_prefix"; then
8231 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8232 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8234 $as_echo_n "checking for $ac_word... " >&6; }
8235 if ${ac_cv_prog_LIPO+:} false; then :
8236 $as_echo_n "(cached) " >&6
8237 else
8238 if test -n "$LIPO"; then
8239 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8240 else
8241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8242 for as_dir in $PATH
8243 do
8244 IFS=$as_save_IFS
8245 test -z "$as_dir" && as_dir=.
8246 for ac_exec_ext in '' $ac_executable_extensions; do
8247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8248 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8250 break 2
8251 fi
8252 done
8253 done
8254 IFS=$as_save_IFS
8255
8256 fi
8257 fi
8258 LIPO=$ac_cv_prog_LIPO
8259 if test -n "$LIPO"; then
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8261 $as_echo "$LIPO" >&6; }
8262 else
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8264 $as_echo "no" >&6; }
8265 fi
8266
8267
8268 fi
8269 if test -z "$ac_cv_prog_LIPO"; then
8270 ac_ct_LIPO=$LIPO
8271 # Extract the first word of "lipo", so it can be a program name with args.
8272 set dummy lipo; ac_word=$2
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8274 $as_echo_n "checking for $ac_word... " >&6; }
8275 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8276 $as_echo_n "(cached) " >&6
8277 else
8278 if test -n "$ac_ct_LIPO"; then
8279 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8280 else
8281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8282 for as_dir in $PATH
8283 do
8284 IFS=$as_save_IFS
8285 test -z "$as_dir" && as_dir=.
8286 for ac_exec_ext in '' $ac_executable_extensions; do
8287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8288 ac_cv_prog_ac_ct_LIPO="lipo"
8289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8290 break 2
8291 fi
8292 done
8293 done
8294 IFS=$as_save_IFS
8295
8296 fi
8297 fi
8298 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8299 if test -n "$ac_ct_LIPO"; then
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8301 $as_echo "$ac_ct_LIPO" >&6; }
8302 else
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8304 $as_echo "no" >&6; }
8305 fi
8306
8307 if test "x$ac_ct_LIPO" = x; then
8308 LIPO=":"
8309 else
8310 case $cross_compiling:$ac_tool_warned in
8311 yes:)
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8313 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8314 ac_tool_warned=yes ;;
8315 esac
8316 LIPO=$ac_ct_LIPO
8317 fi
8318 else
8319 LIPO="$ac_cv_prog_LIPO"
8320 fi
8321
8322 if test -n "$ac_tool_prefix"; then
8323 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8324 set dummy ${ac_tool_prefix}otool; ac_word=$2
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8326 $as_echo_n "checking for $ac_word... " >&6; }
8327 if ${ac_cv_prog_OTOOL+:} false; then :
8328 $as_echo_n "(cached) " >&6
8329 else
8330 if test -n "$OTOOL"; then
8331 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8332 else
8333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8334 for as_dir in $PATH
8335 do
8336 IFS=$as_save_IFS
8337 test -z "$as_dir" && as_dir=.
8338 for ac_exec_ext in '' $ac_executable_extensions; do
8339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8340 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8342 break 2
8343 fi
8344 done
8345 done
8346 IFS=$as_save_IFS
8347
8348 fi
8349 fi
8350 OTOOL=$ac_cv_prog_OTOOL
8351 if test -n "$OTOOL"; then
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8353 $as_echo "$OTOOL" >&6; }
8354 else
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8356 $as_echo "no" >&6; }
8357 fi
8358
8359
8360 fi
8361 if test -z "$ac_cv_prog_OTOOL"; then
8362 ac_ct_OTOOL=$OTOOL
8363 # Extract the first word of "otool", so it can be a program name with args.
8364 set dummy otool; ac_word=$2
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8366 $as_echo_n "checking for $ac_word... " >&6; }
8367 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8368 $as_echo_n "(cached) " >&6
8369 else
8370 if test -n "$ac_ct_OTOOL"; then
8371 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8372 else
8373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8374 for as_dir in $PATH
8375 do
8376 IFS=$as_save_IFS
8377 test -z "$as_dir" && as_dir=.
8378 for ac_exec_ext in '' $ac_executable_extensions; do
8379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8380 ac_cv_prog_ac_ct_OTOOL="otool"
8381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8382 break 2
8383 fi
8384 done
8385 done
8386 IFS=$as_save_IFS
8387
8388 fi
8389 fi
8390 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8391 if test -n "$ac_ct_OTOOL"; then
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8393 $as_echo "$ac_ct_OTOOL" >&6; }
8394 else
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8396 $as_echo "no" >&6; }
8397 fi
8398
8399 if test "x$ac_ct_OTOOL" = x; then
8400 OTOOL=":"
8401 else
8402 case $cross_compiling:$ac_tool_warned in
8403 yes:)
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8405 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8406 ac_tool_warned=yes ;;
8407 esac
8408 OTOOL=$ac_ct_OTOOL
8409 fi
8410 else
8411 OTOOL="$ac_cv_prog_OTOOL"
8412 fi
8413
8414 if test -n "$ac_tool_prefix"; then
8415 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8416 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8418 $as_echo_n "checking for $ac_word... " >&6; }
8419 if ${ac_cv_prog_OTOOL64+:} false; then :
8420 $as_echo_n "(cached) " >&6
8421 else
8422 if test -n "$OTOOL64"; then
8423 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8424 else
8425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8426 for as_dir in $PATH
8427 do
8428 IFS=$as_save_IFS
8429 test -z "$as_dir" && as_dir=.
8430 for ac_exec_ext in '' $ac_executable_extensions; do
8431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8432 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8434 break 2
8435 fi
8436 done
8437 done
8438 IFS=$as_save_IFS
8439
8440 fi
8441 fi
8442 OTOOL64=$ac_cv_prog_OTOOL64
8443 if test -n "$OTOOL64"; then
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8445 $as_echo "$OTOOL64" >&6; }
8446 else
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8448 $as_echo "no" >&6; }
8449 fi
8450
8451
8452 fi
8453 if test -z "$ac_cv_prog_OTOOL64"; then
8454 ac_ct_OTOOL64=$OTOOL64
8455 # Extract the first word of "otool64", so it can be a program name with args.
8456 set dummy otool64; ac_word=$2
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8458 $as_echo_n "checking for $ac_word... " >&6; }
8459 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8460 $as_echo_n "(cached) " >&6
8461 else
8462 if test -n "$ac_ct_OTOOL64"; then
8463 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8464 else
8465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8466 for as_dir in $PATH
8467 do
8468 IFS=$as_save_IFS
8469 test -z "$as_dir" && as_dir=.
8470 for ac_exec_ext in '' $ac_executable_extensions; do
8471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8472 ac_cv_prog_ac_ct_OTOOL64="otool64"
8473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8474 break 2
8475 fi
8476 done
8477 done
8478 IFS=$as_save_IFS
8479
8480 fi
8481 fi
8482 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8483 if test -n "$ac_ct_OTOOL64"; then
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8485 $as_echo "$ac_ct_OTOOL64" >&6; }
8486 else
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8488 $as_echo "no" >&6; }
8489 fi
8490
8491 if test "x$ac_ct_OTOOL64" = x; then
8492 OTOOL64=":"
8493 else
8494 case $cross_compiling:$ac_tool_warned in
8495 yes:)
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8497 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8498 ac_tool_warned=yes ;;
8499 esac
8500 OTOOL64=$ac_ct_OTOOL64
8501 fi
8502 else
8503 OTOOL64="$ac_cv_prog_OTOOL64"
8504 fi
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8533 $as_echo_n "checking for -single_module linker flag... " >&6; }
8534 if ${lt_cv_apple_cc_single_mod+:} false; then :
8535 $as_echo_n "(cached) " >&6
8536 else
8537 lt_cv_apple_cc_single_mod=no
8538 if test -z "${LT_MULTI_MODULE}"; then
8539 # By default we will add the -single_module flag. You can override
8540 # by either setting the environment variable LT_MULTI_MODULE
8541 # non-empty at configure time, or by adding -multi_module to the
8542 # link flags.
8543 rm -rf libconftest.dylib*
8544 echo "int foo(void){return 1;}" > conftest.c
8545 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8546 -dynamiclib -Wl,-single_module conftest.c" >&5
8547 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8548 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8549 _lt_result=$?
8550 # If there is a non-empty error log, and "single_module"
8551 # appears in it, assume the flag caused a linker warning
8552 if test -s conftest.err && $GREP single_module conftest.err; then
8553 cat conftest.err >&5
8554 # Otherwise, if the output was created with a 0 exit code from
8555 # the compiler, it worked.
8556 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8557 lt_cv_apple_cc_single_mod=yes
8558 else
8559 cat conftest.err >&5
8560 fi
8561 rm -rf libconftest.dylib*
8562 rm -f conftest.*
8563 fi
8564 fi
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8566 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8567
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8569 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8570 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8571 $as_echo_n "(cached) " >&6
8572 else
8573 lt_cv_ld_exported_symbols_list=no
8574 save_LDFLAGS=$LDFLAGS
8575 echo "_main" > conftest.sym
8576 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8578 /* end confdefs.h. */
8579
8580 int
8581 main ()
8582 {
8583
8584 ;
8585 return 0;
8586 }
8587 _ACEOF
8588 if ac_fn_c_try_link "$LINENO"; then :
8589 lt_cv_ld_exported_symbols_list=yes
8590 else
8591 lt_cv_ld_exported_symbols_list=no
8592 fi
8593 rm -f core conftest.err conftest.$ac_objext \
8594 conftest$ac_exeext conftest.$ac_ext
8595 LDFLAGS="$save_LDFLAGS"
8596
8597 fi
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8599 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8600
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8602 $as_echo_n "checking for -force_load linker flag... " >&6; }
8603 if ${lt_cv_ld_force_load+:} false; then :
8604 $as_echo_n "(cached) " >&6
8605 else
8606 lt_cv_ld_force_load=no
8607 cat > conftest.c << _LT_EOF
8608 int forced_loaded() { return 2;}
8609 _LT_EOF
8610 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8611 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8612 echo "$AR cru libconftest.a conftest.o" >&5
8613 $AR cru libconftest.a conftest.o 2>&5
8614 echo "$RANLIB libconftest.a" >&5
8615 $RANLIB libconftest.a 2>&5
8616 cat > conftest.c << _LT_EOF
8617 int main() { return 0;}
8618 _LT_EOF
8619 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8620 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8621 _lt_result=$?
8622 if test -s conftest.err && $GREP force_load conftest.err; then
8623 cat conftest.err >&5
8624 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8625 lt_cv_ld_force_load=yes
8626 else
8627 cat conftest.err >&5
8628 fi
8629 rm -f conftest.err libconftest.a conftest conftest.c
8630 rm -rf conftest.dSYM
8631
8632 fi
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8634 $as_echo "$lt_cv_ld_force_load" >&6; }
8635 case $host_os in
8636 rhapsody* | darwin1.[012])
8637 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8638 darwin1.*)
8639 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8640 darwin*) # darwin 5.x on
8641 # if running on 10.5 or later, the deployment target defaults
8642 # to the OS version, if on x86, and 10.4, the deployment
8643 # target defaults to 10.4. Don't you love it?
8644 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8645 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8646 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8647 10.[012]*)
8648 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8649 10.*)
8650 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8651 esac
8652 ;;
8653 esac
8654 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8655 _lt_dar_single_mod='$single_module'
8656 fi
8657 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8658 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8659 else
8660 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8661 fi
8662 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8663 _lt_dsymutil='~$DSYMUTIL $lib || :'
8664 else
8665 _lt_dsymutil=
8666 fi
8667 ;;
8668 esac
8669
8670
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8672 $as_echo_n "checking for ANSI C header files... " >&6; }
8673 if ${ac_cv_header_stdc+:} false; then :
8674 $as_echo_n "(cached) " >&6
8675 else
8676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8677 /* end confdefs.h. */
8678 #include <stdlib.h>
8679 #include <stdarg.h>
8680 #include <string.h>
8681 #include <float.h>
8682
8683 int
8684 main ()
8685 {
8686
8687 ;
8688 return 0;
8689 }
8690 _ACEOF
8691 if ac_fn_c_try_compile "$LINENO"; then :
8692 ac_cv_header_stdc=yes
8693 else
8694 ac_cv_header_stdc=no
8695 fi
8696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8697
8698 if test $ac_cv_header_stdc = yes; then
8699 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8701 /* end confdefs.h. */
8702 #include <string.h>
8703
8704 _ACEOF
8705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8706 $EGREP "memchr" >/dev/null 2>&1; then :
8707
8708 else
8709 ac_cv_header_stdc=no
8710 fi
8711 rm -f conftest*
8712
8713 fi
8714
8715 if test $ac_cv_header_stdc = yes; then
8716 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8718 /* end confdefs.h. */
8719 #include <stdlib.h>
8720
8721 _ACEOF
8722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8723 $EGREP "free" >/dev/null 2>&1; then :
8724
8725 else
8726 ac_cv_header_stdc=no
8727 fi
8728 rm -f conftest*
8729
8730 fi
8731
8732 if test $ac_cv_header_stdc = yes; then
8733 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8734 if test "$cross_compiling" = yes; then :
8735 :
8736 else
8737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8738 /* end confdefs.h. */
8739 #include <ctype.h>
8740 #include <stdlib.h>
8741 #if ((' ' & 0x0FF) == 0x020)
8742 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8743 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8744 #else
8745 # define ISLOWER(c) \
8746 (('a' <= (c) && (c) <= 'i') \
8747 || ('j' <= (c) && (c) <= 'r') \
8748 || ('s' <= (c) && (c) <= 'z'))
8749 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8750 #endif
8751
8752 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8753 int
8754 main ()
8755 {
8756 int i;
8757 for (i = 0; i < 256; i++)
8758 if (XOR (islower (i), ISLOWER (i))
8759 || toupper (i) != TOUPPER (i))
8760 return 2;
8761 return 0;
8762 }
8763 _ACEOF
8764 if ac_fn_c_try_run "$LINENO"; then :
8765
8766 else
8767 ac_cv_header_stdc=no
8768 fi
8769 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8770 conftest.$ac_objext conftest.beam conftest.$ac_ext
8771 fi
8772
8773 fi
8774 fi
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8776 $as_echo "$ac_cv_header_stdc" >&6; }
8777 if test $ac_cv_header_stdc = yes; then
8778
8779 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8780
8781 fi
8782
8783 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8784 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8785 inttypes.h stdint.h unistd.h
8786 do :
8787 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8788 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8789 "
8790 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8791 cat >>confdefs.h <<_ACEOF
8792 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8793 _ACEOF
8794
8795 fi
8796
8797 done
8798
8799
8800 for ac_header in dlfcn.h
8801 do :
8802 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8803 "
8804 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8805 cat >>confdefs.h <<_ACEOF
8806 #define HAVE_DLFCN_H 1
8807 _ACEOF
8808
8809 fi
8810
8811 done
8812
8813
8814
8815
8816 func_stripname_cnf ()
8817 {
8818 case ${2} in
8819 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8820 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8821 esac
8822 } # func_stripname_cnf
8823
8824
8825
8826
8827
8828 # Set options
8829
8830
8831
8832 enable_dlopen=no
8833
8834
8835 enable_win32_dll=no
8836
8837
8838 # Check whether --enable-shared was given.
8839 if test "${enable_shared+set}" = set; then :
8840 enableval=$enable_shared; p=${PACKAGE-default}
8841 case $enableval in
8842 yes) enable_shared=yes ;;
8843 no) enable_shared=no ;;
8844 *)
8845 enable_shared=no
8846 # Look at the argument we got. We use all the common list separators.
8847 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8848 for pkg in $enableval; do
8849 IFS="$lt_save_ifs"
8850 if test "X$pkg" = "X$p"; then
8851 enable_shared=yes
8852 fi
8853 done
8854 IFS="$lt_save_ifs"
8855 ;;
8856 esac
8857 else
8858 enable_shared=yes
8859 fi
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869 # Check whether --enable-static was given.
8870 if test "${enable_static+set}" = set; then :
8871 enableval=$enable_static; p=${PACKAGE-default}
8872 case $enableval in
8873 yes) enable_static=yes ;;
8874 no) enable_static=no ;;
8875 *)
8876 enable_static=no
8877 # Look at the argument we got. We use all the common list separators.
8878 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8879 for pkg in $enableval; do
8880 IFS="$lt_save_ifs"
8881 if test "X$pkg" = "X$p"; then
8882 enable_static=yes
8883 fi
8884 done
8885 IFS="$lt_save_ifs"
8886 ;;
8887 esac
8888 else
8889 enable_static=yes
8890 fi
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901 # Check whether --with-pic was given.
8902 if test "${with_pic+set}" = set; then :
8903 withval=$with_pic; lt_p=${PACKAGE-default}
8904 case $withval in
8905 yes|no) pic_mode=$withval ;;
8906 *)
8907 pic_mode=default
8908 # Look at the argument we got. We use all the common list separators.
8909 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8910 for lt_pkg in $withval; do
8911 IFS="$lt_save_ifs"
8912 if test "X$lt_pkg" = "X$lt_p"; then
8913 pic_mode=yes
8914 fi
8915 done
8916 IFS="$lt_save_ifs"
8917 ;;
8918 esac
8919 else
8920 pic_mode=default
8921 fi
8922
8923
8924 test -z "$pic_mode" && pic_mode=default
8925
8926
8927
8928
8929
8930
8931
8932 # Check whether --enable-fast-install was given.
8933 if test "${enable_fast_install+set}" = set; then :
8934 enableval=$enable_fast_install; p=${PACKAGE-default}
8935 case $enableval in
8936 yes) enable_fast_install=yes ;;
8937 no) enable_fast_install=no ;;
8938 *)
8939 enable_fast_install=no
8940 # Look at the argument we got. We use all the common list separators.
8941 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8942 for pkg in $enableval; do
8943 IFS="$lt_save_ifs"
8944 if test "X$pkg" = "X$p"; then
8945 enable_fast_install=yes
8946 fi
8947 done
8948 IFS="$lt_save_ifs"
8949 ;;
8950 esac
8951 else
8952 enable_fast_install=yes
8953 fi
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965 # This can be used to rebuild libtool when needed
8966 LIBTOOL_DEPS="$ltmain"
8967
8968 # Always use our own libtool.
8969 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000 test -z "$LN_S" && LN_S="ln -s"
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015 if test -n "${ZSH_VERSION+set}" ; then
9016 setopt NO_GLOB_SUBST
9017 fi
9018
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9020 $as_echo_n "checking for objdir... " >&6; }
9021 if ${lt_cv_objdir+:} false; then :
9022 $as_echo_n "(cached) " >&6
9023 else
9024 rm -f .libs 2>/dev/null
9025 mkdir .libs 2>/dev/null
9026 if test -d .libs; then
9027 lt_cv_objdir=.libs
9028 else
9029 # MS-DOS does not allow filenames that begin with a dot.
9030 lt_cv_objdir=_libs
9031 fi
9032 rmdir .libs 2>/dev/null
9033 fi
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9035 $as_echo "$lt_cv_objdir" >&6; }
9036 objdir=$lt_cv_objdir
9037
9038
9039
9040
9041
9042 cat >>confdefs.h <<_ACEOF
9043 #define LT_OBJDIR "$lt_cv_objdir/"
9044 _ACEOF
9045
9046
9047
9048
9049 case $host_os in
9050 aix3*)
9051 # AIX sometimes has problems with the GCC collect2 program. For some
9052 # reason, if we set the COLLECT_NAMES environment variable, the problems
9053 # vanish in a puff of smoke.
9054 if test "X${COLLECT_NAMES+set}" != Xset; then
9055 COLLECT_NAMES=
9056 export COLLECT_NAMES
9057 fi
9058 ;;
9059 esac
9060
9061 # Global variables:
9062 ofile=libtool
9063 can_build_shared=yes
9064
9065 # All known linkers require a `.a' archive for static linking (except MSVC,
9066 # which needs '.lib').
9067 libext=a
9068
9069 with_gnu_ld="$lt_cv_prog_gnu_ld"
9070
9071 old_CC="$CC"
9072 old_CFLAGS="$CFLAGS"
9073
9074 # Set sane defaults for various variables
9075 test -z "$CC" && CC=cc
9076 test -z "$LTCC" && LTCC=$CC
9077 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9078 test -z "$LD" && LD=ld
9079 test -z "$ac_objext" && ac_objext=o
9080
9081 for cc_temp in $compiler""; do
9082 case $cc_temp in
9083 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9084 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9085 \-*) ;;
9086 *) break;;
9087 esac
9088 done
9089 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9090
9091
9092 # Only perform the check for file, if the check method requires it
9093 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9094 case $deplibs_check_method in
9095 file_magic*)
9096 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9098 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9099 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9100 $as_echo_n "(cached) " >&6
9101 else
9102 case $MAGIC_CMD in
9103 [\\/*] | ?:[\\/]*)
9104 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9105 ;;
9106 *)
9107 lt_save_MAGIC_CMD="$MAGIC_CMD"
9108 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9109 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9110 for ac_dir in $ac_dummy; do
9111 IFS="$lt_save_ifs"
9112 test -z "$ac_dir" && ac_dir=.
9113 if test -f $ac_dir/${ac_tool_prefix}file; then
9114 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9115 if test -n "$file_magic_test_file"; then
9116 case $deplibs_check_method in
9117 "file_magic "*)
9118 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9119 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9120 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9121 $EGREP "$file_magic_regex" > /dev/null; then
9122 :
9123 else
9124 cat <<_LT_EOF 1>&2
9125
9126 *** Warning: the command libtool uses to detect shared libraries,
9127 *** $file_magic_cmd, produces output that libtool cannot recognize.
9128 *** The result is that libtool may fail to recognize shared libraries
9129 *** as such. This will affect the creation of libtool libraries that
9130 *** depend on shared libraries, but programs linked with such libtool
9131 *** libraries will work regardless of this problem. Nevertheless, you
9132 *** may want to report the problem to your system manager and/or to
9133 *** [email protected]
9134
9135 _LT_EOF
9136 fi ;;
9137 esac
9138 fi
9139 break
9140 fi
9141 done
9142 IFS="$lt_save_ifs"
9143 MAGIC_CMD="$lt_save_MAGIC_CMD"
9144 ;;
9145 esac
9146 fi
9147
9148 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9149 if test -n "$MAGIC_CMD"; then
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9151 $as_echo "$MAGIC_CMD" >&6; }
9152 else
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9154 $as_echo "no" >&6; }
9155 fi
9156
9157
9158
9159
9160
9161 if test -z "$lt_cv_path_MAGIC_CMD"; then
9162 if test -n "$ac_tool_prefix"; then
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9164 $as_echo_n "checking for file... " >&6; }
9165 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9166 $as_echo_n "(cached) " >&6
9167 else
9168 case $MAGIC_CMD in
9169 [\\/*] | ?:[\\/]*)
9170 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9171 ;;
9172 *)
9173 lt_save_MAGIC_CMD="$MAGIC_CMD"
9174 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9175 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9176 for ac_dir in $ac_dummy; do
9177 IFS="$lt_save_ifs"
9178 test -z "$ac_dir" && ac_dir=.
9179 if test -f $ac_dir/file; then
9180 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9181 if test -n "$file_magic_test_file"; then
9182 case $deplibs_check_method in
9183 "file_magic "*)
9184 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9185 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9186 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9187 $EGREP "$file_magic_regex" > /dev/null; then
9188 :
9189 else
9190 cat <<_LT_EOF 1>&2
9191
9192 *** Warning: the command libtool uses to detect shared libraries,
9193 *** $file_magic_cmd, produces output that libtool cannot recognize.
9194 *** The result is that libtool may fail to recognize shared libraries
9195 *** as such. This will affect the creation of libtool libraries that
9196 *** depend on shared libraries, but programs linked with such libtool
9197 *** libraries will work regardless of this problem. Nevertheless, you
9198 *** may want to report the problem to your system manager and/or to
9199 *** [email protected]
9200
9201 _LT_EOF
9202 fi ;;
9203 esac
9204 fi
9205 break
9206 fi
9207 done
9208 IFS="$lt_save_ifs"
9209 MAGIC_CMD="$lt_save_MAGIC_CMD"
9210 ;;
9211 esac
9212 fi
9213
9214 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9215 if test -n "$MAGIC_CMD"; then
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9217 $as_echo "$MAGIC_CMD" >&6; }
9218 else
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9220 $as_echo "no" >&6; }
9221 fi
9222
9223
9224 else
9225 MAGIC_CMD=:
9226 fi
9227 fi
9228
9229 fi
9230 ;;
9231 esac
9232
9233 # Use C for the default configuration in the libtool script
9234
9235 lt_save_CC="$CC"
9236 ac_ext=c
9237 ac_cpp='$CPP $CPPFLAGS'
9238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9241
9242
9243 # Source file extension for C test sources.
9244 ac_ext=c
9245
9246 # Object file extension for compiled C test sources.
9247 objext=o
9248 objext=$objext
9249
9250 # Code to be used in simple compile tests
9251 lt_simple_compile_test_code="int some_variable = 0;"
9252
9253 # Code to be used in simple link tests
9254 lt_simple_link_test_code='int main(){return(0);}'
9255
9256
9257
9258
9259
9260
9261
9262 # If no C compiler was specified, use CC.
9263 LTCC=${LTCC-"$CC"}
9264
9265 # If no C compiler flags were specified, use CFLAGS.
9266 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9267
9268 # Allow CC to be a program name with arguments.
9269 compiler=$CC
9270
9271 # Save the default compiler, since it gets overwritten when the other
9272 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9273 compiler_DEFAULT=$CC
9274
9275 # save warnings/boilerplate of simple test code
9276 ac_outfile=conftest.$ac_objext
9277 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9278 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9279 _lt_compiler_boilerplate=`cat conftest.err`
9280 $RM conftest*
9281
9282 ac_outfile=conftest.$ac_objext
9283 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9284 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9285 _lt_linker_boilerplate=`cat conftest.err`
9286 $RM -r conftest*
9287
9288
9289 ## CAVEAT EMPTOR:
9290 ## There is no encapsulation within the following macros, do not change
9291 ## the running order or otherwise move them around unless you know exactly
9292 ## what you are doing...
9293 if test -n "$compiler"; then
9294
9295 lt_prog_compiler_no_builtin_flag=
9296
9297 if test "$GCC" = yes; then
9298 case $cc_basename in
9299 nvcc*)
9300 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9301 *)
9302 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9303 esac
9304
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9306 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9307 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9308 $as_echo_n "(cached) " >&6
9309 else
9310 lt_cv_prog_compiler_rtti_exceptions=no
9311 ac_outfile=conftest.$ac_objext
9312 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9313 lt_compiler_flag="-fno-rtti -fno-exceptions"
9314 # Insert the option either (1) after the last *FLAGS variable, or
9315 # (2) before a word containing "conftest.", or (3) at the end.
9316 # Note that $ac_compile itself does not contain backslashes and begins
9317 # with a dollar sign (not a hyphen), so the echo should work correctly.
9318 # The option is referenced via a variable to avoid confusing sed.
9319 lt_compile=`echo "$ac_compile" | $SED \
9320 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9321 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9322 -e 's:$: $lt_compiler_flag:'`
9323 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9324 (eval "$lt_compile" 2>conftest.err)
9325 ac_status=$?
9326 cat conftest.err >&5
9327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328 if (exit $ac_status) && test -s "$ac_outfile"; then
9329 # The compiler can only warn and ignore the option if not recognized
9330 # So say no if there are warnings other than the usual output.
9331 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9332 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9333 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9334 lt_cv_prog_compiler_rtti_exceptions=yes
9335 fi
9336 fi
9337 $RM conftest*
9338
9339 fi
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9341 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9342
9343 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9344 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9345 else
9346 :
9347 fi
9348
9349 fi
9350
9351
9352
9353
9354
9355
9356 lt_prog_compiler_wl=
9357 lt_prog_compiler_pic=
9358 lt_prog_compiler_static=
9359
9360
9361 if test "$GCC" = yes; then
9362 lt_prog_compiler_wl='-Wl,'
9363 lt_prog_compiler_static='-static'
9364
9365 case $host_os in
9366 aix*)
9367 # All AIX code is PIC.
9368 if test "$host_cpu" = ia64; then
9369 # AIX 5 now supports IA64 processor
9370 lt_prog_compiler_static='-Bstatic'
9371 fi
9372 ;;
9373
9374 amigaos*)
9375 case $host_cpu in
9376 powerpc)
9377 # see comment about AmigaOS4 .so support
9378 lt_prog_compiler_pic='-fPIC'
9379 ;;
9380 m68k)
9381 # FIXME: we need at least 68020 code to build shared libraries, but
9382 # adding the `-m68020' flag to GCC prevents building anything better,
9383 # like `-m68040'.
9384 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9385 ;;
9386 esac
9387 ;;
9388
9389 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9390 # PIC is the default for these OSes.
9391 ;;
9392
9393 mingw* | cygwin* | pw32* | os2* | cegcc*)
9394 # This hack is so that the source file can tell whether it is being
9395 # built for inclusion in a dll (and should export symbols for example).
9396 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9397 # (--disable-auto-import) libraries
9398 lt_prog_compiler_pic='-DDLL_EXPORT'
9399 ;;
9400
9401 darwin* | rhapsody*)
9402 # PIC is the default on this platform
9403 # Common symbols not allowed in MH_DYLIB files
9404 lt_prog_compiler_pic='-fno-common'
9405 ;;
9406
9407 haiku*)
9408 # PIC is the default for Haiku.
9409 # The "-static" flag exists, but is broken.
9410 lt_prog_compiler_static=
9411 ;;
9412
9413 hpux*)
9414 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9415 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9416 # sets the default TLS model and affects inlining.
9417 case $host_cpu in
9418 hppa*64*)
9419 # +Z the default
9420 ;;
9421 *)
9422 lt_prog_compiler_pic='-fPIC'
9423 ;;
9424 esac
9425 ;;
9426
9427 interix[3-9]*)
9428 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9429 # Instead, we relocate shared libraries at runtime.
9430 ;;
9431
9432 msdosdjgpp*)
9433 # Just because we use GCC doesn't mean we suddenly get shared libraries
9434 # on systems that don't support them.
9435 lt_prog_compiler_can_build_shared=no
9436 enable_shared=no
9437 ;;
9438
9439 *nto* | *qnx*)
9440 # QNX uses GNU C++, but need to define -shared option too, otherwise
9441 # it will coredump.
9442 lt_prog_compiler_pic='-fPIC -shared'
9443 ;;
9444
9445 sysv4*MP*)
9446 if test -d /usr/nec; then
9447 lt_prog_compiler_pic=-Kconform_pic
9448 fi
9449 ;;
9450
9451 *)
9452 lt_prog_compiler_pic='-fPIC'
9453 ;;
9454 esac
9455
9456 case $cc_basename in
9457 nvcc*) # Cuda Compiler Driver 2.2
9458 lt_prog_compiler_wl='-Xlinker '
9459 if test -n "$lt_prog_compiler_pic"; then
9460 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9461 fi
9462 ;;
9463 esac
9464 else
9465 # PORTME Check for flag to pass linker flags through the system compiler.
9466 case $host_os in
9467 aix*)
9468 lt_prog_compiler_wl='-Wl,'
9469 if test "$host_cpu" = ia64; then
9470 # AIX 5 now supports IA64 processor
9471 lt_prog_compiler_static='-Bstatic'
9472 else
9473 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9474 fi
9475 ;;
9476
9477 mingw* | cygwin* | pw32* | os2* | cegcc*)
9478 # This hack is so that the source file can tell whether it is being
9479 # built for inclusion in a dll (and should export symbols for example).
9480 lt_prog_compiler_pic='-DDLL_EXPORT'
9481 ;;
9482
9483 hpux9* | hpux10* | hpux11*)
9484 lt_prog_compiler_wl='-Wl,'
9485 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9486 # not for PA HP-UX.
9487 case $host_cpu in
9488 hppa*64*|ia64*)
9489 # +Z the default
9490 ;;
9491 *)
9492 lt_prog_compiler_pic='+Z'
9493 ;;
9494 esac
9495 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9496 lt_prog_compiler_static='${wl}-a ${wl}archive'
9497 ;;
9498
9499 irix5* | irix6* | nonstopux*)
9500 lt_prog_compiler_wl='-Wl,'
9501 # PIC (with -KPIC) is the default.
9502 lt_prog_compiler_static='-non_shared'
9503 ;;
9504
9505 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9506 case $cc_basename in
9507 # old Intel for x86_64 which still supported -KPIC.
9508 ecc*)
9509 lt_prog_compiler_wl='-Wl,'
9510 lt_prog_compiler_pic='-KPIC'
9511 lt_prog_compiler_static='-static'
9512 ;;
9513 # icc used to be incompatible with GCC.
9514 # ICC 10 doesn't accept -KPIC any more.
9515 icc* | ifort*)
9516 lt_prog_compiler_wl='-Wl,'
9517 lt_prog_compiler_pic='-fPIC'
9518 lt_prog_compiler_static='-static'
9519 ;;
9520 # Lahey Fortran 8.1.
9521 lf95*)
9522 lt_prog_compiler_wl='-Wl,'
9523 lt_prog_compiler_pic='--shared'
9524 lt_prog_compiler_static='--static'
9525 ;;
9526 nagfor*)
9527 # NAG Fortran compiler
9528 lt_prog_compiler_wl='-Wl,-Wl,,'
9529 lt_prog_compiler_pic='-PIC'
9530 lt_prog_compiler_static='-Bstatic'
9531 ;;
9532 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9533 # Portland Group compilers (*not* the Pentium gcc compiler,
9534 # which looks to be a dead project)
9535 lt_prog_compiler_wl='-Wl,'
9536 lt_prog_compiler_pic='-fpic'
9537 lt_prog_compiler_static='-Bstatic'
9538 ;;
9539 ccc*)
9540 lt_prog_compiler_wl='-Wl,'
9541 # All Alpha code is PIC.
9542 lt_prog_compiler_static='-non_shared'
9543 ;;
9544 xl* | bgxl* | bgf* | mpixl*)
9545 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9546 lt_prog_compiler_wl='-Wl,'
9547 lt_prog_compiler_pic='-qpic'
9548 lt_prog_compiler_static='-qstaticlink'
9549 ;;
9550 *)
9551 case `$CC -V 2>&1 | sed 5q` in
9552 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9553 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9554 lt_prog_compiler_pic='-KPIC'
9555 lt_prog_compiler_static='-Bstatic'
9556 lt_prog_compiler_wl=''
9557 ;;
9558 *Sun\ F* | *Sun*Fortran*)
9559 lt_prog_compiler_pic='-KPIC'
9560 lt_prog_compiler_static='-Bstatic'
9561 lt_prog_compiler_wl='-Qoption ld '
9562 ;;
9563 *Sun\ C*)
9564 # Sun C 5.9
9565 lt_prog_compiler_pic='-KPIC'
9566 lt_prog_compiler_static='-Bstatic'
9567 lt_prog_compiler_wl='-Wl,'
9568 ;;
9569 *Intel*\ [CF]*Compiler*)
9570 lt_prog_compiler_wl='-Wl,'
9571 lt_prog_compiler_pic='-fPIC'
9572 lt_prog_compiler_static='-static'
9573 ;;
9574 *Portland\ Group*)
9575 lt_prog_compiler_wl='-Wl,'
9576 lt_prog_compiler_pic='-fpic'
9577 lt_prog_compiler_static='-Bstatic'
9578 ;;
9579 esac
9580 ;;
9581 esac
9582 ;;
9583
9584 newsos6)
9585 lt_prog_compiler_pic='-KPIC'
9586 lt_prog_compiler_static='-Bstatic'
9587 ;;
9588
9589 *nto* | *qnx*)
9590 # QNX uses GNU C++, but need to define -shared option too, otherwise
9591 # it will coredump.
9592 lt_prog_compiler_pic='-fPIC -shared'
9593 ;;
9594
9595 osf3* | osf4* | osf5*)
9596 lt_prog_compiler_wl='-Wl,'
9597 # All OSF/1 code is PIC.
9598 lt_prog_compiler_static='-non_shared'
9599 ;;
9600
9601 rdos*)
9602 lt_prog_compiler_static='-non_shared'
9603 ;;
9604
9605 solaris*)
9606 lt_prog_compiler_pic='-KPIC'
9607 lt_prog_compiler_static='-Bstatic'
9608 case $cc_basename in
9609 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9610 lt_prog_compiler_wl='-Qoption ld ';;
9611 *)
9612 lt_prog_compiler_wl='-Wl,';;
9613 esac
9614 ;;
9615
9616 sunos4*)
9617 lt_prog_compiler_wl='-Qoption ld '
9618 lt_prog_compiler_pic='-PIC'
9619 lt_prog_compiler_static='-Bstatic'
9620 ;;
9621
9622 sysv4 | sysv4.2uw2* | sysv4.3*)
9623 lt_prog_compiler_wl='-Wl,'
9624 lt_prog_compiler_pic='-KPIC'
9625 lt_prog_compiler_static='-Bstatic'
9626 ;;
9627
9628 sysv4*MP*)
9629 if test -d /usr/nec ;then
9630 lt_prog_compiler_pic='-Kconform_pic'
9631 lt_prog_compiler_static='-Bstatic'
9632 fi
9633 ;;
9634
9635 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9636 lt_prog_compiler_wl='-Wl,'
9637 lt_prog_compiler_pic='-KPIC'
9638 lt_prog_compiler_static='-Bstatic'
9639 ;;
9640
9641 unicos*)
9642 lt_prog_compiler_wl='-Wl,'
9643 lt_prog_compiler_can_build_shared=no
9644 ;;
9645
9646 uts4*)
9647 lt_prog_compiler_pic='-pic'
9648 lt_prog_compiler_static='-Bstatic'
9649 ;;
9650
9651 *)
9652 lt_prog_compiler_can_build_shared=no
9653 ;;
9654 esac
9655 fi
9656
9657 case $host_os in
9658 # For platforms which do not support PIC, -DPIC is meaningless:
9659 *djgpp*)
9660 lt_prog_compiler_pic=
9661 ;;
9662 *)
9663 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9664 ;;
9665 esac
9666
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9668 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9669 if ${lt_cv_prog_compiler_pic+:} false; then :
9670 $as_echo_n "(cached) " >&6
9671 else
9672 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9673 fi
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9675 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9676 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9677
9678 #
9679 # Check to make sure the PIC flag actually works.
9680 #
9681 if test -n "$lt_prog_compiler_pic"; then
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9683 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9684 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9685 $as_echo_n "(cached) " >&6
9686 else
9687 lt_cv_prog_compiler_pic_works=no
9688 ac_outfile=conftest.$ac_objext
9689 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9690 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9691 # Insert the option either (1) after the last *FLAGS variable, or
9692 # (2) before a word containing "conftest.", or (3) at the end.
9693 # Note that $ac_compile itself does not contain backslashes and begins
9694 # with a dollar sign (not a hyphen), so the echo should work correctly.
9695 # The option is referenced via a variable to avoid confusing sed.
9696 lt_compile=`echo "$ac_compile" | $SED \
9697 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9698 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9699 -e 's:$: $lt_compiler_flag:'`
9700 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9701 (eval "$lt_compile" 2>conftest.err)
9702 ac_status=$?
9703 cat conftest.err >&5
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 if (exit $ac_status) && test -s "$ac_outfile"; then
9706 # The compiler can only warn and ignore the option if not recognized
9707 # So say no if there are warnings other than the usual output.
9708 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9709 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9710 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9711 lt_cv_prog_compiler_pic_works=yes
9712 fi
9713 fi
9714 $RM conftest*
9715
9716 fi
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9718 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9719
9720 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9721 case $lt_prog_compiler_pic in
9722 "" | " "*) ;;
9723 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9724 esac
9725 else
9726 lt_prog_compiler_pic=
9727 lt_prog_compiler_can_build_shared=no
9728 fi
9729
9730 fi
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742 #
9743 # Check to make sure the static flag actually works.
9744 #
9745 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9747 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9748 if ${lt_cv_prog_compiler_static_works+:} false; then :
9749 $as_echo_n "(cached) " >&6
9750 else
9751 lt_cv_prog_compiler_static_works=no
9752 save_LDFLAGS="$LDFLAGS"
9753 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9754 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9755 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9756 # The linker can only warn and ignore the option if not recognized
9757 # So say no if there are warnings
9758 if test -s conftest.err; then
9759 # Append any errors to the config.log.
9760 cat conftest.err 1>&5
9761 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9762 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9763 if diff conftest.exp conftest.er2 >/dev/null; then
9764 lt_cv_prog_compiler_static_works=yes
9765 fi
9766 else
9767 lt_cv_prog_compiler_static_works=yes
9768 fi
9769 fi
9770 $RM -r conftest*
9771 LDFLAGS="$save_LDFLAGS"
9772
9773 fi
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9775 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9776
9777 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9778 :
9779 else
9780 lt_prog_compiler_static=
9781 fi
9782
9783
9784
9785
9786
9787
9788
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9790 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9791 if ${lt_cv_prog_compiler_c_o+:} false; then :
9792 $as_echo_n "(cached) " >&6
9793 else
9794 lt_cv_prog_compiler_c_o=no
9795 $RM -r conftest 2>/dev/null
9796 mkdir conftest
9797 cd conftest
9798 mkdir out
9799 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9800
9801 lt_compiler_flag="-o out/conftest2.$ac_objext"
9802 # Insert the option either (1) after the last *FLAGS variable, or
9803 # (2) before a word containing "conftest.", or (3) at the end.
9804 # Note that $ac_compile itself does not contain backslashes and begins
9805 # with a dollar sign (not a hyphen), so the echo should work correctly.
9806 lt_compile=`echo "$ac_compile" | $SED \
9807 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9808 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9809 -e 's:$: $lt_compiler_flag:'`
9810 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9811 (eval "$lt_compile" 2>out/conftest.err)
9812 ac_status=$?
9813 cat out/conftest.err >&5
9814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9816 then
9817 # The compiler can only warn and ignore the option if not recognized
9818 # So say no if there are warnings
9819 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9820 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9821 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9822 lt_cv_prog_compiler_c_o=yes
9823 fi
9824 fi
9825 chmod u+w . 2>&5
9826 $RM conftest*
9827 # SGI C++ compiler will create directory out/ii_files/ for
9828 # template instantiation
9829 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9830 $RM out/* && rmdir out
9831 cd ..
9832 $RM -r conftest
9833 $RM conftest*
9834
9835 fi
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9837 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9838
9839
9840
9841
9842
9843
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9845 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9846 if ${lt_cv_prog_compiler_c_o+:} false; then :
9847 $as_echo_n "(cached) " >&6
9848 else
9849 lt_cv_prog_compiler_c_o=no
9850 $RM -r conftest 2>/dev/null
9851 mkdir conftest
9852 cd conftest
9853 mkdir out
9854 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9855
9856 lt_compiler_flag="-o out/conftest2.$ac_objext"
9857 # Insert the option either (1) after the last *FLAGS variable, or
9858 # (2) before a word containing "conftest.", or (3) at the end.
9859 # Note that $ac_compile itself does not contain backslashes and begins
9860 # with a dollar sign (not a hyphen), so the echo should work correctly.
9861 lt_compile=`echo "$ac_compile" | $SED \
9862 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9863 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9864 -e 's:$: $lt_compiler_flag:'`
9865 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9866 (eval "$lt_compile" 2>out/conftest.err)
9867 ac_status=$?
9868 cat out/conftest.err >&5
9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9871 then
9872 # The compiler can only warn and ignore the option if not recognized
9873 # So say no if there are warnings
9874 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9875 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9876 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9877 lt_cv_prog_compiler_c_o=yes
9878 fi
9879 fi
9880 chmod u+w . 2>&5
9881 $RM conftest*
9882 # SGI C++ compiler will create directory out/ii_files/ for
9883 # template instantiation
9884 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9885 $RM out/* && rmdir out
9886 cd ..
9887 $RM -r conftest
9888 $RM conftest*
9889
9890 fi
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9892 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9893
9894
9895
9896
9897 hard_links="nottested"
9898 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9899 # do not overwrite the value of need_locks provided by the user
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9901 $as_echo_n "checking if we can lock with hard links... " >&6; }
9902 hard_links=yes
9903 $RM conftest*
9904 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9905 touch conftest.a
9906 ln conftest.a conftest.b 2>&5 || hard_links=no
9907 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9909 $as_echo "$hard_links" >&6; }
9910 if test "$hard_links" = no; then
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9912 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9913 need_locks=warn
9914 fi
9915 else
9916 need_locks=no
9917 fi
9918
9919
9920
9921
9922
9923
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9925 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9926
9927 runpath_var=
9928 allow_undefined_flag=
9929 always_export_symbols=no
9930 archive_cmds=
9931 archive_expsym_cmds=
9932 compiler_needs_object=no
9933 enable_shared_with_static_runtimes=no
9934 export_dynamic_flag_spec=
9935 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9936 hardcode_automatic=no
9937 hardcode_direct=no
9938 hardcode_direct_absolute=no
9939 hardcode_libdir_flag_spec=
9940 hardcode_libdir_separator=
9941 hardcode_minus_L=no
9942 hardcode_shlibpath_var=unsupported
9943 inherit_rpath=no
9944 link_all_deplibs=unknown
9945 module_cmds=
9946 module_expsym_cmds=
9947 old_archive_from_new_cmds=
9948 old_archive_from_expsyms_cmds=
9949 thread_safe_flag_spec=
9950 whole_archive_flag_spec=
9951 # include_expsyms should be a list of space-separated symbols to be *always*
9952 # included in the symbol list
9953 include_expsyms=
9954 # exclude_expsyms can be an extended regexp of symbols to exclude
9955 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9956 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9957 # as well as any symbol that contains `d'.
9958 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9959 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9960 # platforms (ab)use it in PIC code, but their linkers get confused if
9961 # the symbol is explicitly referenced. Since portable code cannot
9962 # rely on this symbol name, it's probably fine to never include it in
9963 # preloaded symbol tables.
9964 # Exclude shared library initialization/finalization symbols.
9965 extract_expsyms_cmds=
9966
9967 case $host_os in
9968 cygwin* | mingw* | pw32* | cegcc*)
9969 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9970 # When not using gcc, we currently assume that we are using
9971 # Microsoft Visual C++.
9972 if test "$GCC" != yes; then
9973 with_gnu_ld=no
9974 fi
9975 ;;
9976 interix*)
9977 # we just hope/assume this is gcc and not c89 (= MSVC++)
9978 with_gnu_ld=yes
9979 ;;
9980 openbsd*)
9981 with_gnu_ld=no
9982 ;;
9983 linux* | k*bsd*-gnu | gnu*)
9984 link_all_deplibs=no
9985 ;;
9986 esac
9987
9988 ld_shlibs=yes
9989
9990 # On some targets, GNU ld is compatible enough with the native linker
9991 # that we're better off using the native interface for both.
9992 lt_use_gnu_ld_interface=no
9993 if test "$with_gnu_ld" = yes; then
9994 case $host_os in
9995 aix*)
9996 # The AIX port of GNU ld has always aspired to compatibility
9997 # with the native linker. However, as the warning in the GNU ld
9998 # block says, versions before 2.19.5* couldn't really create working
9999 # shared libraries, regardless of the interface used.
10000 case `$LD -v 2>&1` in
10001 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10002 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10003 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10004 *)
10005 lt_use_gnu_ld_interface=yes
10006 ;;
10007 esac
10008 ;;
10009 *)
10010 lt_use_gnu_ld_interface=yes
10011 ;;
10012 esac
10013 fi
10014
10015 if test "$lt_use_gnu_ld_interface" = yes; then
10016 # If archive_cmds runs LD, not CC, wlarc should be empty
10017 wlarc='${wl}'
10018
10019 # Set some defaults for GNU ld with shared library support. These
10020 # are reset later if shared libraries are not supported. Putting them
10021 # here allows them to be overridden if necessary.
10022 runpath_var=LD_RUN_PATH
10023 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10024 export_dynamic_flag_spec='${wl}--export-dynamic'
10025 # ancient GNU ld didn't support --whole-archive et. al.
10026 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10027 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10028 else
10029 whole_archive_flag_spec=
10030 fi
10031 supports_anon_versioning=no
10032 case `$LD -v 2>&1` in
10033 *GNU\ gold*) supports_anon_versioning=yes ;;
10034 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10035 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10036 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10037 *\ 2.11.*) ;; # other 2.11 versions
10038 *) supports_anon_versioning=yes ;;
10039 esac
10040
10041 # See if GNU ld supports shared libraries.
10042 case $host_os in
10043 aix[3-9]*)
10044 # On AIX/PPC, the GNU linker is very broken
10045 if test "$host_cpu" != ia64; then
10046 ld_shlibs=no
10047 cat <<_LT_EOF 1>&2
10048
10049 *** Warning: the GNU linker, at least up to release 2.19, is reported
10050 *** to be unable to reliably create shared libraries on AIX.
10051 *** Therefore, libtool is disabling shared libraries support. If you
10052 *** really care for shared libraries, you may want to install binutils
10053 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10054 *** You will then need to restart the configuration process.
10055
10056 _LT_EOF
10057 fi
10058 ;;
10059
10060 amigaos*)
10061 case $host_cpu in
10062 powerpc)
10063 # see comment about AmigaOS4 .so support
10064 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10065 archive_expsym_cmds=''
10066 ;;
10067 m68k)
10068 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)'
10069 hardcode_libdir_flag_spec='-L$libdir'
10070 hardcode_minus_L=yes
10071 ;;
10072 esac
10073 ;;
10074
10075 beos*)
10076 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10077 allow_undefined_flag=unsupported
10078 # Joseph Beckenbach <[email protected]> says some releases of gcc
10079 # support --undefined. This deserves some investigation. FIXME
10080 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10081 else
10082 ld_shlibs=no
10083 fi
10084 ;;
10085
10086 cygwin* | mingw* | pw32* | cegcc*)
10087 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10088 # as there is no search path for DLLs.
10089 hardcode_libdir_flag_spec='-L$libdir'
10090 export_dynamic_flag_spec='${wl}--export-all-symbols'
10091 allow_undefined_flag=unsupported
10092 always_export_symbols=no
10093 enable_shared_with_static_runtimes=yes
10094 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'
10095 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10096
10097 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10098 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10099 # If the export-symbols file already is a .def file (1st line
10100 # is EXPORTS), use it as is; otherwise, prepend...
10101 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10102 cp $export_symbols $output_objdir/$soname.def;
10103 else
10104 echo EXPORTS > $output_objdir/$soname.def;
10105 cat $export_symbols >> $output_objdir/$soname.def;
10106 fi~
10107 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10108 else
10109 ld_shlibs=no
10110 fi
10111 ;;
10112
10113 haiku*)
10114 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10115 link_all_deplibs=yes
10116 ;;
10117
10118 interix[3-9]*)
10119 hardcode_direct=no
10120 hardcode_shlibpath_var=no
10121 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10122 export_dynamic_flag_spec='${wl}-E'
10123 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10124 # Instead, shared libraries are loaded at an image base (0x10000000 by
10125 # default) and relocated if they conflict, which is a slow very memory
10126 # consuming and fragmenting process. To avoid this, we pick a random,
10127 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10128 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10129 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10130 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'
10131 ;;
10132
10133 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10134 tmp_diet=no
10135 if test "$host_os" = linux-dietlibc; then
10136 case $cc_basename in
10137 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10138 esac
10139 fi
10140 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10141 && test "$tmp_diet" = no
10142 then
10143 tmp_addflag=' $pic_flag'
10144 tmp_sharedflag='-shared'
10145 case $cc_basename,$host_cpu in
10146 pgcc*) # Portland Group C compiler
10147 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'
10148 tmp_addflag=' $pic_flag'
10149 ;;
10150 pgf77* | pgf90* | pgf95* | pgfortran*)
10151 # Portland Group f77 and f90 compilers
10152 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'
10153 tmp_addflag=' $pic_flag -Mnomain' ;;
10154 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10155 tmp_addflag=' -i_dynamic' ;;
10156 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10157 tmp_addflag=' -i_dynamic -nofor_main' ;;
10158 ifc* | ifort*) # Intel Fortran compiler
10159 tmp_addflag=' -nofor_main' ;;
10160 lf95*) # Lahey Fortran 8.1
10161 whole_archive_flag_spec=
10162 tmp_sharedflag='--shared' ;;
10163 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10164 tmp_sharedflag='-qmkshrobj'
10165 tmp_addflag= ;;
10166 nvcc*) # Cuda Compiler Driver 2.2
10167 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'
10168 compiler_needs_object=yes
10169 ;;
10170 esac
10171 case `$CC -V 2>&1 | sed 5q` in
10172 *Sun\ C*) # Sun C 5.9
10173 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'
10174 compiler_needs_object=yes
10175 tmp_sharedflag='-G' ;;
10176 *Sun\ F*) # Sun Fortran 8.3
10177 tmp_sharedflag='-G' ;;
10178 esac
10179 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10180
10181 if test "x$supports_anon_versioning" = xyes; then
10182 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10183 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10184 echo "local: *; };" >> $output_objdir/$libname.ver~
10185 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10186 fi
10187
10188 case $cc_basename in
10189 xlf* | bgf* | bgxlf* | mpixlf*)
10190 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10191 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10192 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10193 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10194 if test "x$supports_anon_versioning" = xyes; then
10195 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10196 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10197 echo "local: *; };" >> $output_objdir/$libname.ver~
10198 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10199 fi
10200 ;;
10201 esac
10202 else
10203 ld_shlibs=no
10204 fi
10205 ;;
10206
10207 netbsd* | netbsdelf*-gnu)
10208 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10209 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10210 wlarc=
10211 else
10212 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10213 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10214 fi
10215 ;;
10216
10217 solaris*)
10218 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10219 ld_shlibs=no
10220 cat <<_LT_EOF 1>&2
10221
10222 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10223 *** create shared libraries on Solaris systems. Therefore, libtool
10224 *** is disabling shared libraries support. We urge you to upgrade GNU
10225 *** binutils to release 2.9.1 or newer. Another option is to modify
10226 *** your PATH or compiler configuration so that the native linker is
10227 *** used, and then restart.
10228
10229 _LT_EOF
10230 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10231 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10232 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10233 else
10234 ld_shlibs=no
10235 fi
10236 ;;
10237
10238 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10239 case `$LD -v 2>&1` in
10240 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10241 ld_shlibs=no
10242 cat <<_LT_EOF 1>&2
10243
10244 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10245 *** reliably create shared libraries on SCO systems. Therefore, libtool
10246 *** is disabling shared libraries support. We urge you to upgrade GNU
10247 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10248 *** your PATH or compiler configuration so that the native linker is
10249 *** used, and then restart.
10250
10251 _LT_EOF
10252 ;;
10253 *)
10254 # For security reasons, it is highly recommended that you always
10255 # use absolute paths for naming shared libraries, and exclude the
10256 # DT_RUNPATH tag from executables and libraries. But doing so
10257 # requires that you compile everything twice, which is a pain.
10258 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10259 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10260 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10261 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10262 else
10263 ld_shlibs=no
10264 fi
10265 ;;
10266 esac
10267 ;;
10268
10269 sunos4*)
10270 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10271 wlarc=
10272 hardcode_direct=yes
10273 hardcode_shlibpath_var=no
10274 ;;
10275
10276 *)
10277 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10278 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10279 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10280 else
10281 ld_shlibs=no
10282 fi
10283 ;;
10284 esac
10285
10286 if test "$ld_shlibs" = no; then
10287 runpath_var=
10288 hardcode_libdir_flag_spec=
10289 export_dynamic_flag_spec=
10290 whole_archive_flag_spec=
10291 fi
10292 else
10293 # PORTME fill in a description of your system's linker (not GNU ld)
10294 case $host_os in
10295 aix3*)
10296 allow_undefined_flag=unsupported
10297 always_export_symbols=yes
10298 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'
10299 # Note: this linker hardcodes the directories in LIBPATH if there
10300 # are no directories specified by -L.
10301 hardcode_minus_L=yes
10302 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10303 # Neither direct hardcoding nor static linking is supported with a
10304 # broken collect2.
10305 hardcode_direct=unsupported
10306 fi
10307 ;;
10308
10309 aix[4-9]*)
10310 if test "$host_cpu" = ia64; then
10311 # On IA64, the linker does run time linking by default, so we don't
10312 # have to do anything special.
10313 aix_use_runtimelinking=no
10314 exp_sym_flag='-Bexport'
10315 no_entry_flag=""
10316 else
10317 # If we're using GNU nm, then we don't want the "-C" option.
10318 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10319 # Also, AIX nm treats weak defined symbols like other global
10320 # defined symbols, whereas GNU nm marks them as "W".
10321 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10322 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10323 else
10324 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10325 fi
10326 aix_use_runtimelinking=no
10327
10328 # Test if we are trying to use run time linking or normal
10329 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10330 # need to do runtime linking.
10331 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10332 for ld_flag in $LDFLAGS; do
10333 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10334 aix_use_runtimelinking=yes
10335 break
10336 fi
10337 done
10338 ;;
10339 esac
10340
10341 exp_sym_flag='-bexport'
10342 no_entry_flag='-bnoentry'
10343 fi
10344
10345 # When large executables or shared objects are built, AIX ld can
10346 # have problems creating the table of contents. If linking a library
10347 # or program results in "error TOC overflow" add -mminimal-toc to
10348 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10349 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10350
10351 archive_cmds=''
10352 hardcode_direct=yes
10353 hardcode_direct_absolute=yes
10354 hardcode_libdir_separator=':'
10355 link_all_deplibs=yes
10356 file_list_spec='${wl}-f,'
10357
10358 if test "$GCC" = yes; then
10359 case $host_os in aix4.[012]|aix4.[012].*)
10360 # We only want to do this on AIX 4.2 and lower, the check
10361 # below for broken collect2 doesn't work under 4.3+
10362 collect2name=`${CC} -print-prog-name=collect2`
10363 if test -f "$collect2name" &&
10364 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10365 then
10366 # We have reworked collect2
10367 :
10368 else
10369 # We have old collect2
10370 hardcode_direct=unsupported
10371 # It fails to find uninstalled libraries when the uninstalled
10372 # path is not listed in the libpath. Setting hardcode_minus_L
10373 # to unsupported forces relinking
10374 hardcode_minus_L=yes
10375 hardcode_libdir_flag_spec='-L$libdir'
10376 hardcode_libdir_separator=
10377 fi
10378 ;;
10379 esac
10380 shared_flag='-shared'
10381 if test "$aix_use_runtimelinking" = yes; then
10382 shared_flag="$shared_flag "'${wl}-G'
10383 fi
10384 link_all_deplibs=no
10385 else
10386 # not using gcc
10387 if test "$host_cpu" = ia64; then
10388 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10389 # chokes on -Wl,-G. The following line is correct:
10390 shared_flag='-G'
10391 else
10392 if test "$aix_use_runtimelinking" = yes; then
10393 shared_flag='${wl}-G'
10394 else
10395 shared_flag='${wl}-bM:SRE'
10396 fi
10397 fi
10398 fi
10399
10400 export_dynamic_flag_spec='${wl}-bexpall'
10401 # It seems that -bexpall does not export symbols beginning with
10402 # underscore (_), so it is better to generate a list of symbols to export.
10403 always_export_symbols=yes
10404 if test "$aix_use_runtimelinking" = yes; then
10405 # Warning - without using the other runtime loading flags (-brtl),
10406 # -berok will link without error, but may produce a broken library.
10407 allow_undefined_flag='-berok'
10408 # Determine the default libpath from the value encoded in an
10409 # empty executable.
10410 if test "${lt_cv_aix_libpath+set}" = set; then
10411 aix_libpath=$lt_cv_aix_libpath
10412 else
10413 if ${lt_cv_aix_libpath_+:} false; then :
10414 $as_echo_n "(cached) " >&6
10415 else
10416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10417 /* end confdefs.h. */
10418
10419 int
10420 main ()
10421 {
10422
10423 ;
10424 return 0;
10425 }
10426 _ACEOF
10427 if ac_fn_c_try_link "$LINENO"; then :
10428
10429 lt_aix_libpath_sed='
10430 /Import File Strings/,/^$/ {
10431 /^0/ {
10432 s/^0 *\([^ ]*\) *$/\1/
10433 p
10434 }
10435 }'
10436 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10437 # Check for a 64-bit object if we didn't find anything.
10438 if test -z "$lt_cv_aix_libpath_"; then
10439 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10440 fi
10441 fi
10442 rm -f core conftest.err conftest.$ac_objext \
10443 conftest$ac_exeext conftest.$ac_ext
10444 if test -z "$lt_cv_aix_libpath_"; then
10445 lt_cv_aix_libpath_="/usr/lib:/lib"
10446 fi
10447
10448 fi
10449
10450 aix_libpath=$lt_cv_aix_libpath_
10451 fi
10452
10453 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10454 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10455 else
10456 if test "$host_cpu" = ia64; then
10457 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10458 allow_undefined_flag="-z nodefs"
10459 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"
10460 else
10461 # Determine the default libpath from the value encoded in an
10462 # empty executable.
10463 if test "${lt_cv_aix_libpath+set}" = set; then
10464 aix_libpath=$lt_cv_aix_libpath
10465 else
10466 if ${lt_cv_aix_libpath_+:} false; then :
10467 $as_echo_n "(cached) " >&6
10468 else
10469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10470 /* end confdefs.h. */
10471
10472 int
10473 main ()
10474 {
10475
10476 ;
10477 return 0;
10478 }
10479 _ACEOF
10480 if ac_fn_c_try_link "$LINENO"; then :
10481
10482 lt_aix_libpath_sed='
10483 /Import File Strings/,/^$/ {
10484 /^0/ {
10485 s/^0 *\([^ ]*\) *$/\1/
10486 p
10487 }
10488 }'
10489 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10490 # Check for a 64-bit object if we didn't find anything.
10491 if test -z "$lt_cv_aix_libpath_"; then
10492 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10493 fi
10494 fi
10495 rm -f core conftest.err conftest.$ac_objext \
10496 conftest$ac_exeext conftest.$ac_ext
10497 if test -z "$lt_cv_aix_libpath_"; then
10498 lt_cv_aix_libpath_="/usr/lib:/lib"
10499 fi
10500
10501 fi
10502
10503 aix_libpath=$lt_cv_aix_libpath_
10504 fi
10505
10506 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10507 # Warning - without using the other run time loading flags,
10508 # -berok will link without error, but may produce a broken library.
10509 no_undefined_flag=' ${wl}-bernotok'
10510 allow_undefined_flag=' ${wl}-berok'
10511 if test "$with_gnu_ld" = yes; then
10512 # We only use this code for GNU lds that support --whole-archive.
10513 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10514 else
10515 # Exported symbols can be pulled into shared objects from archives
10516 whole_archive_flag_spec='$convenience'
10517 fi
10518 archive_cmds_need_lc=yes
10519 # This is similar to how AIX traditionally builds its shared libraries.
10520 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10521 fi
10522 fi
10523 ;;
10524
10525 amigaos*)
10526 case $host_cpu in
10527 powerpc)
10528 # see comment about AmigaOS4 .so support
10529 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10530 archive_expsym_cmds=''
10531 ;;
10532 m68k)
10533 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)'
10534 hardcode_libdir_flag_spec='-L$libdir'
10535 hardcode_minus_L=yes
10536 ;;
10537 esac
10538 ;;
10539
10540 bsdi[45]*)
10541 export_dynamic_flag_spec=-rdynamic
10542 ;;
10543
10544 cygwin* | mingw* | pw32* | cegcc*)
10545 # When not using gcc, we currently assume that we are using
10546 # Microsoft Visual C++.
10547 # hardcode_libdir_flag_spec is actually meaningless, as there is
10548 # no search path for DLLs.
10549 case $cc_basename in
10550 cl*)
10551 # Native MSVC
10552 hardcode_libdir_flag_spec=' '
10553 allow_undefined_flag=unsupported
10554 always_export_symbols=yes
10555 file_list_spec='@'
10556 # Tell ltmain to make .lib files, not .a files.
10557 libext=lib
10558 # Tell ltmain to make .dll files, not .so files.
10559 shrext_cmds=".dll"
10560 # FIXME: Setting linknames here is a bad hack.
10561 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10562 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10563 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10564 else
10565 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10566 fi~
10567 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10568 linknames='
10569 # The linker will not automatically build a static lib if we build a DLL.
10570 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10571 enable_shared_with_static_runtimes=yes
10572 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10573 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10574 # Don't use ranlib
10575 old_postinstall_cmds='chmod 644 $oldlib'
10576 postlink_cmds='lt_outputfile="@OUTPUT@"~
10577 lt_tool_outputfile="@TOOL_OUTPUT@"~
10578 case $lt_outputfile in
10579 *.exe|*.EXE) ;;
10580 *)
10581 lt_outputfile="$lt_outputfile.exe"
10582 lt_tool_outputfile="$lt_tool_outputfile.exe"
10583 ;;
10584 esac~
10585 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10586 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10587 $RM "$lt_outputfile.manifest";
10588 fi'
10589 ;;
10590 *)
10591 # Assume MSVC wrapper
10592 hardcode_libdir_flag_spec=' '
10593 allow_undefined_flag=unsupported
10594 # Tell ltmain to make .lib files, not .a files.
10595 libext=lib
10596 # Tell ltmain to make .dll files, not .so files.
10597 shrext_cmds=".dll"
10598 # FIXME: Setting linknames here is a bad hack.
10599 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10600 # The linker will automatically build a .lib file if we build a DLL.
10601 old_archive_from_new_cmds='true'
10602 # FIXME: Should let the user specify the lib program.
10603 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10604 enable_shared_with_static_runtimes=yes
10605 ;;
10606 esac
10607 ;;
10608
10609 darwin* | rhapsody*)
10610
10611
10612 archive_cmds_need_lc=no
10613 hardcode_direct=no
10614 hardcode_automatic=yes
10615 hardcode_shlibpath_var=unsupported
10616 if test "$lt_cv_ld_force_load" = "yes"; then
10617 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\"`'
10618
10619 else
10620 whole_archive_flag_spec=''
10621 fi
10622 link_all_deplibs=yes
10623 allow_undefined_flag="$_lt_dar_allow_undefined"
10624 case $cc_basename in
10625 ifort*) _lt_dar_can_shared=yes ;;
10626 *) _lt_dar_can_shared=$GCC ;;
10627 esac
10628 if test "$_lt_dar_can_shared" = "yes"; then
10629 output_verbose_link_cmd=func_echo_all
10630 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10631 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10632 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}"
10633 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}"
10634
10635 else
10636 ld_shlibs=no
10637 fi
10638
10639 ;;
10640
10641 dgux*)
10642 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10643 hardcode_libdir_flag_spec='-L$libdir'
10644 hardcode_shlibpath_var=no
10645 ;;
10646
10647 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10648 # support. Future versions do this automatically, but an explicit c++rt0.o
10649 # does not break anything, and helps significantly (at the cost of a little
10650 # extra space).
10651 freebsd2.2*)
10652 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10653 hardcode_libdir_flag_spec='-R$libdir'
10654 hardcode_direct=yes
10655 hardcode_shlibpath_var=no
10656 ;;
10657
10658 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10659 freebsd2.*)
10660 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10661 hardcode_direct=yes
10662 hardcode_minus_L=yes
10663 hardcode_shlibpath_var=no
10664 ;;
10665
10666 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10667 freebsd* | dragonfly*)
10668 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10669 hardcode_libdir_flag_spec='-R$libdir'
10670 hardcode_direct=yes
10671 hardcode_shlibpath_var=no
10672 ;;
10673
10674 hpux9*)
10675 if test "$GCC" = yes; then
10676 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10677 else
10678 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10679 fi
10680 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10681 hardcode_libdir_separator=:
10682 hardcode_direct=yes
10683
10684 # hardcode_minus_L: Not really in the search PATH,
10685 # but as the default location of the library.
10686 hardcode_minus_L=yes
10687 export_dynamic_flag_spec='${wl}-E'
10688 ;;
10689
10690 hpux10*)
10691 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10692 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10693 else
10694 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10695 fi
10696 if test "$with_gnu_ld" = no; then
10697 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10698 hardcode_libdir_separator=:
10699 hardcode_direct=yes
10700 hardcode_direct_absolute=yes
10701 export_dynamic_flag_spec='${wl}-E'
10702 # hardcode_minus_L: Not really in the search PATH,
10703 # but as the default location of the library.
10704 hardcode_minus_L=yes
10705 fi
10706 ;;
10707
10708 hpux11*)
10709 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10710 case $host_cpu in
10711 hppa*64*)
10712 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10713 ;;
10714 ia64*)
10715 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10716 ;;
10717 *)
10718 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10719 ;;
10720 esac
10721 else
10722 case $host_cpu in
10723 hppa*64*)
10724 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10725 ;;
10726 ia64*)
10727 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10728 ;;
10729 *)
10730
10731 # Older versions of the 11.00 compiler do not understand -b yet
10732 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10734 $as_echo_n "checking if $CC understands -b... " >&6; }
10735 if ${lt_cv_prog_compiler__b+:} false; then :
10736 $as_echo_n "(cached) " >&6
10737 else
10738 lt_cv_prog_compiler__b=no
10739 save_LDFLAGS="$LDFLAGS"
10740 LDFLAGS="$LDFLAGS -b"
10741 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10742 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10743 # The linker can only warn and ignore the option if not recognized
10744 # So say no if there are warnings
10745 if test -s conftest.err; then
10746 # Append any errors to the config.log.
10747 cat conftest.err 1>&5
10748 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10749 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10750 if diff conftest.exp conftest.er2 >/dev/null; then
10751 lt_cv_prog_compiler__b=yes
10752 fi
10753 else
10754 lt_cv_prog_compiler__b=yes
10755 fi
10756 fi
10757 $RM -r conftest*
10758 LDFLAGS="$save_LDFLAGS"
10759
10760 fi
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10762 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10763
10764 if test x"$lt_cv_prog_compiler__b" = xyes; then
10765 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10766 else
10767 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10768 fi
10769
10770 ;;
10771 esac
10772 fi
10773 if test "$with_gnu_ld" = no; then
10774 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10775 hardcode_libdir_separator=:
10776
10777 case $host_cpu in
10778 hppa*64*|ia64*)
10779 hardcode_direct=no
10780 hardcode_shlibpath_var=no
10781 ;;
10782 *)
10783 hardcode_direct=yes
10784 hardcode_direct_absolute=yes
10785 export_dynamic_flag_spec='${wl}-E'
10786
10787 # hardcode_minus_L: Not really in the search PATH,
10788 # but as the default location of the library.
10789 hardcode_minus_L=yes
10790 ;;
10791 esac
10792 fi
10793 ;;
10794
10795 irix5* | irix6* | nonstopux*)
10796 if test "$GCC" = yes; then
10797 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'
10798 # Try to use the -exported_symbol ld option, if it does not
10799 # work, assume that -exports_file does not work either and
10800 # implicitly export all symbols.
10801 # This should be the same for all languages, so no per-tag cache variable.
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10803 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10804 if ${lt_cv_irix_exported_symbol+:} false; then :
10805 $as_echo_n "(cached) " >&6
10806 else
10807 save_LDFLAGS="$LDFLAGS"
10808 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10810 /* end confdefs.h. */
10811 int foo (void) { return 0; }
10812 _ACEOF
10813 if ac_fn_c_try_link "$LINENO"; then :
10814 lt_cv_irix_exported_symbol=yes
10815 else
10816 lt_cv_irix_exported_symbol=no
10817 fi
10818 rm -f core conftest.err conftest.$ac_objext \
10819 conftest$ac_exeext conftest.$ac_ext
10820 LDFLAGS="$save_LDFLAGS"
10821 fi
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10823 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10824 if test "$lt_cv_irix_exported_symbol" = yes; then
10825 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'
10826 fi
10827 else
10828 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'
10829 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'
10830 fi
10831 archive_cmds_need_lc='no'
10832 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10833 hardcode_libdir_separator=:
10834 inherit_rpath=yes
10835 link_all_deplibs=yes
10836 ;;
10837
10838 netbsd* | netbsdelf*-gnu)
10839 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10840 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10841 else
10842 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10843 fi
10844 hardcode_libdir_flag_spec='-R$libdir'
10845 hardcode_direct=yes
10846 hardcode_shlibpath_var=no
10847 ;;
10848
10849 newsos6)
10850 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10851 hardcode_direct=yes
10852 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10853 hardcode_libdir_separator=:
10854 hardcode_shlibpath_var=no
10855 ;;
10856
10857 *nto* | *qnx*)
10858 ;;
10859
10860 openbsd*)
10861 if test -f /usr/libexec/ld.so; then
10862 hardcode_direct=yes
10863 hardcode_shlibpath_var=no
10864 hardcode_direct_absolute=yes
10865 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10866 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10867 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10868 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10869 export_dynamic_flag_spec='${wl}-E'
10870 else
10871 case $host_os in
10872 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10873 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10874 hardcode_libdir_flag_spec='-R$libdir'
10875 ;;
10876 *)
10877 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10878 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10879 ;;
10880 esac
10881 fi
10882 else
10883 ld_shlibs=no
10884 fi
10885 ;;
10886
10887 os2*)
10888 hardcode_libdir_flag_spec='-L$libdir'
10889 hardcode_minus_L=yes
10890 allow_undefined_flag=unsupported
10891 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10892 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10893 ;;
10894
10895 osf3*)
10896 if test "$GCC" = yes; then
10897 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10898 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'
10899 else
10900 allow_undefined_flag=' -expect_unresolved \*'
10901 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'
10902 fi
10903 archive_cmds_need_lc='no'
10904 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10905 hardcode_libdir_separator=:
10906 ;;
10907
10908 osf4* | osf5*) # as osf3* with the addition of -msym flag
10909 if test "$GCC" = yes; then
10910 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10911 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'
10912 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10913 else
10914 allow_undefined_flag=' -expect_unresolved \*'
10915 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'
10916 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~
10917 $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'
10918
10919 # Both c and cxx compiler support -rpath directly
10920 hardcode_libdir_flag_spec='-rpath $libdir'
10921 fi
10922 archive_cmds_need_lc='no'
10923 hardcode_libdir_separator=:
10924 ;;
10925
10926 solaris*)
10927 no_undefined_flag=' -z defs'
10928 if test "$GCC" = yes; then
10929 wlarc='${wl}'
10930 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10931 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10932 $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'
10933 else
10934 case `$CC -V 2>&1` in
10935 *"Compilers 5.0"*)
10936 wlarc=''
10937 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10938 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10939 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10940 ;;
10941 *)
10942 wlarc='${wl}'
10943 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10944 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10945 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10946 ;;
10947 esac
10948 fi
10949 hardcode_libdir_flag_spec='-R$libdir'
10950 hardcode_shlibpath_var=no
10951 case $host_os in
10952 solaris2.[0-5] | solaris2.[0-5].*) ;;
10953 *)
10954 # The compiler driver will combine and reorder linker options,
10955 # but understands `-z linker_flag'. GCC discards it without `$wl',
10956 # but is careful enough not to reorder.
10957 # Supported since Solaris 2.6 (maybe 2.5.1?)
10958 if test "$GCC" = yes; then
10959 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10960 else
10961 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10962 fi
10963 ;;
10964 esac
10965 link_all_deplibs=yes
10966 ;;
10967
10968 sunos4*)
10969 if test "x$host_vendor" = xsequent; then
10970 # Use $CC to link under sequent, because it throws in some extra .o
10971 # files that make .init and .fini sections work.
10972 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10973 else
10974 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10975 fi
10976 hardcode_libdir_flag_spec='-L$libdir'
10977 hardcode_direct=yes
10978 hardcode_minus_L=yes
10979 hardcode_shlibpath_var=no
10980 ;;
10981
10982 sysv4)
10983 case $host_vendor in
10984 sni)
10985 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10986 hardcode_direct=yes # is this really true???
10987 ;;
10988 siemens)
10989 ## LD is ld it makes a PLAMLIB
10990 ## CC just makes a GrossModule.
10991 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10992 reload_cmds='$CC -r -o $output$reload_objs'
10993 hardcode_direct=no
10994 ;;
10995 motorola)
10996 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10997 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10998 ;;
10999 esac
11000 runpath_var='LD_RUN_PATH'
11001 hardcode_shlibpath_var=no
11002 ;;
11003
11004 sysv4.3*)
11005 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11006 hardcode_shlibpath_var=no
11007 export_dynamic_flag_spec='-Bexport'
11008 ;;
11009
11010 sysv4*MP*)
11011 if test -d /usr/nec; then
11012 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11013 hardcode_shlibpath_var=no
11014 runpath_var=LD_RUN_PATH
11015 hardcode_runpath_var=yes
11016 ld_shlibs=yes
11017 fi
11018 ;;
11019
11020 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11021 no_undefined_flag='${wl}-z,text'
11022 archive_cmds_need_lc=no
11023 hardcode_shlibpath_var=no
11024 runpath_var='LD_RUN_PATH'
11025
11026 if test "$GCC" = yes; then
11027 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11028 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11029 else
11030 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11031 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11032 fi
11033 ;;
11034
11035 sysv5* | sco3.2v5* | sco5v6*)
11036 # Note: We can NOT use -z defs as we might desire, because we do not
11037 # link with -lc, and that would cause any symbols used from libc to
11038 # always be unresolved, which means just about no library would
11039 # ever link correctly. If we're not using GNU ld we use -z text
11040 # though, which does catch some bad symbols but isn't as heavy-handed
11041 # as -z defs.
11042 no_undefined_flag='${wl}-z,text'
11043 allow_undefined_flag='${wl}-z,nodefs'
11044 archive_cmds_need_lc=no
11045 hardcode_shlibpath_var=no
11046 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11047 hardcode_libdir_separator=':'
11048 link_all_deplibs=yes
11049 export_dynamic_flag_spec='${wl}-Bexport'
11050 runpath_var='LD_RUN_PATH'
11051
11052 if test "$GCC" = yes; then
11053 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11054 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11055 else
11056 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11057 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11058 fi
11059 ;;
11060
11061 uts4*)
11062 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11063 hardcode_libdir_flag_spec='-L$libdir'
11064 hardcode_shlibpath_var=no
11065 ;;
11066
11067 *)
11068 ld_shlibs=no
11069 ;;
11070 esac
11071
11072 if test x$host_vendor = xsni; then
11073 case $host in
11074 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11075 export_dynamic_flag_spec='${wl}-Blargedynsym'
11076 ;;
11077 esac
11078 fi
11079 fi
11080
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11082 $as_echo "$ld_shlibs" >&6; }
11083 test "$ld_shlibs" = no && can_build_shared=no
11084
11085 with_gnu_ld=$with_gnu_ld
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101 #
11102 # Do we need to explicitly link libc?
11103 #
11104 case "x$archive_cmds_need_lc" in
11105 x|xyes)
11106 # Assume -lc should be added
11107 archive_cmds_need_lc=yes
11108
11109 if test "$enable_shared" = yes && test "$GCC" = yes; then
11110 case $archive_cmds in
11111 *'~'*)
11112 # FIXME: we may have to deal with multi-command sequences.
11113 ;;
11114 '$CC '*)
11115 # Test whether the compiler implicitly links with -lc since on some
11116 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11117 # to ld, don't add -lc before -lgcc.
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11119 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11120 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11121 $as_echo_n "(cached) " >&6
11122 else
11123 $RM conftest*
11124 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11125
11126 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11127 (eval $ac_compile) 2>&5
11128 ac_status=$?
11129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11130 test $ac_status = 0; } 2>conftest.err; then
11131 soname=conftest
11132 lib=conftest
11133 libobjs=conftest.$ac_objext
11134 deplibs=
11135 wl=$lt_prog_compiler_wl
11136 pic_flag=$lt_prog_compiler_pic
11137 compiler_flags=-v
11138 linker_flags=-v
11139 verstring=
11140 output_objdir=.
11141 libname=conftest
11142 lt_save_allow_undefined_flag=$allow_undefined_flag
11143 allow_undefined_flag=
11144 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11145 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11146 ac_status=$?
11147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11148 test $ac_status = 0; }
11149 then
11150 lt_cv_archive_cmds_need_lc=no
11151 else
11152 lt_cv_archive_cmds_need_lc=yes
11153 fi
11154 allow_undefined_flag=$lt_save_allow_undefined_flag
11155 else
11156 cat conftest.err 1>&5
11157 fi
11158 $RM conftest*
11159
11160 fi
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11162 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11163 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11164 ;;
11165 esac
11166 fi
11167 ;;
11168 esac
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11322 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11323
11324 if test "$GCC" = yes; then
11325 case $host_os in
11326 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11327 *) lt_awk_arg="/^libraries:/" ;;
11328 esac
11329 case $host_os in
11330 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11331 *) lt_sed_strip_eq="s,=/,/,g" ;;
11332 esac
11333 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11334 case $lt_search_path_spec in
11335 *\;*)
11336 # if the path contains ";" then we assume it to be the separator
11337 # otherwise default to the standard path separator (i.e. ":") - it is
11338 # assumed that no part of a normal pathname contains ";" but that should
11339 # okay in the real world where ";" in dirpaths is itself problematic.
11340 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11341 ;;
11342 *)
11343 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11344 ;;
11345 esac
11346 # Ok, now we have the path, separated by spaces, we can step through it
11347 # and add multilib dir if necessary.
11348 lt_tmp_lt_search_path_spec=
11349 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11350 for lt_sys_path in $lt_search_path_spec; do
11351 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11352 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11353 else
11354 test -d "$lt_sys_path" && \
11355 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11356 fi
11357 done
11358 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11359 BEGIN {RS=" "; FS="/|\n";} {
11360 lt_foo="";
11361 lt_count=0;
11362 for (lt_i = NF; lt_i > 0; lt_i--) {
11363 if ($lt_i != "" && $lt_i != ".") {
11364 if ($lt_i == "..") {
11365 lt_count++;
11366 } else {
11367 if (lt_count == 0) {
11368 lt_foo="/" $lt_i lt_foo;
11369 } else {
11370 lt_count--;
11371 }
11372 }
11373 }
11374 }
11375 if (lt_foo != "") { lt_freq[lt_foo]++; }
11376 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11377 }'`
11378 # AWK program above erroneously prepends '/' to C:/dos/paths
11379 # for these hosts.
11380 case $host_os in
11381 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11382 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11383 esac
11384 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11385 else
11386 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11387 fi
11388 library_names_spec=
11389 libname_spec='lib$name'
11390 soname_spec=
11391 shrext_cmds=".so"
11392 postinstall_cmds=
11393 postuninstall_cmds=
11394 finish_cmds=
11395 finish_eval=
11396 shlibpath_var=
11397 shlibpath_overrides_runpath=unknown
11398 version_type=none
11399 dynamic_linker="$host_os ld.so"
11400 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11401 need_lib_prefix=unknown
11402 hardcode_into_libs=no
11403
11404 # when you set need_version to no, make sure it does not cause -set_version
11405 # flags to be left without arguments
11406 need_version=unknown
11407
11408 case $host_os in
11409 aix3*)
11410 version_type=linux # correct to gnu/linux during the next big refactor
11411 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11412 shlibpath_var=LIBPATH
11413
11414 # AIX 3 has no versioning support, so we append a major version to the name.
11415 soname_spec='${libname}${release}${shared_ext}$major'
11416 ;;
11417
11418 aix[4-9]*)
11419 version_type=linux # correct to gnu/linux during the next big refactor
11420 need_lib_prefix=no
11421 need_version=no
11422 hardcode_into_libs=yes
11423 if test "$host_cpu" = ia64; then
11424 # AIX 5 supports IA64
11425 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11426 shlibpath_var=LD_LIBRARY_PATH
11427 else
11428 # With GCC up to 2.95.x, collect2 would create an import file
11429 # for dependence libraries. The import file would start with
11430 # the line `#! .'. This would cause the generated library to
11431 # depend on `.', always an invalid library. This was fixed in
11432 # development snapshots of GCC prior to 3.0.
11433 case $host_os in
11434 aix4 | aix4.[01] | aix4.[01].*)
11435 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11436 echo ' yes '
11437 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11438 :
11439 else
11440 can_build_shared=no
11441 fi
11442 ;;
11443 esac
11444 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11445 # soname into executable. Probably we can add versioning support to
11446 # collect2, so additional links can be useful in future.
11447 if test "$aix_use_runtimelinking" = yes; then
11448 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11449 # instead of lib<name>.a to let people know that these are not
11450 # typical AIX shared libraries.
11451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11452 else
11453 # We preserve .a as extension for shared libraries through AIX4.2
11454 # and later when we are not doing run time linking.
11455 library_names_spec='${libname}${release}.a $libname.a'
11456 soname_spec='${libname}${release}${shared_ext}$major'
11457 fi
11458 shlibpath_var=LIBPATH
11459 fi
11460 ;;
11461
11462 amigaos*)
11463 case $host_cpu in
11464 powerpc)
11465 # Since July 2007 AmigaOS4 officially supports .so libraries.
11466 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11468 ;;
11469 m68k)
11470 library_names_spec='$libname.ixlibrary $libname.a'
11471 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11472 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11473 ;;
11474 esac
11475 ;;
11476
11477 beos*)
11478 library_names_spec='${libname}${shared_ext}'
11479 dynamic_linker="$host_os ld.so"
11480 shlibpath_var=LIBRARY_PATH
11481 ;;
11482
11483 bsdi[45]*)
11484 version_type=linux # correct to gnu/linux during the next big refactor
11485 need_version=no
11486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11487 soname_spec='${libname}${release}${shared_ext}$major'
11488 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11489 shlibpath_var=LD_LIBRARY_PATH
11490 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11491 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11492 # the default ld.so.conf also contains /usr/contrib/lib and
11493 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11494 # libtool to hard-code these into programs
11495 ;;
11496
11497 cygwin* | mingw* | pw32* | cegcc*)
11498 version_type=windows
11499 shrext_cmds=".dll"
11500 need_version=no
11501 need_lib_prefix=no
11502
11503 case $GCC,$cc_basename in
11504 yes,*)
11505 # gcc
11506 library_names_spec='$libname.dll.a'
11507 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11508 postinstall_cmds='base_file=`basename \${file}`~
11509 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11510 dldir=$destdir/`dirname \$dlpath`~
11511 test -d \$dldir || mkdir -p \$dldir~
11512 $install_prog $dir/$dlname \$dldir/$dlname~
11513 chmod a+x \$dldir/$dlname~
11514 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11515 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11516 fi'
11517 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11518 dlpath=$dir/\$dldll~
11519 $RM \$dlpath'
11520 shlibpath_overrides_runpath=yes
11521
11522 case $host_os in
11523 cygwin*)
11524 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11525 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11526
11527 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11528 ;;
11529 mingw* | cegcc*)
11530 # MinGW DLLs use traditional 'lib' prefix
11531 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11532 ;;
11533 pw32*)
11534 # pw32 DLLs use 'pw' prefix rather than 'lib'
11535 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11536 ;;
11537 esac
11538 dynamic_linker='Win32 ld.exe'
11539 ;;
11540
11541 *,cl*)
11542 # Native MSVC
11543 libname_spec='$name'
11544 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11545 library_names_spec='${libname}.dll.lib'
11546
11547 case $build_os in
11548 mingw*)
11549 sys_lib_search_path_spec=
11550 lt_save_ifs=$IFS
11551 IFS=';'
11552 for lt_path in $LIB
11553 do
11554 IFS=$lt_save_ifs
11555 # Let DOS variable expansion print the short 8.3 style file name.
11556 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11557 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11558 done
11559 IFS=$lt_save_ifs
11560 # Convert to MSYS style.
11561 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11562 ;;
11563 cygwin*)
11564 # Convert to unix form, then to dos form, then back to unix form
11565 # but this time dos style (no spaces!) so that the unix form looks
11566 # like /cygdrive/c/PROGRA~1:/cygdr...
11567 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11568 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11569 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11570 ;;
11571 *)
11572 sys_lib_search_path_spec="$LIB"
11573 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11574 # It is most probably a Windows format PATH.
11575 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11576 else
11577 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11578 fi
11579 # FIXME: find the short name or the path components, as spaces are
11580 # common. (e.g. "Program Files" -> "PROGRA~1")
11581 ;;
11582 esac
11583
11584 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11585 postinstall_cmds='base_file=`basename \${file}`~
11586 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11587 dldir=$destdir/`dirname \$dlpath`~
11588 test -d \$dldir || mkdir -p \$dldir~
11589 $install_prog $dir/$dlname \$dldir/$dlname'
11590 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11591 dlpath=$dir/\$dldll~
11592 $RM \$dlpath'
11593 shlibpath_overrides_runpath=yes
11594 dynamic_linker='Win32 link.exe'
11595 ;;
11596
11597 *)
11598 # Assume MSVC wrapper
11599 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11600 dynamic_linker='Win32 ld.exe'
11601 ;;
11602 esac
11603 # FIXME: first we should search . and the directory the executable is in
11604 shlibpath_var=PATH
11605 ;;
11606
11607 darwin* | rhapsody*)
11608 dynamic_linker="$host_os dyld"
11609 version_type=darwin
11610 need_lib_prefix=no
11611 need_version=no
11612 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11613 soname_spec='${libname}${release}${major}$shared_ext'
11614 shlibpath_overrides_runpath=yes
11615 shlibpath_var=DYLD_LIBRARY_PATH
11616 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11617
11618 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11619 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11620 ;;
11621
11622 dgux*)
11623 version_type=linux # correct to gnu/linux during the next big refactor
11624 need_lib_prefix=no
11625 need_version=no
11626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11627 soname_spec='${libname}${release}${shared_ext}$major'
11628 shlibpath_var=LD_LIBRARY_PATH
11629 ;;
11630
11631 freebsd* | dragonfly*)
11632 # DragonFly does not have aout. When/if they implement a new
11633 # versioning mechanism, adjust this.
11634 if test -x /usr/bin/objformat; then
11635 objformat=`/usr/bin/objformat`
11636 else
11637 case $host_os in
11638 freebsd[23].*) objformat=aout ;;
11639 *) objformat=elf ;;
11640 esac
11641 fi
11642 version_type=freebsd-$objformat
11643 case $version_type in
11644 freebsd-elf*)
11645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11646 need_version=no
11647 need_lib_prefix=no
11648 ;;
11649 freebsd-*)
11650 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11651 need_version=yes
11652 ;;
11653 esac
11654 shlibpath_var=LD_LIBRARY_PATH
11655 case $host_os in
11656 freebsd2.*)
11657 shlibpath_overrides_runpath=yes
11658 ;;
11659 freebsd3.[01]* | freebsdelf3.[01]*)
11660 shlibpath_overrides_runpath=yes
11661 hardcode_into_libs=yes
11662 ;;
11663 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11664 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11665 shlibpath_overrides_runpath=no
11666 hardcode_into_libs=yes
11667 ;;
11668 *) # from 4.6 on, and DragonFly
11669 shlibpath_overrides_runpath=yes
11670 hardcode_into_libs=yes
11671 ;;
11672 esac
11673 ;;
11674
11675 haiku*)
11676 version_type=linux # correct to gnu/linux during the next big refactor
11677 need_lib_prefix=no
11678 need_version=no
11679 dynamic_linker="$host_os runtime_loader"
11680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11681 soname_spec='${libname}${release}${shared_ext}$major'
11682 shlibpath_var=LIBRARY_PATH
11683 shlibpath_overrides_runpath=yes
11684 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11685 hardcode_into_libs=yes
11686 ;;
11687
11688 hpux9* | hpux10* | hpux11*)
11689 # Give a soname corresponding to the major version so that dld.sl refuses to
11690 # link against other versions.
11691 version_type=sunos
11692 need_lib_prefix=no
11693 need_version=no
11694 case $host_cpu in
11695 ia64*)
11696 shrext_cmds='.so'
11697 hardcode_into_libs=yes
11698 dynamic_linker="$host_os dld.so"
11699 shlibpath_var=LD_LIBRARY_PATH
11700 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11702 soname_spec='${libname}${release}${shared_ext}$major'
11703 if test "X$HPUX_IA64_MODE" = X32; then
11704 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11705 else
11706 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11707 fi
11708 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11709 ;;
11710 hppa*64*)
11711 shrext_cmds='.sl'
11712 hardcode_into_libs=yes
11713 dynamic_linker="$host_os dld.sl"
11714 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11715 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11717 soname_spec='${libname}${release}${shared_ext}$major'
11718 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11719 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11720 ;;
11721 *)
11722 shrext_cmds='.sl'
11723 dynamic_linker="$host_os dld.sl"
11724 shlibpath_var=SHLIB_PATH
11725 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11727 soname_spec='${libname}${release}${shared_ext}$major'
11728 ;;
11729 esac
11730 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11731 postinstall_cmds='chmod 555 $lib'
11732 # or fails outright, so override atomically:
11733 install_override_mode=555
11734 ;;
11735
11736 interix[3-9]*)
11737 version_type=linux # correct to gnu/linux during the next big refactor
11738 need_lib_prefix=no
11739 need_version=no
11740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11741 soname_spec='${libname}${release}${shared_ext}$major'
11742 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11743 shlibpath_var=LD_LIBRARY_PATH
11744 shlibpath_overrides_runpath=no
11745 hardcode_into_libs=yes
11746 ;;
11747
11748 irix5* | irix6* | nonstopux*)
11749 case $host_os in
11750 nonstopux*) version_type=nonstopux ;;
11751 *)
11752 if test "$lt_cv_prog_gnu_ld" = yes; then
11753 version_type=linux # correct to gnu/linux during the next big refactor
11754 else
11755 version_type=irix
11756 fi ;;
11757 esac
11758 need_lib_prefix=no
11759 need_version=no
11760 soname_spec='${libname}${release}${shared_ext}$major'
11761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11762 case $host_os in
11763 irix5* | nonstopux*)
11764 libsuff= shlibsuff=
11765 ;;
11766 *)
11767 case $LD in # libtool.m4 will add one of these switches to LD
11768 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11769 libsuff= shlibsuff= libmagic=32-bit;;
11770 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11771 libsuff=32 shlibsuff=N32 libmagic=N32;;
11772 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11773 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11774 *) libsuff= shlibsuff= libmagic=never-match;;
11775 esac
11776 ;;
11777 esac
11778 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11779 shlibpath_overrides_runpath=no
11780 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11781 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11782 hardcode_into_libs=yes
11783 ;;
11784
11785 # No shared lib support for Linux oldld, aout, or coff.
11786 linux*oldld* | linux*aout* | linux*coff*)
11787 dynamic_linker=no
11788 ;;
11789
11790 # This must be glibc/ELF.
11791 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11792 version_type=linux # correct to gnu/linux during the next big refactor
11793 need_lib_prefix=no
11794 need_version=no
11795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11796 soname_spec='${libname}${release}${shared_ext}$major'
11797 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11798 shlibpath_var=LD_LIBRARY_PATH
11799 shlibpath_overrides_runpath=no
11800
11801 # Some binutils ld are patched to set DT_RUNPATH
11802 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11803 $as_echo_n "(cached) " >&6
11804 else
11805 lt_cv_shlibpath_overrides_runpath=no
11806 save_LDFLAGS=$LDFLAGS
11807 save_libdir=$libdir
11808 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11809 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11811 /* end confdefs.h. */
11812
11813 int
11814 main ()
11815 {
11816
11817 ;
11818 return 0;
11819 }
11820 _ACEOF
11821 if ac_fn_c_try_link "$LINENO"; then :
11822 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11823 lt_cv_shlibpath_overrides_runpath=yes
11824 fi
11825 fi
11826 rm -f core conftest.err conftest.$ac_objext \
11827 conftest$ac_exeext conftest.$ac_ext
11828 LDFLAGS=$save_LDFLAGS
11829 libdir=$save_libdir
11830
11831 fi
11832
11833 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11834
11835 # This implies no fast_install, which is unacceptable.
11836 # Some rework will be needed to allow for fast_install
11837 # before this can be enabled.
11838 hardcode_into_libs=yes
11839
11840 # Append ld.so.conf contents to the search path
11841 if test -f /etc/ld.so.conf; then
11842 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' ' '`
11843 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11844 fi
11845
11846 # We used to test for /lib/ld.so.1 and disable shared libraries on
11847 # powerpc, because MkLinux only supported shared libraries with the
11848 # GNU dynamic linker. Since this was broken with cross compilers,
11849 # most powerpc-linux boxes support dynamic linking these days and
11850 # people can always --disable-shared, the test was removed, and we
11851 # assume the GNU/Linux dynamic linker is in use.
11852 dynamic_linker='GNU/Linux ld.so'
11853 ;;
11854
11855 netbsdelf*-gnu)
11856 version_type=linux
11857 need_lib_prefix=no
11858 need_version=no
11859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11860 soname_spec='${libname}${release}${shared_ext}$major'
11861 shlibpath_var=LD_LIBRARY_PATH
11862 shlibpath_overrides_runpath=no
11863 hardcode_into_libs=yes
11864 dynamic_linker='NetBSD ld.elf_so'
11865 ;;
11866
11867 netbsd*)
11868 version_type=sunos
11869 need_lib_prefix=no
11870 need_version=no
11871 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11873 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11874 dynamic_linker='NetBSD (a.out) ld.so'
11875 else
11876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11877 soname_spec='${libname}${release}${shared_ext}$major'
11878 dynamic_linker='NetBSD ld.elf_so'
11879 fi
11880 shlibpath_var=LD_LIBRARY_PATH
11881 shlibpath_overrides_runpath=yes
11882 hardcode_into_libs=yes
11883 ;;
11884
11885 newsos6)
11886 version_type=linux # correct to gnu/linux during the next big refactor
11887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11888 shlibpath_var=LD_LIBRARY_PATH
11889 shlibpath_overrides_runpath=yes
11890 ;;
11891
11892 *nto* | *qnx*)
11893 version_type=qnx
11894 need_lib_prefix=no
11895 need_version=no
11896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11897 soname_spec='${libname}${release}${shared_ext}$major'
11898 shlibpath_var=LD_LIBRARY_PATH
11899 shlibpath_overrides_runpath=no
11900 hardcode_into_libs=yes
11901 dynamic_linker='ldqnx.so'
11902 ;;
11903
11904 openbsd*)
11905 version_type=sunos
11906 sys_lib_dlsearch_path_spec="/usr/lib"
11907 need_lib_prefix=no
11908 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11909 case $host_os in
11910 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11911 *) need_version=no ;;
11912 esac
11913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11914 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11915 shlibpath_var=LD_LIBRARY_PATH
11916 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11917 case $host_os in
11918 openbsd2.[89] | openbsd2.[89].*)
11919 shlibpath_overrides_runpath=no
11920 ;;
11921 *)
11922 shlibpath_overrides_runpath=yes
11923 ;;
11924 esac
11925 else
11926 shlibpath_overrides_runpath=yes
11927 fi
11928 ;;
11929
11930 os2*)
11931 libname_spec='$name'
11932 shrext_cmds=".dll"
11933 need_lib_prefix=no
11934 library_names_spec='$libname${shared_ext} $libname.a'
11935 dynamic_linker='OS/2 ld.exe'
11936 shlibpath_var=LIBPATH
11937 ;;
11938
11939 osf3* | osf4* | osf5*)
11940 version_type=osf
11941 need_lib_prefix=no
11942 need_version=no
11943 soname_spec='${libname}${release}${shared_ext}$major'
11944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11945 shlibpath_var=LD_LIBRARY_PATH
11946 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11947 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11948 ;;
11949
11950 rdos*)
11951 dynamic_linker=no
11952 ;;
11953
11954 solaris*)
11955 version_type=linux # correct to gnu/linux during the next big refactor
11956 need_lib_prefix=no
11957 need_version=no
11958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11959 soname_spec='${libname}${release}${shared_ext}$major'
11960 shlibpath_var=LD_LIBRARY_PATH
11961 shlibpath_overrides_runpath=yes
11962 hardcode_into_libs=yes
11963 # ldd complains unless libraries are executable
11964 postinstall_cmds='chmod +x $lib'
11965 ;;
11966
11967 sunos4*)
11968 version_type=sunos
11969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11970 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11971 shlibpath_var=LD_LIBRARY_PATH
11972 shlibpath_overrides_runpath=yes
11973 if test "$with_gnu_ld" = yes; then
11974 need_lib_prefix=no
11975 fi
11976 need_version=yes
11977 ;;
11978
11979 sysv4 | sysv4.3*)
11980 version_type=linux # correct to gnu/linux during the next big refactor
11981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11982 soname_spec='${libname}${release}${shared_ext}$major'
11983 shlibpath_var=LD_LIBRARY_PATH
11984 case $host_vendor in
11985 sni)
11986 shlibpath_overrides_runpath=no
11987 need_lib_prefix=no
11988 runpath_var=LD_RUN_PATH
11989 ;;
11990 siemens)
11991 need_lib_prefix=no
11992 ;;
11993 motorola)
11994 need_lib_prefix=no
11995 need_version=no
11996 shlibpath_overrides_runpath=no
11997 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11998 ;;
11999 esac
12000 ;;
12001
12002 sysv4*MP*)
12003 if test -d /usr/nec ;then
12004 version_type=linux # correct to gnu/linux during the next big refactor
12005 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12006 soname_spec='$libname${shared_ext}.$major'
12007 shlibpath_var=LD_LIBRARY_PATH
12008 fi
12009 ;;
12010
12011 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12012 version_type=freebsd-elf
12013 need_lib_prefix=no
12014 need_version=no
12015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12016 soname_spec='${libname}${release}${shared_ext}$major'
12017 shlibpath_var=LD_LIBRARY_PATH
12018 shlibpath_overrides_runpath=yes
12019 hardcode_into_libs=yes
12020 if test "$with_gnu_ld" = yes; then
12021 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12022 else
12023 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12024 case $host_os in
12025 sco3.2v5*)
12026 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12027 ;;
12028 esac
12029 fi
12030 sys_lib_dlsearch_path_spec='/usr/lib'
12031 ;;
12032
12033 tpf*)
12034 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12035 version_type=linux # correct to gnu/linux during the next big refactor
12036 need_lib_prefix=no
12037 need_version=no
12038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12039 shlibpath_var=LD_LIBRARY_PATH
12040 shlibpath_overrides_runpath=no
12041 hardcode_into_libs=yes
12042 ;;
12043
12044 uts4*)
12045 version_type=linux # correct to gnu/linux during the next big refactor
12046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12047 soname_spec='${libname}${release}${shared_ext}$major'
12048 shlibpath_var=LD_LIBRARY_PATH
12049 ;;
12050
12051 *)
12052 dynamic_linker=no
12053 ;;
12054 esac
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12056 $as_echo "$dynamic_linker" >&6; }
12057 test "$dynamic_linker" = no && can_build_shared=no
12058
12059 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12060 if test "$GCC" = yes; then
12061 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12062 fi
12063
12064 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12065 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12066 fi
12067 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12068 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12069 fi
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12163 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12164 hardcode_action=
12165 if test -n "$hardcode_libdir_flag_spec" ||
12166 test -n "$runpath_var" ||
12167 test "X$hardcode_automatic" = "Xyes" ; then
12168
12169 # We can hardcode non-existent directories.
12170 if test "$hardcode_direct" != no &&
12171 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12172 # have to relink, otherwise we might link with an installed library
12173 # when we should be linking with a yet-to-be-installed one
12174 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12175 test "$hardcode_minus_L" != no; then
12176 # Linking always hardcodes the temporary library directory.
12177 hardcode_action=relink
12178 else
12179 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12180 hardcode_action=immediate
12181 fi
12182 else
12183 # We cannot hardcode anything, or else we can only hardcode existing
12184 # directories.
12185 hardcode_action=unsupported
12186 fi
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12188 $as_echo "$hardcode_action" >&6; }
12189
12190 if test "$hardcode_action" = relink ||
12191 test "$inherit_rpath" = yes; then
12192 # Fast installation is not supported
12193 enable_fast_install=no
12194 elif test "$shlibpath_overrides_runpath" = yes ||
12195 test "$enable_shared" = no; then
12196 # Fast installation is not necessary
12197 enable_fast_install=needless
12198 fi
12199
12200
12201
12202
12203
12204
12205 if test "x$enable_dlopen" != xyes; then
12206 enable_dlopen=unknown
12207 enable_dlopen_self=unknown
12208 enable_dlopen_self_static=unknown
12209 else
12210 lt_cv_dlopen=no
12211 lt_cv_dlopen_libs=
12212
12213 case $host_os in
12214 beos*)
12215 lt_cv_dlopen="load_add_on"
12216 lt_cv_dlopen_libs=
12217 lt_cv_dlopen_self=yes
12218 ;;
12219
12220 mingw* | pw32* | cegcc*)
12221 lt_cv_dlopen="LoadLibrary"
12222 lt_cv_dlopen_libs=
12223 ;;
12224
12225 cygwin*)
12226 lt_cv_dlopen="dlopen"
12227 lt_cv_dlopen_libs=
12228 ;;
12229
12230 darwin*)
12231 # if libdl is installed we need to link against it
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12233 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12234 if ${ac_cv_lib_dl_dlopen+:} false; then :
12235 $as_echo_n "(cached) " >&6
12236 else
12237 ac_check_lib_save_LIBS=$LIBS
12238 LIBS="-ldl $LIBS"
12239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12240 /* end confdefs.h. */
12241
12242 /* Override any GCC internal prototype to avoid an error.
12243 Use char because int might match the return type of a GCC
12244 builtin and then its argument prototype would still apply. */
12245 #ifdef __cplusplus
12246 extern "C"
12247 #endif
12248 char dlopen ();
12249 int
12250 main ()
12251 {
12252 return dlopen ();
12253 ;
12254 return 0;
12255 }
12256 _ACEOF
12257 if ac_fn_c_try_link "$LINENO"; then :
12258 ac_cv_lib_dl_dlopen=yes
12259 else
12260 ac_cv_lib_dl_dlopen=no
12261 fi
12262 rm -f core conftest.err conftest.$ac_objext \
12263 conftest$ac_exeext conftest.$ac_ext
12264 LIBS=$ac_check_lib_save_LIBS
12265 fi
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12267 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12268 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12269 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12270 else
12271
12272 lt_cv_dlopen="dyld"
12273 lt_cv_dlopen_libs=
12274 lt_cv_dlopen_self=yes
12275
12276 fi
12277
12278 ;;
12279
12280 *)
12281 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12282 if test "x$ac_cv_func_shl_load" = xyes; then :
12283 lt_cv_dlopen="shl_load"
12284 else
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12286 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12287 if ${ac_cv_lib_dld_shl_load+:} false; then :
12288 $as_echo_n "(cached) " >&6
12289 else
12290 ac_check_lib_save_LIBS=$LIBS
12291 LIBS="-ldld $LIBS"
12292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12293 /* end confdefs.h. */
12294
12295 /* Override any GCC internal prototype to avoid an error.
12296 Use char because int might match the return type of a GCC
12297 builtin and then its argument prototype would still apply. */
12298 #ifdef __cplusplus
12299 extern "C"
12300 #endif
12301 char shl_load ();
12302 int
12303 main ()
12304 {
12305 return shl_load ();
12306 ;
12307 return 0;
12308 }
12309 _ACEOF
12310 if ac_fn_c_try_link "$LINENO"; then :
12311 ac_cv_lib_dld_shl_load=yes
12312 else
12313 ac_cv_lib_dld_shl_load=no
12314 fi
12315 rm -f core conftest.err conftest.$ac_objext \
12316 conftest$ac_exeext conftest.$ac_ext
12317 LIBS=$ac_check_lib_save_LIBS
12318 fi
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12320 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12321 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12322 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12323 else
12324 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12325 if test "x$ac_cv_func_dlopen" = xyes; then :
12326 lt_cv_dlopen="dlopen"
12327 else
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12329 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12330 if ${ac_cv_lib_dl_dlopen+:} false; then :
12331 $as_echo_n "(cached) " >&6
12332 else
12333 ac_check_lib_save_LIBS=$LIBS
12334 LIBS="-ldl $LIBS"
12335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12336 /* end confdefs.h. */
12337
12338 /* Override any GCC internal prototype to avoid an error.
12339 Use char because int might match the return type of a GCC
12340 builtin and then its argument prototype would still apply. */
12341 #ifdef __cplusplus
12342 extern "C"
12343 #endif
12344 char dlopen ();
12345 int
12346 main ()
12347 {
12348 return dlopen ();
12349 ;
12350 return 0;
12351 }
12352 _ACEOF
12353 if ac_fn_c_try_link "$LINENO"; then :
12354 ac_cv_lib_dl_dlopen=yes
12355 else
12356 ac_cv_lib_dl_dlopen=no
12357 fi
12358 rm -f core conftest.err conftest.$ac_objext \
12359 conftest$ac_exeext conftest.$ac_ext
12360 LIBS=$ac_check_lib_save_LIBS
12361 fi
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12363 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12364 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12365 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12366 else
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12368 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12369 if ${ac_cv_lib_svld_dlopen+:} false; then :
12370 $as_echo_n "(cached) " >&6
12371 else
12372 ac_check_lib_save_LIBS=$LIBS
12373 LIBS="-lsvld $LIBS"
12374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12375 /* end confdefs.h. */
12376
12377 /* Override any GCC internal prototype to avoid an error.
12378 Use char because int might match the return type of a GCC
12379 builtin and then its argument prototype would still apply. */
12380 #ifdef __cplusplus
12381 extern "C"
12382 #endif
12383 char dlopen ();
12384 int
12385 main ()
12386 {
12387 return dlopen ();
12388 ;
12389 return 0;
12390 }
12391 _ACEOF
12392 if ac_fn_c_try_link "$LINENO"; then :
12393 ac_cv_lib_svld_dlopen=yes
12394 else
12395 ac_cv_lib_svld_dlopen=no
12396 fi
12397 rm -f core conftest.err conftest.$ac_objext \
12398 conftest$ac_exeext conftest.$ac_ext
12399 LIBS=$ac_check_lib_save_LIBS
12400 fi
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12402 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12403 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12404 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12405 else
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12407 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12408 if ${ac_cv_lib_dld_dld_link+:} false; then :
12409 $as_echo_n "(cached) " >&6
12410 else
12411 ac_check_lib_save_LIBS=$LIBS
12412 LIBS="-ldld $LIBS"
12413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12414 /* end confdefs.h. */
12415
12416 /* Override any GCC internal prototype to avoid an error.
12417 Use char because int might match the return type of a GCC
12418 builtin and then its argument prototype would still apply. */
12419 #ifdef __cplusplus
12420 extern "C"
12421 #endif
12422 char dld_link ();
12423 int
12424 main ()
12425 {
12426 return dld_link ();
12427 ;
12428 return 0;
12429 }
12430 _ACEOF
12431 if ac_fn_c_try_link "$LINENO"; then :
12432 ac_cv_lib_dld_dld_link=yes
12433 else
12434 ac_cv_lib_dld_dld_link=no
12435 fi
12436 rm -f core conftest.err conftest.$ac_objext \
12437 conftest$ac_exeext conftest.$ac_ext
12438 LIBS=$ac_check_lib_save_LIBS
12439 fi
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12441 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12442 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12443 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12444 fi
12445
12446
12447 fi
12448
12449
12450 fi
12451
12452
12453 fi
12454
12455
12456 fi
12457
12458
12459 fi
12460
12461 ;;
12462 esac
12463
12464 if test "x$lt_cv_dlopen" != xno; then
12465 enable_dlopen=yes
12466 else
12467 enable_dlopen=no
12468 fi
12469
12470 case $lt_cv_dlopen in
12471 dlopen)
12472 save_CPPFLAGS="$CPPFLAGS"
12473 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12474
12475 save_LDFLAGS="$LDFLAGS"
12476 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12477
12478 save_LIBS="$LIBS"
12479 LIBS="$lt_cv_dlopen_libs $LIBS"
12480
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12482 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12483 if ${lt_cv_dlopen_self+:} false; then :
12484 $as_echo_n "(cached) " >&6
12485 else
12486 if test "$cross_compiling" = yes; then :
12487 lt_cv_dlopen_self=cross
12488 else
12489 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12490 lt_status=$lt_dlunknown
12491 cat > conftest.$ac_ext <<_LT_EOF
12492 #line $LINENO "configure"
12493 #include "confdefs.h"
12494
12495 #if HAVE_DLFCN_H
12496 #include <dlfcn.h>
12497 #endif
12498
12499 #include <stdio.h>
12500
12501 #ifdef RTLD_GLOBAL
12502 # define LT_DLGLOBAL RTLD_GLOBAL
12503 #else
12504 # ifdef DL_GLOBAL
12505 # define LT_DLGLOBAL DL_GLOBAL
12506 # else
12507 # define LT_DLGLOBAL 0
12508 # endif
12509 #endif
12510
12511 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12512 find out it does not work in some platform. */
12513 #ifndef LT_DLLAZY_OR_NOW
12514 # ifdef RTLD_LAZY
12515 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12516 # else
12517 # ifdef DL_LAZY
12518 # define LT_DLLAZY_OR_NOW DL_LAZY
12519 # else
12520 # ifdef RTLD_NOW
12521 # define LT_DLLAZY_OR_NOW RTLD_NOW
12522 # else
12523 # ifdef DL_NOW
12524 # define LT_DLLAZY_OR_NOW DL_NOW
12525 # else
12526 # define LT_DLLAZY_OR_NOW 0
12527 # endif
12528 # endif
12529 # endif
12530 # endif
12531 #endif
12532
12533 /* When -fvisbility=hidden is used, assume the code has been annotated
12534 correspondingly for the symbols needed. */
12535 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12536 int fnord () __attribute__((visibility("default")));
12537 #endif
12538
12539 int fnord () { return 42; }
12540 int main ()
12541 {
12542 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12543 int status = $lt_dlunknown;
12544
12545 if (self)
12546 {
12547 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12548 else
12549 {
12550 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12551 else puts (dlerror ());
12552 }
12553 /* dlclose (self); */
12554 }
12555 else
12556 puts (dlerror ());
12557
12558 return status;
12559 }
12560 _LT_EOF
12561 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12562 (eval $ac_link) 2>&5
12563 ac_status=$?
12564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12565 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12566 (./conftest; exit; ) >&5 2>/dev/null
12567 lt_status=$?
12568 case x$lt_status in
12569 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12570 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12571 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12572 esac
12573 else :
12574 # compilation failed
12575 lt_cv_dlopen_self=no
12576 fi
12577 fi
12578 rm -fr conftest*
12579
12580
12581 fi
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12583 $as_echo "$lt_cv_dlopen_self" >&6; }
12584
12585 if test "x$lt_cv_dlopen_self" = xyes; then
12586 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12588 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12589 if ${lt_cv_dlopen_self_static+:} false; then :
12590 $as_echo_n "(cached) " >&6
12591 else
12592 if test "$cross_compiling" = yes; then :
12593 lt_cv_dlopen_self_static=cross
12594 else
12595 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12596 lt_status=$lt_dlunknown
12597 cat > conftest.$ac_ext <<_LT_EOF
12598 #line $LINENO "configure"
12599 #include "confdefs.h"
12600
12601 #if HAVE_DLFCN_H
12602 #include <dlfcn.h>
12603 #endif
12604
12605 #include <stdio.h>
12606
12607 #ifdef RTLD_GLOBAL
12608 # define LT_DLGLOBAL RTLD_GLOBAL
12609 #else
12610 # ifdef DL_GLOBAL
12611 # define LT_DLGLOBAL DL_GLOBAL
12612 # else
12613 # define LT_DLGLOBAL 0
12614 # endif
12615 #endif
12616
12617 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12618 find out it does not work in some platform. */
12619 #ifndef LT_DLLAZY_OR_NOW
12620 # ifdef RTLD_LAZY
12621 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12622 # else
12623 # ifdef DL_LAZY
12624 # define LT_DLLAZY_OR_NOW DL_LAZY
12625 # else
12626 # ifdef RTLD_NOW
12627 # define LT_DLLAZY_OR_NOW RTLD_NOW
12628 # else
12629 # ifdef DL_NOW
12630 # define LT_DLLAZY_OR_NOW DL_NOW
12631 # else
12632 # define LT_DLLAZY_OR_NOW 0
12633 # endif
12634 # endif
12635 # endif
12636 # endif
12637 #endif
12638
12639 /* When -fvisbility=hidden is used, assume the code has been annotated
12640 correspondingly for the symbols needed. */
12641 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12642 int fnord () __attribute__((visibility("default")));
12643 #endif
12644
12645 int fnord () { return 42; }
12646 int main ()
12647 {
12648 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12649 int status = $lt_dlunknown;
12650
12651 if (self)
12652 {
12653 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12654 else
12655 {
12656 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12657 else puts (dlerror ());
12658 }
12659 /* dlclose (self); */
12660 }
12661 else
12662 puts (dlerror ());
12663
12664 return status;
12665 }
12666 _LT_EOF
12667 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12668 (eval $ac_link) 2>&5
12669 ac_status=$?
12670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12671 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12672 (./conftest; exit; ) >&5 2>/dev/null
12673 lt_status=$?
12674 case x$lt_status in
12675 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12676 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12677 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12678 esac
12679 else :
12680 # compilation failed
12681 lt_cv_dlopen_self_static=no
12682 fi
12683 fi
12684 rm -fr conftest*
12685
12686
12687 fi
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12689 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12690 fi
12691
12692 CPPFLAGS="$save_CPPFLAGS"
12693 LDFLAGS="$save_LDFLAGS"
12694 LIBS="$save_LIBS"
12695 ;;
12696 esac
12697
12698 case $lt_cv_dlopen_self in
12699 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12700 *) enable_dlopen_self=unknown ;;
12701 esac
12702
12703 case $lt_cv_dlopen_self_static in
12704 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12705 *) enable_dlopen_self_static=unknown ;;
12706 esac
12707 fi
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725 striplib=
12726 old_striplib=
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12728 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12729 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12730 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12731 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12733 $as_echo "yes" >&6; }
12734 else
12735 # FIXME - insert some real tests, host_os isn't really good enough
12736 case $host_os in
12737 darwin*)
12738 if test -n "$STRIP" ; then
12739 striplib="$STRIP -x"
12740 old_striplib="$STRIP -S"
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12742 $as_echo "yes" >&6; }
12743 else
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12745 $as_echo "no" >&6; }
12746 fi
12747 ;;
12748 *)
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12750 $as_echo "no" >&6; }
12751 ;;
12752 esac
12753 fi
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766 # Report which library types will actually be built
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12768 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12770 $as_echo "$can_build_shared" >&6; }
12771
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12773 $as_echo_n "checking whether to build shared libraries... " >&6; }
12774 test "$can_build_shared" = "no" && enable_shared=no
12775
12776 # On AIX, shared libraries and static libraries use the same namespace, and
12777 # are all built from PIC.
12778 case $host_os in
12779 aix3*)
12780 test "$enable_shared" = yes && enable_static=no
12781 if test -n "$RANLIB"; then
12782 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12783 postinstall_cmds='$RANLIB $lib'
12784 fi
12785 ;;
12786
12787 aix[4-9]*)
12788 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12789 test "$enable_shared" = yes && enable_static=no
12790 fi
12791 ;;
12792 esac
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12794 $as_echo "$enable_shared" >&6; }
12795
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12797 $as_echo_n "checking whether to build static libraries... " >&6; }
12798 # Make sure either enable_shared or enable_static is yes.
12799 test "$enable_shared" = yes || enable_static=yes
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12801 $as_echo "$enable_static" >&6; }
12802
12803
12804
12805
12806 fi
12807 ac_ext=c
12808 ac_cpp='$CPP $CPPFLAGS'
12809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12812
12813 CC="$lt_save_CC"
12814
12815 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12816 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12817 (test "X$CXX" != "Xg++"))) ; then
12818 ac_ext=cpp
12819 ac_cpp='$CXXCPP $CPPFLAGS'
12820 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12821 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12822 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12824 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12825 if test -z "$CXXCPP"; then
12826 if ${ac_cv_prog_CXXCPP+:} false; then :
12827 $as_echo_n "(cached) " >&6
12828 else
12829 # Double quotes because CXXCPP needs to be expanded
12830 for CXXCPP in "$CXX -E" "/lib/cpp"
12831 do
12832 ac_preproc_ok=false
12833 for ac_cxx_preproc_warn_flag in '' yes
12834 do
12835 # Use a header file that comes with gcc, so configuring glibc
12836 # with a fresh cross-compiler works.
12837 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12838 # <limits.h> exists even on freestanding compilers.
12839 # On the NeXT, cc -E runs the code through the compiler's parser,
12840 # not just through cpp. "Syntax error" is here to catch this case.
12841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12842 /* end confdefs.h. */
12843 #ifdef __STDC__
12844 # include <limits.h>
12845 #else
12846 # include <assert.h>
12847 #endif
12848 Syntax error
12849 _ACEOF
12850 if ac_fn_cxx_try_cpp "$LINENO"; then :
12851
12852 else
12853 # Broken: fails on valid input.
12854 continue
12855 fi
12856 rm -f conftest.err conftest.i conftest.$ac_ext
12857
12858 # OK, works on sane cases. Now check whether nonexistent headers
12859 # can be detected and how.
12860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12861 /* end confdefs.h. */
12862 #include <ac_nonexistent.h>
12863 _ACEOF
12864 if ac_fn_cxx_try_cpp "$LINENO"; then :
12865 # Broken: success on invalid input.
12866 continue
12867 else
12868 # Passes both tests.
12869 ac_preproc_ok=:
12870 break
12871 fi
12872 rm -f conftest.err conftest.i conftest.$ac_ext
12873
12874 done
12875 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12876 rm -f conftest.i conftest.err conftest.$ac_ext
12877 if $ac_preproc_ok; then :
12878 break
12879 fi
12880
12881 done
12882 ac_cv_prog_CXXCPP=$CXXCPP
12883
12884 fi
12885 CXXCPP=$ac_cv_prog_CXXCPP
12886 else
12887 ac_cv_prog_CXXCPP=$CXXCPP
12888 fi
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12890 $as_echo "$CXXCPP" >&6; }
12891 ac_preproc_ok=false
12892 for ac_cxx_preproc_warn_flag in '' yes
12893 do
12894 # Use a header file that comes with gcc, so configuring glibc
12895 # with a fresh cross-compiler works.
12896 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12897 # <limits.h> exists even on freestanding compilers.
12898 # On the NeXT, cc -E runs the code through the compiler's parser,
12899 # not just through cpp. "Syntax error" is here to catch this case.
12900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12901 /* end confdefs.h. */
12902 #ifdef __STDC__
12903 # include <limits.h>
12904 #else
12905 # include <assert.h>
12906 #endif
12907 Syntax error
12908 _ACEOF
12909 if ac_fn_cxx_try_cpp "$LINENO"; then :
12910
12911 else
12912 # Broken: fails on valid input.
12913 continue
12914 fi
12915 rm -f conftest.err conftest.i conftest.$ac_ext
12916
12917 # OK, works on sane cases. Now check whether nonexistent headers
12918 # can be detected and how.
12919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12920 /* end confdefs.h. */
12921 #include <ac_nonexistent.h>
12922 _ACEOF
12923 if ac_fn_cxx_try_cpp "$LINENO"; then :
12924 # Broken: success on invalid input.
12925 continue
12926 else
12927 # Passes both tests.
12928 ac_preproc_ok=:
12929 break
12930 fi
12931 rm -f conftest.err conftest.i conftest.$ac_ext
12932
12933 done
12934 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12935 rm -f conftest.i conftest.err conftest.$ac_ext
12936 if $ac_preproc_ok; then :
12937
12938 else
12939 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12940 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12941 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12942 See \`config.log' for more details" "$LINENO" 5; }
12943 fi
12944
12945 ac_ext=c
12946 ac_cpp='$CPP $CPPFLAGS'
12947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12950
12951 else
12952 _lt_caught_CXX_error=yes
12953 fi
12954
12955 ac_ext=cpp
12956 ac_cpp='$CXXCPP $CPPFLAGS'
12957 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12958 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12959 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12960
12961 archive_cmds_need_lc_CXX=no
12962 allow_undefined_flag_CXX=
12963 always_export_symbols_CXX=no
12964 archive_expsym_cmds_CXX=
12965 compiler_needs_object_CXX=no
12966 export_dynamic_flag_spec_CXX=
12967 hardcode_direct_CXX=no
12968 hardcode_direct_absolute_CXX=no
12969 hardcode_libdir_flag_spec_CXX=
12970 hardcode_libdir_separator_CXX=
12971 hardcode_minus_L_CXX=no
12972 hardcode_shlibpath_var_CXX=unsupported
12973 hardcode_automatic_CXX=no
12974 inherit_rpath_CXX=no
12975 module_cmds_CXX=
12976 module_expsym_cmds_CXX=
12977 link_all_deplibs_CXX=unknown
12978 old_archive_cmds_CXX=$old_archive_cmds
12979 reload_flag_CXX=$reload_flag
12980 reload_cmds_CXX=$reload_cmds
12981 no_undefined_flag_CXX=
12982 whole_archive_flag_spec_CXX=
12983 enable_shared_with_static_runtimes_CXX=no
12984
12985 # Source file extension for C++ test sources.
12986 ac_ext=cpp
12987
12988 # Object file extension for compiled C++ test sources.
12989 objext=o
12990 objext_CXX=$objext
12991
12992 # No sense in running all these tests if we already determined that
12993 # the CXX compiler isn't working. Some variables (like enable_shared)
12994 # are currently assumed to apply to all compilers on this platform,
12995 # and will be corrupted by setting them based on a non-working compiler.
12996 if test "$_lt_caught_CXX_error" != yes; then
12997 # Code to be used in simple compile tests
12998 lt_simple_compile_test_code="int some_variable = 0;"
12999
13000 # Code to be used in simple link tests
13001 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13002
13003 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13004
13005
13006
13007
13008
13009
13010 # If no C compiler was specified, use CC.
13011 LTCC=${LTCC-"$CC"}
13012
13013 # If no C compiler flags were specified, use CFLAGS.
13014 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13015
13016 # Allow CC to be a program name with arguments.
13017 compiler=$CC
13018
13019
13020 # save warnings/boilerplate of simple test code
13021 ac_outfile=conftest.$ac_objext
13022 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13023 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13024 _lt_compiler_boilerplate=`cat conftest.err`
13025 $RM conftest*
13026
13027 ac_outfile=conftest.$ac_objext
13028 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13029 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13030 _lt_linker_boilerplate=`cat conftest.err`
13031 $RM -r conftest*
13032
13033
13034 # Allow CC to be a program name with arguments.
13035 lt_save_CC=$CC
13036 lt_save_CFLAGS=$CFLAGS
13037 lt_save_LD=$LD
13038 lt_save_GCC=$GCC
13039 GCC=$GXX
13040 lt_save_with_gnu_ld=$with_gnu_ld
13041 lt_save_path_LD=$lt_cv_path_LD
13042 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13043 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13044 else
13045 $as_unset lt_cv_prog_gnu_ld
13046 fi
13047 if test -n "${lt_cv_path_LDCXX+set}"; then
13048 lt_cv_path_LD=$lt_cv_path_LDCXX
13049 else
13050 $as_unset lt_cv_path_LD
13051 fi
13052 test -z "${LDCXX+set}" || LD=$LDCXX
13053 CC=${CXX-"c++"}
13054 CFLAGS=$CXXFLAGS
13055 compiler=$CC
13056 compiler_CXX=$CC
13057 for cc_temp in $compiler""; do
13058 case $cc_temp in
13059 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13060 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13061 \-*) ;;
13062 *) break;;
13063 esac
13064 done
13065 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13066
13067
13068 if test -n "$compiler"; then
13069 # We don't want -fno-exception when compiling C++ code, so set the
13070 # no_builtin_flag separately
13071 if test "$GXX" = yes; then
13072 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13073 else
13074 lt_prog_compiler_no_builtin_flag_CXX=
13075 fi
13076
13077 if test "$GXX" = yes; then
13078 # Set up default GNU C++ configuration
13079
13080
13081
13082 # Check whether --with-gnu-ld was given.
13083 if test "${with_gnu_ld+set}" = set; then :
13084 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13085 else
13086 with_gnu_ld=no
13087 fi
13088
13089 ac_prog=ld
13090 if test "$GCC" = yes; then
13091 # Check if gcc -print-prog-name=ld gives a path.
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13093 $as_echo_n "checking for ld used by $CC... " >&6; }
13094 case $host in
13095 *-*-mingw*)
13096 # gcc leaves a trailing carriage return which upsets mingw
13097 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13098 *)
13099 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13100 esac
13101 case $ac_prog in
13102 # Accept absolute paths.
13103 [\\/]* | ?:[\\/]*)
13104 re_direlt='/[^/][^/]*/\.\./'
13105 # Canonicalize the pathname of ld
13106 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13107 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13108 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13109 done
13110 test -z "$LD" && LD="$ac_prog"
13111 ;;
13112 "")
13113 # If it fails, then pretend we aren't using GCC.
13114 ac_prog=ld
13115 ;;
13116 *)
13117 # If it is relative, then search for the first ld in PATH.
13118 with_gnu_ld=unknown
13119 ;;
13120 esac
13121 elif test "$with_gnu_ld" = yes; then
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13123 $as_echo_n "checking for GNU ld... " >&6; }
13124 else
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13126 $as_echo_n "checking for non-GNU ld... " >&6; }
13127 fi
13128 if ${lt_cv_path_LD+:} false; then :
13129 $as_echo_n "(cached) " >&6
13130 else
13131 if test -z "$LD"; then
13132 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13133 for ac_dir in $PATH; do
13134 IFS="$lt_save_ifs"
13135 test -z "$ac_dir" && ac_dir=.
13136 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13137 lt_cv_path_LD="$ac_dir/$ac_prog"
13138 # Check to see if the program is GNU ld. I'd rather use --version,
13139 # but apparently some variants of GNU ld only accept -v.
13140 # Break only if it was the GNU/non-GNU ld that we prefer.
13141 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13142 *GNU* | *'with BFD'*)
13143 test "$with_gnu_ld" != no && break
13144 ;;
13145 *)
13146 test "$with_gnu_ld" != yes && break
13147 ;;
13148 esac
13149 fi
13150 done
13151 IFS="$lt_save_ifs"
13152 else
13153 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13154 fi
13155 fi
13156
13157 LD="$lt_cv_path_LD"
13158 if test -n "$LD"; then
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13160 $as_echo "$LD" >&6; }
13161 else
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13163 $as_echo "no" >&6; }
13164 fi
13165 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13167 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13168 if ${lt_cv_prog_gnu_ld+:} false; then :
13169 $as_echo_n "(cached) " >&6
13170 else
13171 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13172 case `$LD -v 2>&1 </dev/null` in
13173 *GNU* | *'with BFD'*)
13174 lt_cv_prog_gnu_ld=yes
13175 ;;
13176 *)
13177 lt_cv_prog_gnu_ld=no
13178 ;;
13179 esac
13180 fi
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13182 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13183 with_gnu_ld=$lt_cv_prog_gnu_ld
13184
13185
13186
13187
13188
13189
13190
13191 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13192 # archiving commands below assume that GNU ld is being used.
13193 if test "$with_gnu_ld" = yes; then
13194 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13195 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'
13196
13197 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13198 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13199
13200 # If archive_cmds runs LD, not CC, wlarc should be empty
13201 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13202 # investigate it a little bit more. (MM)
13203 wlarc='${wl}'
13204
13205 # ancient GNU ld didn't support --whole-archive et. al.
13206 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13207 $GREP 'no-whole-archive' > /dev/null; then
13208 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13209 else
13210 whole_archive_flag_spec_CXX=
13211 fi
13212 else
13213 with_gnu_ld=no
13214 wlarc=
13215
13216 # A generic and very simple default shared library creation
13217 # command for GNU C++ for the case where it uses the native
13218 # linker, instead of GNU ld. If possible, this setting should
13219 # overridden to take advantage of the native linker features on
13220 # the platform it is being used on.
13221 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13222 fi
13223
13224 # Commands to make compiler produce verbose output that lists
13225 # what "hidden" libraries, object files and flags are used when
13226 # linking a shared library.
13227 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13228
13229 else
13230 GXX=no
13231 with_gnu_ld=no
13232 wlarc=
13233 fi
13234
13235 # PORTME: fill in a description of your system's C++ link characteristics
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13237 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13238 ld_shlibs_CXX=yes
13239 case $host_os in
13240 aix3*)
13241 # FIXME: insert proper C++ library support
13242 ld_shlibs_CXX=no
13243 ;;
13244 aix[4-9]*)
13245 if test "$host_cpu" = ia64; then
13246 # On IA64, the linker does run time linking by default, so we don't
13247 # have to do anything special.
13248 aix_use_runtimelinking=no
13249 exp_sym_flag='-Bexport'
13250 no_entry_flag=""
13251 else
13252 aix_use_runtimelinking=no
13253
13254 # Test if we are trying to use run time linking or normal
13255 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13256 # need to do runtime linking.
13257 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13258 for ld_flag in $LDFLAGS; do
13259 case $ld_flag in
13260 *-brtl*)
13261 aix_use_runtimelinking=yes
13262 break
13263 ;;
13264 esac
13265 done
13266 ;;
13267 esac
13268
13269 exp_sym_flag='-bexport'
13270 no_entry_flag='-bnoentry'
13271 fi
13272
13273 # When large executables or shared objects are built, AIX ld can
13274 # have problems creating the table of contents. If linking a library
13275 # or program results in "error TOC overflow" add -mminimal-toc to
13276 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13277 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13278
13279 archive_cmds_CXX=''
13280 hardcode_direct_CXX=yes
13281 hardcode_direct_absolute_CXX=yes
13282 hardcode_libdir_separator_CXX=':'
13283 link_all_deplibs_CXX=yes
13284 file_list_spec_CXX='${wl}-f,'
13285
13286 if test "$GXX" = yes; then
13287 case $host_os in aix4.[012]|aix4.[012].*)
13288 # We only want to do this on AIX 4.2 and lower, the check
13289 # below for broken collect2 doesn't work under 4.3+
13290 collect2name=`${CC} -print-prog-name=collect2`
13291 if test -f "$collect2name" &&
13292 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13293 then
13294 # We have reworked collect2
13295 :
13296 else
13297 # We have old collect2
13298 hardcode_direct_CXX=unsupported
13299 # It fails to find uninstalled libraries when the uninstalled
13300 # path is not listed in the libpath. Setting hardcode_minus_L
13301 # to unsupported forces relinking
13302 hardcode_minus_L_CXX=yes
13303 hardcode_libdir_flag_spec_CXX='-L$libdir'
13304 hardcode_libdir_separator_CXX=
13305 fi
13306 esac
13307 shared_flag='-shared'
13308 if test "$aix_use_runtimelinking" = yes; then
13309 shared_flag="$shared_flag "'${wl}-G'
13310 fi
13311 else
13312 # not using gcc
13313 if test "$host_cpu" = ia64; then
13314 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13315 # chokes on -Wl,-G. The following line is correct:
13316 shared_flag='-G'
13317 else
13318 if test "$aix_use_runtimelinking" = yes; then
13319 shared_flag='${wl}-G'
13320 else
13321 shared_flag='${wl}-bM:SRE'
13322 fi
13323 fi
13324 fi
13325
13326 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13327 # It seems that -bexpall does not export symbols beginning with
13328 # underscore (_), so it is better to generate a list of symbols to
13329 # export.
13330 always_export_symbols_CXX=yes
13331 if test "$aix_use_runtimelinking" = yes; then
13332 # Warning - without using the other runtime loading flags (-brtl),
13333 # -berok will link without error, but may produce a broken library.
13334 allow_undefined_flag_CXX='-berok'
13335 # Determine the default libpath from the value encoded in an empty
13336 # executable.
13337 if test "${lt_cv_aix_libpath+set}" = set; then
13338 aix_libpath=$lt_cv_aix_libpath
13339 else
13340 if ${lt_cv_aix_libpath__CXX+:} false; then :
13341 $as_echo_n "(cached) " >&6
13342 else
13343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13344 /* end confdefs.h. */
13345
13346 int
13347 main ()
13348 {
13349
13350 ;
13351 return 0;
13352 }
13353 _ACEOF
13354 if ac_fn_cxx_try_link "$LINENO"; then :
13355
13356 lt_aix_libpath_sed='
13357 /Import File Strings/,/^$/ {
13358 /^0/ {
13359 s/^0 *\([^ ]*\) *$/\1/
13360 p
13361 }
13362 }'
13363 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13364 # Check for a 64-bit object if we didn't find anything.
13365 if test -z "$lt_cv_aix_libpath__CXX"; then
13366 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13367 fi
13368 fi
13369 rm -f core conftest.err conftest.$ac_objext \
13370 conftest$ac_exeext conftest.$ac_ext
13371 if test -z "$lt_cv_aix_libpath__CXX"; then
13372 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13373 fi
13374
13375 fi
13376
13377 aix_libpath=$lt_cv_aix_libpath__CXX
13378 fi
13379
13380 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13381
13382 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13383 else
13384 if test "$host_cpu" = ia64; then
13385 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13386 allow_undefined_flag_CXX="-z nodefs"
13387 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"
13388 else
13389 # Determine the default libpath from the value encoded in an
13390 # empty executable.
13391 if test "${lt_cv_aix_libpath+set}" = set; then
13392 aix_libpath=$lt_cv_aix_libpath
13393 else
13394 if ${lt_cv_aix_libpath__CXX+:} false; then :
13395 $as_echo_n "(cached) " >&6
13396 else
13397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13398 /* end confdefs.h. */
13399
13400 int
13401 main ()
13402 {
13403
13404 ;
13405 return 0;
13406 }
13407 _ACEOF
13408 if ac_fn_cxx_try_link "$LINENO"; then :
13409
13410 lt_aix_libpath_sed='
13411 /Import File Strings/,/^$/ {
13412 /^0/ {
13413 s/^0 *\([^ ]*\) *$/\1/
13414 p
13415 }
13416 }'
13417 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13418 # Check for a 64-bit object if we didn't find anything.
13419 if test -z "$lt_cv_aix_libpath__CXX"; then
13420 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13421 fi
13422 fi
13423 rm -f core conftest.err conftest.$ac_objext \
13424 conftest$ac_exeext conftest.$ac_ext
13425 if test -z "$lt_cv_aix_libpath__CXX"; then
13426 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13427 fi
13428
13429 fi
13430
13431 aix_libpath=$lt_cv_aix_libpath__CXX
13432 fi
13433
13434 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13435 # Warning - without using the other run time loading flags,
13436 # -berok will link without error, but may produce a broken library.
13437 no_undefined_flag_CXX=' ${wl}-bernotok'
13438 allow_undefined_flag_CXX=' ${wl}-berok'
13439 if test "$with_gnu_ld" = yes; then
13440 # We only use this code for GNU lds that support --whole-archive.
13441 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13442 else
13443 # Exported symbols can be pulled into shared objects from archives
13444 whole_archive_flag_spec_CXX='$convenience'
13445 fi
13446 archive_cmds_need_lc_CXX=yes
13447 # This is similar to how AIX traditionally builds its shared
13448 # libraries.
13449 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13450 fi
13451 fi
13452 ;;
13453
13454 beos*)
13455 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13456 allow_undefined_flag_CXX=unsupported
13457 # Joseph Beckenbach <[email protected]> says some releases of gcc
13458 # support --undefined. This deserves some investigation. FIXME
13459 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13460 else
13461 ld_shlibs_CXX=no
13462 fi
13463 ;;
13464
13465 chorus*)
13466 case $cc_basename in
13467 *)
13468 # FIXME: insert proper C++ library support
13469 ld_shlibs_CXX=no
13470 ;;
13471 esac
13472 ;;
13473
13474 cygwin* | mingw* | pw32* | cegcc*)
13475 case $GXX,$cc_basename in
13476 ,cl* | no,cl*)
13477 # Native MSVC
13478 # hardcode_libdir_flag_spec is actually meaningless, as there is
13479 # no search path for DLLs.
13480 hardcode_libdir_flag_spec_CXX=' '
13481 allow_undefined_flag_CXX=unsupported
13482 always_export_symbols_CXX=yes
13483 file_list_spec_CXX='@'
13484 # Tell ltmain to make .lib files, not .a files.
13485 libext=lib
13486 # Tell ltmain to make .dll files, not .so files.
13487 shrext_cmds=".dll"
13488 # FIXME: Setting linknames here is a bad hack.
13489 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13490 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13491 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13492 else
13493 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13494 fi~
13495 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13496 linknames='
13497 # The linker will not automatically build a static lib if we build a DLL.
13498 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13499 enable_shared_with_static_runtimes_CXX=yes
13500 # Don't use ranlib
13501 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13502 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13503 lt_tool_outputfile="@TOOL_OUTPUT@"~
13504 case $lt_outputfile in
13505 *.exe|*.EXE) ;;
13506 *)
13507 lt_outputfile="$lt_outputfile.exe"
13508 lt_tool_outputfile="$lt_tool_outputfile.exe"
13509 ;;
13510 esac~
13511 func_to_tool_file "$lt_outputfile"~
13512 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13513 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13514 $RM "$lt_outputfile.manifest";
13515 fi'
13516 ;;
13517 *)
13518 # g++
13519 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13520 # as there is no search path for DLLs.
13521 hardcode_libdir_flag_spec_CXX='-L$libdir'
13522 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13523 allow_undefined_flag_CXX=unsupported
13524 always_export_symbols_CXX=no
13525 enable_shared_with_static_runtimes_CXX=yes
13526
13527 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13528 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'
13529 # If the export-symbols file already is a .def file (1st line
13530 # is EXPORTS), use it as is; otherwise, prepend...
13531 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13532 cp $export_symbols $output_objdir/$soname.def;
13533 else
13534 echo EXPORTS > $output_objdir/$soname.def;
13535 cat $export_symbols >> $output_objdir/$soname.def;
13536 fi~
13537 $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'
13538 else
13539 ld_shlibs_CXX=no
13540 fi
13541 ;;
13542 esac
13543 ;;
13544 darwin* | rhapsody*)
13545
13546
13547 archive_cmds_need_lc_CXX=no
13548 hardcode_direct_CXX=no
13549 hardcode_automatic_CXX=yes
13550 hardcode_shlibpath_var_CXX=unsupported
13551 if test "$lt_cv_ld_force_load" = "yes"; then
13552 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\"`'
13553
13554 else
13555 whole_archive_flag_spec_CXX=''
13556 fi
13557 link_all_deplibs_CXX=yes
13558 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13559 case $cc_basename in
13560 ifort*) _lt_dar_can_shared=yes ;;
13561 *) _lt_dar_can_shared=$GCC ;;
13562 esac
13563 if test "$_lt_dar_can_shared" = "yes"; then
13564 output_verbose_link_cmd=func_echo_all
13565 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}"
13566 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13567 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}"
13568 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}"
13569 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13570 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}"
13571 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}"
13572 fi
13573
13574 else
13575 ld_shlibs_CXX=no
13576 fi
13577
13578 ;;
13579
13580 dgux*)
13581 case $cc_basename in
13582 ec++*)
13583 # FIXME: insert proper C++ library support
13584 ld_shlibs_CXX=no
13585 ;;
13586 ghcx*)
13587 # Green Hills C++ Compiler
13588 # FIXME: insert proper C++ library support
13589 ld_shlibs_CXX=no
13590 ;;
13591 *)
13592 # FIXME: insert proper C++ library support
13593 ld_shlibs_CXX=no
13594 ;;
13595 esac
13596 ;;
13597
13598 freebsd2.*)
13599 # C++ shared libraries reported to be fairly broken before
13600 # switch to ELF
13601 ld_shlibs_CXX=no
13602 ;;
13603
13604 freebsd-elf*)
13605 archive_cmds_need_lc_CXX=no
13606 ;;
13607
13608 freebsd* | dragonfly*)
13609 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13610 # conventions
13611 ld_shlibs_CXX=yes
13612 ;;
13613
13614 haiku*)
13615 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13616 link_all_deplibs_CXX=yes
13617 ;;
13618
13619 hpux9*)
13620 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13621 hardcode_libdir_separator_CXX=:
13622 export_dynamic_flag_spec_CXX='${wl}-E'
13623 hardcode_direct_CXX=yes
13624 hardcode_minus_L_CXX=yes # Not in the search PATH,
13625 # but as the default
13626 # location of the library.
13627
13628 case $cc_basename in
13629 CC*)
13630 # FIXME: insert proper C++ library support
13631 ld_shlibs_CXX=no
13632 ;;
13633 aCC*)
13634 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13635 # Commands to make compiler produce verbose output that lists
13636 # what "hidden" libraries, object files and flags are used when
13637 # linking a shared library.
13638 #
13639 # There doesn't appear to be a way to prevent this compiler from
13640 # explicitly linking system object files so we need to strip them
13641 # from the output so that they don't get included in the library
13642 # dependencies.
13643 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"'
13644 ;;
13645 *)
13646 if test "$GXX" = yes; then
13647 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13648 else
13649 # FIXME: insert proper C++ library support
13650 ld_shlibs_CXX=no
13651 fi
13652 ;;
13653 esac
13654 ;;
13655
13656 hpux10*|hpux11*)
13657 if test $with_gnu_ld = no; then
13658 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13659 hardcode_libdir_separator_CXX=:
13660
13661 case $host_cpu in
13662 hppa*64*|ia64*)
13663 ;;
13664 *)
13665 export_dynamic_flag_spec_CXX='${wl}-E'
13666 ;;
13667 esac
13668 fi
13669 case $host_cpu in
13670 hppa*64*|ia64*)
13671 hardcode_direct_CXX=no
13672 hardcode_shlibpath_var_CXX=no
13673 ;;
13674 *)
13675 hardcode_direct_CXX=yes
13676 hardcode_direct_absolute_CXX=yes
13677 hardcode_minus_L_CXX=yes # Not in the search PATH,
13678 # but as the default
13679 # location of the library.
13680 ;;
13681 esac
13682
13683 case $cc_basename in
13684 CC*)
13685 # FIXME: insert proper C++ library support
13686 ld_shlibs_CXX=no
13687 ;;
13688 aCC*)
13689 case $host_cpu in
13690 hppa*64*)
13691 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13692 ;;
13693 ia64*)
13694 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13695 ;;
13696 *)
13697 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13698 ;;
13699 esac
13700 # Commands to make compiler produce verbose output that lists
13701 # what "hidden" libraries, object files and flags are used when
13702 # linking a shared library.
13703 #
13704 # There doesn't appear to be a way to prevent this compiler from
13705 # explicitly linking system object files so we need to strip them
13706 # from the output so that they don't get included in the library
13707 # dependencies.
13708 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"'
13709 ;;
13710 *)
13711 if test "$GXX" = yes; then
13712 if test $with_gnu_ld = no; then
13713 case $host_cpu in
13714 hppa*64*)
13715 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13716 ;;
13717 ia64*)
13718 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13719 ;;
13720 *)
13721 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'
13722 ;;
13723 esac
13724 fi
13725 else
13726 # FIXME: insert proper C++ library support
13727 ld_shlibs_CXX=no
13728 fi
13729 ;;
13730 esac
13731 ;;
13732
13733 interix[3-9]*)
13734 hardcode_direct_CXX=no
13735 hardcode_shlibpath_var_CXX=no
13736 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13737 export_dynamic_flag_spec_CXX='${wl}-E'
13738 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13739 # Instead, shared libraries are loaded at an image base (0x10000000 by
13740 # default) and relocated if they conflict, which is a slow very memory
13741 # consuming and fragmenting process. To avoid this, we pick a random,
13742 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13743 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13744 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'
13745 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'
13746 ;;
13747 irix5* | irix6*)
13748 case $cc_basename in
13749 CC*)
13750 # SGI C++
13751 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'
13752
13753 # Archives containing C++ object files must be created using
13754 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13755 # necessary to make sure instantiated templates are included
13756 # in the archive.
13757 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13758 ;;
13759 *)
13760 if test "$GXX" = yes; then
13761 if test "$with_gnu_ld" = no; then
13762 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'
13763 else
13764 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'
13765 fi
13766 fi
13767 link_all_deplibs_CXX=yes
13768 ;;
13769 esac
13770 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13771 hardcode_libdir_separator_CXX=:
13772 inherit_rpath_CXX=yes
13773 ;;
13774
13775 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13776 case $cc_basename in
13777 KCC*)
13778 # Kuck and Associates, Inc. (KAI) C++ Compiler
13779
13780 # KCC will only create a shared library if the output file
13781 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13782 # to its proper name (with version) after linking.
13783 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'
13784 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'
13785 # Commands to make compiler produce verbose output that lists
13786 # what "hidden" libraries, object files and flags are used when
13787 # linking a shared library.
13788 #
13789 # There doesn't appear to be a way to prevent this compiler from
13790 # explicitly linking system object files so we need to strip them
13791 # from the output so that they don't get included in the library
13792 # dependencies.
13793 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"'
13794
13795 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13796 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13797
13798 # Archives containing C++ object files must be created using
13799 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13800 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13801 ;;
13802 icpc* | ecpc* )
13803 # Intel C++
13804 with_gnu_ld=yes
13805 # version 8.0 and above of icpc choke on multiply defined symbols
13806 # if we add $predep_objects and $postdep_objects, however 7.1 and
13807 # earlier do not add the objects themselves.
13808 case `$CC -V 2>&1` in
13809 *"Version 7."*)
13810 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13811 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'
13812 ;;
13813 *) # Version 8.0 or newer
13814 tmp_idyn=
13815 case $host_cpu in
13816 ia64*) tmp_idyn=' -i_dynamic';;
13817 esac
13818 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13819 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'
13820 ;;
13821 esac
13822 archive_cmds_need_lc_CXX=no
13823 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13824 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13825 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13826 ;;
13827 pgCC* | pgcpp*)
13828 # Portland Group C++ compiler
13829 case `$CC -V` in
13830 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13831 prelink_cmds_CXX='tpldir=Template.dir~
13832 rm -rf $tpldir~
13833 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13834 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13835 old_archive_cmds_CXX='tpldir=Template.dir~
13836 rm -rf $tpldir~
13837 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13838 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13839 $RANLIB $oldlib'
13840 archive_cmds_CXX='tpldir=Template.dir~
13841 rm -rf $tpldir~
13842 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13843 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13844 archive_expsym_cmds_CXX='tpldir=Template.dir~
13845 rm -rf $tpldir~
13846 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13847 $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'
13848 ;;
13849 *) # Version 6 and above use weak symbols
13850 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13851 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'
13852 ;;
13853 esac
13854
13855 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13856 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13857 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'
13858 ;;
13859 cxx*)
13860 # Compaq C++
13861 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13862 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'
13863
13864 runpath_var=LD_RUN_PATH
13865 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13866 hardcode_libdir_separator_CXX=:
13867
13868 # Commands to make compiler produce verbose output that lists
13869 # what "hidden" libraries, object files and flags are used when
13870 # linking a shared library.
13871 #
13872 # There doesn't appear to be a way to prevent this compiler from
13873 # explicitly linking system object files so we need to strip them
13874 # from the output so that they don't get included in the library
13875 # dependencies.
13876 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'
13877 ;;
13878 xl* | mpixl* | bgxl*)
13879 # IBM XL 8.0 on PPC, with GNU ld
13880 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13881 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13882 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13883 if test "x$supports_anon_versioning" = xyes; then
13884 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13885 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13886 echo "local: *; };" >> $output_objdir/$libname.ver~
13887 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13888 fi
13889 ;;
13890 *)
13891 case `$CC -V 2>&1 | sed 5q` in
13892 *Sun\ C*)
13893 # Sun C++ 5.9
13894 no_undefined_flag_CXX=' -zdefs'
13895 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13896 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'
13897 hardcode_libdir_flag_spec_CXX='-R$libdir'
13898 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'
13899 compiler_needs_object_CXX=yes
13900
13901 # Not sure whether something based on
13902 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13903 # would be better.
13904 output_verbose_link_cmd='func_echo_all'
13905
13906 # Archives containing C++ object files must be created using
13907 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13908 # necessary to make sure instantiated templates are included
13909 # in the archive.
13910 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13911 ;;
13912 esac
13913 ;;
13914 esac
13915 ;;
13916
13917 lynxos*)
13918 # FIXME: insert proper C++ library support
13919 ld_shlibs_CXX=no
13920 ;;
13921
13922 m88k*)
13923 # FIXME: insert proper C++ library support
13924 ld_shlibs_CXX=no
13925 ;;
13926
13927 mvs*)
13928 case $cc_basename in
13929 cxx*)
13930 # FIXME: insert proper C++ library support
13931 ld_shlibs_CXX=no
13932 ;;
13933 *)
13934 # FIXME: insert proper C++ library support
13935 ld_shlibs_CXX=no
13936 ;;
13937 esac
13938 ;;
13939
13940 netbsd*)
13941 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13942 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13943 wlarc=
13944 hardcode_libdir_flag_spec_CXX='-R$libdir'
13945 hardcode_direct_CXX=yes
13946 hardcode_shlibpath_var_CXX=no
13947 fi
13948 # Workaround some broken pre-1.5 toolchains
13949 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13950 ;;
13951
13952 *nto* | *qnx*)
13953 ld_shlibs_CXX=yes
13954 ;;
13955
13956 openbsd2*)
13957 # C++ shared libraries are fairly broken
13958 ld_shlibs_CXX=no
13959 ;;
13960
13961 openbsd*)
13962 if test -f /usr/libexec/ld.so; then
13963 hardcode_direct_CXX=yes
13964 hardcode_shlibpath_var_CXX=no
13965 hardcode_direct_absolute_CXX=yes
13966 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13967 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13968 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13969 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13970 export_dynamic_flag_spec_CXX='${wl}-E'
13971 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13972 fi
13973 output_verbose_link_cmd=func_echo_all
13974 else
13975 ld_shlibs_CXX=no
13976 fi
13977 ;;
13978
13979 osf3* | osf4* | osf5*)
13980 case $cc_basename in
13981 KCC*)
13982 # Kuck and Associates, Inc. (KAI) C++ Compiler
13983
13984 # KCC will only create a shared library if the output file
13985 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13986 # to its proper name (with version) after linking.
13987 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'
13988
13989 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13990 hardcode_libdir_separator_CXX=:
13991
13992 # Archives containing C++ object files must be created using
13993 # the KAI C++ compiler.
13994 case $host in
13995 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13996 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13997 esac
13998 ;;
13999 RCC*)
14000 # Rational C++ 2.4.1
14001 # FIXME: insert proper C++ library support
14002 ld_shlibs_CXX=no
14003 ;;
14004 cxx*)
14005 case $host in
14006 osf3*)
14007 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14008 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'
14009 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14010 ;;
14011 *)
14012 allow_undefined_flag_CXX=' -expect_unresolved \*'
14013 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'
14014 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14015 echo "-hidden">> $lib.exp~
14016 $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~
14017 $RM $lib.exp'
14018 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14019 ;;
14020 esac
14021
14022 hardcode_libdir_separator_CXX=:
14023
14024 # Commands to make compiler produce verbose output that lists
14025 # what "hidden" libraries, object files and flags are used when
14026 # linking a shared library.
14027 #
14028 # There doesn't appear to be a way to prevent this compiler from
14029 # explicitly linking system object files so we need to strip them
14030 # from the output so that they don't get included in the library
14031 # dependencies.
14032 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"'
14033 ;;
14034 *)
14035 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14036 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14037 case $host in
14038 osf3*)
14039 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'
14040 ;;
14041 *)
14042 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'
14043 ;;
14044 esac
14045
14046 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14047 hardcode_libdir_separator_CXX=:
14048
14049 # Commands to make compiler produce verbose output that lists
14050 # what "hidden" libraries, object files and flags are used when
14051 # linking a shared library.
14052 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14053
14054 else
14055 # FIXME: insert proper C++ library support
14056 ld_shlibs_CXX=no
14057 fi
14058 ;;
14059 esac
14060 ;;
14061
14062 psos*)
14063 # FIXME: insert proper C++ library support
14064 ld_shlibs_CXX=no
14065 ;;
14066
14067 sunos4*)
14068 case $cc_basename in
14069 CC*)
14070 # Sun C++ 4.x
14071 # FIXME: insert proper C++ library support
14072 ld_shlibs_CXX=no
14073 ;;
14074 lcc*)
14075 # Lucid
14076 # FIXME: insert proper C++ library support
14077 ld_shlibs_CXX=no
14078 ;;
14079 *)
14080 # FIXME: insert proper C++ library support
14081 ld_shlibs_CXX=no
14082 ;;
14083 esac
14084 ;;
14085
14086 solaris*)
14087 case $cc_basename in
14088 CC* | sunCC*)
14089 # Sun C++ 4.2, 5.x and Centerline C++
14090 archive_cmds_need_lc_CXX=yes
14091 no_undefined_flag_CXX=' -zdefs'
14092 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14093 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14094 $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'
14095
14096 hardcode_libdir_flag_spec_CXX='-R$libdir'
14097 hardcode_shlibpath_var_CXX=no
14098 case $host_os in
14099 solaris2.[0-5] | solaris2.[0-5].*) ;;
14100 *)
14101 # The compiler driver will combine and reorder linker options,
14102 # but understands `-z linker_flag'.
14103 # Supported since Solaris 2.6 (maybe 2.5.1?)
14104 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14105 ;;
14106 esac
14107 link_all_deplibs_CXX=yes
14108
14109 output_verbose_link_cmd='func_echo_all'
14110
14111 # Archives containing C++ object files must be created using
14112 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14113 # necessary to make sure instantiated templates are included
14114 # in the archive.
14115 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14116 ;;
14117 gcx*)
14118 # Green Hills C++ Compiler
14119 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14120
14121 # The C++ compiler must be used to create the archive.
14122 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14123 ;;
14124 *)
14125 # GNU C++ compiler with Solaris linker
14126 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14127 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14128 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14129 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14130 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14131 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14132
14133 # Commands to make compiler produce verbose output that lists
14134 # what "hidden" libraries, object files and flags are used when
14135 # linking a shared library.
14136 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14137 else
14138 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14139 # platform.
14140 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14141 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14142 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14143
14144 # Commands to make compiler produce verbose output that lists
14145 # what "hidden" libraries, object files and flags are used when
14146 # linking a shared library.
14147 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14148 fi
14149
14150 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14151 case $host_os in
14152 solaris2.[0-5] | solaris2.[0-5].*) ;;
14153 *)
14154 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14155 ;;
14156 esac
14157 fi
14158 ;;
14159 esac
14160 ;;
14161
14162 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14163 no_undefined_flag_CXX='${wl}-z,text'
14164 archive_cmds_need_lc_CXX=no
14165 hardcode_shlibpath_var_CXX=no
14166 runpath_var='LD_RUN_PATH'
14167
14168 case $cc_basename in
14169 CC*)
14170 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14171 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14172 ;;
14173 *)
14174 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14175 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14176 ;;
14177 esac
14178 ;;
14179
14180 sysv5* | sco3.2v5* | sco5v6*)
14181 # Note: We can NOT use -z defs as we might desire, because we do not
14182 # link with -lc, and that would cause any symbols used from libc to
14183 # always be unresolved, which means just about no library would
14184 # ever link correctly. If we're not using GNU ld we use -z text
14185 # though, which does catch some bad symbols but isn't as heavy-handed
14186 # as -z defs.
14187 no_undefined_flag_CXX='${wl}-z,text'
14188 allow_undefined_flag_CXX='${wl}-z,nodefs'
14189 archive_cmds_need_lc_CXX=no
14190 hardcode_shlibpath_var_CXX=no
14191 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14192 hardcode_libdir_separator_CXX=':'
14193 link_all_deplibs_CXX=yes
14194 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14195 runpath_var='LD_RUN_PATH'
14196
14197 case $cc_basename in
14198 CC*)
14199 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14200 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14201 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14202 '"$old_archive_cmds_CXX"
14203 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14204 '"$reload_cmds_CXX"
14205 ;;
14206 *)
14207 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14208 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14209 ;;
14210 esac
14211 ;;
14212
14213 tandem*)
14214 case $cc_basename in
14215 NCC*)
14216 # NonStop-UX NCC 3.20
14217 # FIXME: insert proper C++ library support
14218 ld_shlibs_CXX=no
14219 ;;
14220 *)
14221 # FIXME: insert proper C++ library support
14222 ld_shlibs_CXX=no
14223 ;;
14224 esac
14225 ;;
14226
14227 vxworks*)
14228 # FIXME: insert proper C++ library support
14229 ld_shlibs_CXX=no
14230 ;;
14231
14232 *)
14233 # FIXME: insert proper C++ library support
14234 ld_shlibs_CXX=no
14235 ;;
14236 esac
14237
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14239 $as_echo "$ld_shlibs_CXX" >&6; }
14240 test "$ld_shlibs_CXX" = no && can_build_shared=no
14241
14242 GCC_CXX="$GXX"
14243 LD_CXX="$LD"
14244
14245 ## CAVEAT EMPTOR:
14246 ## There is no encapsulation within the following macros, do not change
14247 ## the running order or otherwise move them around unless you know exactly
14248 ## what you are doing...
14249 # Dependencies to place before and after the object being linked:
14250 predep_objects_CXX=
14251 postdep_objects_CXX=
14252 predeps_CXX=
14253 postdeps_CXX=
14254 compiler_lib_search_path_CXX=
14255
14256 cat > conftest.$ac_ext <<_LT_EOF
14257 class Foo
14258 {
14259 public:
14260 Foo (void) { a = 0; }
14261 private:
14262 int a;
14263 };
14264 _LT_EOF
14265
14266
14267 _lt_libdeps_save_CFLAGS=$CFLAGS
14268 case "$CC $CFLAGS " in #(
14269 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14270 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14271 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14272 esac
14273
14274 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14275 (eval $ac_compile) 2>&5
14276 ac_status=$?
14277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14278 test $ac_status = 0; }; then
14279 # Parse the compiler output and extract the necessary
14280 # objects, libraries and library flags.
14281
14282 # Sentinel used to keep track of whether or not we are before
14283 # the conftest object file.
14284 pre_test_object_deps_done=no
14285
14286 for p in `eval "$output_verbose_link_cmd"`; do
14287 case ${prev}${p} in
14288
14289 -L* | -R* | -l*)
14290 # Some compilers place space between "-{L,R}" and the path.
14291 # Remove the space.
14292 if test $p = "-L" ||
14293 test $p = "-R"; then
14294 prev=$p
14295 continue
14296 fi
14297
14298 # Expand the sysroot to ease extracting the directories later.
14299 if test -z "$prev"; then
14300 case $p in
14301 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14302 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14303 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14304 esac
14305 fi
14306 case $p in
14307 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14308 esac
14309 if test "$pre_test_object_deps_done" = no; then
14310 case ${prev} in
14311 -L | -R)
14312 # Internal compiler library paths should come after those
14313 # provided the user. The postdeps already come after the
14314 # user supplied libs so there is no need to process them.
14315 if test -z "$compiler_lib_search_path_CXX"; then
14316 compiler_lib_search_path_CXX="${prev}${p}"
14317 else
14318 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14319 fi
14320 ;;
14321 # The "-l" case would never come before the object being
14322 # linked, so don't bother handling this case.
14323 esac
14324 else
14325 if test -z "$postdeps_CXX"; then
14326 postdeps_CXX="${prev}${p}"
14327 else
14328 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14329 fi
14330 fi
14331 prev=
14332 ;;
14333
14334 *.lto.$objext) ;; # Ignore GCC LTO objects
14335 *.$objext)
14336 # This assumes that the test object file only shows up
14337 # once in the compiler output.
14338 if test "$p" = "conftest.$objext"; then
14339 pre_test_object_deps_done=yes
14340 continue
14341 fi
14342
14343 if test "$pre_test_object_deps_done" = no; then
14344 if test -z "$predep_objects_CXX"; then
14345 predep_objects_CXX="$p"
14346 else
14347 predep_objects_CXX="$predep_objects_CXX $p"
14348 fi
14349 else
14350 if test -z "$postdep_objects_CXX"; then
14351 postdep_objects_CXX="$p"
14352 else
14353 postdep_objects_CXX="$postdep_objects_CXX $p"
14354 fi
14355 fi
14356 ;;
14357
14358 *) ;; # Ignore the rest.
14359
14360 esac
14361 done
14362
14363 # Clean up.
14364 rm -f a.out a.exe
14365 else
14366 echo "libtool.m4: error: problem compiling CXX test program"
14367 fi
14368
14369 $RM -f confest.$objext
14370 CFLAGS=$_lt_libdeps_save_CFLAGS
14371
14372 # PORTME: override above test on systems where it is broken
14373 case $host_os in
14374 interix[3-9]*)
14375 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14376 # hack all around it, let's just trust "g++" to DTRT.
14377 predep_objects_CXX=
14378 postdep_objects_CXX=
14379 postdeps_CXX=
14380 ;;
14381
14382 linux*)
14383 case `$CC -V 2>&1 | sed 5q` in
14384 *Sun\ C*)
14385 # Sun C++ 5.9
14386
14387 # The more standards-conforming stlport4 library is
14388 # incompatible with the Cstd library. Avoid specifying
14389 # it if it's in CXXFLAGS. Ignore libCrun as
14390 # -library=stlport4 depends on it.
14391 case " $CXX $CXXFLAGS " in
14392 *" -library=stlport4 "*)
14393 solaris_use_stlport4=yes
14394 ;;
14395 esac
14396
14397 if test "$solaris_use_stlport4" != yes; then
14398 postdeps_CXX='-library=Cstd -library=Crun'
14399 fi
14400 ;;
14401 esac
14402 ;;
14403
14404 solaris*)
14405 case $cc_basename in
14406 CC* | sunCC*)
14407 # The more standards-conforming stlport4 library is
14408 # incompatible with the Cstd library. Avoid specifying
14409 # it if it's in CXXFLAGS. Ignore libCrun as
14410 # -library=stlport4 depends on it.
14411 case " $CXX $CXXFLAGS " in
14412 *" -library=stlport4 "*)
14413 solaris_use_stlport4=yes
14414 ;;
14415 esac
14416
14417 # Adding this requires a known-good setup of shared libraries for
14418 # Sun compiler versions before 5.6, else PIC objects from an old
14419 # archive will be linked into the output, leading to subtle bugs.
14420 if test "$solaris_use_stlport4" != yes; then
14421 postdeps_CXX='-library=Cstd -library=Crun'
14422 fi
14423 ;;
14424 esac
14425 ;;
14426 esac
14427
14428
14429 case " $postdeps_CXX " in
14430 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14431 esac
14432 compiler_lib_search_dirs_CXX=
14433 if test -n "${compiler_lib_search_path_CXX}"; then
14434 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14435 fi
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467 lt_prog_compiler_wl_CXX=
14468 lt_prog_compiler_pic_CXX=
14469 lt_prog_compiler_static_CXX=
14470
14471
14472 # C++ specific cases for pic, static, wl, etc.
14473 if test "$GXX" = yes; then
14474 lt_prog_compiler_wl_CXX='-Wl,'
14475 lt_prog_compiler_static_CXX='-static'
14476
14477 case $host_os in
14478 aix*)
14479 # All AIX code is PIC.
14480 if test "$host_cpu" = ia64; then
14481 # AIX 5 now supports IA64 processor
14482 lt_prog_compiler_static_CXX='-Bstatic'
14483 fi
14484 ;;
14485
14486 amigaos*)
14487 case $host_cpu in
14488 powerpc)
14489 # see comment about AmigaOS4 .so support
14490 lt_prog_compiler_pic_CXX='-fPIC'
14491 ;;
14492 m68k)
14493 # FIXME: we need at least 68020 code to build shared libraries, but
14494 # adding the `-m68020' flag to GCC prevents building anything better,
14495 # like `-m68040'.
14496 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14497 ;;
14498 esac
14499 ;;
14500
14501 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14502 # PIC is the default for these OSes.
14503 ;;
14504 mingw* | cygwin* | os2* | pw32* | cegcc*)
14505 # This hack is so that the source file can tell whether it is being
14506 # built for inclusion in a dll (and should export symbols for example).
14507 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14508 # (--disable-auto-import) libraries
14509 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14510 ;;
14511 darwin* | rhapsody*)
14512 # PIC is the default on this platform
14513 # Common symbols not allowed in MH_DYLIB files
14514 lt_prog_compiler_pic_CXX='-fno-common'
14515 ;;
14516 *djgpp*)
14517 # DJGPP does not support shared libraries at all
14518 lt_prog_compiler_pic_CXX=
14519 ;;
14520 haiku*)
14521 # PIC is the default for Haiku.
14522 # The "-static" flag exists, but is broken.
14523 lt_prog_compiler_static_CXX=
14524 ;;
14525 interix[3-9]*)
14526 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14527 # Instead, we relocate shared libraries at runtime.
14528 ;;
14529 sysv4*MP*)
14530 if test -d /usr/nec; then
14531 lt_prog_compiler_pic_CXX=-Kconform_pic
14532 fi
14533 ;;
14534 hpux*)
14535 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14536 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14537 # sets the default TLS model and affects inlining.
14538 case $host_cpu in
14539 hppa*64*)
14540 ;;
14541 *)
14542 lt_prog_compiler_pic_CXX='-fPIC'
14543 ;;
14544 esac
14545 ;;
14546 *qnx* | *nto*)
14547 # QNX uses GNU C++, but need to define -shared option too, otherwise
14548 # it will coredump.
14549 lt_prog_compiler_pic_CXX='-fPIC -shared'
14550 ;;
14551 *)
14552 lt_prog_compiler_pic_CXX='-fPIC'
14553 ;;
14554 esac
14555 else
14556 case $host_os in
14557 aix[4-9]*)
14558 # All AIX code is PIC.
14559 if test "$host_cpu" = ia64; then
14560 # AIX 5 now supports IA64 processor
14561 lt_prog_compiler_static_CXX='-Bstatic'
14562 else
14563 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14564 fi
14565 ;;
14566 chorus*)
14567 case $cc_basename in
14568 cxch68*)
14569 # Green Hills C++ Compiler
14570 # _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"
14571 ;;
14572 esac
14573 ;;
14574 mingw* | cygwin* | os2* | pw32* | cegcc*)
14575 # This hack is so that the source file can tell whether it is being
14576 # built for inclusion in a dll (and should export symbols for example).
14577 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14578 ;;
14579 dgux*)
14580 case $cc_basename in
14581 ec++*)
14582 lt_prog_compiler_pic_CXX='-KPIC'
14583 ;;
14584 ghcx*)
14585 # Green Hills C++ Compiler
14586 lt_prog_compiler_pic_CXX='-pic'
14587 ;;
14588 *)
14589 ;;
14590 esac
14591 ;;
14592 freebsd* | dragonfly*)
14593 # FreeBSD uses GNU C++
14594 ;;
14595 hpux9* | hpux10* | hpux11*)
14596 case $cc_basename in
14597 CC*)
14598 lt_prog_compiler_wl_CXX='-Wl,'
14599 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14600 if test "$host_cpu" != ia64; then
14601 lt_prog_compiler_pic_CXX='+Z'
14602 fi
14603 ;;
14604 aCC*)
14605 lt_prog_compiler_wl_CXX='-Wl,'
14606 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14607 case $host_cpu in
14608 hppa*64*|ia64*)
14609 # +Z the default
14610 ;;
14611 *)
14612 lt_prog_compiler_pic_CXX='+Z'
14613 ;;
14614 esac
14615 ;;
14616 *)
14617 ;;
14618 esac
14619 ;;
14620 interix*)
14621 # This is c89, which is MS Visual C++ (no shared libs)
14622 # Anyone wants to do a port?
14623 ;;
14624 irix5* | irix6* | nonstopux*)
14625 case $cc_basename in
14626 CC*)
14627 lt_prog_compiler_wl_CXX='-Wl,'
14628 lt_prog_compiler_static_CXX='-non_shared'
14629 # CC pic flag -KPIC is the default.
14630 ;;
14631 *)
14632 ;;
14633 esac
14634 ;;
14635 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14636 case $cc_basename in
14637 KCC*)
14638 # KAI C++ Compiler
14639 lt_prog_compiler_wl_CXX='--backend -Wl,'
14640 lt_prog_compiler_pic_CXX='-fPIC'
14641 ;;
14642 ecpc* )
14643 # old Intel C++ for x86_64 which still supported -KPIC.
14644 lt_prog_compiler_wl_CXX='-Wl,'
14645 lt_prog_compiler_pic_CXX='-KPIC'
14646 lt_prog_compiler_static_CXX='-static'
14647 ;;
14648 icpc* )
14649 # Intel C++, used to be incompatible with GCC.
14650 # ICC 10 doesn't accept -KPIC any more.
14651 lt_prog_compiler_wl_CXX='-Wl,'
14652 lt_prog_compiler_pic_CXX='-fPIC'
14653 lt_prog_compiler_static_CXX='-static'
14654 ;;
14655 pgCC* | pgcpp*)
14656 # Portland Group C++ compiler
14657 lt_prog_compiler_wl_CXX='-Wl,'
14658 lt_prog_compiler_pic_CXX='-fpic'
14659 lt_prog_compiler_static_CXX='-Bstatic'
14660 ;;
14661 cxx*)
14662 # Compaq C++
14663 # Make sure the PIC flag is empty. It appears that all Alpha
14664 # Linux and Compaq Tru64 Unix objects are PIC.
14665 lt_prog_compiler_pic_CXX=
14666 lt_prog_compiler_static_CXX='-non_shared'
14667 ;;
14668 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14669 # IBM XL 8.0, 9.0 on PPC and BlueGene
14670 lt_prog_compiler_wl_CXX='-Wl,'
14671 lt_prog_compiler_pic_CXX='-qpic'
14672 lt_prog_compiler_static_CXX='-qstaticlink'
14673 ;;
14674 *)
14675 case `$CC -V 2>&1 | sed 5q` in
14676 *Sun\ C*)
14677 # Sun C++ 5.9
14678 lt_prog_compiler_pic_CXX='-KPIC'
14679 lt_prog_compiler_static_CXX='-Bstatic'
14680 lt_prog_compiler_wl_CXX='-Qoption ld '
14681 ;;
14682 esac
14683 ;;
14684 esac
14685 ;;
14686 lynxos*)
14687 ;;
14688 m88k*)
14689 ;;
14690 mvs*)
14691 case $cc_basename in
14692 cxx*)
14693 lt_prog_compiler_pic_CXX='-W c,exportall'
14694 ;;
14695 *)
14696 ;;
14697 esac
14698 ;;
14699 netbsd* | netbsdelf*-gnu)
14700 ;;
14701 *qnx* | *nto*)
14702 # QNX uses GNU C++, but need to define -shared option too, otherwise
14703 # it will coredump.
14704 lt_prog_compiler_pic_CXX='-fPIC -shared'
14705 ;;
14706 osf3* | osf4* | osf5*)
14707 case $cc_basename in
14708 KCC*)
14709 lt_prog_compiler_wl_CXX='--backend -Wl,'
14710 ;;
14711 RCC*)
14712 # Rational C++ 2.4.1
14713 lt_prog_compiler_pic_CXX='-pic'
14714 ;;
14715 cxx*)
14716 # Digital/Compaq C++
14717 lt_prog_compiler_wl_CXX='-Wl,'
14718 # Make sure the PIC flag is empty. It appears that all Alpha
14719 # Linux and Compaq Tru64 Unix objects are PIC.
14720 lt_prog_compiler_pic_CXX=
14721 lt_prog_compiler_static_CXX='-non_shared'
14722 ;;
14723 *)
14724 ;;
14725 esac
14726 ;;
14727 psos*)
14728 ;;
14729 solaris*)
14730 case $cc_basename in
14731 CC* | sunCC*)
14732 # Sun C++ 4.2, 5.x and Centerline C++
14733 lt_prog_compiler_pic_CXX='-KPIC'
14734 lt_prog_compiler_static_CXX='-Bstatic'
14735 lt_prog_compiler_wl_CXX='-Qoption ld '
14736 ;;
14737 gcx*)
14738 # Green Hills C++ Compiler
14739 lt_prog_compiler_pic_CXX='-PIC'
14740 ;;
14741 *)
14742 ;;
14743 esac
14744 ;;
14745 sunos4*)
14746 case $cc_basename in
14747 CC*)
14748 # Sun C++ 4.x
14749 lt_prog_compiler_pic_CXX='-pic'
14750 lt_prog_compiler_static_CXX='-Bstatic'
14751 ;;
14752 lcc*)
14753 # Lucid
14754 lt_prog_compiler_pic_CXX='-pic'
14755 ;;
14756 *)
14757 ;;
14758 esac
14759 ;;
14760 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14761 case $cc_basename in
14762 CC*)
14763 lt_prog_compiler_wl_CXX='-Wl,'
14764 lt_prog_compiler_pic_CXX='-KPIC'
14765 lt_prog_compiler_static_CXX='-Bstatic'
14766 ;;
14767 esac
14768 ;;
14769 tandem*)
14770 case $cc_basename in
14771 NCC*)
14772 # NonStop-UX NCC 3.20
14773 lt_prog_compiler_pic_CXX='-KPIC'
14774 ;;
14775 *)
14776 ;;
14777 esac
14778 ;;
14779 vxworks*)
14780 ;;
14781 *)
14782 lt_prog_compiler_can_build_shared_CXX=no
14783 ;;
14784 esac
14785 fi
14786
14787 case $host_os in
14788 # For platforms which do not support PIC, -DPIC is meaningless:
14789 *djgpp*)
14790 lt_prog_compiler_pic_CXX=
14791 ;;
14792 *)
14793 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14794 ;;
14795 esac
14796
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14798 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14799 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14800 $as_echo_n "(cached) " >&6
14801 else
14802 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14803 fi
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14805 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14806 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14807
14808 #
14809 # Check to make sure the PIC flag actually works.
14810 #
14811 if test -n "$lt_prog_compiler_pic_CXX"; then
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14813 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14814 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14815 $as_echo_n "(cached) " >&6
14816 else
14817 lt_cv_prog_compiler_pic_works_CXX=no
14818 ac_outfile=conftest.$ac_objext
14819 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14820 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14821 # Insert the option either (1) after the last *FLAGS variable, or
14822 # (2) before a word containing "conftest.", or (3) at the end.
14823 # Note that $ac_compile itself does not contain backslashes and begins
14824 # with a dollar sign (not a hyphen), so the echo should work correctly.
14825 # The option is referenced via a variable to avoid confusing sed.
14826 lt_compile=`echo "$ac_compile" | $SED \
14827 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14828 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14829 -e 's:$: $lt_compiler_flag:'`
14830 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14831 (eval "$lt_compile" 2>conftest.err)
14832 ac_status=$?
14833 cat conftest.err >&5
14834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835 if (exit $ac_status) && test -s "$ac_outfile"; then
14836 # The compiler can only warn and ignore the option if not recognized
14837 # So say no if there are warnings other than the usual output.
14838 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14839 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14840 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14841 lt_cv_prog_compiler_pic_works_CXX=yes
14842 fi
14843 fi
14844 $RM conftest*
14845
14846 fi
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14848 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14849
14850 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14851 case $lt_prog_compiler_pic_CXX in
14852 "" | " "*) ;;
14853 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14854 esac
14855 else
14856 lt_prog_compiler_pic_CXX=
14857 lt_prog_compiler_can_build_shared_CXX=no
14858 fi
14859
14860 fi
14861
14862
14863
14864
14865
14866 #
14867 # Check to make sure the static flag actually works.
14868 #
14869 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14871 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14872 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14873 $as_echo_n "(cached) " >&6
14874 else
14875 lt_cv_prog_compiler_static_works_CXX=no
14876 save_LDFLAGS="$LDFLAGS"
14877 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14878 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14879 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14880 # The linker can only warn and ignore the option if not recognized
14881 # So say no if there are warnings
14882 if test -s conftest.err; then
14883 # Append any errors to the config.log.
14884 cat conftest.err 1>&5
14885 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14886 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14887 if diff conftest.exp conftest.er2 >/dev/null; then
14888 lt_cv_prog_compiler_static_works_CXX=yes
14889 fi
14890 else
14891 lt_cv_prog_compiler_static_works_CXX=yes
14892 fi
14893 fi
14894 $RM -r conftest*
14895 LDFLAGS="$save_LDFLAGS"
14896
14897 fi
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14899 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14900
14901 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14902 :
14903 else
14904 lt_prog_compiler_static_CXX=
14905 fi
14906
14907
14908
14909
14910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14911 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14912 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14913 $as_echo_n "(cached) " >&6
14914 else
14915 lt_cv_prog_compiler_c_o_CXX=no
14916 $RM -r conftest 2>/dev/null
14917 mkdir conftest
14918 cd conftest
14919 mkdir out
14920 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14921
14922 lt_compiler_flag="-o out/conftest2.$ac_objext"
14923 # Insert the option either (1) after the last *FLAGS variable, or
14924 # (2) before a word containing "conftest.", or (3) at the end.
14925 # Note that $ac_compile itself does not contain backslashes and begins
14926 # with a dollar sign (not a hyphen), so the echo should work correctly.
14927 lt_compile=`echo "$ac_compile" | $SED \
14928 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14929 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14930 -e 's:$: $lt_compiler_flag:'`
14931 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14932 (eval "$lt_compile" 2>out/conftest.err)
14933 ac_status=$?
14934 cat out/conftest.err >&5
14935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14937 then
14938 # The compiler can only warn and ignore the option if not recognized
14939 # So say no if there are warnings
14940 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14941 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14942 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14943 lt_cv_prog_compiler_c_o_CXX=yes
14944 fi
14945 fi
14946 chmod u+w . 2>&5
14947 $RM conftest*
14948 # SGI C++ compiler will create directory out/ii_files/ for
14949 # template instantiation
14950 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14951 $RM out/* && rmdir out
14952 cd ..
14953 $RM -r conftest
14954 $RM conftest*
14955
14956 fi
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14958 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14959
14960
14961
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14963 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14964 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14965 $as_echo_n "(cached) " >&6
14966 else
14967 lt_cv_prog_compiler_c_o_CXX=no
14968 $RM -r conftest 2>/dev/null
14969 mkdir conftest
14970 cd conftest
14971 mkdir out
14972 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14973
14974 lt_compiler_flag="-o out/conftest2.$ac_objext"
14975 # Insert the option either (1) after the last *FLAGS variable, or
14976 # (2) before a word containing "conftest.", or (3) at the end.
14977 # Note that $ac_compile itself does not contain backslashes and begins
14978 # with a dollar sign (not a hyphen), so the echo should work correctly.
14979 lt_compile=`echo "$ac_compile" | $SED \
14980 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14981 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14982 -e 's:$: $lt_compiler_flag:'`
14983 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14984 (eval "$lt_compile" 2>out/conftest.err)
14985 ac_status=$?
14986 cat out/conftest.err >&5
14987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14988 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14989 then
14990 # The compiler can only warn and ignore the option if not recognized
14991 # So say no if there are warnings
14992 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14993 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14994 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14995 lt_cv_prog_compiler_c_o_CXX=yes
14996 fi
14997 fi
14998 chmod u+w . 2>&5
14999 $RM conftest*
15000 # SGI C++ compiler will create directory out/ii_files/ for
15001 # template instantiation
15002 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15003 $RM out/* && rmdir out
15004 cd ..
15005 $RM -r conftest
15006 $RM conftest*
15007
15008 fi
15009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15010 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15011
15012
15013
15014
15015 hard_links="nottested"
15016 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15017 # do not overwrite the value of need_locks provided by the user
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15019 $as_echo_n "checking if we can lock with hard links... " >&6; }
15020 hard_links=yes
15021 $RM conftest*
15022 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15023 touch conftest.a
15024 ln conftest.a conftest.b 2>&5 || hard_links=no
15025 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15027 $as_echo "$hard_links" >&6; }
15028 if test "$hard_links" = no; then
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15030 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15031 need_locks=warn
15032 fi
15033 else
15034 need_locks=no
15035 fi
15036
15037
15038
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15040 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15041
15042 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15043 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15044 case $host_os in
15045 aix[4-9]*)
15046 # If we're using GNU nm, then we don't want the "-C" option.
15047 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15048 # Also, AIX nm treats weak defined symbols like other global defined
15049 # symbols, whereas GNU nm marks them as "W".
15050 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15051 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15052 else
15053 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15054 fi
15055 ;;
15056 pw32*)
15057 export_symbols_cmds_CXX="$ltdll_cmds"
15058 ;;
15059 cygwin* | mingw* | cegcc*)
15060 case $cc_basename in
15061 cl*)
15062 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15063 ;;
15064 *)
15065 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'
15066 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15067 ;;
15068 esac
15069 ;;
15070 linux* | k*bsd*-gnu | gnu*)
15071 link_all_deplibs_CXX=no
15072 ;;
15073 *)
15074 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15075 ;;
15076 esac
15077
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15079 $as_echo "$ld_shlibs_CXX" >&6; }
15080 test "$ld_shlibs_CXX" = no && can_build_shared=no
15081
15082 with_gnu_ld_CXX=$with_gnu_ld
15083
15084
15085
15086
15087
15088
15089 #
15090 # Do we need to explicitly link libc?
15091 #
15092 case "x$archive_cmds_need_lc_CXX" in
15093 x|xyes)
15094 # Assume -lc should be added
15095 archive_cmds_need_lc_CXX=yes
15096
15097 if test "$enable_shared" = yes && test "$GCC" = yes; then
15098 case $archive_cmds_CXX in
15099 *'~'*)
15100 # FIXME: we may have to deal with multi-command sequences.
15101 ;;
15102 '$CC '*)
15103 # Test whether the compiler implicitly links with -lc since on some
15104 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15105 # to ld, don't add -lc before -lgcc.
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15107 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15108 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15109 $as_echo_n "(cached) " >&6
15110 else
15111 $RM conftest*
15112 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15113
15114 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15115 (eval $ac_compile) 2>&5
15116 ac_status=$?
15117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15118 test $ac_status = 0; } 2>conftest.err; then
15119 soname=conftest
15120 lib=conftest
15121 libobjs=conftest.$ac_objext
15122 deplibs=
15123 wl=$lt_prog_compiler_wl_CXX
15124 pic_flag=$lt_prog_compiler_pic_CXX
15125 compiler_flags=-v
15126 linker_flags=-v
15127 verstring=
15128 output_objdir=.
15129 libname=conftest
15130 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15131 allow_undefined_flag_CXX=
15132 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15133 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15134 ac_status=$?
15135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15136 test $ac_status = 0; }
15137 then
15138 lt_cv_archive_cmds_need_lc_CXX=no
15139 else
15140 lt_cv_archive_cmds_need_lc_CXX=yes
15141 fi
15142 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15143 else
15144 cat conftest.err 1>&5
15145 fi
15146 $RM conftest*
15147
15148 fi
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15150 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15151 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15152 ;;
15153 esac
15154 fi
15155 ;;
15156 esac
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15220 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15221
15222 library_names_spec=
15223 libname_spec='lib$name'
15224 soname_spec=
15225 shrext_cmds=".so"
15226 postinstall_cmds=
15227 postuninstall_cmds=
15228 finish_cmds=
15229 finish_eval=
15230 shlibpath_var=
15231 shlibpath_overrides_runpath=unknown
15232 version_type=none
15233 dynamic_linker="$host_os ld.so"
15234 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15235 need_lib_prefix=unknown
15236 hardcode_into_libs=no
15237
15238 # when you set need_version to no, make sure it does not cause -set_version
15239 # flags to be left without arguments
15240 need_version=unknown
15241
15242 case $host_os in
15243 aix3*)
15244 version_type=linux # correct to gnu/linux during the next big refactor
15245 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15246 shlibpath_var=LIBPATH
15247
15248 # AIX 3 has no versioning support, so we append a major version to the name.
15249 soname_spec='${libname}${release}${shared_ext}$major'
15250 ;;
15251
15252 aix[4-9]*)
15253 version_type=linux # correct to gnu/linux during the next big refactor
15254 need_lib_prefix=no
15255 need_version=no
15256 hardcode_into_libs=yes
15257 if test "$host_cpu" = ia64; then
15258 # AIX 5 supports IA64
15259 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15260 shlibpath_var=LD_LIBRARY_PATH
15261 else
15262 # With GCC up to 2.95.x, collect2 would create an import file
15263 # for dependence libraries. The import file would start with
15264 # the line `#! .'. This would cause the generated library to
15265 # depend on `.', always an invalid library. This was fixed in
15266 # development snapshots of GCC prior to 3.0.
15267 case $host_os in
15268 aix4 | aix4.[01] | aix4.[01].*)
15269 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15270 echo ' yes '
15271 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15272 :
15273 else
15274 can_build_shared=no
15275 fi
15276 ;;
15277 esac
15278 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15279 # soname into executable. Probably we can add versioning support to
15280 # collect2, so additional links can be useful in future.
15281 if test "$aix_use_runtimelinking" = yes; then
15282 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15283 # instead of lib<name>.a to let people know that these are not
15284 # typical AIX shared libraries.
15285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15286 else
15287 # We preserve .a as extension for shared libraries through AIX4.2
15288 # and later when we are not doing run time linking.
15289 library_names_spec='${libname}${release}.a $libname.a'
15290 soname_spec='${libname}${release}${shared_ext}$major'
15291 fi
15292 shlibpath_var=LIBPATH
15293 fi
15294 ;;
15295
15296 amigaos*)
15297 case $host_cpu in
15298 powerpc)
15299 # Since July 2007 AmigaOS4 officially supports .so libraries.
15300 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15302 ;;
15303 m68k)
15304 library_names_spec='$libname.ixlibrary $libname.a'
15305 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15306 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15307 ;;
15308 esac
15309 ;;
15310
15311 beos*)
15312 library_names_spec='${libname}${shared_ext}'
15313 dynamic_linker="$host_os ld.so"
15314 shlibpath_var=LIBRARY_PATH
15315 ;;
15316
15317 bsdi[45]*)
15318 version_type=linux # correct to gnu/linux during the next big refactor
15319 need_version=no
15320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15321 soname_spec='${libname}${release}${shared_ext}$major'
15322 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15323 shlibpath_var=LD_LIBRARY_PATH
15324 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15325 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15326 # the default ld.so.conf also contains /usr/contrib/lib and
15327 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15328 # libtool to hard-code these into programs
15329 ;;
15330
15331 cygwin* | mingw* | pw32* | cegcc*)
15332 version_type=windows
15333 shrext_cmds=".dll"
15334 need_version=no
15335 need_lib_prefix=no
15336
15337 case $GCC,$cc_basename in
15338 yes,*)
15339 # gcc
15340 library_names_spec='$libname.dll.a'
15341 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15342 postinstall_cmds='base_file=`basename \${file}`~
15343 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15344 dldir=$destdir/`dirname \$dlpath`~
15345 test -d \$dldir || mkdir -p \$dldir~
15346 $install_prog $dir/$dlname \$dldir/$dlname~
15347 chmod a+x \$dldir/$dlname~
15348 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15349 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15350 fi'
15351 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15352 dlpath=$dir/\$dldll~
15353 $RM \$dlpath'
15354 shlibpath_overrides_runpath=yes
15355
15356 case $host_os in
15357 cygwin*)
15358 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15359 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15360
15361 ;;
15362 mingw* | cegcc*)
15363 # MinGW DLLs use traditional 'lib' prefix
15364 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15365 ;;
15366 pw32*)
15367 # pw32 DLLs use 'pw' prefix rather than 'lib'
15368 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15369 ;;
15370 esac
15371 dynamic_linker='Win32 ld.exe'
15372 ;;
15373
15374 *,cl*)
15375 # Native MSVC
15376 libname_spec='$name'
15377 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15378 library_names_spec='${libname}.dll.lib'
15379
15380 case $build_os in
15381 mingw*)
15382 sys_lib_search_path_spec=
15383 lt_save_ifs=$IFS
15384 IFS=';'
15385 for lt_path in $LIB
15386 do
15387 IFS=$lt_save_ifs
15388 # Let DOS variable expansion print the short 8.3 style file name.
15389 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15390 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15391 done
15392 IFS=$lt_save_ifs
15393 # Convert to MSYS style.
15394 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15395 ;;
15396 cygwin*)
15397 # Convert to unix form, then to dos form, then back to unix form
15398 # but this time dos style (no spaces!) so that the unix form looks
15399 # like /cygdrive/c/PROGRA~1:/cygdr...
15400 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15401 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15402 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15403 ;;
15404 *)
15405 sys_lib_search_path_spec="$LIB"
15406 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15407 # It is most probably a Windows format PATH.
15408 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15409 else
15410 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15411 fi
15412 # FIXME: find the short name or the path components, as spaces are
15413 # common. (e.g. "Program Files" -> "PROGRA~1")
15414 ;;
15415 esac
15416
15417 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15418 postinstall_cmds='base_file=`basename \${file}`~
15419 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15420 dldir=$destdir/`dirname \$dlpath`~
15421 test -d \$dldir || mkdir -p \$dldir~
15422 $install_prog $dir/$dlname \$dldir/$dlname'
15423 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15424 dlpath=$dir/\$dldll~
15425 $RM \$dlpath'
15426 shlibpath_overrides_runpath=yes
15427 dynamic_linker='Win32 link.exe'
15428 ;;
15429
15430 *)
15431 # Assume MSVC wrapper
15432 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15433 dynamic_linker='Win32 ld.exe'
15434 ;;
15435 esac
15436 # FIXME: first we should search . and the directory the executable is in
15437 shlibpath_var=PATH
15438 ;;
15439
15440 darwin* | rhapsody*)
15441 dynamic_linker="$host_os dyld"
15442 version_type=darwin
15443 need_lib_prefix=no
15444 need_version=no
15445 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15446 soname_spec='${libname}${release}${major}$shared_ext'
15447 shlibpath_overrides_runpath=yes
15448 shlibpath_var=DYLD_LIBRARY_PATH
15449 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15450
15451 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15452 ;;
15453
15454 dgux*)
15455 version_type=linux # correct to gnu/linux during the next big refactor
15456 need_lib_prefix=no
15457 need_version=no
15458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15459 soname_spec='${libname}${release}${shared_ext}$major'
15460 shlibpath_var=LD_LIBRARY_PATH
15461 ;;
15462
15463 freebsd* | dragonfly*)
15464 # DragonFly does not have aout. When/if they implement a new
15465 # versioning mechanism, adjust this.
15466 if test -x /usr/bin/objformat; then
15467 objformat=`/usr/bin/objformat`
15468 else
15469 case $host_os in
15470 freebsd[23].*) objformat=aout ;;
15471 *) objformat=elf ;;
15472 esac
15473 fi
15474 version_type=freebsd-$objformat
15475 case $version_type in
15476 freebsd-elf*)
15477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15478 need_version=no
15479 need_lib_prefix=no
15480 ;;
15481 freebsd-*)
15482 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15483 need_version=yes
15484 ;;
15485 esac
15486 shlibpath_var=LD_LIBRARY_PATH
15487 case $host_os in
15488 freebsd2.*)
15489 shlibpath_overrides_runpath=yes
15490 ;;
15491 freebsd3.[01]* | freebsdelf3.[01]*)
15492 shlibpath_overrides_runpath=yes
15493 hardcode_into_libs=yes
15494 ;;
15495 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15496 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15497 shlibpath_overrides_runpath=no
15498 hardcode_into_libs=yes
15499 ;;
15500 *) # from 4.6 on, and DragonFly
15501 shlibpath_overrides_runpath=yes
15502 hardcode_into_libs=yes
15503 ;;
15504 esac
15505 ;;
15506
15507 haiku*)
15508 version_type=linux # correct to gnu/linux during the next big refactor
15509 need_lib_prefix=no
15510 need_version=no
15511 dynamic_linker="$host_os runtime_loader"
15512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15513 soname_spec='${libname}${release}${shared_ext}$major'
15514 shlibpath_var=LIBRARY_PATH
15515 shlibpath_overrides_runpath=yes
15516 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15517 hardcode_into_libs=yes
15518 ;;
15519
15520 hpux9* | hpux10* | hpux11*)
15521 # Give a soname corresponding to the major version so that dld.sl refuses to
15522 # link against other versions.
15523 version_type=sunos
15524 need_lib_prefix=no
15525 need_version=no
15526 case $host_cpu in
15527 ia64*)
15528 shrext_cmds='.so'
15529 hardcode_into_libs=yes
15530 dynamic_linker="$host_os dld.so"
15531 shlibpath_var=LD_LIBRARY_PATH
15532 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15534 soname_spec='${libname}${release}${shared_ext}$major'
15535 if test "X$HPUX_IA64_MODE" = X32; then
15536 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15537 else
15538 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15539 fi
15540 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15541 ;;
15542 hppa*64*)
15543 shrext_cmds='.sl'
15544 hardcode_into_libs=yes
15545 dynamic_linker="$host_os dld.sl"
15546 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15547 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15549 soname_spec='${libname}${release}${shared_ext}$major'
15550 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15551 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15552 ;;
15553 *)
15554 shrext_cmds='.sl'
15555 dynamic_linker="$host_os dld.sl"
15556 shlibpath_var=SHLIB_PATH
15557 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15559 soname_spec='${libname}${release}${shared_ext}$major'
15560 ;;
15561 esac
15562 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15563 postinstall_cmds='chmod 555 $lib'
15564 # or fails outright, so override atomically:
15565 install_override_mode=555
15566 ;;
15567
15568 interix[3-9]*)
15569 version_type=linux # correct to gnu/linux during the next big refactor
15570 need_lib_prefix=no
15571 need_version=no
15572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15573 soname_spec='${libname}${release}${shared_ext}$major'
15574 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15575 shlibpath_var=LD_LIBRARY_PATH
15576 shlibpath_overrides_runpath=no
15577 hardcode_into_libs=yes
15578 ;;
15579
15580 irix5* | irix6* | nonstopux*)
15581 case $host_os in
15582 nonstopux*) version_type=nonstopux ;;
15583 *)
15584 if test "$lt_cv_prog_gnu_ld" = yes; then
15585 version_type=linux # correct to gnu/linux during the next big refactor
15586 else
15587 version_type=irix
15588 fi ;;
15589 esac
15590 need_lib_prefix=no
15591 need_version=no
15592 soname_spec='${libname}${release}${shared_ext}$major'
15593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15594 case $host_os in
15595 irix5* | nonstopux*)
15596 libsuff= shlibsuff=
15597 ;;
15598 *)
15599 case $LD in # libtool.m4 will add one of these switches to LD
15600 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15601 libsuff= shlibsuff= libmagic=32-bit;;
15602 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15603 libsuff=32 shlibsuff=N32 libmagic=N32;;
15604 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15605 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15606 *) libsuff= shlibsuff= libmagic=never-match;;
15607 esac
15608 ;;
15609 esac
15610 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15611 shlibpath_overrides_runpath=no
15612 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15613 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15614 hardcode_into_libs=yes
15615 ;;
15616
15617 # No shared lib support for Linux oldld, aout, or coff.
15618 linux*oldld* | linux*aout* | linux*coff*)
15619 dynamic_linker=no
15620 ;;
15621
15622 # This must be glibc/ELF.
15623 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15624 version_type=linux # correct to gnu/linux during the next big refactor
15625 need_lib_prefix=no
15626 need_version=no
15627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15628 soname_spec='${libname}${release}${shared_ext}$major'
15629 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15630 shlibpath_var=LD_LIBRARY_PATH
15631 shlibpath_overrides_runpath=no
15632
15633 # Some binutils ld are patched to set DT_RUNPATH
15634 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15635 $as_echo_n "(cached) " >&6
15636 else
15637 lt_cv_shlibpath_overrides_runpath=no
15638 save_LDFLAGS=$LDFLAGS
15639 save_libdir=$libdir
15640 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15641 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15643 /* end confdefs.h. */
15644
15645 int
15646 main ()
15647 {
15648
15649 ;
15650 return 0;
15651 }
15652 _ACEOF
15653 if ac_fn_cxx_try_link "$LINENO"; then :
15654 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15655 lt_cv_shlibpath_overrides_runpath=yes
15656 fi
15657 fi
15658 rm -f core conftest.err conftest.$ac_objext \
15659 conftest$ac_exeext conftest.$ac_ext
15660 LDFLAGS=$save_LDFLAGS
15661 libdir=$save_libdir
15662
15663 fi
15664
15665 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15666
15667 # This implies no fast_install, which is unacceptable.
15668 # Some rework will be needed to allow for fast_install
15669 # before this can be enabled.
15670 hardcode_into_libs=yes
15671
15672 # Append ld.so.conf contents to the search path
15673 if test -f /etc/ld.so.conf; then
15674 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' ' '`
15675 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15676 fi
15677
15678 # We used to test for /lib/ld.so.1 and disable shared libraries on
15679 # powerpc, because MkLinux only supported shared libraries with the
15680 # GNU dynamic linker. Since this was broken with cross compilers,
15681 # most powerpc-linux boxes support dynamic linking these days and
15682 # people can always --disable-shared, the test was removed, and we
15683 # assume the GNU/Linux dynamic linker is in use.
15684 dynamic_linker='GNU/Linux ld.so'
15685 ;;
15686
15687 netbsdelf*-gnu)
15688 version_type=linux
15689 need_lib_prefix=no
15690 need_version=no
15691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15692 soname_spec='${libname}${release}${shared_ext}$major'
15693 shlibpath_var=LD_LIBRARY_PATH
15694 shlibpath_overrides_runpath=no
15695 hardcode_into_libs=yes
15696 dynamic_linker='NetBSD ld.elf_so'
15697 ;;
15698
15699 netbsd*)
15700 version_type=sunos
15701 need_lib_prefix=no
15702 need_version=no
15703 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15705 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15706 dynamic_linker='NetBSD (a.out) ld.so'
15707 else
15708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15709 soname_spec='${libname}${release}${shared_ext}$major'
15710 dynamic_linker='NetBSD ld.elf_so'
15711 fi
15712 shlibpath_var=LD_LIBRARY_PATH
15713 shlibpath_overrides_runpath=yes
15714 hardcode_into_libs=yes
15715 ;;
15716
15717 newsos6)
15718 version_type=linux # correct to gnu/linux during the next big refactor
15719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15720 shlibpath_var=LD_LIBRARY_PATH
15721 shlibpath_overrides_runpath=yes
15722 ;;
15723
15724 *nto* | *qnx*)
15725 version_type=qnx
15726 need_lib_prefix=no
15727 need_version=no
15728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15729 soname_spec='${libname}${release}${shared_ext}$major'
15730 shlibpath_var=LD_LIBRARY_PATH
15731 shlibpath_overrides_runpath=no
15732 hardcode_into_libs=yes
15733 dynamic_linker='ldqnx.so'
15734 ;;
15735
15736 openbsd*)
15737 version_type=sunos
15738 sys_lib_dlsearch_path_spec="/usr/lib"
15739 need_lib_prefix=no
15740 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15741 case $host_os in
15742 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15743 *) need_version=no ;;
15744 esac
15745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15746 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15747 shlibpath_var=LD_LIBRARY_PATH
15748 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15749 case $host_os in
15750 openbsd2.[89] | openbsd2.[89].*)
15751 shlibpath_overrides_runpath=no
15752 ;;
15753 *)
15754 shlibpath_overrides_runpath=yes
15755 ;;
15756 esac
15757 else
15758 shlibpath_overrides_runpath=yes
15759 fi
15760 ;;
15761
15762 os2*)
15763 libname_spec='$name'
15764 shrext_cmds=".dll"
15765 need_lib_prefix=no
15766 library_names_spec='$libname${shared_ext} $libname.a'
15767 dynamic_linker='OS/2 ld.exe'
15768 shlibpath_var=LIBPATH
15769 ;;
15770
15771 osf3* | osf4* | osf5*)
15772 version_type=osf
15773 need_lib_prefix=no
15774 need_version=no
15775 soname_spec='${libname}${release}${shared_ext}$major'
15776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15777 shlibpath_var=LD_LIBRARY_PATH
15778 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15779 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15780 ;;
15781
15782 rdos*)
15783 dynamic_linker=no
15784 ;;
15785
15786 solaris*)
15787 version_type=linux # correct to gnu/linux during the next big refactor
15788 need_lib_prefix=no
15789 need_version=no
15790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15791 soname_spec='${libname}${release}${shared_ext}$major'
15792 shlibpath_var=LD_LIBRARY_PATH
15793 shlibpath_overrides_runpath=yes
15794 hardcode_into_libs=yes
15795 # ldd complains unless libraries are executable
15796 postinstall_cmds='chmod +x $lib'
15797 ;;
15798
15799 sunos4*)
15800 version_type=sunos
15801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15802 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15803 shlibpath_var=LD_LIBRARY_PATH
15804 shlibpath_overrides_runpath=yes
15805 if test "$with_gnu_ld" = yes; then
15806 need_lib_prefix=no
15807 fi
15808 need_version=yes
15809 ;;
15810
15811 sysv4 | sysv4.3*)
15812 version_type=linux # correct to gnu/linux during the next big refactor
15813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15814 soname_spec='${libname}${release}${shared_ext}$major'
15815 shlibpath_var=LD_LIBRARY_PATH
15816 case $host_vendor in
15817 sni)
15818 shlibpath_overrides_runpath=no
15819 need_lib_prefix=no
15820 runpath_var=LD_RUN_PATH
15821 ;;
15822 siemens)
15823 need_lib_prefix=no
15824 ;;
15825 motorola)
15826 need_lib_prefix=no
15827 need_version=no
15828 shlibpath_overrides_runpath=no
15829 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15830 ;;
15831 esac
15832 ;;
15833
15834 sysv4*MP*)
15835 if test -d /usr/nec ;then
15836 version_type=linux # correct to gnu/linux during the next big refactor
15837 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15838 soname_spec='$libname${shared_ext}.$major'
15839 shlibpath_var=LD_LIBRARY_PATH
15840 fi
15841 ;;
15842
15843 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15844 version_type=freebsd-elf
15845 need_lib_prefix=no
15846 need_version=no
15847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15848 soname_spec='${libname}${release}${shared_ext}$major'
15849 shlibpath_var=LD_LIBRARY_PATH
15850 shlibpath_overrides_runpath=yes
15851 hardcode_into_libs=yes
15852 if test "$with_gnu_ld" = yes; then
15853 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15854 else
15855 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15856 case $host_os in
15857 sco3.2v5*)
15858 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15859 ;;
15860 esac
15861 fi
15862 sys_lib_dlsearch_path_spec='/usr/lib'
15863 ;;
15864
15865 tpf*)
15866 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15867 version_type=linux # correct to gnu/linux during the next big refactor
15868 need_lib_prefix=no
15869 need_version=no
15870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15871 shlibpath_var=LD_LIBRARY_PATH
15872 shlibpath_overrides_runpath=no
15873 hardcode_into_libs=yes
15874 ;;
15875
15876 uts4*)
15877 version_type=linux # correct to gnu/linux during the next big refactor
15878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15879 soname_spec='${libname}${release}${shared_ext}$major'
15880 shlibpath_var=LD_LIBRARY_PATH
15881 ;;
15882
15883 *)
15884 dynamic_linker=no
15885 ;;
15886 esac
15887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15888 $as_echo "$dynamic_linker" >&6; }
15889 test "$dynamic_linker" = no && can_build_shared=no
15890
15891 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15892 if test "$GCC" = yes; then
15893 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15894 fi
15895
15896 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15897 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15898 fi
15899 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15900 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15901 fi
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15941 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15942 hardcode_action_CXX=
15943 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15944 test -n "$runpath_var_CXX" ||
15945 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15946
15947 # We can hardcode non-existent directories.
15948 if test "$hardcode_direct_CXX" != no &&
15949 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15950 # have to relink, otherwise we might link with an installed library
15951 # when we should be linking with a yet-to-be-installed one
15952 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15953 test "$hardcode_minus_L_CXX" != no; then
15954 # Linking always hardcodes the temporary library directory.
15955 hardcode_action_CXX=relink
15956 else
15957 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15958 hardcode_action_CXX=immediate
15959 fi
15960 else
15961 # We cannot hardcode anything, or else we can only hardcode existing
15962 # directories.
15963 hardcode_action_CXX=unsupported
15964 fi
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15966 $as_echo "$hardcode_action_CXX" >&6; }
15967
15968 if test "$hardcode_action_CXX" = relink ||
15969 test "$inherit_rpath_CXX" = yes; then
15970 # Fast installation is not supported
15971 enable_fast_install=no
15972 elif test "$shlibpath_overrides_runpath" = yes ||
15973 test "$enable_shared" = no; then
15974 # Fast installation is not necessary
15975 enable_fast_install=needless
15976 fi
15977
15978
15979
15980
15981
15982
15983
15984 fi # test -n "$compiler"
15985
15986 CC=$lt_save_CC
15987 CFLAGS=$lt_save_CFLAGS
15988 LDCXX=$LD
15989 LD=$lt_save_LD
15990 GCC=$lt_save_GCC
15991 with_gnu_ld=$lt_save_with_gnu_ld
15992 lt_cv_path_LDCXX=$lt_cv_path_LD
15993 lt_cv_path_LD=$lt_save_path_LD
15994 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15995 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15996 fi # test "$_lt_caught_CXX_error" != yes
15997
15998 ac_ext=c
15999 ac_cpp='$CPP $CPPFLAGS'
16000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018 ac_config_commands="$ac_config_commands libtool"
16019
16020
16021
16022
16023 # Only expand once:
16024
16025
16026
16027
16028
16029 # Checks for libraries.
16030 hesiod_save_LIBS="$LIBS"
16031 LIBS=
16032
16033 # Check whether --with-libidn was given.
16034 if test "${with_libidn+set}" = set; then :
16035 withval=$with_libidn; with_libidn="$withval"
16036 else
16037 with_libidn="check"
16038 fi
16039
16040 if test x"$with_libidn" != xno; then :
16041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing stringprep_check_version" >&5
16042 $as_echo_n "checking for library containing stringprep_check_version... " >&6; }
16043 if ${ac_cv_search_stringprep_check_version+:} false; then :
16044 $as_echo_n "(cached) " >&6
16045 else
16046 ac_func_search_save_LIBS=$LIBS
16047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16048 /* end confdefs.h. */
16049
16050 /* Override any GCC internal prototype to avoid an error.
16051 Use char because int might match the return type of a GCC
16052 builtin and then its argument prototype would still apply. */
16053 #ifdef __cplusplus
16054 extern "C"
16055 #endif
16056 char stringprep_check_version ();
16057 int
16058 main ()
16059 {
16060 return stringprep_check_version ();
16061 ;
16062 return 0;
16063 }
16064 _ACEOF
16065 for ac_lib in '' idn; do
16066 if test -z "$ac_lib"; then
16067 ac_res="none required"
16068 else
16069 ac_res=-l$ac_lib
16070 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16071 fi
16072 if ac_fn_c_try_link "$LINENO"; then :
16073 ac_cv_search_stringprep_check_version=$ac_res
16074 fi
16075 rm -f core conftest.err conftest.$ac_objext \
16076 conftest$ac_exeext
16077 if ${ac_cv_search_stringprep_check_version+:} false; then :
16078 break
16079 fi
16080 done
16081 if ${ac_cv_search_stringprep_check_version+:} false; then :
16082
16083 else
16084 ac_cv_search_stringprep_check_version=no
16085 fi
16086 rm conftest.$ac_ext
16087 LIBS=$ac_func_search_save_LIBS
16088 fi
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_stringprep_check_version" >&5
16090 $as_echo "$ac_cv_search_stringprep_check_version" >&6; }
16091 ac_res=$ac_cv_search_stringprep_check_version
16092 if test "$ac_res" != no; then :
16093 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16094
16095 $as_echo "#define HAVE_LIBIDN 1" >>confdefs.h
16096
16097 else
16098 if test x"$with_idn" = xcheck; then :
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to find libidn." >&5
16100 $as_echo "$as_me: WARNING: Unable to find libidn." >&2;}
16101 else
16102 as_fn_error $? "--with-libidn was given but libidn was not found." "$LINENO" 5
16103 fi
16104 fi
16105
16106 fi
16107
16108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_mkquery in -lresolv" >&5
16109 $as_echo_n "checking for res_mkquery in -lresolv... " >&6; }
16110 if ${ac_cv_lib_resolv_res_mkquery+:} false; then :
16111 $as_echo_n "(cached) " >&6
16112 else
16113 ac_check_lib_save_LIBS=$LIBS
16114 LIBS="-lresolv $LIBS"
16115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16116 /* end confdefs.h. */
16117
16118 /* Override any GCC internal prototype to avoid an error.
16119 Use char because int might match the return type of a GCC
16120 builtin and then its argument prototype would still apply. */
16121 #ifdef __cplusplus
16122 extern "C"
16123 #endif
16124 char res_mkquery ();
16125 int
16126 main ()
16127 {
16128 return res_mkquery ();
16129 ;
16130 return 0;
16131 }
16132 _ACEOF
16133 if ac_fn_c_try_link "$LINENO"; then :
16134 ac_cv_lib_resolv_res_mkquery=yes
16135 else
16136 ac_cv_lib_resolv_res_mkquery=no
16137 fi
16138 rm -f core conftest.err conftest.$ac_objext \
16139 conftest$ac_exeext conftest.$ac_ext
16140 LIBS=$ac_check_lib_save_LIBS
16141 fi
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_mkquery" >&5
16143 $as_echo "$ac_cv_lib_resolv_res_mkquery" >&6; }
16144 if test "x$ac_cv_lib_resolv_res_mkquery" = xyes; then :
16145 cat >>confdefs.h <<_ACEOF
16146 #define HAVE_LIBRESOLV 1
16147 _ACEOF
16148
16149 LIBS="-lresolv $LIBS"
16150
16151 else
16152
16153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if res_mkquery is provided by libresolv with mangled symbols" >&5
16154 $as_echo_n "checking if res_mkquery is provided by libresolv with mangled symbols... " >&6; }
16155 save_LIBS="$LIBS"
16156 LIBS="-lresolv $LIBS"
16157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16158 /* end confdefs.h. */
16159 #include <resolv.h>
16160 int
16161 main ()
16162 {
16163 res_mkquery(0,NULL,0,0,NULL,0,NULL,NULL,0);
16164 ;
16165 return 0;
16166 }
16167 _ACEOF
16168 if ac_fn_c_try_link "$LINENO"; then :
16169
16170
16171 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
16172
16173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16174 $as_echo "yes" >&6; }
16175 else
16176
16177 LIBS="$save_LIBS"
16178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16179 $as_echo "no" >&6; }
16180 fi
16181 rm -f core conftest.err conftest.$ac_objext \
16182 conftest$ac_exeext conftest.$ac_ext
16183 fi
16184
16185
16186 SUPPORTING_LIBS=$LIBS
16187
16188 LIBS=$hesiod_save_LIBS
16189
16190 # Checks for header files.
16191 for ac_header in sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h
16192 do :
16193 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16194 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H
16195 # include <sys/types.h>
16196 #endif
16197 #ifdef HAVE_NETINET_IN_H
16198 # include <netinet/in.h> /* inet_ functions / structs */
16199 #endif
16200 #ifdef HAVE_ARPA_NAMESER_H
16201 # include <arpa/nameser.h> /* DNS HEADER struct */
16202 #endif
16203 #ifdef HAVE_NETDB_H
16204 # include <netdb.h>
16205 #endif
16206 "
16207 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16208 cat >>confdefs.h <<_ACEOF
16209 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16210 _ACEOF
16211
16212 fi
16213
16214 done
16215
16216
16217 for ac_header in netdb.h netinet/in.h stdlib.h string.h sys/socket.h
16218 do :
16219 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16220 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16221 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16222 cat >>confdefs.h <<_ACEOF
16223 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16224 _ACEOF
16225
16226 fi
16227
16228 done
16229
16230
16231 # Checks for typedefs, structures, and compiler characteristics.
16232 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
16233 if test "x$ac_cv_type_ssize_t" = xyes; then :
16234
16235 else
16236
16237 cat >>confdefs.h <<_ACEOF
16238 #define ssize_t int
16239 _ACEOF
16240
16241 fi
16242
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
16244 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
16245 if ${ac_cv_type_uid_t+:} false; then :
16246 $as_echo_n "(cached) " >&6
16247 else
16248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16249 /* end confdefs.h. */
16250 #include <sys/types.h>
16251
16252 _ACEOF
16253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16254 $EGREP "uid_t" >/dev/null 2>&1; then :
16255 ac_cv_type_uid_t=yes
16256 else
16257 ac_cv_type_uid_t=no
16258 fi
16259 rm -f conftest*
16260
16261 fi
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
16263 $as_echo "$ac_cv_type_uid_t" >&6; }
16264 if test $ac_cv_type_uid_t = no; then
16265
16266 $as_echo "#define uid_t int" >>confdefs.h
16267
16268
16269 $as_echo "#define gid_t int" >>confdefs.h
16270
16271 fi
16272
16273
16274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16275 /* end confdefs.h. */
16276 #include <pwd.h>
16277
16278 _ACEOF
16279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16280 $EGREP "pw_quota" >/dev/null 2>&1; then :
16281
16282 $as_echo "#define HAVE_PW_QUOTA 1" >>confdefs.h
16283
16284 fi
16285 rm -f conftest*
16286
16287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16288 /* end confdefs.h. */
16289 #include <pwd.h>
16290
16291 _ACEOF
16292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16293 $EGREP "pw_comment" >/dev/null 2>&1; then :
16294
16295 $as_echo "#define HAVE_PW_COMMENT 1" >>confdefs.h
16296
16297 fi
16298 rm -f conftest*
16299
16300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16301 /* end confdefs.h. */
16302 #include <pwd.h>
16303
16304 _ACEOF
16305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16306 $EGREP "pw_class" >/dev/null 2>&1; then :
16307
16308 $as_echo "#define HAVE_PW_CLASS 1" >>confdefs.h
16309
16310 fi
16311 rm -f conftest*
16312
16313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16314 /* end confdefs.h. */
16315 #include <pwd.h>
16316
16317 _ACEOF
16318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16319 $EGREP "pw_change" >/dev/null 2>&1; then :
16320
16321 $as_echo "#define HAVE_PW_CHANGE 1" >>confdefs.h
16322
16323 fi
16324 rm -f conftest*
16325
16326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16327 /* end confdefs.h. */
16328 #include <pwd.h>
16329
16330 _ACEOF
16331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16332 $EGREP "pw_expire" >/dev/null 2>&1; then :
16333
16334 $as_echo "#define HAVE_PW_EXPIRE 1" >>confdefs.h
16335
16336 fi
16337 rm -f conftest*
16338
16339
16340 # Checks for library functions.
16341 for ac_header in stdlib.h
16342 do :
16343 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
16344 if test "x$ac_cv_header_stdlib_h" = xyes; then :
16345 cat >>confdefs.h <<_ACEOF
16346 #define HAVE_STDLIB_H 1
16347 _ACEOF
16348
16349 fi
16350
16351 done
16352
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
16354 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
16355 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
16356 $as_echo_n "(cached) " >&6
16357 else
16358 if test "$cross_compiling" = yes; then :
16359 ac_cv_func_malloc_0_nonnull=no
16360 else
16361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16362 /* end confdefs.h. */
16363 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
16364 # include <stdlib.h>
16365 #else
16366 char *malloc ();
16367 #endif
16368
16369 int
16370 main ()
16371 {
16372 return ! malloc (0);
16373 ;
16374 return 0;
16375 }
16376 _ACEOF
16377 if ac_fn_c_try_run "$LINENO"; then :
16378 ac_cv_func_malloc_0_nonnull=yes
16379 else
16380 ac_cv_func_malloc_0_nonnull=no
16381 fi
16382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16383 conftest.$ac_objext conftest.beam conftest.$ac_ext
16384 fi
16385
16386 fi
16387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
16388 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
16389 if test $ac_cv_func_malloc_0_nonnull = yes; then :
16390
16391 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
16392
16393 else
16394 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
16395
16396 case " $LIBOBJS " in
16397 *" malloc.$ac_objext "* ) ;;
16398 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
16399 ;;
16400 esac
16401
16402
16403 $as_echo "#define malloc rpl_malloc" >>confdefs.h
16404
16405 fi
16406
16407
16408 for ac_header in stdlib.h
16409 do :
16410 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
16411 if test "x$ac_cv_header_stdlib_h" = xyes; then :
16412 cat >>confdefs.h <<_ACEOF
16413 #define HAVE_STDLIB_H 1
16414 _ACEOF
16415
16416 fi
16417
16418 done
16419
16420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
16421 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
16422 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
16423 $as_echo_n "(cached) " >&6
16424 else
16425 if test "$cross_compiling" = yes; then :
16426 ac_cv_func_realloc_0_nonnull=no
16427 else
16428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16429 /* end confdefs.h. */
16430 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
16431 # include <stdlib.h>
16432 #else
16433 char *realloc ();
16434 #endif
16435
16436 int
16437 main ()
16438 {
16439 return ! realloc (0, 0);
16440 ;
16441 return 0;
16442 }
16443 _ACEOF
16444 if ac_fn_c_try_run "$LINENO"; then :
16445 ac_cv_func_realloc_0_nonnull=yes
16446 else
16447 ac_cv_func_realloc_0_nonnull=no
16448 fi
16449 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16450 conftest.$ac_objext conftest.beam conftest.$ac_ext
16451 fi
16452
16453 fi
16454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
16455 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
16456 if test $ac_cv_func_realloc_0_nonnull = yes; then :
16457
16458 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
16459
16460 else
16461 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
16462
16463 case " $LIBOBJS " in
16464 *" realloc.$ac_objext "* ) ;;
16465 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
16466 ;;
16467 esac
16468
16469
16470 $as_echo "#define realloc rpl_realloc" >>confdefs.h
16471
16472 fi
16473
16474
16475 for ac_func in strchr strdup
16476 do :
16477 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16478 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16479 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16480 cat >>confdefs.h <<_ACEOF
16481 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16482 _ACEOF
16483
16484 fi
16485 done
16486
16487
16488 ac_config_files="$ac_config_files Makefile src/Makefile src/lib/Makefile src/hesinfo/Makefile man/Makefile src/hesiod.pc"
16489
16490 cat >confcache <<\_ACEOF
16491 # This file is a shell script that caches the results of configure
16492 # tests run on this system so they can be shared between configure
16493 # scripts and configure runs, see configure's option --config-cache.
16494 # It is not useful on other systems. If it contains results you don't
16495 # want to keep, you may remove or edit it.
16496 #
16497 # config.status only pays attention to the cache file if you give it
16498 # the --recheck option to rerun configure.
16499 #
16500 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16501 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16502 # following values.
16503
16504 _ACEOF
16505
16506 # The following way of writing the cache mishandles newlines in values,
16507 # but we know of no workaround that is simple, portable, and efficient.
16508 # So, we kill variables containing newlines.
16509 # Ultrix sh set writes to stderr and can't be redirected directly,
16510 # and sets the high bit in the cache file unless we assign to the vars.
16511 (
16512 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16513 eval ac_val=\$$ac_var
16514 case $ac_val in #(
16515 *${as_nl}*)
16516 case $ac_var in #(
16517 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16518 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16519 esac
16520 case $ac_var in #(
16521 _ | IFS | as_nl) ;; #(
16522 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16523 *) { eval $ac_var=; unset $ac_var;} ;;
16524 esac ;;
16525 esac
16526 done
16527
16528 (set) 2>&1 |
16529 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16530 *${as_nl}ac_space=\ *)
16531 # `set' does not quote correctly, so add quotes: double-quote
16532 # substitution turns \\\\ into \\, and sed turns \\ into \.
16533 sed -n \
16534 "s/'/'\\\\''/g;
16535 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16536 ;; #(
16537 *)
16538 # `set' quotes correctly as required by POSIX, so do not add quotes.
16539 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16540 ;;
16541 esac |
16542 sort
16543 ) |
16544 sed '
16545 /^ac_cv_env_/b end
16546 t clear
16547 :clear
16548 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16549 t end
16550 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16551 :end' >>confcache
16552 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16553 if test -w "$cache_file"; then
16554 if test "x$cache_file" != "x/dev/null"; then
16555 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16556 $as_echo "$as_me: updating cache $cache_file" >&6;}
16557 if test ! -f "$cache_file" || test -h "$cache_file"; then
16558 cat confcache >"$cache_file"
16559 else
16560 case $cache_file in #(
16561 */* | ?:*)
16562 mv -f confcache "$cache_file"$$ &&
16563 mv -f "$cache_file"$$ "$cache_file" ;; #(
16564 *)
16565 mv -f confcache "$cache_file" ;;
16566 esac
16567 fi
16568 fi
16569 else
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16571 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16572 fi
16573 fi
16574 rm -f confcache
16575
16576 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16577 # Let make expand exec_prefix.
16578 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16579
16580 DEFS=-DHAVE_CONFIG_H
16581
16582 ac_libobjs=
16583 ac_ltlibobjs=
16584 U=
16585 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16586 # 1. Remove the extension, and $U if already installed.
16587 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16588 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16589 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16590 # will be set to the directory where LIBOBJS objects are built.
16591 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16592 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16593 done
16594 LIBOBJS=$ac_libobjs
16595
16596 LTLIBOBJS=$ac_ltlibobjs
16597
16598
16599 if test -n "$EXEEXT"; then
16600 am__EXEEXT_TRUE=
16601 am__EXEEXT_FALSE='#'
16602 else
16603 am__EXEEXT_TRUE='#'
16604 am__EXEEXT_FALSE=
16605 fi
16606
16607 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16608 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16609 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16610 fi
16611 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16612 as_fn_error $? "conditional \"AMDEP\" was never defined.
16613 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16614 fi
16615 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16616 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16617 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16618 fi
16619 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16620 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16621 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16622 fi
16623 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16624 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16625 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16626 fi
16627
16628 : "${CONFIG_STATUS=./config.status}"
16629 ac_write_fail=0
16630 ac_clean_files_save=$ac_clean_files
16631 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16632 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16633 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16634 as_write_fail=0
16635 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16636 #! $SHELL
16637 # Generated by $as_me.
16638 # Run this file to recreate the current configuration.
16639 # Compiler output produced by configure, useful for debugging
16640 # configure, is in config.log if it exists.
16641
16642 debug=false
16643 ac_cs_recheck=false
16644 ac_cs_silent=false
16645
16646 SHELL=\${CONFIG_SHELL-$SHELL}
16647 export SHELL
16648 _ASEOF
16649 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16650 ## -------------------- ##
16651 ## M4sh Initialization. ##
16652 ## -------------------- ##
16653
16654 # Be more Bourne compatible
16655 DUALCASE=1; export DUALCASE # for MKS sh
16656 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16657 emulate sh
16658 NULLCMD=:
16659 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16660 # is contrary to our usage. Disable this feature.
16661 alias -g '${1+"$@"}'='"$@"'
16662 setopt NO_GLOB_SUBST
16663 else
16664 case `(set -o) 2>/dev/null` in #(
16665 *posix*) :
16666 set -o posix ;; #(
16667 *) :
16668 ;;
16669 esac
16670 fi
16671
16672
16673 as_nl='
16674 '
16675 export as_nl
16676 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16677 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16678 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16679 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16680 # Prefer a ksh shell builtin over an external printf program on Solaris,
16681 # but without wasting forks for bash or zsh.
16682 if test -z "$BASH_VERSION$ZSH_VERSION" \
16683 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16684 as_echo='print -r --'
16685 as_echo_n='print -rn --'
16686 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16687 as_echo='printf %s\n'
16688 as_echo_n='printf %s'
16689 else
16690 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16691 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16692 as_echo_n='/usr/ucb/echo -n'
16693 else
16694 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16695 as_echo_n_body='eval
16696 arg=$1;
16697 case $arg in #(
16698 *"$as_nl"*)
16699 expr "X$arg" : "X\\(.*\\)$as_nl";
16700 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16701 esac;
16702 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16703 '
16704 export as_echo_n_body
16705 as_echo_n='sh -c $as_echo_n_body as_echo'
16706 fi
16707 export as_echo_body
16708 as_echo='sh -c $as_echo_body as_echo'
16709 fi
16710
16711 # The user is always right.
16712 if test "${PATH_SEPARATOR+set}" != set; then
16713 PATH_SEPARATOR=:
16714 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16715 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16716 PATH_SEPARATOR=';'
16717 }
16718 fi
16719
16720
16721 # IFS
16722 # We need space, tab and new line, in precisely that order. Quoting is
16723 # there to prevent editors from complaining about space-tab.
16724 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16725 # splitting by setting IFS to empty value.)
16726 IFS=" "" $as_nl"
16727
16728 # Find who we are. Look in the path if we contain no directory separator.
16729 as_myself=
16730 case $0 in #((
16731 *[\\/]* ) as_myself=$0 ;;
16732 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16733 for as_dir in $PATH
16734 do
16735 IFS=$as_save_IFS
16736 test -z "$as_dir" && as_dir=.
16737 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16738 done
16739 IFS=$as_save_IFS
16740
16741 ;;
16742 esac
16743 # We did not find ourselves, most probably we were run as `sh COMMAND'
16744 # in which case we are not to be found in the path.
16745 if test "x$as_myself" = x; then
16746 as_myself=$0
16747 fi
16748 if test ! -f "$as_myself"; then
16749 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16750 exit 1
16751 fi
16752
16753 # Unset variables that we do not need and which cause bugs (e.g. in
16754 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16755 # suppresses any "Segmentation fault" message there. '((' could
16756 # trigger a bug in pdksh 5.2.14.
16757 for as_var in BASH_ENV ENV MAIL MAILPATH
16758 do eval test x\${$as_var+set} = xset \
16759 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16760 done
16761 PS1='$ '
16762 PS2='> '
16763 PS4='+ '
16764
16765 # NLS nuisances.
16766 LC_ALL=C
16767 export LC_ALL
16768 LANGUAGE=C
16769 export LANGUAGE
16770
16771 # CDPATH.
16772 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16773
16774
16775 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16776 # ----------------------------------------
16777 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16778 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16779 # script with STATUS, using 1 if that was 0.
16780 as_fn_error ()
16781 {
16782 as_status=$1; test $as_status -eq 0 && as_status=1
16783 if test "$4"; then
16784 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16785 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16786 fi
16787 $as_echo "$as_me: error: $2" >&2
16788 as_fn_exit $as_status
16789 } # as_fn_error
16790
16791
16792 # as_fn_set_status STATUS
16793 # -----------------------
16794 # Set $? to STATUS, without forking.
16795 as_fn_set_status ()
16796 {
16797 return $1
16798 } # as_fn_set_status
16799
16800 # as_fn_exit STATUS
16801 # -----------------
16802 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16803 as_fn_exit ()
16804 {
16805 set +e
16806 as_fn_set_status $1
16807 exit $1
16808 } # as_fn_exit
16809
16810 # as_fn_unset VAR
16811 # ---------------
16812 # Portably unset VAR.
16813 as_fn_unset ()
16814 {
16815 { eval $1=; unset $1;}
16816 }
16817 as_unset=as_fn_unset
16818 # as_fn_append VAR VALUE
16819 # ----------------------
16820 # Append the text in VALUE to the end of the definition contained in VAR. Take
16821 # advantage of any shell optimizations that allow amortized linear growth over
16822 # repeated appends, instead of the typical quadratic growth present in naive
16823 # implementations.
16824 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16825 eval 'as_fn_append ()
16826 {
16827 eval $1+=\$2
16828 }'
16829 else
16830 as_fn_append ()
16831 {
16832 eval $1=\$$1\$2
16833 }
16834 fi # as_fn_append
16835
16836 # as_fn_arith ARG...
16837 # ------------------
16838 # Perform arithmetic evaluation on the ARGs, and store the result in the
16839 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16840 # must be portable across $(()) and expr.
16841 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16842 eval 'as_fn_arith ()
16843 {
16844 as_val=$(( $* ))
16845 }'
16846 else
16847 as_fn_arith ()
16848 {
16849 as_val=`expr "$@" || test $? -eq 1`
16850 }
16851 fi # as_fn_arith
16852
16853
16854 if expr a : '\(a\)' >/dev/null 2>&1 &&
16855 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16856 as_expr=expr
16857 else
16858 as_expr=false
16859 fi
16860
16861 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16862 as_basename=basename
16863 else
16864 as_basename=false
16865 fi
16866
16867 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16868 as_dirname=dirname
16869 else
16870 as_dirname=false
16871 fi
16872
16873 as_me=`$as_basename -- "$0" ||
16874 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16875 X"$0" : 'X\(//\)$' \| \
16876 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16877 $as_echo X/"$0" |
16878 sed '/^.*\/\([^/][^/]*\)\/*$/{
16879 s//\1/
16880 q
16881 }
16882 /^X\/\(\/\/\)$/{
16883 s//\1/
16884 q
16885 }
16886 /^X\/\(\/\).*/{
16887 s//\1/
16888 q
16889 }
16890 s/.*/./; q'`
16891
16892 # Avoid depending upon Character Ranges.
16893 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16894 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16895 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16896 as_cr_digits='0123456789'
16897 as_cr_alnum=$as_cr_Letters$as_cr_digits
16898
16899 ECHO_C= ECHO_N= ECHO_T=
16900 case `echo -n x` in #(((((
16901 -n*)
16902 case `echo 'xy\c'` in
16903 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16904 xy) ECHO_C='\c';;
16905 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16906 ECHO_T=' ';;
16907 esac;;
16908 *)
16909 ECHO_N='-n';;
16910 esac
16911
16912 rm -f conf$$ conf$$.exe conf$$.file
16913 if test -d conf$$.dir; then
16914 rm -f conf$$.dir/conf$$.file
16915 else
16916 rm -f conf$$.dir
16917 mkdir conf$$.dir 2>/dev/null
16918 fi
16919 if (echo >conf$$.file) 2>/dev/null; then
16920 if ln -s conf$$.file conf$$ 2>/dev/null; then
16921 as_ln_s='ln -s'
16922 # ... but there are two gotchas:
16923 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16924 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16925 # In both cases, we have to default to `cp -pR'.
16926 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16927 as_ln_s='cp -pR'
16928 elif ln conf$$.file conf$$ 2>/dev/null; then
16929 as_ln_s=ln
16930 else
16931 as_ln_s='cp -pR'
16932 fi
16933 else
16934 as_ln_s='cp -pR'
16935 fi
16936 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16937 rmdir conf$$.dir 2>/dev/null
16938
16939
16940 # as_fn_mkdir_p
16941 # -------------
16942 # Create "$as_dir" as a directory, including parents if necessary.
16943 as_fn_mkdir_p ()
16944 {
16945
16946 case $as_dir in #(
16947 -*) as_dir=./$as_dir;;
16948 esac
16949 test -d "$as_dir" || eval $as_mkdir_p || {
16950 as_dirs=
16951 while :; do
16952 case $as_dir in #(
16953 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16954 *) as_qdir=$as_dir;;
16955 esac
16956 as_dirs="'$as_qdir' $as_dirs"
16957 as_dir=`$as_dirname -- "$as_dir" ||
16958 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16959 X"$as_dir" : 'X\(//\)[^/]' \| \
16960 X"$as_dir" : 'X\(//\)$' \| \
16961 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16962 $as_echo X"$as_dir" |
16963 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16964 s//\1/
16965 q
16966 }
16967 /^X\(\/\/\)[^/].*/{
16968 s//\1/
16969 q
16970 }
16971 /^X\(\/\/\)$/{
16972 s//\1/
16973 q
16974 }
16975 /^X\(\/\).*/{
16976 s//\1/
16977 q
16978 }
16979 s/.*/./; q'`
16980 test -d "$as_dir" && break
16981 done
16982 test -z "$as_dirs" || eval "mkdir $as_dirs"
16983 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16984
16985
16986 } # as_fn_mkdir_p
16987 if mkdir -p . 2>/dev/null; then
16988 as_mkdir_p='mkdir -p "$as_dir"'
16989 else
16990 test -d ./-p && rmdir ./-p
16991 as_mkdir_p=false
16992 fi
16993
16994
16995 # as_fn_executable_p FILE
16996 # -----------------------
16997 # Test if FILE is an executable regular file.
16998 as_fn_executable_p ()
16999 {
17000 test -f "$1" && test -x "$1"
17001 } # as_fn_executable_p
17002 as_test_x='test -x'
17003 as_executable_p=as_fn_executable_p
17004
17005 # Sed expression to map a string onto a valid CPP name.
17006 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17007
17008 # Sed expression to map a string onto a valid variable name.
17009 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17010
17011
17012 exec 6>&1
17013 ## ----------------------------------- ##
17014 ## Main body of $CONFIG_STATUS script. ##
17015 ## ----------------------------------- ##
17016 _ASEOF
17017 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17018
17019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17020 # Save the log message, to keep $0 and so on meaningful, and to
17021 # report actual input values of CONFIG_FILES etc. instead of their
17022 # values after options handling.
17023 ac_log="
17024 This file was extended by hesiod $as_me 3.2.1, which was
17025 generated by GNU Autoconf 2.69. Invocation command line was
17026
17027 CONFIG_FILES = $CONFIG_FILES
17028 CONFIG_HEADERS = $CONFIG_HEADERS
17029 CONFIG_LINKS = $CONFIG_LINKS
17030 CONFIG_COMMANDS = $CONFIG_COMMANDS
17031 $ $0 $@
17032
17033 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17034 "
17035
17036 _ACEOF
17037
17038 case $ac_config_files in *"
17039 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17040 esac
17041
17042 case $ac_config_headers in *"
17043 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17044 esac
17045
17046
17047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17048 # Files that config.status was made for.
17049 config_files="$ac_config_files"
17050 config_headers="$ac_config_headers"
17051 config_commands="$ac_config_commands"
17052
17053 _ACEOF
17054
17055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17056 ac_cs_usage="\
17057 \`$as_me' instantiates files and other configuration actions
17058 from templates according to the current configuration. Unless the files
17059 and actions are specified as TAGs, all are instantiated by default.
17060
17061 Usage: $0 [OPTION]... [TAG]...
17062
17063 -h, --help print this help, then exit
17064 -V, --version print version number and configuration settings, then exit
17065 --config print configuration, then exit
17066 -q, --quiet, --silent
17067 do not print progress messages
17068 -d, --debug don't remove temporary files
17069 --recheck update $as_me by reconfiguring in the same conditions
17070 --file=FILE[:TEMPLATE]
17071 instantiate the configuration file FILE
17072 --header=FILE[:TEMPLATE]
17073 instantiate the configuration header FILE
17074
17075 Configuration files:
17076 $config_files
17077
17078 Configuration headers:
17079 $config_headers
17080
17081 Configuration commands:
17082 $config_commands
17083
17084 Report bugs to <[email protected]>."
17085
17086 _ACEOF
17087 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17088 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17089 ac_cs_version="\\
17090 hesiod config.status 3.2.1
17091 configured by $0, generated by GNU Autoconf 2.69,
17092 with options \\"\$ac_cs_config\\"
17093
17094 Copyright (C) 2012 Free Software Foundation, Inc.
17095 This config.status script is free software; the Free Software Foundation
17096 gives unlimited permission to copy, distribute and modify it."
17097
17098 ac_pwd='$ac_pwd'
17099 srcdir='$srcdir'
17100 INSTALL='$INSTALL'
17101 MKDIR_P='$MKDIR_P'
17102 AWK='$AWK'
17103 test -n "\$AWK" || AWK=awk
17104 _ACEOF
17105
17106 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17107 # The default lists apply if the user does not specify any file.
17108 ac_need_defaults=:
17109 while test $# != 0
17110 do
17111 case $1 in
17112 --*=?*)
17113 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17114 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17115 ac_shift=:
17116 ;;
17117 --*=)
17118 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17119 ac_optarg=
17120 ac_shift=:
17121 ;;
17122 *)
17123 ac_option=$1
17124 ac_optarg=$2
17125 ac_shift=shift
17126 ;;
17127 esac
17128
17129 case $ac_option in
17130 # Handling of the options.
17131 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17132 ac_cs_recheck=: ;;
17133 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17134 $as_echo "$ac_cs_version"; exit ;;
17135 --config | --confi | --conf | --con | --co | --c )
17136 $as_echo "$ac_cs_config"; exit ;;
17137 --debug | --debu | --deb | --de | --d | -d )
17138 debug=: ;;
17139 --file | --fil | --fi | --f )
17140 $ac_shift
17141 case $ac_optarg in
17142 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17143 '') as_fn_error $? "missing file argument" ;;
17144 esac
17145 as_fn_append CONFIG_FILES " '$ac_optarg'"
17146 ac_need_defaults=false;;
17147 --header | --heade | --head | --hea )
17148 $ac_shift
17149 case $ac_optarg in
17150 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17151 esac
17152 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17153 ac_need_defaults=false;;
17154 --he | --h)
17155 # Conflict between --help and --header
17156 as_fn_error $? "ambiguous option: \`$1'
17157 Try \`$0 --help' for more information.";;
17158 --help | --hel | -h )
17159 $as_echo "$ac_cs_usage"; exit ;;
17160 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17161 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17162 ac_cs_silent=: ;;
17163
17164 # This is an error.
17165 -*) as_fn_error $? "unrecognized option: \`$1'
17166 Try \`$0 --help' for more information." ;;
17167
17168 *) as_fn_append ac_config_targets " $1"
17169 ac_need_defaults=false ;;
17170
17171 esac
17172 shift
17173 done
17174
17175 ac_configure_extra_args=
17176
17177 if $ac_cs_silent; then
17178 exec 6>/dev/null
17179 ac_configure_extra_args="$ac_configure_extra_args --silent"
17180 fi
17181
17182 _ACEOF
17183 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17184 if \$ac_cs_recheck; then
17185 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17186 shift
17187 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17188 CONFIG_SHELL='$SHELL'
17189 export CONFIG_SHELL
17190 exec "\$@"
17191 fi
17192
17193 _ACEOF
17194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17195 exec 5>>config.log
17196 {
17197 echo
17198 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17199 ## Running $as_me. ##
17200 _ASBOX
17201 $as_echo "$ac_log"
17202 } >&5
17203
17204 _ACEOF
17205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17206 #
17207 # INIT-COMMANDS
17208 #
17209 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17210
17211
17212 # The HP-UX ksh and POSIX shell print the target directory to stdout
17213 # if CDPATH is set.
17214 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17215
17216 sed_quote_subst='$sed_quote_subst'
17217 double_quote_subst='$double_quote_subst'
17218 delay_variable_subst='$delay_variable_subst'
17219 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17220 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17221 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17222 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17223 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17224 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17225 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17226 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17227 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17228 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17229 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17230 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17231 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17232 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17233 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17234 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17235 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17236 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17237 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17238 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17239 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17240 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17241 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17242 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17243 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17244 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17245 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17246 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17247 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17248 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17249 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17250 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17251 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17252 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17253 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17254 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17255 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17256 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17257 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17258 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17259 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17260 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17261 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17262 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17263 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17264 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17265 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17266 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17267 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17268 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17269 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17270 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17271 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17272 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17273 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17274 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17275 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"`'
17276 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17277 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17278 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17279 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17280 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17281 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17282 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17283 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17284 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17285 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17286 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17287 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17288 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17289 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17290 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17291 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17292 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17293 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17294 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17295 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17296 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17297 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17298 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17299 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17300 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17301 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17302 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17303 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17304 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17305 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17306 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17307 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17308 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17309 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17310 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17311 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17312 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17313 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17314 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17315 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17316 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17317 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17318 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17319 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17320 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17321 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17322 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17323 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17324 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17325 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17326 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17327 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17328 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17329 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17330 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17331 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17332 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17333 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17334 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17335 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17336 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17337 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17338 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17339 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17340 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17341 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17342 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17343 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17344 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17345 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17346 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17347 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17348 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17349 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17350 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17351 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17352 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17353 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17354 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17355 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17356 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17357 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17358 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17359 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17360 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17361 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17362 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17363 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17364 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17365 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17366 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17367 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17368 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17369 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17370 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17371 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17372 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17373 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17374 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17375 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17376 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17377 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17378 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17379 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17380 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17381 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17382 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17383 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17384 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17385 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17386 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17387 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17388 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17389 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17390 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17391 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17392 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17393 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17394 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17395 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17396 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17397 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17398 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17399 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17400 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17401 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17402 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17403
17404 LTCC='$LTCC'
17405 LTCFLAGS='$LTCFLAGS'
17406 compiler='$compiler_DEFAULT'
17407
17408 # A function that is used when there is no print builtin or printf.
17409 func_fallback_echo ()
17410 {
17411 eval 'cat <<_LTECHO_EOF
17412 \$1
17413 _LTECHO_EOF'
17414 }
17415
17416 # Quote evaled strings.
17417 for var in SHELL \
17418 ECHO \
17419 PATH_SEPARATOR \
17420 SED \
17421 GREP \
17422 EGREP \
17423 FGREP \
17424 LD \
17425 NM \
17426 LN_S \
17427 lt_SP2NL \
17428 lt_NL2SP \
17429 reload_flag \
17430 OBJDUMP \
17431 deplibs_check_method \
17432 file_magic_cmd \
17433 file_magic_glob \
17434 want_nocaseglob \
17435 DLLTOOL \
17436 sharedlib_from_linklib_cmd \
17437 AR \
17438 AR_FLAGS \
17439 archiver_list_spec \
17440 STRIP \
17441 RANLIB \
17442 CC \
17443 CFLAGS \
17444 compiler \
17445 lt_cv_sys_global_symbol_pipe \
17446 lt_cv_sys_global_symbol_to_cdecl \
17447 lt_cv_sys_global_symbol_to_c_name_address \
17448 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17449 nm_file_list_spec \
17450 lt_prog_compiler_no_builtin_flag \
17451 lt_prog_compiler_pic \
17452 lt_prog_compiler_wl \
17453 lt_prog_compiler_static \
17454 lt_cv_prog_compiler_c_o \
17455 need_locks \
17456 MANIFEST_TOOL \
17457 DSYMUTIL \
17458 NMEDIT \
17459 LIPO \
17460 OTOOL \
17461 OTOOL64 \
17462 shrext_cmds \
17463 export_dynamic_flag_spec \
17464 whole_archive_flag_spec \
17465 compiler_needs_object \
17466 with_gnu_ld \
17467 allow_undefined_flag \
17468 no_undefined_flag \
17469 hardcode_libdir_flag_spec \
17470 hardcode_libdir_separator \
17471 exclude_expsyms \
17472 include_expsyms \
17473 file_list_spec \
17474 variables_saved_for_relink \
17475 libname_spec \
17476 library_names_spec \
17477 soname_spec \
17478 install_override_mode \
17479 finish_eval \
17480 old_striplib \
17481 striplib \
17482 compiler_lib_search_dirs \
17483 predep_objects \
17484 postdep_objects \
17485 predeps \
17486 postdeps \
17487 compiler_lib_search_path \
17488 LD_CXX \
17489 reload_flag_CXX \
17490 compiler_CXX \
17491 lt_prog_compiler_no_builtin_flag_CXX \
17492 lt_prog_compiler_pic_CXX \
17493 lt_prog_compiler_wl_CXX \
17494 lt_prog_compiler_static_CXX \
17495 lt_cv_prog_compiler_c_o_CXX \
17496 export_dynamic_flag_spec_CXX \
17497 whole_archive_flag_spec_CXX \
17498 compiler_needs_object_CXX \
17499 with_gnu_ld_CXX \
17500 allow_undefined_flag_CXX \
17501 no_undefined_flag_CXX \
17502 hardcode_libdir_flag_spec_CXX \
17503 hardcode_libdir_separator_CXX \
17504 exclude_expsyms_CXX \
17505 include_expsyms_CXX \
17506 file_list_spec_CXX \
17507 compiler_lib_search_dirs_CXX \
17508 predep_objects_CXX \
17509 postdep_objects_CXX \
17510 predeps_CXX \
17511 postdeps_CXX \
17512 compiler_lib_search_path_CXX; do
17513 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17514 *[\\\\\\\`\\"\\\$]*)
17515 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17516 ;;
17517 *)
17518 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17519 ;;
17520 esac
17521 done
17522
17523 # Double-quote double-evaled strings.
17524 for var in reload_cmds \
17525 old_postinstall_cmds \
17526 old_postuninstall_cmds \
17527 old_archive_cmds \
17528 extract_expsyms_cmds \
17529 old_archive_from_new_cmds \
17530 old_archive_from_expsyms_cmds \
17531 archive_cmds \
17532 archive_expsym_cmds \
17533 module_cmds \
17534 module_expsym_cmds \
17535 export_symbols_cmds \
17536 prelink_cmds \
17537 postlink_cmds \
17538 postinstall_cmds \
17539 postuninstall_cmds \
17540 finish_cmds \
17541 sys_lib_search_path_spec \
17542 sys_lib_dlsearch_path_spec \
17543 reload_cmds_CXX \
17544 old_archive_cmds_CXX \
17545 old_archive_from_new_cmds_CXX \
17546 old_archive_from_expsyms_cmds_CXX \
17547 archive_cmds_CXX \
17548 archive_expsym_cmds_CXX \
17549 module_cmds_CXX \
17550 module_expsym_cmds_CXX \
17551 export_symbols_cmds_CXX \
17552 prelink_cmds_CXX \
17553 postlink_cmds_CXX; do
17554 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17555 *[\\\\\\\`\\"\\\$]*)
17556 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17557 ;;
17558 *)
17559 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17560 ;;
17561 esac
17562 done
17563
17564 ac_aux_dir='$ac_aux_dir'
17565 xsi_shell='$xsi_shell'
17566 lt_shell_append='$lt_shell_append'
17567
17568 # See if we are running on zsh, and set the options which allow our
17569 # commands through without removal of \ escapes INIT.
17570 if test -n "\${ZSH_VERSION+set}" ; then
17571 setopt NO_GLOB_SUBST
17572 fi
17573
17574
17575 PACKAGE='$PACKAGE'
17576 VERSION='$VERSION'
17577 TIMESTAMP='$TIMESTAMP'
17578 RM='$RM'
17579 ofile='$ofile'
17580
17581
17582
17583
17584
17585
17586 _ACEOF
17587
17588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17589
17590 # Handling of arguments.
17591 for ac_config_target in $ac_config_targets
17592 do
17593 case $ac_config_target in
17594 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17595 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17596 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17597 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17598 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17599 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
17600 "src/hesinfo/Makefile") CONFIG_FILES="$CONFIG_FILES src/hesinfo/Makefile" ;;
17601 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
17602 "src/hesiod.pc") CONFIG_FILES="$CONFIG_FILES src/hesiod.pc" ;;
17603
17604 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17605 esac
17606 done
17607
17608
17609 # If the user did not use the arguments to specify the items to instantiate,
17610 # then the envvar interface is used. Set only those that are not.
17611 # We use the long form for the default assignment because of an extremely
17612 # bizarre bug on SunOS 4.1.3.
17613 if $ac_need_defaults; then
17614 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17615 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17616 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17617 fi
17618
17619 # Have a temporary directory for convenience. Make it in the build tree
17620 # simply because there is no reason against having it here, and in addition,
17621 # creating and moving files from /tmp can sometimes cause problems.
17622 # Hook for its removal unless debugging.
17623 # Note that there is a small window in which the directory will not be cleaned:
17624 # after its creation but before its name has been assigned to `$tmp'.
17625 $debug ||
17626 {
17627 tmp= ac_tmp=
17628 trap 'exit_status=$?
17629 : "${ac_tmp:=$tmp}"
17630 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17631 ' 0
17632 trap 'as_fn_exit 1' 1 2 13 15
17633 }
17634 # Create a (secure) tmp directory for tmp files.
17635
17636 {
17637 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17638 test -d "$tmp"
17639 } ||
17640 {
17641 tmp=./conf$$-$RANDOM
17642 (umask 077 && mkdir "$tmp")
17643 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17644 ac_tmp=$tmp
17645
17646 # Set up the scripts for CONFIG_FILES section.
17647 # No need to generate them if there are no CONFIG_FILES.
17648 # This happens for instance with `./config.status config.h'.
17649 if test -n "$CONFIG_FILES"; then
17650
17651
17652 ac_cr=`echo X | tr X '\015'`
17653 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17654 # But we know of no other shell where ac_cr would be empty at this
17655 # point, so we can use a bashism as a fallback.
17656 if test "x$ac_cr" = x; then
17657 eval ac_cr=\$\'\\r\'
17658 fi
17659 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17660 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17661 ac_cs_awk_cr='\\r'
17662 else
17663 ac_cs_awk_cr=$ac_cr
17664 fi
17665
17666 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17667 _ACEOF
17668
17669
17670 {
17671 echo "cat >conf$$subs.awk <<_ACEOF" &&
17672 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17673 echo "_ACEOF"
17674 } >conf$$subs.sh ||
17675 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17676 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17677 ac_delim='%!_!# '
17678 for ac_last_try in false false false false false :; do
17679 . ./conf$$subs.sh ||
17680 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17681
17682 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17683 if test $ac_delim_n = $ac_delim_num; then
17684 break
17685 elif $ac_last_try; then
17686 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17687 else
17688 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17689 fi
17690 done
17691 rm -f conf$$subs.sh
17692
17693 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17694 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17695 _ACEOF
17696 sed -n '
17697 h
17698 s/^/S["/; s/!.*/"]=/
17699 p
17700 g
17701 s/^[^!]*!//
17702 :repl
17703 t repl
17704 s/'"$ac_delim"'$//
17705 t delim
17706 :nl
17707 h
17708 s/\(.\{148\}\)..*/\1/
17709 t more1
17710 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17711 p
17712 n
17713 b repl
17714 :more1
17715 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17716 p
17717 g
17718 s/.\{148\}//
17719 t nl
17720 :delim
17721 h
17722 s/\(.\{148\}\)..*/\1/
17723 t more2
17724 s/["\\]/\\&/g; s/^/"/; s/$/"/
17725 p
17726 b
17727 :more2
17728 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17729 p
17730 g
17731 s/.\{148\}//
17732 t delim
17733 ' <conf$$subs.awk | sed '
17734 /^[^""]/{
17735 N
17736 s/\n//
17737 }
17738 ' >>$CONFIG_STATUS || ac_write_fail=1
17739 rm -f conf$$subs.awk
17740 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17741 _ACAWK
17742 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17743 for (key in S) S_is_set[key] = 1
17744 FS = ""
17745
17746 }
17747 {
17748 line = $ 0
17749 nfields = split(line, field, "@")
17750 substed = 0
17751 len = length(field[1])
17752 for (i = 2; i < nfields; i++) {
17753 key = field[i]
17754 keylen = length(key)
17755 if (S_is_set[key]) {
17756 value = S[key]
17757 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17758 len += length(value) + length(field[++i])
17759 substed = 1
17760 } else
17761 len += 1 + keylen
17762 }
17763
17764 print line
17765 }
17766
17767 _ACAWK
17768 _ACEOF
17769 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17770 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17771 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17772 else
17773 cat
17774 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17775 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17776 _ACEOF
17777
17778 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17779 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17780 # trailing colons and then remove the whole line if VPATH becomes empty
17781 # (actually we leave an empty line to preserve line numbers).
17782 if test "x$srcdir" = x.; then
17783 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17784 h
17785 s///
17786 s/^/:/
17787 s/[ ]*$/:/
17788 s/:\$(srcdir):/:/g
17789 s/:\${srcdir}:/:/g
17790 s/:@srcdir@:/:/g
17791 s/^:*//
17792 s/:*$//
17793 x
17794 s/\(=[ ]*\).*/\1/
17795 G
17796 s/\n//
17797 s/^[^=]*=[ ]*$//
17798 }'
17799 fi
17800
17801 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17802 fi # test -n "$CONFIG_FILES"
17803
17804 # Set up the scripts for CONFIG_HEADERS section.
17805 # No need to generate them if there are no CONFIG_HEADERS.
17806 # This happens for instance with `./config.status Makefile'.
17807 if test -n "$CONFIG_HEADERS"; then
17808 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17809 BEGIN {
17810 _ACEOF
17811
17812 # Transform confdefs.h into an awk script `defines.awk', embedded as
17813 # here-document in config.status, that substitutes the proper values into
17814 # config.h.in to produce config.h.
17815
17816 # Create a delimiter string that does not exist in confdefs.h, to ease
17817 # handling of long lines.
17818 ac_delim='%!_!# '
17819 for ac_last_try in false false :; do
17820 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17821 if test -z "$ac_tt"; then
17822 break
17823 elif $ac_last_try; then
17824 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17825 else
17826 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17827 fi
17828 done
17829
17830 # For the awk script, D is an array of macro values keyed by name,
17831 # likewise P contains macro parameters if any. Preserve backslash
17832 # newline sequences.
17833
17834 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17835 sed -n '
17836 s/.\{148\}/&'"$ac_delim"'/g
17837 t rset
17838 :rset
17839 s/^[ ]*#[ ]*define[ ][ ]*/ /
17840 t def
17841 d
17842 :def
17843 s/\\$//
17844 t bsnl
17845 s/["\\]/\\&/g
17846 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17847 D["\1"]=" \3"/p
17848 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17849 d
17850 :bsnl
17851 s/["\\]/\\&/g
17852 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17853 D["\1"]=" \3\\\\\\n"\\/p
17854 t cont
17855 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17856 t cont
17857 d
17858 :cont
17859 n
17860 s/.\{148\}/&'"$ac_delim"'/g
17861 t clear
17862 :clear
17863 s/\\$//
17864 t bsnlc
17865 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17866 d
17867 :bsnlc
17868 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17869 b cont
17870 ' <confdefs.h | sed '
17871 s/'"$ac_delim"'/"\\\
17872 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17873
17874 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17875 for (key in D) D_is_set[key] = 1
17876 FS = ""
17877 }
17878 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17879 line = \$ 0
17880 split(line, arg, " ")
17881 if (arg[1] == "#") {
17882 defundef = arg[2]
17883 mac1 = arg[3]
17884 } else {
17885 defundef = substr(arg[1], 2)
17886 mac1 = arg[2]
17887 }
17888 split(mac1, mac2, "(") #)
17889 macro = mac2[1]
17890 prefix = substr(line, 1, index(line, defundef) - 1)
17891 if (D_is_set[macro]) {
17892 # Preserve the white space surrounding the "#".
17893 print prefix "define", macro P[macro] D[macro]
17894 next
17895 } else {
17896 # Replace #undef with comments. This is necessary, for example,
17897 # in the case of _POSIX_SOURCE, which is predefined and required
17898 # on some systems where configure will not decide to define it.
17899 if (defundef == "undef") {
17900 print "/*", prefix defundef, macro, "*/"
17901 next
17902 }
17903 }
17904 }
17905 { print }
17906 _ACAWK
17907 _ACEOF
17908 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17909 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17910 fi # test -n "$CONFIG_HEADERS"
17911
17912
17913 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17914 shift
17915 for ac_tag
17916 do
17917 case $ac_tag in
17918 :[FHLC]) ac_mode=$ac_tag; continue;;
17919 esac
17920 case $ac_mode$ac_tag in
17921 :[FHL]*:*);;
17922 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17923 :[FH]-) ac_tag=-:-;;
17924 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17925 esac
17926 ac_save_IFS=$IFS
17927 IFS=:
17928 set x $ac_tag
17929 IFS=$ac_save_IFS
17930 shift
17931 ac_file=$1
17932 shift
17933
17934 case $ac_mode in
17935 :L) ac_source=$1;;
17936 :[FH])
17937 ac_file_inputs=
17938 for ac_f
17939 do
17940 case $ac_f in
17941 -) ac_f="$ac_tmp/stdin";;
17942 *) # Look for the file first in the build tree, then in the source tree
17943 # (if the path is not absolute). The absolute path cannot be DOS-style,
17944 # because $ac_f cannot contain `:'.
17945 test -f "$ac_f" ||
17946 case $ac_f in
17947 [\\/$]*) false;;
17948 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17949 esac ||
17950 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17951 esac
17952 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17953 as_fn_append ac_file_inputs " '$ac_f'"
17954 done
17955
17956 # Let's still pretend it is `configure' which instantiates (i.e., don't
17957 # use $as_me), people would be surprised to read:
17958 # /* config.h. Generated by config.status. */
17959 configure_input='Generated from '`
17960 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17961 `' by configure.'
17962 if test x"$ac_file" != x-; then
17963 configure_input="$ac_file. $configure_input"
17964 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17965 $as_echo "$as_me: creating $ac_file" >&6;}
17966 fi
17967 # Neutralize special characters interpreted by sed in replacement strings.
17968 case $configure_input in #(
17969 *\&* | *\|* | *\\* )
17970 ac_sed_conf_input=`$as_echo "$configure_input" |
17971 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17972 *) ac_sed_conf_input=$configure_input;;
17973 esac
17974
17975 case $ac_tag in
17976 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17977 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17978 esac
17979 ;;
17980 esac
17981
17982 ac_dir=`$as_dirname -- "$ac_file" ||
17983 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17984 X"$ac_file" : 'X\(//\)[^/]' \| \
17985 X"$ac_file" : 'X\(//\)$' \| \
17986 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17987 $as_echo X"$ac_file" |
17988 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17989 s//\1/
17990 q
17991 }
17992 /^X\(\/\/\)[^/].*/{
17993 s//\1/
17994 q
17995 }
17996 /^X\(\/\/\)$/{
17997 s//\1/
17998 q
17999 }
18000 /^X\(\/\).*/{
18001 s//\1/
18002 q
18003 }
18004 s/.*/./; q'`
18005 as_dir="$ac_dir"; as_fn_mkdir_p
18006 ac_builddir=.
18007
18008 case "$ac_dir" in
18009 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18010 *)
18011 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18012 # A ".." for each directory in $ac_dir_suffix.
18013 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18014 case $ac_top_builddir_sub in
18015 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18016 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18017 esac ;;
18018 esac
18019 ac_abs_top_builddir=$ac_pwd
18020 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18021 # for backward compatibility:
18022 ac_top_builddir=$ac_top_build_prefix
18023
18024 case $srcdir in
18025 .) # We are building in place.
18026 ac_srcdir=.
18027 ac_top_srcdir=$ac_top_builddir_sub
18028 ac_abs_top_srcdir=$ac_pwd ;;
18029 [\\/]* | ?:[\\/]* ) # Absolute name.
18030 ac_srcdir=$srcdir$ac_dir_suffix;
18031 ac_top_srcdir=$srcdir
18032 ac_abs_top_srcdir=$srcdir ;;
18033 *) # Relative name.
18034 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18035 ac_top_srcdir=$ac_top_build_prefix$srcdir
18036 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18037 esac
18038 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18039
18040
18041 case $ac_mode in
18042 :F)
18043 #
18044 # CONFIG_FILE
18045 #
18046
18047 case $INSTALL in
18048 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18049 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18050 esac
18051 ac_MKDIR_P=$MKDIR_P
18052 case $MKDIR_P in
18053 [\\/$]* | ?:[\\/]* ) ;;
18054 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18055 esac
18056 _ACEOF
18057
18058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18059 # If the template does not know about datarootdir, expand it.
18060 # FIXME: This hack should be removed a few years after 2.60.
18061 ac_datarootdir_hack=; ac_datarootdir_seen=
18062 ac_sed_dataroot='
18063 /datarootdir/ {
18064 p
18065 q
18066 }
18067 /@datadir@/p
18068 /@docdir@/p
18069 /@infodir@/p
18070 /@localedir@/p
18071 /@mandir@/p'
18072 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18073 *datarootdir*) ac_datarootdir_seen=yes;;
18074 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18076 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18077 _ACEOF
18078 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18079 ac_datarootdir_hack='
18080 s&@datadir@&$datadir&g
18081 s&@docdir@&$docdir&g
18082 s&@infodir@&$infodir&g
18083 s&@localedir@&$localedir&g
18084 s&@mandir@&$mandir&g
18085 s&\\\${datarootdir}&$datarootdir&g' ;;
18086 esac
18087 _ACEOF
18088
18089 # Neutralize VPATH when `$srcdir' = `.'.
18090 # Shell code in configure.ac might set extrasub.
18091 # FIXME: do we really want to maintain this feature?
18092 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18093 ac_sed_extra="$ac_vpsub
18094 $extrasub
18095 _ACEOF
18096 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18097 :t
18098 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18099 s|@configure_input@|$ac_sed_conf_input|;t t
18100 s&@top_builddir@&$ac_top_builddir_sub&;t t
18101 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18102 s&@srcdir@&$ac_srcdir&;t t
18103 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18104 s&@top_srcdir@&$ac_top_srcdir&;t t
18105 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18106 s&@builddir@&$ac_builddir&;t t
18107 s&@abs_builddir@&$ac_abs_builddir&;t t
18108 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18109 s&@INSTALL@&$ac_INSTALL&;t t
18110 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18111 $ac_datarootdir_hack
18112 "
18113 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18114 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18115
18116 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18117 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18118 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18119 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18121 which seems to be undefined. Please make sure it is defined" >&5
18122 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18123 which seems to be undefined. Please make sure it is defined" >&2;}
18124
18125 rm -f "$ac_tmp/stdin"
18126 case $ac_file in
18127 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18128 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18129 esac \
18130 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18131 ;;
18132 :H)
18133 #
18134 # CONFIG_HEADER
18135 #
18136 if test x"$ac_file" != x-; then
18137 {
18138 $as_echo "/* $configure_input */" \
18139 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18140 } >"$ac_tmp/config.h" \
18141 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18142 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18143 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18144 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18145 else
18146 rm -f "$ac_file"
18147 mv "$ac_tmp/config.h" "$ac_file" \
18148 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18149 fi
18150 else
18151 $as_echo "/* $configure_input */" \
18152 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18153 || as_fn_error $? "could not create -" "$LINENO" 5
18154 fi
18155 # Compute "$ac_file"'s index in $config_headers.
18156 _am_arg="$ac_file"
18157 _am_stamp_count=1
18158 for _am_header in $config_headers :; do
18159 case $_am_header in
18160 $_am_arg | $_am_arg:* )
18161 break ;;
18162 * )
18163 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18164 esac
18165 done
18166 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18167 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18168 X"$_am_arg" : 'X\(//\)[^/]' \| \
18169 X"$_am_arg" : 'X\(//\)$' \| \
18170 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18171 $as_echo X"$_am_arg" |
18172 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18173 s//\1/
18174 q
18175 }
18176 /^X\(\/\/\)[^/].*/{
18177 s//\1/
18178 q
18179 }
18180 /^X\(\/\/\)$/{
18181 s//\1/
18182 q
18183 }
18184 /^X\(\/\).*/{
18185 s//\1/
18186 q
18187 }
18188 s/.*/./; q'`/stamp-h$_am_stamp_count
18189 ;;
18190
18191 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18192 $as_echo "$as_me: executing $ac_file commands" >&6;}
18193 ;;
18194 esac
18195
18196
18197 case $ac_file$ac_mode in
18198 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18199 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18200 # are listed without --file. Let's play safe and only enable the eval
18201 # if we detect the quoting.
18202 case $CONFIG_FILES in
18203 *\'*) eval set x "$CONFIG_FILES" ;;
18204 *) set x $CONFIG_FILES ;;
18205 esac
18206 shift
18207 for mf
18208 do
18209 # Strip MF so we end up with the name of the file.
18210 mf=`echo "$mf" | sed -e 's/:.*$//'`
18211 # Check whether this is an Automake generated Makefile or not.
18212 # We used to match only the files named `Makefile.in', but
18213 # some people rename them; so instead we look at the file content.
18214 # Grep'ing the first line is not enough: some people post-process
18215 # each Makefile.in and add a new line on top of each file to say so.
18216 # Grep'ing the whole file is not good either: AIX grep has a line
18217 # limit of 2048, but all sed's we know have understand at least 4000.
18218 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18219 dirpart=`$as_dirname -- "$mf" ||
18220 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18221 X"$mf" : 'X\(//\)[^/]' \| \
18222 X"$mf" : 'X\(//\)$' \| \
18223 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18224 $as_echo X"$mf" |
18225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18226 s//\1/
18227 q
18228 }
18229 /^X\(\/\/\)[^/].*/{
18230 s//\1/
18231 q
18232 }
18233 /^X\(\/\/\)$/{
18234 s//\1/
18235 q
18236 }
18237 /^X\(\/\).*/{
18238 s//\1/
18239 q
18240 }
18241 s/.*/./; q'`
18242 else
18243 continue
18244 fi
18245 # Extract the definition of DEPDIR, am__include, and am__quote
18246 # from the Makefile without running `make'.
18247 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18248 test -z "$DEPDIR" && continue
18249 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18250 test -z "am__include" && continue
18251 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18252 # When using ansi2knr, U may be empty or an underscore; expand it
18253 U=`sed -n 's/^U = //p' < "$mf"`
18254 # Find all dependency output files, they are included files with
18255 # $(DEPDIR) in their names. We invoke sed twice because it is the
18256 # simplest approach to changing $(DEPDIR) to its actual value in the
18257 # expansion.
18258 for file in `sed -n "
18259 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18260 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18261 # Make sure the directory exists.
18262 test -f "$dirpart/$file" && continue
18263 fdir=`$as_dirname -- "$file" ||
18264 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18265 X"$file" : 'X\(//\)[^/]' \| \
18266 X"$file" : 'X\(//\)$' \| \
18267 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18268 $as_echo X"$file" |
18269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18270 s//\1/
18271 q
18272 }
18273 /^X\(\/\/\)[^/].*/{
18274 s//\1/
18275 q
18276 }
18277 /^X\(\/\/\)$/{
18278 s//\1/
18279 q
18280 }
18281 /^X\(\/\).*/{
18282 s//\1/
18283 q
18284 }
18285 s/.*/./; q'`
18286 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18287 # echo "creating $dirpart/$file"
18288 echo '# dummy' > "$dirpart/$file"
18289 done
18290 done
18291 }
18292 ;;
18293 "libtool":C)
18294
18295 # See if we are running on zsh, and set the options which allow our
18296 # commands through without removal of \ escapes.
18297 if test -n "${ZSH_VERSION+set}" ; then
18298 setopt NO_GLOB_SUBST
18299 fi
18300
18301 cfgfile="${ofile}T"
18302 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18303 $RM "$cfgfile"
18304
18305 cat <<_LT_EOF >> "$cfgfile"
18306 #! $SHELL
18307
18308 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18309 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18310 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18311 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18312 #
18313 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18314 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18315 # Foundation, Inc.
18316 # Written by Gordon Matzigkeit, 1996
18317 #
18318 # This file is part of GNU Libtool.
18319 #
18320 # GNU Libtool is free software; you can redistribute it and/or
18321 # modify it under the terms of the GNU General Public License as
18322 # published by the Free Software Foundation; either version 2 of
18323 # the License, or (at your option) any later version.
18324 #
18325 # As a special exception to the GNU General Public License,
18326 # if you distribute this file as part of a program or library that
18327 # is built using GNU Libtool, you may include this file under the
18328 # same distribution terms that you use for the rest of that program.
18329 #
18330 # GNU Libtool is distributed in the hope that it will be useful,
18331 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18332 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18333 # GNU General Public License for more details.
18334 #
18335 # You should have received a copy of the GNU General Public License
18336 # along with GNU Libtool; see the file COPYING. If not, a copy
18337 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18338 # obtained by writing to the Free Software Foundation, Inc.,
18339 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18340
18341
18342 # The names of the tagged configurations supported by this script.
18343 available_tags="CXX "
18344
18345 # ### BEGIN LIBTOOL CONFIG
18346
18347 # Which release of libtool.m4 was used?
18348 macro_version=$macro_version
18349 macro_revision=$macro_revision
18350
18351 # Whether or not to build shared libraries.
18352 build_libtool_libs=$enable_shared
18353
18354 # Whether or not to build static libraries.
18355 build_old_libs=$enable_static
18356
18357 # What type of objects to build.
18358 pic_mode=$pic_mode
18359
18360 # Whether or not to optimize for fast installation.
18361 fast_install=$enable_fast_install
18362
18363 # Shell to use when invoking shell scripts.
18364 SHELL=$lt_SHELL
18365
18366 # An echo program that protects backslashes.
18367 ECHO=$lt_ECHO
18368
18369 # The PATH separator for the build system.
18370 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18371
18372 # The host system.
18373 host_alias=$host_alias
18374 host=$host
18375 host_os=$host_os
18376
18377 # The build system.
18378 build_alias=$build_alias
18379 build=$build
18380 build_os=$build_os
18381
18382 # A sed program that does not truncate output.
18383 SED=$lt_SED
18384
18385 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18386 Xsed="\$SED -e 1s/^X//"
18387
18388 # A grep program that handles long lines.
18389 GREP=$lt_GREP
18390
18391 # An ERE matcher.
18392 EGREP=$lt_EGREP
18393
18394 # A literal string matcher.
18395 FGREP=$lt_FGREP
18396
18397 # A BSD- or MS-compatible name lister.
18398 NM=$lt_NM
18399
18400 # Whether we need soft or hard links.
18401 LN_S=$lt_LN_S
18402
18403 # What is the maximum length of a command?
18404 max_cmd_len=$max_cmd_len
18405
18406 # Object file suffix (normally "o").
18407 objext=$ac_objext
18408
18409 # Executable file suffix (normally "").
18410 exeext=$exeext
18411
18412 # whether the shell understands "unset".
18413 lt_unset=$lt_unset
18414
18415 # turn spaces into newlines.
18416 SP2NL=$lt_lt_SP2NL
18417
18418 # turn newlines into spaces.
18419 NL2SP=$lt_lt_NL2SP
18420
18421 # convert \$build file names to \$host format.
18422 to_host_file_cmd=$lt_cv_to_host_file_cmd
18423
18424 # convert \$build files to toolchain format.
18425 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18426
18427 # An object symbol dumper.
18428 OBJDUMP=$lt_OBJDUMP
18429
18430 # Method to check whether dependent libraries are shared objects.
18431 deplibs_check_method=$lt_deplibs_check_method
18432
18433 # Command to use when deplibs_check_method = "file_magic".
18434 file_magic_cmd=$lt_file_magic_cmd
18435
18436 # How to find potential files when deplibs_check_method = "file_magic".
18437 file_magic_glob=$lt_file_magic_glob
18438
18439 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18440 want_nocaseglob=$lt_want_nocaseglob
18441
18442 # DLL creation program.
18443 DLLTOOL=$lt_DLLTOOL
18444
18445 # Command to associate shared and link libraries.
18446 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18447
18448 # The archiver.
18449 AR=$lt_AR
18450
18451 # Flags to create an archive.
18452 AR_FLAGS=$lt_AR_FLAGS
18453
18454 # How to feed a file listing to the archiver.
18455 archiver_list_spec=$lt_archiver_list_spec
18456
18457 # A symbol stripping program.
18458 STRIP=$lt_STRIP
18459
18460 # Commands used to install an old-style archive.
18461 RANLIB=$lt_RANLIB
18462 old_postinstall_cmds=$lt_old_postinstall_cmds
18463 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18464
18465 # Whether to use a lock for old archive extraction.
18466 lock_old_archive_extraction=$lock_old_archive_extraction
18467
18468 # A C compiler.
18469 LTCC=$lt_CC
18470
18471 # LTCC compiler flags.
18472 LTCFLAGS=$lt_CFLAGS
18473
18474 # Take the output of nm and produce a listing of raw symbols and C names.
18475 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18476
18477 # Transform the output of nm in a proper C declaration.
18478 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18479
18480 # Transform the output of nm in a C name address pair.
18481 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18482
18483 # Transform the output of nm in a C name address pair when lib prefix is needed.
18484 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18485
18486 # Specify filename containing input files for \$NM.
18487 nm_file_list_spec=$lt_nm_file_list_spec
18488
18489 # The root where to search for dependent libraries,and in which our libraries should be installed.
18490 lt_sysroot=$lt_sysroot
18491
18492 # The name of the directory that contains temporary libtool files.
18493 objdir=$objdir
18494
18495 # Used to examine libraries when file_magic_cmd begins with "file".
18496 MAGIC_CMD=$MAGIC_CMD
18497
18498 # Must we lock files when doing compilation?
18499 need_locks=$lt_need_locks
18500
18501 # Manifest tool.
18502 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18503
18504 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18505 DSYMUTIL=$lt_DSYMUTIL
18506
18507 # Tool to change global to local symbols on Mac OS X.
18508 NMEDIT=$lt_NMEDIT
18509
18510 # Tool to manipulate fat objects and archives on Mac OS X.
18511 LIPO=$lt_LIPO
18512
18513 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18514 OTOOL=$lt_OTOOL
18515
18516 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18517 OTOOL64=$lt_OTOOL64
18518
18519 # Old archive suffix (normally "a").
18520 libext=$libext
18521
18522 # Shared library suffix (normally ".so").
18523 shrext_cmds=$lt_shrext_cmds
18524
18525 # The commands to extract the exported symbol list from a shared archive.
18526 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18527
18528 # Variables whose values should be saved in libtool wrapper scripts and
18529 # restored at link time.
18530 variables_saved_for_relink=$lt_variables_saved_for_relink
18531
18532 # Do we need the "lib" prefix for modules?
18533 need_lib_prefix=$need_lib_prefix
18534
18535 # Do we need a version for libraries?
18536 need_version=$need_version
18537
18538 # Library versioning type.
18539 version_type=$version_type
18540
18541 # Shared library runtime path variable.
18542 runpath_var=$runpath_var
18543
18544 # Shared library path variable.
18545 shlibpath_var=$shlibpath_var
18546
18547 # Is shlibpath searched before the hard-coded library search path?
18548 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18549
18550 # Format of library name prefix.
18551 libname_spec=$lt_libname_spec
18552
18553 # List of archive names. First name is the real one, the rest are links.
18554 # The last name is the one that the linker finds with -lNAME
18555 library_names_spec=$lt_library_names_spec
18556
18557 # The coded name of the library, if different from the real name.
18558 soname_spec=$lt_soname_spec
18559
18560 # Permission mode override for installation of shared libraries.
18561 install_override_mode=$lt_install_override_mode
18562
18563 # Command to use after installation of a shared archive.
18564 postinstall_cmds=$lt_postinstall_cmds
18565
18566 # Command to use after uninstallation of a shared archive.
18567 postuninstall_cmds=$lt_postuninstall_cmds
18568
18569 # Commands used to finish a libtool library installation in a directory.
18570 finish_cmds=$lt_finish_cmds
18571
18572 # As "finish_cmds", except a single script fragment to be evaled but
18573 # not shown.
18574 finish_eval=$lt_finish_eval
18575
18576 # Whether we should hardcode library paths into libraries.
18577 hardcode_into_libs=$hardcode_into_libs
18578
18579 # Compile-time system search path for libraries.
18580 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18581
18582 # Run-time system search path for libraries.
18583 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18584
18585 # Whether dlopen is supported.
18586 dlopen_support=$enable_dlopen
18587
18588 # Whether dlopen of programs is supported.
18589 dlopen_self=$enable_dlopen_self
18590
18591 # Whether dlopen of statically linked programs is supported.
18592 dlopen_self_static=$enable_dlopen_self_static
18593
18594 # Commands to strip libraries.
18595 old_striplib=$lt_old_striplib
18596 striplib=$lt_striplib
18597
18598
18599 # The linker used to build libraries.
18600 LD=$lt_LD
18601
18602 # How to create reloadable object files.
18603 reload_flag=$lt_reload_flag
18604 reload_cmds=$lt_reload_cmds
18605
18606 # Commands used to build an old-style archive.
18607 old_archive_cmds=$lt_old_archive_cmds
18608
18609 # A language specific compiler.
18610 CC=$lt_compiler
18611
18612 # Is the compiler the GNU compiler?
18613 with_gcc=$GCC
18614
18615 # Compiler flag to turn off builtin functions.
18616 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18617
18618 # Additional compiler flags for building library objects.
18619 pic_flag=$lt_lt_prog_compiler_pic
18620
18621 # How to pass a linker flag through the compiler.
18622 wl=$lt_lt_prog_compiler_wl
18623
18624 # Compiler flag to prevent dynamic linking.
18625 link_static_flag=$lt_lt_prog_compiler_static
18626
18627 # Does compiler simultaneously support -c and -o options?
18628 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18629
18630 # Whether or not to add -lc for building shared libraries.
18631 build_libtool_need_lc=$archive_cmds_need_lc
18632
18633 # Whether or not to disallow shared libs when runtime libs are static.
18634 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18635
18636 # Compiler flag to allow reflexive dlopens.
18637 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18638
18639 # Compiler flag to generate shared objects directly from archives.
18640 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18641
18642 # Whether the compiler copes with passing no objects directly.
18643 compiler_needs_object=$lt_compiler_needs_object
18644
18645 # Create an old-style archive from a shared archive.
18646 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18647
18648 # Create a temporary old-style archive to link instead of a shared archive.
18649 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18650
18651 # Commands used to build a shared archive.
18652 archive_cmds=$lt_archive_cmds
18653 archive_expsym_cmds=$lt_archive_expsym_cmds
18654
18655 # Commands used to build a loadable module if different from building
18656 # a shared archive.
18657 module_cmds=$lt_module_cmds
18658 module_expsym_cmds=$lt_module_expsym_cmds
18659
18660 # Whether we are building with GNU ld or not.
18661 with_gnu_ld=$lt_with_gnu_ld
18662
18663 # Flag that allows shared libraries with undefined symbols to be built.
18664 allow_undefined_flag=$lt_allow_undefined_flag
18665
18666 # Flag that enforces no undefined symbols.
18667 no_undefined_flag=$lt_no_undefined_flag
18668
18669 # Flag to hardcode \$libdir into a binary during linking.
18670 # This must work even if \$libdir does not exist
18671 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18672
18673 # Whether we need a single "-rpath" flag with a separated argument.
18674 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18675
18676 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18677 # DIR into the resulting binary.
18678 hardcode_direct=$hardcode_direct
18679
18680 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18681 # DIR into the resulting binary and the resulting library dependency is
18682 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18683 # library is relocated.
18684 hardcode_direct_absolute=$hardcode_direct_absolute
18685
18686 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18687 # into the resulting binary.
18688 hardcode_minus_L=$hardcode_minus_L
18689
18690 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18691 # into the resulting binary.
18692 hardcode_shlibpath_var=$hardcode_shlibpath_var
18693
18694 # Set to "yes" if building a shared library automatically hardcodes DIR
18695 # into the library and all subsequent libraries and executables linked
18696 # against it.
18697 hardcode_automatic=$hardcode_automatic
18698
18699 # Set to yes if linker adds runtime paths of dependent libraries
18700 # to runtime path list.
18701 inherit_rpath=$inherit_rpath
18702
18703 # Whether libtool must link a program against all its dependency libraries.
18704 link_all_deplibs=$link_all_deplibs
18705
18706 # Set to "yes" if exported symbols are required.
18707 always_export_symbols=$always_export_symbols
18708
18709 # The commands to list exported symbols.
18710 export_symbols_cmds=$lt_export_symbols_cmds
18711
18712 # Symbols that should not be listed in the preloaded symbols.
18713 exclude_expsyms=$lt_exclude_expsyms
18714
18715 # Symbols that must always be exported.
18716 include_expsyms=$lt_include_expsyms
18717
18718 # Commands necessary for linking programs (against libraries) with templates.
18719 prelink_cmds=$lt_prelink_cmds
18720
18721 # Commands necessary for finishing linking programs.
18722 postlink_cmds=$lt_postlink_cmds
18723
18724 # Specify filename containing input files.
18725 file_list_spec=$lt_file_list_spec
18726
18727 # How to hardcode a shared library path into an executable.
18728 hardcode_action=$hardcode_action
18729
18730 # The directories searched by this compiler when creating a shared library.
18731 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18732
18733 # Dependencies to place before and after the objects being linked to
18734 # create a shared library.
18735 predep_objects=$lt_predep_objects
18736 postdep_objects=$lt_postdep_objects
18737 predeps=$lt_predeps
18738 postdeps=$lt_postdeps
18739
18740 # The library search path used internally by the compiler when linking
18741 # a shared library.
18742 compiler_lib_search_path=$lt_compiler_lib_search_path
18743
18744 # ### END LIBTOOL CONFIG
18745
18746 _LT_EOF
18747
18748 case $host_os in
18749 aix3*)
18750 cat <<\_LT_EOF >> "$cfgfile"
18751 # AIX sometimes has problems with the GCC collect2 program. For some
18752 # reason, if we set the COLLECT_NAMES environment variable, the problems
18753 # vanish in a puff of smoke.
18754 if test "X${COLLECT_NAMES+set}" != Xset; then
18755 COLLECT_NAMES=
18756 export COLLECT_NAMES
18757 fi
18758 _LT_EOF
18759 ;;
18760 esac
18761
18762
18763 ltmain="$ac_aux_dir/ltmain.sh"
18764
18765
18766 # We use sed instead of cat because bash on DJGPP gets confused if
18767 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18768 # text mode, it properly converts lines to CR/LF. This bash problem
18769 # is reportedly fixed, but why not run on old versions too?
18770 sed '$q' "$ltmain" >> "$cfgfile" \
18771 || (rm -f "$cfgfile"; exit 1)
18772
18773 if test x"$xsi_shell" = xyes; then
18774 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18775 func_dirname ()\
18776 {\
18777 \ case ${1} in\
18778 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18779 \ * ) func_dirname_result="${3}" ;;\
18780 \ esac\
18781 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18782 && mv -f "$cfgfile.tmp" "$cfgfile" \
18783 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18784 test 0 -eq $? || _lt_function_replace_fail=:
18785
18786
18787 sed -e '/^func_basename ()$/,/^} # func_basename /c\
18788 func_basename ()\
18789 {\
18790 \ func_basename_result="${1##*/}"\
18791 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18792 && mv -f "$cfgfile.tmp" "$cfgfile" \
18793 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18794 test 0 -eq $? || _lt_function_replace_fail=:
18795
18796
18797 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18798 func_dirname_and_basename ()\
18799 {\
18800 \ case ${1} in\
18801 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18802 \ * ) func_dirname_result="${3}" ;;\
18803 \ esac\
18804 \ func_basename_result="${1##*/}"\
18805 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18806 && mv -f "$cfgfile.tmp" "$cfgfile" \
18807 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18808 test 0 -eq $? || _lt_function_replace_fail=:
18809
18810
18811 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18812 func_stripname ()\
18813 {\
18814 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18815 \ # positional parameters, so assign one to ordinary parameter first.\
18816 \ func_stripname_result=${3}\
18817 \ func_stripname_result=${func_stripname_result#"${1}"}\
18818 \ func_stripname_result=${func_stripname_result%"${2}"}\
18819 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18820 && mv -f "$cfgfile.tmp" "$cfgfile" \
18821 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18822 test 0 -eq $? || _lt_function_replace_fail=:
18823
18824
18825 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18826 func_split_long_opt ()\
18827 {\
18828 \ func_split_long_opt_name=${1%%=*}\
18829 \ func_split_long_opt_arg=${1#*=}\
18830 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18831 && mv -f "$cfgfile.tmp" "$cfgfile" \
18832 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18833 test 0 -eq $? || _lt_function_replace_fail=:
18834
18835
18836 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18837 func_split_short_opt ()\
18838 {\
18839 \ func_split_short_opt_arg=${1#??}\
18840 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18841 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18842 && mv -f "$cfgfile.tmp" "$cfgfile" \
18843 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18844 test 0 -eq $? || _lt_function_replace_fail=:
18845
18846
18847 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18848 func_lo2o ()\
18849 {\
18850 \ case ${1} in\
18851 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18852 \ *) func_lo2o_result=${1} ;;\
18853 \ esac\
18854 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18855 && mv -f "$cfgfile.tmp" "$cfgfile" \
18856 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18857 test 0 -eq $? || _lt_function_replace_fail=:
18858
18859
18860 sed -e '/^func_xform ()$/,/^} # func_xform /c\
18861 func_xform ()\
18862 {\
18863 func_xform_result=${1%.*}.lo\
18864 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18865 && mv -f "$cfgfile.tmp" "$cfgfile" \
18866 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18867 test 0 -eq $? || _lt_function_replace_fail=:
18868
18869
18870 sed -e '/^func_arith ()$/,/^} # func_arith /c\
18871 func_arith ()\
18872 {\
18873 func_arith_result=$(( $* ))\
18874 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18875 && mv -f "$cfgfile.tmp" "$cfgfile" \
18876 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18877 test 0 -eq $? || _lt_function_replace_fail=:
18878
18879
18880 sed -e '/^func_len ()$/,/^} # func_len /c\
18881 func_len ()\
18882 {\
18883 func_len_result=${#1}\
18884 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18885 && mv -f "$cfgfile.tmp" "$cfgfile" \
18886 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18887 test 0 -eq $? || _lt_function_replace_fail=:
18888
18889 fi
18890
18891 if test x"$lt_shell_append" = xyes; then
18892 sed -e '/^func_append ()$/,/^} # func_append /c\
18893 func_append ()\
18894 {\
18895 eval "${1}+=\\${2}"\
18896 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18897 && mv -f "$cfgfile.tmp" "$cfgfile" \
18898 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18899 test 0 -eq $? || _lt_function_replace_fail=:
18900
18901
18902 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18903 func_append_quoted ()\
18904 {\
18905 \ func_quote_for_eval "${2}"\
18906 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18907 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18908 && mv -f "$cfgfile.tmp" "$cfgfile" \
18909 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18910 test 0 -eq $? || _lt_function_replace_fail=:
18911
18912
18913 # Save a `func_append' function call where possible by direct use of '+='
18914 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18915 && mv -f "$cfgfile.tmp" "$cfgfile" \
18916 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18917 test 0 -eq $? || _lt_function_replace_fail=:
18918 else
18919 # Save a `func_append' function call even when '+=' is not available
18920 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18921 && mv -f "$cfgfile.tmp" "$cfgfile" \
18922 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18923 test 0 -eq $? || _lt_function_replace_fail=:
18924 fi
18925
18926 if test x"$_lt_function_replace_fail" = x":"; then
18927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18928 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18929 fi
18930
18931
18932 mv -f "$cfgfile" "$ofile" ||
18933 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18934 chmod +x "$ofile"
18935
18936
18937 cat <<_LT_EOF >> "$ofile"
18938
18939 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18940
18941 # The linker used to build libraries.
18942 LD=$lt_LD_CXX
18943
18944 # How to create reloadable object files.
18945 reload_flag=$lt_reload_flag_CXX
18946 reload_cmds=$lt_reload_cmds_CXX
18947
18948 # Commands used to build an old-style archive.
18949 old_archive_cmds=$lt_old_archive_cmds_CXX
18950
18951 # A language specific compiler.
18952 CC=$lt_compiler_CXX
18953
18954 # Is the compiler the GNU compiler?
18955 with_gcc=$GCC_CXX
18956
18957 # Compiler flag to turn off builtin functions.
18958 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18959
18960 # Additional compiler flags for building library objects.
18961 pic_flag=$lt_lt_prog_compiler_pic_CXX
18962
18963 # How to pass a linker flag through the compiler.
18964 wl=$lt_lt_prog_compiler_wl_CXX
18965
18966 # Compiler flag to prevent dynamic linking.
18967 link_static_flag=$lt_lt_prog_compiler_static_CXX
18968
18969 # Does compiler simultaneously support -c and -o options?
18970 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18971
18972 # Whether or not to add -lc for building shared libraries.
18973 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18974
18975 # Whether or not to disallow shared libs when runtime libs are static.
18976 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18977
18978 # Compiler flag to allow reflexive dlopens.
18979 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18980
18981 # Compiler flag to generate shared objects directly from archives.
18982 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18983
18984 # Whether the compiler copes with passing no objects directly.
18985 compiler_needs_object=$lt_compiler_needs_object_CXX
18986
18987 # Create an old-style archive from a shared archive.
18988 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18989
18990 # Create a temporary old-style archive to link instead of a shared archive.
18991 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18992
18993 # Commands used to build a shared archive.
18994 archive_cmds=$lt_archive_cmds_CXX
18995 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18996
18997 # Commands used to build a loadable module if different from building
18998 # a shared archive.
18999 module_cmds=$lt_module_cmds_CXX
19000 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19001
19002 # Whether we are building with GNU ld or not.
19003 with_gnu_ld=$lt_with_gnu_ld_CXX
19004
19005 # Flag that allows shared libraries with undefined symbols to be built.
19006 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19007
19008 # Flag that enforces no undefined symbols.
19009 no_undefined_flag=$lt_no_undefined_flag_CXX
19010
19011 # Flag to hardcode \$libdir into a binary during linking.
19012 # This must work even if \$libdir does not exist
19013 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19014
19015 # Whether we need a single "-rpath" flag with a separated argument.
19016 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19017
19018 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19019 # DIR into the resulting binary.
19020 hardcode_direct=$hardcode_direct_CXX
19021
19022 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19023 # DIR into the resulting binary and the resulting library dependency is
19024 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19025 # library is relocated.
19026 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19027
19028 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19029 # into the resulting binary.
19030 hardcode_minus_L=$hardcode_minus_L_CXX
19031
19032 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19033 # into the resulting binary.
19034 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19035
19036 # Set to "yes" if building a shared library automatically hardcodes DIR
19037 # into the library and all subsequent libraries and executables linked
19038 # against it.
19039 hardcode_automatic=$hardcode_automatic_CXX
19040
19041 # Set to yes if linker adds runtime paths of dependent libraries
19042 # to runtime path list.
19043 inherit_rpath=$inherit_rpath_CXX
19044
19045 # Whether libtool must link a program against all its dependency libraries.
19046 link_all_deplibs=$link_all_deplibs_CXX
19047
19048 # Set to "yes" if exported symbols are required.
19049 always_export_symbols=$always_export_symbols_CXX
19050
19051 # The commands to list exported symbols.
19052 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19053
19054 # Symbols that should not be listed in the preloaded symbols.
19055 exclude_expsyms=$lt_exclude_expsyms_CXX
19056
19057 # Symbols that must always be exported.
19058 include_expsyms=$lt_include_expsyms_CXX
19059
19060 # Commands necessary for linking programs (against libraries) with templates.
19061 prelink_cmds=$lt_prelink_cmds_CXX
19062
19063 # Commands necessary for finishing linking programs.
19064 postlink_cmds=$lt_postlink_cmds_CXX
19065
19066 # Specify filename containing input files.
19067 file_list_spec=$lt_file_list_spec_CXX
19068
19069 # How to hardcode a shared library path into an executable.
19070 hardcode_action=$hardcode_action_CXX
19071
19072 # The directories searched by this compiler when creating a shared library.
19073 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19074
19075 # Dependencies to place before and after the objects being linked to
19076 # create a shared library.
19077 predep_objects=$lt_predep_objects_CXX
19078 postdep_objects=$lt_postdep_objects_CXX
19079 predeps=$lt_predeps_CXX
19080 postdeps=$lt_postdeps_CXX
19081
19082 # The library search path used internally by the compiler when linking
19083 # a shared library.
19084 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19085
19086 # ### END LIBTOOL TAG CONFIG: CXX
19087 _LT_EOF
19088
19089 ;;
19090
19091 esac
19092 done # for ac_tag
19093
19094
19095 as_fn_exit 0
19096 _ACEOF
19097 ac_clean_files=$ac_clean_files_save
19098
19099 test $ac_write_fail = 0 ||
19100 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19101
19102
19103 # configure is writing to config.log, and then calls config.status.
19104 # config.status does its own redirection, appending to config.log.
19105 # Unfortunately, on DOS this fails, as config.log is still kept open
19106 # by configure, so config.status won't be able to write to it; its
19107 # output is simply discarded. So we exec the FD to /dev/null,
19108 # effectively closing config.log, so it can be properly (re)opened and
19109 # appended to by config.status. When coming back to configure, we
19110 # need to make the FD available again.
19111 if test "$no_create" != yes; then
19112 ac_cs_success=:
19113 ac_config_status_args=
19114 test "$silent" = yes &&
19115 ac_config_status_args="$ac_config_status_args --quiet"
19116 exec 5>/dev/null
19117 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19118 exec 5>>config.log
19119 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19120 # would make configure fail if this is the last instruction.
19121 $ac_cs_success || as_fn_exit 1
19122 fi
19123 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19125 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19126 fi
19127