Daily bump.
[gcc.git] / libcc1 / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libcc1 version-unused.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='libcc1'
589 PACKAGE_TARNAME='libcc1'
590 PACKAGE_VERSION='version-unused'
591 PACKAGE_STRING='libcc1 version-unused'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="libcc1.cc"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 ENABLE_PLUGIN_FALSE
637 ENABLE_PLUGIN_TRUE
638 DARWIN_DYNAMIC_LOOKUP_FALSE
639 DARWIN_DYNAMIC_LOOKUP_TRUE
640 libsuffix
641 GMPINC
642 WERROR
643 WARN_FLAGS
644 CONFIG_STATUS_DEPENDENCIES
645 gcc_version
646 get_gcc_base_ver
647 CET_HOST_FLAGS
648 visibility
649 CXXCPP
650 am__fastdepCXX_FALSE
651 am__fastdepCXX_TRUE
652 CXXDEPMODE
653 ac_ct_CXX
654 CXXFLAGS
655 CXX
656 OTOOL64
657 OTOOL
658 LIPO
659 NMEDIT
660 DSYMUTIL
661 RANLIB
662 AR
663 OBJDUMP
664 LN_S
665 NM
666 ac_ct_DUMPBIN
667 DUMPBIN
668 LD
669 FGREP
670 SED
671 LIBTOOL
672 MAINT
673 MAINTAINER_MODE_FALSE
674 MAINTAINER_MODE_TRUE
675 AM_BACKSLASH
676 AM_DEFAULT_VERBOSITY
677 AM_DEFAULT_V
678 AM_V
679 am__fastdepCC_FALSE
680 am__fastdepCC_TRUE
681 CCDEPMODE
682 am__nodep
683 AMDEPBACKSLASH
684 AMDEP_FALSE
685 AMDEP_TRUE
686 am__quote
687 am__include
688 DEPDIR
689 am__untar
690 am__tar
691 AMTAR
692 am__leading_dot
693 SET_MAKE
694 AWK
695 mkdir_p
696 MKDIR_P
697 INSTALL_STRIP_PROGRAM
698 STRIP
699 install_sh
700 MAKEINFO
701 AUTOHEADER
702 AUTOMAKE
703 AUTOCONF
704 ACLOCAL
705 VERSION
706 PACKAGE
707 CYGPATH_W
708 am__isrc
709 INSTALL_DATA
710 INSTALL_SCRIPT
711 INSTALL_PROGRAM
712 target_subdir
713 host_subdir
714 build_subdir
715 build_libsubdir
716 target_noncanonical
717 EGREP
718 GREP
719 CPP
720 OBJEXT
721 EXEEXT
722 ac_ct_CC
723 CPPFLAGS
724 LDFLAGS
725 CFLAGS
726 CC
727 target_os
728 target_vendor
729 target_cpu
730 target
731 host_os
732 host_vendor
733 host_cpu
734 host
735 build_os
736 build_vendor
737 build_cpu
738 build
739 target_alias
740 host_alias
741 build_alias
742 LIBS
743 ECHO_T
744 ECHO_N
745 ECHO_C
746 DEFS
747 mandir
748 localedir
749 libdir
750 psdir
751 pdfdir
752 dvidir
753 htmldir
754 infodir
755 docdir
756 oldincludedir
757 includedir
758 localstatedir
759 sharedstatedir
760 sysconfdir
761 datadir
762 datarootdir
763 libexecdir
764 sbindir
765 bindir
766 program_transform_name
767 prefix
768 exec_prefix
769 PACKAGE_URL
770 PACKAGE_BUGREPORT
771 PACKAGE_STRING
772 PACKAGE_VERSION
773 PACKAGE_TARNAME
774 PACKAGE_NAME
775 PATH_SEPARATOR
776 SHELL'
777 ac_subst_files=''
778 ac_user_opts='
779 enable_option_checking
780 with_build_libsubdir
781 enable_dependency_tracking
782 enable_silent_rules
783 enable_maintainer_mode
784 enable_static
785 enable_shared
786 with_pic
787 enable_fast_install
788 with_gnu_ld
789 enable_libtool_lock
790 enable_cet
791 with_gcc_major_version_only
792 enable_werror_always
793 enable_plugin
794 '
795 ac_precious_vars='build_alias
796 host_alias
797 target_alias
798 CC
799 CFLAGS
800 LDFLAGS
801 LIBS
802 CPPFLAGS
803 CPP
804 CXX
805 CXXFLAGS
806 CCC
807 CXXCPP
808 GMPINC'
809
810
811 # Initialize some variables set by options.
812 ac_init_help=
813 ac_init_version=false
814 ac_unrecognized_opts=
815 ac_unrecognized_sep=
816 # The variables have the same names as the options, with
817 # dashes changed to underlines.
818 cache_file=/dev/null
819 exec_prefix=NONE
820 no_create=
821 no_recursion=
822 prefix=NONE
823 program_prefix=NONE
824 program_suffix=NONE
825 program_transform_name=s,x,x,
826 silent=
827 site=
828 srcdir=
829 verbose=
830 x_includes=NONE
831 x_libraries=NONE
832
833 # Installation directory options.
834 # These are left unexpanded so users can "make install exec_prefix=/foo"
835 # and all the variables that are supposed to be based on exec_prefix
836 # by default will actually change.
837 # Use braces instead of parens because sh, perl, etc. also accept them.
838 # (The list follows the same order as the GNU Coding Standards.)
839 bindir='${exec_prefix}/bin'
840 sbindir='${exec_prefix}/sbin'
841 libexecdir='${exec_prefix}/libexec'
842 datarootdir='${prefix}/share'
843 datadir='${datarootdir}'
844 sysconfdir='${prefix}/etc'
845 sharedstatedir='${prefix}/com'
846 localstatedir='${prefix}/var'
847 includedir='${prefix}/include'
848 oldincludedir='/usr/include'
849 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
850 infodir='${datarootdir}/info'
851 htmldir='${docdir}'
852 dvidir='${docdir}'
853 pdfdir='${docdir}'
854 psdir='${docdir}'
855 libdir='${exec_prefix}/lib'
856 localedir='${datarootdir}/locale'
857 mandir='${datarootdir}/man'
858
859 ac_prev=
860 ac_dashdash=
861 for ac_option
862 do
863 # If the previous option needs an argument, assign it.
864 if test -n "$ac_prev"; then
865 eval $ac_prev=\$ac_option
866 ac_prev=
867 continue
868 fi
869
870 case $ac_option in
871 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
872 *=) ac_optarg= ;;
873 *) ac_optarg=yes ;;
874 esac
875
876 # Accept the important Cygnus configure options, so we can diagnose typos.
877
878 case $ac_dashdash$ac_option in
879 --)
880 ac_dashdash=yes ;;
881
882 -bindir | --bindir | --bindi | --bind | --bin | --bi)
883 ac_prev=bindir ;;
884 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
885 bindir=$ac_optarg ;;
886
887 -build | --build | --buil | --bui | --bu)
888 ac_prev=build_alias ;;
889 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
890 build_alias=$ac_optarg ;;
891
892 -cache-file | --cache-file | --cache-fil | --cache-fi \
893 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
894 ac_prev=cache_file ;;
895 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
896 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
897 cache_file=$ac_optarg ;;
898
899 --config-cache | -C)
900 cache_file=config.cache ;;
901
902 -datadir | --datadir | --datadi | --datad)
903 ac_prev=datadir ;;
904 -datadir=* | --datadir=* | --datadi=* | --datad=*)
905 datadir=$ac_optarg ;;
906
907 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
908 | --dataroo | --dataro | --datar)
909 ac_prev=datarootdir ;;
910 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
911 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
912 datarootdir=$ac_optarg ;;
913
914 -disable-* | --disable-*)
915 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
916 # Reject names that are not valid shell variable names.
917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
918 as_fn_error $? "invalid feature name: $ac_useropt"
919 ac_useropt_orig=$ac_useropt
920 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
921 case $ac_user_opts in
922 *"
923 "enable_$ac_useropt"
924 "*) ;;
925 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
926 ac_unrecognized_sep=', ';;
927 esac
928 eval enable_$ac_useropt=no ;;
929
930 -docdir | --docdir | --docdi | --doc | --do)
931 ac_prev=docdir ;;
932 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
933 docdir=$ac_optarg ;;
934
935 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
936 ac_prev=dvidir ;;
937 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
938 dvidir=$ac_optarg ;;
939
940 -enable-* | --enable-*)
941 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
942 # Reject names that are not valid shell variable names.
943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944 as_fn_error $? "invalid feature name: $ac_useropt"
945 ac_useropt_orig=$ac_useropt
946 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947 case $ac_user_opts in
948 *"
949 "enable_$ac_useropt"
950 "*) ;;
951 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
952 ac_unrecognized_sep=', ';;
953 esac
954 eval enable_$ac_useropt=\$ac_optarg ;;
955
956 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
957 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
958 | --exec | --exe | --ex)
959 ac_prev=exec_prefix ;;
960 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
961 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
962 | --exec=* | --exe=* | --ex=*)
963 exec_prefix=$ac_optarg ;;
964
965 -gas | --gas | --ga | --g)
966 # Obsolete; use --with-gas.
967 with_gas=yes ;;
968
969 -help | --help | --hel | --he | -h)
970 ac_init_help=long ;;
971 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
972 ac_init_help=recursive ;;
973 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
974 ac_init_help=short ;;
975
976 -host | --host | --hos | --ho)
977 ac_prev=host_alias ;;
978 -host=* | --host=* | --hos=* | --ho=*)
979 host_alias=$ac_optarg ;;
980
981 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
982 ac_prev=htmldir ;;
983 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
984 | --ht=*)
985 htmldir=$ac_optarg ;;
986
987 -includedir | --includedir | --includedi | --included | --include \
988 | --includ | --inclu | --incl | --inc)
989 ac_prev=includedir ;;
990 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
991 | --includ=* | --inclu=* | --incl=* | --inc=*)
992 includedir=$ac_optarg ;;
993
994 -infodir | --infodir | --infodi | --infod | --info | --inf)
995 ac_prev=infodir ;;
996 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
997 infodir=$ac_optarg ;;
998
999 -libdir | --libdir | --libdi | --libd)
1000 ac_prev=libdir ;;
1001 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1002 libdir=$ac_optarg ;;
1003
1004 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1005 | --libexe | --libex | --libe)
1006 ac_prev=libexecdir ;;
1007 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1008 | --libexe=* | --libex=* | --libe=*)
1009 libexecdir=$ac_optarg ;;
1010
1011 -localedir | --localedir | --localedi | --localed | --locale)
1012 ac_prev=localedir ;;
1013 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1014 localedir=$ac_optarg ;;
1015
1016 -localstatedir | --localstatedir | --localstatedi | --localstated \
1017 | --localstate | --localstat | --localsta | --localst | --locals)
1018 ac_prev=localstatedir ;;
1019 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1020 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1021 localstatedir=$ac_optarg ;;
1022
1023 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1024 ac_prev=mandir ;;
1025 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1026 mandir=$ac_optarg ;;
1027
1028 -nfp | --nfp | --nf)
1029 # Obsolete; use --without-fp.
1030 with_fp=no ;;
1031
1032 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1033 | --no-cr | --no-c | -n)
1034 no_create=yes ;;
1035
1036 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1037 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1038 no_recursion=yes ;;
1039
1040 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1041 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1042 | --oldin | --oldi | --old | --ol | --o)
1043 ac_prev=oldincludedir ;;
1044 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1045 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1046 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1047 oldincludedir=$ac_optarg ;;
1048
1049 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1050 ac_prev=prefix ;;
1051 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1052 prefix=$ac_optarg ;;
1053
1054 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1055 | --program-pre | --program-pr | --program-p)
1056 ac_prev=program_prefix ;;
1057 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1058 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1059 program_prefix=$ac_optarg ;;
1060
1061 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1062 | --program-suf | --program-su | --program-s)
1063 ac_prev=program_suffix ;;
1064 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1065 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1066 program_suffix=$ac_optarg ;;
1067
1068 -program-transform-name | --program-transform-name \
1069 | --program-transform-nam | --program-transform-na \
1070 | --program-transform-n | --program-transform- \
1071 | --program-transform | --program-transfor \
1072 | --program-transfo | --program-transf \
1073 | --program-trans | --program-tran \
1074 | --progr-tra | --program-tr | --program-t)
1075 ac_prev=program_transform_name ;;
1076 -program-transform-name=* | --program-transform-name=* \
1077 | --program-transform-nam=* | --program-transform-na=* \
1078 | --program-transform-n=* | --program-transform-=* \
1079 | --program-transform=* | --program-transfor=* \
1080 | --program-transfo=* | --program-transf=* \
1081 | --program-trans=* | --program-tran=* \
1082 | --progr-tra=* | --program-tr=* | --program-t=*)
1083 program_transform_name=$ac_optarg ;;
1084
1085 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1086 ac_prev=pdfdir ;;
1087 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1088 pdfdir=$ac_optarg ;;
1089
1090 -psdir | --psdir | --psdi | --psd | --ps)
1091 ac_prev=psdir ;;
1092 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1093 psdir=$ac_optarg ;;
1094
1095 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1096 | -silent | --silent | --silen | --sile | --sil)
1097 silent=yes ;;
1098
1099 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1100 ac_prev=sbindir ;;
1101 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1102 | --sbi=* | --sb=*)
1103 sbindir=$ac_optarg ;;
1104
1105 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1106 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1107 | --sharedst | --shareds | --shared | --share | --shar \
1108 | --sha | --sh)
1109 ac_prev=sharedstatedir ;;
1110 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1111 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1112 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1113 | --sha=* | --sh=*)
1114 sharedstatedir=$ac_optarg ;;
1115
1116 -site | --site | --sit)
1117 ac_prev=site ;;
1118 -site=* | --site=* | --sit=*)
1119 site=$ac_optarg ;;
1120
1121 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1122 ac_prev=srcdir ;;
1123 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1124 srcdir=$ac_optarg ;;
1125
1126 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1127 | --syscon | --sysco | --sysc | --sys | --sy)
1128 ac_prev=sysconfdir ;;
1129 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1130 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1131 sysconfdir=$ac_optarg ;;
1132
1133 -target | --target | --targe | --targ | --tar | --ta | --t)
1134 ac_prev=target_alias ;;
1135 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1136 target_alias=$ac_optarg ;;
1137
1138 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1139 verbose=yes ;;
1140
1141 -version | --version | --versio | --versi | --vers | -V)
1142 ac_init_version=: ;;
1143
1144 -with-* | --with-*)
1145 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1146 # Reject names that are not valid shell variable names.
1147 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148 as_fn_error $? "invalid package name: $ac_useropt"
1149 ac_useropt_orig=$ac_useropt
1150 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151 case $ac_user_opts in
1152 *"
1153 "with_$ac_useropt"
1154 "*) ;;
1155 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1156 ac_unrecognized_sep=', ';;
1157 esac
1158 eval with_$ac_useropt=\$ac_optarg ;;
1159
1160 -without-* | --without-*)
1161 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1162 # Reject names that are not valid shell variable names.
1163 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1164 as_fn_error $? "invalid package name: $ac_useropt"
1165 ac_useropt_orig=$ac_useropt
1166 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1167 case $ac_user_opts in
1168 *"
1169 "with_$ac_useropt"
1170 "*) ;;
1171 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1172 ac_unrecognized_sep=', ';;
1173 esac
1174 eval with_$ac_useropt=no ;;
1175
1176 --x)
1177 # Obsolete; use --with-x.
1178 with_x=yes ;;
1179
1180 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1181 | --x-incl | --x-inc | --x-in | --x-i)
1182 ac_prev=x_includes ;;
1183 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1184 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1185 x_includes=$ac_optarg ;;
1186
1187 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1188 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1189 ac_prev=x_libraries ;;
1190 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1191 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1192 x_libraries=$ac_optarg ;;
1193
1194 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1195 Try \`$0 --help' for more information"
1196 ;;
1197
1198 *=*)
1199 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1200 # Reject names that are not valid shell variable names.
1201 case $ac_envvar in #(
1202 '' | [0-9]* | *[!_$as_cr_alnum]* )
1203 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1204 esac
1205 eval $ac_envvar=\$ac_optarg
1206 export $ac_envvar ;;
1207
1208 *)
1209 # FIXME: should be removed in autoconf 3.0.
1210 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1211 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1212 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1213 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1214 ;;
1215
1216 esac
1217 done
1218
1219 if test -n "$ac_prev"; then
1220 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1221 as_fn_error $? "missing argument to $ac_option"
1222 fi
1223
1224 if test -n "$ac_unrecognized_opts"; then
1225 case $enable_option_checking in
1226 no) ;;
1227 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1228 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1229 esac
1230 fi
1231
1232 # Check all directory arguments for consistency.
1233 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1234 datadir sysconfdir sharedstatedir localstatedir includedir \
1235 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1236 libdir localedir mandir
1237 do
1238 eval ac_val=\$$ac_var
1239 # Remove trailing slashes.
1240 case $ac_val in
1241 */ )
1242 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1243 eval $ac_var=\$ac_val;;
1244 esac
1245 # Be sure to have absolute directory names.
1246 case $ac_val in
1247 [\\/$]* | ?:[\\/]* ) continue;;
1248 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1249 esac
1250 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1251 done
1252
1253 # There might be people who depend on the old broken behavior: `$host'
1254 # used to hold the argument of --host etc.
1255 # FIXME: To remove some day.
1256 build=$build_alias
1257 host=$host_alias
1258 target=$target_alias
1259
1260 # FIXME: To remove some day.
1261 if test "x$host_alias" != x; then
1262 if test "x$build_alias" = x; then
1263 cross_compiling=maybe
1264 elif test "x$build_alias" != "x$host_alias"; then
1265 cross_compiling=yes
1266 fi
1267 fi
1268
1269 ac_tool_prefix=
1270 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1271
1272 test "$silent" = yes && exec 6>/dev/null
1273
1274
1275 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1276 ac_ls_di=`ls -di .` &&
1277 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1278 as_fn_error $? "working directory cannot be determined"
1279 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1280 as_fn_error $? "pwd does not report name of working directory"
1281
1282
1283 # Find the source files, if location was not specified.
1284 if test -z "$srcdir"; then
1285 ac_srcdir_defaulted=yes
1286 # Try the directory containing this script, then the parent directory.
1287 ac_confdir=`$as_dirname -- "$as_myself" ||
1288 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1289 X"$as_myself" : 'X\(//\)[^/]' \| \
1290 X"$as_myself" : 'X\(//\)$' \| \
1291 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1292 $as_echo X"$as_myself" |
1293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1294 s//\1/
1295 q
1296 }
1297 /^X\(\/\/\)[^/].*/{
1298 s//\1/
1299 q
1300 }
1301 /^X\(\/\/\)$/{
1302 s//\1/
1303 q
1304 }
1305 /^X\(\/\).*/{
1306 s//\1/
1307 q
1308 }
1309 s/.*/./; q'`
1310 srcdir=$ac_confdir
1311 if test ! -r "$srcdir/$ac_unique_file"; then
1312 srcdir=..
1313 fi
1314 else
1315 ac_srcdir_defaulted=no
1316 fi
1317 if test ! -r "$srcdir/$ac_unique_file"; then
1318 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1319 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1320 fi
1321 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1322 ac_abs_confdir=`(
1323 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1324 pwd)`
1325 # When building in place, set srcdir=.
1326 if test "$ac_abs_confdir" = "$ac_pwd"; then
1327 srcdir=.
1328 fi
1329 # Remove unnecessary trailing slashes from srcdir.
1330 # Double slashes in file names in object file debugging info
1331 # mess up M-x gdb in Emacs.
1332 case $srcdir in
1333 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1334 esac
1335 for ac_var in $ac_precious_vars; do
1336 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1337 eval ac_env_${ac_var}_value=\$${ac_var}
1338 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1339 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1340 done
1341
1342 #
1343 # Report the --help message.
1344 #
1345 if test "$ac_init_help" = "long"; then
1346 # Omit some internal or obsolete options to make the list less imposing.
1347 # This message is too long to be a string in the A/UX 3.1 sh.
1348 cat <<_ACEOF
1349 \`configure' configures libcc1 version-unused to adapt to many kinds of systems.
1350
1351 Usage: $0 [OPTION]... [VAR=VALUE]...
1352
1353 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1354 VAR=VALUE. See below for descriptions of some of the useful variables.
1355
1356 Defaults for the options are specified in brackets.
1357
1358 Configuration:
1359 -h, --help display this help and exit
1360 --help=short display options specific to this package
1361 --help=recursive display the short help of all the included packages
1362 -V, --version display version information and exit
1363 -q, --quiet, --silent do not print \`checking ...' messages
1364 --cache-file=FILE cache test results in FILE [disabled]
1365 -C, --config-cache alias for \`--cache-file=config.cache'
1366 -n, --no-create do not create output files
1367 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1368
1369 Installation directories:
1370 --prefix=PREFIX install architecture-independent files in PREFIX
1371 [$ac_default_prefix]
1372 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1373 [PREFIX]
1374
1375 By default, \`make install' will install all the files in
1376 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1377 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1378 for instance \`--prefix=\$HOME'.
1379
1380 For better control, use the options below.
1381
1382 Fine tuning of the installation directories:
1383 --bindir=DIR user executables [EPREFIX/bin]
1384 --sbindir=DIR system admin executables [EPREFIX/sbin]
1385 --libexecdir=DIR program executables [EPREFIX/libexec]
1386 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1387 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1388 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1389 --libdir=DIR object code libraries [EPREFIX/lib]
1390 --includedir=DIR C header files [PREFIX/include]
1391 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1392 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1393 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1394 --infodir=DIR info documentation [DATAROOTDIR/info]
1395 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1396 --mandir=DIR man documentation [DATAROOTDIR/man]
1397 --docdir=DIR documentation root [DATAROOTDIR/doc/libcc1]
1398 --htmldir=DIR html documentation [DOCDIR]
1399 --dvidir=DIR dvi documentation [DOCDIR]
1400 --pdfdir=DIR pdf documentation [DOCDIR]
1401 --psdir=DIR ps documentation [DOCDIR]
1402 _ACEOF
1403
1404 cat <<\_ACEOF
1405
1406 Program names:
1407 --program-prefix=PREFIX prepend PREFIX to installed program names
1408 --program-suffix=SUFFIX append SUFFIX to installed program names
1409 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1410
1411 System types:
1412 --build=BUILD configure for building on BUILD [guessed]
1413 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1414 --target=TARGET configure for building compilers for TARGET [HOST]
1415 _ACEOF
1416 fi
1417
1418 if test -n "$ac_init_help"; then
1419 case $ac_init_help in
1420 short | recursive ) echo "Configuration of libcc1 version-unused:";;
1421 esac
1422 cat <<\_ACEOF
1423
1424 Optional Features:
1425 --disable-option-checking ignore unrecognized --enable/--with options
1426 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1427 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1428 --enable-dependency-tracking
1429 do not reject slow dependency extractors
1430 --disable-dependency-tracking
1431 speeds up one-time build
1432 --enable-silent-rules less verbose build output (undo: "make V=1")
1433 --disable-silent-rules verbose build output (undo: "make V=0")
1434 --enable-maintainer-mode
1435 enable make rules and dependencies not useful (and
1436 sometimes confusing) to the casual installer
1437 --enable-static[=PKGS] build static libraries [default=no]
1438 --enable-shared[=PKGS] build shared libraries [default=yes]
1439 --enable-fast-install[=PKGS]
1440 optimize for fast installation [default=yes]
1441 --disable-libtool-lock avoid locking (might break parallel builds)
1442 --enable-cet enable Intel CET in host libraries [default=auto]
1443 --enable-werror-always enable -Werror despite compiler version
1444 --enable-plugin enable plugin support
1445
1446 Optional Packages:
1447 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1448 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1449 --with-build-libsubdir=DIR Directory where to find libraries for build system
1450 --with-pic try to use only PIC/non-PIC objects [default=use
1451 both]
1452 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1453 --with-gcc-major-version-only
1454 use only GCC major number in filesystem paths
1455
1456 Some influential environment variables:
1457 CC C compiler command
1458 CFLAGS C compiler flags
1459 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1460 nonstandard directory <lib dir>
1461 LIBS libraries to pass to the linker, e.g. -l<library>
1462 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1463 you have headers in a nonstandard directory <include dir>
1464 CPP C preprocessor
1465 CXX C++ compiler command
1466 CXXFLAGS C++ compiler flags
1467 CXXCPP C++ preprocessor
1468 GMPINC How to find GMP include files
1469
1470 Use these variables to override the choices made by `configure' or to help
1471 it to find libraries and programs with nonstandard names/locations.
1472
1473 Report bugs to the package provider.
1474 _ACEOF
1475 ac_status=$?
1476 fi
1477
1478 if test "$ac_init_help" = "recursive"; then
1479 # If there are subdirs, report their specific --help.
1480 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1481 test -d "$ac_dir" ||
1482 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1483 continue
1484 ac_builddir=.
1485
1486 case "$ac_dir" in
1487 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488 *)
1489 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1490 # A ".." for each directory in $ac_dir_suffix.
1491 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1492 case $ac_top_builddir_sub in
1493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1495 esac ;;
1496 esac
1497 ac_abs_top_builddir=$ac_pwd
1498 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499 # for backward compatibility:
1500 ac_top_builddir=$ac_top_build_prefix
1501
1502 case $srcdir in
1503 .) # We are building in place.
1504 ac_srcdir=.
1505 ac_top_srcdir=$ac_top_builddir_sub
1506 ac_abs_top_srcdir=$ac_pwd ;;
1507 [\\/]* | ?:[\\/]* ) # Absolute name.
1508 ac_srcdir=$srcdir$ac_dir_suffix;
1509 ac_top_srcdir=$srcdir
1510 ac_abs_top_srcdir=$srcdir ;;
1511 *) # Relative name.
1512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513 ac_top_srcdir=$ac_top_build_prefix$srcdir
1514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1515 esac
1516 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1517
1518 cd "$ac_dir" || { ac_status=$?; continue; }
1519 # Check for guested configure.
1520 if test -f "$ac_srcdir/configure.gnu"; then
1521 echo &&
1522 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523 elif test -f "$ac_srcdir/configure"; then
1524 echo &&
1525 $SHELL "$ac_srcdir/configure" --help=recursive
1526 else
1527 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1528 fi || ac_status=$?
1529 cd "$ac_pwd" || { ac_status=$?; break; }
1530 done
1531 fi
1532
1533 test -n "$ac_init_help" && exit $ac_status
1534 if $ac_init_version; then
1535 cat <<\_ACEOF
1536 libcc1 configure version-unused
1537 generated by GNU Autoconf 2.69
1538
1539 Copyright (C) 2012 Free Software Foundation, Inc.
1540 This configure script is free software; the Free Software Foundation
1541 gives unlimited permission to copy, distribute and modify it.
1542 _ACEOF
1543 exit
1544 fi
1545
1546 ## ------------------------ ##
1547 ## Autoconf initialization. ##
1548 ## ------------------------ ##
1549
1550 # ac_fn_c_try_compile LINENO
1551 # --------------------------
1552 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1553 ac_fn_c_try_compile ()
1554 {
1555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1556 rm -f conftest.$ac_objext
1557 if { { ac_try="$ac_compile"
1558 case "(($ac_try" in
1559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1560 *) ac_try_echo=$ac_try;;
1561 esac
1562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1563 $as_echo "$ac_try_echo"; } >&5
1564 (eval "$ac_compile") 2>conftest.err
1565 ac_status=$?
1566 if test -s conftest.err; then
1567 grep -v '^ *+' conftest.err >conftest.er1
1568 cat conftest.er1 >&5
1569 mv -f conftest.er1 conftest.err
1570 fi
1571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1572 test $ac_status = 0; } && {
1573 test -z "$ac_c_werror_flag" ||
1574 test ! -s conftest.err
1575 } && test -s conftest.$ac_objext; then :
1576 ac_retval=0
1577 else
1578 $as_echo "$as_me: failed program was:" >&5
1579 sed 's/^/| /' conftest.$ac_ext >&5
1580
1581 ac_retval=1
1582 fi
1583 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1584 as_fn_set_status $ac_retval
1585
1586 } # ac_fn_c_try_compile
1587
1588 # ac_fn_c_try_cpp LINENO
1589 # ----------------------
1590 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1591 ac_fn_c_try_cpp ()
1592 {
1593 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1594 if { { ac_try="$ac_cpp conftest.$ac_ext"
1595 case "(($ac_try" in
1596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1597 *) ac_try_echo=$ac_try;;
1598 esac
1599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1600 $as_echo "$ac_try_echo"; } >&5
1601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1602 ac_status=$?
1603 if test -s conftest.err; then
1604 grep -v '^ *+' conftest.err >conftest.er1
1605 cat conftest.er1 >&5
1606 mv -f conftest.er1 conftest.err
1607 fi
1608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1609 test $ac_status = 0; } > conftest.i && {
1610 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1611 test ! -s conftest.err
1612 }; then :
1613 ac_retval=0
1614 else
1615 $as_echo "$as_me: failed program was:" >&5
1616 sed 's/^/| /' conftest.$ac_ext >&5
1617
1618 ac_retval=1
1619 fi
1620 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1621 as_fn_set_status $ac_retval
1622
1623 } # ac_fn_c_try_cpp
1624
1625 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1626 # -------------------------------------------------------
1627 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1628 # the include files in INCLUDES and setting the cache variable VAR
1629 # accordingly.
1630 ac_fn_c_check_header_mongrel ()
1631 {
1632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633 if eval \${$3+:} false; then :
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1635 $as_echo_n "checking for $2... " >&6; }
1636 if eval \${$3+:} false; then :
1637 $as_echo_n "(cached) " >&6
1638 fi
1639 eval ac_res=\$$3
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1641 $as_echo "$ac_res" >&6; }
1642 else
1643 # Is the header compilable?
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1645 $as_echo_n "checking $2 usability... " >&6; }
1646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1647 /* end confdefs.h. */
1648 $4
1649 #include <$2>
1650 _ACEOF
1651 if ac_fn_c_try_compile "$LINENO"; then :
1652 ac_header_compiler=yes
1653 else
1654 ac_header_compiler=no
1655 fi
1656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1658 $as_echo "$ac_header_compiler" >&6; }
1659
1660 # Is the header present?
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1662 $as_echo_n "checking $2 presence... " >&6; }
1663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1664 /* end confdefs.h. */
1665 #include <$2>
1666 _ACEOF
1667 if ac_fn_c_try_cpp "$LINENO"; then :
1668 ac_header_preproc=yes
1669 else
1670 ac_header_preproc=no
1671 fi
1672 rm -f conftest.err conftest.i conftest.$ac_ext
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1674 $as_echo "$ac_header_preproc" >&6; }
1675
1676 # So? What about this header?
1677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1678 yes:no: )
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1680 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1682 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1683 ;;
1684 no:yes:* )
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1686 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1688 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1690 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1692 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1694 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1695 ;;
1696 esac
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1698 $as_echo_n "checking for $2... " >&6; }
1699 if eval \${$3+:} false; then :
1700 $as_echo_n "(cached) " >&6
1701 else
1702 eval "$3=\$ac_header_compiler"
1703 fi
1704 eval ac_res=\$$3
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1706 $as_echo "$ac_res" >&6; }
1707 fi
1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709
1710 } # ac_fn_c_check_header_mongrel
1711
1712 # ac_fn_c_try_run LINENO
1713 # ----------------------
1714 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1715 # that executables *can* be run.
1716 ac_fn_c_try_run ()
1717 {
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 if { { ac_try="$ac_link"
1720 case "(($ac_try" in
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1723 esac
1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 $as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_link") 2>&5
1727 ac_status=$?
1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1730 { { case "(($ac_try" in
1731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732 *) ac_try_echo=$ac_try;;
1733 esac
1734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735 $as_echo "$ac_try_echo"; } >&5
1736 (eval "$ac_try") 2>&5
1737 ac_status=$?
1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739 test $ac_status = 0; }; }; then :
1740 ac_retval=0
1741 else
1742 $as_echo "$as_me: program exited with status $ac_status" >&5
1743 $as_echo "$as_me: failed program was:" >&5
1744 sed 's/^/| /' conftest.$ac_ext >&5
1745
1746 ac_retval=$ac_status
1747 fi
1748 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750 as_fn_set_status $ac_retval
1751
1752 } # ac_fn_c_try_run
1753
1754 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1755 # -------------------------------------------------------
1756 # Tests whether HEADER exists and can be compiled using the include files in
1757 # INCLUDES, setting the cache variable VAR accordingly.
1758 ac_fn_c_check_header_compile ()
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 $4
1769 #include <$2>
1770 _ACEOF
1771 if ac_fn_c_try_compile "$LINENO"; then :
1772 eval "$3=yes"
1773 else
1774 eval "$3=no"
1775 fi
1776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1777 fi
1778 eval ac_res=\$$3
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1780 $as_echo "$ac_res" >&6; }
1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782
1783 } # ac_fn_c_check_header_compile
1784
1785 # ac_fn_c_try_link LINENO
1786 # -----------------------
1787 # Try to link conftest.$ac_ext, and return whether this succeeded.
1788 ac_fn_c_try_link ()
1789 {
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 rm -f conftest.$ac_objext conftest$ac_exeext
1792 if { { ac_try="$ac_link"
1793 case "(($ac_try" in
1794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1795 *) ac_try_echo=$ac_try;;
1796 esac
1797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1798 $as_echo "$ac_try_echo"; } >&5
1799 (eval "$ac_link") 2>conftest.err
1800 ac_status=$?
1801 if test -s conftest.err; then
1802 grep -v '^ *+' conftest.err >conftest.er1
1803 cat conftest.er1 >&5
1804 mv -f conftest.er1 conftest.err
1805 fi
1806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1807 test $ac_status = 0; } && {
1808 test -z "$ac_c_werror_flag" ||
1809 test ! -s conftest.err
1810 } && test -s conftest$ac_exeext && {
1811 test "$cross_compiling" = yes ||
1812 test -x conftest$ac_exeext
1813 }; then :
1814 ac_retval=0
1815 else
1816 $as_echo "$as_me: failed program was:" >&5
1817 sed 's/^/| /' conftest.$ac_ext >&5
1818
1819 ac_retval=1
1820 fi
1821 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1822 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1823 # interfere with the next link command; also delete a directory that is
1824 # left behind by Apple's compiler. We do this before executing the actions.
1825 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827 as_fn_set_status $ac_retval
1828
1829 } # ac_fn_c_try_link
1830
1831 # ac_fn_c_check_func LINENO FUNC VAR
1832 # ----------------------------------
1833 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1834 ac_fn_c_check_func ()
1835 {
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1838 $as_echo_n "checking for $2... " >&6; }
1839 if eval \${$3+:} false; then :
1840 $as_echo_n "(cached) " >&6
1841 else
1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843 /* end confdefs.h. */
1844 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1846 #define $2 innocuous_$2
1847
1848 /* System header to define __stub macros and hopefully few prototypes,
1849 which can conflict with char $2 (); below.
1850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1851 <limits.h> exists even on freestanding compilers. */
1852
1853 #ifdef __STDC__
1854 # include <limits.h>
1855 #else
1856 # include <assert.h>
1857 #endif
1858
1859 #undef $2
1860
1861 /* Override any GCC internal prototype to avoid an error.
1862 Use char because int might match the return type of a GCC
1863 builtin and then its argument prototype would still apply. */
1864 #ifdef __cplusplus
1865 extern "C"
1866 #endif
1867 char $2 ();
1868 /* The GNU C library defines this for functions which it implements
1869 to always fail with ENOSYS. Some functions are actually named
1870 something starting with __ and the normal name is an alias. */
1871 #if defined __stub_$2 || defined __stub___$2
1872 choke me
1873 #endif
1874
1875 int
1876 main ()
1877 {
1878 return $2 ();
1879 ;
1880 return 0;
1881 }
1882 _ACEOF
1883 if ac_fn_c_try_link "$LINENO"; then :
1884 eval "$3=yes"
1885 else
1886 eval "$3=no"
1887 fi
1888 rm -f core conftest.err conftest.$ac_objext \
1889 conftest$ac_exeext conftest.$ac_ext
1890 fi
1891 eval ac_res=\$$3
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1893 $as_echo "$ac_res" >&6; }
1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895
1896 } # ac_fn_c_check_func
1897
1898 # ac_fn_cxx_try_compile LINENO
1899 # ----------------------------
1900 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1901 ac_fn_cxx_try_compile ()
1902 {
1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904 rm -f conftest.$ac_objext
1905 if { { ac_try="$ac_compile"
1906 case "(($ac_try" in
1907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1908 *) ac_try_echo=$ac_try;;
1909 esac
1910 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1911 $as_echo "$ac_try_echo"; } >&5
1912 (eval "$ac_compile") 2>conftest.err
1913 ac_status=$?
1914 if test -s conftest.err; then
1915 grep -v '^ *+' conftest.err >conftest.er1
1916 cat conftest.er1 >&5
1917 mv -f conftest.er1 conftest.err
1918 fi
1919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1920 test $ac_status = 0; } && {
1921 test -z "$ac_cxx_werror_flag" ||
1922 test ! -s conftest.err
1923 } && test -s conftest.$ac_objext; then :
1924 ac_retval=0
1925 else
1926 $as_echo "$as_me: failed program was:" >&5
1927 sed 's/^/| /' conftest.$ac_ext >&5
1928
1929 ac_retval=1
1930 fi
1931 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1932 as_fn_set_status $ac_retval
1933
1934 } # ac_fn_cxx_try_compile
1935
1936 # ac_fn_cxx_try_cpp LINENO
1937 # ------------------------
1938 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1939 ac_fn_cxx_try_cpp ()
1940 {
1941 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1942 if { { ac_try="$ac_cpp conftest.$ac_ext"
1943 case "(($ac_try" in
1944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1945 *) ac_try_echo=$ac_try;;
1946 esac
1947 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1948 $as_echo "$ac_try_echo"; } >&5
1949 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1950 ac_status=$?
1951 if test -s conftest.err; then
1952 grep -v '^ *+' conftest.err >conftest.er1
1953 cat conftest.er1 >&5
1954 mv -f conftest.er1 conftest.err
1955 fi
1956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1957 test $ac_status = 0; } > conftest.i && {
1958 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1959 test ! -s conftest.err
1960 }; then :
1961 ac_retval=0
1962 else
1963 $as_echo "$as_me: failed program was:" >&5
1964 sed 's/^/| /' conftest.$ac_ext >&5
1965
1966 ac_retval=1
1967 fi
1968 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1969 as_fn_set_status $ac_retval
1970
1971 } # ac_fn_cxx_try_cpp
1972
1973 # ac_fn_cxx_try_link LINENO
1974 # -------------------------
1975 # Try to link conftest.$ac_ext, and return whether this succeeded.
1976 ac_fn_cxx_try_link ()
1977 {
1978 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979 rm -f conftest.$ac_objext conftest$ac_exeext
1980 if { { ac_try="$ac_link"
1981 case "(($ac_try" in
1982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1983 *) ac_try_echo=$ac_try;;
1984 esac
1985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1986 $as_echo "$ac_try_echo"; } >&5
1987 (eval "$ac_link") 2>conftest.err
1988 ac_status=$?
1989 if test -s conftest.err; then
1990 grep -v '^ *+' conftest.err >conftest.er1
1991 cat conftest.er1 >&5
1992 mv -f conftest.er1 conftest.err
1993 fi
1994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1995 test $ac_status = 0; } && {
1996 test -z "$ac_cxx_werror_flag" ||
1997 test ! -s conftest.err
1998 } && test -s conftest$ac_exeext && {
1999 test "$cross_compiling" = yes ||
2000 test -x conftest$ac_exeext
2001 }; then :
2002 ac_retval=0
2003 else
2004 $as_echo "$as_me: failed program was:" >&5
2005 sed 's/^/| /' conftest.$ac_ext >&5
2006
2007 ac_retval=1
2008 fi
2009 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2010 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2011 # interfere with the next link command; also delete a directory that is
2012 # left behind by Apple's compiler. We do this before executing the actions.
2013 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2014 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2015 as_fn_set_status $ac_retval
2016
2017 } # ac_fn_cxx_try_link
2018
2019 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2020 # ---------------------------------------------
2021 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2022 # accordingly.
2023 ac_fn_c_check_decl ()
2024 {
2025 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2026 as_decl_name=`echo $2|sed 's/ *(.*//'`
2027 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2029 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2030 if eval \${$3+:} false; then :
2031 $as_echo_n "(cached) " >&6
2032 else
2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034 /* end confdefs.h. */
2035 $4
2036 int
2037 main ()
2038 {
2039 #ifndef $as_decl_name
2040 #ifdef __cplusplus
2041 (void) $as_decl_use;
2042 #else
2043 (void) $as_decl_name;
2044 #endif
2045 #endif
2046
2047 ;
2048 return 0;
2049 }
2050 _ACEOF
2051 if ac_fn_c_try_compile "$LINENO"; then :
2052 eval "$3=yes"
2053 else
2054 eval "$3=no"
2055 fi
2056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2057 fi
2058 eval ac_res=\$$3
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2060 $as_echo "$ac_res" >&6; }
2061 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2062
2063 } # ac_fn_c_check_decl
2064 cat >config.log <<_ACEOF
2065 This file contains any messages produced by compilers while
2066 running configure, to aid debugging if configure makes a mistake.
2067
2068 It was created by libcc1 $as_me version-unused, which was
2069 generated by GNU Autoconf 2.69. Invocation command line was
2070
2071 $ $0 $@
2072
2073 _ACEOF
2074 exec 5>>config.log
2075 {
2076 cat <<_ASUNAME
2077 ## --------- ##
2078 ## Platform. ##
2079 ## --------- ##
2080
2081 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2082 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2083 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2084 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2085 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2086
2087 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2088 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2089
2090 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2091 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2092 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2093 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2094 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2095 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2096 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2097
2098 _ASUNAME
2099
2100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2101 for as_dir in $PATH
2102 do
2103 IFS=$as_save_IFS
2104 test -z "$as_dir" && as_dir=.
2105 $as_echo "PATH: $as_dir"
2106 done
2107 IFS=$as_save_IFS
2108
2109 } >&5
2110
2111 cat >&5 <<_ACEOF
2112
2113
2114 ## ----------- ##
2115 ## Core tests. ##
2116 ## ----------- ##
2117
2118 _ACEOF
2119
2120
2121 # Keep a trace of the command line.
2122 # Strip out --no-create and --no-recursion so they do not pile up.
2123 # Strip out --silent because we don't want to record it for future runs.
2124 # Also quote any args containing shell meta-characters.
2125 # Make two passes to allow for proper duplicate-argument suppression.
2126 ac_configure_args=
2127 ac_configure_args0=
2128 ac_configure_args1=
2129 ac_must_keep_next=false
2130 for ac_pass in 1 2
2131 do
2132 for ac_arg
2133 do
2134 case $ac_arg in
2135 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2136 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2137 | -silent | --silent | --silen | --sile | --sil)
2138 continue ;;
2139 *\'*)
2140 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2141 esac
2142 case $ac_pass in
2143 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2144 2)
2145 as_fn_append ac_configure_args1 " '$ac_arg'"
2146 if test $ac_must_keep_next = true; then
2147 ac_must_keep_next=false # Got value, back to normal.
2148 else
2149 case $ac_arg in
2150 *=* | --config-cache | -C | -disable-* | --disable-* \
2151 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2152 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2153 | -with-* | --with-* | -without-* | --without-* | --x)
2154 case "$ac_configure_args0 " in
2155 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2156 esac
2157 ;;
2158 -* ) ac_must_keep_next=true ;;
2159 esac
2160 fi
2161 as_fn_append ac_configure_args " '$ac_arg'"
2162 ;;
2163 esac
2164 done
2165 done
2166 { ac_configure_args0=; unset ac_configure_args0;}
2167 { ac_configure_args1=; unset ac_configure_args1;}
2168
2169 # When interrupted or exit'd, cleanup temporary files, and complete
2170 # config.log. We remove comments because anyway the quotes in there
2171 # would cause problems or look ugly.
2172 # WARNING: Use '\'' to represent an apostrophe within the trap.
2173 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2174 trap 'exit_status=$?
2175 # Save into config.log some information that might help in debugging.
2176 {
2177 echo
2178
2179 $as_echo "## ---------------- ##
2180 ## Cache variables. ##
2181 ## ---------------- ##"
2182 echo
2183 # The following way of writing the cache mishandles newlines in values,
2184 (
2185 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2186 eval ac_val=\$$ac_var
2187 case $ac_val in #(
2188 *${as_nl}*)
2189 case $ac_var in #(
2190 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2191 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2192 esac
2193 case $ac_var in #(
2194 _ | IFS | as_nl) ;; #(
2195 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2196 *) { eval $ac_var=; unset $ac_var;} ;;
2197 esac ;;
2198 esac
2199 done
2200 (set) 2>&1 |
2201 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2202 *${as_nl}ac_space=\ *)
2203 sed -n \
2204 "s/'\''/'\''\\\\'\'''\''/g;
2205 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2206 ;; #(
2207 *)
2208 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2209 ;;
2210 esac |
2211 sort
2212 )
2213 echo
2214
2215 $as_echo "## ----------------- ##
2216 ## Output variables. ##
2217 ## ----------------- ##"
2218 echo
2219 for ac_var in $ac_subst_vars
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
2229 if test -n "$ac_subst_files"; then
2230 $as_echo "## ------------------- ##
2231 ## File substitutions. ##
2232 ## ------------------- ##"
2233 echo
2234 for ac_var in $ac_subst_files
2235 do
2236 eval ac_val=\$$ac_var
2237 case $ac_val in
2238 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2239 esac
2240 $as_echo "$ac_var='\''$ac_val'\''"
2241 done | sort
2242 echo
2243 fi
2244
2245 if test -s confdefs.h; then
2246 $as_echo "## ----------- ##
2247 ## confdefs.h. ##
2248 ## ----------- ##"
2249 echo
2250 cat confdefs.h
2251 echo
2252 fi
2253 test "$ac_signal" != 0 &&
2254 $as_echo "$as_me: caught signal $ac_signal"
2255 $as_echo "$as_me: exit $exit_status"
2256 } >&5
2257 rm -f core *.core core.conftest.* &&
2258 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2259 exit $exit_status
2260 ' 0
2261 for ac_signal in 1 2 13 15; do
2262 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2263 done
2264 ac_signal=0
2265
2266 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2267 rm -f -r conftest* confdefs.h
2268
2269 $as_echo "/* confdefs.h */" > confdefs.h
2270
2271 # Predefined preprocessor variables.
2272
2273 cat >>confdefs.h <<_ACEOF
2274 #define PACKAGE_NAME "$PACKAGE_NAME"
2275 _ACEOF
2276
2277 cat >>confdefs.h <<_ACEOF
2278 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2279 _ACEOF
2280
2281 cat >>confdefs.h <<_ACEOF
2282 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2283 _ACEOF
2284
2285 cat >>confdefs.h <<_ACEOF
2286 #define PACKAGE_STRING "$PACKAGE_STRING"
2287 _ACEOF
2288
2289 cat >>confdefs.h <<_ACEOF
2290 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2291 _ACEOF
2292
2293 cat >>confdefs.h <<_ACEOF
2294 #define PACKAGE_URL "$PACKAGE_URL"
2295 _ACEOF
2296
2297
2298 # Let the site file select an alternate cache file if it wants to.
2299 # Prefer an explicitly selected file to automatically selected ones.
2300 ac_site_file1=NONE
2301 ac_site_file2=NONE
2302 if test -n "$CONFIG_SITE"; then
2303 # We do not want a PATH search for config.site.
2304 case $CONFIG_SITE in #((
2305 -*) ac_site_file1=./$CONFIG_SITE;;
2306 */*) ac_site_file1=$CONFIG_SITE;;
2307 *) ac_site_file1=./$CONFIG_SITE;;
2308 esac
2309 elif test "x$prefix" != xNONE; then
2310 ac_site_file1=$prefix/share/config.site
2311 ac_site_file2=$prefix/etc/config.site
2312 else
2313 ac_site_file1=$ac_default_prefix/share/config.site
2314 ac_site_file2=$ac_default_prefix/etc/config.site
2315 fi
2316 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2317 do
2318 test "x$ac_site_file" = xNONE && continue
2319 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2321 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2322 sed 's/^/| /' "$ac_site_file" >&5
2323 . "$ac_site_file" \
2324 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2325 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2326 as_fn_error $? "failed to load site script $ac_site_file
2327 See \`config.log' for more details" "$LINENO" 5; }
2328 fi
2329 done
2330
2331 if test -r "$cache_file"; then
2332 # Some versions of bash will fail to source /dev/null (special files
2333 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2334 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2336 $as_echo "$as_me: loading cache $cache_file" >&6;}
2337 case $cache_file in
2338 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2339 *) . "./$cache_file";;
2340 esac
2341 fi
2342 else
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2344 $as_echo "$as_me: creating cache $cache_file" >&6;}
2345 >$cache_file
2346 fi
2347
2348 # Check that the precious variables saved in the cache have kept the same
2349 # value.
2350 ac_cache_corrupted=false
2351 for ac_var in $ac_precious_vars; do
2352 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2353 eval ac_new_set=\$ac_env_${ac_var}_set
2354 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2355 eval ac_new_val=\$ac_env_${ac_var}_value
2356 case $ac_old_set,$ac_new_set in
2357 set,)
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2359 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2360 ac_cache_corrupted=: ;;
2361 ,set)
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2363 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2364 ac_cache_corrupted=: ;;
2365 ,);;
2366 *)
2367 if test "x$ac_old_val" != "x$ac_new_val"; then
2368 # differences in whitespace do not lead to failure.
2369 ac_old_val_w=`echo x $ac_old_val`
2370 ac_new_val_w=`echo x $ac_new_val`
2371 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2373 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2374 ac_cache_corrupted=:
2375 else
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2377 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2378 eval $ac_var=\$ac_old_val
2379 fi
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2381 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2383 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2384 fi;;
2385 esac
2386 # Pass precious variables to config.status.
2387 if test "$ac_new_set" = set; then
2388 case $ac_new_val in
2389 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2390 *) ac_arg=$ac_var=$ac_new_val ;;
2391 esac
2392 case " $ac_configure_args " in
2393 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2394 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2395 esac
2396 fi
2397 done
2398 if $ac_cache_corrupted; then
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2402 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2403 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2404 fi
2405 ## -------------------- ##
2406 ## Main body of script. ##
2407 ## -------------------- ##
2408
2409 ac_ext=c
2410 ac_cpp='$CPP $CPPFLAGS'
2411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2414
2415
2416
2417
2418
2419
2420 ac_config_headers="$ac_config_headers cc1plugin-config.h"
2421
2422
2423 ac_aux_dir=
2424 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2425 if test -f "$ac_dir/install-sh"; then
2426 ac_aux_dir=$ac_dir
2427 ac_install_sh="$ac_aux_dir/install-sh -c"
2428 break
2429 elif test -f "$ac_dir/install.sh"; then
2430 ac_aux_dir=$ac_dir
2431 ac_install_sh="$ac_aux_dir/install.sh -c"
2432 break
2433 elif test -f "$ac_dir/shtool"; then
2434 ac_aux_dir=$ac_dir
2435 ac_install_sh="$ac_aux_dir/shtool install -c"
2436 break
2437 fi
2438 done
2439 if test -z "$ac_aux_dir"; then
2440 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2441 fi
2442
2443 # These three variables are undocumented and unsupported,
2444 # and are intended to be withdrawn in a future Autoconf release.
2445 # They can cause serious problems if a builder's source tree is in a directory
2446 # whose full name contains unusual characters.
2447 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2448 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2449 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2450
2451
2452 # Make sure we can run config.sub.
2453 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2454 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2455
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2457 $as_echo_n "checking build system type... " >&6; }
2458 if ${ac_cv_build+:} false; then :
2459 $as_echo_n "(cached) " >&6
2460 else
2461 ac_build_alias=$build_alias
2462 test "x$ac_build_alias" = x &&
2463 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2464 test "x$ac_build_alias" = x &&
2465 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2466 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2467 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2468
2469 fi
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2471 $as_echo "$ac_cv_build" >&6; }
2472 case $ac_cv_build in
2473 *-*-*) ;;
2474 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2475 esac
2476 build=$ac_cv_build
2477 ac_save_IFS=$IFS; IFS='-'
2478 set x $ac_cv_build
2479 shift
2480 build_cpu=$1
2481 build_vendor=$2
2482 shift; shift
2483 # Remember, the first character of IFS is used to create $*,
2484 # except with old shells:
2485 build_os=$*
2486 IFS=$ac_save_IFS
2487 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2488
2489
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2491 $as_echo_n "checking host system type... " >&6; }
2492 if ${ac_cv_host+:} false; then :
2493 $as_echo_n "(cached) " >&6
2494 else
2495 if test "x$host_alias" = x; then
2496 ac_cv_host=$ac_cv_build
2497 else
2498 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2499 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2500 fi
2501
2502 fi
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2504 $as_echo "$ac_cv_host" >&6; }
2505 case $ac_cv_host in
2506 *-*-*) ;;
2507 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2508 esac
2509 host=$ac_cv_host
2510 ac_save_IFS=$IFS; IFS='-'
2511 set x $ac_cv_host
2512 shift
2513 host_cpu=$1
2514 host_vendor=$2
2515 shift; shift
2516 # Remember, the first character of IFS is used to create $*,
2517 # except with old shells:
2518 host_os=$*
2519 IFS=$ac_save_IFS
2520 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2521
2522
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2524 $as_echo_n "checking target system type... " >&6; }
2525 if ${ac_cv_target+:} false; then :
2526 $as_echo_n "(cached) " >&6
2527 else
2528 if test "x$target_alias" = x; then
2529 ac_cv_target=$ac_cv_host
2530 else
2531 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2532 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2533 fi
2534
2535 fi
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2537 $as_echo "$ac_cv_target" >&6; }
2538 case $ac_cv_target in
2539 *-*-*) ;;
2540 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2541 esac
2542 target=$ac_cv_target
2543 ac_save_IFS=$IFS; IFS='-'
2544 set x $ac_cv_target
2545 shift
2546 target_cpu=$1
2547 target_vendor=$2
2548 shift; shift
2549 # Remember, the first character of IFS is used to create $*,
2550 # except with old shells:
2551 target_os=$*
2552 IFS=$ac_save_IFS
2553 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2554
2555
2556 # The aliases save the names the user supplied, while $host etc.
2557 # will get canonicalized.
2558 test -n "$target_alias" &&
2559 test "$program_prefix$program_suffix$program_transform_name" = \
2560 NONENONEs,x,x, &&
2561 program_prefix=${target_alias}-
2562
2563 # Expand $ac_aux_dir to an absolute path.
2564 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2565
2566 ac_ext=c
2567 ac_cpp='$CPP $CPPFLAGS'
2568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2571 if test -n "$ac_tool_prefix"; then
2572 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2573 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2575 $as_echo_n "checking for $ac_word... " >&6; }
2576 if ${ac_cv_prog_CC+:} false; then :
2577 $as_echo_n "(cached) " >&6
2578 else
2579 if test -n "$CC"; then
2580 ac_cv_prog_CC="$CC" # Let the user override the test.
2581 else
2582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583 for as_dir in $PATH
2584 do
2585 IFS=$as_save_IFS
2586 test -z "$as_dir" && as_dir=.
2587 for ac_exec_ext in '' $ac_executable_extensions; do
2588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2589 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2591 break 2
2592 fi
2593 done
2594 done
2595 IFS=$as_save_IFS
2596
2597 fi
2598 fi
2599 CC=$ac_cv_prog_CC
2600 if test -n "$CC"; then
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2602 $as_echo "$CC" >&6; }
2603 else
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2605 $as_echo "no" >&6; }
2606 fi
2607
2608
2609 fi
2610 if test -z "$ac_cv_prog_CC"; then
2611 ac_ct_CC=$CC
2612 # Extract the first word of "gcc", so it can be a program name with args.
2613 set dummy gcc; ac_word=$2
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2615 $as_echo_n "checking for $ac_word... " >&6; }
2616 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2617 $as_echo_n "(cached) " >&6
2618 else
2619 if test -n "$ac_ct_CC"; then
2620 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2621 else
2622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623 for as_dir in $PATH
2624 do
2625 IFS=$as_save_IFS
2626 test -z "$as_dir" && as_dir=.
2627 for ac_exec_ext in '' $ac_executable_extensions; do
2628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2629 ac_cv_prog_ac_ct_CC="gcc"
2630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2631 break 2
2632 fi
2633 done
2634 done
2635 IFS=$as_save_IFS
2636
2637 fi
2638 fi
2639 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2640 if test -n "$ac_ct_CC"; then
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2642 $as_echo "$ac_ct_CC" >&6; }
2643 else
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2645 $as_echo "no" >&6; }
2646 fi
2647
2648 if test "x$ac_ct_CC" = x; then
2649 CC=""
2650 else
2651 case $cross_compiling:$ac_tool_warned in
2652 yes:)
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2654 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2655 ac_tool_warned=yes ;;
2656 esac
2657 CC=$ac_ct_CC
2658 fi
2659 else
2660 CC="$ac_cv_prog_CC"
2661 fi
2662
2663 if test -z "$CC"; then
2664 if test -n "$ac_tool_prefix"; then
2665 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2666 set dummy ${ac_tool_prefix}cc; ac_word=$2
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2668 $as_echo_n "checking for $ac_word... " >&6; }
2669 if ${ac_cv_prog_CC+:} false; then :
2670 $as_echo_n "(cached) " >&6
2671 else
2672 if test -n "$CC"; then
2673 ac_cv_prog_CC="$CC" # Let the user override the test.
2674 else
2675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2676 for as_dir in $PATH
2677 do
2678 IFS=$as_save_IFS
2679 test -z "$as_dir" && as_dir=.
2680 for ac_exec_ext in '' $ac_executable_extensions; do
2681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2682 ac_cv_prog_CC="${ac_tool_prefix}cc"
2683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2684 break 2
2685 fi
2686 done
2687 done
2688 IFS=$as_save_IFS
2689
2690 fi
2691 fi
2692 CC=$ac_cv_prog_CC
2693 if test -n "$CC"; then
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2695 $as_echo "$CC" >&6; }
2696 else
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2698 $as_echo "no" >&6; }
2699 fi
2700
2701
2702 fi
2703 fi
2704 if test -z "$CC"; then
2705 # Extract the first word of "cc", so it can be a program name with args.
2706 set dummy cc; ac_word=$2
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2708 $as_echo_n "checking for $ac_word... " >&6; }
2709 if ${ac_cv_prog_CC+:} false; then :
2710 $as_echo_n "(cached) " >&6
2711 else
2712 if test -n "$CC"; then
2713 ac_cv_prog_CC="$CC" # Let the user override the test.
2714 else
2715 ac_prog_rejected=no
2716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2717 for as_dir in $PATH
2718 do
2719 IFS=$as_save_IFS
2720 test -z "$as_dir" && as_dir=.
2721 for ac_exec_ext in '' $ac_executable_extensions; do
2722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2723 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2724 ac_prog_rejected=yes
2725 continue
2726 fi
2727 ac_cv_prog_CC="cc"
2728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2729 break 2
2730 fi
2731 done
2732 done
2733 IFS=$as_save_IFS
2734
2735 if test $ac_prog_rejected = yes; then
2736 # We found a bogon in the path, so make sure we never use it.
2737 set dummy $ac_cv_prog_CC
2738 shift
2739 if test $# != 0; then
2740 # We chose a different compiler from the bogus one.
2741 # However, it has the same basename, so the bogon will be chosen
2742 # first if we set CC to just the basename; use the full file name.
2743 shift
2744 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2745 fi
2746 fi
2747 fi
2748 fi
2749 CC=$ac_cv_prog_CC
2750 if test -n "$CC"; then
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2752 $as_echo "$CC" >&6; }
2753 else
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2755 $as_echo "no" >&6; }
2756 fi
2757
2758
2759 fi
2760 if test -z "$CC"; then
2761 if test -n "$ac_tool_prefix"; then
2762 for ac_prog in cl.exe
2763 do
2764 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2765 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2767 $as_echo_n "checking for $ac_word... " >&6; }
2768 if ${ac_cv_prog_CC+:} false; then :
2769 $as_echo_n "(cached) " >&6
2770 else
2771 if test -n "$CC"; then
2772 ac_cv_prog_CC="$CC" # Let the user override the test.
2773 else
2774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775 for as_dir in $PATH
2776 do
2777 IFS=$as_save_IFS
2778 test -z "$as_dir" && as_dir=.
2779 for ac_exec_ext in '' $ac_executable_extensions; do
2780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2781 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2783 break 2
2784 fi
2785 done
2786 done
2787 IFS=$as_save_IFS
2788
2789 fi
2790 fi
2791 CC=$ac_cv_prog_CC
2792 if test -n "$CC"; then
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2794 $as_echo "$CC" >&6; }
2795 else
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2797 $as_echo "no" >&6; }
2798 fi
2799
2800
2801 test -n "$CC" && break
2802 done
2803 fi
2804 if test -z "$CC"; then
2805 ac_ct_CC=$CC
2806 for ac_prog in cl.exe
2807 do
2808 # Extract the first word of "$ac_prog", so it can be a program name with args.
2809 set dummy $ac_prog; ac_word=$2
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2811 $as_echo_n "checking for $ac_word... " >&6; }
2812 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2813 $as_echo_n "(cached) " >&6
2814 else
2815 if test -n "$ac_ct_CC"; then
2816 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2817 else
2818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819 for as_dir in $PATH
2820 do
2821 IFS=$as_save_IFS
2822 test -z "$as_dir" && as_dir=.
2823 for ac_exec_ext in '' $ac_executable_extensions; do
2824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2825 ac_cv_prog_ac_ct_CC="$ac_prog"
2826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2827 break 2
2828 fi
2829 done
2830 done
2831 IFS=$as_save_IFS
2832
2833 fi
2834 fi
2835 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2836 if test -n "$ac_ct_CC"; then
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2838 $as_echo "$ac_ct_CC" >&6; }
2839 else
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2841 $as_echo "no" >&6; }
2842 fi
2843
2844
2845 test -n "$ac_ct_CC" && break
2846 done
2847
2848 if test "x$ac_ct_CC" = x; then
2849 CC=""
2850 else
2851 case $cross_compiling:$ac_tool_warned in
2852 yes:)
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2854 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2855 ac_tool_warned=yes ;;
2856 esac
2857 CC=$ac_ct_CC
2858 fi
2859 fi
2860
2861 fi
2862
2863
2864 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2865 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2866 as_fn_error $? "no acceptable C compiler found in \$PATH
2867 See \`config.log' for more details" "$LINENO" 5; }
2868
2869 # Provide some information about the compiler.
2870 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2871 set X $ac_compile
2872 ac_compiler=$2
2873 for ac_option in --version -v -V -qversion; do
2874 { { ac_try="$ac_compiler $ac_option >&5"
2875 case "(($ac_try" in
2876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2877 *) ac_try_echo=$ac_try;;
2878 esac
2879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2880 $as_echo "$ac_try_echo"; } >&5
2881 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2882 ac_status=$?
2883 if test -s conftest.err; then
2884 sed '10a\
2885 ... rest of stderr output deleted ...
2886 10q' conftest.err >conftest.er1
2887 cat conftest.er1 >&5
2888 fi
2889 rm -f conftest.er1 conftest.err
2890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2891 test $ac_status = 0; }
2892 done
2893
2894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2895 /* end confdefs.h. */
2896
2897 int
2898 main ()
2899 {
2900
2901 ;
2902 return 0;
2903 }
2904 _ACEOF
2905 ac_clean_files_save=$ac_clean_files
2906 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2907 # Try to create an executable without -o first, disregard a.out.
2908 # It will help us diagnose broken compilers, and finding out an intuition
2909 # of exeext.
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2911 $as_echo_n "checking whether the C compiler works... " >&6; }
2912 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2913
2914 # The possible output files:
2915 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2916
2917 ac_rmfiles=
2918 for ac_file in $ac_files
2919 do
2920 case $ac_file in
2921 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2922 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2923 esac
2924 done
2925 rm -f $ac_rmfiles
2926
2927 if { { ac_try="$ac_link_default"
2928 case "(($ac_try" in
2929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930 *) ac_try_echo=$ac_try;;
2931 esac
2932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2933 $as_echo "$ac_try_echo"; } >&5
2934 (eval "$ac_link_default") 2>&5
2935 ac_status=$?
2936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2937 test $ac_status = 0; }; then :
2938 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2939 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2940 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2941 # so that the user can short-circuit this test for compilers unknown to
2942 # Autoconf.
2943 for ac_file in $ac_files ''
2944 do
2945 test -f "$ac_file" || continue
2946 case $ac_file in
2947 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2948 ;;
2949 [ab].out )
2950 # We found the default executable, but exeext='' is most
2951 # certainly right.
2952 break;;
2953 *.* )
2954 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2955 then :; else
2956 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2957 fi
2958 # We set ac_cv_exeext here because the later test for it is not
2959 # safe: cross compilers may not add the suffix if given an `-o'
2960 # argument, so we may need to know it at that point already.
2961 # Even if this section looks crufty: it has the advantage of
2962 # actually working.
2963 break;;
2964 * )
2965 break;;
2966 esac
2967 done
2968 test "$ac_cv_exeext" = no && ac_cv_exeext=
2969
2970 else
2971 ac_file=''
2972 fi
2973 if test -z "$ac_file"; then :
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975 $as_echo "no" >&6; }
2976 $as_echo "$as_me: failed program was:" >&5
2977 sed 's/^/| /' conftest.$ac_ext >&5
2978
2979 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2980 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2981 as_fn_error 77 "C compiler cannot create executables
2982 See \`config.log' for more details" "$LINENO" 5; }
2983 else
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2985 $as_echo "yes" >&6; }
2986 fi
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2988 $as_echo_n "checking for C compiler default output file name... " >&6; }
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2990 $as_echo "$ac_file" >&6; }
2991 ac_exeext=$ac_cv_exeext
2992
2993 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2994 ac_clean_files=$ac_clean_files_save
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2996 $as_echo_n "checking for suffix of executables... " >&6; }
2997 if { { ac_try="$ac_link"
2998 case "(($ac_try" in
2999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3000 *) ac_try_echo=$ac_try;;
3001 esac
3002 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3003 $as_echo "$ac_try_echo"; } >&5
3004 (eval "$ac_link") 2>&5
3005 ac_status=$?
3006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3007 test $ac_status = 0; }; then :
3008 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3009 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3010 # work properly (i.e., refer to `conftest.exe'), while it won't with
3011 # `rm'.
3012 for ac_file in conftest.exe conftest conftest.*; do
3013 test -f "$ac_file" || continue
3014 case $ac_file in
3015 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3016 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3017 break;;
3018 * ) break;;
3019 esac
3020 done
3021 else
3022 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3024 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3025 See \`config.log' for more details" "$LINENO" 5; }
3026 fi
3027 rm -f conftest conftest$ac_cv_exeext
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3029 $as_echo "$ac_cv_exeext" >&6; }
3030
3031 rm -f conftest.$ac_ext
3032 EXEEXT=$ac_cv_exeext
3033 ac_exeext=$EXEEXT
3034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3035 /* end confdefs.h. */
3036 #include <stdio.h>
3037 int
3038 main ()
3039 {
3040 FILE *f = fopen ("conftest.out", "w");
3041 return ferror (f) || fclose (f) != 0;
3042
3043 ;
3044 return 0;
3045 }
3046 _ACEOF
3047 ac_clean_files="$ac_clean_files conftest.out"
3048 # Check that the compiler produces executables we can run. If not, either
3049 # the compiler is broken, or we cross compile.
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3051 $as_echo_n "checking whether we are cross compiling... " >&6; }
3052 if test "$cross_compiling" != yes; then
3053 { { ac_try="$ac_link"
3054 case "(($ac_try" in
3055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056 *) ac_try_echo=$ac_try;;
3057 esac
3058 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3059 $as_echo "$ac_try_echo"; } >&5
3060 (eval "$ac_link") 2>&5
3061 ac_status=$?
3062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3063 test $ac_status = 0; }
3064 if { ac_try='./conftest$ac_cv_exeext'
3065 { { case "(($ac_try" in
3066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067 *) ac_try_echo=$ac_try;;
3068 esac
3069 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3070 $as_echo "$ac_try_echo"; } >&5
3071 (eval "$ac_try") 2>&5
3072 ac_status=$?
3073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3074 test $ac_status = 0; }; }; then
3075 cross_compiling=no
3076 else
3077 if test "$cross_compiling" = maybe; then
3078 cross_compiling=yes
3079 else
3080 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3081 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3082 as_fn_error $? "cannot run C compiled programs.
3083 If you meant to cross compile, use \`--host'.
3084 See \`config.log' for more details" "$LINENO" 5; }
3085 fi
3086 fi
3087 fi
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3089 $as_echo "$cross_compiling" >&6; }
3090
3091 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3092 ac_clean_files=$ac_clean_files_save
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3094 $as_echo_n "checking for suffix of object files... " >&6; }
3095 if ${ac_cv_objext+:} false; then :
3096 $as_echo_n "(cached) " >&6
3097 else
3098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3099 /* end confdefs.h. */
3100
3101 int
3102 main ()
3103 {
3104
3105 ;
3106 return 0;
3107 }
3108 _ACEOF
3109 rm -f conftest.o conftest.obj
3110 if { { ac_try="$ac_compile"
3111 case "(($ac_try" in
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3114 esac
3115 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3116 $as_echo "$ac_try_echo"; } >&5
3117 (eval "$ac_compile") 2>&5
3118 ac_status=$?
3119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3120 test $ac_status = 0; }; then :
3121 for ac_file in conftest.o conftest.obj conftest.*; do
3122 test -f "$ac_file" || continue;
3123 case $ac_file in
3124 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3125 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3126 break;;
3127 esac
3128 done
3129 else
3130 $as_echo "$as_me: failed program was:" >&5
3131 sed 's/^/| /' conftest.$ac_ext >&5
3132
3133 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3134 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3135 as_fn_error $? "cannot compute suffix of object files: cannot compile
3136 See \`config.log' for more details" "$LINENO" 5; }
3137 fi
3138 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3139 fi
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3141 $as_echo "$ac_cv_objext" >&6; }
3142 OBJEXT=$ac_cv_objext
3143 ac_objext=$OBJEXT
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3145 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3146 if ${ac_cv_c_compiler_gnu+:} false; then :
3147 $as_echo_n "(cached) " >&6
3148 else
3149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3150 /* end confdefs.h. */
3151
3152 int
3153 main ()
3154 {
3155 #ifndef __GNUC__
3156 choke me
3157 #endif
3158
3159 ;
3160 return 0;
3161 }
3162 _ACEOF
3163 if ac_fn_c_try_compile "$LINENO"; then :
3164 ac_compiler_gnu=yes
3165 else
3166 ac_compiler_gnu=no
3167 fi
3168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3169 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3170
3171 fi
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3173 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3174 if test $ac_compiler_gnu = yes; then
3175 GCC=yes
3176 else
3177 GCC=
3178 fi
3179 ac_test_CFLAGS=${CFLAGS+set}
3180 ac_save_CFLAGS=$CFLAGS
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3182 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3183 if ${ac_cv_prog_cc_g+:} false; then :
3184 $as_echo_n "(cached) " >&6
3185 else
3186 ac_save_c_werror_flag=$ac_c_werror_flag
3187 ac_c_werror_flag=yes
3188 ac_cv_prog_cc_g=no
3189 CFLAGS="-g"
3190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3191 /* end confdefs.h. */
3192
3193 int
3194 main ()
3195 {
3196
3197 ;
3198 return 0;
3199 }
3200 _ACEOF
3201 if ac_fn_c_try_compile "$LINENO"; then :
3202 ac_cv_prog_cc_g=yes
3203 else
3204 CFLAGS=""
3205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3206 /* end confdefs.h. */
3207
3208 int
3209 main ()
3210 {
3211
3212 ;
3213 return 0;
3214 }
3215 _ACEOF
3216 if ac_fn_c_try_compile "$LINENO"; then :
3217
3218 else
3219 ac_c_werror_flag=$ac_save_c_werror_flag
3220 CFLAGS="-g"
3221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3222 /* end confdefs.h. */
3223
3224 int
3225 main ()
3226 {
3227
3228 ;
3229 return 0;
3230 }
3231 _ACEOF
3232 if ac_fn_c_try_compile "$LINENO"; then :
3233 ac_cv_prog_cc_g=yes
3234 fi
3235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3236 fi
3237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3238 fi
3239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3240 ac_c_werror_flag=$ac_save_c_werror_flag
3241 fi
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3243 $as_echo "$ac_cv_prog_cc_g" >&6; }
3244 if test "$ac_test_CFLAGS" = set; then
3245 CFLAGS=$ac_save_CFLAGS
3246 elif test $ac_cv_prog_cc_g = yes; then
3247 if test "$GCC" = yes; then
3248 CFLAGS="-g -O2"
3249 else
3250 CFLAGS="-g"
3251 fi
3252 else
3253 if test "$GCC" = yes; then
3254 CFLAGS="-O2"
3255 else
3256 CFLAGS=
3257 fi
3258 fi
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3260 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3261 if ${ac_cv_prog_cc_c89+:} false; then :
3262 $as_echo_n "(cached) " >&6
3263 else
3264 ac_cv_prog_cc_c89=no
3265 ac_save_CC=$CC
3266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3267 /* end confdefs.h. */
3268 #include <stdarg.h>
3269 #include <stdio.h>
3270 struct stat;
3271 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3272 struct buf { int x; };
3273 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3274 static char *e (p, i)
3275 char **p;
3276 int i;
3277 {
3278 return p[i];
3279 }
3280 static char *f (char * (*g) (char **, int), char **p, ...)
3281 {
3282 char *s;
3283 va_list v;
3284 va_start (v,p);
3285 s = g (p, va_arg (v,int));
3286 va_end (v);
3287 return s;
3288 }
3289
3290 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3291 function prototypes and stuff, but not '\xHH' hex character constants.
3292 These don't provoke an error unfortunately, instead are silently treated
3293 as 'x'. The following induces an error, until -std is added to get
3294 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3295 array size at least. It's necessary to write '\x00'==0 to get something
3296 that's true only with -std. */
3297 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3298
3299 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3300 inside strings and character constants. */
3301 #define FOO(x) 'x'
3302 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3303
3304 int test (int i, double x);
3305 struct s1 {int (*f) (int a);};
3306 struct s2 {int (*f) (double a);};
3307 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3308 int argc;
3309 char **argv;
3310 int
3311 main ()
3312 {
3313 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3314 ;
3315 return 0;
3316 }
3317 _ACEOF
3318 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3319 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3320 do
3321 CC="$ac_save_CC $ac_arg"
3322 if ac_fn_c_try_compile "$LINENO"; then :
3323 ac_cv_prog_cc_c89=$ac_arg
3324 fi
3325 rm -f core conftest.err conftest.$ac_objext
3326 test "x$ac_cv_prog_cc_c89" != "xno" && break
3327 done
3328 rm -f conftest.$ac_ext
3329 CC=$ac_save_CC
3330
3331 fi
3332 # AC_CACHE_VAL
3333 case "x$ac_cv_prog_cc_c89" in
3334 x)
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3336 $as_echo "none needed" >&6; } ;;
3337 xno)
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3339 $as_echo "unsupported" >&6; } ;;
3340 *)
3341 CC="$CC $ac_cv_prog_cc_c89"
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3343 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3344 esac
3345 if test "x$ac_cv_prog_cc_c89" != xno; then :
3346
3347 fi
3348
3349 ac_ext=c
3350 ac_cpp='$CPP $CPPFLAGS'
3351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3354
3355 ac_ext=c
3356 ac_cpp='$CPP $CPPFLAGS'
3357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3361 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3362 if ${am_cv_prog_cc_c_o+:} false; then :
3363 $as_echo_n "(cached) " >&6
3364 else
3365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366 /* end confdefs.h. */
3367
3368 int
3369 main ()
3370 {
3371
3372 ;
3373 return 0;
3374 }
3375 _ACEOF
3376 # Make sure it works both with $CC and with simple cc.
3377 # Following AC_PROG_CC_C_O, we do the test twice because some
3378 # compilers refuse to overwrite an existing .o file with -o,
3379 # though they will create one.
3380 am_cv_prog_cc_c_o=yes
3381 for am_i in 1 2; do
3382 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3383 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3384 ac_status=$?
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); } \
3387 && test -f conftest2.$ac_objext; then
3388 : OK
3389 else
3390 am_cv_prog_cc_c_o=no
3391 break
3392 fi
3393 done
3394 rm -f core conftest*
3395 unset am_i
3396 fi
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3398 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3399 if test "$am_cv_prog_cc_c_o" != yes; then
3400 # Losing compiler, so override with the script.
3401 # FIXME: It is wrong to rewrite CC.
3402 # But if we don't then we get into trouble of one sort or another.
3403 # A longer-term fix would be to have automake use am__CC in this case,
3404 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3405 CC="$am_aux_dir/compile $CC"
3406 fi
3407 ac_ext=c
3408 ac_cpp='$CPP $CPPFLAGS'
3409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3412
3413
3414
3415 ac_ext=c
3416 ac_cpp='$CPP $CPPFLAGS'
3417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3421 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3422 # On Suns, sometimes $CPP names a directory.
3423 if test -n "$CPP" && test -d "$CPP"; then
3424 CPP=
3425 fi
3426 if test -z "$CPP"; then
3427 if ${ac_cv_prog_CPP+:} false; then :
3428 $as_echo_n "(cached) " >&6
3429 else
3430 # Double quotes because CPP needs to be expanded
3431 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3432 do
3433 ac_preproc_ok=false
3434 for ac_c_preproc_warn_flag in '' yes
3435 do
3436 # Use a header file that comes with gcc, so configuring glibc
3437 # with a fresh cross-compiler works.
3438 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3439 # <limits.h> exists even on freestanding compilers.
3440 # On the NeXT, cc -E runs the code through the compiler's parser,
3441 # not just through cpp. "Syntax error" is here to catch this case.
3442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3443 /* end confdefs.h. */
3444 #ifdef __STDC__
3445 # include <limits.h>
3446 #else
3447 # include <assert.h>
3448 #endif
3449 Syntax error
3450 _ACEOF
3451 if ac_fn_c_try_cpp "$LINENO"; then :
3452
3453 else
3454 # Broken: fails on valid input.
3455 continue
3456 fi
3457 rm -f conftest.err conftest.i conftest.$ac_ext
3458
3459 # OK, works on sane cases. Now check whether nonexistent headers
3460 # can be detected and how.
3461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3462 /* end confdefs.h. */
3463 #include <ac_nonexistent.h>
3464 _ACEOF
3465 if ac_fn_c_try_cpp "$LINENO"; then :
3466 # Broken: success on invalid input.
3467 continue
3468 else
3469 # Passes both tests.
3470 ac_preproc_ok=:
3471 break
3472 fi
3473 rm -f conftest.err conftest.i conftest.$ac_ext
3474
3475 done
3476 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3477 rm -f conftest.i conftest.err conftest.$ac_ext
3478 if $ac_preproc_ok; then :
3479 break
3480 fi
3481
3482 done
3483 ac_cv_prog_CPP=$CPP
3484
3485 fi
3486 CPP=$ac_cv_prog_CPP
3487 else
3488 ac_cv_prog_CPP=$CPP
3489 fi
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3491 $as_echo "$CPP" >&6; }
3492 ac_preproc_ok=false
3493 for ac_c_preproc_warn_flag in '' yes
3494 do
3495 # Use a header file that comes with gcc, so configuring glibc
3496 # with a fresh cross-compiler works.
3497 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3498 # <limits.h> exists even on freestanding compilers.
3499 # On the NeXT, cc -E runs the code through the compiler's parser,
3500 # not just through cpp. "Syntax error" is here to catch this case.
3501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3502 /* end confdefs.h. */
3503 #ifdef __STDC__
3504 # include <limits.h>
3505 #else
3506 # include <assert.h>
3507 #endif
3508 Syntax error
3509 _ACEOF
3510 if ac_fn_c_try_cpp "$LINENO"; then :
3511
3512 else
3513 # Broken: fails on valid input.
3514 continue
3515 fi
3516 rm -f conftest.err conftest.i conftest.$ac_ext
3517
3518 # OK, works on sane cases. Now check whether nonexistent headers
3519 # can be detected and how.
3520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3521 /* end confdefs.h. */
3522 #include <ac_nonexistent.h>
3523 _ACEOF
3524 if ac_fn_c_try_cpp "$LINENO"; then :
3525 # Broken: success on invalid input.
3526 continue
3527 else
3528 # Passes both tests.
3529 ac_preproc_ok=:
3530 break
3531 fi
3532 rm -f conftest.err conftest.i conftest.$ac_ext
3533
3534 done
3535 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3536 rm -f conftest.i conftest.err conftest.$ac_ext
3537 if $ac_preproc_ok; then :
3538
3539 else
3540 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3542 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3543 See \`config.log' for more details" "$LINENO" 5; }
3544 fi
3545
3546 ac_ext=c
3547 ac_cpp='$CPP $CPPFLAGS'
3548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3551
3552
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3554 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3555 if ${ac_cv_path_GREP+:} false; then :
3556 $as_echo_n "(cached) " >&6
3557 else
3558 if test -z "$GREP"; then
3559 ac_path_GREP_found=false
3560 # Loop through the user's path and test for each of PROGNAME-LIST
3561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3563 do
3564 IFS=$as_save_IFS
3565 test -z "$as_dir" && as_dir=.
3566 for ac_prog in grep ggrep; do
3567 for ac_exec_ext in '' $ac_executable_extensions; do
3568 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3569 as_fn_executable_p "$ac_path_GREP" || continue
3570 # Check for GNU ac_path_GREP and select it if it is found.
3571 # Check for GNU $ac_path_GREP
3572 case `"$ac_path_GREP" --version 2>&1` in
3573 *GNU*)
3574 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3575 *)
3576 ac_count=0
3577 $as_echo_n 0123456789 >"conftest.in"
3578 while :
3579 do
3580 cat "conftest.in" "conftest.in" >"conftest.tmp"
3581 mv "conftest.tmp" "conftest.in"
3582 cp "conftest.in" "conftest.nl"
3583 $as_echo 'GREP' >> "conftest.nl"
3584 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3585 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3586 as_fn_arith $ac_count + 1 && ac_count=$as_val
3587 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3588 # Best one so far, save it but keep looking for a better one
3589 ac_cv_path_GREP="$ac_path_GREP"
3590 ac_path_GREP_max=$ac_count
3591 fi
3592 # 10*(2^10) chars as input seems more than enough
3593 test $ac_count -gt 10 && break
3594 done
3595 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3596 esac
3597
3598 $ac_path_GREP_found && break 3
3599 done
3600 done
3601 done
3602 IFS=$as_save_IFS
3603 if test -z "$ac_cv_path_GREP"; then
3604 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3605 fi
3606 else
3607 ac_cv_path_GREP=$GREP
3608 fi
3609
3610 fi
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3612 $as_echo "$ac_cv_path_GREP" >&6; }
3613 GREP="$ac_cv_path_GREP"
3614
3615
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3617 $as_echo_n "checking for egrep... " >&6; }
3618 if ${ac_cv_path_EGREP+:} false; then :
3619 $as_echo_n "(cached) " >&6
3620 else
3621 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3622 then ac_cv_path_EGREP="$GREP -E"
3623 else
3624 if test -z "$EGREP"; then
3625 ac_path_EGREP_found=false
3626 # Loop through the user's path and test for each of PROGNAME-LIST
3627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3628 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3629 do
3630 IFS=$as_save_IFS
3631 test -z "$as_dir" && as_dir=.
3632 for ac_prog in egrep; do
3633 for ac_exec_ext in '' $ac_executable_extensions; do
3634 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3635 as_fn_executable_p "$ac_path_EGREP" || continue
3636 # Check for GNU ac_path_EGREP and select it if it is found.
3637 # Check for GNU $ac_path_EGREP
3638 case `"$ac_path_EGREP" --version 2>&1` in
3639 *GNU*)
3640 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3641 *)
3642 ac_count=0
3643 $as_echo_n 0123456789 >"conftest.in"
3644 while :
3645 do
3646 cat "conftest.in" "conftest.in" >"conftest.tmp"
3647 mv "conftest.tmp" "conftest.in"
3648 cp "conftest.in" "conftest.nl"
3649 $as_echo 'EGREP' >> "conftest.nl"
3650 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3651 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3652 as_fn_arith $ac_count + 1 && ac_count=$as_val
3653 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3654 # Best one so far, save it but keep looking for a better one
3655 ac_cv_path_EGREP="$ac_path_EGREP"
3656 ac_path_EGREP_max=$ac_count
3657 fi
3658 # 10*(2^10) chars as input seems more than enough
3659 test $ac_count -gt 10 && break
3660 done
3661 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3662 esac
3663
3664 $ac_path_EGREP_found && break 3
3665 done
3666 done
3667 done
3668 IFS=$as_save_IFS
3669 if test -z "$ac_cv_path_EGREP"; then
3670 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3671 fi
3672 else
3673 ac_cv_path_EGREP=$EGREP
3674 fi
3675
3676 fi
3677 fi
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3679 $as_echo "$ac_cv_path_EGREP" >&6; }
3680 EGREP="$ac_cv_path_EGREP"
3681
3682
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3684 $as_echo_n "checking for ANSI C header files... " >&6; }
3685 if ${ac_cv_header_stdc+:} false; then :
3686 $as_echo_n "(cached) " >&6
3687 else
3688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3689 /* end confdefs.h. */
3690 #include <stdlib.h>
3691 #include <stdarg.h>
3692 #include <string.h>
3693 #include <float.h>
3694
3695 int
3696 main ()
3697 {
3698
3699 ;
3700 return 0;
3701 }
3702 _ACEOF
3703 if ac_fn_c_try_compile "$LINENO"; then :
3704 ac_cv_header_stdc=yes
3705 else
3706 ac_cv_header_stdc=no
3707 fi
3708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3709
3710 if test $ac_cv_header_stdc = yes; then
3711 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3713 /* end confdefs.h. */
3714 #include <string.h>
3715
3716 _ACEOF
3717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3718 $EGREP "memchr" >/dev/null 2>&1; then :
3719
3720 else
3721 ac_cv_header_stdc=no
3722 fi
3723 rm -f conftest*
3724
3725 fi
3726
3727 if test $ac_cv_header_stdc = yes; then
3728 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3730 /* end confdefs.h. */
3731 #include <stdlib.h>
3732
3733 _ACEOF
3734 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3735 $EGREP "free" >/dev/null 2>&1; then :
3736
3737 else
3738 ac_cv_header_stdc=no
3739 fi
3740 rm -f conftest*
3741
3742 fi
3743
3744 if test $ac_cv_header_stdc = yes; then
3745 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3746 if test "$cross_compiling" = yes; then :
3747 :
3748 else
3749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750 /* end confdefs.h. */
3751 #include <ctype.h>
3752 #include <stdlib.h>
3753 #if ((' ' & 0x0FF) == 0x020)
3754 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3755 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3756 #else
3757 # define ISLOWER(c) \
3758 (('a' <= (c) && (c) <= 'i') \
3759 || ('j' <= (c) && (c) <= 'r') \
3760 || ('s' <= (c) && (c) <= 'z'))
3761 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3762 #endif
3763
3764 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3765 int
3766 main ()
3767 {
3768 int i;
3769 for (i = 0; i < 256; i++)
3770 if (XOR (islower (i), ISLOWER (i))
3771 || toupper (i) != TOUPPER (i))
3772 return 2;
3773 return 0;
3774 }
3775 _ACEOF
3776 if ac_fn_c_try_run "$LINENO"; then :
3777
3778 else
3779 ac_cv_header_stdc=no
3780 fi
3781 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3782 conftest.$ac_objext conftest.beam conftest.$ac_ext
3783 fi
3784
3785 fi
3786 fi
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3788 $as_echo "$ac_cv_header_stdc" >&6; }
3789 if test $ac_cv_header_stdc = yes; then
3790
3791 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3792
3793 fi
3794
3795 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3796 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3797 inttypes.h stdint.h unistd.h
3798 do :
3799 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3800 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3801 "
3802 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3803 cat >>confdefs.h <<_ACEOF
3804 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3805 _ACEOF
3806
3807 fi
3808
3809 done
3810
3811
3812
3813 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3814 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3815 MINIX=yes
3816 else
3817 MINIX=
3818 fi
3819
3820
3821 if test "$MINIX" = yes; then
3822
3823 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3824
3825
3826 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3827
3828
3829 $as_echo "#define _MINIX 1" >>confdefs.h
3830
3831 fi
3832
3833
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3835 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3836 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3837 $as_echo_n "(cached) " >&6
3838 else
3839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3840 /* end confdefs.h. */
3841
3842 # define __EXTENSIONS__ 1
3843 $ac_includes_default
3844 int
3845 main ()
3846 {
3847
3848 ;
3849 return 0;
3850 }
3851 _ACEOF
3852 if ac_fn_c_try_compile "$LINENO"; then :
3853 ac_cv_safe_to_define___extensions__=yes
3854 else
3855 ac_cv_safe_to_define___extensions__=no
3856 fi
3857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3858 fi
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3860 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3861 test $ac_cv_safe_to_define___extensions__ = yes &&
3862 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3863
3864 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3865
3866 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3867
3868 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3869
3870 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3871
3872
3873 # Determine the noncanonical target name, for directory use.
3874 case ${build_alias} in
3875 "") build_noncanonical=${build} ;;
3876 *) build_noncanonical=${build_alias} ;;
3877 esac
3878
3879 case ${host_alias} in
3880 "") host_noncanonical=${build_noncanonical} ;;
3881 *) host_noncanonical=${host_alias} ;;
3882 esac
3883
3884 case ${target_alias} in
3885 "") target_noncanonical=${host_noncanonical} ;;
3886 *) target_noncanonical=${target_alias} ;;
3887 esac
3888
3889
3890
3891
3892 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3893 # have matching libraries, they should use host libraries: Makefile.tpl
3894 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3895 # However, they still use the build modules, because the corresponding
3896 # host modules (e.g. bison) are only built for the host when bootstrap
3897 # finishes. So:
3898 # - build_subdir is where we find build modules, and never changes.
3899 # - build_libsubdir is where we find build libraries, and can be overridden.
3900
3901 # Prefix 'build-' so this never conflicts with target_subdir.
3902 build_subdir="build-${build_noncanonical}"
3903
3904 # Check whether --with-build-libsubdir was given.
3905 if test "${with_build_libsubdir+set}" = set; then :
3906 withval=$with_build_libsubdir; build_libsubdir="$withval"
3907 else
3908 build_libsubdir="$build_subdir"
3909 fi
3910
3911 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3912 if ( test $srcdir = . && test -d gcc ) \
3913 || test -d $srcdir/../host-${host_noncanonical}; then
3914 host_subdir="host-${host_noncanonical}"
3915 else
3916 host_subdir=.
3917 fi
3918 # No prefix.
3919 target_subdir=${target_noncanonical}
3920
3921
3922 # 1.11.1: Require that version of automake.
3923 # foreign: Don't require README, INSTALL, NEWS, etc.
3924 # no-define: Don't define PACKAGE and VERSION.
3925 # -Wall: Issue all automake warnings.
3926 # -Wno-portability: Don't warn about constructs supported by GNU make.
3927 # (because GCC requires GNU make anyhow).
3928 am__api_version='1.15'
3929
3930 # Find a good install program. We prefer a C program (faster),
3931 # so one script is as good as another. But avoid the broken or
3932 # incompatible versions:
3933 # SysV /etc/install, /usr/sbin/install
3934 # SunOS /usr/etc/install
3935 # IRIX /sbin/install
3936 # AIX /bin/install
3937 # AmigaOS /C/install, which installs bootblocks on floppy discs
3938 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3939 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3940 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3941 # OS/2's system install, which has a completely different semantic
3942 # ./install, which can be erroneously created by make from ./install.sh.
3943 # Reject install programs that cannot install multiple files.
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3945 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3946 if test -z "$INSTALL"; then
3947 if ${ac_cv_path_install+:} false; then :
3948 $as_echo_n "(cached) " >&6
3949 else
3950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3951 for as_dir in $PATH
3952 do
3953 IFS=$as_save_IFS
3954 test -z "$as_dir" && as_dir=.
3955 # Account for people who put trailing slashes in PATH elements.
3956 case $as_dir/ in #((
3957 ./ | .// | /[cC]/* | \
3958 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3959 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3960 /usr/ucb/* ) ;;
3961 *)
3962 # OSF1 and SCO ODT 3.0 have their own names for install.
3963 # Don't use installbsd from OSF since it installs stuff as root
3964 # by default.
3965 for ac_prog in ginstall scoinst install; do
3966 for ac_exec_ext in '' $ac_executable_extensions; do
3967 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3968 if test $ac_prog = install &&
3969 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3970 # AIX install. It has an incompatible calling convention.
3971 :
3972 elif test $ac_prog = install &&
3973 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3974 # program-specific install script used by HP pwplus--don't use.
3975 :
3976 else
3977 rm -rf conftest.one conftest.two conftest.dir
3978 echo one > conftest.one
3979 echo two > conftest.two
3980 mkdir conftest.dir
3981 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3982 test -s conftest.one && test -s conftest.two &&
3983 test -s conftest.dir/conftest.one &&
3984 test -s conftest.dir/conftest.two
3985 then
3986 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3987 break 3
3988 fi
3989 fi
3990 fi
3991 done
3992 done
3993 ;;
3994 esac
3995
3996 done
3997 IFS=$as_save_IFS
3998
3999 rm -rf conftest.one conftest.two conftest.dir
4000
4001 fi
4002 if test "${ac_cv_path_install+set}" = set; then
4003 INSTALL=$ac_cv_path_install
4004 else
4005 # As a last resort, use the slow shell script. Don't cache a
4006 # value for INSTALL within a source directory, because that will
4007 # break other packages using the cache if that directory is
4008 # removed, or if the value is a relative name.
4009 INSTALL=$ac_install_sh
4010 fi
4011 fi
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4013 $as_echo "$INSTALL" >&6; }
4014
4015 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4016 # It thinks the first close brace ends the variable substitution.
4017 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4018
4019 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4020
4021 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4022
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4024 $as_echo_n "checking whether build environment is sane... " >&6; }
4025 # Reject unsafe characters in $srcdir or the absolute working directory
4026 # name. Accept space and tab only in the latter.
4027 am_lf='
4028 '
4029 case `pwd` in
4030 *[\\\"\#\$\&\'\`$am_lf]*)
4031 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4032 esac
4033 case $srcdir in
4034 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4035 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4036 esac
4037
4038 # Do 'set' in a subshell so we don't clobber the current shell's
4039 # arguments. Must try -L first in case configure is actually a
4040 # symlink; some systems play weird games with the mod time of symlinks
4041 # (eg FreeBSD returns the mod time of the symlink's containing
4042 # directory).
4043 if (
4044 am_has_slept=no
4045 for am_try in 1 2; do
4046 echo "timestamp, slept: $am_has_slept" > conftest.file
4047 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4048 if test "$*" = "X"; then
4049 # -L didn't work.
4050 set X `ls -t "$srcdir/configure" conftest.file`
4051 fi
4052 if test "$*" != "X $srcdir/configure conftest.file" \
4053 && test "$*" != "X conftest.file $srcdir/configure"; then
4054
4055 # If neither matched, then we have a broken ls. This can happen
4056 # if, for instance, CONFIG_SHELL is bash and it inherits a
4057 # broken ls alias from the environment. This has actually
4058 # happened. Such a system could not be considered "sane".
4059 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4060 alias in your environment" "$LINENO" 5
4061 fi
4062 if test "$2" = conftest.file || test $am_try -eq 2; then
4063 break
4064 fi
4065 # Just in case.
4066 sleep 1
4067 am_has_slept=yes
4068 done
4069 test "$2" = conftest.file
4070 )
4071 then
4072 # Ok.
4073 :
4074 else
4075 as_fn_error $? "newly created file is older than distributed files!
4076 Check your system clock" "$LINENO" 5
4077 fi
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4079 $as_echo "yes" >&6; }
4080 # If we didn't sleep, we still need to ensure time stamps of config.status and
4081 # generated files are strictly newer.
4082 am_sleep_pid=
4083 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4084 ( sleep 1 ) &
4085 am_sleep_pid=$!
4086 fi
4087
4088 rm -f conftest.file
4089
4090 test "$program_prefix" != NONE &&
4091 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4092 # Use a double $ so make ignores it.
4093 test "$program_suffix" != NONE &&
4094 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4095 # Double any \ or $.
4096 # By default was `s,x,x', remove it if useless.
4097 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4098 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4099
4100 if test x"${MISSING+set}" != xset; then
4101 case $am_aux_dir in
4102 *\ * | *\ *)
4103 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4104 *)
4105 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4106 esac
4107 fi
4108 # Use eval to expand $SHELL
4109 if eval "$MISSING --is-lightweight"; then
4110 am_missing_run="$MISSING "
4111 else
4112 am_missing_run=
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4114 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4115 fi
4116
4117 if test x"${install_sh+set}" != xset; then
4118 case $am_aux_dir in
4119 *\ * | *\ *)
4120 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4121 *)
4122 install_sh="\${SHELL} $am_aux_dir/install-sh"
4123 esac
4124 fi
4125
4126 # Installed binaries are usually stripped using 'strip' when the user
4127 # run "make install-strip". However 'strip' might not be the right
4128 # tool to use in cross-compilation environments, therefore Automake
4129 # will honor the 'STRIP' environment variable to overrule this program.
4130 if test "$cross_compiling" != no; then
4131 if test -n "$ac_tool_prefix"; then
4132 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4133 set dummy ${ac_tool_prefix}strip; ac_word=$2
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4135 $as_echo_n "checking for $ac_word... " >&6; }
4136 if ${ac_cv_prog_STRIP+:} false; then :
4137 $as_echo_n "(cached) " >&6
4138 else
4139 if test -n "$STRIP"; then
4140 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4141 else
4142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4143 for as_dir in $PATH
4144 do
4145 IFS=$as_save_IFS
4146 test -z "$as_dir" && as_dir=.
4147 for ac_exec_ext in '' $ac_executable_extensions; do
4148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4149 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4151 break 2
4152 fi
4153 done
4154 done
4155 IFS=$as_save_IFS
4156
4157 fi
4158 fi
4159 STRIP=$ac_cv_prog_STRIP
4160 if test -n "$STRIP"; then
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4162 $as_echo "$STRIP" >&6; }
4163 else
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4165 $as_echo "no" >&6; }
4166 fi
4167
4168
4169 fi
4170 if test -z "$ac_cv_prog_STRIP"; then
4171 ac_ct_STRIP=$STRIP
4172 # Extract the first word of "strip", so it can be a program name with args.
4173 set dummy strip; ac_word=$2
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4175 $as_echo_n "checking for $ac_word... " >&6; }
4176 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4177 $as_echo_n "(cached) " >&6
4178 else
4179 if test -n "$ac_ct_STRIP"; then
4180 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4181 else
4182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183 for as_dir in $PATH
4184 do
4185 IFS=$as_save_IFS
4186 test -z "$as_dir" && as_dir=.
4187 for ac_exec_ext in '' $ac_executable_extensions; do
4188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4189 ac_cv_prog_ac_ct_STRIP="strip"
4190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4191 break 2
4192 fi
4193 done
4194 done
4195 IFS=$as_save_IFS
4196
4197 fi
4198 fi
4199 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4200 if test -n "$ac_ct_STRIP"; then
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4202 $as_echo "$ac_ct_STRIP" >&6; }
4203 else
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4205 $as_echo "no" >&6; }
4206 fi
4207
4208 if test "x$ac_ct_STRIP" = x; then
4209 STRIP=":"
4210 else
4211 case $cross_compiling:$ac_tool_warned in
4212 yes:)
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4214 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4215 ac_tool_warned=yes ;;
4216 esac
4217 STRIP=$ac_ct_STRIP
4218 fi
4219 else
4220 STRIP="$ac_cv_prog_STRIP"
4221 fi
4222
4223 fi
4224 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4225
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4227 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4228 if test -z "$MKDIR_P"; then
4229 if ${ac_cv_path_mkdir+:} false; then :
4230 $as_echo_n "(cached) " >&6
4231 else
4232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4233 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4234 do
4235 IFS=$as_save_IFS
4236 test -z "$as_dir" && as_dir=.
4237 for ac_prog in mkdir gmkdir; do
4238 for ac_exec_ext in '' $ac_executable_extensions; do
4239 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4240 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4241 'mkdir (GNU coreutils) '* | \
4242 'mkdir (coreutils) '* | \
4243 'mkdir (fileutils) '4.1*)
4244 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4245 break 3;;
4246 esac
4247 done
4248 done
4249 done
4250 IFS=$as_save_IFS
4251
4252 fi
4253
4254 test -d ./--version && rmdir ./--version
4255 if test "${ac_cv_path_mkdir+set}" = set; then
4256 MKDIR_P="$ac_cv_path_mkdir -p"
4257 else
4258 # As a last resort, use the slow shell script. Don't cache a
4259 # value for MKDIR_P within a source directory, because that will
4260 # break other packages using the cache if that directory is
4261 # removed, or if the value is a relative name.
4262 MKDIR_P="$ac_install_sh -d"
4263 fi
4264 fi
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4266 $as_echo "$MKDIR_P" >&6; }
4267
4268 for ac_prog in gawk mawk nawk awk
4269 do
4270 # Extract the first word of "$ac_prog", so it can be a program name with args.
4271 set dummy $ac_prog; ac_word=$2
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4273 $as_echo_n "checking for $ac_word... " >&6; }
4274 if ${ac_cv_prog_AWK+:} false; then :
4275 $as_echo_n "(cached) " >&6
4276 else
4277 if test -n "$AWK"; then
4278 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4279 else
4280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281 for as_dir in $PATH
4282 do
4283 IFS=$as_save_IFS
4284 test -z "$as_dir" && as_dir=.
4285 for ac_exec_ext in '' $ac_executable_extensions; do
4286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4287 ac_cv_prog_AWK="$ac_prog"
4288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4289 break 2
4290 fi
4291 done
4292 done
4293 IFS=$as_save_IFS
4294
4295 fi
4296 fi
4297 AWK=$ac_cv_prog_AWK
4298 if test -n "$AWK"; then
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4300 $as_echo "$AWK" >&6; }
4301 else
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4303 $as_echo "no" >&6; }
4304 fi
4305
4306
4307 test -n "$AWK" && break
4308 done
4309
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4311 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4312 set x ${MAKE-make}
4313 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4314 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4315 $as_echo_n "(cached) " >&6
4316 else
4317 cat >conftest.make <<\_ACEOF
4318 SHELL = /bin/sh
4319 all:
4320 @echo '@@@%%%=$(MAKE)=@@@%%%'
4321 _ACEOF
4322 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4323 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4324 *@@@%%%=?*=@@@%%%*)
4325 eval ac_cv_prog_make_${ac_make}_set=yes;;
4326 *)
4327 eval ac_cv_prog_make_${ac_make}_set=no;;
4328 esac
4329 rm -f conftest.make
4330 fi
4331 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4333 $as_echo "yes" >&6; }
4334 SET_MAKE=
4335 else
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4337 $as_echo "no" >&6; }
4338 SET_MAKE="MAKE=${MAKE-make}"
4339 fi
4340
4341 rm -rf .tst 2>/dev/null
4342 mkdir .tst 2>/dev/null
4343 if test -d .tst; then
4344 am__leading_dot=.
4345 else
4346 am__leading_dot=_
4347 fi
4348 rmdir .tst 2>/dev/null
4349
4350 DEPDIR="${am__leading_dot}deps"
4351
4352 ac_config_commands="$ac_config_commands depfiles"
4353
4354
4355 am_make=${MAKE-make}
4356 cat > confinc << 'END'
4357 am__doit:
4358 @echo this is the am__doit target
4359 .PHONY: am__doit
4360 END
4361 # If we don't find an include directive, just comment out the code.
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4363 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4364 am__include="#"
4365 am__quote=
4366 _am_result=none
4367 # First try GNU make style include.
4368 echo "include confinc" > confmf
4369 # Ignore all kinds of additional output from 'make'.
4370 case `$am_make -s -f confmf 2> /dev/null` in #(
4371 *the\ am__doit\ target*)
4372 am__include=include
4373 am__quote=
4374 _am_result=GNU
4375 ;;
4376 esac
4377 # Now try BSD make style include.
4378 if test "$am__include" = "#"; then
4379 echo '.include "confinc"' > confmf
4380 case `$am_make -s -f confmf 2> /dev/null` in #(
4381 *the\ am__doit\ target*)
4382 am__include=.include
4383 am__quote="\""
4384 _am_result=BSD
4385 ;;
4386 esac
4387 fi
4388
4389
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4391 $as_echo "$_am_result" >&6; }
4392 rm -f confinc confmf
4393
4394 # Check whether --enable-dependency-tracking was given.
4395 if test "${enable_dependency_tracking+set}" = set; then :
4396 enableval=$enable_dependency_tracking;
4397 fi
4398
4399 if test "x$enable_dependency_tracking" != xno; then
4400 am_depcomp="$ac_aux_dir/depcomp"
4401 AMDEPBACKSLASH='\'
4402 am__nodep='_no'
4403 fi
4404 if test "x$enable_dependency_tracking" != xno; then
4405 AMDEP_TRUE=
4406 AMDEP_FALSE='#'
4407 else
4408 AMDEP_TRUE='#'
4409 AMDEP_FALSE=
4410 fi
4411
4412
4413 # Check whether --enable-silent-rules was given.
4414 if test "${enable_silent_rules+set}" = set; then :
4415 enableval=$enable_silent_rules;
4416 fi
4417
4418 case $enable_silent_rules in # (((
4419 yes) AM_DEFAULT_VERBOSITY=0;;
4420 no) AM_DEFAULT_VERBOSITY=1;;
4421 *) AM_DEFAULT_VERBOSITY=1;;
4422 esac
4423 am_make=${MAKE-make}
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4425 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4426 if ${am_cv_make_support_nested_variables+:} false; then :
4427 $as_echo_n "(cached) " >&6
4428 else
4429 if $as_echo 'TRUE=$(BAR$(V))
4430 BAR0=false
4431 BAR1=true
4432 V=1
4433 am__doit:
4434 @$(TRUE)
4435 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4436 am_cv_make_support_nested_variables=yes
4437 else
4438 am_cv_make_support_nested_variables=no
4439 fi
4440 fi
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4442 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4443 if test $am_cv_make_support_nested_variables = yes; then
4444 AM_V='$(V)'
4445 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4446 else
4447 AM_V=$AM_DEFAULT_VERBOSITY
4448 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4449 fi
4450 AM_BACKSLASH='\'
4451
4452 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4453 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4454 # is not polluted with repeated "-I."
4455 am__isrc=' -I$(srcdir)'
4456 # test to see if srcdir already configured
4457 if test -f $srcdir/config.status; then
4458 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4459 fi
4460 fi
4461
4462 # test whether we have cygpath
4463 if test -z "$CYGPATH_W"; then
4464 if (cygpath --version) >/dev/null 2>/dev/null; then
4465 CYGPATH_W='cygpath -w'
4466 else
4467 CYGPATH_W=echo
4468 fi
4469 fi
4470
4471
4472 # Define the identity of the package.
4473 PACKAGE='libcc1'
4474 VERSION='version-unused'
4475
4476
4477 # Some tools Automake needs.
4478
4479 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4480
4481
4482 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4483
4484
4485 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4486
4487
4488 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4489
4490
4491 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4492
4493 # For better backward compatibility. To be removed once Automake 1.9.x
4494 # dies out for good. For more background, see:
4495 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4496 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4497 mkdir_p='$(MKDIR_P)'
4498
4499 # We need awk for the "check" target (and possibly the TAP driver). The
4500 # system "awk" is bad on some platforms.
4501 # Always define AMTAR for backward compatibility. Yes, it's still used
4502 # in the wild :-( We should find a proper way to deprecate it ...
4503 AMTAR='$${TAR-tar}'
4504
4505
4506 # We'll loop over all known methods to create a tar archive until one works.
4507 _am_tools='gnutar pax cpio none'
4508
4509 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4510
4511
4512
4513
4514
4515 depcc="$CC" am_compiler_list=
4516
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4518 $as_echo_n "checking dependency style of $depcc... " >&6; }
4519 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4520 $as_echo_n "(cached) " >&6
4521 else
4522 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4523 # We make a subdir and do the tests there. Otherwise we can end up
4524 # making bogus files that we don't know about and never remove. For
4525 # instance it was reported that on HP-UX the gcc test will end up
4526 # making a dummy file named 'D' -- because '-MD' means "put the output
4527 # in D".
4528 rm -rf conftest.dir
4529 mkdir conftest.dir
4530 # Copy depcomp to subdir because otherwise we won't find it if we're
4531 # using a relative directory.
4532 cp "$am_depcomp" conftest.dir
4533 cd conftest.dir
4534 # We will build objects and dependencies in a subdirectory because
4535 # it helps to detect inapplicable dependency modes. For instance
4536 # both Tru64's cc and ICC support -MD to output dependencies as a
4537 # side effect of compilation, but ICC will put the dependencies in
4538 # the current directory while Tru64 will put them in the object
4539 # directory.
4540 mkdir sub
4541
4542 am_cv_CC_dependencies_compiler_type=none
4543 if test "$am_compiler_list" = ""; then
4544 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4545 fi
4546 am__universal=false
4547 case " $depcc " in #(
4548 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4549 esac
4550
4551 for depmode in $am_compiler_list; do
4552 # Setup a source with many dependencies, because some compilers
4553 # like to wrap large dependency lists on column 80 (with \), and
4554 # we should not choose a depcomp mode which is confused by this.
4555 #
4556 # We need to recreate these files for each test, as the compiler may
4557 # overwrite some of them when testing with obscure command lines.
4558 # This happens at least with the AIX C compiler.
4559 : > sub/conftest.c
4560 for i in 1 2 3 4 5 6; do
4561 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4562 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4563 # Solaris 10 /bin/sh.
4564 echo '/* dummy */' > sub/conftst$i.h
4565 done
4566 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4567
4568 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4569 # mode. It turns out that the SunPro C++ compiler does not properly
4570 # handle '-M -o', and we need to detect this. Also, some Intel
4571 # versions had trouble with output in subdirs.
4572 am__obj=sub/conftest.${OBJEXT-o}
4573 am__minus_obj="-o $am__obj"
4574 case $depmode in
4575 gcc)
4576 # This depmode causes a compiler race in universal mode.
4577 test "$am__universal" = false || continue
4578 ;;
4579 nosideeffect)
4580 # After this tag, mechanisms are not by side-effect, so they'll
4581 # only be used when explicitly requested.
4582 if test "x$enable_dependency_tracking" = xyes; then
4583 continue
4584 else
4585 break
4586 fi
4587 ;;
4588 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4589 # This compiler won't grok '-c -o', but also, the minuso test has
4590 # not run yet. These depmodes are late enough in the game, and
4591 # so weak that their functioning should not be impacted.
4592 am__obj=conftest.${OBJEXT-o}
4593 am__minus_obj=
4594 ;;
4595 none) break ;;
4596 esac
4597 if depmode=$depmode \
4598 source=sub/conftest.c object=$am__obj \
4599 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4600 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4601 >/dev/null 2>conftest.err &&
4602 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4603 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4604 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4605 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4606 # icc doesn't choke on unknown options, it will just issue warnings
4607 # or remarks (even with -Werror). So we grep stderr for any message
4608 # that says an option was ignored or not supported.
4609 # When given -MP, icc 7.0 and 7.1 complain thusly:
4610 # icc: Command line warning: ignoring option '-M'; no argument required
4611 # The diagnosis changed in icc 8.0:
4612 # icc: Command line remark: option '-MP' not supported
4613 if (grep 'ignoring option' conftest.err ||
4614 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4615 am_cv_CC_dependencies_compiler_type=$depmode
4616 break
4617 fi
4618 fi
4619 done
4620
4621 cd ..
4622 rm -rf conftest.dir
4623 else
4624 am_cv_CC_dependencies_compiler_type=none
4625 fi
4626
4627 fi
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4629 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4630 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4631
4632 if
4633 test "x$enable_dependency_tracking" != xno \
4634 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4635 am__fastdepCC_TRUE=
4636 am__fastdepCC_FALSE='#'
4637 else
4638 am__fastdepCC_TRUE='#'
4639 am__fastdepCC_FALSE=
4640 fi
4641
4642
4643
4644 # POSIX will say in a future version that running "rm -f" with no argument
4645 # is OK; and we want to be able to make that assumption in our Makefile
4646 # recipes. So use an aggressive probe to check that the usage we want is
4647 # actually supported "in the wild" to an acceptable degree.
4648 # See automake bug#10828.
4649 # To make any issue more visible, cause the running configure to be aborted
4650 # by default if the 'rm' program in use doesn't match our expectations; the
4651 # user can still override this though.
4652 if rm -f && rm -fr && rm -rf; then : OK; else
4653 cat >&2 <<'END'
4654 Oops!
4655
4656 Your 'rm' program seems unable to run without file operands specified
4657 on the command line, even when the '-f' option is present. This is contrary
4658 to the behaviour of most rm programs out there, and not conforming with
4659 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4660
4661 Please tell bug-automake@gnu.org about your system, including the value
4662 of your $PATH and any error possibly output before this message. This
4663 can help us improve future automake versions.
4664
4665 END
4666 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4667 echo 'Configuration will proceed anyway, since you have set the' >&2
4668 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4669 echo >&2
4670 else
4671 cat >&2 <<'END'
4672 Aborting the configuration process, to ensure you take notice of the issue.
4673
4674 You can download and install GNU coreutils to get an 'rm' implementation
4675 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4676
4677 If you want to complete the configuration process using your problematic
4678 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4679 to "yes", and re-run configure.
4680
4681 END
4682 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4683 fi
4684 fi
4685
4686
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4688 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4689 # Check whether --enable-maintainer-mode was given.
4690 if test "${enable_maintainer_mode+set}" = set; then :
4691 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4692 else
4693 USE_MAINTAINER_MODE=no
4694 fi
4695
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4697 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4698 if test $USE_MAINTAINER_MODE = yes; then
4699 MAINTAINER_MODE_TRUE=
4700 MAINTAINER_MODE_FALSE='#'
4701 else
4702 MAINTAINER_MODE_TRUE='#'
4703 MAINTAINER_MODE_FALSE=
4704 fi
4705
4706 MAINT=$MAINTAINER_MODE_TRUE
4707
4708
4709
4710 case `pwd` in
4711 *\ * | *\ *)
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4713 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4714 esac
4715
4716
4717
4718 macro_version='2.2.7a'
4719 macro_revision='1.3134'
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733 ltmain="$ac_aux_dir/ltmain.sh"
4734
4735 # Backslashify metacharacters that are still active within
4736 # double-quoted strings.
4737 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4738
4739 # Same as above, but do not quote variable references.
4740 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4741
4742 # Sed substitution to delay expansion of an escaped shell variable in a
4743 # double_quote_subst'ed string.
4744 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4745
4746 # Sed substitution to delay expansion of an escaped single quote.
4747 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4748
4749 # Sed substitution to avoid accidental globbing in evaled expressions
4750 no_glob_subst='s/\*/\\\*/g'
4751
4752 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4753 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4754 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4755
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4757 $as_echo_n "checking how to print strings... " >&6; }
4758 # Test print first, because it will be a builtin if present.
4759 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4760 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4761 ECHO='print -r --'
4762 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4763 ECHO='printf %s\n'
4764 else
4765 # Use this function as a fallback that always works.
4766 func_fallback_echo ()
4767 {
4768 eval 'cat <<_LTECHO_EOF
4769 $1
4770 _LTECHO_EOF'
4771 }
4772 ECHO='func_fallback_echo'
4773 fi
4774
4775 # func_echo_all arg...
4776 # Invoke $ECHO with all args, space-separated.
4777 func_echo_all ()
4778 {
4779 $ECHO ""
4780 }
4781
4782 case "$ECHO" in
4783 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4784 $as_echo "printf" >&6; } ;;
4785 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4786 $as_echo "print -r" >&6; } ;;
4787 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4788 $as_echo "cat" >&6; } ;;
4789 esac
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4805 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4806 if ${ac_cv_path_SED+:} false; then :
4807 $as_echo_n "(cached) " >&6
4808 else
4809 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4810 for ac_i in 1 2 3 4 5 6 7; do
4811 ac_script="$ac_script$as_nl$ac_script"
4812 done
4813 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4814 { ac_script=; unset ac_script;}
4815 if test -z "$SED"; then
4816 ac_path_SED_found=false
4817 # Loop through the user's path and test for each of PROGNAME-LIST
4818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819 for as_dir in $PATH
4820 do
4821 IFS=$as_save_IFS
4822 test -z "$as_dir" && as_dir=.
4823 for ac_prog in sed gsed; do
4824 for ac_exec_ext in '' $ac_executable_extensions; do
4825 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4826 as_fn_executable_p "$ac_path_SED" || continue
4827 # Check for GNU ac_path_SED and select it if it is found.
4828 # Check for GNU $ac_path_SED
4829 case `"$ac_path_SED" --version 2>&1` in
4830 *GNU*)
4831 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4832 *)
4833 ac_count=0
4834 $as_echo_n 0123456789 >"conftest.in"
4835 while :
4836 do
4837 cat "conftest.in" "conftest.in" >"conftest.tmp"
4838 mv "conftest.tmp" "conftest.in"
4839 cp "conftest.in" "conftest.nl"
4840 $as_echo '' >> "conftest.nl"
4841 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4842 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4843 as_fn_arith $ac_count + 1 && ac_count=$as_val
4844 if test $ac_count -gt ${ac_path_SED_max-0}; then
4845 # Best one so far, save it but keep looking for a better one
4846 ac_cv_path_SED="$ac_path_SED"
4847 ac_path_SED_max=$ac_count
4848 fi
4849 # 10*(2^10) chars as input seems more than enough
4850 test $ac_count -gt 10 && break
4851 done
4852 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4853 esac
4854
4855 $ac_path_SED_found && break 3
4856 done
4857 done
4858 done
4859 IFS=$as_save_IFS
4860 if test -z "$ac_cv_path_SED"; then
4861 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4862 fi
4863 else
4864 ac_cv_path_SED=$SED
4865 fi
4866
4867 fi
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4869 $as_echo "$ac_cv_path_SED" >&6; }
4870 SED="$ac_cv_path_SED"
4871 rm -f conftest.sed
4872
4873 test -z "$SED" && SED=sed
4874 Xsed="$SED -e 1s/^X//"
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4887 $as_echo_n "checking for fgrep... " >&6; }
4888 if ${ac_cv_path_FGREP+:} false; then :
4889 $as_echo_n "(cached) " >&6
4890 else
4891 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4892 then ac_cv_path_FGREP="$GREP -F"
4893 else
4894 if test -z "$FGREP"; then
4895 ac_path_FGREP_found=false
4896 # Loop through the user's path and test for each of PROGNAME-LIST
4897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4898 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4899 do
4900 IFS=$as_save_IFS
4901 test -z "$as_dir" && as_dir=.
4902 for ac_prog in fgrep; do
4903 for ac_exec_ext in '' $ac_executable_extensions; do
4904 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4905 as_fn_executable_p "$ac_path_FGREP" || continue
4906 # Check for GNU ac_path_FGREP and select it if it is found.
4907 # Check for GNU $ac_path_FGREP
4908 case `"$ac_path_FGREP" --version 2>&1` in
4909 *GNU*)
4910 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4911 *)
4912 ac_count=0
4913 $as_echo_n 0123456789 >"conftest.in"
4914 while :
4915 do
4916 cat "conftest.in" "conftest.in" >"conftest.tmp"
4917 mv "conftest.tmp" "conftest.in"
4918 cp "conftest.in" "conftest.nl"
4919 $as_echo 'FGREP' >> "conftest.nl"
4920 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4921 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4922 as_fn_arith $ac_count + 1 && ac_count=$as_val
4923 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4924 # Best one so far, save it but keep looking for a better one
4925 ac_cv_path_FGREP="$ac_path_FGREP"
4926 ac_path_FGREP_max=$ac_count
4927 fi
4928 # 10*(2^10) chars as input seems more than enough
4929 test $ac_count -gt 10 && break
4930 done
4931 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4932 esac
4933
4934 $ac_path_FGREP_found && break 3
4935 done
4936 done
4937 done
4938 IFS=$as_save_IFS
4939 if test -z "$ac_cv_path_FGREP"; then
4940 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4941 fi
4942 else
4943 ac_cv_path_FGREP=$FGREP
4944 fi
4945
4946 fi
4947 fi
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4949 $as_echo "$ac_cv_path_FGREP" >&6; }
4950 FGREP="$ac_cv_path_FGREP"
4951
4952
4953 test -z "$GREP" && GREP=grep
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973 # Check whether --with-gnu-ld was given.
4974 if test "${with_gnu_ld+set}" = set; then :
4975 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4976 else
4977 with_gnu_ld=no
4978 fi
4979
4980 ac_prog=ld
4981 if test "$GCC" = yes; then
4982 # Check if gcc -print-prog-name=ld gives a path.
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4984 $as_echo_n "checking for ld used by $CC... " >&6; }
4985 case $host in
4986 *-*-mingw*)
4987 # gcc leaves a trailing carriage return which upsets mingw
4988 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4989 *)
4990 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4991 esac
4992 case $ac_prog in
4993 # Accept absolute paths.
4994 [\\/]* | ?:[\\/]*)
4995 re_direlt='/[^/][^/]*/\.\./'
4996 # Canonicalize the pathname of ld
4997 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4998 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4999 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5000 done
5001 test -z "$LD" && LD="$ac_prog"
5002 ;;
5003 "")
5004 # If it fails, then pretend we aren't using GCC.
5005 ac_prog=ld
5006 ;;
5007 *)
5008 # If it is relative, then search for the first ld in PATH.
5009 with_gnu_ld=unknown
5010 ;;
5011 esac
5012 elif test "$with_gnu_ld" = yes; then
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5014 $as_echo_n "checking for GNU ld... " >&6; }
5015 else
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5017 $as_echo_n "checking for non-GNU ld... " >&6; }
5018 fi
5019 if ${lt_cv_path_LD+:} false; then :
5020 $as_echo_n "(cached) " >&6
5021 else
5022 if test -z "$LD"; then
5023 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5024 for ac_dir in $PATH; do
5025 IFS="$lt_save_ifs"
5026 test -z "$ac_dir" && ac_dir=.
5027 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5028 lt_cv_path_LD="$ac_dir/$ac_prog"
5029 # Check to see if the program is GNU ld. I'd rather use --version,
5030 # but apparently some variants of GNU ld only accept -v.
5031 # Break only if it was the GNU/non-GNU ld that we prefer.
5032 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5033 *GNU* | *'with BFD'*)
5034 test "$with_gnu_ld" != no && break
5035 ;;
5036 *)
5037 test "$with_gnu_ld" != yes && break
5038 ;;
5039 esac
5040 fi
5041 done
5042 IFS="$lt_save_ifs"
5043 else
5044 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5045 fi
5046 fi
5047
5048 LD="$lt_cv_path_LD"
5049 if test -n "$LD"; then
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5051 $as_echo "$LD" >&6; }
5052 else
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5054 $as_echo "no" >&6; }
5055 fi
5056 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5058 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5059 if ${lt_cv_prog_gnu_ld+:} false; then :
5060 $as_echo_n "(cached) " >&6
5061 else
5062 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5063 case `$LD -v 2>&1 </dev/null` in
5064 *GNU* | *'with BFD'*)
5065 lt_cv_prog_gnu_ld=yes
5066 ;;
5067 *)
5068 lt_cv_prog_gnu_ld=no
5069 ;;
5070 esac
5071 fi
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5073 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5074 with_gnu_ld=$lt_cv_prog_gnu_ld
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5085 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5086 if ${lt_cv_path_NM+:} false; then :
5087 $as_echo_n "(cached) " >&6
5088 else
5089 if test -n "$NM"; then
5090 # Let the user override the test.
5091 lt_cv_path_NM="$NM"
5092 else
5093 lt_nm_to_check="${ac_tool_prefix}nm"
5094 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5095 lt_nm_to_check="$lt_nm_to_check nm"
5096 fi
5097 for lt_tmp_nm in $lt_nm_to_check; do
5098 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5099 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5100 IFS="$lt_save_ifs"
5101 test -z "$ac_dir" && ac_dir=.
5102 tmp_nm="$ac_dir/$lt_tmp_nm"
5103 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5104 # Check to see if the nm accepts a BSD-compat flag.
5105 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5106 # nm: unknown option "B" ignored
5107 # Tru64's nm complains that /dev/null is an invalid object file
5108 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5109 */dev/null* | *'Invalid file or object type'*)
5110 lt_cv_path_NM="$tmp_nm -B"
5111 break
5112 ;;
5113 *)
5114 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5115 */dev/null*)
5116 lt_cv_path_NM="$tmp_nm -p"
5117 break
5118 ;;
5119 *)
5120 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5121 continue # so that we can try to find one that supports BSD flags
5122 ;;
5123 esac
5124 ;;
5125 esac
5126 fi
5127 done
5128 IFS="$lt_save_ifs"
5129 done
5130 : ${lt_cv_path_NM=no}
5131 fi
5132 fi
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5134 $as_echo "$lt_cv_path_NM" >&6; }
5135 if test "$lt_cv_path_NM" != "no"; then
5136 NM="$lt_cv_path_NM"
5137 else
5138 # Didn't find any BSD compatible name lister, look for dumpbin.
5139 if test -n "$DUMPBIN"; then :
5140 # Let the user override the test.
5141 else
5142 if test -n "$ac_tool_prefix"; then
5143 for ac_prog in dumpbin "link -dump"
5144 do
5145 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5146 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5148 $as_echo_n "checking for $ac_word... " >&6; }
5149 if ${ac_cv_prog_DUMPBIN+:} false; then :
5150 $as_echo_n "(cached) " >&6
5151 else
5152 if test -n "$DUMPBIN"; then
5153 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5154 else
5155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156 for as_dir in $PATH
5157 do
5158 IFS=$as_save_IFS
5159 test -z "$as_dir" && as_dir=.
5160 for ac_exec_ext in '' $ac_executable_extensions; do
5161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5162 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5164 break 2
5165 fi
5166 done
5167 done
5168 IFS=$as_save_IFS
5169
5170 fi
5171 fi
5172 DUMPBIN=$ac_cv_prog_DUMPBIN
5173 if test -n "$DUMPBIN"; then
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5175 $as_echo "$DUMPBIN" >&6; }
5176 else
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5178 $as_echo "no" >&6; }
5179 fi
5180
5181
5182 test -n "$DUMPBIN" && break
5183 done
5184 fi
5185 if test -z "$DUMPBIN"; then
5186 ac_ct_DUMPBIN=$DUMPBIN
5187 for ac_prog in dumpbin "link -dump"
5188 do
5189 # Extract the first word of "$ac_prog", so it can be a program name with args.
5190 set dummy $ac_prog; ac_word=$2
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5192 $as_echo_n "checking for $ac_word... " >&6; }
5193 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5194 $as_echo_n "(cached) " >&6
5195 else
5196 if test -n "$ac_ct_DUMPBIN"; then
5197 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5198 else
5199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200 for as_dir in $PATH
5201 do
5202 IFS=$as_save_IFS
5203 test -z "$as_dir" && as_dir=.
5204 for ac_exec_ext in '' $ac_executable_extensions; do
5205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5206 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5208 break 2
5209 fi
5210 done
5211 done
5212 IFS=$as_save_IFS
5213
5214 fi
5215 fi
5216 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5217 if test -n "$ac_ct_DUMPBIN"; then
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5219 $as_echo "$ac_ct_DUMPBIN" >&6; }
5220 else
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5222 $as_echo "no" >&6; }
5223 fi
5224
5225
5226 test -n "$ac_ct_DUMPBIN" && break
5227 done
5228
5229 if test "x$ac_ct_DUMPBIN" = x; then
5230 DUMPBIN=":"
5231 else
5232 case $cross_compiling:$ac_tool_warned in
5233 yes:)
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5236 ac_tool_warned=yes ;;
5237 esac
5238 DUMPBIN=$ac_ct_DUMPBIN
5239 fi
5240 fi
5241
5242 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5243 *COFF*)
5244 DUMPBIN="$DUMPBIN -symbols"
5245 ;;
5246 *)
5247 DUMPBIN=:
5248 ;;
5249 esac
5250 fi
5251
5252 if test "$DUMPBIN" != ":"; then
5253 NM="$DUMPBIN"
5254 fi
5255 fi
5256 test -z "$NM" && NM=nm
5257
5258
5259
5260
5261
5262
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5264 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5265 if ${lt_cv_nm_interface+:} false; then :
5266 $as_echo_n "(cached) " >&6
5267 else
5268 lt_cv_nm_interface="BSD nm"
5269 echo "int some_variable = 0;" > conftest.$ac_ext
5270 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5271 (eval "$ac_compile" 2>conftest.err)
5272 cat conftest.err >&5
5273 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5274 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5275 cat conftest.err >&5
5276 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5277 cat conftest.out >&5
5278 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5279 lt_cv_nm_interface="MS dumpbin"
5280 fi
5281 rm -f conftest*
5282 fi
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5284 $as_echo "$lt_cv_nm_interface" >&6; }
5285
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5287 $as_echo_n "checking whether ln -s works... " >&6; }
5288 LN_S=$as_ln_s
5289 if test "$LN_S" = "ln -s"; then
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5291 $as_echo "yes" >&6; }
5292 else
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5294 $as_echo "no, using $LN_S" >&6; }
5295 fi
5296
5297 # find the maximum length of command line arguments
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5299 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5300 if ${lt_cv_sys_max_cmd_len+:} false; then :
5301 $as_echo_n "(cached) " >&6
5302 else
5303 i=0
5304 teststring="ABCD"
5305
5306 case $build_os in
5307 msdosdjgpp*)
5308 # On DJGPP, this test can blow up pretty badly due to problems in libc
5309 # (any single argument exceeding 2000 bytes causes a buffer overrun
5310 # during glob expansion). Even if it were fixed, the result of this
5311 # check would be larger than it should be.
5312 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5313 ;;
5314
5315 gnu*)
5316 # Under GNU Hurd, this test is not required because there is
5317 # no limit to the length of command line arguments.
5318 # Libtool will interpret -1 as no limit whatsoever
5319 lt_cv_sys_max_cmd_len=-1;
5320 ;;
5321
5322 cygwin* | mingw* | cegcc*)
5323 # On Win9x/ME, this test blows up -- it succeeds, but takes
5324 # about 5 minutes as the teststring grows exponentially.
5325 # Worse, since 9x/ME are not pre-emptively multitasking,
5326 # you end up with a "frozen" computer, even though with patience
5327 # the test eventually succeeds (with a max line length of 256k).
5328 # Instead, let's just punt: use the minimum linelength reported by
5329 # all of the supported platforms: 8192 (on NT/2K/XP).
5330 lt_cv_sys_max_cmd_len=8192;
5331 ;;
5332
5333 mint*)
5334 # On MiNT this can take a long time and run out of memory.
5335 lt_cv_sys_max_cmd_len=8192;
5336 ;;
5337
5338 amigaos*)
5339 # On AmigaOS with pdksh, this test takes hours, literally.
5340 # So we just punt and use a minimum line length of 8192.
5341 lt_cv_sys_max_cmd_len=8192;
5342 ;;
5343
5344 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5345 # This has been around since 386BSD, at least. Likely further.
5346 if test -x /sbin/sysctl; then
5347 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5348 elif test -x /usr/sbin/sysctl; then
5349 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5350 else
5351 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5352 fi
5353 # And add a safety zone
5354 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5355 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5356 ;;
5357
5358 interix*)
5359 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5360 lt_cv_sys_max_cmd_len=196608
5361 ;;
5362
5363 osf*)
5364 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5365 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5366 # nice to cause kernel panics so lets avoid the loop below.
5367 # First set a reasonable default.
5368 lt_cv_sys_max_cmd_len=16384
5369 #
5370 if test -x /sbin/sysconfig; then
5371 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5372 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5373 esac
5374 fi
5375 ;;
5376 sco3.2v5*)
5377 lt_cv_sys_max_cmd_len=102400
5378 ;;
5379 sysv5* | sco5v6* | sysv4.2uw2*)
5380 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5381 if test -n "$kargmax"; then
5382 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5383 else
5384 lt_cv_sys_max_cmd_len=32768
5385 fi
5386 ;;
5387 *)
5388 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5389 if test -n "$lt_cv_sys_max_cmd_len"; then
5390 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5391 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5392 else
5393 # Make teststring a little bigger before we do anything with it.
5394 # a 1K string should be a reasonable start.
5395 for i in 1 2 3 4 5 6 7 8 ; do
5396 teststring=$teststring$teststring
5397 done
5398 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5399 # If test is not a shell built-in, we'll probably end up computing a
5400 # maximum length that is only half of the actual maximum length, but
5401 # we can't tell.
5402 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5403 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5404 test $i != 17 # 1/2 MB should be enough
5405 do
5406 i=`expr $i + 1`
5407 teststring=$teststring$teststring
5408 done
5409 # Only check the string length outside the loop.
5410 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5411 teststring=
5412 # Add a significant safety factor because C++ compilers can tack on
5413 # massive amounts of additional arguments before passing them to the
5414 # linker. It appears as though 1/2 is a usable value.
5415 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5416 fi
5417 ;;
5418 esac
5419
5420 fi
5421
5422 if test -n $lt_cv_sys_max_cmd_len ; then
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5424 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5425 else
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5427 $as_echo "none" >&6; }
5428 fi
5429 max_cmd_len=$lt_cv_sys_max_cmd_len
5430
5431
5432
5433
5434
5435
5436 : ${CP="cp -f"}
5437 : ${MV="mv -f"}
5438 : ${RM="rm -f"}
5439
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5441 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5442 # Try some XSI features
5443 xsi_shell=no
5444 ( _lt_dummy="a/b/c"
5445 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5446 = c,a/b,, \
5447 && eval 'test $(( 1 + 1 )) -eq 2 \
5448 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5449 && xsi_shell=yes
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5451 $as_echo "$xsi_shell" >&6; }
5452
5453
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5455 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5456 lt_shell_append=no
5457 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5458 >/dev/null 2>&1 \
5459 && lt_shell_append=yes
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5461 $as_echo "$lt_shell_append" >&6; }
5462
5463
5464 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5465 lt_unset=unset
5466 else
5467 lt_unset=false
5468 fi
5469
5470
5471
5472
5473
5474 # test EBCDIC or ASCII
5475 case `echo X|tr X '\101'` in
5476 A) # ASCII based system
5477 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5478 lt_SP2NL='tr \040 \012'
5479 lt_NL2SP='tr \015\012 \040\040'
5480 ;;
5481 *) # EBCDIC based system
5482 lt_SP2NL='tr \100 \n'
5483 lt_NL2SP='tr \r\n \100\100'
5484 ;;
5485 esac
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5496 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5497 if ${lt_cv_ld_reload_flag+:} false; then :
5498 $as_echo_n "(cached) " >&6
5499 else
5500 lt_cv_ld_reload_flag='-r'
5501 fi
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5503 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5504 reload_flag=$lt_cv_ld_reload_flag
5505 case $reload_flag in
5506 "" | " "*) ;;
5507 *) reload_flag=" $reload_flag" ;;
5508 esac
5509 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5510 case $host_os in
5511 darwin*)
5512 if test "$GCC" = yes; then
5513 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5514 else
5515 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5516 fi
5517 ;;
5518 esac
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528 if test -n "$ac_tool_prefix"; then
5529 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5530 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5532 $as_echo_n "checking for $ac_word... " >&6; }
5533 if ${ac_cv_prog_OBJDUMP+:} false; then :
5534 $as_echo_n "(cached) " >&6
5535 else
5536 if test -n "$OBJDUMP"; then
5537 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5538 else
5539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5540 for as_dir in $PATH
5541 do
5542 IFS=$as_save_IFS
5543 test -z "$as_dir" && as_dir=.
5544 for ac_exec_ext in '' $ac_executable_extensions; do
5545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5546 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5548 break 2
5549 fi
5550 done
5551 done
5552 IFS=$as_save_IFS
5553
5554 fi
5555 fi
5556 OBJDUMP=$ac_cv_prog_OBJDUMP
5557 if test -n "$OBJDUMP"; then
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5559 $as_echo "$OBJDUMP" >&6; }
5560 else
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5562 $as_echo "no" >&6; }
5563 fi
5564
5565
5566 fi
5567 if test -z "$ac_cv_prog_OBJDUMP"; then
5568 ac_ct_OBJDUMP=$OBJDUMP
5569 # Extract the first word of "objdump", so it can be a program name with args.
5570 set dummy objdump; ac_word=$2
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5572 $as_echo_n "checking for $ac_word... " >&6; }
5573 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5574 $as_echo_n "(cached) " >&6
5575 else
5576 if test -n "$ac_ct_OBJDUMP"; then
5577 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5578 else
5579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5580 for as_dir in $PATH
5581 do
5582 IFS=$as_save_IFS
5583 test -z "$as_dir" && as_dir=.
5584 for ac_exec_ext in '' $ac_executable_extensions; do
5585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5586 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5588 break 2
5589 fi
5590 done
5591 done
5592 IFS=$as_save_IFS
5593
5594 fi
5595 fi
5596 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5597 if test -n "$ac_ct_OBJDUMP"; then
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5599 $as_echo "$ac_ct_OBJDUMP" >&6; }
5600 else
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5602 $as_echo "no" >&6; }
5603 fi
5604
5605 if test "x$ac_ct_OBJDUMP" = x; then
5606 OBJDUMP="false"
5607 else
5608 case $cross_compiling:$ac_tool_warned in
5609 yes:)
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5611 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5612 ac_tool_warned=yes ;;
5613 esac
5614 OBJDUMP=$ac_ct_OBJDUMP
5615 fi
5616 else
5617 OBJDUMP="$ac_cv_prog_OBJDUMP"
5618 fi
5619
5620 test -z "$OBJDUMP" && OBJDUMP=objdump
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5631 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5632 if ${lt_cv_deplibs_check_method+:} false; then :
5633 $as_echo_n "(cached) " >&6
5634 else
5635 lt_cv_file_magic_cmd='$MAGIC_CMD'
5636 lt_cv_file_magic_test_file=
5637 lt_cv_deplibs_check_method='unknown'
5638 # Need to set the preceding variable on all platforms that support
5639 # interlibrary dependencies.
5640 # 'none' -- dependencies not supported.
5641 # `unknown' -- same as none, but documents that we really don't know.
5642 # 'pass_all' -- all dependencies passed with no checks.
5643 # 'test_compile' -- check by making test program.
5644 # 'file_magic [[regex]]' -- check by looking for files in library path
5645 # which responds to the $file_magic_cmd with a given extended regex.
5646 # If you have `file' or equivalent on your system and you're not sure
5647 # whether `pass_all' will *always* work, you probably want this one.
5648
5649 case $host_os in
5650 aix[4-9]*)
5651 lt_cv_deplibs_check_method=pass_all
5652 ;;
5653
5654 beos*)
5655 lt_cv_deplibs_check_method=pass_all
5656 ;;
5657
5658 bsdi[45]*)
5659 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5660 lt_cv_file_magic_cmd='/usr/bin/file -L'
5661 lt_cv_file_magic_test_file=/shlib/libc.so
5662 ;;
5663
5664 cygwin*)
5665 # func_win32_libid is a shell function defined in ltmain.sh
5666 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5667 lt_cv_file_magic_cmd='func_win32_libid'
5668 ;;
5669
5670 mingw* | pw32*)
5671 # Base MSYS/MinGW do not provide the 'file' command needed by
5672 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5673 # unless we find 'file', for example because we are cross-compiling.
5674 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5675 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5676 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5677 lt_cv_file_magic_cmd='func_win32_libid'
5678 else
5679 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5680 lt_cv_file_magic_cmd='$OBJDUMP -f'
5681 fi
5682 ;;
5683
5684 cegcc*)
5685 # use the weaker test based on 'objdump'. See mingw*.
5686 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5687 lt_cv_file_magic_cmd='$OBJDUMP -f'
5688 ;;
5689
5690 darwin* | rhapsody*)
5691 lt_cv_deplibs_check_method=pass_all
5692 ;;
5693
5694 freebsd* | dragonfly*)
5695 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5696 case $host_cpu in
5697 i*86 )
5698 # Not sure whether the presence of OpenBSD here was a mistake.
5699 # Let's accept both of them until this is cleared up.
5700 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5701 lt_cv_file_magic_cmd=/usr/bin/file
5702 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5703 ;;
5704 esac
5705 else
5706 lt_cv_deplibs_check_method=pass_all
5707 fi
5708 ;;
5709
5710 gnu*)
5711 lt_cv_deplibs_check_method=pass_all
5712 ;;
5713
5714 haiku*)
5715 lt_cv_deplibs_check_method=pass_all
5716 ;;
5717
5718 hpux10.20* | hpux11*)
5719 lt_cv_file_magic_cmd=/usr/bin/file
5720 case $host_cpu in
5721 ia64*)
5722 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5723 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5724 ;;
5725 hppa*64*)
5726 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]'
5727 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5728 ;;
5729 *)
5730 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5731 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5732 ;;
5733 esac
5734 ;;
5735
5736 interix[3-9]*)
5737 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5738 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5739 ;;
5740
5741 irix5* | irix6* | nonstopux*)
5742 case $LD in
5743 *-32|*"-32 ") libmagic=32-bit;;
5744 *-n32|*"-n32 ") libmagic=N32;;
5745 *-64|*"-64 ") libmagic=64-bit;;
5746 *) libmagic=never-match;;
5747 esac
5748 lt_cv_deplibs_check_method=pass_all
5749 ;;
5750
5751 # This must be Linux ELF.
5752 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
5753 lt_cv_deplibs_check_method=pass_all
5754 ;;
5755
5756 netbsd*)
5757 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5758 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5759 else
5760 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5761 fi
5762 ;;
5763
5764 newos6*)
5765 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5766 lt_cv_file_magic_cmd=/usr/bin/file
5767 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5768 ;;
5769
5770 *nto* | *qnx*)
5771 lt_cv_deplibs_check_method=pass_all
5772 ;;
5773
5774 openbsd*)
5775 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5776 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5777 else
5778 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5779 fi
5780 ;;
5781
5782 osf3* | osf4* | osf5*)
5783 lt_cv_deplibs_check_method=pass_all
5784 ;;
5785
5786 rdos*)
5787 lt_cv_deplibs_check_method=pass_all
5788 ;;
5789
5790 solaris*)
5791 lt_cv_deplibs_check_method=pass_all
5792 ;;
5793
5794 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5795 lt_cv_deplibs_check_method=pass_all
5796 ;;
5797
5798 sysv4 | sysv4.3*)
5799 case $host_vendor in
5800 motorola)
5801 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]'
5802 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5803 ;;
5804 ncr)
5805 lt_cv_deplibs_check_method=pass_all
5806 ;;
5807 sequent)
5808 lt_cv_file_magic_cmd='/bin/file'
5809 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5810 ;;
5811 sni)
5812 lt_cv_file_magic_cmd='/bin/file'
5813 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5814 lt_cv_file_magic_test_file=/lib/libc.so
5815 ;;
5816 siemens)
5817 lt_cv_deplibs_check_method=pass_all
5818 ;;
5819 pc)
5820 lt_cv_deplibs_check_method=pass_all
5821 ;;
5822 esac
5823 ;;
5824
5825 tpf*)
5826 lt_cv_deplibs_check_method=pass_all
5827 ;;
5828 esac
5829
5830 fi
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5832 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5833 file_magic_cmd=$lt_cv_file_magic_cmd
5834 deplibs_check_method=$lt_cv_deplibs_check_method
5835 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848 if test -n "$ac_tool_prefix"; then
5849 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5850 set dummy ${ac_tool_prefix}ar; ac_word=$2
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5852 $as_echo_n "checking for $ac_word... " >&6; }
5853 if ${ac_cv_prog_AR+:} false; then :
5854 $as_echo_n "(cached) " >&6
5855 else
5856 if test -n "$AR"; then
5857 ac_cv_prog_AR="$AR" # Let the user override the test.
5858 else
5859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860 for as_dir in $PATH
5861 do
5862 IFS=$as_save_IFS
5863 test -z "$as_dir" && as_dir=.
5864 for ac_exec_ext in '' $ac_executable_extensions; do
5865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5866 ac_cv_prog_AR="${ac_tool_prefix}ar"
5867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5868 break 2
5869 fi
5870 done
5871 done
5872 IFS=$as_save_IFS
5873
5874 fi
5875 fi
5876 AR=$ac_cv_prog_AR
5877 if test -n "$AR"; then
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5879 $as_echo "$AR" >&6; }
5880 else
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5882 $as_echo "no" >&6; }
5883 fi
5884
5885
5886 fi
5887 if test -z "$ac_cv_prog_AR"; then
5888 ac_ct_AR=$AR
5889 # Extract the first word of "ar", so it can be a program name with args.
5890 set dummy ar; ac_word=$2
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5892 $as_echo_n "checking for $ac_word... " >&6; }
5893 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5894 $as_echo_n "(cached) " >&6
5895 else
5896 if test -n "$ac_ct_AR"; then
5897 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5898 else
5899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5900 for as_dir in $PATH
5901 do
5902 IFS=$as_save_IFS
5903 test -z "$as_dir" && as_dir=.
5904 for ac_exec_ext in '' $ac_executable_extensions; do
5905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5906 ac_cv_prog_ac_ct_AR="ar"
5907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5908 break 2
5909 fi
5910 done
5911 done
5912 IFS=$as_save_IFS
5913
5914 fi
5915 fi
5916 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5917 if test -n "$ac_ct_AR"; then
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5919 $as_echo "$ac_ct_AR" >&6; }
5920 else
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5922 $as_echo "no" >&6; }
5923 fi
5924
5925 if test "x$ac_ct_AR" = x; then
5926 AR="false"
5927 else
5928 case $cross_compiling:$ac_tool_warned in
5929 yes:)
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5932 ac_tool_warned=yes ;;
5933 esac
5934 AR=$ac_ct_AR
5935 fi
5936 else
5937 AR="$ac_cv_prog_AR"
5938 fi
5939
5940 test -z "$AR" && AR=ar
5941 test -z "$AR_FLAGS" && AR_FLAGS=cru
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953 if test -n "$ac_tool_prefix"; then
5954 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5955 set dummy ${ac_tool_prefix}strip; ac_word=$2
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5957 $as_echo_n "checking for $ac_word... " >&6; }
5958 if ${ac_cv_prog_STRIP+:} false; then :
5959 $as_echo_n "(cached) " >&6
5960 else
5961 if test -n "$STRIP"; then
5962 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5963 else
5964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965 for as_dir in $PATH
5966 do
5967 IFS=$as_save_IFS
5968 test -z "$as_dir" && as_dir=.
5969 for ac_exec_ext in '' $ac_executable_extensions; do
5970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5971 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5973 break 2
5974 fi
5975 done
5976 done
5977 IFS=$as_save_IFS
5978
5979 fi
5980 fi
5981 STRIP=$ac_cv_prog_STRIP
5982 if test -n "$STRIP"; then
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5984 $as_echo "$STRIP" >&6; }
5985 else
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5987 $as_echo "no" >&6; }
5988 fi
5989
5990
5991 fi
5992 if test -z "$ac_cv_prog_STRIP"; then
5993 ac_ct_STRIP=$STRIP
5994 # Extract the first word of "strip", so it can be a program name with args.
5995 set dummy strip; ac_word=$2
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5997 $as_echo_n "checking for $ac_word... " >&6; }
5998 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5999 $as_echo_n "(cached) " >&6
6000 else
6001 if test -n "$ac_ct_STRIP"; then
6002 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6003 else
6004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005 for as_dir in $PATH
6006 do
6007 IFS=$as_save_IFS
6008 test -z "$as_dir" && as_dir=.
6009 for ac_exec_ext in '' $ac_executable_extensions; do
6010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6011 ac_cv_prog_ac_ct_STRIP="strip"
6012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6013 break 2
6014 fi
6015 done
6016 done
6017 IFS=$as_save_IFS
6018
6019 fi
6020 fi
6021 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6022 if test -n "$ac_ct_STRIP"; then
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6024 $as_echo "$ac_ct_STRIP" >&6; }
6025 else
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6027 $as_echo "no" >&6; }
6028 fi
6029
6030 if test "x$ac_ct_STRIP" = x; then
6031 STRIP=":"
6032 else
6033 case $cross_compiling:$ac_tool_warned in
6034 yes:)
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6036 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6037 ac_tool_warned=yes ;;
6038 esac
6039 STRIP=$ac_ct_STRIP
6040 fi
6041 else
6042 STRIP="$ac_cv_prog_STRIP"
6043 fi
6044
6045 test -z "$STRIP" && STRIP=:
6046
6047
6048
6049
6050
6051
6052 if test -n "$ac_tool_prefix"; then
6053 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6054 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6056 $as_echo_n "checking for $ac_word... " >&6; }
6057 if ${ac_cv_prog_RANLIB+:} false; then :
6058 $as_echo_n "(cached) " >&6
6059 else
6060 if test -n "$RANLIB"; then
6061 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6062 else
6063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064 for as_dir in $PATH
6065 do
6066 IFS=$as_save_IFS
6067 test -z "$as_dir" && as_dir=.
6068 for ac_exec_ext in '' $ac_executable_extensions; do
6069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6070 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6072 break 2
6073 fi
6074 done
6075 done
6076 IFS=$as_save_IFS
6077
6078 fi
6079 fi
6080 RANLIB=$ac_cv_prog_RANLIB
6081 if test -n "$RANLIB"; then
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6083 $as_echo "$RANLIB" >&6; }
6084 else
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6086 $as_echo "no" >&6; }
6087 fi
6088
6089
6090 fi
6091 if test -z "$ac_cv_prog_RANLIB"; then
6092 ac_ct_RANLIB=$RANLIB
6093 # Extract the first word of "ranlib", so it can be a program name with args.
6094 set dummy ranlib; ac_word=$2
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6096 $as_echo_n "checking for $ac_word... " >&6; }
6097 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6098 $as_echo_n "(cached) " >&6
6099 else
6100 if test -n "$ac_ct_RANLIB"; then
6101 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6102 else
6103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6104 for as_dir in $PATH
6105 do
6106 IFS=$as_save_IFS
6107 test -z "$as_dir" && as_dir=.
6108 for ac_exec_ext in '' $ac_executable_extensions; do
6109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6110 ac_cv_prog_ac_ct_RANLIB="ranlib"
6111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6112 break 2
6113 fi
6114 done
6115 done
6116 IFS=$as_save_IFS
6117
6118 fi
6119 fi
6120 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6121 if test -n "$ac_ct_RANLIB"; then
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6123 $as_echo "$ac_ct_RANLIB" >&6; }
6124 else
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6126 $as_echo "no" >&6; }
6127 fi
6128
6129 if test "x$ac_ct_RANLIB" = x; then
6130 RANLIB=":"
6131 else
6132 case $cross_compiling:$ac_tool_warned in
6133 yes:)
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6136 ac_tool_warned=yes ;;
6137 esac
6138 RANLIB=$ac_ct_RANLIB
6139 fi
6140 else
6141 RANLIB="$ac_cv_prog_RANLIB"
6142 fi
6143
6144 test -z "$RANLIB" && RANLIB=:
6145
6146
6147
6148
6149
6150
6151 # Determine commands to create old-style static archives.
6152 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6153 old_postinstall_cmds='chmod 644 $oldlib'
6154 old_postuninstall_cmds=
6155
6156 if test -n "$RANLIB"; then
6157 case $host_os in
6158 openbsd*)
6159 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6160 ;;
6161 *)
6162 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6163 ;;
6164 esac
6165 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6166 fi
6167
6168 case $host_os in
6169 darwin*)
6170 lock_old_archive_extraction=yes ;;
6171 *)
6172 lock_old_archive_extraction=no ;;
6173 esac
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213 # If no C compiler was specified, use CC.
6214 LTCC=${LTCC-"$CC"}
6215
6216 # If no C compiler flags were specified, use CFLAGS.
6217 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6218
6219 # Allow CC to be a program name with arguments.
6220 compiler=$CC
6221
6222
6223 # Check for command to grab the raw symbol name followed by C symbol from nm.
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6225 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6226 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6227 $as_echo_n "(cached) " >&6
6228 else
6229
6230 # These are sane defaults that work on at least a few old systems.
6231 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6232
6233 # Character class describing NM global symbol codes.
6234 symcode='[BCDEGRST]'
6235
6236 # Regexp to match symbols that can be accessed directly from C.
6237 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6238
6239 # Define system-specific variables.
6240 case $host_os in
6241 aix*)
6242 symcode='[BCDT]'
6243 ;;
6244 cygwin* | mingw* | pw32* | cegcc*)
6245 symcode='[ABCDGISTW]'
6246 ;;
6247 hpux*)
6248 if test "$host_cpu" = ia64; then
6249 symcode='[ABCDEGRST]'
6250 fi
6251 ;;
6252 irix* | nonstopux*)
6253 symcode='[BCDEGRST]'
6254 ;;
6255 osf*)
6256 symcode='[BCDEGQRST]'
6257 ;;
6258 solaris*)
6259 symcode='[BDRT]'
6260 ;;
6261 sco3.2v5*)
6262 symcode='[DT]'
6263 ;;
6264 sysv4.2uw2*)
6265 symcode='[DT]'
6266 ;;
6267 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6268 symcode='[ABDT]'
6269 ;;
6270 sysv4)
6271 symcode='[DFNSTU]'
6272 ;;
6273 esac
6274
6275 # If we're using GNU nm, then use its standard symbol codes.
6276 case `$NM -V 2>&1` in
6277 *GNU* | *'with BFD'*)
6278 symcode='[ABCDGIRSTW]' ;;
6279 esac
6280
6281 # Transform an extracted symbol line into a proper C declaration.
6282 # Some systems (esp. on ia64) link data and code symbols differently,
6283 # so use this general approach.
6284 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6285
6286 # Transform an extracted symbol line into symbol name and symbol address
6287 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6288 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'"
6289
6290 # Handle CRLF in mingw tool chain
6291 opt_cr=
6292 case $build_os in
6293 mingw*)
6294 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6295 ;;
6296 esac
6297
6298 # Try without a prefix underscore, then with it.
6299 for ac_symprfx in "" "_"; do
6300
6301 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6302 symxfrm="\\1 $ac_symprfx\\2 \\2"
6303
6304 # Write the raw and C identifiers.
6305 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6306 # Fake it for dumpbin and say T for any non-static function
6307 # and D for any global variable.
6308 # Also find C++ and __fastcall symbols from MSVC++,
6309 # which start with @ or ?.
6310 lt_cv_sys_global_symbol_pipe="$AWK '"\
6311 " {last_section=section; section=\$ 3};"\
6312 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6313 " \$ 0!~/External *\|/{next};"\
6314 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6315 " {if(hide[section]) next};"\
6316 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6317 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6318 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6319 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6320 " ' prfx=^$ac_symprfx"
6321 else
6322 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6323 fi
6324
6325 # Check to see that the pipe works correctly.
6326 pipe_works=no
6327
6328 rm -f conftest*
6329 cat > conftest.$ac_ext <<_LT_EOF
6330 #ifdef __cplusplus
6331 extern "C" {
6332 #endif
6333 char nm_test_var;
6334 void nm_test_func(void);
6335 void nm_test_func(void){}
6336 #ifdef __cplusplus
6337 }
6338 #endif
6339 int main(){nm_test_var='a';nm_test_func();return(0);}
6340 _LT_EOF
6341
6342 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6343 (eval $ac_compile) 2>&5
6344 ac_status=$?
6345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6346 test $ac_status = 0; }; then
6347 # Now try to grab the symbols.
6348 nlist=conftest.nm
6349 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6350 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6351 ac_status=$?
6352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6353 test $ac_status = 0; } && test -s "$nlist"; then
6354 # Try sorting and uniquifying the output.
6355 if sort "$nlist" | uniq > "$nlist"T; then
6356 mv -f "$nlist"T "$nlist"
6357 else
6358 rm -f "$nlist"T
6359 fi
6360
6361 # Make sure that we snagged all the symbols we need.
6362 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6363 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6364 cat <<_LT_EOF > conftest.$ac_ext
6365 #ifdef __cplusplus
6366 extern "C" {
6367 #endif
6368
6369 _LT_EOF
6370 # Now generate the symbol file.
6371 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6372
6373 cat <<_LT_EOF >> conftest.$ac_ext
6374
6375 /* The mapping between symbol names and symbols. */
6376 const struct {
6377 const char *name;
6378 void *address;
6379 }
6380 lt__PROGRAM__LTX_preloaded_symbols[] =
6381 {
6382 { "@PROGRAM@", (void *) 0 },
6383 _LT_EOF
6384 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6385 cat <<\_LT_EOF >> conftest.$ac_ext
6386 {0, (void *) 0}
6387 };
6388
6389 /* This works around a problem in FreeBSD linker */
6390 #ifdef FREEBSD_WORKAROUND
6391 static const void *lt_preloaded_setup() {
6392 return lt__PROGRAM__LTX_preloaded_symbols;
6393 }
6394 #endif
6395
6396 #ifdef __cplusplus
6397 }
6398 #endif
6399 _LT_EOF
6400 # Now try linking the two files.
6401 mv conftest.$ac_objext conftstm.$ac_objext
6402 lt_save_LIBS="$LIBS"
6403 lt_save_CFLAGS="$CFLAGS"
6404 LIBS="conftstm.$ac_objext"
6405 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6406 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6407 (eval $ac_link) 2>&5
6408 ac_status=$?
6409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6410 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6411 pipe_works=yes
6412 fi
6413 LIBS="$lt_save_LIBS"
6414 CFLAGS="$lt_save_CFLAGS"
6415 else
6416 echo "cannot find nm_test_func in $nlist" >&5
6417 fi
6418 else
6419 echo "cannot find nm_test_var in $nlist" >&5
6420 fi
6421 else
6422 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6423 fi
6424 else
6425 echo "$progname: failed program was:" >&5
6426 cat conftest.$ac_ext >&5
6427 fi
6428 rm -rf conftest* conftst*
6429
6430 # Do not use the global_symbol_pipe unless it works.
6431 if test "$pipe_works" = yes; then
6432 break
6433 else
6434 lt_cv_sys_global_symbol_pipe=
6435 fi
6436 done
6437
6438 fi
6439
6440 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6441 lt_cv_sys_global_symbol_to_cdecl=
6442 fi
6443 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6445 $as_echo "failed" >&6; }
6446 else
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6448 $as_echo "ok" >&6; }
6449 fi
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472 # Check whether --enable-libtool-lock was given.
6473 if test "${enable_libtool_lock+set}" = set; then :
6474 enableval=$enable_libtool_lock;
6475 fi
6476
6477 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6478
6479 # Some flags need to be propagated to the compiler or linker for good
6480 # libtool support.
6481 case $host in
6482 ia64-*-hpux*)
6483 # Find out which ABI we are using.
6484 echo 'int i;' > conftest.$ac_ext
6485 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6486 (eval $ac_compile) 2>&5
6487 ac_status=$?
6488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6489 test $ac_status = 0; }; then
6490 case `/usr/bin/file conftest.$ac_objext` in
6491 *ELF-32*)
6492 HPUX_IA64_MODE="32"
6493 ;;
6494 *ELF-64*)
6495 HPUX_IA64_MODE="64"
6496 ;;
6497 esac
6498 fi
6499 rm -rf conftest*
6500 ;;
6501 *-*-irix6*)
6502 # Find out which ABI we are using.
6503 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6504 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6505 (eval $ac_compile) 2>&5
6506 ac_status=$?
6507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6508 test $ac_status = 0; }; then
6509 if test "$lt_cv_prog_gnu_ld" = yes; then
6510 case `/usr/bin/file conftest.$ac_objext` in
6511 *32-bit*)
6512 LD="${LD-ld} -melf32bsmip"
6513 ;;
6514 *N32*)
6515 LD="${LD-ld} -melf32bmipn32"
6516 ;;
6517 *64-bit*)
6518 LD="${LD-ld} -melf64bmip"
6519 ;;
6520 esac
6521 else
6522 case `/usr/bin/file conftest.$ac_objext` in
6523 *32-bit*)
6524 LD="${LD-ld} -32"
6525 ;;
6526 *N32*)
6527 LD="${LD-ld} -n32"
6528 ;;
6529 *64-bit*)
6530 LD="${LD-ld} -64"
6531 ;;
6532 esac
6533 fi
6534 fi
6535 rm -rf conftest*
6536 ;;
6537
6538 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6539 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6540 # Find out which ABI we are using.
6541 echo 'int i;' > conftest.$ac_ext
6542 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6543 (eval $ac_compile) 2>&5
6544 ac_status=$?
6545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6546 test $ac_status = 0; }; then
6547 case `/usr/bin/file conftest.o` in
6548 *32-bit*)
6549 case $host in
6550 x86_64-*kfreebsd*-gnu)
6551 LD="${LD-ld} -m elf_i386_fbsd"
6552 ;;
6553 x86_64-*linux*)
6554 case `/usr/bin/file conftest.o` in
6555 *x86-64*)
6556 LD="${LD-ld} -m elf32_x86_64"
6557 ;;
6558 *)
6559 LD="${LD-ld} -m elf_i386"
6560 ;;
6561 esac
6562 ;;
6563 powerpc64le-*linux*)
6564 LD="${LD-ld} -m elf32lppclinux"
6565 ;;
6566 powerpc64-*linux*)
6567 LD="${LD-ld} -m elf32ppclinux"
6568 ;;
6569 s390x-*linux*)
6570 LD="${LD-ld} -m elf_s390"
6571 ;;
6572 sparc64-*linux*)
6573 LD="${LD-ld} -m elf32_sparc"
6574 ;;
6575 esac
6576 ;;
6577 *64-bit*)
6578 case $host in
6579 x86_64-*kfreebsd*-gnu)
6580 LD="${LD-ld} -m elf_x86_64_fbsd"
6581 ;;
6582 x86_64-*linux*)
6583 LD="${LD-ld} -m elf_x86_64"
6584 ;;
6585 powerpcle-*linux*)
6586 LD="${LD-ld} -m elf64lppc"
6587 ;;
6588 powerpc-*linux*)
6589 LD="${LD-ld} -m elf64ppc"
6590 ;;
6591 s390*-*linux*|s390*-*tpf*)
6592 LD="${LD-ld} -m elf64_s390"
6593 ;;
6594 sparc*-*linux*)
6595 LD="${LD-ld} -m elf64_sparc"
6596 ;;
6597 esac
6598 ;;
6599 esac
6600 fi
6601 rm -rf conftest*
6602 ;;
6603
6604 *-*-sco3.2v5*)
6605 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6606 SAVE_CFLAGS="$CFLAGS"
6607 CFLAGS="$CFLAGS -belf"
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6609 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6610 if ${lt_cv_cc_needs_belf+:} false; then :
6611 $as_echo_n "(cached) " >&6
6612 else
6613 ac_ext=c
6614 ac_cpp='$CPP $CPPFLAGS'
6615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6618
6619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6620 /* end confdefs.h. */
6621
6622 int
6623 main ()
6624 {
6625
6626 ;
6627 return 0;
6628 }
6629 _ACEOF
6630 if ac_fn_c_try_link "$LINENO"; then :
6631 lt_cv_cc_needs_belf=yes
6632 else
6633 lt_cv_cc_needs_belf=no
6634 fi
6635 rm -f core conftest.err conftest.$ac_objext \
6636 conftest$ac_exeext conftest.$ac_ext
6637 ac_ext=c
6638 ac_cpp='$CPP $CPPFLAGS'
6639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6642
6643 fi
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6645 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6646 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6647 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6648 CFLAGS="$SAVE_CFLAGS"
6649 fi
6650 ;;
6651 sparc*-*solaris*)
6652 # Find out which ABI we are using.
6653 echo 'int i;' > conftest.$ac_ext
6654 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6655 (eval $ac_compile) 2>&5
6656 ac_status=$?
6657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6658 test $ac_status = 0; }; then
6659 case `/usr/bin/file conftest.o` in
6660 *64-bit*)
6661 case $lt_cv_prog_gnu_ld in
6662 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6663 *)
6664 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6665 LD="${LD-ld} -64"
6666 fi
6667 ;;
6668 esac
6669 ;;
6670 esac
6671 fi
6672 rm -rf conftest*
6673 ;;
6674 esac
6675
6676 need_locks="$enable_libtool_lock"
6677
6678
6679 case $host_os in
6680 rhapsody* | darwin*)
6681 if test -n "$ac_tool_prefix"; then
6682 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6683 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6685 $as_echo_n "checking for $ac_word... " >&6; }
6686 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6687 $as_echo_n "(cached) " >&6
6688 else
6689 if test -n "$DSYMUTIL"; then
6690 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6691 else
6692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6693 for as_dir in $PATH
6694 do
6695 IFS=$as_save_IFS
6696 test -z "$as_dir" && as_dir=.
6697 for ac_exec_ext in '' $ac_executable_extensions; do
6698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6699 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6701 break 2
6702 fi
6703 done
6704 done
6705 IFS=$as_save_IFS
6706
6707 fi
6708 fi
6709 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6710 if test -n "$DSYMUTIL"; then
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6712 $as_echo "$DSYMUTIL" >&6; }
6713 else
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6715 $as_echo "no" >&6; }
6716 fi
6717
6718
6719 fi
6720 if test -z "$ac_cv_prog_DSYMUTIL"; then
6721 ac_ct_DSYMUTIL=$DSYMUTIL
6722 # Extract the first word of "dsymutil", so it can be a program name with args.
6723 set dummy dsymutil; ac_word=$2
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6725 $as_echo_n "checking for $ac_word... " >&6; }
6726 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6727 $as_echo_n "(cached) " >&6
6728 else
6729 if test -n "$ac_ct_DSYMUTIL"; then
6730 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6731 else
6732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6733 for as_dir in $PATH
6734 do
6735 IFS=$as_save_IFS
6736 test -z "$as_dir" && as_dir=.
6737 for ac_exec_ext in '' $ac_executable_extensions; do
6738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6739 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6741 break 2
6742 fi
6743 done
6744 done
6745 IFS=$as_save_IFS
6746
6747 fi
6748 fi
6749 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6750 if test -n "$ac_ct_DSYMUTIL"; then
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6752 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6753 else
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6755 $as_echo "no" >&6; }
6756 fi
6757
6758 if test "x$ac_ct_DSYMUTIL" = x; then
6759 DSYMUTIL=":"
6760 else
6761 case $cross_compiling:$ac_tool_warned in
6762 yes:)
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6764 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6765 ac_tool_warned=yes ;;
6766 esac
6767 DSYMUTIL=$ac_ct_DSYMUTIL
6768 fi
6769 else
6770 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6771 fi
6772
6773 if test -n "$ac_tool_prefix"; then
6774 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6775 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6777 $as_echo_n "checking for $ac_word... " >&6; }
6778 if ${ac_cv_prog_NMEDIT+:} false; then :
6779 $as_echo_n "(cached) " >&6
6780 else
6781 if test -n "$NMEDIT"; then
6782 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6783 else
6784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785 for as_dir in $PATH
6786 do
6787 IFS=$as_save_IFS
6788 test -z "$as_dir" && as_dir=.
6789 for ac_exec_ext in '' $ac_executable_extensions; do
6790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6791 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6793 break 2
6794 fi
6795 done
6796 done
6797 IFS=$as_save_IFS
6798
6799 fi
6800 fi
6801 NMEDIT=$ac_cv_prog_NMEDIT
6802 if test -n "$NMEDIT"; then
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6804 $as_echo "$NMEDIT" >&6; }
6805 else
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6807 $as_echo "no" >&6; }
6808 fi
6809
6810
6811 fi
6812 if test -z "$ac_cv_prog_NMEDIT"; then
6813 ac_ct_NMEDIT=$NMEDIT
6814 # Extract the first word of "nmedit", so it can be a program name with args.
6815 set dummy nmedit; ac_word=$2
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6817 $as_echo_n "checking for $ac_word... " >&6; }
6818 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6819 $as_echo_n "(cached) " >&6
6820 else
6821 if test -n "$ac_ct_NMEDIT"; then
6822 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6823 else
6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825 for as_dir in $PATH
6826 do
6827 IFS=$as_save_IFS
6828 test -z "$as_dir" && as_dir=.
6829 for ac_exec_ext in '' $ac_executable_extensions; do
6830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6831 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6833 break 2
6834 fi
6835 done
6836 done
6837 IFS=$as_save_IFS
6838
6839 fi
6840 fi
6841 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6842 if test -n "$ac_ct_NMEDIT"; then
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6844 $as_echo "$ac_ct_NMEDIT" >&6; }
6845 else
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6847 $as_echo "no" >&6; }
6848 fi
6849
6850 if test "x$ac_ct_NMEDIT" = x; then
6851 NMEDIT=":"
6852 else
6853 case $cross_compiling:$ac_tool_warned in
6854 yes:)
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6857 ac_tool_warned=yes ;;
6858 esac
6859 NMEDIT=$ac_ct_NMEDIT
6860 fi
6861 else
6862 NMEDIT="$ac_cv_prog_NMEDIT"
6863 fi
6864
6865 if test -n "$ac_tool_prefix"; then
6866 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6867 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6869 $as_echo_n "checking for $ac_word... " >&6; }
6870 if ${ac_cv_prog_LIPO+:} false; then :
6871 $as_echo_n "(cached) " >&6
6872 else
6873 if test -n "$LIPO"; then
6874 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6875 else
6876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6877 for as_dir in $PATH
6878 do
6879 IFS=$as_save_IFS
6880 test -z "$as_dir" && as_dir=.
6881 for ac_exec_ext in '' $ac_executable_extensions; do
6882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6883 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6885 break 2
6886 fi
6887 done
6888 done
6889 IFS=$as_save_IFS
6890
6891 fi
6892 fi
6893 LIPO=$ac_cv_prog_LIPO
6894 if test -n "$LIPO"; then
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6896 $as_echo "$LIPO" >&6; }
6897 else
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6899 $as_echo "no" >&6; }
6900 fi
6901
6902
6903 fi
6904 if test -z "$ac_cv_prog_LIPO"; then
6905 ac_ct_LIPO=$LIPO
6906 # Extract the first word of "lipo", so it can be a program name with args.
6907 set dummy lipo; ac_word=$2
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6909 $as_echo_n "checking for $ac_word... " >&6; }
6910 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6911 $as_echo_n "(cached) " >&6
6912 else
6913 if test -n "$ac_ct_LIPO"; then
6914 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6915 else
6916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6917 for as_dir in $PATH
6918 do
6919 IFS=$as_save_IFS
6920 test -z "$as_dir" && as_dir=.
6921 for ac_exec_ext in '' $ac_executable_extensions; do
6922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6923 ac_cv_prog_ac_ct_LIPO="lipo"
6924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6925 break 2
6926 fi
6927 done
6928 done
6929 IFS=$as_save_IFS
6930
6931 fi
6932 fi
6933 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6934 if test -n "$ac_ct_LIPO"; then
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6936 $as_echo "$ac_ct_LIPO" >&6; }
6937 else
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6939 $as_echo "no" >&6; }
6940 fi
6941
6942 if test "x$ac_ct_LIPO" = x; then
6943 LIPO=":"
6944 else
6945 case $cross_compiling:$ac_tool_warned in
6946 yes:)
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6948 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6949 ac_tool_warned=yes ;;
6950 esac
6951 LIPO=$ac_ct_LIPO
6952 fi
6953 else
6954 LIPO="$ac_cv_prog_LIPO"
6955 fi
6956
6957 if test -n "$ac_tool_prefix"; then
6958 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6959 set dummy ${ac_tool_prefix}otool; ac_word=$2
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6961 $as_echo_n "checking for $ac_word... " >&6; }
6962 if ${ac_cv_prog_OTOOL+:} false; then :
6963 $as_echo_n "(cached) " >&6
6964 else
6965 if test -n "$OTOOL"; then
6966 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6967 else
6968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6969 for as_dir in $PATH
6970 do
6971 IFS=$as_save_IFS
6972 test -z "$as_dir" && as_dir=.
6973 for ac_exec_ext in '' $ac_executable_extensions; do
6974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6975 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6977 break 2
6978 fi
6979 done
6980 done
6981 IFS=$as_save_IFS
6982
6983 fi
6984 fi
6985 OTOOL=$ac_cv_prog_OTOOL
6986 if test -n "$OTOOL"; then
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6988 $as_echo "$OTOOL" >&6; }
6989 else
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6991 $as_echo "no" >&6; }
6992 fi
6993
6994
6995 fi
6996 if test -z "$ac_cv_prog_OTOOL"; then
6997 ac_ct_OTOOL=$OTOOL
6998 # Extract the first word of "otool", so it can be a program name with args.
6999 set dummy otool; ac_word=$2
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7001 $as_echo_n "checking for $ac_word... " >&6; }
7002 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7003 $as_echo_n "(cached) " >&6
7004 else
7005 if test -n "$ac_ct_OTOOL"; then
7006 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7007 else
7008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7009 for as_dir in $PATH
7010 do
7011 IFS=$as_save_IFS
7012 test -z "$as_dir" && as_dir=.
7013 for ac_exec_ext in '' $ac_executable_extensions; do
7014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7015 ac_cv_prog_ac_ct_OTOOL="otool"
7016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7017 break 2
7018 fi
7019 done
7020 done
7021 IFS=$as_save_IFS
7022
7023 fi
7024 fi
7025 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7026 if test -n "$ac_ct_OTOOL"; then
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7028 $as_echo "$ac_ct_OTOOL" >&6; }
7029 else
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7031 $as_echo "no" >&6; }
7032 fi
7033
7034 if test "x$ac_ct_OTOOL" = x; then
7035 OTOOL=":"
7036 else
7037 case $cross_compiling:$ac_tool_warned in
7038 yes:)
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7040 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7041 ac_tool_warned=yes ;;
7042 esac
7043 OTOOL=$ac_ct_OTOOL
7044 fi
7045 else
7046 OTOOL="$ac_cv_prog_OTOOL"
7047 fi
7048
7049 if test -n "$ac_tool_prefix"; then
7050 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7051 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7053 $as_echo_n "checking for $ac_word... " >&6; }
7054 if ${ac_cv_prog_OTOOL64+:} false; then :
7055 $as_echo_n "(cached) " >&6
7056 else
7057 if test -n "$OTOOL64"; then
7058 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7059 else
7060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7061 for as_dir in $PATH
7062 do
7063 IFS=$as_save_IFS
7064 test -z "$as_dir" && as_dir=.
7065 for ac_exec_ext in '' $ac_executable_extensions; do
7066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7067 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7069 break 2
7070 fi
7071 done
7072 done
7073 IFS=$as_save_IFS
7074
7075 fi
7076 fi
7077 OTOOL64=$ac_cv_prog_OTOOL64
7078 if test -n "$OTOOL64"; then
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7080 $as_echo "$OTOOL64" >&6; }
7081 else
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7083 $as_echo "no" >&6; }
7084 fi
7085
7086
7087 fi
7088 if test -z "$ac_cv_prog_OTOOL64"; then
7089 ac_ct_OTOOL64=$OTOOL64
7090 # Extract the first word of "otool64", so it can be a program name with args.
7091 set dummy otool64; ac_word=$2
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7093 $as_echo_n "checking for $ac_word... " >&6; }
7094 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7095 $as_echo_n "(cached) " >&6
7096 else
7097 if test -n "$ac_ct_OTOOL64"; then
7098 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7099 else
7100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7101 for as_dir in $PATH
7102 do
7103 IFS=$as_save_IFS
7104 test -z "$as_dir" && as_dir=.
7105 for ac_exec_ext in '' $ac_executable_extensions; do
7106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7107 ac_cv_prog_ac_ct_OTOOL64="otool64"
7108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7109 break 2
7110 fi
7111 done
7112 done
7113 IFS=$as_save_IFS
7114
7115 fi
7116 fi
7117 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7118 if test -n "$ac_ct_OTOOL64"; then
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7120 $as_echo "$ac_ct_OTOOL64" >&6; }
7121 else
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7123 $as_echo "no" >&6; }
7124 fi
7125
7126 if test "x$ac_ct_OTOOL64" = x; then
7127 OTOOL64=":"
7128 else
7129 case $cross_compiling:$ac_tool_warned in
7130 yes:)
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7132 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7133 ac_tool_warned=yes ;;
7134 esac
7135 OTOOL64=$ac_ct_OTOOL64
7136 fi
7137 else
7138 OTOOL64="$ac_cv_prog_OTOOL64"
7139 fi
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7168 $as_echo_n "checking for -single_module linker flag... " >&6; }
7169 if ${lt_cv_apple_cc_single_mod+:} false; then :
7170 $as_echo_n "(cached) " >&6
7171 else
7172 lt_cv_apple_cc_single_mod=no
7173 if test -z "${LT_MULTI_MODULE}"; then
7174 # By default we will add the -single_module flag. You can override
7175 # by either setting the environment variable LT_MULTI_MODULE
7176 # non-empty at configure time, or by adding -multi_module to the
7177 # link flags.
7178 rm -rf libconftest.dylib*
7179 echo "int foo(void){return 1;}" > conftest.c
7180 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7181 -dynamiclib -Wl,-single_module conftest.c" >&5
7182 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7183 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7184 _lt_result=$?
7185 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7186 lt_cv_apple_cc_single_mod=yes
7187 else
7188 cat conftest.err >&5
7189 fi
7190 rm -rf libconftest.dylib*
7191 rm -f conftest.*
7192 fi
7193 fi
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7195 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7197 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7198 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7199 $as_echo_n "(cached) " >&6
7200 else
7201 lt_cv_ld_exported_symbols_list=no
7202 save_LDFLAGS=$LDFLAGS
7203 echo "_main" > conftest.sym
7204 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7206 /* end confdefs.h. */
7207
7208 int
7209 main ()
7210 {
7211
7212 ;
7213 return 0;
7214 }
7215 _ACEOF
7216 if ac_fn_c_try_link "$LINENO"; then :
7217 lt_cv_ld_exported_symbols_list=yes
7218 else
7219 lt_cv_ld_exported_symbols_list=no
7220 fi
7221 rm -f core conftest.err conftest.$ac_objext \
7222 conftest$ac_exeext conftest.$ac_ext
7223 LDFLAGS="$save_LDFLAGS"
7224
7225 fi
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7227 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7229 $as_echo_n "checking for -force_load linker flag... " >&6; }
7230 if ${lt_cv_ld_force_load+:} false; then :
7231 $as_echo_n "(cached) " >&6
7232 else
7233 lt_cv_ld_force_load=no
7234 cat > conftest.c << _LT_EOF
7235 int forced_loaded() { return 2;}
7236 _LT_EOF
7237 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7238 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7239 echo "$AR cru libconftest.a conftest.o" >&5
7240 $AR cru libconftest.a conftest.o 2>&5
7241 cat > conftest.c << _LT_EOF
7242 int main() { return 0;}
7243 _LT_EOF
7244 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7245 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7246 _lt_result=$?
7247 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7248 lt_cv_ld_force_load=yes
7249 else
7250 cat conftest.err >&5
7251 fi
7252 rm -f conftest.err libconftest.a conftest conftest.c
7253 rm -rf conftest.dSYM
7254
7255 fi
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7257 $as_echo "$lt_cv_ld_force_load" >&6; }
7258 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7259 # build without first building modern cctools / linker.
7260 case $host_cpu-$host_os in
7261 *-rhapsody* | *-darwin1.[012])
7262 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7263 *-darwin1.*)
7264 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7265 *-darwin*)
7266 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7267 # deployment target is forced to an earlier version.
7268 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
7269 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
7270 ;;
7271 10.[012][,.]*)
7272 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7273 ;;
7274 *)
7275 ;;
7276 esac
7277 ;;
7278 esac
7279 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7280 _lt_dar_single_mod='$single_module'
7281 fi
7282 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7283 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7284 else
7285 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7286 fi
7287 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7288 _lt_dsymutil='~$DSYMUTIL $lib || :'
7289 else
7290 _lt_dsymutil=
7291 fi
7292 ;;
7293 esac
7294
7295 for ac_header in dlfcn.h
7296 do :
7297 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7298 "
7299 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7300 cat >>confdefs.h <<_ACEOF
7301 #define HAVE_DLFCN_H 1
7302 _ACEOF
7303
7304 fi
7305
7306 done
7307
7308
7309
7310
7311
7312 # Set options
7313 # Check whether --enable-static was given.
7314 if test "${enable_static+set}" = set; then :
7315 enableval=$enable_static; p=${PACKAGE-default}
7316 case $enableval in
7317 yes) enable_static=yes ;;
7318 no) enable_static=no ;;
7319 *)
7320 enable_static=no
7321 # Look at the argument we got. We use all the common list separators.
7322 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7323 for pkg in $enableval; do
7324 IFS="$lt_save_ifs"
7325 if test "X$pkg" = "X$p"; then
7326 enable_static=yes
7327 fi
7328 done
7329 IFS="$lt_save_ifs"
7330 ;;
7331 esac
7332 else
7333 enable_static=no
7334 fi
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345 enable_dlopen=no
7346
7347
7348 enable_win32_dll=no
7349
7350
7351 # Check whether --enable-shared was given.
7352 if test "${enable_shared+set}" = set; then :
7353 enableval=$enable_shared; p=${PACKAGE-default}
7354 case $enableval in
7355 yes) enable_shared=yes ;;
7356 no) enable_shared=no ;;
7357 *)
7358 enable_shared=no
7359 # Look at the argument we got. We use all the common list separators.
7360 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7361 for pkg in $enableval; do
7362 IFS="$lt_save_ifs"
7363 if test "X$pkg" = "X$p"; then
7364 enable_shared=yes
7365 fi
7366 done
7367 IFS="$lt_save_ifs"
7368 ;;
7369 esac
7370 else
7371 enable_shared=yes
7372 fi
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384 # Check whether --with-pic was given.
7385 if test "${with_pic+set}" = set; then :
7386 withval=$with_pic; pic_mode="$withval"
7387 else
7388 pic_mode=default
7389 fi
7390
7391
7392 test -z "$pic_mode" && pic_mode=default
7393
7394
7395
7396
7397
7398
7399
7400 # Check whether --enable-fast-install was given.
7401 if test "${enable_fast_install+set}" = set; then :
7402 enableval=$enable_fast_install; p=${PACKAGE-default}
7403 case $enableval in
7404 yes) enable_fast_install=yes ;;
7405 no) enable_fast_install=no ;;
7406 *)
7407 enable_fast_install=no
7408 # Look at the argument we got. We use all the common list separators.
7409 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7410 for pkg in $enableval; do
7411 IFS="$lt_save_ifs"
7412 if test "X$pkg" = "X$p"; then
7413 enable_fast_install=yes
7414 fi
7415 done
7416 IFS="$lt_save_ifs"
7417 ;;
7418 esac
7419 else
7420 enable_fast_install=yes
7421 fi
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433 # This can be used to rebuild libtool when needed
7434 LIBTOOL_DEPS="$ltmain"
7435
7436 # Always use our own libtool.
7437 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464 test -z "$LN_S" && LN_S="ln -s"
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479 if test -n "${ZSH_VERSION+set}" ; then
7480 setopt NO_GLOB_SUBST
7481 fi
7482
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7484 $as_echo_n "checking for objdir... " >&6; }
7485 if ${lt_cv_objdir+:} false; then :
7486 $as_echo_n "(cached) " >&6
7487 else
7488 rm -f .libs 2>/dev/null
7489 mkdir .libs 2>/dev/null
7490 if test -d .libs; then
7491 lt_cv_objdir=.libs
7492 else
7493 # MS-DOS does not allow filenames that begin with a dot.
7494 lt_cv_objdir=_libs
7495 fi
7496 rmdir .libs 2>/dev/null
7497 fi
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7499 $as_echo "$lt_cv_objdir" >&6; }
7500 objdir=$lt_cv_objdir
7501
7502
7503
7504
7505
7506 cat >>confdefs.h <<_ACEOF
7507 #define LT_OBJDIR "$lt_cv_objdir/"
7508 _ACEOF
7509
7510
7511
7512
7513 case $host_os in
7514 aix3*)
7515 # AIX sometimes has problems with the GCC collect2 program. For some
7516 # reason, if we set the COLLECT_NAMES environment variable, the problems
7517 # vanish in a puff of smoke.
7518 if test "X${COLLECT_NAMES+set}" != Xset; then
7519 COLLECT_NAMES=
7520 export COLLECT_NAMES
7521 fi
7522 ;;
7523 esac
7524
7525 # Global variables:
7526 ofile=libtool
7527 can_build_shared=yes
7528
7529 # All known linkers require a `.a' archive for static linking (except MSVC,
7530 # which needs '.lib').
7531 libext=a
7532
7533 with_gnu_ld="$lt_cv_prog_gnu_ld"
7534
7535 old_CC="$CC"
7536 old_CFLAGS="$CFLAGS"
7537
7538 # Set sane defaults for various variables
7539 test -z "$CC" && CC=cc
7540 test -z "$LTCC" && LTCC=$CC
7541 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7542 test -z "$LD" && LD=ld
7543 test -z "$ac_objext" && ac_objext=o
7544
7545 for cc_temp in $compiler""; do
7546 case $cc_temp in
7547 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7548 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7549 \-*) ;;
7550 *) break;;
7551 esac
7552 done
7553 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7554
7555
7556 # Only perform the check for file, if the check method requires it
7557 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7558 case $deplibs_check_method in
7559 file_magic*)
7560 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7562 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7563 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7564 $as_echo_n "(cached) " >&6
7565 else
7566 case $MAGIC_CMD in
7567 [\\/*] | ?:[\\/]*)
7568 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7569 ;;
7570 *)
7571 lt_save_MAGIC_CMD="$MAGIC_CMD"
7572 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7573 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7574 for ac_dir in $ac_dummy; do
7575 IFS="$lt_save_ifs"
7576 test -z "$ac_dir" && ac_dir=.
7577 if test -f $ac_dir/${ac_tool_prefix}file; then
7578 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7579 if test -n "$file_magic_test_file"; then
7580 case $deplibs_check_method in
7581 "file_magic "*)
7582 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7583 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7584 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7585 $EGREP "$file_magic_regex" > /dev/null; then
7586 :
7587 else
7588 cat <<_LT_EOF 1>&2
7589
7590 *** Warning: the command libtool uses to detect shared libraries,
7591 *** $file_magic_cmd, produces output that libtool cannot recognize.
7592 *** The result is that libtool may fail to recognize shared libraries
7593 *** as such. This will affect the creation of libtool libraries that
7594 *** depend on shared libraries, but programs linked with such libtool
7595 *** libraries will work regardless of this problem. Nevertheless, you
7596 *** may want to report the problem to your system manager and/or to
7597 *** bug-libtool@gnu.org
7598
7599 _LT_EOF
7600 fi ;;
7601 esac
7602 fi
7603 break
7604 fi
7605 done
7606 IFS="$lt_save_ifs"
7607 MAGIC_CMD="$lt_save_MAGIC_CMD"
7608 ;;
7609 esac
7610 fi
7611
7612 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7613 if test -n "$MAGIC_CMD"; then
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7615 $as_echo "$MAGIC_CMD" >&6; }
7616 else
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618 $as_echo "no" >&6; }
7619 fi
7620
7621
7622
7623
7624
7625 if test -z "$lt_cv_path_MAGIC_CMD"; then
7626 if test -n "$ac_tool_prefix"; then
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7628 $as_echo_n "checking for file... " >&6; }
7629 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7630 $as_echo_n "(cached) " >&6
7631 else
7632 case $MAGIC_CMD in
7633 [\\/*] | ?:[\\/]*)
7634 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7635 ;;
7636 *)
7637 lt_save_MAGIC_CMD="$MAGIC_CMD"
7638 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7639 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7640 for ac_dir in $ac_dummy; do
7641 IFS="$lt_save_ifs"
7642 test -z "$ac_dir" && ac_dir=.
7643 if test -f $ac_dir/file; then
7644 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7645 if test -n "$file_magic_test_file"; then
7646 case $deplibs_check_method in
7647 "file_magic "*)
7648 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7649 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7650 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7651 $EGREP "$file_magic_regex" > /dev/null; then
7652 :
7653 else
7654 cat <<_LT_EOF 1>&2
7655
7656 *** Warning: the command libtool uses to detect shared libraries,
7657 *** $file_magic_cmd, produces output that libtool cannot recognize.
7658 *** The result is that libtool may fail to recognize shared libraries
7659 *** as such. This will affect the creation of libtool libraries that
7660 *** depend on shared libraries, but programs linked with such libtool
7661 *** libraries will work regardless of this problem. Nevertheless, you
7662 *** may want to report the problem to your system manager and/or to
7663 *** bug-libtool@gnu.org
7664
7665 _LT_EOF
7666 fi ;;
7667 esac
7668 fi
7669 break
7670 fi
7671 done
7672 IFS="$lt_save_ifs"
7673 MAGIC_CMD="$lt_save_MAGIC_CMD"
7674 ;;
7675 esac
7676 fi
7677
7678 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7679 if test -n "$MAGIC_CMD"; then
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7681 $as_echo "$MAGIC_CMD" >&6; }
7682 else
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7684 $as_echo "no" >&6; }
7685 fi
7686
7687
7688 else
7689 MAGIC_CMD=:
7690 fi
7691 fi
7692
7693 fi
7694 ;;
7695 esac
7696
7697 # Use C for the default configuration in the libtool script
7698
7699 lt_save_CC="$CC"
7700 ac_ext=c
7701 ac_cpp='$CPP $CPPFLAGS'
7702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7705
7706
7707 # Source file extension for C test sources.
7708 ac_ext=c
7709
7710 # Object file extension for compiled C test sources.
7711 objext=o
7712 objext=$objext
7713
7714 # Code to be used in simple compile tests
7715 lt_simple_compile_test_code="int some_variable = 0;"
7716
7717 # Code to be used in simple link tests
7718 lt_simple_link_test_code='int main(){return(0);}'
7719
7720
7721
7722
7723
7724
7725
7726 # If no C compiler was specified, use CC.
7727 LTCC=${LTCC-"$CC"}
7728
7729 # If no C compiler flags were specified, use CFLAGS.
7730 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7731
7732 # Allow CC to be a program name with arguments.
7733 compiler=$CC
7734
7735 # Save the default compiler, since it gets overwritten when the other
7736 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7737 compiler_DEFAULT=$CC
7738
7739 # save warnings/boilerplate of simple test code
7740 ac_outfile=conftest.$ac_objext
7741 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7742 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7743 _lt_compiler_boilerplate=`cat conftest.err`
7744 $RM conftest*
7745
7746 ac_outfile=conftest.$ac_objext
7747 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7748 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7749 _lt_linker_boilerplate=`cat conftest.err`
7750 $RM -r conftest*
7751
7752
7753 ## CAVEAT EMPTOR:
7754 ## There is no encapsulation within the following macros, do not change
7755 ## the running order or otherwise move them around unless you know exactly
7756 ## what you are doing...
7757 if test -n "$compiler"; then
7758
7759 lt_prog_compiler_no_builtin_flag=
7760
7761 if test "$GCC" = yes; then
7762 case $cc_basename in
7763 nvcc*)
7764 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7765 *)
7766 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7767 esac
7768
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7770 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7771 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7772 $as_echo_n "(cached) " >&6
7773 else
7774 lt_cv_prog_compiler_rtti_exceptions=no
7775 ac_outfile=conftest.$ac_objext
7776 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7777 lt_compiler_flag="-fno-rtti -fno-exceptions"
7778 # Insert the option either (1) after the last *FLAGS variable, or
7779 # (2) before a word containing "conftest.", or (3) at the end.
7780 # Note that $ac_compile itself does not contain backslashes and begins
7781 # with a dollar sign (not a hyphen), so the echo should work correctly.
7782 # The option is referenced via a variable to avoid confusing sed.
7783 lt_compile=`echo "$ac_compile" | $SED \
7784 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7785 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7786 -e 's:$: $lt_compiler_flag:'`
7787 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7788 (eval "$lt_compile" 2>conftest.err)
7789 ac_status=$?
7790 cat conftest.err >&5
7791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792 if (exit $ac_status) && test -s "$ac_outfile"; then
7793 # The compiler can only warn and ignore the option if not recognized
7794 # So say no if there are warnings other than the usual output.
7795 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7796 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7797 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7798 lt_cv_prog_compiler_rtti_exceptions=yes
7799 fi
7800 fi
7801 $RM conftest*
7802
7803 fi
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7805 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7806
7807 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7808 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7809 else
7810 :
7811 fi
7812
7813 fi
7814
7815
7816
7817
7818
7819
7820 lt_prog_compiler_wl=
7821 lt_prog_compiler_pic=
7822 lt_prog_compiler_static=
7823
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7825 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7826
7827 if test "$GCC" = yes; then
7828 lt_prog_compiler_wl='-Wl,'
7829 lt_prog_compiler_static='-static'
7830
7831 case $host_os in
7832 aix*)
7833 # All AIX code is PIC.
7834 if test "$host_cpu" = ia64; then
7835 # AIX 5 now supports IA64 processor
7836 lt_prog_compiler_static='-Bstatic'
7837 fi
7838 lt_prog_compiler_pic='-fPIC'
7839 ;;
7840
7841 amigaos*)
7842 case $host_cpu in
7843 powerpc)
7844 # see comment about AmigaOS4 .so support
7845 lt_prog_compiler_pic='-fPIC'
7846 ;;
7847 m68k)
7848 # FIXME: we need at least 68020 code to build shared libraries, but
7849 # adding the `-m68020' flag to GCC prevents building anything better,
7850 # like `-m68040'.
7851 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7852 ;;
7853 esac
7854 ;;
7855
7856 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7857 # PIC is the default for these OSes.
7858 ;;
7859
7860 mingw* | cygwin* | pw32* | os2* | cegcc*)
7861 # This hack is so that the source file can tell whether it is being
7862 # built for inclusion in a dll (and should export symbols for example).
7863 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7864 # (--disable-auto-import) libraries
7865 lt_prog_compiler_pic='-DDLL_EXPORT'
7866 ;;
7867
7868 darwin* | rhapsody*)
7869 # PIC is the default on this platform
7870 # Common symbols not allowed in MH_DYLIB files
7871 lt_prog_compiler_pic='-fno-common'
7872 ;;
7873
7874 haiku*)
7875 # PIC is the default for Haiku.
7876 # The "-static" flag exists, but is broken.
7877 lt_prog_compiler_static=
7878 ;;
7879
7880 hpux*)
7881 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7882 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7883 # sets the default TLS model and affects inlining.
7884 case $host_cpu in
7885 hppa*64*)
7886 # +Z the default
7887 ;;
7888 *)
7889 lt_prog_compiler_pic='-fPIC'
7890 ;;
7891 esac
7892 ;;
7893
7894 interix[3-9]*)
7895 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7896 # Instead, we relocate shared libraries at runtime.
7897 ;;
7898
7899 msdosdjgpp*)
7900 # Just because we use GCC doesn't mean we suddenly get shared libraries
7901 # on systems that don't support them.
7902 lt_prog_compiler_can_build_shared=no
7903 enable_shared=no
7904 ;;
7905
7906 *nto* | *qnx*)
7907 # QNX uses GNU C++, but need to define -shared option too, otherwise
7908 # it will coredump.
7909 lt_prog_compiler_pic='-fPIC -shared'
7910 ;;
7911
7912 sysv4*MP*)
7913 if test -d /usr/nec; then
7914 lt_prog_compiler_pic=-Kconform_pic
7915 fi
7916 ;;
7917
7918 *)
7919 lt_prog_compiler_pic='-fPIC'
7920 ;;
7921 esac
7922
7923 case $cc_basename in
7924 nvcc*) # Cuda Compiler Driver 2.2
7925 lt_prog_compiler_wl='-Xlinker '
7926 lt_prog_compiler_pic='-Xcompiler -fPIC'
7927 ;;
7928 esac
7929 else
7930 # PORTME Check for flag to pass linker flags through the system compiler.
7931 case $host_os in
7932 aix*)
7933 lt_prog_compiler_wl='-Wl,'
7934 if test "$host_cpu" = ia64; then
7935 # AIX 5 now supports IA64 processor
7936 lt_prog_compiler_static='-Bstatic'
7937 else
7938 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7939 fi
7940 ;;
7941
7942 mingw* | cygwin* | pw32* | os2* | cegcc*)
7943 # This hack is so that the source file can tell whether it is being
7944 # built for inclusion in a dll (and should export symbols for example).
7945 lt_prog_compiler_pic='-DDLL_EXPORT'
7946 ;;
7947
7948 hpux9* | hpux10* | hpux11*)
7949 lt_prog_compiler_wl='-Wl,'
7950 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7951 # not for PA HP-UX.
7952 case $host_cpu in
7953 hppa*64*|ia64*)
7954 # +Z the default
7955 ;;
7956 *)
7957 lt_prog_compiler_pic='+Z'
7958 ;;
7959 esac
7960 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7961 lt_prog_compiler_static='${wl}-a ${wl}archive'
7962 ;;
7963
7964 irix5* | irix6* | nonstopux*)
7965 lt_prog_compiler_wl='-Wl,'
7966 # PIC (with -KPIC) is the default.
7967 lt_prog_compiler_static='-non_shared'
7968 ;;
7969
7970 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7971 case $cc_basename in
7972 # old Intel for x86_64 which still supported -KPIC.
7973 ecc*)
7974 lt_prog_compiler_wl='-Wl,'
7975 lt_prog_compiler_pic='-KPIC'
7976 lt_prog_compiler_static='-static'
7977 ;;
7978 # icc used to be incompatible with GCC.
7979 # ICC 10 doesn't accept -KPIC any more.
7980 icc* | ifort*)
7981 lt_prog_compiler_wl='-Wl,'
7982 lt_prog_compiler_pic='-fPIC'
7983 lt_prog_compiler_static='-static'
7984 ;;
7985 # Lahey Fortran 8.1.
7986 lf95*)
7987 lt_prog_compiler_wl='-Wl,'
7988 lt_prog_compiler_pic='--shared'
7989 lt_prog_compiler_static='--static'
7990 ;;
7991 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7992 # Portland Group compilers (*not* the Pentium gcc compiler,
7993 # which looks to be a dead project)
7994 lt_prog_compiler_wl='-Wl,'
7995 lt_prog_compiler_pic='-fpic'
7996 lt_prog_compiler_static='-Bstatic'
7997 ;;
7998 ccc*)
7999 lt_prog_compiler_wl='-Wl,'
8000 # All Alpha code is PIC.
8001 lt_prog_compiler_static='-non_shared'
8002 ;;
8003 xl* | bgxl* | bgf* | mpixl*)
8004 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8005 lt_prog_compiler_wl='-Wl,'
8006 lt_prog_compiler_pic='-qpic'
8007 lt_prog_compiler_static='-qstaticlink'
8008 ;;
8009 *)
8010 case `$CC -V 2>&1 | sed 5q` in
8011 *Sun\ F* | *Sun*Fortran*)
8012 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8013 lt_prog_compiler_pic='-KPIC'
8014 lt_prog_compiler_static='-Bstatic'
8015 lt_prog_compiler_wl=''
8016 ;;
8017 *Sun\ C*)
8018 # Sun C 5.9
8019 lt_prog_compiler_pic='-KPIC'
8020 lt_prog_compiler_static='-Bstatic'
8021 lt_prog_compiler_wl='-Wl,'
8022 ;;
8023 esac
8024 ;;
8025 esac
8026 ;;
8027
8028 newsos6)
8029 lt_prog_compiler_pic='-KPIC'
8030 lt_prog_compiler_static='-Bstatic'
8031 ;;
8032
8033 *nto* | *qnx*)
8034 # QNX uses GNU C++, but need to define -shared option too, otherwise
8035 # it will coredump.
8036 lt_prog_compiler_pic='-fPIC -shared'
8037 ;;
8038
8039 osf3* | osf4* | osf5*)
8040 lt_prog_compiler_wl='-Wl,'
8041 # All OSF/1 code is PIC.
8042 lt_prog_compiler_static='-non_shared'
8043 ;;
8044
8045 rdos*)
8046 lt_prog_compiler_static='-non_shared'
8047 ;;
8048
8049 solaris*)
8050 lt_prog_compiler_pic='-KPIC'
8051 lt_prog_compiler_static='-Bstatic'
8052 case $cc_basename in
8053 f77* | f90* | f95*)
8054 lt_prog_compiler_wl='-Qoption ld ';;
8055 *)
8056 lt_prog_compiler_wl='-Wl,';;
8057 esac
8058 ;;
8059
8060 sunos4*)
8061 lt_prog_compiler_wl='-Qoption ld '
8062 lt_prog_compiler_pic='-PIC'
8063 lt_prog_compiler_static='-Bstatic'
8064 ;;
8065
8066 sysv4 | sysv4.2uw2* | sysv4.3*)
8067 lt_prog_compiler_wl='-Wl,'
8068 lt_prog_compiler_pic='-KPIC'
8069 lt_prog_compiler_static='-Bstatic'
8070 ;;
8071
8072 sysv4*MP*)
8073 if test -d /usr/nec ;then
8074 lt_prog_compiler_pic='-Kconform_pic'
8075 lt_prog_compiler_static='-Bstatic'
8076 fi
8077 ;;
8078
8079 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8080 lt_prog_compiler_wl='-Wl,'
8081 lt_prog_compiler_pic='-KPIC'
8082 lt_prog_compiler_static='-Bstatic'
8083 ;;
8084
8085 unicos*)
8086 lt_prog_compiler_wl='-Wl,'
8087 lt_prog_compiler_can_build_shared=no
8088 ;;
8089
8090 uts4*)
8091 lt_prog_compiler_pic='-pic'
8092 lt_prog_compiler_static='-Bstatic'
8093 ;;
8094
8095 *)
8096 lt_prog_compiler_can_build_shared=no
8097 ;;
8098 esac
8099 fi
8100
8101 case $host_os in
8102 # For platforms which do not support PIC, -DPIC is meaningless:
8103 *djgpp*)
8104 lt_prog_compiler_pic=
8105 ;;
8106 *)
8107 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8108 ;;
8109 esac
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8111 $as_echo "$lt_prog_compiler_pic" >&6; }
8112
8113
8114
8115
8116
8117
8118 #
8119 # Check to make sure the PIC flag actually works.
8120 #
8121 if test -n "$lt_prog_compiler_pic"; then
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8123 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8124 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8125 $as_echo_n "(cached) " >&6
8126 else
8127 lt_cv_prog_compiler_pic_works=no
8128 ac_outfile=conftest.$ac_objext
8129 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8130 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8131 # Insert the option either (1) after the last *FLAGS variable, or
8132 # (2) before a word containing "conftest.", or (3) at the end.
8133 # Note that $ac_compile itself does not contain backslashes and begins
8134 # with a dollar sign (not a hyphen), so the echo should work correctly.
8135 # The option is referenced via a variable to avoid confusing sed.
8136 lt_compile=`echo "$ac_compile" | $SED \
8137 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8138 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8139 -e 's:$: $lt_compiler_flag:'`
8140 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8141 (eval "$lt_compile" 2>conftest.err)
8142 ac_status=$?
8143 cat conftest.err >&5
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 if (exit $ac_status) && test -s "$ac_outfile"; then
8146 # The compiler can only warn and ignore the option if not recognized
8147 # So say no if there are warnings other than the usual output.
8148 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8149 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8150 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8151 lt_cv_prog_compiler_pic_works=yes
8152 fi
8153 fi
8154 $RM conftest*
8155
8156 fi
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8158 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8159
8160 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8161 case $lt_prog_compiler_pic in
8162 "" | " "*) ;;
8163 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8164 esac
8165 else
8166 lt_prog_compiler_pic=
8167 lt_prog_compiler_can_build_shared=no
8168 fi
8169
8170 fi
8171
8172
8173
8174
8175
8176
8177 #
8178 # Check to make sure the static flag actually works.
8179 #
8180 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8182 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8183 if ${lt_cv_prog_compiler_static_works+:} false; then :
8184 $as_echo_n "(cached) " >&6
8185 else
8186 lt_cv_prog_compiler_static_works=no
8187 save_LDFLAGS="$LDFLAGS"
8188 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8189 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8190 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8191 # The linker can only warn and ignore the option if not recognized
8192 # So say no if there are warnings
8193 if test -s conftest.err; then
8194 # Append any errors to the config.log.
8195 cat conftest.err 1>&5
8196 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8197 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8198 if diff conftest.exp conftest.er2 >/dev/null; then
8199 lt_cv_prog_compiler_static_works=yes
8200 fi
8201 else
8202 lt_cv_prog_compiler_static_works=yes
8203 fi
8204 fi
8205 $RM -r conftest*
8206 LDFLAGS="$save_LDFLAGS"
8207
8208 fi
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8210 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8211
8212 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8213 :
8214 else
8215 lt_prog_compiler_static=
8216 fi
8217
8218
8219
8220
8221
8222
8223
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8225 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8226 if ${lt_cv_prog_compiler_c_o+:} false; then :
8227 $as_echo_n "(cached) " >&6
8228 else
8229 lt_cv_prog_compiler_c_o=no
8230 $RM -r conftest 2>/dev/null
8231 mkdir conftest
8232 cd conftest
8233 mkdir out
8234 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8235
8236 lt_compiler_flag="-o out/conftest2.$ac_objext"
8237 # Insert the option either (1) after the last *FLAGS variable, or
8238 # (2) before a word containing "conftest.", or (3) at the end.
8239 # Note that $ac_compile itself does not contain backslashes and begins
8240 # with a dollar sign (not a hyphen), so the echo should work correctly.
8241 lt_compile=`echo "$ac_compile" | $SED \
8242 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8243 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8244 -e 's:$: $lt_compiler_flag:'`
8245 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8246 (eval "$lt_compile" 2>out/conftest.err)
8247 ac_status=$?
8248 cat out/conftest.err >&5
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8251 then
8252 # The compiler can only warn and ignore the option if not recognized
8253 # So say no if there are warnings
8254 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8255 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8256 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8257 lt_cv_prog_compiler_c_o=yes
8258 fi
8259 fi
8260 chmod u+w . 2>&5
8261 $RM conftest*
8262 # SGI C++ compiler will create directory out/ii_files/ for
8263 # template instantiation
8264 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8265 $RM out/* && rmdir out
8266 cd ..
8267 $RM -r conftest
8268 $RM conftest*
8269
8270 fi
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8272 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8273
8274
8275
8276
8277
8278
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8280 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8281 if ${lt_cv_prog_compiler_c_o+:} false; then :
8282 $as_echo_n "(cached) " >&6
8283 else
8284 lt_cv_prog_compiler_c_o=no
8285 $RM -r conftest 2>/dev/null
8286 mkdir conftest
8287 cd conftest
8288 mkdir out
8289 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8290
8291 lt_compiler_flag="-o out/conftest2.$ac_objext"
8292 # Insert the option either (1) after the last *FLAGS variable, or
8293 # (2) before a word containing "conftest.", or (3) at the end.
8294 # Note that $ac_compile itself does not contain backslashes and begins
8295 # with a dollar sign (not a hyphen), so the echo should work correctly.
8296 lt_compile=`echo "$ac_compile" | $SED \
8297 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8298 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8299 -e 's:$: $lt_compiler_flag:'`
8300 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8301 (eval "$lt_compile" 2>out/conftest.err)
8302 ac_status=$?
8303 cat out/conftest.err >&5
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8306 then
8307 # The compiler can only warn and ignore the option if not recognized
8308 # So say no if there are warnings
8309 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8310 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8311 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8312 lt_cv_prog_compiler_c_o=yes
8313 fi
8314 fi
8315 chmod u+w . 2>&5
8316 $RM conftest*
8317 # SGI C++ compiler will create directory out/ii_files/ for
8318 # template instantiation
8319 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8320 $RM out/* && rmdir out
8321 cd ..
8322 $RM -r conftest
8323 $RM conftest*
8324
8325 fi
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8327 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8328
8329
8330
8331
8332 hard_links="nottested"
8333 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8334 # do not overwrite the value of need_locks provided by the user
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8336 $as_echo_n "checking if we can lock with hard links... " >&6; }
8337 hard_links=yes
8338 $RM conftest*
8339 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8340 touch conftest.a
8341 ln conftest.a conftest.b 2>&5 || hard_links=no
8342 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8344 $as_echo "$hard_links" >&6; }
8345 if test "$hard_links" = no; then
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8347 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8348 need_locks=warn
8349 fi
8350 else
8351 need_locks=no
8352 fi
8353
8354
8355
8356
8357
8358
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8360 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8361
8362 runpath_var=
8363 allow_undefined_flag=
8364 always_export_symbols=no
8365 archive_cmds=
8366 archive_expsym_cmds=
8367 compiler_needs_object=no
8368 enable_shared_with_static_runtimes=no
8369 export_dynamic_flag_spec=
8370 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8371 hardcode_automatic=no
8372 hardcode_direct=no
8373 hardcode_direct_absolute=no
8374 hardcode_libdir_flag_spec=
8375 hardcode_libdir_flag_spec_ld=
8376 hardcode_libdir_separator=
8377 hardcode_minus_L=no
8378 hardcode_shlibpath_var=unsupported
8379 inherit_rpath=no
8380 link_all_deplibs=unknown
8381 module_cmds=
8382 module_expsym_cmds=
8383 old_archive_from_new_cmds=
8384 old_archive_from_expsyms_cmds=
8385 thread_safe_flag_spec=
8386 whole_archive_flag_spec=
8387 # include_expsyms should be a list of space-separated symbols to be *always*
8388 # included in the symbol list
8389 include_expsyms=
8390 # exclude_expsyms can be an extended regexp of symbols to exclude
8391 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8392 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8393 # as well as any symbol that contains `d'.
8394 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8395 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8396 # platforms (ab)use it in PIC code, but their linkers get confused if
8397 # the symbol is explicitly referenced. Since portable code cannot
8398 # rely on this symbol name, it's probably fine to never include it in
8399 # preloaded symbol tables.
8400 # Exclude shared library initialization/finalization symbols.
8401 extract_expsyms_cmds=
8402
8403 case $host_os in
8404 cygwin* | mingw* | pw32* | cegcc*)
8405 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8406 # When not using gcc, we currently assume that we are using
8407 # Microsoft Visual C++.
8408 if test "$GCC" != yes; then
8409 with_gnu_ld=no
8410 fi
8411 ;;
8412 interix*)
8413 # we just hope/assume this is gcc and not c89 (= MSVC++)
8414 with_gnu_ld=yes
8415 ;;
8416 openbsd*)
8417 with_gnu_ld=no
8418 ;;
8419 esac
8420
8421 ld_shlibs=yes
8422
8423 # On some targets, GNU ld is compatible enough with the native linker
8424 # that we're better off using the native interface for both.
8425 lt_use_gnu_ld_interface=no
8426 if test "$with_gnu_ld" = yes; then
8427 case $host_os in
8428 aix*)
8429 # The AIX port of GNU ld has always aspired to compatibility
8430 # with the native linker. However, as the warning in the GNU ld
8431 # block says, versions before 2.19.5* couldn't really create working
8432 # shared libraries, regardless of the interface used.
8433 case `$LD -v 2>&1` in
8434 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8435 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8436 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8437 *)
8438 lt_use_gnu_ld_interface=yes
8439 ;;
8440 esac
8441 ;;
8442 *)
8443 lt_use_gnu_ld_interface=yes
8444 ;;
8445 esac
8446 fi
8447
8448 if test "$lt_use_gnu_ld_interface" = yes; then
8449 # If archive_cmds runs LD, not CC, wlarc should be empty
8450 wlarc='${wl}'
8451
8452 # Set some defaults for GNU ld with shared library support. These
8453 # are reset later if shared libraries are not supported. Putting them
8454 # here allows them to be overridden if necessary.
8455 runpath_var=LD_RUN_PATH
8456 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8457 export_dynamic_flag_spec='${wl}--export-dynamic'
8458 # ancient GNU ld didn't support --whole-archive et. al.
8459 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8460 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8461 else
8462 whole_archive_flag_spec=
8463 fi
8464 supports_anon_versioning=no
8465 case `$LD -v 2>&1` in
8466 *GNU\ gold*) supports_anon_versioning=yes ;;
8467 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8468 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8469 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8470 *\ 2.11.*) ;; # other 2.11 versions
8471 *) supports_anon_versioning=yes ;;
8472 esac
8473
8474 # See if GNU ld supports shared libraries.
8475 case $host_os in
8476 aix[3-9]*)
8477 # On AIX/PPC, the GNU linker is very broken
8478 if test "$host_cpu" != ia64; then
8479 ld_shlibs=no
8480 cat <<_LT_EOF 1>&2
8481
8482 *** Warning: the GNU linker, at least up to release 2.19, is reported
8483 *** to be unable to reliably create shared libraries on AIX.
8484 *** Therefore, libtool is disabling shared libraries support. If you
8485 *** really care for shared libraries, you may want to install binutils
8486 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8487 *** You will then need to restart the configuration process.
8488
8489 _LT_EOF
8490 fi
8491 ;;
8492
8493 amigaos*)
8494 case $host_cpu in
8495 powerpc)
8496 # see comment about AmigaOS4 .so support
8497 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8498 archive_expsym_cmds=''
8499 ;;
8500 m68k)
8501 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)'
8502 hardcode_libdir_flag_spec='-L$libdir'
8503 hardcode_minus_L=yes
8504 ;;
8505 esac
8506 ;;
8507
8508 beos*)
8509 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8510 allow_undefined_flag=unsupported
8511 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8512 # support --undefined. This deserves some investigation. FIXME
8513 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8514 else
8515 ld_shlibs=no
8516 fi
8517 ;;
8518
8519 cygwin* | mingw* | pw32* | cegcc*)
8520 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8521 # as there is no search path for DLLs.
8522 hardcode_libdir_flag_spec='-L$libdir'
8523 export_dynamic_flag_spec='${wl}--export-all-symbols'
8524 allow_undefined_flag=unsupported
8525 always_export_symbols=no
8526 enable_shared_with_static_runtimes=yes
8527 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8528
8529 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8530 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8531 # If the export-symbols file already is a .def file (1st line
8532 # is EXPORTS), use it as is; otherwise, prepend...
8533 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8534 cp $export_symbols $output_objdir/$soname.def;
8535 else
8536 echo EXPORTS > $output_objdir/$soname.def;
8537 cat $export_symbols >> $output_objdir/$soname.def;
8538 fi~
8539 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8540 else
8541 ld_shlibs=no
8542 fi
8543 ;;
8544
8545 haiku*)
8546 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8547 link_all_deplibs=yes
8548 ;;
8549
8550 interix[3-9]*)
8551 hardcode_direct=no
8552 hardcode_shlibpath_var=no
8553 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8554 export_dynamic_flag_spec='${wl}-E'
8555 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8556 # Instead, shared libraries are loaded at an image base (0x10000000 by
8557 # default) and relocated if they conflict, which is a slow very memory
8558 # consuming and fragmenting process. To avoid this, we pick a random,
8559 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8560 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8561 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8562 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'
8563 ;;
8564
8565 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
8566 tmp_diet=no
8567 if test "$host_os" = linux-dietlibc; then
8568 case $cc_basename in
8569 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8570 esac
8571 fi
8572 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8573 && test "$tmp_diet" = no
8574 then
8575 tmp_addflag=' $pic_flag'
8576 tmp_sharedflag='-shared'
8577 case $cc_basename,$host_cpu in
8578 pgcc*) # Portland Group C compiler
8579 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'
8580 tmp_addflag=' $pic_flag'
8581 ;;
8582 pgf77* | pgf90* | pgf95* | pgfortran*)
8583 # Portland Group f77 and f90 compilers
8584 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'
8585 tmp_addflag=' $pic_flag -Mnomain' ;;
8586 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8587 tmp_addflag=' -i_dynamic' ;;
8588 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8589 tmp_addflag=' -i_dynamic -nofor_main' ;;
8590 ifc* | ifort*) # Intel Fortran compiler
8591 tmp_addflag=' -nofor_main' ;;
8592 lf95*) # Lahey Fortran 8.1
8593 whole_archive_flag_spec=
8594 tmp_sharedflag='--shared' ;;
8595 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8596 tmp_sharedflag='-qmkshrobj'
8597 tmp_addflag= ;;
8598 nvcc*) # Cuda Compiler Driver 2.2
8599 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'
8600 compiler_needs_object=yes
8601 ;;
8602 esac
8603 case `$CC -V 2>&1 | sed 5q` in
8604 *Sun\ C*) # Sun C 5.9
8605 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'
8606 compiler_needs_object=yes
8607 tmp_sharedflag='-G' ;;
8608 *Sun\ F*) # Sun Fortran 8.3
8609 tmp_sharedflag='-G' ;;
8610 esac
8611 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8612
8613 if test "x$supports_anon_versioning" = xyes; then
8614 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8615 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8616 echo "local: *; };" >> $output_objdir/$libname.ver~
8617 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8618 fi
8619
8620 case $cc_basename in
8621 xlf* | bgf* | bgxlf* | mpixlf*)
8622 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8623 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8624 hardcode_libdir_flag_spec=
8625 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8626 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8627 if test "x$supports_anon_versioning" = xyes; then
8628 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8629 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8630 echo "local: *; };" >> $output_objdir/$libname.ver~
8631 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8632 fi
8633 ;;
8634 esac
8635 else
8636 ld_shlibs=no
8637 fi
8638 ;;
8639
8640 netbsd*)
8641 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8642 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8643 wlarc=
8644 else
8645 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8646 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8647 fi
8648 ;;
8649
8650 solaris*)
8651 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8652 ld_shlibs=no
8653 cat <<_LT_EOF 1>&2
8654
8655 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8656 *** create shared libraries on Solaris systems. Therefore, libtool
8657 *** is disabling shared libraries support. We urge you to upgrade GNU
8658 *** binutils to release 2.9.1 or newer. Another option is to modify
8659 *** your PATH or compiler configuration so that the native linker is
8660 *** used, and then restart.
8661
8662 _LT_EOF
8663 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8664 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8665 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8666 else
8667 ld_shlibs=no
8668 fi
8669 ;;
8670
8671 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8672 case `$LD -v 2>&1` in
8673 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8674 ld_shlibs=no
8675 cat <<_LT_EOF 1>&2
8676
8677 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8678 *** reliably create shared libraries on SCO systems. Therefore, libtool
8679 *** is disabling shared libraries support. We urge you to upgrade GNU
8680 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8681 *** your PATH or compiler configuration so that the native linker is
8682 *** used, and then restart.
8683
8684 _LT_EOF
8685 ;;
8686 *)
8687 # For security reasons, it is highly recommended that you always
8688 # use absolute paths for naming shared libraries, and exclude the
8689 # DT_RUNPATH tag from executables and libraries. But doing so
8690 # requires that you compile everything twice, which is a pain.
8691 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8692 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8693 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8694 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8695 else
8696 ld_shlibs=no
8697 fi
8698 ;;
8699 esac
8700 ;;
8701
8702 sunos4*)
8703 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8704 wlarc=
8705 hardcode_direct=yes
8706 hardcode_shlibpath_var=no
8707 ;;
8708
8709 *)
8710 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8711 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8712 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8713 else
8714 ld_shlibs=no
8715 fi
8716 ;;
8717 esac
8718
8719 if test "$ld_shlibs" = no; then
8720 runpath_var=
8721 hardcode_libdir_flag_spec=
8722 export_dynamic_flag_spec=
8723 whole_archive_flag_spec=
8724 fi
8725 else
8726 # PORTME fill in a description of your system's linker (not GNU ld)
8727 case $host_os in
8728 aix3*)
8729 allow_undefined_flag=unsupported
8730 always_export_symbols=yes
8731 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'
8732 # Note: this linker hardcodes the directories in LIBPATH if there
8733 # are no directories specified by -L.
8734 hardcode_minus_L=yes
8735 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8736 # Neither direct hardcoding nor static linking is supported with a
8737 # broken collect2.
8738 hardcode_direct=unsupported
8739 fi
8740 ;;
8741
8742 aix[4-9]*)
8743 if test "$host_cpu" = ia64; then
8744 # On IA64, the linker does run time linking by default, so we don't
8745 # have to do anything special.
8746 aix_use_runtimelinking=no
8747 exp_sym_flag='-Bexport'
8748 no_entry_flag=""
8749 else
8750 # If we're using GNU nm, then we don't want the "-C" option.
8751 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8752 # Also, AIX nm treats weak defined symbols like other global
8753 # defined symbols, whereas GNU nm marks them as "W".
8754 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8755 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'
8756 else
8757 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8758 fi
8759 aix_use_runtimelinking=no
8760
8761 # Test if we are trying to use run time linking or normal
8762 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8763 # need to do runtime linking.
8764 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8765 for ld_flag in $LDFLAGS; do
8766 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8767 aix_use_runtimelinking=yes
8768 break
8769 fi
8770 done
8771 ;;
8772 esac
8773
8774 exp_sym_flag='-bexport'
8775 no_entry_flag='-bnoentry'
8776 fi
8777
8778 # When large executables or shared objects are built, AIX ld can
8779 # have problems creating the table of contents. If linking a library
8780 # or program results in "error TOC overflow" add -mminimal-toc to
8781 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8782 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8783
8784 archive_cmds=''
8785 hardcode_direct=yes
8786 hardcode_direct_absolute=yes
8787 hardcode_libdir_separator=':'
8788 link_all_deplibs=yes
8789 file_list_spec='${wl}-f,'
8790
8791 if test "$GCC" = yes; then
8792 case $host_os in aix4.[012]|aix4.[012].*)
8793 # We only want to do this on AIX 4.2 and lower, the check
8794 # below for broken collect2 doesn't work under 4.3+
8795 collect2name=`${CC} -print-prog-name=collect2`
8796 if test -f "$collect2name" &&
8797 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8798 then
8799 # We have reworked collect2
8800 :
8801 else
8802 # We have old collect2
8803 hardcode_direct=unsupported
8804 # It fails to find uninstalled libraries when the uninstalled
8805 # path is not listed in the libpath. Setting hardcode_minus_L
8806 # to unsupported forces relinking
8807 hardcode_minus_L=yes
8808 hardcode_libdir_flag_spec='-L$libdir'
8809 hardcode_libdir_separator=
8810 fi
8811 ;;
8812 esac
8813 shared_flag='-shared'
8814 if test "$aix_use_runtimelinking" = yes; then
8815 shared_flag="$shared_flag "'${wl}-G'
8816 fi
8817 else
8818 # not using gcc
8819 if test "$host_cpu" = ia64; then
8820 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8821 # chokes on -Wl,-G. The following line is correct:
8822 shared_flag='-G'
8823 else
8824 if test "$aix_use_runtimelinking" = yes; then
8825 shared_flag='${wl}-G'
8826 else
8827 shared_flag='${wl}-bM:SRE'
8828 fi
8829 fi
8830 fi
8831
8832 export_dynamic_flag_spec='${wl}-bexpall'
8833 # It seems that -bexpall does not export symbols beginning with
8834 # underscore (_), so it is better to generate a list of symbols to export.
8835 always_export_symbols=yes
8836 if test "$aix_use_runtimelinking" = yes; then
8837 # Warning - without using the other runtime loading flags (-brtl),
8838 # -berok will link without error, but may produce a broken library.
8839 allow_undefined_flag='-berok'
8840 # Determine the default libpath from the value encoded in an
8841 # empty executable.
8842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8843 /* end confdefs.h. */
8844
8845 int
8846 main ()
8847 {
8848
8849 ;
8850 return 0;
8851 }
8852 _ACEOF
8853 if ac_fn_c_try_link "$LINENO"; then :
8854
8855 lt_aix_libpath_sed='
8856 /Import File Strings/,/^$/ {
8857 /^0/ {
8858 s/^0 *\(.*\)$/\1/
8859 p
8860 }
8861 }'
8862 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8863 # Check for a 64-bit object if we didn't find anything.
8864 if test -z "$aix_libpath"; then
8865 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8866 fi
8867 fi
8868 rm -f core conftest.err conftest.$ac_objext \
8869 conftest$ac_exeext conftest.$ac_ext
8870 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8871
8872 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8873 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"
8874 else
8875 if test "$host_cpu" = ia64; then
8876 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8877 allow_undefined_flag="-z nodefs"
8878 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"
8879 else
8880 # Determine the default libpath from the value encoded in an
8881 # empty executable.
8882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8883 /* end confdefs.h. */
8884
8885 int
8886 main ()
8887 {
8888
8889 ;
8890 return 0;
8891 }
8892 _ACEOF
8893 if ac_fn_c_try_link "$LINENO"; then :
8894
8895 lt_aix_libpath_sed='
8896 /Import File Strings/,/^$/ {
8897 /^0/ {
8898 s/^0 *\(.*\)$/\1/
8899 p
8900 }
8901 }'
8902 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8903 # Check for a 64-bit object if we didn't find anything.
8904 if test -z "$aix_libpath"; then
8905 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8906 fi
8907 fi
8908 rm -f core conftest.err conftest.$ac_objext \
8909 conftest$ac_exeext conftest.$ac_ext
8910 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8911
8912 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8913 # Warning - without using the other run time loading flags,
8914 # -berok will link without error, but may produce a broken library.
8915 no_undefined_flag=' ${wl}-bernotok'
8916 allow_undefined_flag=' ${wl}-berok'
8917 if test "$with_gnu_ld" = yes; then
8918 # We only use this code for GNU lds that support --whole-archive.
8919 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8920 else
8921 # Exported symbols can be pulled into shared objects from archives
8922 whole_archive_flag_spec='$convenience'
8923 fi
8924 archive_cmds_need_lc=yes
8925 # This is similar to how AIX traditionally builds its shared libraries.
8926 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'
8927 fi
8928 fi
8929 ;;
8930
8931 amigaos*)
8932 case $host_cpu in
8933 powerpc)
8934 # see comment about AmigaOS4 .so support
8935 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8936 archive_expsym_cmds=''
8937 ;;
8938 m68k)
8939 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)'
8940 hardcode_libdir_flag_spec='-L$libdir'
8941 hardcode_minus_L=yes
8942 ;;
8943 esac
8944 ;;
8945
8946 bsdi[45]*)
8947 export_dynamic_flag_spec=-rdynamic
8948 ;;
8949
8950 cygwin* | mingw* | pw32* | cegcc*)
8951 # When not using gcc, we currently assume that we are using
8952 # Microsoft Visual C++.
8953 # hardcode_libdir_flag_spec is actually meaningless, as there is
8954 # no search path for DLLs.
8955 hardcode_libdir_flag_spec=' '
8956 allow_undefined_flag=unsupported
8957 # Tell ltmain to make .lib files, not .a files.
8958 libext=lib
8959 # Tell ltmain to make .dll files, not .so files.
8960 shrext_cmds=".dll"
8961 # FIXME: Setting linknames here is a bad hack.
8962 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8963 # The linker will automatically build a .lib file if we build a DLL.
8964 old_archive_from_new_cmds='true'
8965 # FIXME: Should let the user specify the lib program.
8966 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8967 fix_srcfile_path='`cygpath -w "$srcfile"`'
8968 enable_shared_with_static_runtimes=yes
8969 ;;
8970
8971 darwin* | rhapsody*)
8972
8973
8974 archive_cmds_need_lc=no
8975 hardcode_direct=no
8976 hardcode_automatic=yes
8977 hardcode_shlibpath_var=unsupported
8978 if test "$lt_cv_ld_force_load" = "yes"; then
8979 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\"`'
8980 else
8981 whole_archive_flag_spec=''
8982 fi
8983 link_all_deplibs=yes
8984 allow_undefined_flag="$_lt_dar_allow_undefined"
8985 case $cc_basename in
8986 ifort*) _lt_dar_can_shared=yes ;;
8987 *) _lt_dar_can_shared=$GCC ;;
8988 esac
8989 if test "$_lt_dar_can_shared" = "yes"; then
8990 output_verbose_link_cmd=func_echo_all
8991 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8992 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8993 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}"
8994 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}"
8995
8996 else
8997 ld_shlibs=no
8998 fi
8999
9000 ;;
9001
9002 dgux*)
9003 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9004 hardcode_libdir_flag_spec='-L$libdir'
9005 hardcode_shlibpath_var=no
9006 ;;
9007
9008 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9009 # support. Future versions do this automatically, but an explicit c++rt0.o
9010 # does not break anything, and helps significantly (at the cost of a little
9011 # extra space).
9012 freebsd2.2*)
9013 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9014 hardcode_libdir_flag_spec='-R$libdir'
9015 hardcode_direct=yes
9016 hardcode_shlibpath_var=no
9017 ;;
9018
9019 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9020 freebsd2.*)
9021 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9022 hardcode_direct=yes
9023 hardcode_minus_L=yes
9024 hardcode_shlibpath_var=no
9025 ;;
9026
9027 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9028 freebsd* | dragonfly*)
9029 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9030 hardcode_libdir_flag_spec='-R$libdir'
9031 hardcode_direct=yes
9032 hardcode_shlibpath_var=no
9033 ;;
9034
9035 hpux9*)
9036 if test "$GCC" = yes; then
9037 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9038 else
9039 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'
9040 fi
9041 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9042 hardcode_libdir_separator=:
9043 hardcode_direct=yes
9044
9045 # hardcode_minus_L: Not really in the search PATH,
9046 # but as the default location of the library.
9047 hardcode_minus_L=yes
9048 export_dynamic_flag_spec='${wl}-E'
9049 ;;
9050
9051 hpux10*)
9052 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9053 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9054 else
9055 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9056 fi
9057 if test "$with_gnu_ld" = no; then
9058 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9059 hardcode_libdir_flag_spec_ld='+b $libdir'
9060 hardcode_libdir_separator=:
9061 hardcode_direct=yes
9062 hardcode_direct_absolute=yes
9063 export_dynamic_flag_spec='${wl}-E'
9064 # hardcode_minus_L: Not really in the search PATH,
9065 # but as the default location of the library.
9066 hardcode_minus_L=yes
9067 fi
9068 ;;
9069
9070 hpux11*)
9071 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9072 case $host_cpu in
9073 hppa*64*)
9074 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9075 ;;
9076 ia64*)
9077 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9078 ;;
9079 *)
9080 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9081 ;;
9082 esac
9083 else
9084 case $host_cpu in
9085 hppa*64*)
9086 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9087 ;;
9088 ia64*)
9089 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9090 ;;
9091 *)
9092
9093 # Older versions of the 11.00 compiler do not understand -b yet
9094 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9096 $as_echo_n "checking if $CC understands -b... " >&6; }
9097 if ${lt_cv_prog_compiler__b+:} false; then :
9098 $as_echo_n "(cached) " >&6
9099 else
9100 lt_cv_prog_compiler__b=no
9101 save_LDFLAGS="$LDFLAGS"
9102 LDFLAGS="$LDFLAGS -b"
9103 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9104 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9105 # The linker can only warn and ignore the option if not recognized
9106 # So say no if there are warnings
9107 if test -s conftest.err; then
9108 # Append any errors to the config.log.
9109 cat conftest.err 1>&5
9110 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9111 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9112 if diff conftest.exp conftest.er2 >/dev/null; then
9113 lt_cv_prog_compiler__b=yes
9114 fi
9115 else
9116 lt_cv_prog_compiler__b=yes
9117 fi
9118 fi
9119 $RM -r conftest*
9120 LDFLAGS="$save_LDFLAGS"
9121
9122 fi
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9124 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9125
9126 if test x"$lt_cv_prog_compiler__b" = xyes; then
9127 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9128 else
9129 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9130 fi
9131
9132 ;;
9133 esac
9134 fi
9135 if test "$with_gnu_ld" = no; then
9136 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9137 hardcode_libdir_separator=:
9138
9139 case $host_cpu in
9140 hppa*64*|ia64*)
9141 hardcode_direct=no
9142 hardcode_shlibpath_var=no
9143 ;;
9144 *)
9145 hardcode_direct=yes
9146 hardcode_direct_absolute=yes
9147 export_dynamic_flag_spec='${wl}-E'
9148
9149 # hardcode_minus_L: Not really in the search PATH,
9150 # but as the default location of the library.
9151 hardcode_minus_L=yes
9152 ;;
9153 esac
9154 fi
9155 ;;
9156
9157 irix5* | irix6* | nonstopux*)
9158 if test "$GCC" = yes; then
9159 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9160 # Try to use the -exported_symbol ld option, if it does not
9161 # work, assume that -exports_file does not work either and
9162 # implicitly export all symbols.
9163 save_LDFLAGS="$LDFLAGS"
9164 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9166 /* end confdefs.h. */
9167 int foo(void) {}
9168 _ACEOF
9169 if ac_fn_c_try_link "$LINENO"; then :
9170 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9171
9172 fi
9173 rm -f core conftest.err conftest.$ac_objext \
9174 conftest$ac_exeext conftest.$ac_ext
9175 LDFLAGS="$save_LDFLAGS"
9176 else
9177 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'
9178 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'
9179 fi
9180 archive_cmds_need_lc='no'
9181 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9182 hardcode_libdir_separator=:
9183 inherit_rpath=yes
9184 link_all_deplibs=yes
9185 ;;
9186
9187 netbsd*)
9188 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9189 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9190 else
9191 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9192 fi
9193 hardcode_libdir_flag_spec='-R$libdir'
9194 hardcode_direct=yes
9195 hardcode_shlibpath_var=no
9196 ;;
9197
9198 newsos6)
9199 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9200 hardcode_direct=yes
9201 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9202 hardcode_libdir_separator=:
9203 hardcode_shlibpath_var=no
9204 ;;
9205
9206 *nto* | *qnx*)
9207 ;;
9208
9209 openbsd*)
9210 if test -f /usr/libexec/ld.so; then
9211 hardcode_direct=yes
9212 hardcode_shlibpath_var=no
9213 hardcode_direct_absolute=yes
9214 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9215 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9216 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9217 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9218 export_dynamic_flag_spec='${wl}-E'
9219 else
9220 case $host_os in
9221 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9222 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9223 hardcode_libdir_flag_spec='-R$libdir'
9224 ;;
9225 *)
9226 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9227 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9228 ;;
9229 esac
9230 fi
9231 else
9232 ld_shlibs=no
9233 fi
9234 ;;
9235
9236 os2*)
9237 hardcode_libdir_flag_spec='-L$libdir'
9238 hardcode_minus_L=yes
9239 allow_undefined_flag=unsupported
9240 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'
9241 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9242 ;;
9243
9244 osf3*)
9245 if test "$GCC" = yes; then
9246 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9247 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'
9248 else
9249 allow_undefined_flag=' -expect_unresolved \*'
9250 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'
9251 fi
9252 archive_cmds_need_lc='no'
9253 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9254 hardcode_libdir_separator=:
9255 ;;
9256
9257 osf4* | osf5*) # as osf3* with the addition of -msym flag
9258 if test "$GCC" = yes; then
9259 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9260 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9261 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9262 else
9263 allow_undefined_flag=' -expect_unresolved \*'
9264 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'
9265 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~
9266 $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'
9267
9268 # Both c and cxx compiler support -rpath directly
9269 hardcode_libdir_flag_spec='-rpath $libdir'
9270 fi
9271 archive_cmds_need_lc='no'
9272 hardcode_libdir_separator=:
9273 ;;
9274
9275 solaris*)
9276 no_undefined_flag=' -z defs'
9277 if test "$GCC" = yes; then
9278 wlarc='${wl}'
9279 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9280 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9281 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9282 else
9283 case `$CC -V 2>&1` in
9284 *"Compilers 5.0"*)
9285 wlarc=''
9286 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9287 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9288 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9289 ;;
9290 *)
9291 wlarc='${wl}'
9292 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9293 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9294 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9295 ;;
9296 esac
9297 fi
9298 hardcode_libdir_flag_spec='-R$libdir'
9299 hardcode_shlibpath_var=no
9300 case $host_os in
9301 solaris2.[0-5] | solaris2.[0-5].*) ;;
9302 *)
9303 # The compiler driver will combine and reorder linker options,
9304 # but understands `-z linker_flag'. GCC discards it without `$wl',
9305 # but is careful enough not to reorder.
9306 # Supported since Solaris 2.6 (maybe 2.5.1?)
9307 if test "$GCC" = yes; then
9308 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9309 else
9310 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9311 fi
9312 ;;
9313 esac
9314 link_all_deplibs=yes
9315 ;;
9316
9317 sunos4*)
9318 if test "x$host_vendor" = xsequent; then
9319 # Use $CC to link under sequent, because it throws in some extra .o
9320 # files that make .init and .fini sections work.
9321 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9322 else
9323 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9324 fi
9325 hardcode_libdir_flag_spec='-L$libdir'
9326 hardcode_direct=yes
9327 hardcode_minus_L=yes
9328 hardcode_shlibpath_var=no
9329 ;;
9330
9331 sysv4)
9332 case $host_vendor in
9333 sni)
9334 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9335 hardcode_direct=yes # is this really true???
9336 ;;
9337 siemens)
9338 ## LD is ld it makes a PLAMLIB
9339 ## CC just makes a GrossModule.
9340 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9341 reload_cmds='$CC -r -o $output$reload_objs'
9342 hardcode_direct=no
9343 ;;
9344 motorola)
9345 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9346 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9347 ;;
9348 esac
9349 runpath_var='LD_RUN_PATH'
9350 hardcode_shlibpath_var=no
9351 ;;
9352
9353 sysv4.3*)
9354 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9355 hardcode_shlibpath_var=no
9356 export_dynamic_flag_spec='-Bexport'
9357 ;;
9358
9359 sysv4*MP*)
9360 if test -d /usr/nec; then
9361 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9362 hardcode_shlibpath_var=no
9363 runpath_var=LD_RUN_PATH
9364 hardcode_runpath_var=yes
9365 ld_shlibs=yes
9366 fi
9367 ;;
9368
9369 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9370 no_undefined_flag='${wl}-z,text'
9371 archive_cmds_need_lc=no
9372 hardcode_shlibpath_var=no
9373 runpath_var='LD_RUN_PATH'
9374
9375 if test "$GCC" = yes; then
9376 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9377 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9378 else
9379 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9380 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9381 fi
9382 ;;
9383
9384 sysv5* | sco3.2v5* | sco5v6*)
9385 # Note: We can NOT use -z defs as we might desire, because we do not
9386 # link with -lc, and that would cause any symbols used from libc to
9387 # always be unresolved, which means just about no library would
9388 # ever link correctly. If we're not using GNU ld we use -z text
9389 # though, which does catch some bad symbols but isn't as heavy-handed
9390 # as -z defs.
9391 no_undefined_flag='${wl}-z,text'
9392 allow_undefined_flag='${wl}-z,nodefs'
9393 archive_cmds_need_lc=no
9394 hardcode_shlibpath_var=no
9395 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9396 hardcode_libdir_separator=':'
9397 link_all_deplibs=yes
9398 export_dynamic_flag_spec='${wl}-Bexport'
9399 runpath_var='LD_RUN_PATH'
9400
9401 if test "$GCC" = yes; then
9402 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9403 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9404 else
9405 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9406 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9407 fi
9408 ;;
9409
9410 uts4*)
9411 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9412 hardcode_libdir_flag_spec='-L$libdir'
9413 hardcode_shlibpath_var=no
9414 ;;
9415
9416 *)
9417 ld_shlibs=no
9418 ;;
9419 esac
9420
9421 if test x$host_vendor = xsni; then
9422 case $host in
9423 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9424 export_dynamic_flag_spec='${wl}-Blargedynsym'
9425 ;;
9426 esac
9427 fi
9428 fi
9429
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9431 $as_echo "$ld_shlibs" >&6; }
9432 test "$ld_shlibs" = no && can_build_shared=no
9433
9434 with_gnu_ld=$with_gnu_ld
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450 #
9451 # Do we need to explicitly link libc?
9452 #
9453 case "x$archive_cmds_need_lc" in
9454 x|xyes)
9455 # Assume -lc should be added
9456 archive_cmds_need_lc=yes
9457
9458 if test "$enable_shared" = yes && test "$GCC" = yes; then
9459 case $archive_cmds in
9460 *'~'*)
9461 # FIXME: we may have to deal with multi-command sequences.
9462 ;;
9463 '$CC '*)
9464 # Test whether the compiler implicitly links with -lc since on some
9465 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9466 # to ld, don't add -lc before -lgcc.
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9468 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9469 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9470 $as_echo_n "(cached) " >&6
9471 else
9472 $RM conftest*
9473 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9474
9475 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9476 (eval $ac_compile) 2>&5
9477 ac_status=$?
9478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9479 test $ac_status = 0; } 2>conftest.err; then
9480 soname=conftest
9481 lib=conftest
9482 libobjs=conftest.$ac_objext
9483 deplibs=
9484 wl=$lt_prog_compiler_wl
9485 pic_flag=$lt_prog_compiler_pic
9486 compiler_flags=-v
9487 linker_flags=-v
9488 verstring=
9489 output_objdir=.
9490 libname=conftest
9491 lt_save_allow_undefined_flag=$allow_undefined_flag
9492 allow_undefined_flag=
9493 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9494 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9495 ac_status=$?
9496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9497 test $ac_status = 0; }
9498 then
9499 lt_cv_archive_cmds_need_lc=no
9500 else
9501 lt_cv_archive_cmds_need_lc=yes
9502 fi
9503 allow_undefined_flag=$lt_save_allow_undefined_flag
9504 else
9505 cat conftest.err 1>&5
9506 fi
9507 $RM conftest*
9508
9509 fi
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9511 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9512 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9513 ;;
9514 esac
9515 fi
9516 ;;
9517 esac
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9676 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9677
9678 if test "$GCC" = yes; then
9679 case $host_os in
9680 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9681 *) lt_awk_arg="/^libraries:/" ;;
9682 esac
9683 case $host_os in
9684 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9685 *) lt_sed_strip_eq="s,=/,/,g" ;;
9686 esac
9687 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9688 case $lt_search_path_spec in
9689 *\;*)
9690 # if the path contains ";" then we assume it to be the separator
9691 # otherwise default to the standard path separator (i.e. ":") - it is
9692 # assumed that no part of a normal pathname contains ";" but that should
9693 # okay in the real world where ";" in dirpaths is itself problematic.
9694 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9695 ;;
9696 *)
9697 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9698 ;;
9699 esac
9700 # Ok, now we have the path, separated by spaces, we can step through it
9701 # and add multilib dir if necessary.
9702 lt_tmp_lt_search_path_spec=
9703 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9704 for lt_sys_path in $lt_search_path_spec; do
9705 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9706 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9707 else
9708 test -d "$lt_sys_path" && \
9709 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9710 fi
9711 done
9712 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9713 BEGIN {RS=" "; FS="/|\n";} {
9714 lt_foo="";
9715 lt_count=0;
9716 for (lt_i = NF; lt_i > 0; lt_i--) {
9717 if ($lt_i != "" && $lt_i != ".") {
9718 if ($lt_i == "..") {
9719 lt_count++;
9720 } else {
9721 if (lt_count == 0) {
9722 lt_foo="/" $lt_i lt_foo;
9723 } else {
9724 lt_count--;
9725 }
9726 }
9727 }
9728 }
9729 if (lt_foo != "") { lt_freq[lt_foo]++; }
9730 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9731 }'`
9732 # AWK program above erroneously prepends '/' to C:/dos/paths
9733 # for these hosts.
9734 case $host_os in
9735 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9736 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9737 esac
9738 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9739 else
9740 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9741 fi
9742 library_names_spec=
9743 libname_spec='lib$name'
9744 soname_spec=
9745 shrext_cmds=".so"
9746 postinstall_cmds=
9747 postuninstall_cmds=
9748 finish_cmds=
9749 finish_eval=
9750 shlibpath_var=
9751 shlibpath_overrides_runpath=unknown
9752 version_type=none
9753 dynamic_linker="$host_os ld.so"
9754 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9755 need_lib_prefix=unknown
9756 hardcode_into_libs=no
9757
9758 # when you set need_version to no, make sure it does not cause -set_version
9759 # flags to be left without arguments
9760 need_version=unknown
9761
9762 case $host_os in
9763 aix3*)
9764 version_type=linux
9765 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9766 shlibpath_var=LIBPATH
9767
9768 # AIX 3 has no versioning support, so we append a major version to the name.
9769 soname_spec='${libname}${release}${shared_ext}$major'
9770 ;;
9771
9772 aix[4-9]*)
9773 version_type=linux
9774 need_lib_prefix=no
9775 need_version=no
9776 hardcode_into_libs=yes
9777 if test "$host_cpu" = ia64; then
9778 # AIX 5 supports IA64
9779 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9780 shlibpath_var=LD_LIBRARY_PATH
9781 else
9782 # With GCC up to 2.95.x, collect2 would create an import file
9783 # for dependence libraries. The import file would start with
9784 # the line `#! .'. This would cause the generated library to
9785 # depend on `.', always an invalid library. This was fixed in
9786 # development snapshots of GCC prior to 3.0.
9787 case $host_os in
9788 aix4 | aix4.[01] | aix4.[01].*)
9789 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9790 echo ' yes '
9791 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9792 :
9793 else
9794 can_build_shared=no
9795 fi
9796 ;;
9797 esac
9798 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9799 # soname into executable. Probably we can add versioning support to
9800 # collect2, so additional links can be useful in future.
9801 if test "$aix_use_runtimelinking" = yes; then
9802 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9803 # instead of lib<name>.a to let people know that these are not
9804 # typical AIX shared libraries.
9805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9806 else
9807 # We preserve .a as extension for shared libraries through AIX4.2
9808 # and later when we are not doing run time linking.
9809 library_names_spec='${libname}${release}.a $libname.a'
9810 soname_spec='${libname}${release}${shared_ext}$major'
9811 fi
9812 shlibpath_var=LIBPATH
9813 fi
9814 ;;
9815
9816 amigaos*)
9817 case $host_cpu in
9818 powerpc)
9819 # Since July 2007 AmigaOS4 officially supports .so libraries.
9820 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9822 ;;
9823 m68k)
9824 library_names_spec='$libname.ixlibrary $libname.a'
9825 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9826 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'
9827 ;;
9828 esac
9829 ;;
9830
9831 beos*)
9832 library_names_spec='${libname}${shared_ext}'
9833 dynamic_linker="$host_os ld.so"
9834 shlibpath_var=LIBRARY_PATH
9835 ;;
9836
9837 bsdi[45]*)
9838 version_type=linux
9839 need_version=no
9840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9841 soname_spec='${libname}${release}${shared_ext}$major'
9842 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9843 shlibpath_var=LD_LIBRARY_PATH
9844 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9845 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9846 # the default ld.so.conf also contains /usr/contrib/lib and
9847 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9848 # libtool to hard-code these into programs
9849 ;;
9850
9851 cygwin* | mingw* | pw32* | cegcc*)
9852 version_type=windows
9853 shrext_cmds=".dll"
9854 need_version=no
9855 need_lib_prefix=no
9856
9857 case $GCC,$host_os in
9858 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9859 library_names_spec='$libname.dll.a'
9860 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9861 postinstall_cmds='base_file=`basename \${file}`~
9862 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9863 dldir=$destdir/`dirname \$dlpath`~
9864 test -d \$dldir || mkdir -p \$dldir~
9865 $install_prog $dir/$dlname \$dldir/$dlname~
9866 chmod a+x \$dldir/$dlname~
9867 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9868 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9869 fi'
9870 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9871 dlpath=$dir/\$dldll~
9872 $RM \$dlpath'
9873 shlibpath_overrides_runpath=yes
9874
9875 case $host_os in
9876 cygwin*)
9877 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9878 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9879
9880 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9881 ;;
9882 mingw* | cegcc*)
9883 # MinGW DLLs use traditional 'lib' prefix
9884 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9885 ;;
9886 pw32*)
9887 # pw32 DLLs use 'pw' prefix rather than 'lib'
9888 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9889 ;;
9890 esac
9891 ;;
9892
9893 *)
9894 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9895 ;;
9896 esac
9897 dynamic_linker='Win32 ld.exe'
9898 # FIXME: first we should search . and the directory the executable is in
9899 shlibpath_var=PATH
9900 ;;
9901
9902 darwin* | rhapsody*)
9903 dynamic_linker="$host_os dyld"
9904 version_type=darwin
9905 need_lib_prefix=no
9906 need_version=no
9907 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9908 soname_spec='${libname}${release}${major}$shared_ext'
9909 shlibpath_overrides_runpath=yes
9910 shlibpath_var=DYLD_LIBRARY_PATH
9911 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9912
9913 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9914 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9915 ;;
9916
9917 dgux*)
9918 version_type=linux
9919 need_lib_prefix=no
9920 need_version=no
9921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9922 soname_spec='${libname}${release}${shared_ext}$major'
9923 shlibpath_var=LD_LIBRARY_PATH
9924 ;;
9925
9926 freebsd* | dragonfly*)
9927 # DragonFly does not have aout. When/if they implement a new
9928 # versioning mechanism, adjust this.
9929 if test -x /usr/bin/objformat; then
9930 objformat=`/usr/bin/objformat`
9931 else
9932 case $host_os in
9933 freebsd[23].*) objformat=aout ;;
9934 *) objformat=elf ;;
9935 esac
9936 fi
9937 version_type=freebsd-$objformat
9938 case $version_type in
9939 freebsd-elf*)
9940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9941 need_version=no
9942 need_lib_prefix=no
9943 ;;
9944 freebsd-*)
9945 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9946 need_version=yes
9947 ;;
9948 esac
9949 shlibpath_var=LD_LIBRARY_PATH
9950 case $host_os in
9951 freebsd2.*)
9952 shlibpath_overrides_runpath=yes
9953 ;;
9954 freebsd3.[01]* | freebsdelf3.[01]*)
9955 shlibpath_overrides_runpath=yes
9956 hardcode_into_libs=yes
9957 ;;
9958 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9959 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9960 shlibpath_overrides_runpath=no
9961 hardcode_into_libs=yes
9962 ;;
9963 *) # from 4.6 on, and DragonFly
9964 shlibpath_overrides_runpath=yes
9965 hardcode_into_libs=yes
9966 ;;
9967 esac
9968 ;;
9969
9970 haiku*)
9971 version_type=linux
9972 need_lib_prefix=no
9973 need_version=no
9974 dynamic_linker="$host_os runtime_loader"
9975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9976 soname_spec='${libname}${release}${shared_ext}$major'
9977 shlibpath_var=LIBRARY_PATH
9978 shlibpath_overrides_runpath=yes
9979 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9980 hardcode_into_libs=yes
9981 ;;
9982
9983 hpux9* | hpux10* | hpux11*)
9984 # Give a soname corresponding to the major version so that dld.sl refuses to
9985 # link against other versions.
9986 version_type=sunos
9987 need_lib_prefix=no
9988 need_version=no
9989 case $host_cpu in
9990 ia64*)
9991 shrext_cmds='.so'
9992 hardcode_into_libs=yes
9993 dynamic_linker="$host_os dld.so"
9994 shlibpath_var=LD_LIBRARY_PATH
9995 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9997 soname_spec='${libname}${release}${shared_ext}$major'
9998 if test "X$HPUX_IA64_MODE" = X32; then
9999 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10000 else
10001 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10002 fi
10003 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10004 ;;
10005 hppa*64*)
10006 shrext_cmds='.sl'
10007 hardcode_into_libs=yes
10008 dynamic_linker="$host_os dld.sl"
10009 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10010 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10012 soname_spec='${libname}${release}${shared_ext}$major'
10013 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10014 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10015 ;;
10016 *)
10017 shrext_cmds='.sl'
10018 dynamic_linker="$host_os dld.sl"
10019 shlibpath_var=SHLIB_PATH
10020 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10022 soname_spec='${libname}${release}${shared_ext}$major'
10023 ;;
10024 esac
10025 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10026 postinstall_cmds='chmod 555 $lib'
10027 # or fails outright, so override atomically:
10028 install_override_mode=555
10029 ;;
10030
10031 interix[3-9]*)
10032 version_type=linux
10033 need_lib_prefix=no
10034 need_version=no
10035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10036 soname_spec='${libname}${release}${shared_ext}$major'
10037 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10038 shlibpath_var=LD_LIBRARY_PATH
10039 shlibpath_overrides_runpath=no
10040 hardcode_into_libs=yes
10041 ;;
10042
10043 irix5* | irix6* | nonstopux*)
10044 case $host_os in
10045 nonstopux*) version_type=nonstopux ;;
10046 *)
10047 if test "$lt_cv_prog_gnu_ld" = yes; then
10048 version_type=linux
10049 else
10050 version_type=irix
10051 fi ;;
10052 esac
10053 need_lib_prefix=no
10054 need_version=no
10055 soname_spec='${libname}${release}${shared_ext}$major'
10056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10057 case $host_os in
10058 irix5* | nonstopux*)
10059 libsuff= shlibsuff=
10060 ;;
10061 *)
10062 case $LD in # libtool.m4 will add one of these switches to LD
10063 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10064 libsuff= shlibsuff= libmagic=32-bit;;
10065 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10066 libsuff=32 shlibsuff=N32 libmagic=N32;;
10067 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10068 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10069 *) libsuff= shlibsuff= libmagic=never-match;;
10070 esac
10071 ;;
10072 esac
10073 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10074 shlibpath_overrides_runpath=no
10075 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10076 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10077 hardcode_into_libs=yes
10078 ;;
10079
10080 # No shared lib support for Linux oldld, aout, or coff.
10081 linux*oldld* | linux*aout* | linux*coff*)
10082 dynamic_linker=no
10083 ;;
10084
10085 # This must be Linux ELF.
10086
10087 # uclinux* changes (here and below) have been submitted to the libtool
10088 # project, but have not yet been accepted: they are GCC-local changes
10089 # for the time being. (See
10090 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10091 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
10092 version_type=linux
10093 need_lib_prefix=no
10094 need_version=no
10095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10096 soname_spec='${libname}${release}${shared_ext}$major'
10097 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10098 shlibpath_var=LD_LIBRARY_PATH
10099 shlibpath_overrides_runpath=no
10100
10101 # Some binutils ld are patched to set DT_RUNPATH
10102 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10103 $as_echo_n "(cached) " >&6
10104 else
10105 lt_cv_shlibpath_overrides_runpath=no
10106 save_LDFLAGS=$LDFLAGS
10107 save_libdir=$libdir
10108 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10109 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10111 /* end confdefs.h. */
10112
10113 int
10114 main ()
10115 {
10116
10117 ;
10118 return 0;
10119 }
10120 _ACEOF
10121 if ac_fn_c_try_link "$LINENO"; then :
10122 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10123 lt_cv_shlibpath_overrides_runpath=yes
10124 fi
10125 fi
10126 rm -f core conftest.err conftest.$ac_objext \
10127 conftest$ac_exeext conftest.$ac_ext
10128 LDFLAGS=$save_LDFLAGS
10129 libdir=$save_libdir
10130
10131 fi
10132
10133 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10134
10135 # This implies no fast_install, which is unacceptable.
10136 # Some rework will be needed to allow for fast_install
10137 # before this can be enabled.
10138 hardcode_into_libs=yes
10139
10140 # Append ld.so.conf contents to the search path
10141 if test -f /etc/ld.so.conf; then
10142 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' ' '`
10143 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10144 fi
10145
10146 # We used to test for /lib/ld.so.1 and disable shared libraries on
10147 # powerpc, because MkLinux only supported shared libraries with the
10148 # GNU dynamic linker. Since this was broken with cross compilers,
10149 # most powerpc-linux boxes support dynamic linking these days and
10150 # people can always --disable-shared, the test was removed, and we
10151 # assume the GNU/Linux dynamic linker is in use.
10152 dynamic_linker='GNU/Linux ld.so'
10153 ;;
10154
10155 netbsd*)
10156 version_type=sunos
10157 need_lib_prefix=no
10158 need_version=no
10159 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10161 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10162 dynamic_linker='NetBSD (a.out) ld.so'
10163 else
10164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10165 soname_spec='${libname}${release}${shared_ext}$major'
10166 dynamic_linker='NetBSD ld.elf_so'
10167 fi
10168 shlibpath_var=LD_LIBRARY_PATH
10169 shlibpath_overrides_runpath=yes
10170 hardcode_into_libs=yes
10171 ;;
10172
10173 newsos6)
10174 version_type=linux
10175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10176 shlibpath_var=LD_LIBRARY_PATH
10177 shlibpath_overrides_runpath=yes
10178 ;;
10179
10180 *nto* | *qnx*)
10181 version_type=qnx
10182 need_lib_prefix=no
10183 need_version=no
10184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10185 soname_spec='${libname}${release}${shared_ext}$major'
10186 shlibpath_var=LD_LIBRARY_PATH
10187 shlibpath_overrides_runpath=no
10188 hardcode_into_libs=yes
10189 dynamic_linker='ldqnx.so'
10190 ;;
10191
10192 openbsd*)
10193 version_type=sunos
10194 sys_lib_dlsearch_path_spec="/usr/lib"
10195 need_lib_prefix=no
10196 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10197 case $host_os in
10198 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10199 *) need_version=no ;;
10200 esac
10201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10202 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10203 shlibpath_var=LD_LIBRARY_PATH
10204 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10205 case $host_os in
10206 openbsd2.[89] | openbsd2.[89].*)
10207 shlibpath_overrides_runpath=no
10208 ;;
10209 *)
10210 shlibpath_overrides_runpath=yes
10211 ;;
10212 esac
10213 else
10214 shlibpath_overrides_runpath=yes
10215 fi
10216 ;;
10217
10218 os2*)
10219 libname_spec='$name'
10220 shrext_cmds=".dll"
10221 need_lib_prefix=no
10222 library_names_spec='$libname${shared_ext} $libname.a'
10223 dynamic_linker='OS/2 ld.exe'
10224 shlibpath_var=LIBPATH
10225 ;;
10226
10227 osf3* | osf4* | osf5*)
10228 version_type=osf
10229 need_lib_prefix=no
10230 need_version=no
10231 soname_spec='${libname}${release}${shared_ext}$major'
10232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10233 shlibpath_var=LD_LIBRARY_PATH
10234 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10235 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10236 ;;
10237
10238 rdos*)
10239 dynamic_linker=no
10240 ;;
10241
10242 solaris*)
10243 version_type=linux
10244 need_lib_prefix=no
10245 need_version=no
10246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10247 soname_spec='${libname}${release}${shared_ext}$major'
10248 shlibpath_var=LD_LIBRARY_PATH
10249 shlibpath_overrides_runpath=yes
10250 hardcode_into_libs=yes
10251 # ldd complains unless libraries are executable
10252 postinstall_cmds='chmod +x $lib'
10253 ;;
10254
10255 sunos4*)
10256 version_type=sunos
10257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10258 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10259 shlibpath_var=LD_LIBRARY_PATH
10260 shlibpath_overrides_runpath=yes
10261 if test "$with_gnu_ld" = yes; then
10262 need_lib_prefix=no
10263 fi
10264 need_version=yes
10265 ;;
10266
10267 sysv4 | sysv4.3*)
10268 version_type=linux
10269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10270 soname_spec='${libname}${release}${shared_ext}$major'
10271 shlibpath_var=LD_LIBRARY_PATH
10272 case $host_vendor in
10273 sni)
10274 shlibpath_overrides_runpath=no
10275 need_lib_prefix=no
10276 runpath_var=LD_RUN_PATH
10277 ;;
10278 siemens)
10279 need_lib_prefix=no
10280 ;;
10281 motorola)
10282 need_lib_prefix=no
10283 need_version=no
10284 shlibpath_overrides_runpath=no
10285 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10286 ;;
10287 esac
10288 ;;
10289
10290 sysv4*MP*)
10291 if test -d /usr/nec ;then
10292 version_type=linux
10293 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10294 soname_spec='$libname${shared_ext}.$major'
10295 shlibpath_var=LD_LIBRARY_PATH
10296 fi
10297 ;;
10298
10299 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10300 version_type=freebsd-elf
10301 need_lib_prefix=no
10302 need_version=no
10303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10304 soname_spec='${libname}${release}${shared_ext}$major'
10305 shlibpath_var=LD_LIBRARY_PATH
10306 shlibpath_overrides_runpath=yes
10307 hardcode_into_libs=yes
10308 if test "$with_gnu_ld" = yes; then
10309 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10310 else
10311 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10312 case $host_os in
10313 sco3.2v5*)
10314 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10315 ;;
10316 esac
10317 fi
10318 sys_lib_dlsearch_path_spec='/usr/lib'
10319 ;;
10320
10321 tpf*)
10322 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10323 version_type=linux
10324 need_lib_prefix=no
10325 need_version=no
10326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10327 shlibpath_var=LD_LIBRARY_PATH
10328 shlibpath_overrides_runpath=no
10329 hardcode_into_libs=yes
10330 ;;
10331
10332 uts4*)
10333 version_type=linux
10334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10335 soname_spec='${libname}${release}${shared_ext}$major'
10336 shlibpath_var=LD_LIBRARY_PATH
10337 ;;
10338
10339 *)
10340 dynamic_linker=no
10341 ;;
10342 esac
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10344 $as_echo "$dynamic_linker" >&6; }
10345 test "$dynamic_linker" = no && can_build_shared=no
10346
10347 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10348 if test "$GCC" = yes; then
10349 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10350 fi
10351
10352 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10353 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10354 fi
10355 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10356 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10357 fi
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10451 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10452 hardcode_action=
10453 if test -n "$hardcode_libdir_flag_spec" ||
10454 test -n "$runpath_var" ||
10455 test "X$hardcode_automatic" = "Xyes" ; then
10456
10457 # We can hardcode non-existent directories.
10458 if test "$hardcode_direct" != no &&
10459 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10460 # have to relink, otherwise we might link with an installed library
10461 # when we should be linking with a yet-to-be-installed one
10462 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10463 test "$hardcode_minus_L" != no; then
10464 # Linking always hardcodes the temporary library directory.
10465 hardcode_action=relink
10466 else
10467 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10468 hardcode_action=immediate
10469 fi
10470 else
10471 # We cannot hardcode anything, or else we can only hardcode existing
10472 # directories.
10473 hardcode_action=unsupported
10474 fi
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10476 $as_echo "$hardcode_action" >&6; }
10477
10478 if test "$hardcode_action" = relink ||
10479 test "$inherit_rpath" = yes; then
10480 # Fast installation is not supported
10481 enable_fast_install=no
10482 elif test "$shlibpath_overrides_runpath" = yes ||
10483 test "$enable_shared" = no; then
10484 # Fast installation is not necessary
10485 enable_fast_install=needless
10486 fi
10487
10488
10489
10490
10491
10492
10493 if test "x$enable_dlopen" != xyes; then
10494 enable_dlopen=unknown
10495 enable_dlopen_self=unknown
10496 enable_dlopen_self_static=unknown
10497 else
10498 lt_cv_dlopen=no
10499 lt_cv_dlopen_libs=
10500
10501 case $host_os in
10502 beos*)
10503 lt_cv_dlopen="load_add_on"
10504 lt_cv_dlopen_libs=
10505 lt_cv_dlopen_self=yes
10506 ;;
10507
10508 mingw* | pw32* | cegcc*)
10509 lt_cv_dlopen="LoadLibrary"
10510 lt_cv_dlopen_libs=
10511 ;;
10512
10513 cygwin*)
10514 lt_cv_dlopen="dlopen"
10515 lt_cv_dlopen_libs=
10516 ;;
10517
10518 darwin*)
10519 # if libdl is installed we need to link against it
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10521 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10522 if ${ac_cv_lib_dl_dlopen+:} false; then :
10523 $as_echo_n "(cached) " >&6
10524 else
10525 ac_check_lib_save_LIBS=$LIBS
10526 LIBS="-ldl $LIBS"
10527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10528 /* end confdefs.h. */
10529
10530 /* Override any GCC internal prototype to avoid an error.
10531 Use char because int might match the return type of a GCC
10532 builtin and then its argument prototype would still apply. */
10533 #ifdef __cplusplus
10534 extern "C"
10535 #endif
10536 char dlopen ();
10537 int
10538 main ()
10539 {
10540 return dlopen ();
10541 ;
10542 return 0;
10543 }
10544 _ACEOF
10545 if ac_fn_c_try_link "$LINENO"; then :
10546 ac_cv_lib_dl_dlopen=yes
10547 else
10548 ac_cv_lib_dl_dlopen=no
10549 fi
10550 rm -f core conftest.err conftest.$ac_objext \
10551 conftest$ac_exeext conftest.$ac_ext
10552 LIBS=$ac_check_lib_save_LIBS
10553 fi
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10555 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10556 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10557 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10558 else
10559
10560 lt_cv_dlopen="dyld"
10561 lt_cv_dlopen_libs=
10562 lt_cv_dlopen_self=yes
10563
10564 fi
10565
10566 ;;
10567
10568 *)
10569 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10570 if test "x$ac_cv_func_shl_load" = xyes; then :
10571 lt_cv_dlopen="shl_load"
10572 else
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10574 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10575 if ${ac_cv_lib_dld_shl_load+:} false; then :
10576 $as_echo_n "(cached) " >&6
10577 else
10578 ac_check_lib_save_LIBS=$LIBS
10579 LIBS="-ldld $LIBS"
10580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10581 /* end confdefs.h. */
10582
10583 /* Override any GCC internal prototype to avoid an error.
10584 Use char because int might match the return type of a GCC
10585 builtin and then its argument prototype would still apply. */
10586 #ifdef __cplusplus
10587 extern "C"
10588 #endif
10589 char shl_load ();
10590 int
10591 main ()
10592 {
10593 return shl_load ();
10594 ;
10595 return 0;
10596 }
10597 _ACEOF
10598 if ac_fn_c_try_link "$LINENO"; then :
10599 ac_cv_lib_dld_shl_load=yes
10600 else
10601 ac_cv_lib_dld_shl_load=no
10602 fi
10603 rm -f core conftest.err conftest.$ac_objext \
10604 conftest$ac_exeext conftest.$ac_ext
10605 LIBS=$ac_check_lib_save_LIBS
10606 fi
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10608 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10609 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10610 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10611 else
10612 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10613 if test "x$ac_cv_func_dlopen" = xyes; then :
10614 lt_cv_dlopen="dlopen"
10615 else
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10617 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10618 if ${ac_cv_lib_dl_dlopen+:} false; then :
10619 $as_echo_n "(cached) " >&6
10620 else
10621 ac_check_lib_save_LIBS=$LIBS
10622 LIBS="-ldl $LIBS"
10623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10624 /* end confdefs.h. */
10625
10626 /* Override any GCC internal prototype to avoid an error.
10627 Use char because int might match the return type of a GCC
10628 builtin and then its argument prototype would still apply. */
10629 #ifdef __cplusplus
10630 extern "C"
10631 #endif
10632 char dlopen ();
10633 int
10634 main ()
10635 {
10636 return dlopen ();
10637 ;
10638 return 0;
10639 }
10640 _ACEOF
10641 if ac_fn_c_try_link "$LINENO"; then :
10642 ac_cv_lib_dl_dlopen=yes
10643 else
10644 ac_cv_lib_dl_dlopen=no
10645 fi
10646 rm -f core conftest.err conftest.$ac_objext \
10647 conftest$ac_exeext conftest.$ac_ext
10648 LIBS=$ac_check_lib_save_LIBS
10649 fi
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10651 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10652 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10653 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10654 else
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10656 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10657 if ${ac_cv_lib_svld_dlopen+:} false; then :
10658 $as_echo_n "(cached) " >&6
10659 else
10660 ac_check_lib_save_LIBS=$LIBS
10661 LIBS="-lsvld $LIBS"
10662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10663 /* end confdefs.h. */
10664
10665 /* Override any GCC internal prototype to avoid an error.
10666 Use char because int might match the return type of a GCC
10667 builtin and then its argument prototype would still apply. */
10668 #ifdef __cplusplus
10669 extern "C"
10670 #endif
10671 char dlopen ();
10672 int
10673 main ()
10674 {
10675 return dlopen ();
10676 ;
10677 return 0;
10678 }
10679 _ACEOF
10680 if ac_fn_c_try_link "$LINENO"; then :
10681 ac_cv_lib_svld_dlopen=yes
10682 else
10683 ac_cv_lib_svld_dlopen=no
10684 fi
10685 rm -f core conftest.err conftest.$ac_objext \
10686 conftest$ac_exeext conftest.$ac_ext
10687 LIBS=$ac_check_lib_save_LIBS
10688 fi
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10690 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10691 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10692 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10693 else
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10695 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10696 if ${ac_cv_lib_dld_dld_link+:} false; then :
10697 $as_echo_n "(cached) " >&6
10698 else
10699 ac_check_lib_save_LIBS=$LIBS
10700 LIBS="-ldld $LIBS"
10701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10702 /* end confdefs.h. */
10703
10704 /* Override any GCC internal prototype to avoid an error.
10705 Use char because int might match the return type of a GCC
10706 builtin and then its argument prototype would still apply. */
10707 #ifdef __cplusplus
10708 extern "C"
10709 #endif
10710 char dld_link ();
10711 int
10712 main ()
10713 {
10714 return dld_link ();
10715 ;
10716 return 0;
10717 }
10718 _ACEOF
10719 if ac_fn_c_try_link "$LINENO"; then :
10720 ac_cv_lib_dld_dld_link=yes
10721 else
10722 ac_cv_lib_dld_dld_link=no
10723 fi
10724 rm -f core conftest.err conftest.$ac_objext \
10725 conftest$ac_exeext conftest.$ac_ext
10726 LIBS=$ac_check_lib_save_LIBS
10727 fi
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10729 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10730 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10731 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10732 fi
10733
10734
10735 fi
10736
10737
10738 fi
10739
10740
10741 fi
10742
10743
10744 fi
10745
10746
10747 fi
10748
10749 ;;
10750 esac
10751
10752 if test "x$lt_cv_dlopen" != xno; then
10753 enable_dlopen=yes
10754 else
10755 enable_dlopen=no
10756 fi
10757
10758 case $lt_cv_dlopen in
10759 dlopen)
10760 save_CPPFLAGS="$CPPFLAGS"
10761 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10762
10763 save_LDFLAGS="$LDFLAGS"
10764 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10765
10766 save_LIBS="$LIBS"
10767 LIBS="$lt_cv_dlopen_libs $LIBS"
10768
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10770 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10771 if ${lt_cv_dlopen_self+:} false; then :
10772 $as_echo_n "(cached) " >&6
10773 else
10774 if test "$cross_compiling" = yes; then :
10775 lt_cv_dlopen_self=cross
10776 else
10777 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10778 lt_status=$lt_dlunknown
10779 cat > conftest.$ac_ext <<_LT_EOF
10780 #line 10790 "configure"
10781 #include "confdefs.h"
10782
10783 #if HAVE_DLFCN_H
10784 #include <dlfcn.h>
10785 #endif
10786
10787 #include <stdio.h>
10788
10789 #ifdef RTLD_GLOBAL
10790 # define LT_DLGLOBAL RTLD_GLOBAL
10791 #else
10792 # ifdef DL_GLOBAL
10793 # define LT_DLGLOBAL DL_GLOBAL
10794 # else
10795 # define LT_DLGLOBAL 0
10796 # endif
10797 #endif
10798
10799 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10800 find out it does not work in some platform. */
10801 #ifndef LT_DLLAZY_OR_NOW
10802 # ifdef RTLD_LAZY
10803 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10804 # else
10805 # ifdef DL_LAZY
10806 # define LT_DLLAZY_OR_NOW DL_LAZY
10807 # else
10808 # ifdef RTLD_NOW
10809 # define LT_DLLAZY_OR_NOW RTLD_NOW
10810 # else
10811 # ifdef DL_NOW
10812 # define LT_DLLAZY_OR_NOW DL_NOW
10813 # else
10814 # define LT_DLLAZY_OR_NOW 0
10815 # endif
10816 # endif
10817 # endif
10818 # endif
10819 #endif
10820
10821 /* When -fvisbility=hidden is used, assume the code has been annotated
10822 correspondingly for the symbols needed. */
10823 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10824 void fnord () __attribute__((visibility("default")));
10825 #endif
10826
10827 void fnord () { int i=42; }
10828 int main ()
10829 {
10830 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10831 int status = $lt_dlunknown;
10832
10833 if (self)
10834 {
10835 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10836 else
10837 {
10838 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10839 else puts (dlerror ());
10840 }
10841 /* dlclose (self); */
10842 }
10843 else
10844 puts (dlerror ());
10845
10846 return status;
10847 }
10848 _LT_EOF
10849 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10850 (eval $ac_link) 2>&5
10851 ac_status=$?
10852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10853 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10854 (./conftest; exit; ) >&5 2>/dev/null
10855 lt_status=$?
10856 case x$lt_status in
10857 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10858 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10859 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10860 esac
10861 else :
10862 # compilation failed
10863 lt_cv_dlopen_self=no
10864 fi
10865 fi
10866 rm -fr conftest*
10867
10868
10869 fi
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10871 $as_echo "$lt_cv_dlopen_self" >&6; }
10872
10873 if test "x$lt_cv_dlopen_self" = xyes; then
10874 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10876 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10877 if ${lt_cv_dlopen_self_static+:} false; then :
10878 $as_echo_n "(cached) " >&6
10879 else
10880 if test "$cross_compiling" = yes; then :
10881 lt_cv_dlopen_self_static=cross
10882 else
10883 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10884 lt_status=$lt_dlunknown
10885 cat > conftest.$ac_ext <<_LT_EOF
10886 #line 10896 "configure"
10887 #include "confdefs.h"
10888
10889 #if HAVE_DLFCN_H
10890 #include <dlfcn.h>
10891 #endif
10892
10893 #include <stdio.h>
10894
10895 #ifdef RTLD_GLOBAL
10896 # define LT_DLGLOBAL RTLD_GLOBAL
10897 #else
10898 # ifdef DL_GLOBAL
10899 # define LT_DLGLOBAL DL_GLOBAL
10900 # else
10901 # define LT_DLGLOBAL 0
10902 # endif
10903 #endif
10904
10905 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10906 find out it does not work in some platform. */
10907 #ifndef LT_DLLAZY_OR_NOW
10908 # ifdef RTLD_LAZY
10909 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10910 # else
10911 # ifdef DL_LAZY
10912 # define LT_DLLAZY_OR_NOW DL_LAZY
10913 # else
10914 # ifdef RTLD_NOW
10915 # define LT_DLLAZY_OR_NOW RTLD_NOW
10916 # else
10917 # ifdef DL_NOW
10918 # define LT_DLLAZY_OR_NOW DL_NOW
10919 # else
10920 # define LT_DLLAZY_OR_NOW 0
10921 # endif
10922 # endif
10923 # endif
10924 # endif
10925 #endif
10926
10927 /* When -fvisbility=hidden is used, assume the code has been annotated
10928 correspondingly for the symbols needed. */
10929 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10930 void fnord () __attribute__((visibility("default")));
10931 #endif
10932
10933 void fnord () { int i=42; }
10934 int main ()
10935 {
10936 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10937 int status = $lt_dlunknown;
10938
10939 if (self)
10940 {
10941 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10942 else
10943 {
10944 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10945 else puts (dlerror ());
10946 }
10947 /* dlclose (self); */
10948 }
10949 else
10950 puts (dlerror ());
10951
10952 return status;
10953 }
10954 _LT_EOF
10955 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10956 (eval $ac_link) 2>&5
10957 ac_status=$?
10958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10959 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10960 (./conftest; exit; ) >&5 2>/dev/null
10961 lt_status=$?
10962 case x$lt_status in
10963 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10964 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10965 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10966 esac
10967 else :
10968 # compilation failed
10969 lt_cv_dlopen_self_static=no
10970 fi
10971 fi
10972 rm -fr conftest*
10973
10974
10975 fi
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10977 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10978 fi
10979
10980 CPPFLAGS="$save_CPPFLAGS"
10981 LDFLAGS="$save_LDFLAGS"
10982 LIBS="$save_LIBS"
10983 ;;
10984 esac
10985
10986 case $lt_cv_dlopen_self in
10987 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10988 *) enable_dlopen_self=unknown ;;
10989 esac
10990
10991 case $lt_cv_dlopen_self_static in
10992 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10993 *) enable_dlopen_self_static=unknown ;;
10994 esac
10995 fi
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013 striplib=
11014 old_striplib=
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11016 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11017 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11018 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11019 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11021 $as_echo "yes" >&6; }
11022 else
11023 # FIXME - insert some real tests, host_os isn't really good enough
11024 case $host_os in
11025 darwin*)
11026 if test -n "$STRIP" ; then
11027 striplib="$STRIP -x"
11028 old_striplib="$STRIP -S"
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11030 $as_echo "yes" >&6; }
11031 else
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11033 $as_echo "no" >&6; }
11034 fi
11035 ;;
11036 *)
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11038 $as_echo "no" >&6; }
11039 ;;
11040 esac
11041 fi
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054 # Report which library types will actually be built
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11056 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11058 $as_echo "$can_build_shared" >&6; }
11059
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11061 $as_echo_n "checking whether to build shared libraries... " >&6; }
11062 test "$can_build_shared" = "no" && enable_shared=no
11063
11064 # On AIX, shared libraries and static libraries use the same namespace, and
11065 # are all built from PIC.
11066 case $host_os in
11067 aix3*)
11068 test "$enable_shared" = yes && enable_static=no
11069 if test -n "$RANLIB"; then
11070 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11071 postinstall_cmds='$RANLIB $lib'
11072 fi
11073 ;;
11074
11075 aix[4-9]*)
11076 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11077 test "$enable_shared" = yes && enable_static=no
11078 fi
11079 ;;
11080 esac
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11082 $as_echo "$enable_shared" >&6; }
11083
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11085 $as_echo_n "checking whether to build static libraries... " >&6; }
11086 # Make sure either enable_shared or enable_static is yes.
11087 test "$enable_shared" = yes || enable_static=yes
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11089 $as_echo "$enable_static" >&6; }
11090
11091
11092
11093
11094 fi
11095 ac_ext=c
11096 ac_cpp='$CPP $CPPFLAGS'
11097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11100
11101 CC="$lt_save_CC"
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115 ac_config_commands="$ac_config_commands libtool"
11116
11117
11118
11119
11120 # Only expand once:
11121
11122
11123
11124 ac_ext=cpp
11125 ac_cpp='$CXXCPP $CPPFLAGS'
11126 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11127 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11128 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11129 if test -z "$CXX"; then
11130 if test -n "$CCC"; then
11131 CXX=$CCC
11132 else
11133 if test -n "$ac_tool_prefix"; then
11134 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11135 do
11136 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11137 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11139 $as_echo_n "checking for $ac_word... " >&6; }
11140 if ${ac_cv_prog_CXX+:} false; then :
11141 $as_echo_n "(cached) " >&6
11142 else
11143 if test -n "$CXX"; then
11144 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11145 else
11146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11147 for as_dir in $PATH
11148 do
11149 IFS=$as_save_IFS
11150 test -z "$as_dir" && as_dir=.
11151 for ac_exec_ext in '' $ac_executable_extensions; do
11152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11153 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11155 break 2
11156 fi
11157 done
11158 done
11159 IFS=$as_save_IFS
11160
11161 fi
11162 fi
11163 CXX=$ac_cv_prog_CXX
11164 if test -n "$CXX"; then
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11166 $as_echo "$CXX" >&6; }
11167 else
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11169 $as_echo "no" >&6; }
11170 fi
11171
11172
11173 test -n "$CXX" && break
11174 done
11175 fi
11176 if test -z "$CXX"; then
11177 ac_ct_CXX=$CXX
11178 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11179 do
11180 # Extract the first word of "$ac_prog", so it can be a program name with args.
11181 set dummy $ac_prog; ac_word=$2
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11183 $as_echo_n "checking for $ac_word... " >&6; }
11184 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
11185 $as_echo_n "(cached) " >&6
11186 else
11187 if test -n "$ac_ct_CXX"; then
11188 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11189 else
11190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11191 for as_dir in $PATH
11192 do
11193 IFS=$as_save_IFS
11194 test -z "$as_dir" && as_dir=.
11195 for ac_exec_ext in '' $ac_executable_extensions; do
11196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11197 ac_cv_prog_ac_ct_CXX="$ac_prog"
11198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11199 break 2
11200 fi
11201 done
11202 done
11203 IFS=$as_save_IFS
11204
11205 fi
11206 fi
11207 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11208 if test -n "$ac_ct_CXX"; then
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11210 $as_echo "$ac_ct_CXX" >&6; }
11211 else
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11213 $as_echo "no" >&6; }
11214 fi
11215
11216
11217 test -n "$ac_ct_CXX" && break
11218 done
11219
11220 if test "x$ac_ct_CXX" = x; then
11221 CXX="g++"
11222 else
11223 case $cross_compiling:$ac_tool_warned in
11224 yes:)
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11227 ac_tool_warned=yes ;;
11228 esac
11229 CXX=$ac_ct_CXX
11230 fi
11231 fi
11232
11233 fi
11234 fi
11235 # Provide some information about the compiler.
11236 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11237 set X $ac_compile
11238 ac_compiler=$2
11239 for ac_option in --version -v -V -qversion; do
11240 { { ac_try="$ac_compiler $ac_option >&5"
11241 case "(($ac_try" in
11242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11243 *) ac_try_echo=$ac_try;;
11244 esac
11245 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11246 $as_echo "$ac_try_echo"; } >&5
11247 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11248 ac_status=$?
11249 if test -s conftest.err; then
11250 sed '10a\
11251 ... rest of stderr output deleted ...
11252 10q' conftest.err >conftest.er1
11253 cat conftest.er1 >&5
11254 fi
11255 rm -f conftest.er1 conftest.err
11256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11257 test $ac_status = 0; }
11258 done
11259
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11261 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11262 if ${ac_cv_cxx_compiler_gnu+:} false; then :
11263 $as_echo_n "(cached) " >&6
11264 else
11265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11266 /* end confdefs.h. */
11267
11268 int
11269 main ()
11270 {
11271 #ifndef __GNUC__
11272 choke me
11273 #endif
11274
11275 ;
11276 return 0;
11277 }
11278 _ACEOF
11279 if ac_fn_cxx_try_compile "$LINENO"; then :
11280 ac_compiler_gnu=yes
11281 else
11282 ac_compiler_gnu=no
11283 fi
11284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11285 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11286
11287 fi
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11289 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11290 if test $ac_compiler_gnu = yes; then
11291 GXX=yes
11292 else
11293 GXX=
11294 fi
11295 ac_test_CXXFLAGS=${CXXFLAGS+set}
11296 ac_save_CXXFLAGS=$CXXFLAGS
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11298 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11299 if ${ac_cv_prog_cxx_g+:} false; then :
11300 $as_echo_n "(cached) " >&6
11301 else
11302 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11303 ac_cxx_werror_flag=yes
11304 ac_cv_prog_cxx_g=no
11305 CXXFLAGS="-g"
11306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11307 /* end confdefs.h. */
11308
11309 int
11310 main ()
11311 {
11312
11313 ;
11314 return 0;
11315 }
11316 _ACEOF
11317 if ac_fn_cxx_try_compile "$LINENO"; then :
11318 ac_cv_prog_cxx_g=yes
11319 else
11320 CXXFLAGS=""
11321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11322 /* end confdefs.h. */
11323
11324 int
11325 main ()
11326 {
11327
11328 ;
11329 return 0;
11330 }
11331 _ACEOF
11332 if ac_fn_cxx_try_compile "$LINENO"; then :
11333
11334 else
11335 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11336 CXXFLAGS="-g"
11337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11338 /* end confdefs.h. */
11339
11340 int
11341 main ()
11342 {
11343
11344 ;
11345 return 0;
11346 }
11347 _ACEOF
11348 if ac_fn_cxx_try_compile "$LINENO"; then :
11349 ac_cv_prog_cxx_g=yes
11350 fi
11351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11352 fi
11353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11354 fi
11355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11356 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11357 fi
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11359 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11360 if test "$ac_test_CXXFLAGS" = set; then
11361 CXXFLAGS=$ac_save_CXXFLAGS
11362 elif test $ac_cv_prog_cxx_g = yes; then
11363 if test "$GXX" = yes; then
11364 CXXFLAGS="-g -O2"
11365 else
11366 CXXFLAGS="-g"
11367 fi
11368 else
11369 if test "$GXX" = yes; then
11370 CXXFLAGS="-O2"
11371 else
11372 CXXFLAGS=
11373 fi
11374 fi
11375 ac_ext=c
11376 ac_cpp='$CPP $CPPFLAGS'
11377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11380
11381 depcc="$CXX" am_compiler_list=
11382
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11384 $as_echo_n "checking dependency style of $depcc... " >&6; }
11385 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
11386 $as_echo_n "(cached) " >&6
11387 else
11388 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11389 # We make a subdir and do the tests there. Otherwise we can end up
11390 # making bogus files that we don't know about and never remove. For
11391 # instance it was reported that on HP-UX the gcc test will end up
11392 # making a dummy file named 'D' -- because '-MD' means "put the output
11393 # in D".
11394 rm -rf conftest.dir
11395 mkdir conftest.dir
11396 # Copy depcomp to subdir because otherwise we won't find it if we're
11397 # using a relative directory.
11398 cp "$am_depcomp" conftest.dir
11399 cd conftest.dir
11400 # We will build objects and dependencies in a subdirectory because
11401 # it helps to detect inapplicable dependency modes. For instance
11402 # both Tru64's cc and ICC support -MD to output dependencies as a
11403 # side effect of compilation, but ICC will put the dependencies in
11404 # the current directory while Tru64 will put them in the object
11405 # directory.
11406 mkdir sub
11407
11408 am_cv_CXX_dependencies_compiler_type=none
11409 if test "$am_compiler_list" = ""; then
11410 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11411 fi
11412 am__universal=false
11413 case " $depcc " in #(
11414 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11415 esac
11416
11417 for depmode in $am_compiler_list; do
11418 # Setup a source with many dependencies, because some compilers
11419 # like to wrap large dependency lists on column 80 (with \), and
11420 # we should not choose a depcomp mode which is confused by this.
11421 #
11422 # We need to recreate these files for each test, as the compiler may
11423 # overwrite some of them when testing with obscure command lines.
11424 # This happens at least with the AIX C compiler.
11425 : > sub/conftest.c
11426 for i in 1 2 3 4 5 6; do
11427 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11428 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
11429 # Solaris 10 /bin/sh.
11430 echo '/* dummy */' > sub/conftst$i.h
11431 done
11432 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11433
11434 # We check with '-c' and '-o' for the sake of the "dashmstdout"
11435 # mode. It turns out that the SunPro C++ compiler does not properly
11436 # handle '-M -o', and we need to detect this. Also, some Intel
11437 # versions had trouble with output in subdirs.
11438 am__obj=sub/conftest.${OBJEXT-o}
11439 am__minus_obj="-o $am__obj"
11440 case $depmode in
11441 gcc)
11442 # This depmode causes a compiler race in universal mode.
11443 test "$am__universal" = false || continue
11444 ;;
11445 nosideeffect)
11446 # After this tag, mechanisms are not by side-effect, so they'll
11447 # only be used when explicitly requested.
11448 if test "x$enable_dependency_tracking" = xyes; then
11449 continue
11450 else
11451 break
11452 fi
11453 ;;
11454 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11455 # This compiler won't grok '-c -o', but also, the minuso test has
11456 # not run yet. These depmodes are late enough in the game, and
11457 # so weak that their functioning should not be impacted.
11458 am__obj=conftest.${OBJEXT-o}
11459 am__minus_obj=
11460 ;;
11461 none) break ;;
11462 esac
11463 if depmode=$depmode \
11464 source=sub/conftest.c object=$am__obj \
11465 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11466 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11467 >/dev/null 2>conftest.err &&
11468 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11469 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11470 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11471 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11472 # icc doesn't choke on unknown options, it will just issue warnings
11473 # or remarks (even with -Werror). So we grep stderr for any message
11474 # that says an option was ignored or not supported.
11475 # When given -MP, icc 7.0 and 7.1 complain thusly:
11476 # icc: Command line warning: ignoring option '-M'; no argument required
11477 # The diagnosis changed in icc 8.0:
11478 # icc: Command line remark: option '-MP' not supported
11479 if (grep 'ignoring option' conftest.err ||
11480 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11481 am_cv_CXX_dependencies_compiler_type=$depmode
11482 break
11483 fi
11484 fi
11485 done
11486
11487 cd ..
11488 rm -rf conftest.dir
11489 else
11490 am_cv_CXX_dependencies_compiler_type=none
11491 fi
11492
11493 fi
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11495 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11496 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11497
11498 if
11499 test "x$enable_dependency_tracking" != xno \
11500 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11501 am__fastdepCXX_TRUE=
11502 am__fastdepCXX_FALSE='#'
11503 else
11504 am__fastdepCXX_TRUE='#'
11505 am__fastdepCXX_FALSE=
11506 fi
11507
11508
11509 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11510 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11511 (test "X$CXX" != "Xg++"))) ; then
11512 ac_ext=cpp
11513 ac_cpp='$CXXCPP $CPPFLAGS'
11514 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11515 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11516 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11518 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11519 if test -z "$CXXCPP"; then
11520 if ${ac_cv_prog_CXXCPP+:} false; then :
11521 $as_echo_n "(cached) " >&6
11522 else
11523 # Double quotes because CXXCPP needs to be expanded
11524 for CXXCPP in "$CXX -E" "/lib/cpp"
11525 do
11526 ac_preproc_ok=false
11527 for ac_cxx_preproc_warn_flag in '' yes
11528 do
11529 # Use a header file that comes with gcc, so configuring glibc
11530 # with a fresh cross-compiler works.
11531 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11532 # <limits.h> exists even on freestanding compilers.
11533 # On the NeXT, cc -E runs the code through the compiler's parser,
11534 # not just through cpp. "Syntax error" is here to catch this case.
11535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11536 /* end confdefs.h. */
11537 #ifdef __STDC__
11538 # include <limits.h>
11539 #else
11540 # include <assert.h>
11541 #endif
11542 Syntax error
11543 _ACEOF
11544 if ac_fn_cxx_try_cpp "$LINENO"; then :
11545
11546 else
11547 # Broken: fails on valid input.
11548 continue
11549 fi
11550 rm -f conftest.err conftest.i conftest.$ac_ext
11551
11552 # OK, works on sane cases. Now check whether nonexistent headers
11553 # can be detected and how.
11554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11555 /* end confdefs.h. */
11556 #include <ac_nonexistent.h>
11557 _ACEOF
11558 if ac_fn_cxx_try_cpp "$LINENO"; then :
11559 # Broken: success on invalid input.
11560 continue
11561 else
11562 # Passes both tests.
11563 ac_preproc_ok=:
11564 break
11565 fi
11566 rm -f conftest.err conftest.i conftest.$ac_ext
11567
11568 done
11569 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11570 rm -f conftest.i conftest.err conftest.$ac_ext
11571 if $ac_preproc_ok; then :
11572 break
11573 fi
11574
11575 done
11576 ac_cv_prog_CXXCPP=$CXXCPP
11577
11578 fi
11579 CXXCPP=$ac_cv_prog_CXXCPP
11580 else
11581 ac_cv_prog_CXXCPP=$CXXCPP
11582 fi
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11584 $as_echo "$CXXCPP" >&6; }
11585 ac_preproc_ok=false
11586 for ac_cxx_preproc_warn_flag in '' yes
11587 do
11588 # Use a header file that comes with gcc, so configuring glibc
11589 # with a fresh cross-compiler works.
11590 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11591 # <limits.h> exists even on freestanding compilers.
11592 # On the NeXT, cc -E runs the code through the compiler's parser,
11593 # not just through cpp. "Syntax error" is here to catch this case.
11594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11595 /* end confdefs.h. */
11596 #ifdef __STDC__
11597 # include <limits.h>
11598 #else
11599 # include <assert.h>
11600 #endif
11601 Syntax error
11602 _ACEOF
11603 if ac_fn_cxx_try_cpp "$LINENO"; then :
11604
11605 else
11606 # Broken: fails on valid input.
11607 continue
11608 fi
11609 rm -f conftest.err conftest.i conftest.$ac_ext
11610
11611 # OK, works on sane cases. Now check whether nonexistent headers
11612 # can be detected and how.
11613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11614 /* end confdefs.h. */
11615 #include <ac_nonexistent.h>
11616 _ACEOF
11617 if ac_fn_cxx_try_cpp "$LINENO"; then :
11618 # Broken: success on invalid input.
11619 continue
11620 else
11621 # Passes both tests.
11622 ac_preproc_ok=:
11623 break
11624 fi
11625 rm -f conftest.err conftest.i conftest.$ac_ext
11626
11627 done
11628 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11629 rm -f conftest.i conftest.err conftest.$ac_ext
11630 if $ac_preproc_ok; then :
11631
11632 else
11633 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11634 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11635 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11636 See \`config.log' for more details" "$LINENO" 5; }
11637 fi
11638
11639 ac_ext=c
11640 ac_cpp='$CPP $CPPFLAGS'
11641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11644
11645 else
11646 _lt_caught_CXX_error=yes
11647 fi
11648
11649 ac_ext=cpp
11650 ac_cpp='$CXXCPP $CPPFLAGS'
11651 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11652 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11653 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11654
11655 archive_cmds_need_lc_CXX=no
11656 allow_undefined_flag_CXX=
11657 always_export_symbols_CXX=no
11658 archive_expsym_cmds_CXX=
11659 compiler_needs_object_CXX=no
11660 export_dynamic_flag_spec_CXX=
11661 hardcode_direct_CXX=no
11662 hardcode_direct_absolute_CXX=no
11663 hardcode_libdir_flag_spec_CXX=
11664 hardcode_libdir_flag_spec_ld_CXX=
11665 hardcode_libdir_separator_CXX=
11666 hardcode_minus_L_CXX=no
11667 hardcode_shlibpath_var_CXX=unsupported
11668 hardcode_automatic_CXX=no
11669 inherit_rpath_CXX=no
11670 module_cmds_CXX=
11671 module_expsym_cmds_CXX=
11672 link_all_deplibs_CXX=unknown
11673 old_archive_cmds_CXX=$old_archive_cmds
11674 reload_flag_CXX=$reload_flag
11675 reload_cmds_CXX=$reload_cmds
11676 no_undefined_flag_CXX=
11677 whole_archive_flag_spec_CXX=
11678 enable_shared_with_static_runtimes_CXX=no
11679
11680 # Source file extension for C++ test sources.
11681 ac_ext=cpp
11682
11683 # Object file extension for compiled C++ test sources.
11684 objext=o
11685 objext_CXX=$objext
11686
11687 # No sense in running all these tests if we already determined that
11688 # the CXX compiler isn't working. Some variables (like enable_shared)
11689 # are currently assumed to apply to all compilers on this platform,
11690 # and will be corrupted by setting them based on a non-working compiler.
11691 if test "$_lt_caught_CXX_error" != yes; then
11692 # Code to be used in simple compile tests
11693 lt_simple_compile_test_code="int some_variable = 0;"
11694
11695 # Code to be used in simple link tests
11696 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11697
11698 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11699
11700
11701
11702
11703
11704
11705 # If no C compiler was specified, use CC.
11706 LTCC=${LTCC-"$CC"}
11707
11708 # If no C compiler flags were specified, use CFLAGS.
11709 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11710
11711 # Allow CC to be a program name with arguments.
11712 compiler=$CC
11713
11714
11715 # save warnings/boilerplate of simple test code
11716 ac_outfile=conftest.$ac_objext
11717 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11718 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11719 _lt_compiler_boilerplate=`cat conftest.err`
11720 $RM conftest*
11721
11722 ac_outfile=conftest.$ac_objext
11723 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11724 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11725 _lt_linker_boilerplate=`cat conftest.err`
11726 $RM -r conftest*
11727
11728
11729 # Allow CC to be a program name with arguments.
11730 lt_save_CC=$CC
11731 lt_save_LD=$LD
11732 lt_save_GCC=$GCC
11733 GCC=$GXX
11734 lt_save_with_gnu_ld=$with_gnu_ld
11735 lt_save_path_LD=$lt_cv_path_LD
11736 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11737 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11738 else
11739 $as_unset lt_cv_prog_gnu_ld
11740 fi
11741 if test -n "${lt_cv_path_LDCXX+set}"; then
11742 lt_cv_path_LD=$lt_cv_path_LDCXX
11743 else
11744 $as_unset lt_cv_path_LD
11745 fi
11746 test -z "${LDCXX+set}" || LD=$LDCXX
11747 CC=${CXX-"c++"}
11748 compiler=$CC
11749 compiler_CXX=$CC
11750 for cc_temp in $compiler""; do
11751 case $cc_temp in
11752 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11753 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11754 \-*) ;;
11755 *) break;;
11756 esac
11757 done
11758 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11759
11760
11761 if test -n "$compiler"; then
11762 # We don't want -fno-exception when compiling C++ code, so set the
11763 # no_builtin_flag separately
11764 if test "$GXX" = yes; then
11765 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11766 else
11767 lt_prog_compiler_no_builtin_flag_CXX=
11768 fi
11769
11770 if test "$GXX" = yes; then
11771 # Set up default GNU C++ configuration
11772
11773
11774
11775 # Check whether --with-gnu-ld was given.
11776 if test "${with_gnu_ld+set}" = set; then :
11777 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11778 else
11779 with_gnu_ld=no
11780 fi
11781
11782 ac_prog=ld
11783 if test "$GCC" = yes; then
11784 # Check if gcc -print-prog-name=ld gives a path.
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11786 $as_echo_n "checking for ld used by $CC... " >&6; }
11787 case $host in
11788 *-*-mingw*)
11789 # gcc leaves a trailing carriage return which upsets mingw
11790 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11791 *)
11792 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11793 esac
11794 case $ac_prog in
11795 # Accept absolute paths.
11796 [\\/]* | ?:[\\/]*)
11797 re_direlt='/[^/][^/]*/\.\./'
11798 # Canonicalize the pathname of ld
11799 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11800 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11801 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11802 done
11803 test -z "$LD" && LD="$ac_prog"
11804 ;;
11805 "")
11806 # If it fails, then pretend we aren't using GCC.
11807 ac_prog=ld
11808 ;;
11809 *)
11810 # If it is relative, then search for the first ld in PATH.
11811 with_gnu_ld=unknown
11812 ;;
11813 esac
11814 elif test "$with_gnu_ld" = yes; then
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11816 $as_echo_n "checking for GNU ld... " >&6; }
11817 else
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11819 $as_echo_n "checking for non-GNU ld... " >&6; }
11820 fi
11821 if ${lt_cv_path_LD+:} false; then :
11822 $as_echo_n "(cached) " >&6
11823 else
11824 if test -z "$LD"; then
11825 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11826 for ac_dir in $PATH; do
11827 IFS="$lt_save_ifs"
11828 test -z "$ac_dir" && ac_dir=.
11829 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11830 lt_cv_path_LD="$ac_dir/$ac_prog"
11831 # Check to see if the program is GNU ld. I'd rather use --version,
11832 # but apparently some variants of GNU ld only accept -v.
11833 # Break only if it was the GNU/non-GNU ld that we prefer.
11834 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11835 *GNU* | *'with BFD'*)
11836 test "$with_gnu_ld" != no && break
11837 ;;
11838 *)
11839 test "$with_gnu_ld" != yes && break
11840 ;;
11841 esac
11842 fi
11843 done
11844 IFS="$lt_save_ifs"
11845 else
11846 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11847 fi
11848 fi
11849
11850 LD="$lt_cv_path_LD"
11851 if test -n "$LD"; then
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11853 $as_echo "$LD" >&6; }
11854 else
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11856 $as_echo "no" >&6; }
11857 fi
11858 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11860 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11861 if ${lt_cv_prog_gnu_ld+:} false; then :
11862 $as_echo_n "(cached) " >&6
11863 else
11864 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11865 case `$LD -v 2>&1 </dev/null` in
11866 *GNU* | *'with BFD'*)
11867 lt_cv_prog_gnu_ld=yes
11868 ;;
11869 *)
11870 lt_cv_prog_gnu_ld=no
11871 ;;
11872 esac
11873 fi
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11875 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11876 with_gnu_ld=$lt_cv_prog_gnu_ld
11877
11878
11879
11880
11881
11882
11883
11884 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11885 # archiving commands below assume that GNU ld is being used.
11886 if test "$with_gnu_ld" = yes; then
11887 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11888 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'
11889
11890 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11891 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11892
11893 # If archive_cmds runs LD, not CC, wlarc should be empty
11894 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11895 # investigate it a little bit more. (MM)
11896 wlarc='${wl}'
11897
11898 # ancient GNU ld didn't support --whole-archive et. al.
11899 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11900 $GREP 'no-whole-archive' > /dev/null; then
11901 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11902 else
11903 whole_archive_flag_spec_CXX=
11904 fi
11905 else
11906 with_gnu_ld=no
11907 wlarc=
11908
11909 # A generic and very simple default shared library creation
11910 # command for GNU C++ for the case where it uses the native
11911 # linker, instead of GNU ld. If possible, this setting should
11912 # overridden to take advantage of the native linker features on
11913 # the platform it is being used on.
11914 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11915 fi
11916
11917 # Commands to make compiler produce verbose output that lists
11918 # what "hidden" libraries, object files and flags are used when
11919 # linking a shared library.
11920 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
11921
11922 else
11923 GXX=no
11924 with_gnu_ld=no
11925 wlarc=
11926 fi
11927
11928 # PORTME: fill in a description of your system's C++ link characteristics
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11930 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11931 ld_shlibs_CXX=yes
11932 case $host_os in
11933 aix3*)
11934 # FIXME: insert proper C++ library support
11935 ld_shlibs_CXX=no
11936 ;;
11937 aix[4-9]*)
11938 if test "$host_cpu" = ia64; then
11939 # On IA64, the linker does run time linking by default, so we don't
11940 # have to do anything special.
11941 aix_use_runtimelinking=no
11942 exp_sym_flag='-Bexport'
11943 no_entry_flag=""
11944 else
11945 aix_use_runtimelinking=no
11946
11947 # Test if we are trying to use run time linking or normal
11948 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11949 # need to do runtime linking.
11950 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11951 for ld_flag in $LDFLAGS; do
11952 case $ld_flag in
11953 *-brtl*)
11954 aix_use_runtimelinking=yes
11955 break
11956 ;;
11957 esac
11958 done
11959 ;;
11960 esac
11961
11962 exp_sym_flag='-bexport'
11963 no_entry_flag='-bnoentry'
11964 fi
11965
11966 # When large executables or shared objects are built, AIX ld can
11967 # have problems creating the table of contents. If linking a library
11968 # or program results in "error TOC overflow" add -mminimal-toc to
11969 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11970 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11971
11972 archive_cmds_CXX=''
11973 hardcode_direct_CXX=yes
11974 hardcode_direct_absolute_CXX=yes
11975 hardcode_libdir_separator_CXX=':'
11976 link_all_deplibs_CXX=yes
11977 file_list_spec_CXX='${wl}-f,'
11978
11979 if test "$GXX" = yes; then
11980 case $host_os in aix4.[012]|aix4.[012].*)
11981 # We only want to do this on AIX 4.2 and lower, the check
11982 # below for broken collect2 doesn't work under 4.3+
11983 collect2name=`${CC} -print-prog-name=collect2`
11984 if test -f "$collect2name" &&
11985 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11986 then
11987 # We have reworked collect2
11988 :
11989 else
11990 # We have old collect2
11991 hardcode_direct_CXX=unsupported
11992 # It fails to find uninstalled libraries when the uninstalled
11993 # path is not listed in the libpath. Setting hardcode_minus_L
11994 # to unsupported forces relinking
11995 hardcode_minus_L_CXX=yes
11996 hardcode_libdir_flag_spec_CXX='-L$libdir'
11997 hardcode_libdir_separator_CXX=
11998 fi
11999 esac
12000 shared_flag='-shared'
12001 if test "$aix_use_runtimelinking" = yes; then
12002 shared_flag="$shared_flag "'${wl}-G'
12003 fi
12004 else
12005 # not using gcc
12006 if test "$host_cpu" = ia64; then
12007 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12008 # chokes on -Wl,-G. The following line is correct:
12009 shared_flag='-G'
12010 else
12011 if test "$aix_use_runtimelinking" = yes; then
12012 shared_flag='${wl}-G'
12013 else
12014 shared_flag='${wl}-bM:SRE'
12015 fi
12016 fi
12017 fi
12018
12019 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12020 # It seems that -bexpall does not export symbols beginning with
12021 # underscore (_), so it is better to generate a list of symbols to
12022 # export.
12023 always_export_symbols_CXX=yes
12024 if test "$aix_use_runtimelinking" = yes; then
12025 # Warning - without using the other runtime loading flags (-brtl),
12026 # -berok will link without error, but may produce a broken library.
12027 allow_undefined_flag_CXX='-berok'
12028 # Determine the default libpath from the value encoded in an empty
12029 # executable.
12030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12031 /* end confdefs.h. */
12032
12033 int
12034 main ()
12035 {
12036
12037 ;
12038 return 0;
12039 }
12040 _ACEOF
12041 if ac_fn_cxx_try_link "$LINENO"; then :
12042
12043 lt_aix_libpath_sed='
12044 /Import File Strings/,/^$/ {
12045 /^0/ {
12046 s/^0 *\(.*\)$/\1/
12047 p
12048 }
12049 }'
12050 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12051 # Check for a 64-bit object if we didn't find anything.
12052 if test -z "$aix_libpath"; then
12053 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12054 fi
12055 fi
12056 rm -f core conftest.err conftest.$ac_objext \
12057 conftest$ac_exeext conftest.$ac_ext
12058 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12059
12060 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12061
12062 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"
12063 else
12064 if test "$host_cpu" = ia64; then
12065 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12066 allow_undefined_flag_CXX="-z nodefs"
12067 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"
12068 else
12069 # Determine the default libpath from the value encoded in an
12070 # empty executable.
12071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12072 /* end confdefs.h. */
12073
12074 int
12075 main ()
12076 {
12077
12078 ;
12079 return 0;
12080 }
12081 _ACEOF
12082 if ac_fn_cxx_try_link "$LINENO"; then :
12083
12084 lt_aix_libpath_sed='
12085 /Import File Strings/,/^$/ {
12086 /^0/ {
12087 s/^0 *\(.*\)$/\1/
12088 p
12089 }
12090 }'
12091 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12092 # Check for a 64-bit object if we didn't find anything.
12093 if test -z "$aix_libpath"; then
12094 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12095 fi
12096 fi
12097 rm -f core conftest.err conftest.$ac_objext \
12098 conftest$ac_exeext conftest.$ac_ext
12099 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12100
12101 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12102 # Warning - without using the other run time loading flags,
12103 # -berok will link without error, but may produce a broken library.
12104 no_undefined_flag_CXX=' ${wl}-bernotok'
12105 allow_undefined_flag_CXX=' ${wl}-berok'
12106 if test "$with_gnu_ld" = yes; then
12107 # We only use this code for GNU lds that support --whole-archive.
12108 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12109 else
12110 # Exported symbols can be pulled into shared objects from archives
12111 whole_archive_flag_spec_CXX='$convenience'
12112 fi
12113 archive_cmds_need_lc_CXX=yes
12114 # This is similar to how AIX traditionally builds its shared
12115 # libraries.
12116 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'
12117 fi
12118 fi
12119 ;;
12120
12121 beos*)
12122 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12123 allow_undefined_flag_CXX=unsupported
12124 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12125 # support --undefined. This deserves some investigation. FIXME
12126 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12127 else
12128 ld_shlibs_CXX=no
12129 fi
12130 ;;
12131
12132 chorus*)
12133 case $cc_basename in
12134 *)
12135 # FIXME: insert proper C++ library support
12136 ld_shlibs_CXX=no
12137 ;;
12138 esac
12139 ;;
12140
12141 cygwin* | mingw* | pw32* | cegcc*)
12142 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12143 # as there is no search path for DLLs.
12144 hardcode_libdir_flag_spec_CXX='-L$libdir'
12145 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12146 allow_undefined_flag_CXX=unsupported
12147 always_export_symbols_CXX=no
12148 enable_shared_with_static_runtimes_CXX=yes
12149
12150 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12151 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'
12152 # If the export-symbols file already is a .def file (1st line
12153 # is EXPORTS), use it as is; otherwise, prepend...
12154 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12155 cp $export_symbols $output_objdir/$soname.def;
12156 else
12157 echo EXPORTS > $output_objdir/$soname.def;
12158 cat $export_symbols >> $output_objdir/$soname.def;
12159 fi~
12160 $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'
12161 else
12162 ld_shlibs_CXX=no
12163 fi
12164 ;;
12165 darwin* | rhapsody*)
12166
12167
12168 archive_cmds_need_lc_CXX=no
12169 hardcode_direct_CXX=no
12170 hardcode_automatic_CXX=yes
12171 hardcode_shlibpath_var_CXX=unsupported
12172 if test "$lt_cv_ld_force_load" = "yes"; then
12173 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\"`'
12174 else
12175 whole_archive_flag_spec_CXX=''
12176 fi
12177 link_all_deplibs_CXX=yes
12178 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12179 case $cc_basename in
12180 ifort*) _lt_dar_can_shared=yes ;;
12181 *) _lt_dar_can_shared=$GCC ;;
12182 esac
12183 if test "$_lt_dar_can_shared" = "yes"; then
12184 output_verbose_link_cmd=func_echo_all
12185 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}"
12186 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12187 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}"
12188 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}"
12189 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12190 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}"
12191 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}"
12192 fi
12193
12194 else
12195 ld_shlibs_CXX=no
12196 fi
12197
12198 ;;
12199
12200 dgux*)
12201 case $cc_basename in
12202 ec++*)
12203 # FIXME: insert proper C++ library support
12204 ld_shlibs_CXX=no
12205 ;;
12206 ghcx*)
12207 # Green Hills C++ Compiler
12208 # FIXME: insert proper C++ library support
12209 ld_shlibs_CXX=no
12210 ;;
12211 *)
12212 # FIXME: insert proper C++ library support
12213 ld_shlibs_CXX=no
12214 ;;
12215 esac
12216 ;;
12217
12218 freebsd2.*)
12219 # C++ shared libraries reported to be fairly broken before
12220 # switch to ELF
12221 ld_shlibs_CXX=no
12222 ;;
12223
12224 freebsd-elf*)
12225 archive_cmds_need_lc_CXX=no
12226 ;;
12227
12228 freebsd* | dragonfly*)
12229 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12230 # conventions
12231 ld_shlibs_CXX=yes
12232 ;;
12233
12234 gnu*)
12235 ;;
12236
12237 haiku*)
12238 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12239 link_all_deplibs_CXX=yes
12240 ;;
12241
12242 hpux9*)
12243 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12244 hardcode_libdir_separator_CXX=:
12245 export_dynamic_flag_spec_CXX='${wl}-E'
12246 hardcode_direct_CXX=yes
12247 hardcode_minus_L_CXX=yes # Not in the search PATH,
12248 # but as the default
12249 # location of the library.
12250
12251 case $cc_basename in
12252 CC*)
12253 # FIXME: insert proper C++ library support
12254 ld_shlibs_CXX=no
12255 ;;
12256 aCC*)
12257 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'
12258 # Commands to make compiler produce verbose output that lists
12259 # what "hidden" libraries, object files and flags are used when
12260 # linking a shared library.
12261 #
12262 # There doesn't appear to be a way to prevent this compiler from
12263 # explicitly linking system object files so we need to strip them
12264 # from the output so that they don't get included in the library
12265 # dependencies.
12266 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"'
12267 ;;
12268 *)
12269 if test "$GXX" = yes; then
12270 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12271 else
12272 # FIXME: insert proper C++ library support
12273 ld_shlibs_CXX=no
12274 fi
12275 ;;
12276 esac
12277 ;;
12278
12279 hpux10*|hpux11*)
12280 if test $with_gnu_ld = no; then
12281 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12282 hardcode_libdir_separator_CXX=:
12283
12284 case $host_cpu in
12285 hppa*64*|ia64*)
12286 ;;
12287 *)
12288 export_dynamic_flag_spec_CXX='${wl}-E'
12289 ;;
12290 esac
12291 fi
12292 case $host_cpu in
12293 hppa*64*|ia64*)
12294 hardcode_direct_CXX=no
12295 hardcode_shlibpath_var_CXX=no
12296 ;;
12297 *)
12298 hardcode_direct_CXX=yes
12299 hardcode_direct_absolute_CXX=yes
12300 hardcode_minus_L_CXX=yes # Not in the search PATH,
12301 # but as the default
12302 # location of the library.
12303 ;;
12304 esac
12305
12306 case $cc_basename in
12307 CC*)
12308 # FIXME: insert proper C++ library support
12309 ld_shlibs_CXX=no
12310 ;;
12311 aCC*)
12312 case $host_cpu in
12313 hppa*64*)
12314 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12315 ;;
12316 ia64*)
12317 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12318 ;;
12319 *)
12320 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12321 ;;
12322 esac
12323 # Commands to make compiler produce verbose output that lists
12324 # what "hidden" libraries, object files and flags are used when
12325 # linking a shared library.
12326 #
12327 # There doesn't appear to be a way to prevent this compiler from
12328 # explicitly linking system object files so we need to strip them
12329 # from the output so that they don't get included in the library
12330 # dependencies.
12331 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"'
12332 ;;
12333 *)
12334 if test "$GXX" = yes; then
12335 if test $with_gnu_ld = no; then
12336 case $host_cpu in
12337 hppa*64*)
12338 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12339 ;;
12340 ia64*)
12341 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12342 ;;
12343 *)
12344 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12345 ;;
12346 esac
12347 fi
12348 else
12349 # FIXME: insert proper C++ library support
12350 ld_shlibs_CXX=no
12351 fi
12352 ;;
12353 esac
12354 ;;
12355
12356 interix[3-9]*)
12357 hardcode_direct_CXX=no
12358 hardcode_shlibpath_var_CXX=no
12359 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12360 export_dynamic_flag_spec_CXX='${wl}-E'
12361 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12362 # Instead, shared libraries are loaded at an image base (0x10000000 by
12363 # default) and relocated if they conflict, which is a slow very memory
12364 # consuming and fragmenting process. To avoid this, we pick a random,
12365 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12366 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12367 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'
12368 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'
12369 ;;
12370 irix5* | irix6*)
12371 case $cc_basename in
12372 CC*)
12373 # SGI C++
12374 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'
12375
12376 # Archives containing C++ object files must be created using
12377 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12378 # necessary to make sure instantiated templates are included
12379 # in the archive.
12380 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12381 ;;
12382 *)
12383 if test "$GXX" = yes; then
12384 if test "$with_gnu_ld" = no; then
12385 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12386 else
12387 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12388 fi
12389 fi
12390 link_all_deplibs_CXX=yes
12391 ;;
12392 esac
12393 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12394 hardcode_libdir_separator_CXX=:
12395 inherit_rpath_CXX=yes
12396 ;;
12397
12398 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12399 case $cc_basename in
12400 KCC*)
12401 # Kuck and Associates, Inc. (KAI) C++ Compiler
12402
12403 # KCC will only create a shared library if the output file
12404 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12405 # to its proper name (with version) after linking.
12406 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'
12407 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'
12408 # Commands to make compiler produce verbose output that lists
12409 # what "hidden" libraries, object files and flags are used when
12410 # linking a shared library.
12411 #
12412 # There doesn't appear to be a way to prevent this compiler from
12413 # explicitly linking system object files so we need to strip them
12414 # from the output so that they don't get included in the library
12415 # dependencies.
12416 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"'
12417
12418 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12419 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12420
12421 # Archives containing C++ object files must be created using
12422 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12423 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12424 ;;
12425 icpc* | ecpc* )
12426 # Intel C++
12427 with_gnu_ld=yes
12428 # version 8.0 and above of icpc choke on multiply defined symbols
12429 # if we add $predep_objects and $postdep_objects, however 7.1 and
12430 # earlier do not add the objects themselves.
12431 case `$CC -V 2>&1` in
12432 *"Version 7."*)
12433 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12434 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'
12435 ;;
12436 *) # Version 8.0 or newer
12437 tmp_idyn=
12438 case $host_cpu in
12439 ia64*) tmp_idyn=' -i_dynamic';;
12440 esac
12441 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12442 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'
12443 ;;
12444 esac
12445 archive_cmds_need_lc_CXX=no
12446 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12447 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12448 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12449 ;;
12450 pgCC* | pgcpp*)
12451 # Portland Group C++ compiler
12452 case `$CC -V` in
12453 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12454 prelink_cmds_CXX='tpldir=Template.dir~
12455 rm -rf $tpldir~
12456 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12457 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12458 old_archive_cmds_CXX='tpldir=Template.dir~
12459 rm -rf $tpldir~
12460 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12461 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12462 $RANLIB $oldlib'
12463 archive_cmds_CXX='tpldir=Template.dir~
12464 rm -rf $tpldir~
12465 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12466 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12467 archive_expsym_cmds_CXX='tpldir=Template.dir~
12468 rm -rf $tpldir~
12469 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12470 $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'
12471 ;;
12472 *) # Version 6 and above use weak symbols
12473 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12474 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'
12475 ;;
12476 esac
12477
12478 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12479 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12480 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'
12481 ;;
12482 cxx*)
12483 # Compaq C++
12484 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12485 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'
12486
12487 runpath_var=LD_RUN_PATH
12488 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12489 hardcode_libdir_separator_CXX=:
12490
12491 # Commands to make compiler produce verbose output that lists
12492 # what "hidden" libraries, object files and flags are used when
12493 # linking a shared library.
12494 #
12495 # There doesn't appear to be a way to prevent this compiler from
12496 # explicitly linking system object files so we need to strip them
12497 # from the output so that they don't get included in the library
12498 # dependencies.
12499 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'
12500 ;;
12501 xl* | mpixl* | bgxl*)
12502 # IBM XL 8.0 on PPC, with GNU ld
12503 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12504 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12505 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12506 if test "x$supports_anon_versioning" = xyes; then
12507 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12508 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12509 echo "local: *; };" >> $output_objdir/$libname.ver~
12510 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12511 fi
12512 ;;
12513 *)
12514 case `$CC -V 2>&1 | sed 5q` in
12515 *Sun\ C*)
12516 # Sun C++ 5.9
12517 no_undefined_flag_CXX=' -zdefs'
12518 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12519 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'
12520 hardcode_libdir_flag_spec_CXX='-R$libdir'
12521 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'
12522 compiler_needs_object_CXX=yes
12523
12524 # Not sure whether something based on
12525 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12526 # would be better.
12527 output_verbose_link_cmd='func_echo_all'
12528
12529 # Archives containing C++ object files must be created using
12530 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12531 # necessary to make sure instantiated templates are included
12532 # in the archive.
12533 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12534 ;;
12535 esac
12536 ;;
12537 esac
12538 ;;
12539
12540 lynxos*)
12541 # FIXME: insert proper C++ library support
12542 ld_shlibs_CXX=no
12543 ;;
12544
12545 m88k*)
12546 # FIXME: insert proper C++ library support
12547 ld_shlibs_CXX=no
12548 ;;
12549
12550 mvs*)
12551 case $cc_basename in
12552 cxx*)
12553 # FIXME: insert proper C++ library support
12554 ld_shlibs_CXX=no
12555 ;;
12556 *)
12557 # FIXME: insert proper C++ library support
12558 ld_shlibs_CXX=no
12559 ;;
12560 esac
12561 ;;
12562
12563 netbsd*)
12564 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12565 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12566 wlarc=
12567 hardcode_libdir_flag_spec_CXX='-R$libdir'
12568 hardcode_direct_CXX=yes
12569 hardcode_shlibpath_var_CXX=no
12570 fi
12571 # Workaround some broken pre-1.5 toolchains
12572 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12573 ;;
12574
12575 *nto* | *qnx*)
12576 ld_shlibs_CXX=yes
12577 ;;
12578
12579 openbsd2*)
12580 # C++ shared libraries are fairly broken
12581 ld_shlibs_CXX=no
12582 ;;
12583
12584 openbsd*)
12585 if test -f /usr/libexec/ld.so; then
12586 hardcode_direct_CXX=yes
12587 hardcode_shlibpath_var_CXX=no
12588 hardcode_direct_absolute_CXX=yes
12589 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12590 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12591 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12592 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12593 export_dynamic_flag_spec_CXX='${wl}-E'
12594 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12595 fi
12596 output_verbose_link_cmd=func_echo_all
12597 else
12598 ld_shlibs_CXX=no
12599 fi
12600 ;;
12601
12602 osf3* | osf4* | osf5*)
12603 case $cc_basename in
12604 KCC*)
12605 # Kuck and Associates, Inc. (KAI) C++ Compiler
12606
12607 # KCC will only create a shared library if the output file
12608 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12609 # to its proper name (with version) after linking.
12610 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'
12611
12612 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12613 hardcode_libdir_separator_CXX=:
12614
12615 # Archives containing C++ object files must be created using
12616 # the KAI C++ compiler.
12617 case $host in
12618 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12619 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12620 esac
12621 ;;
12622 RCC*)
12623 # Rational C++ 2.4.1
12624 # FIXME: insert proper C++ library support
12625 ld_shlibs_CXX=no
12626 ;;
12627 cxx*)
12628 case $host in
12629 osf3*)
12630 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12631 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'
12632 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12633 ;;
12634 *)
12635 allow_undefined_flag_CXX=' -expect_unresolved \*'
12636 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'
12637 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12638 echo "-hidden">> $lib.exp~
12639 $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~
12640 $RM $lib.exp'
12641 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12642 ;;
12643 esac
12644
12645 hardcode_libdir_separator_CXX=:
12646
12647 # Commands to make compiler produce verbose output that lists
12648 # what "hidden" libraries, object files and flags are used when
12649 # linking a shared library.
12650 #
12651 # There doesn't appear to be a way to prevent this compiler from
12652 # explicitly linking system object files so we need to strip them
12653 # from the output so that they don't get included in the library
12654 # dependencies.
12655 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"'
12656 ;;
12657 *)
12658 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12659 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12660 case $host in
12661 osf3*)
12662 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'
12663 ;;
12664 *)
12665 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12666 ;;
12667 esac
12668
12669 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12670 hardcode_libdir_separator_CXX=:
12671
12672 # Commands to make compiler produce verbose output that lists
12673 # what "hidden" libraries, object files and flags are used when
12674 # linking a shared library.
12675 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12676
12677 else
12678 # FIXME: insert proper C++ library support
12679 ld_shlibs_CXX=no
12680 fi
12681 ;;
12682 esac
12683 ;;
12684
12685 psos*)
12686 # FIXME: insert proper C++ library support
12687 ld_shlibs_CXX=no
12688 ;;
12689
12690 sunos4*)
12691 case $cc_basename in
12692 CC*)
12693 # Sun C++ 4.x
12694 # FIXME: insert proper C++ library support
12695 ld_shlibs_CXX=no
12696 ;;
12697 lcc*)
12698 # Lucid
12699 # FIXME: insert proper C++ library support
12700 ld_shlibs_CXX=no
12701 ;;
12702 *)
12703 # FIXME: insert proper C++ library support
12704 ld_shlibs_CXX=no
12705 ;;
12706 esac
12707 ;;
12708
12709 solaris*)
12710 case $cc_basename in
12711 CC*)
12712 # Sun C++ 4.2, 5.x and Centerline C++
12713 archive_cmds_need_lc_CXX=yes
12714 no_undefined_flag_CXX=' -zdefs'
12715 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12716 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12717 $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'
12718
12719 hardcode_libdir_flag_spec_CXX='-R$libdir'
12720 hardcode_shlibpath_var_CXX=no
12721 case $host_os in
12722 solaris2.[0-5] | solaris2.[0-5].*) ;;
12723 *)
12724 # The compiler driver will combine and reorder linker options,
12725 # but understands `-z linker_flag'.
12726 # Supported since Solaris 2.6 (maybe 2.5.1?)
12727 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12728 ;;
12729 esac
12730 link_all_deplibs_CXX=yes
12731
12732 output_verbose_link_cmd='func_echo_all'
12733
12734 # Archives containing C++ object files must be created using
12735 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12736 # necessary to make sure instantiated templates are included
12737 # in the archive.
12738 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12739 ;;
12740 gcx*)
12741 # Green Hills C++ Compiler
12742 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12743
12744 # The C++ compiler must be used to create the archive.
12745 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12746 ;;
12747 *)
12748 # GNU C++ compiler with Solaris linker
12749 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12750 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12751 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12752 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12753 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12754 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12755
12756 # Commands to make compiler produce verbose output that lists
12757 # what "hidden" libraries, object files and flags are used when
12758 # linking a shared library.
12759 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12760 else
12761 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12762 # platform.
12763 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12764 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12765 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12766
12767 # Commands to make compiler produce verbose output that lists
12768 # what "hidden" libraries, object files and flags are used when
12769 # linking a shared library.
12770 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12771 fi
12772
12773 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12774 case $host_os in
12775 solaris2.[0-5] | solaris2.[0-5].*) ;;
12776 *)
12777 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12778 ;;
12779 esac
12780 fi
12781 ;;
12782 esac
12783 ;;
12784
12785 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12786 no_undefined_flag_CXX='${wl}-z,text'
12787 archive_cmds_need_lc_CXX=no
12788 hardcode_shlibpath_var_CXX=no
12789 runpath_var='LD_RUN_PATH'
12790
12791 case $cc_basename in
12792 CC*)
12793 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12794 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12795 ;;
12796 *)
12797 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12798 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12799 ;;
12800 esac
12801 ;;
12802
12803 sysv5* | sco3.2v5* | sco5v6*)
12804 # Note: We can NOT use -z defs as we might desire, because we do not
12805 # link with -lc, and that would cause any symbols used from libc to
12806 # always be unresolved, which means just about no library would
12807 # ever link correctly. If we're not using GNU ld we use -z text
12808 # though, which does catch some bad symbols but isn't as heavy-handed
12809 # as -z defs.
12810 no_undefined_flag_CXX='${wl}-z,text'
12811 allow_undefined_flag_CXX='${wl}-z,nodefs'
12812 archive_cmds_need_lc_CXX=no
12813 hardcode_shlibpath_var_CXX=no
12814 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12815 hardcode_libdir_separator_CXX=':'
12816 link_all_deplibs_CXX=yes
12817 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12818 runpath_var='LD_RUN_PATH'
12819
12820 case $cc_basename in
12821 CC*)
12822 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12823 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12824 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
12825 '"$old_archive_cmds_CXX"
12826 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
12827 '"$reload_cmds_CXX"
12828 ;;
12829 *)
12830 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12831 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12832 ;;
12833 esac
12834 ;;
12835
12836 tandem*)
12837 case $cc_basename in
12838 NCC*)
12839 # NonStop-UX NCC 3.20
12840 # FIXME: insert proper C++ library support
12841 ld_shlibs_CXX=no
12842 ;;
12843 *)
12844 # FIXME: insert proper C++ library support
12845 ld_shlibs_CXX=no
12846 ;;
12847 esac
12848 ;;
12849
12850 vxworks*)
12851 # FIXME: insert proper C++ library support
12852 ld_shlibs_CXX=no
12853 ;;
12854
12855 *)
12856 # FIXME: insert proper C++ library support
12857 ld_shlibs_CXX=no
12858 ;;
12859 esac
12860
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12862 $as_echo "$ld_shlibs_CXX" >&6; }
12863 test "$ld_shlibs_CXX" = no && can_build_shared=no
12864
12865 GCC_CXX="$GXX"
12866 LD_CXX="$LD"
12867
12868 ## CAVEAT EMPTOR:
12869 ## There is no encapsulation within the following macros, do not change
12870 ## the running order or otherwise move them around unless you know exactly
12871 ## what you are doing...
12872 # Dependencies to place before and after the object being linked:
12873 predep_objects_CXX=
12874 postdep_objects_CXX=
12875 predeps_CXX=
12876 postdeps_CXX=
12877 compiler_lib_search_path_CXX=
12878
12879 cat > conftest.$ac_ext <<_LT_EOF
12880 class Foo
12881 {
12882 public:
12883 Foo (void) { a = 0; }
12884 private:
12885 int a;
12886 };
12887 _LT_EOF
12888
12889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12890 (eval $ac_compile) 2>&5
12891 ac_status=$?
12892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12893 test $ac_status = 0; }; then
12894 # Parse the compiler output and extract the necessary
12895 # objects, libraries and library flags.
12896
12897 # Sentinel used to keep track of whether or not we are before
12898 # the conftest object file.
12899 pre_test_object_deps_done=no
12900
12901 for p in `eval "$output_verbose_link_cmd"`; do
12902 case $p in
12903
12904 -L* | -R* | -l*)
12905 # Some compilers place space between "-{L,R}" and the path.
12906 # Remove the space.
12907 if test $p = "-L" ||
12908 test $p = "-R"; then
12909 prev=$p
12910 continue
12911 else
12912 prev=
12913 fi
12914
12915 if test "$pre_test_object_deps_done" = no; then
12916 case $p in
12917 -L* | -R*)
12918 # Internal compiler library paths should come after those
12919 # provided the user. The postdeps already come after the
12920 # user supplied libs so there is no need to process them.
12921 if test -z "$compiler_lib_search_path_CXX"; then
12922 compiler_lib_search_path_CXX="${prev}${p}"
12923 else
12924 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12925 fi
12926 ;;
12927 # The "-l" case would never come before the object being
12928 # linked, so don't bother handling this case.
12929 esac
12930 else
12931 if test -z "$postdeps_CXX"; then
12932 postdeps_CXX="${prev}${p}"
12933 else
12934 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12935 fi
12936 fi
12937 ;;
12938
12939 *.$objext)
12940 # This assumes that the test object file only shows up
12941 # once in the compiler output.
12942 if test "$p" = "conftest.$objext"; then
12943 pre_test_object_deps_done=yes
12944 continue
12945 fi
12946
12947 if test "$pre_test_object_deps_done" = no; then
12948 if test -z "$predep_objects_CXX"; then
12949 predep_objects_CXX="$p"
12950 else
12951 predep_objects_CXX="$predep_objects_CXX $p"
12952 fi
12953 else
12954 if test -z "$postdep_objects_CXX"; then
12955 postdep_objects_CXX="$p"
12956 else
12957 postdep_objects_CXX="$postdep_objects_CXX $p"
12958 fi
12959 fi
12960 ;;
12961
12962 *) ;; # Ignore the rest.
12963
12964 esac
12965 done
12966
12967 # Clean up.
12968 rm -f a.out a.exe
12969 else
12970 echo "libtool.m4: error: problem compiling CXX test program"
12971 fi
12972
12973 $RM -f confest.$objext
12974
12975 # PORTME: override above test on systems where it is broken
12976 case $host_os in
12977 interix[3-9]*)
12978 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12979 # hack all around it, let's just trust "g++" to DTRT.
12980 predep_objects_CXX=
12981 postdep_objects_CXX=
12982 postdeps_CXX=
12983 ;;
12984
12985 linux*)
12986 case `$CC -V 2>&1 | sed 5q` in
12987 *Sun\ C*)
12988 # Sun C++ 5.9
12989
12990 # The more standards-conforming stlport4 library is
12991 # incompatible with the Cstd library. Avoid specifying
12992 # it if it's in CXXFLAGS. Ignore libCrun as
12993 # -library=stlport4 depends on it.
12994 case " $CXX $CXXFLAGS " in
12995 *" -library=stlport4 "*)
12996 solaris_use_stlport4=yes
12997 ;;
12998 esac
12999
13000 if test "$solaris_use_stlport4" != yes; then
13001 postdeps_CXX='-library=Cstd -library=Crun'
13002 fi
13003 ;;
13004 esac
13005 ;;
13006
13007 solaris*)
13008 case $cc_basename in
13009 CC*)
13010 # The more standards-conforming stlport4 library is
13011 # incompatible with the Cstd library. Avoid specifying
13012 # it if it's in CXXFLAGS. Ignore libCrun as
13013 # -library=stlport4 depends on it.
13014 case " $CXX $CXXFLAGS " in
13015 *" -library=stlport4 "*)
13016 solaris_use_stlport4=yes
13017 ;;
13018 esac
13019
13020 # Adding this requires a known-good setup of shared libraries for
13021 # Sun compiler versions before 5.6, else PIC objects from an old
13022 # archive will be linked into the output, leading to subtle bugs.
13023 if test "$solaris_use_stlport4" != yes; then
13024 postdeps_CXX='-library=Cstd -library=Crun'
13025 fi
13026 ;;
13027 esac
13028 ;;
13029 esac
13030
13031
13032 case " $postdeps_CXX " in
13033 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13034 esac
13035 compiler_lib_search_dirs_CXX=
13036 if test -n "${compiler_lib_search_path_CXX}"; then
13037 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13038 fi
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070 lt_prog_compiler_wl_CXX=
13071 lt_prog_compiler_pic_CXX=
13072 lt_prog_compiler_static_CXX=
13073
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13075 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13076
13077 # C++ specific cases for pic, static, wl, etc.
13078 if test "$GXX" = yes; then
13079 lt_prog_compiler_wl_CXX='-Wl,'
13080 lt_prog_compiler_static_CXX='-static'
13081
13082 case $host_os in
13083 aix*)
13084 # All AIX code is PIC.
13085 if test "$host_cpu" = ia64; then
13086 # AIX 5 now supports IA64 processor
13087 lt_prog_compiler_static_CXX='-Bstatic'
13088 fi
13089 lt_prog_compiler_pic_CXX='-fPIC'
13090 ;;
13091
13092 amigaos*)
13093 case $host_cpu in
13094 powerpc)
13095 # see comment about AmigaOS4 .so support
13096 lt_prog_compiler_pic_CXX='-fPIC'
13097 ;;
13098 m68k)
13099 # FIXME: we need at least 68020 code to build shared libraries, but
13100 # adding the `-m68020' flag to GCC prevents building anything better,
13101 # like `-m68040'.
13102 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13103 ;;
13104 esac
13105 ;;
13106
13107 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13108 # PIC is the default for these OSes.
13109 ;;
13110 mingw* | cygwin* | os2* | pw32* | cegcc*)
13111 # This hack is so that the source file can tell whether it is being
13112 # built for inclusion in a dll (and should export symbols for example).
13113 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13114 # (--disable-auto-import) libraries
13115 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13116 ;;
13117 darwin* | rhapsody*)
13118 # PIC is the default on this platform
13119 # Common symbols not allowed in MH_DYLIB files
13120 lt_prog_compiler_pic_CXX='-fno-common'
13121 ;;
13122 *djgpp*)
13123 # DJGPP does not support shared libraries at all
13124 lt_prog_compiler_pic_CXX=
13125 ;;
13126 haiku*)
13127 # PIC is the default for Haiku.
13128 # The "-static" flag exists, but is broken.
13129 lt_prog_compiler_static_CXX=
13130 ;;
13131 interix[3-9]*)
13132 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13133 # Instead, we relocate shared libraries at runtime.
13134 ;;
13135 sysv4*MP*)
13136 if test -d /usr/nec; then
13137 lt_prog_compiler_pic_CXX=-Kconform_pic
13138 fi
13139 ;;
13140 hpux*)
13141 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13142 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13143 # sets the default TLS model and affects inlining.
13144 case $host_cpu in
13145 hppa*64*)
13146 ;;
13147 *)
13148 lt_prog_compiler_pic_CXX='-fPIC'
13149 ;;
13150 esac
13151 ;;
13152 *qnx* | *nto*)
13153 # QNX uses GNU C++, but need to define -shared option too, otherwise
13154 # it will coredump.
13155 lt_prog_compiler_pic_CXX='-fPIC -shared'
13156 ;;
13157 *)
13158 lt_prog_compiler_pic_CXX='-fPIC'
13159 ;;
13160 esac
13161 else
13162 case $host_os in
13163 aix[4-9]*)
13164 # All AIX code is PIC.
13165 if test "$host_cpu" = ia64; then
13166 # AIX 5 now supports IA64 processor
13167 lt_prog_compiler_static_CXX='-Bstatic'
13168 else
13169 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13170 fi
13171 ;;
13172 chorus*)
13173 case $cc_basename in
13174 cxch68*)
13175 # Green Hills C++ Compiler
13176 # _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"
13177 ;;
13178 esac
13179 ;;
13180 dgux*)
13181 case $cc_basename in
13182 ec++*)
13183 lt_prog_compiler_pic_CXX='-KPIC'
13184 ;;
13185 ghcx*)
13186 # Green Hills C++ Compiler
13187 lt_prog_compiler_pic_CXX='-pic'
13188 ;;
13189 *)
13190 ;;
13191 esac
13192 ;;
13193 freebsd* | dragonfly*)
13194 # FreeBSD uses GNU C++
13195 ;;
13196 hpux9* | hpux10* | hpux11*)
13197 case $cc_basename in
13198 CC*)
13199 lt_prog_compiler_wl_CXX='-Wl,'
13200 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13201 if test "$host_cpu" != ia64; then
13202 lt_prog_compiler_pic_CXX='+Z'
13203 fi
13204 ;;
13205 aCC*)
13206 lt_prog_compiler_wl_CXX='-Wl,'
13207 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13208 case $host_cpu in
13209 hppa*64*|ia64*)
13210 # +Z the default
13211 ;;
13212 *)
13213 lt_prog_compiler_pic_CXX='+Z'
13214 ;;
13215 esac
13216 ;;
13217 *)
13218 ;;
13219 esac
13220 ;;
13221 interix*)
13222 # This is c89, which is MS Visual C++ (no shared libs)
13223 # Anyone wants to do a port?
13224 ;;
13225 irix5* | irix6* | nonstopux*)
13226 case $cc_basename in
13227 CC*)
13228 lt_prog_compiler_wl_CXX='-Wl,'
13229 lt_prog_compiler_static_CXX='-non_shared'
13230 # CC pic flag -KPIC is the default.
13231 ;;
13232 *)
13233 ;;
13234 esac
13235 ;;
13236 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13237 case $cc_basename in
13238 KCC*)
13239 # KAI C++ Compiler
13240 lt_prog_compiler_wl_CXX='--backend -Wl,'
13241 lt_prog_compiler_pic_CXX='-fPIC'
13242 ;;
13243 ecpc* )
13244 # old Intel C++ for x86_64 which still supported -KPIC.
13245 lt_prog_compiler_wl_CXX='-Wl,'
13246 lt_prog_compiler_pic_CXX='-KPIC'
13247 lt_prog_compiler_static_CXX='-static'
13248 ;;
13249 icpc* )
13250 # Intel C++, used to be incompatible with GCC.
13251 # ICC 10 doesn't accept -KPIC any more.
13252 lt_prog_compiler_wl_CXX='-Wl,'
13253 lt_prog_compiler_pic_CXX='-fPIC'
13254 lt_prog_compiler_static_CXX='-static'
13255 ;;
13256 pgCC* | pgcpp*)
13257 # Portland Group C++ compiler
13258 lt_prog_compiler_wl_CXX='-Wl,'
13259 lt_prog_compiler_pic_CXX='-fpic'
13260 lt_prog_compiler_static_CXX='-Bstatic'
13261 ;;
13262 cxx*)
13263 # Compaq C++
13264 # Make sure the PIC flag is empty. It appears that all Alpha
13265 # Linux and Compaq Tru64 Unix objects are PIC.
13266 lt_prog_compiler_pic_CXX=
13267 lt_prog_compiler_static_CXX='-non_shared'
13268 ;;
13269 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13270 # IBM XL 8.0, 9.0 on PPC and BlueGene
13271 lt_prog_compiler_wl_CXX='-Wl,'
13272 lt_prog_compiler_pic_CXX='-qpic'
13273 lt_prog_compiler_static_CXX='-qstaticlink'
13274 ;;
13275 *)
13276 case `$CC -V 2>&1 | sed 5q` in
13277 *Sun\ C*)
13278 # Sun C++ 5.9
13279 lt_prog_compiler_pic_CXX='-KPIC'
13280 lt_prog_compiler_static_CXX='-Bstatic'
13281 lt_prog_compiler_wl_CXX='-Qoption ld '
13282 ;;
13283 esac
13284 ;;
13285 esac
13286 ;;
13287 lynxos*)
13288 ;;
13289 m88k*)
13290 ;;
13291 mvs*)
13292 case $cc_basename in
13293 cxx*)
13294 lt_prog_compiler_pic_CXX='-W c,exportall'
13295 ;;
13296 *)
13297 ;;
13298 esac
13299 ;;
13300 netbsd*)
13301 ;;
13302 *qnx* | *nto*)
13303 # QNX uses GNU C++, but need to define -shared option too, otherwise
13304 # it will coredump.
13305 lt_prog_compiler_pic_CXX='-fPIC -shared'
13306 ;;
13307 osf3* | osf4* | osf5*)
13308 case $cc_basename in
13309 KCC*)
13310 lt_prog_compiler_wl_CXX='--backend -Wl,'
13311 ;;
13312 RCC*)
13313 # Rational C++ 2.4.1
13314 lt_prog_compiler_pic_CXX='-pic'
13315 ;;
13316 cxx*)
13317 # Digital/Compaq C++
13318 lt_prog_compiler_wl_CXX='-Wl,'
13319 # Make sure the PIC flag is empty. It appears that all Alpha
13320 # Linux and Compaq Tru64 Unix objects are PIC.
13321 lt_prog_compiler_pic_CXX=
13322 lt_prog_compiler_static_CXX='-non_shared'
13323 ;;
13324 *)
13325 ;;
13326 esac
13327 ;;
13328 psos*)
13329 ;;
13330 solaris*)
13331 case $cc_basename in
13332 CC*)
13333 # Sun C++ 4.2, 5.x and Centerline C++
13334 lt_prog_compiler_pic_CXX='-KPIC'
13335 lt_prog_compiler_static_CXX='-Bstatic'
13336 lt_prog_compiler_wl_CXX='-Qoption ld '
13337 ;;
13338 gcx*)
13339 # Green Hills C++ Compiler
13340 lt_prog_compiler_pic_CXX='-PIC'
13341 ;;
13342 *)
13343 ;;
13344 esac
13345 ;;
13346 sunos4*)
13347 case $cc_basename in
13348 CC*)
13349 # Sun C++ 4.x
13350 lt_prog_compiler_pic_CXX='-pic'
13351 lt_prog_compiler_static_CXX='-Bstatic'
13352 ;;
13353 lcc*)
13354 # Lucid
13355 lt_prog_compiler_pic_CXX='-pic'
13356 ;;
13357 *)
13358 ;;
13359 esac
13360 ;;
13361 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13362 case $cc_basename in
13363 CC*)
13364 lt_prog_compiler_wl_CXX='-Wl,'
13365 lt_prog_compiler_pic_CXX='-KPIC'
13366 lt_prog_compiler_static_CXX='-Bstatic'
13367 ;;
13368 esac
13369 ;;
13370 tandem*)
13371 case $cc_basename in
13372 NCC*)
13373 # NonStop-UX NCC 3.20
13374 lt_prog_compiler_pic_CXX='-KPIC'
13375 ;;
13376 *)
13377 ;;
13378 esac
13379 ;;
13380 vxworks*)
13381 ;;
13382 *)
13383 lt_prog_compiler_can_build_shared_CXX=no
13384 ;;
13385 esac
13386 fi
13387
13388 case $host_os in
13389 # For platforms which do not support PIC, -DPIC is meaningless:
13390 *djgpp*)
13391 lt_prog_compiler_pic_CXX=
13392 ;;
13393 *)
13394 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13395 ;;
13396 esac
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13398 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13399
13400
13401
13402 #
13403 # Check to make sure the PIC flag actually works.
13404 #
13405 if test -n "$lt_prog_compiler_pic_CXX"; then
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13407 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13408 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13409 $as_echo_n "(cached) " >&6
13410 else
13411 lt_cv_prog_compiler_pic_works_CXX=no
13412 ac_outfile=conftest.$ac_objext
13413 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13414 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13415 # Insert the option either (1) after the last *FLAGS variable, or
13416 # (2) before a word containing "conftest.", or (3) at the end.
13417 # Note that $ac_compile itself does not contain backslashes and begins
13418 # with a dollar sign (not a hyphen), so the echo should work correctly.
13419 # The option is referenced via a variable to avoid confusing sed.
13420 lt_compile=`echo "$ac_compile" | $SED \
13421 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13422 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13423 -e 's:$: $lt_compiler_flag:'`
13424 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13425 (eval "$lt_compile" 2>conftest.err)
13426 ac_status=$?
13427 cat conftest.err >&5
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 if (exit $ac_status) && test -s "$ac_outfile"; then
13430 # The compiler can only warn and ignore the option if not recognized
13431 # So say no if there are warnings other than the usual output.
13432 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13433 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13434 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13435 lt_cv_prog_compiler_pic_works_CXX=yes
13436 fi
13437 fi
13438 $RM conftest*
13439
13440 fi
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13442 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13443
13444 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13445 case $lt_prog_compiler_pic_CXX in
13446 "" | " "*) ;;
13447 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13448 esac
13449 else
13450 lt_prog_compiler_pic_CXX=
13451 lt_prog_compiler_can_build_shared_CXX=no
13452 fi
13453
13454 fi
13455
13456
13457
13458 #
13459 # Check to make sure the static flag actually works.
13460 #
13461 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13463 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13464 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13465 $as_echo_n "(cached) " >&6
13466 else
13467 lt_cv_prog_compiler_static_works_CXX=no
13468 save_LDFLAGS="$LDFLAGS"
13469 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13470 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13471 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13472 # The linker can only warn and ignore the option if not recognized
13473 # So say no if there are warnings
13474 if test -s conftest.err; then
13475 # Append any errors to the config.log.
13476 cat conftest.err 1>&5
13477 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13478 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13479 if diff conftest.exp conftest.er2 >/dev/null; then
13480 lt_cv_prog_compiler_static_works_CXX=yes
13481 fi
13482 else
13483 lt_cv_prog_compiler_static_works_CXX=yes
13484 fi
13485 fi
13486 $RM -r conftest*
13487 LDFLAGS="$save_LDFLAGS"
13488
13489 fi
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13491 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13492
13493 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13494 :
13495 else
13496 lt_prog_compiler_static_CXX=
13497 fi
13498
13499
13500
13501
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13503 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13504 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13505 $as_echo_n "(cached) " >&6
13506 else
13507 lt_cv_prog_compiler_c_o_CXX=no
13508 $RM -r conftest 2>/dev/null
13509 mkdir conftest
13510 cd conftest
13511 mkdir out
13512 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13513
13514 lt_compiler_flag="-o out/conftest2.$ac_objext"
13515 # Insert the option either (1) after the last *FLAGS variable, or
13516 # (2) before a word containing "conftest.", or (3) at the end.
13517 # Note that $ac_compile itself does not contain backslashes and begins
13518 # with a dollar sign (not a hyphen), so the echo should work correctly.
13519 lt_compile=`echo "$ac_compile" | $SED \
13520 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13521 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13522 -e 's:$: $lt_compiler_flag:'`
13523 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13524 (eval "$lt_compile" 2>out/conftest.err)
13525 ac_status=$?
13526 cat out/conftest.err >&5
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13529 then
13530 # The compiler can only warn and ignore the option if not recognized
13531 # So say no if there are warnings
13532 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13533 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13534 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13535 lt_cv_prog_compiler_c_o_CXX=yes
13536 fi
13537 fi
13538 chmod u+w . 2>&5
13539 $RM conftest*
13540 # SGI C++ compiler will create directory out/ii_files/ for
13541 # template instantiation
13542 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13543 $RM out/* && rmdir out
13544 cd ..
13545 $RM -r conftest
13546 $RM conftest*
13547
13548 fi
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13550 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13551
13552
13553
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13555 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13556 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13557 $as_echo_n "(cached) " >&6
13558 else
13559 lt_cv_prog_compiler_c_o_CXX=no
13560 $RM -r conftest 2>/dev/null
13561 mkdir conftest
13562 cd conftest
13563 mkdir out
13564 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13565
13566 lt_compiler_flag="-o out/conftest2.$ac_objext"
13567 # Insert the option either (1) after the last *FLAGS variable, or
13568 # (2) before a word containing "conftest.", or (3) at the end.
13569 # Note that $ac_compile itself does not contain backslashes and begins
13570 # with a dollar sign (not a hyphen), so the echo should work correctly.
13571 lt_compile=`echo "$ac_compile" | $SED \
13572 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13573 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13574 -e 's:$: $lt_compiler_flag:'`
13575 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13576 (eval "$lt_compile" 2>out/conftest.err)
13577 ac_status=$?
13578 cat out/conftest.err >&5
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13581 then
13582 # The compiler can only warn and ignore the option if not recognized
13583 # So say no if there are warnings
13584 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13585 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13586 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13587 lt_cv_prog_compiler_c_o_CXX=yes
13588 fi
13589 fi
13590 chmod u+w . 2>&5
13591 $RM conftest*
13592 # SGI C++ compiler will create directory out/ii_files/ for
13593 # template instantiation
13594 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13595 $RM out/* && rmdir out
13596 cd ..
13597 $RM -r conftest
13598 $RM conftest*
13599
13600 fi
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13602 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13603
13604
13605
13606
13607 hard_links="nottested"
13608 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13609 # do not overwrite the value of need_locks provided by the user
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13611 $as_echo_n "checking if we can lock with hard links... " >&6; }
13612 hard_links=yes
13613 $RM conftest*
13614 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13615 touch conftest.a
13616 ln conftest.a conftest.b 2>&5 || hard_links=no
13617 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13619 $as_echo "$hard_links" >&6; }
13620 if test "$hard_links" = no; then
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13622 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13623 need_locks=warn
13624 fi
13625 else
13626 need_locks=no
13627 fi
13628
13629
13630
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13632 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13633
13634 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13635 case $host_os in
13636 aix[4-9]*)
13637 # If we're using GNU nm, then we don't want the "-C" option.
13638 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13639 # Also, AIX nm treats weak defined symbols like other global defined
13640 # symbols, whereas GNU nm marks them as "W".
13641 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13642 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'
13643 else
13644 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13645 fi
13646 ;;
13647 pw32*)
13648 export_symbols_cmds_CXX="$ltdll_cmds"
13649 ;;
13650 cygwin* | mingw* | cegcc*)
13651 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13652 ;;
13653 *)
13654 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13655 ;;
13656 esac
13657 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13658
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13660 $as_echo "$ld_shlibs_CXX" >&6; }
13661 test "$ld_shlibs_CXX" = no && can_build_shared=no
13662
13663 with_gnu_ld_CXX=$with_gnu_ld
13664
13665
13666
13667
13668
13669
13670 #
13671 # Do we need to explicitly link libc?
13672 #
13673 case "x$archive_cmds_need_lc_CXX" in
13674 x|xyes)
13675 # Assume -lc should be added
13676 archive_cmds_need_lc_CXX=yes
13677
13678 if test "$enable_shared" = yes && test "$GCC" = yes; then
13679 case $archive_cmds_CXX in
13680 *'~'*)
13681 # FIXME: we may have to deal with multi-command sequences.
13682 ;;
13683 '$CC '*)
13684 # Test whether the compiler implicitly links with -lc since on some
13685 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13686 # to ld, don't add -lc before -lgcc.
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13688 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13689 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
13690 $as_echo_n "(cached) " >&6
13691 else
13692 $RM conftest*
13693 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13694
13695 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13696 (eval $ac_compile) 2>&5
13697 ac_status=$?
13698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13699 test $ac_status = 0; } 2>conftest.err; then
13700 soname=conftest
13701 lib=conftest
13702 libobjs=conftest.$ac_objext
13703 deplibs=
13704 wl=$lt_prog_compiler_wl_CXX
13705 pic_flag=$lt_prog_compiler_pic_CXX
13706 compiler_flags=-v
13707 linker_flags=-v
13708 verstring=
13709 output_objdir=.
13710 libname=conftest
13711 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13712 allow_undefined_flag_CXX=
13713 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13714 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13715 ac_status=$?
13716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13717 test $ac_status = 0; }
13718 then
13719 lt_cv_archive_cmds_need_lc_CXX=no
13720 else
13721 lt_cv_archive_cmds_need_lc_CXX=yes
13722 fi
13723 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13724 else
13725 cat conftest.err 1>&5
13726 fi
13727 $RM conftest*
13728
13729 fi
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13731 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13732 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13733 ;;
13734 esac
13735 fi
13736 ;;
13737 esac
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13803 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13804
13805 library_names_spec=
13806 libname_spec='lib$name'
13807 soname_spec=
13808 shrext_cmds=".so"
13809 postinstall_cmds=
13810 postuninstall_cmds=
13811 finish_cmds=
13812 finish_eval=
13813 shlibpath_var=
13814 shlibpath_overrides_runpath=unknown
13815 version_type=none
13816 dynamic_linker="$host_os ld.so"
13817 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13818 need_lib_prefix=unknown
13819 hardcode_into_libs=no
13820
13821 # when you set need_version to no, make sure it does not cause -set_version
13822 # flags to be left without arguments
13823 need_version=unknown
13824
13825 case $host_os in
13826 aix3*)
13827 version_type=linux
13828 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13829 shlibpath_var=LIBPATH
13830
13831 # AIX 3 has no versioning support, so we append a major version to the name.
13832 soname_spec='${libname}${release}${shared_ext}$major'
13833 ;;
13834
13835 aix[4-9]*)
13836 version_type=linux
13837 need_lib_prefix=no
13838 need_version=no
13839 hardcode_into_libs=yes
13840 if test "$host_cpu" = ia64; then
13841 # AIX 5 supports IA64
13842 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13843 shlibpath_var=LD_LIBRARY_PATH
13844 else
13845 # With GCC up to 2.95.x, collect2 would create an import file
13846 # for dependence libraries. The import file would start with
13847 # the line `#! .'. This would cause the generated library to
13848 # depend on `.', always an invalid library. This was fixed in
13849 # development snapshots of GCC prior to 3.0.
13850 case $host_os in
13851 aix4 | aix4.[01] | aix4.[01].*)
13852 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13853 echo ' yes '
13854 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13855 :
13856 else
13857 can_build_shared=no
13858 fi
13859 ;;
13860 esac
13861 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13862 # soname into executable. Probably we can add versioning support to
13863 # collect2, so additional links can be useful in future.
13864 if test "$aix_use_runtimelinking" = yes; then
13865 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13866 # instead of lib<name>.a to let people know that these are not
13867 # typical AIX shared libraries.
13868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13869 else
13870 # We preserve .a as extension for shared libraries through AIX4.2
13871 # and later when we are not doing run time linking.
13872 library_names_spec='${libname}${release}.a $libname.a'
13873 soname_spec='${libname}${release}${shared_ext}$major'
13874 fi
13875 shlibpath_var=LIBPATH
13876 fi
13877 ;;
13878
13879 amigaos*)
13880 case $host_cpu in
13881 powerpc)
13882 # Since July 2007 AmigaOS4 officially supports .so libraries.
13883 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13885 ;;
13886 m68k)
13887 library_names_spec='$libname.ixlibrary $libname.a'
13888 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13889 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'
13890 ;;
13891 esac
13892 ;;
13893
13894 beos*)
13895 library_names_spec='${libname}${shared_ext}'
13896 dynamic_linker="$host_os ld.so"
13897 shlibpath_var=LIBRARY_PATH
13898 ;;
13899
13900 bsdi[45]*)
13901 version_type=linux
13902 need_version=no
13903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13904 soname_spec='${libname}${release}${shared_ext}$major'
13905 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13906 shlibpath_var=LD_LIBRARY_PATH
13907 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13908 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13909 # the default ld.so.conf also contains /usr/contrib/lib and
13910 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13911 # libtool to hard-code these into programs
13912 ;;
13913
13914 cygwin* | mingw* | pw32* | cegcc*)
13915 version_type=windows
13916 shrext_cmds=".dll"
13917 need_version=no
13918 need_lib_prefix=no
13919
13920 case $GCC,$host_os in
13921 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13922 library_names_spec='$libname.dll.a'
13923 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13924 postinstall_cmds='base_file=`basename \${file}`~
13925 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13926 dldir=$destdir/`dirname \$dlpath`~
13927 test -d \$dldir || mkdir -p \$dldir~
13928 $install_prog $dir/$dlname \$dldir/$dlname~
13929 chmod a+x \$dldir/$dlname~
13930 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13931 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13932 fi'
13933 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13934 dlpath=$dir/\$dldll~
13935 $RM \$dlpath'
13936 shlibpath_overrides_runpath=yes
13937
13938 case $host_os in
13939 cygwin*)
13940 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13941 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13942
13943 ;;
13944 mingw* | cegcc*)
13945 # MinGW DLLs use traditional 'lib' prefix
13946 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13947 ;;
13948 pw32*)
13949 # pw32 DLLs use 'pw' prefix rather than 'lib'
13950 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13951 ;;
13952 esac
13953 ;;
13954
13955 *)
13956 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13957 ;;
13958 esac
13959 dynamic_linker='Win32 ld.exe'
13960 # FIXME: first we should search . and the directory the executable is in
13961 shlibpath_var=PATH
13962 ;;
13963
13964 darwin* | rhapsody*)
13965 dynamic_linker="$host_os dyld"
13966 version_type=darwin
13967 need_lib_prefix=no
13968 need_version=no
13969 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13970 soname_spec='${libname}${release}${major}$shared_ext'
13971 shlibpath_overrides_runpath=yes
13972 shlibpath_var=DYLD_LIBRARY_PATH
13973 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13974
13975 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13976 ;;
13977
13978 dgux*)
13979 version_type=linux
13980 need_lib_prefix=no
13981 need_version=no
13982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13983 soname_spec='${libname}${release}${shared_ext}$major'
13984 shlibpath_var=LD_LIBRARY_PATH
13985 ;;
13986
13987 freebsd* | dragonfly*)
13988 # DragonFly does not have aout. When/if they implement a new
13989 # versioning mechanism, adjust this.
13990 if test -x /usr/bin/objformat; then
13991 objformat=`/usr/bin/objformat`
13992 else
13993 case $host_os in
13994 freebsd[23].*) objformat=aout ;;
13995 *) objformat=elf ;;
13996 esac
13997 fi
13998 version_type=freebsd-$objformat
13999 case $version_type in
14000 freebsd-elf*)
14001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14002 need_version=no
14003 need_lib_prefix=no
14004 ;;
14005 freebsd-*)
14006 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14007 need_version=yes
14008 ;;
14009 esac
14010 shlibpath_var=LD_LIBRARY_PATH
14011 case $host_os in
14012 freebsd2.*)
14013 shlibpath_overrides_runpath=yes
14014 ;;
14015 freebsd3.[01]* | freebsdelf3.[01]*)
14016 shlibpath_overrides_runpath=yes
14017 hardcode_into_libs=yes
14018 ;;
14019 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14020 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14021 shlibpath_overrides_runpath=no
14022 hardcode_into_libs=yes
14023 ;;
14024 *) # from 4.6 on, and DragonFly
14025 shlibpath_overrides_runpath=yes
14026 hardcode_into_libs=yes
14027 ;;
14028 esac
14029 ;;
14030
14031 gnu*)
14032 version_type=linux
14033 need_lib_prefix=no
14034 need_version=no
14035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14036 soname_spec='${libname}${release}${shared_ext}$major'
14037 shlibpath_var=LD_LIBRARY_PATH
14038 hardcode_into_libs=yes
14039 ;;
14040
14041 haiku*)
14042 version_type=linux
14043 need_lib_prefix=no
14044 need_version=no
14045 dynamic_linker="$host_os runtime_loader"
14046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14047 soname_spec='${libname}${release}${shared_ext}$major'
14048 shlibpath_var=LIBRARY_PATH
14049 shlibpath_overrides_runpath=yes
14050 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14051 hardcode_into_libs=yes
14052 ;;
14053
14054 hpux9* | hpux10* | hpux11*)
14055 # Give a soname corresponding to the major version so that dld.sl refuses to
14056 # link against other versions.
14057 version_type=sunos
14058 need_lib_prefix=no
14059 need_version=no
14060 case $host_cpu in
14061 ia64*)
14062 shrext_cmds='.so'
14063 hardcode_into_libs=yes
14064 dynamic_linker="$host_os dld.so"
14065 shlibpath_var=LD_LIBRARY_PATH
14066 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14068 soname_spec='${libname}${release}${shared_ext}$major'
14069 if test "X$HPUX_IA64_MODE" = X32; then
14070 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14071 else
14072 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14073 fi
14074 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14075 ;;
14076 hppa*64*)
14077 shrext_cmds='.sl'
14078 hardcode_into_libs=yes
14079 dynamic_linker="$host_os dld.sl"
14080 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14081 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14083 soname_spec='${libname}${release}${shared_ext}$major'
14084 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14085 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14086 ;;
14087 *)
14088 shrext_cmds='.sl'
14089 dynamic_linker="$host_os dld.sl"
14090 shlibpath_var=SHLIB_PATH
14091 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14093 soname_spec='${libname}${release}${shared_ext}$major'
14094 ;;
14095 esac
14096 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14097 postinstall_cmds='chmod 555 $lib'
14098 # or fails outright, so override atomically:
14099 install_override_mode=555
14100 ;;
14101
14102 interix[3-9]*)
14103 version_type=linux
14104 need_lib_prefix=no
14105 need_version=no
14106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14107 soname_spec='${libname}${release}${shared_ext}$major'
14108 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14109 shlibpath_var=LD_LIBRARY_PATH
14110 shlibpath_overrides_runpath=no
14111 hardcode_into_libs=yes
14112 ;;
14113
14114 irix5* | irix6* | nonstopux*)
14115 case $host_os in
14116 nonstopux*) version_type=nonstopux ;;
14117 *)
14118 if test "$lt_cv_prog_gnu_ld" = yes; then
14119 version_type=linux
14120 else
14121 version_type=irix
14122 fi ;;
14123 esac
14124 need_lib_prefix=no
14125 need_version=no
14126 soname_spec='${libname}${release}${shared_ext}$major'
14127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14128 case $host_os in
14129 irix5* | nonstopux*)
14130 libsuff= shlibsuff=
14131 ;;
14132 *)
14133 case $LD in # libtool.m4 will add one of these switches to LD
14134 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14135 libsuff= shlibsuff= libmagic=32-bit;;
14136 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14137 libsuff=32 shlibsuff=N32 libmagic=N32;;
14138 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14139 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14140 *) libsuff= shlibsuff= libmagic=never-match;;
14141 esac
14142 ;;
14143 esac
14144 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14145 shlibpath_overrides_runpath=no
14146 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14147 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14148 hardcode_into_libs=yes
14149 ;;
14150
14151 # No shared lib support for Linux oldld, aout, or coff.
14152 linux*oldld* | linux*aout* | linux*coff*)
14153 dynamic_linker=no
14154 ;;
14155
14156 # This must be Linux ELF.
14157
14158 # uclinux* changes (here and below) have been submitted to the libtool
14159 # project, but have not yet been accepted: they are GCC-local changes
14160 # for the time being. (See
14161 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14162 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14163 version_type=linux
14164 need_lib_prefix=no
14165 need_version=no
14166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14167 soname_spec='${libname}${release}${shared_ext}$major'
14168 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14169 shlibpath_var=LD_LIBRARY_PATH
14170 shlibpath_overrides_runpath=no
14171
14172 # Some binutils ld are patched to set DT_RUNPATH
14173 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14174 $as_echo_n "(cached) " >&6
14175 else
14176 lt_cv_shlibpath_overrides_runpath=no
14177 save_LDFLAGS=$LDFLAGS
14178 save_libdir=$libdir
14179 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14180 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14182 /* end confdefs.h. */
14183
14184 int
14185 main ()
14186 {
14187
14188 ;
14189 return 0;
14190 }
14191 _ACEOF
14192 if ac_fn_cxx_try_link "$LINENO"; then :
14193 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14194 lt_cv_shlibpath_overrides_runpath=yes
14195 fi
14196 fi
14197 rm -f core conftest.err conftest.$ac_objext \
14198 conftest$ac_exeext conftest.$ac_ext
14199 LDFLAGS=$save_LDFLAGS
14200 libdir=$save_libdir
14201
14202 fi
14203
14204 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14205
14206 # This implies no fast_install, which is unacceptable.
14207 # Some rework will be needed to allow for fast_install
14208 # before this can be enabled.
14209 hardcode_into_libs=yes
14210
14211 # Append ld.so.conf contents to the search path
14212 if test -f /etc/ld.so.conf; then
14213 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' ' '`
14214 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14215 fi
14216
14217 # We used to test for /lib/ld.so.1 and disable shared libraries on
14218 # powerpc, because MkLinux only supported shared libraries with the
14219 # GNU dynamic linker. Since this was broken with cross compilers,
14220 # most powerpc-linux boxes support dynamic linking these days and
14221 # people can always --disable-shared, the test was removed, and we
14222 # assume the GNU/Linux dynamic linker is in use.
14223 dynamic_linker='GNU/Linux ld.so'
14224 ;;
14225
14226 netbsd*)
14227 version_type=sunos
14228 need_lib_prefix=no
14229 need_version=no
14230 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14232 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14233 dynamic_linker='NetBSD (a.out) ld.so'
14234 else
14235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14236 soname_spec='${libname}${release}${shared_ext}$major'
14237 dynamic_linker='NetBSD ld.elf_so'
14238 fi
14239 shlibpath_var=LD_LIBRARY_PATH
14240 shlibpath_overrides_runpath=yes
14241 hardcode_into_libs=yes
14242 ;;
14243
14244 newsos6)
14245 version_type=linux
14246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14247 shlibpath_var=LD_LIBRARY_PATH
14248 shlibpath_overrides_runpath=yes
14249 ;;
14250
14251 *nto* | *qnx*)
14252 version_type=qnx
14253 need_lib_prefix=no
14254 need_version=no
14255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14256 soname_spec='${libname}${release}${shared_ext}$major'
14257 shlibpath_var=LD_LIBRARY_PATH
14258 shlibpath_overrides_runpath=no
14259 hardcode_into_libs=yes
14260 dynamic_linker='ldqnx.so'
14261 ;;
14262
14263 openbsd*)
14264 version_type=sunos
14265 sys_lib_dlsearch_path_spec="/usr/lib"
14266 need_lib_prefix=no
14267 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14268 case $host_os in
14269 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14270 *) need_version=no ;;
14271 esac
14272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14273 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14274 shlibpath_var=LD_LIBRARY_PATH
14275 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14276 case $host_os in
14277 openbsd2.[89] | openbsd2.[89].*)
14278 shlibpath_overrides_runpath=no
14279 ;;
14280 *)
14281 shlibpath_overrides_runpath=yes
14282 ;;
14283 esac
14284 else
14285 shlibpath_overrides_runpath=yes
14286 fi
14287 ;;
14288
14289 os2*)
14290 libname_spec='$name'
14291 shrext_cmds=".dll"
14292 need_lib_prefix=no
14293 library_names_spec='$libname${shared_ext} $libname.a'
14294 dynamic_linker='OS/2 ld.exe'
14295 shlibpath_var=LIBPATH
14296 ;;
14297
14298 osf3* | osf4* | osf5*)
14299 version_type=osf
14300 need_lib_prefix=no
14301 need_version=no
14302 soname_spec='${libname}${release}${shared_ext}$major'
14303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14304 shlibpath_var=LD_LIBRARY_PATH
14305 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14306 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14307 ;;
14308
14309 rdos*)
14310 dynamic_linker=no
14311 ;;
14312
14313 solaris*)
14314 version_type=linux
14315 need_lib_prefix=no
14316 need_version=no
14317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14318 soname_spec='${libname}${release}${shared_ext}$major'
14319 shlibpath_var=LD_LIBRARY_PATH
14320 shlibpath_overrides_runpath=yes
14321 hardcode_into_libs=yes
14322 # ldd complains unless libraries are executable
14323 postinstall_cmds='chmod +x $lib'
14324 ;;
14325
14326 sunos4*)
14327 version_type=sunos
14328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14329 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14330 shlibpath_var=LD_LIBRARY_PATH
14331 shlibpath_overrides_runpath=yes
14332 if test "$with_gnu_ld" = yes; then
14333 need_lib_prefix=no
14334 fi
14335 need_version=yes
14336 ;;
14337
14338 sysv4 | sysv4.3*)
14339 version_type=linux
14340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14341 soname_spec='${libname}${release}${shared_ext}$major'
14342 shlibpath_var=LD_LIBRARY_PATH
14343 case $host_vendor in
14344 sni)
14345 shlibpath_overrides_runpath=no
14346 need_lib_prefix=no
14347 runpath_var=LD_RUN_PATH
14348 ;;
14349 siemens)
14350 need_lib_prefix=no
14351 ;;
14352 motorola)
14353 need_lib_prefix=no
14354 need_version=no
14355 shlibpath_overrides_runpath=no
14356 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14357 ;;
14358 esac
14359 ;;
14360
14361 sysv4*MP*)
14362 if test -d /usr/nec ;then
14363 version_type=linux
14364 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14365 soname_spec='$libname${shared_ext}.$major'
14366 shlibpath_var=LD_LIBRARY_PATH
14367 fi
14368 ;;
14369
14370 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14371 version_type=freebsd-elf
14372 need_lib_prefix=no
14373 need_version=no
14374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14375 soname_spec='${libname}${release}${shared_ext}$major'
14376 shlibpath_var=LD_LIBRARY_PATH
14377 shlibpath_overrides_runpath=yes
14378 hardcode_into_libs=yes
14379 if test "$with_gnu_ld" = yes; then
14380 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14381 else
14382 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14383 case $host_os in
14384 sco3.2v5*)
14385 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14386 ;;
14387 esac
14388 fi
14389 sys_lib_dlsearch_path_spec='/usr/lib'
14390 ;;
14391
14392 tpf*)
14393 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14394 version_type=linux
14395 need_lib_prefix=no
14396 need_version=no
14397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14398 shlibpath_var=LD_LIBRARY_PATH
14399 shlibpath_overrides_runpath=no
14400 hardcode_into_libs=yes
14401 ;;
14402
14403 uts4*)
14404 version_type=linux
14405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14406 soname_spec='${libname}${release}${shared_ext}$major'
14407 shlibpath_var=LD_LIBRARY_PATH
14408 ;;
14409
14410 *)
14411 dynamic_linker=no
14412 ;;
14413 esac
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14415 $as_echo "$dynamic_linker" >&6; }
14416 test "$dynamic_linker" = no && can_build_shared=no
14417
14418 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14419 if test "$GCC" = yes; then
14420 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14421 fi
14422
14423 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14424 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14425 fi
14426 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14427 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14428 fi
14429
14430
14431
14432
14433
14434
14435
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14468 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14469 hardcode_action_CXX=
14470 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14471 test -n "$runpath_var_CXX" ||
14472 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14473
14474 # We can hardcode non-existent directories.
14475 if test "$hardcode_direct_CXX" != no &&
14476 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14477 # have to relink, otherwise we might link with an installed library
14478 # when we should be linking with a yet-to-be-installed one
14479 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14480 test "$hardcode_minus_L_CXX" != no; then
14481 # Linking always hardcodes the temporary library directory.
14482 hardcode_action_CXX=relink
14483 else
14484 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14485 hardcode_action_CXX=immediate
14486 fi
14487 else
14488 # We cannot hardcode anything, or else we can only hardcode existing
14489 # directories.
14490 hardcode_action_CXX=unsupported
14491 fi
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14493 $as_echo "$hardcode_action_CXX" >&6; }
14494
14495 if test "$hardcode_action_CXX" = relink ||
14496 test "$inherit_rpath_CXX" = yes; then
14497 # Fast installation is not supported
14498 enable_fast_install=no
14499 elif test "$shlibpath_overrides_runpath" = yes ||
14500 test "$enable_shared" = no; then
14501 # Fast installation is not necessary
14502 enable_fast_install=needless
14503 fi
14504
14505
14506
14507
14508
14509
14510
14511 fi # test -n "$compiler"
14512
14513 CC=$lt_save_CC
14514 LDCXX=$LD
14515 LD=$lt_save_LD
14516 GCC=$lt_save_GCC
14517 with_gnu_ld=$lt_save_with_gnu_ld
14518 lt_cv_path_LDCXX=$lt_cv_path_LD
14519 lt_cv_path_LD=$lt_save_path_LD
14520 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14521 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14522 fi # test "$_lt_caught_CXX_error" != yes
14523
14524 ac_ext=c
14525 ac_cpp='$CPP $CPPFLAGS'
14526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14529
14530
14531
14532 visibility=
14533 if test "$GXX" = yes; then
14534 visibility=-fvisibility=hidden
14535 fi
14536
14537
14538 # Check whether --enable-cet was given.
14539 if test "${enable_cet+set}" = set; then :
14540 enableval=$enable_cet;
14541 case "$enableval" in
14542 yes|no|auto) ;;
14543 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
14544 esac
14545
14546 else
14547 enable_cet=auto
14548 fi
14549
14550
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
14552 $as_echo_n "checking for CET support... " >&6; }
14553
14554 case "$host" in
14555 i[34567]86-*-linux* | x86_64-*-linux*)
14556 may_have_cet=yes
14557 cet_save_CFLAGS="$CFLAGS"
14558 CFLAGS="$CFLAGS -fcf-protection"
14559 case "$enable_cet" in
14560 auto)
14561 # Check if target supports multi-byte NOPs
14562 # and if compiler and assembler support CET.
14563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14564 /* end confdefs.h. */
14565
14566 int
14567 main ()
14568 {
14569
14570 #if !defined(__SSE2__)
14571 #error target does not support multi-byte NOPs
14572 #else
14573 asm ("setssbsy");
14574 #endif
14575
14576 ;
14577 return 0;
14578 }
14579 _ACEOF
14580 if ac_fn_c_try_compile "$LINENO"; then :
14581 enable_cet=yes
14582 else
14583 enable_cet=no
14584 fi
14585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14586 ;;
14587 yes)
14588 # Check if compiler and assembler support CET.
14589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14590 /* end confdefs.h. */
14591
14592 int
14593 main ()
14594 {
14595 asm ("setssbsy");
14596 ;
14597 return 0;
14598 }
14599 _ACEOF
14600 if ac_fn_c_try_compile "$LINENO"; then :
14601 support_cet=yes
14602 else
14603 support_cet=no
14604 fi
14605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14606 if test $support_cet = "no"; then
14607 if test x$enable_bootstrap != xno \
14608 && test -z "${with_build_subdir}" \
14609 && (test ! -f ../stage_current \
14610 || test `cat ../stage_current` != "stage1"); then
14611 # Require CET support only for the final GCC build.
14612 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
14613 else
14614 # Don't enable CET without CET support for non-bootstrap
14615 # build, in stage1 nor for build support.
14616 enable_cet=no
14617 fi
14618 fi
14619 ;;
14620 esac
14621 CFLAGS="$cet_save_CFLAGS"
14622 ;;
14623 *)
14624 may_have_cet=no
14625 enable_cet=no
14626 ;;
14627 esac
14628
14629 cet_save_CFLAGS="$CFLAGS"
14630 CFLAGS="$CFLAGS -fcf-protection=none"
14631 cet_save_LDFLAGS="$LDFLAGS"
14632 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
14633 if test x$may_have_cet = xyes; then
14634 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
14635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14636 /* end confdefs.h. */
14637
14638 int
14639 main ()
14640 {
14641 return 0;
14642 ;
14643 return 0;
14644 }
14645 _ACEOF
14646 if ac_fn_c_try_link "$LINENO"; then :
14647 may_have_cet=yes
14648 else
14649 may_have_cet=no
14650 fi
14651 rm -f core conftest.err conftest.$ac_objext \
14652 conftest$ac_exeext conftest.$ac_ext
14653 fi
14654
14655 if test x$may_have_cet = xyes; then
14656 if test x$cross_compiling = xno; then
14657 if test "$cross_compiling" = yes; then :
14658 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14660 as_fn_error $? "cannot run test program while cross compiling
14661 See \`config.log' for more details" "$LINENO" 5; }
14662 else
14663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14664 /* end confdefs.h. */
14665
14666 static void
14667 foo (void)
14668 {
14669 }
14670
14671 static void
14672 __attribute__ ((noinline, noclone))
14673 xxx (void (*f) (void))
14674 {
14675 f ();
14676 }
14677
14678 static void
14679 __attribute__ ((noinline, noclone))
14680 bar (void)
14681 {
14682 xxx (foo);
14683 }
14684
14685 int
14686 main ()
14687 {
14688 bar ();
14689 return 0;
14690 }
14691
14692 _ACEOF
14693 if ac_fn_c_try_run "$LINENO"; then :
14694 have_cet=no
14695 else
14696 have_cet=yes
14697 fi
14698 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14699 conftest.$ac_objext conftest.beam conftest.$ac_ext
14700 fi
14701
14702 if test x$enable_cet = xno -a x$have_cet = xyes; then
14703 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
14704 fi
14705 fi
14706 else
14707 # Enable CET in cross compiler if possible so that it will run on both
14708 # CET and non-CET hosts.
14709 have_cet=yes
14710 fi
14711 if test x$enable_cet = xyes; then
14712 CET_HOST_FLAGS="-fcf-protection"
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14714 $as_echo "yes" >&6; }
14715 else
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14717 $as_echo "no" >&6; }
14718 fi
14719 CFLAGS="$cet_save_CFLAGS"
14720 LDFLAGS="$cet_save_LDFLAGS"
14721
14722
14723
14724 ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
14725 if test "x$ac_cv_have_decl_basename" = xyes; then :
14726 ac_have_decl=1
14727 else
14728 ac_have_decl=0
14729 fi
14730
14731 cat >>confdefs.h <<_ACEOF
14732 #define HAVE_DECL_BASENAME $ac_have_decl
14733 _ACEOF
14734
14735
14736
14737 get_gcc_base_ver="cat"
14738
14739 # Check whether --with-gcc-major-version-only was given.
14740 if test "${with_gcc_major_version_only+set}" = set; then :
14741 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
14742 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
14743 fi
14744
14745 fi
14746
14747
14748
14749
14750 if test x$with_gcc_major_version_only = xyes ; then
14751 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/../gcc/BASE-VER`
14752 else
14753 gcc_version=`cat $srcdir/../gcc/BASE-VER`
14754 fi
14755
14756 CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/../gcc/BASE-VER'
14757
14758
14759 ac_ext=c
14760 ac_cpp='$CPP $CPPFLAGS'
14761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14764
14765 WARN_FLAGS=
14766 save_CFLAGS="$CFLAGS"
14767 for real_option in -W -Wall; do
14768 # Do the check with the no- prefix removed since gcc silently
14769 # accepts any -Wno-* option on purpose
14770 case $real_option in
14771 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
14772 *) option=$real_option ;;
14773 esac
14774 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
14775
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
14777 $as_echo_n "checking whether $CC supports $option... " >&6; }
14778 if eval \${$as_acx_Woption+:} false; then :
14779 $as_echo_n "(cached) " >&6
14780 else
14781 CFLAGS="$option"
14782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14783 /* end confdefs.h. */
14784
14785 int
14786 main ()
14787 {
14788
14789 ;
14790 return 0;
14791 }
14792 _ACEOF
14793 if ac_fn_c_try_compile "$LINENO"; then :
14794 eval "$as_acx_Woption=yes"
14795 else
14796 eval "$as_acx_Woption=no"
14797 fi
14798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14799
14800 fi
14801 eval ac_res=\$$as_acx_Woption
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14803 $as_echo "$ac_res" >&6; }
14804 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
14805 WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option"
14806 fi
14807 done
14808 CFLAGS="$save_CFLAGS"
14809 ac_ext=c
14810 ac_cpp='$CPP $CPPFLAGS'
14811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14814
14815
14816
14817 ac_ext=c
14818 ac_cpp='$CPP $CPPFLAGS'
14819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14822
14823 WERROR=
14824 # Check whether --enable-werror-always was given.
14825 if test "${enable_werror_always+set}" = set; then :
14826 enableval=$enable_werror_always;
14827 else
14828 enable_werror_always=no
14829 fi
14830
14831 if test $enable_werror_always = yes; then :
14832 WERROR="$WERROR${WERROR:+ }-Werror"
14833 fi
14834
14835 ac_ext=c
14836 ac_cpp='$CPP $CPPFLAGS'
14837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14840
14841
14842
14843
14844
14845 libsuffix=
14846 if test "$GXX" = yes; then
14847 libsuffix=`$CXX -print-multi-os-directory`
14848 fi
14849
14850
14851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14852 $as_echo_n "checking for socket libraries... " >&6; }
14853 if ${libcc1_cv_lib_sockets+:} false; then :
14854 $as_echo_n "(cached) " >&6
14855 else
14856 libcc1_cv_lib_sockets=
14857 libcc1_check_both=no
14858 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14859 if test "x$ac_cv_func_connect" = xyes; then :
14860 libcc1_check_socket=no
14861 else
14862 libcc1_check_socket=yes
14863 fi
14864
14865 if test "$libcc1_check_socket" = "yes"; then
14866 unset ac_cv_func_connect
14867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14868 $as_echo_n "checking for main in -lsocket... " >&6; }
14869 if ${ac_cv_lib_socket_main+:} false; then :
14870 $as_echo_n "(cached) " >&6
14871 else
14872 ac_check_lib_save_LIBS=$LIBS
14873 LIBS="-lsocket $LIBS"
14874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14875 /* end confdefs.h. */
14876
14877
14878 int
14879 main ()
14880 {
14881 return main ();
14882 ;
14883 return 0;
14884 }
14885 _ACEOF
14886 if ac_fn_c_try_link "$LINENO"; then :
14887 ac_cv_lib_socket_main=yes
14888 else
14889 ac_cv_lib_socket_main=no
14890 fi
14891 rm -f core conftest.err conftest.$ac_objext \
14892 conftest$ac_exeext conftest.$ac_ext
14893 LIBS=$ac_check_lib_save_LIBS
14894 fi
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14896 $as_echo "$ac_cv_lib_socket_main" >&6; }
14897 if test "x$ac_cv_lib_socket_main" = xyes; then :
14898 libcc1_cv_lib_sockets="-lsocket"
14899 else
14900 libcc1_check_both=yes
14901 fi
14902
14903 fi
14904 if test "$libcc1_check_both" = "yes"; then
14905 libcc1_old_libs=$LIBS
14906 LIBS="$LIBS -lsocket -lnsl"
14907 unset ac_cv_func_accept
14908 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14909 if test "x$ac_cv_func_accept" = xyes; then :
14910 libcc1_check_nsl=no
14911 libcc1_cv_lib_sockets="-lsocket -lnsl"
14912 fi
14913
14914 unset ac_cv_func_accept
14915 LIBS=$libcc1_old_libs
14916 fi
14917 unset ac_cv_func_gethostbyname
14918 libcc1_old_libs="$LIBS"
14919 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14920 if test "x$ac_cv_func_gethostbyname" = xyes; then :
14921
14922 else
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14924 $as_echo_n "checking for main in -lnsl... " >&6; }
14925 if ${ac_cv_lib_nsl_main+:} false; then :
14926 $as_echo_n "(cached) " >&6
14927 else
14928 ac_check_lib_save_LIBS=$LIBS
14929 LIBS="-lnsl $LIBS"
14930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14931 /* end confdefs.h. */
14932
14933
14934 int
14935 main ()
14936 {
14937 return main ();
14938 ;
14939 return 0;
14940 }
14941 _ACEOF
14942 if ac_fn_c_try_link "$LINENO"; then :
14943 ac_cv_lib_nsl_main=yes
14944 else
14945 ac_cv_lib_nsl_main=no
14946 fi
14947 rm -f core conftest.err conftest.$ac_objext \
14948 conftest$ac_exeext conftest.$ac_ext
14949 LIBS=$ac_check_lib_save_LIBS
14950 fi
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14952 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14953 if test "x$ac_cv_lib_nsl_main" = xyes; then :
14954 libcc1_cv_lib_sockets="$libcc1_cv_lib_sockets -lnsl"
14955 fi
14956
14957 fi
14958
14959 unset ac_cv_func_gethostbyname
14960 LIBS=$libcc1_old_libs
14961
14962 fi
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcc1_cv_lib_sockets" >&5
14964 $as_echo "$libcc1_cv_lib_sockets" >&6; }
14965 LIBS="$LIBS $libcc1_cv_lib_sockets"
14966
14967 case "$host" in
14968 *-*-darwin*) darwin_dynamic_lookup=yes ;;
14969 *) darwin_dynamic_lookup=no ;;
14970 esac
14971 if test $darwin_dynamic_lookup = yes; then
14972 DARWIN_DYNAMIC_LOOKUP_TRUE=
14973 DARWIN_DYNAMIC_LOOKUP_FALSE='#'
14974 else
14975 DARWIN_DYNAMIC_LOOKUP_TRUE='#'
14976 DARWIN_DYNAMIC_LOOKUP_FALSE=
14977 fi
14978
14979
14980 # If any of these functions are missing, simply don't bother building
14981 # this plugin.
14982 # Check for plugin support
14983 # Check whether --enable-plugin was given.
14984 if test "${enable_plugin+set}" = set; then :
14985 enableval=$enable_plugin; enable_plugin=$enableval
14986 else
14987 enable_plugin=yes; default_plugin=yes
14988 fi
14989
14990
14991 pluginlibs=
14992 plugin_check=yes
14993
14994 case "${host}" in
14995 *-*-mingw*)
14996 # Since plugin support under MinGW is not as straightforward as on
14997 # other platforms (e.g., we have to link import library, etc), we
14998 # only enable it if explicitly requested.
14999 if test x"$default_plugin" = x"yes"; then
15000 enable_plugin=no
15001 elif test x"$enable_plugin" = x"yes"; then
15002 # Use make's target variable to derive import library name.
15003 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
15004 plugin_check=no
15005 fi
15006 ;;
15007 *-*-darwin*)
15008 if test x$build = x$host; then
15009 export_sym_check="nm${exeext} -g"
15010 elif test x$host = x$target; then
15011 export_sym_check="$gcc_cv_nm -g"
15012 else
15013 export_sym_check=
15014 fi
15015 ;;
15016 *)
15017 if test x$build = x$host; then
15018 export_sym_check="objdump${exeext} -T"
15019 elif test x$host = x$target; then
15020 export_sym_check="$gcc_cv_objdump -T"
15021 else
15022 export_sym_check=
15023 fi
15024 ;;
15025 esac
15026
15027 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
15028
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
15030 $as_echo_n "checking for exported symbols... " >&6; }
15031 if test "x$export_sym_check" != x; then
15032 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
15033 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
15034 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
15035 : # No need to use a flag
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15037 $as_echo "yes" >&6; }
15038 else
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15040 $as_echo "yes" >&6; }
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
15042 $as_echo_n "checking for -rdynamic... " >&6; }
15043 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
15044 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
15045 plugin_rdynamic=yes
15046 pluginlibs="-rdynamic"
15047 else
15048 plugin_rdynamic=no
15049 enable_plugin=no
15050 fi
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
15052 $as_echo "$plugin_rdynamic" >&6; }
15053 fi
15054 else
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
15056 $as_echo "unable to check" >&6; }
15057 fi
15058
15059 # Check -ldl
15060 saved_LIBS="$LIBS"
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15062 $as_echo_n "checking for library containing dlopen... " >&6; }
15063 if ${ac_cv_search_dlopen+:} false; then :
15064 $as_echo_n "(cached) " >&6
15065 else
15066 ac_func_search_save_LIBS=$LIBS
15067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15068 /* end confdefs.h. */
15069
15070 /* Override any GCC internal prototype to avoid an error.
15071 Use char because int might match the return type of a GCC
15072 builtin and then its argument prototype would still apply. */
15073 #ifdef __cplusplus
15074 extern "C"
15075 #endif
15076 char dlopen ();
15077 int
15078 main ()
15079 {
15080 return dlopen ();
15081 ;
15082 return 0;
15083 }
15084 _ACEOF
15085 for ac_lib in '' dl; do
15086 if test -z "$ac_lib"; then
15087 ac_res="none required"
15088 else
15089 ac_res=-l$ac_lib
15090 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15091 fi
15092 if ac_fn_c_try_link "$LINENO"; then :
15093 ac_cv_search_dlopen=$ac_res
15094 fi
15095 rm -f core conftest.err conftest.$ac_objext \
15096 conftest$ac_exeext
15097 if ${ac_cv_search_dlopen+:} false; then :
15098 break
15099 fi
15100 done
15101 if ${ac_cv_search_dlopen+:} false; then :
15102
15103 else
15104 ac_cv_search_dlopen=no
15105 fi
15106 rm conftest.$ac_ext
15107 LIBS=$ac_func_search_save_LIBS
15108 fi
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15110 $as_echo "$ac_cv_search_dlopen" >&6; }
15111 ac_res=$ac_cv_search_dlopen
15112 if test "$ac_res" != no; then :
15113 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15114
15115 fi
15116
15117 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
15118 pluginlibs="$pluginlibs -ldl"
15119 fi
15120 LIBS="$saved_LIBS"
15121
15122 # Check that we can build shared objects with -fPIC -shared
15123 saved_LDFLAGS="$LDFLAGS"
15124 saved_CFLAGS="$CFLAGS"
15125 case "${host}" in
15126 *-*-darwin*)
15127 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
15128 CFLAGS="$CFLAGS -fPIC"
15129 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
15130 ;;
15131 *)
15132 CFLAGS="$CFLAGS -fPIC"
15133 LDFLAGS="$LDFLAGS -fPIC -shared"
15134 ;;
15135 esac
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
15137 $as_echo_n "checking for -fPIC -shared... " >&6; }
15138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15139 /* end confdefs.h. */
15140 extern int X;
15141 int
15142 main ()
15143 {
15144 return X == 0;
15145 ;
15146 return 0;
15147 }
15148 _ACEOF
15149 if ac_fn_c_try_link "$LINENO"; then :
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15151 $as_echo "yes" >&6; }; have_pic_shared=yes
15152 else
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15154 $as_echo "no" >&6; }; have_pic_shared=no
15155 fi
15156 rm -f core conftest.err conftest.$ac_objext \
15157 conftest$ac_exeext conftest.$ac_ext
15158 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
15159 pluginlibs=
15160 enable_plugin=no
15161 fi
15162 LDFLAGS="$saved_LDFLAGS"
15163 CFLAGS="$saved_CFLAGS"
15164
15165 # If plugin support had been requested but not available, fail.
15166 if test x"$enable_plugin" = x"no" ; then
15167 if test x"$default_plugin" != x"yes"; then
15168 as_fn_error $? "
15169 Building GCC with plugin support requires a host that supports
15170 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
15171 fi
15172 fi
15173 fi
15174
15175 ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
15176 if test "x$ac_cv_func_socketpair" = xyes; then :
15177
15178 else
15179 enable_plugin=no
15180 fi
15181
15182 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
15183 if test "x$ac_cv_func_select" = xyes; then :
15184
15185 else
15186 enable_plugin=no
15187 fi
15188
15189 ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
15190 if test "x$ac_cv_func_fork" = xyes; then :
15191
15192 else
15193 enable_plugin=no
15194 fi
15195
15196 if test $enable_plugin = yes; then
15197 ENABLE_PLUGIN_TRUE=
15198 ENABLE_PLUGIN_FALSE='#'
15199 else
15200 ENABLE_PLUGIN_TRUE='#'
15201 ENABLE_PLUGIN_FALSE=
15202 fi
15203
15204
15205 ac_config_files="$ac_config_files Makefile"
15206
15207 cat >confcache <<\_ACEOF
15208 # This file is a shell script that caches the results of configure
15209 # tests run on this system so they can be shared between configure
15210 # scripts and configure runs, see configure's option --config-cache.
15211 # It is not useful on other systems. If it contains results you don't
15212 # want to keep, you may remove or edit it.
15213 #
15214 # config.status only pays attention to the cache file if you give it
15215 # the --recheck option to rerun configure.
15216 #
15217 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15218 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15219 # following values.
15220
15221 _ACEOF
15222
15223 # The following way of writing the cache mishandles newlines in values,
15224 # but we know of no workaround that is simple, portable, and efficient.
15225 # So, we kill variables containing newlines.
15226 # Ultrix sh set writes to stderr and can't be redirected directly,
15227 # and sets the high bit in the cache file unless we assign to the vars.
15228 (
15229 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15230 eval ac_val=\$$ac_var
15231 case $ac_val in #(
15232 *${as_nl}*)
15233 case $ac_var in #(
15234 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15235 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15236 esac
15237 case $ac_var in #(
15238 _ | IFS | as_nl) ;; #(
15239 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15240 *) { eval $ac_var=; unset $ac_var;} ;;
15241 esac ;;
15242 esac
15243 done
15244
15245 (set) 2>&1 |
15246 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15247 *${as_nl}ac_space=\ *)
15248 # `set' does not quote correctly, so add quotes: double-quote
15249 # substitution turns \\\\ into \\, and sed turns \\ into \.
15250 sed -n \
15251 "s/'/'\\\\''/g;
15252 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15253 ;; #(
15254 *)
15255 # `set' quotes correctly as required by POSIX, so do not add quotes.
15256 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15257 ;;
15258 esac |
15259 sort
15260 ) |
15261 sed '
15262 /^ac_cv_env_/b end
15263 t clear
15264 :clear
15265 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15266 t end
15267 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15268 :end' >>confcache
15269 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15270 if test -w "$cache_file"; then
15271 if test "x$cache_file" != "x/dev/null"; then
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15273 $as_echo "$as_me: updating cache $cache_file" >&6;}
15274 if test ! -f "$cache_file" || test -h "$cache_file"; then
15275 cat confcache >"$cache_file"
15276 else
15277 case $cache_file in #(
15278 */* | ?:*)
15279 mv -f confcache "$cache_file"$$ &&
15280 mv -f "$cache_file"$$ "$cache_file" ;; #(
15281 *)
15282 mv -f confcache "$cache_file" ;;
15283 esac
15284 fi
15285 fi
15286 else
15287 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15288 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15289 fi
15290 fi
15291 rm -f confcache
15292
15293 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15294 # Let make expand exec_prefix.
15295 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15296
15297 DEFS=-DHAVE_CONFIG_H
15298
15299 ac_libobjs=
15300 ac_ltlibobjs=
15301 U=
15302 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15303 # 1. Remove the extension, and $U if already installed.
15304 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15305 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15306 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15307 # will be set to the directory where LIBOBJS objects are built.
15308 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15309 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15310 done
15311 LIBOBJS=$ac_libobjs
15312
15313 LTLIBOBJS=$ac_ltlibobjs
15314
15315
15316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15317 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15318 if test -n "$am_sleep_pid"; then
15319 # Hide warnings about reused PIDs.
15320 wait $am_sleep_pid 2>/dev/null
15321 fi
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15323 $as_echo "done" >&6; }
15324 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15325 as_fn_error $? "conditional \"AMDEP\" was never defined.
15326 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15327 fi
15328 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15329 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15330 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15331 fi
15332 if test -n "$EXEEXT"; then
15333 am__EXEEXT_TRUE=
15334 am__EXEEXT_FALSE='#'
15335 else
15336 am__EXEEXT_TRUE='#'
15337 am__EXEEXT_FALSE=
15338 fi
15339
15340 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15341 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15342 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15343 fi
15344 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15345 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15346 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15347 fi
15348 if test -z "${DARWIN_DYNAMIC_LOOKUP_TRUE}" && test -z "${DARWIN_DYNAMIC_LOOKUP_FALSE}"; then
15349 as_fn_error $? "conditional \"DARWIN_DYNAMIC_LOOKUP\" was never defined.
15350 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15351 fi
15352 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
15353 as_fn_error $? "conditional \"ENABLE_PLUGIN\" was never defined.
15354 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15355 fi
15356
15357 : "${CONFIG_STATUS=./config.status}"
15358 ac_write_fail=0
15359 ac_clean_files_save=$ac_clean_files
15360 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15362 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15363 as_write_fail=0
15364 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15365 #! $SHELL
15366 # Generated by $as_me.
15367 # Run this file to recreate the current configuration.
15368 # Compiler output produced by configure, useful for debugging
15369 # configure, is in config.log if it exists.
15370
15371 debug=false
15372 ac_cs_recheck=false
15373 ac_cs_silent=false
15374
15375 SHELL=\${CONFIG_SHELL-$SHELL}
15376 export SHELL
15377 _ASEOF
15378 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15379 ## -------------------- ##
15380 ## M4sh Initialization. ##
15381 ## -------------------- ##
15382
15383 # Be more Bourne compatible
15384 DUALCASE=1; export DUALCASE # for MKS sh
15385 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15386 emulate sh
15387 NULLCMD=:
15388 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15389 # is contrary to our usage. Disable this feature.
15390 alias -g '${1+"$@"}'='"$@"'
15391 setopt NO_GLOB_SUBST
15392 else
15393 case `(set -o) 2>/dev/null` in #(
15394 *posix*) :
15395 set -o posix ;; #(
15396 *) :
15397 ;;
15398 esac
15399 fi
15400
15401
15402 as_nl='
15403 '
15404 export as_nl
15405 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15406 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15407 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15408 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15409 # Prefer a ksh shell builtin over an external printf program on Solaris,
15410 # but without wasting forks for bash or zsh.
15411 if test -z "$BASH_VERSION$ZSH_VERSION" \
15412 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15413 as_echo='print -r --'
15414 as_echo_n='print -rn --'
15415 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15416 as_echo='printf %s\n'
15417 as_echo_n='printf %s'
15418 else
15419 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15420 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15421 as_echo_n='/usr/ucb/echo -n'
15422 else
15423 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15424 as_echo_n_body='eval
15425 arg=$1;
15426 case $arg in #(
15427 *"$as_nl"*)
15428 expr "X$arg" : "X\\(.*\\)$as_nl";
15429 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15430 esac;
15431 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15432 '
15433 export as_echo_n_body
15434 as_echo_n='sh -c $as_echo_n_body as_echo'
15435 fi
15436 export as_echo_body
15437 as_echo='sh -c $as_echo_body as_echo'
15438 fi
15439
15440 # The user is always right.
15441 if test "${PATH_SEPARATOR+set}" != set; then
15442 PATH_SEPARATOR=:
15443 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15444 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15445 PATH_SEPARATOR=';'
15446 }
15447 fi
15448
15449
15450 # IFS
15451 # We need space, tab and new line, in precisely that order. Quoting is
15452 # there to prevent editors from complaining about space-tab.
15453 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15454 # splitting by setting IFS to empty value.)
15455 IFS=" "" $as_nl"
15456
15457 # Find who we are. Look in the path if we contain no directory separator.
15458 as_myself=
15459 case $0 in #((
15460 *[\\/]* ) as_myself=$0 ;;
15461 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15462 for as_dir in $PATH
15463 do
15464 IFS=$as_save_IFS
15465 test -z "$as_dir" && as_dir=.
15466 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15467 done
15468 IFS=$as_save_IFS
15469
15470 ;;
15471 esac
15472 # We did not find ourselves, most probably we were run as `sh COMMAND'
15473 # in which case we are not to be found in the path.
15474 if test "x$as_myself" = x; then
15475 as_myself=$0
15476 fi
15477 if test ! -f "$as_myself"; then
15478 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15479 exit 1
15480 fi
15481
15482 # Unset variables that we do not need and which cause bugs (e.g. in
15483 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15484 # suppresses any "Segmentation fault" message there. '((' could
15485 # trigger a bug in pdksh 5.2.14.
15486 for as_var in BASH_ENV ENV MAIL MAILPATH
15487 do eval test x\${$as_var+set} = xset \
15488 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15489 done
15490 PS1='$ '
15491 PS2='> '
15492 PS4='+ '
15493
15494 # NLS nuisances.
15495 LC_ALL=C
15496 export LC_ALL
15497 LANGUAGE=C
15498 export LANGUAGE
15499
15500 # CDPATH.
15501 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15502
15503
15504 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15505 # ----------------------------------------
15506 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15507 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15508 # script with STATUS, using 1 if that was 0.
15509 as_fn_error ()
15510 {
15511 as_status=$1; test $as_status -eq 0 && as_status=1
15512 if test "$4"; then
15513 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15514 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15515 fi
15516 $as_echo "$as_me: error: $2" >&2
15517 as_fn_exit $as_status
15518 } # as_fn_error
15519
15520
15521 # as_fn_set_status STATUS
15522 # -----------------------
15523 # Set $? to STATUS, without forking.
15524 as_fn_set_status ()
15525 {
15526 return $1
15527 } # as_fn_set_status
15528
15529 # as_fn_exit STATUS
15530 # -----------------
15531 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15532 as_fn_exit ()
15533 {
15534 set +e
15535 as_fn_set_status $1
15536 exit $1
15537 } # as_fn_exit
15538
15539 # as_fn_unset VAR
15540 # ---------------
15541 # Portably unset VAR.
15542 as_fn_unset ()
15543 {
15544 { eval $1=; unset $1;}
15545 }
15546 as_unset=as_fn_unset
15547 # as_fn_append VAR VALUE
15548 # ----------------------
15549 # Append the text in VALUE to the end of the definition contained in VAR. Take
15550 # advantage of any shell optimizations that allow amortized linear growth over
15551 # repeated appends, instead of the typical quadratic growth present in naive
15552 # implementations.
15553 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15554 eval 'as_fn_append ()
15555 {
15556 eval $1+=\$2
15557 }'
15558 else
15559 as_fn_append ()
15560 {
15561 eval $1=\$$1\$2
15562 }
15563 fi # as_fn_append
15564
15565 # as_fn_arith ARG...
15566 # ------------------
15567 # Perform arithmetic evaluation on the ARGs, and store the result in the
15568 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15569 # must be portable across $(()) and expr.
15570 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15571 eval 'as_fn_arith ()
15572 {
15573 as_val=$(( $* ))
15574 }'
15575 else
15576 as_fn_arith ()
15577 {
15578 as_val=`expr "$@" || test $? -eq 1`
15579 }
15580 fi # as_fn_arith
15581
15582
15583 if expr a : '\(a\)' >/dev/null 2>&1 &&
15584 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15585 as_expr=expr
15586 else
15587 as_expr=false
15588 fi
15589
15590 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15591 as_basename=basename
15592 else
15593 as_basename=false
15594 fi
15595
15596 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15597 as_dirname=dirname
15598 else
15599 as_dirname=false
15600 fi
15601
15602 as_me=`$as_basename -- "$0" ||
15603 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15604 X"$0" : 'X\(//\)$' \| \
15605 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15606 $as_echo X/"$0" |
15607 sed '/^.*\/\([^/][^/]*\)\/*$/{
15608 s//\1/
15609 q
15610 }
15611 /^X\/\(\/\/\)$/{
15612 s//\1/
15613 q
15614 }
15615 /^X\/\(\/\).*/{
15616 s//\1/
15617 q
15618 }
15619 s/.*/./; q'`
15620
15621 # Avoid depending upon Character Ranges.
15622 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15623 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15624 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15625 as_cr_digits='0123456789'
15626 as_cr_alnum=$as_cr_Letters$as_cr_digits
15627
15628 ECHO_C= ECHO_N= ECHO_T=
15629 case `echo -n x` in #(((((
15630 -n*)
15631 case `echo 'xy\c'` in
15632 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15633 xy) ECHO_C='\c';;
15634 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15635 ECHO_T=' ';;
15636 esac;;
15637 *)
15638 ECHO_N='-n';;
15639 esac
15640
15641 rm -f conf$$ conf$$.exe conf$$.file
15642 if test -d conf$$.dir; then
15643 rm -f conf$$.dir/conf$$.file
15644 else
15645 rm -f conf$$.dir
15646 mkdir conf$$.dir 2>/dev/null
15647 fi
15648 if (echo >conf$$.file) 2>/dev/null; then
15649 if ln -s conf$$.file conf$$ 2>/dev/null; then
15650 as_ln_s='ln -s'
15651 # ... but there are two gotchas:
15652 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15653 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15654 # In both cases, we have to default to `cp -pR'.
15655 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15656 as_ln_s='cp -pR'
15657 elif ln conf$$.file conf$$ 2>/dev/null; then
15658 as_ln_s=ln
15659 else
15660 as_ln_s='cp -pR'
15661 fi
15662 else
15663 as_ln_s='cp -pR'
15664 fi
15665 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15666 rmdir conf$$.dir 2>/dev/null
15667
15668
15669 # as_fn_mkdir_p
15670 # -------------
15671 # Create "$as_dir" as a directory, including parents if necessary.
15672 as_fn_mkdir_p ()
15673 {
15674
15675 case $as_dir in #(
15676 -*) as_dir=./$as_dir;;
15677 esac
15678 test -d "$as_dir" || eval $as_mkdir_p || {
15679 as_dirs=
15680 while :; do
15681 case $as_dir in #(
15682 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15683 *) as_qdir=$as_dir;;
15684 esac
15685 as_dirs="'$as_qdir' $as_dirs"
15686 as_dir=`$as_dirname -- "$as_dir" ||
15687 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15688 X"$as_dir" : 'X\(//\)[^/]' \| \
15689 X"$as_dir" : 'X\(//\)$' \| \
15690 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15691 $as_echo X"$as_dir" |
15692 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15693 s//\1/
15694 q
15695 }
15696 /^X\(\/\/\)[^/].*/{
15697 s//\1/
15698 q
15699 }
15700 /^X\(\/\/\)$/{
15701 s//\1/
15702 q
15703 }
15704 /^X\(\/\).*/{
15705 s//\1/
15706 q
15707 }
15708 s/.*/./; q'`
15709 test -d "$as_dir" && break
15710 done
15711 test -z "$as_dirs" || eval "mkdir $as_dirs"
15712 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15713
15714
15715 } # as_fn_mkdir_p
15716 if mkdir -p . 2>/dev/null; then
15717 as_mkdir_p='mkdir -p "$as_dir"'
15718 else
15719 test -d ./-p && rmdir ./-p
15720 as_mkdir_p=false
15721 fi
15722
15723
15724 # as_fn_executable_p FILE
15725 # -----------------------
15726 # Test if FILE is an executable regular file.
15727 as_fn_executable_p ()
15728 {
15729 test -f "$1" && test -x "$1"
15730 } # as_fn_executable_p
15731 as_test_x='test -x'
15732 as_executable_p=as_fn_executable_p
15733
15734 # Sed expression to map a string onto a valid CPP name.
15735 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15736
15737 # Sed expression to map a string onto a valid variable name.
15738 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15739
15740
15741 exec 6>&1
15742 ## ----------------------------------- ##
15743 ## Main body of $CONFIG_STATUS script. ##
15744 ## ----------------------------------- ##
15745 _ASEOF
15746 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15747
15748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15749 # Save the log message, to keep $0 and so on meaningful, and to
15750 # report actual input values of CONFIG_FILES etc. instead of their
15751 # values after options handling.
15752 ac_log="
15753 This file was extended by libcc1 $as_me version-unused, which was
15754 generated by GNU Autoconf 2.69. Invocation command line was
15755
15756 CONFIG_FILES = $CONFIG_FILES
15757 CONFIG_HEADERS = $CONFIG_HEADERS
15758 CONFIG_LINKS = $CONFIG_LINKS
15759 CONFIG_COMMANDS = $CONFIG_COMMANDS
15760 $ $0 $@
15761
15762 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15763 "
15764
15765 _ACEOF
15766
15767 case $ac_config_files in *"
15768 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15769 esac
15770
15771 case $ac_config_headers in *"
15772 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15773 esac
15774
15775
15776 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15777 # Files that config.status was made for.
15778 config_files="$ac_config_files"
15779 config_headers="$ac_config_headers"
15780 config_commands="$ac_config_commands"
15781
15782 _ACEOF
15783
15784 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15785 ac_cs_usage="\
15786 \`$as_me' instantiates files and other configuration actions
15787 from templates according to the current configuration. Unless the files
15788 and actions are specified as TAGs, all are instantiated by default.
15789
15790 Usage: $0 [OPTION]... [TAG]...
15791
15792 -h, --help print this help, then exit
15793 -V, --version print version number and configuration settings, then exit
15794 --config print configuration, then exit
15795 -q, --quiet, --silent
15796 do not print progress messages
15797 -d, --debug don't remove temporary files
15798 --recheck update $as_me by reconfiguring in the same conditions
15799 --file=FILE[:TEMPLATE]
15800 instantiate the configuration file FILE
15801 --header=FILE[:TEMPLATE]
15802 instantiate the configuration header FILE
15803
15804 Configuration files:
15805 $config_files
15806
15807 Configuration headers:
15808 $config_headers
15809
15810 Configuration commands:
15811 $config_commands
15812
15813 Report bugs to the package provider."
15814
15815 _ACEOF
15816 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15817 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15818 ac_cs_version="\\
15819 libcc1 config.status version-unused
15820 configured by $0, generated by GNU Autoconf 2.69,
15821 with options \\"\$ac_cs_config\\"
15822
15823 Copyright (C) 2012 Free Software Foundation, Inc.
15824 This config.status script is free software; the Free Software Foundation
15825 gives unlimited permission to copy, distribute and modify it."
15826
15827 ac_pwd='$ac_pwd'
15828 srcdir='$srcdir'
15829 INSTALL='$INSTALL'
15830 MKDIR_P='$MKDIR_P'
15831 AWK='$AWK'
15832 test -n "\$AWK" || AWK=awk
15833 _ACEOF
15834
15835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15836 # The default lists apply if the user does not specify any file.
15837 ac_need_defaults=:
15838 while test $# != 0
15839 do
15840 case $1 in
15841 --*=?*)
15842 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15843 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15844 ac_shift=:
15845 ;;
15846 --*=)
15847 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15848 ac_optarg=
15849 ac_shift=:
15850 ;;
15851 *)
15852 ac_option=$1
15853 ac_optarg=$2
15854 ac_shift=shift
15855 ;;
15856 esac
15857
15858 case $ac_option in
15859 # Handling of the options.
15860 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15861 ac_cs_recheck=: ;;
15862 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15863 $as_echo "$ac_cs_version"; exit ;;
15864 --config | --confi | --conf | --con | --co | --c )
15865 $as_echo "$ac_cs_config"; exit ;;
15866 --debug | --debu | --deb | --de | --d | -d )
15867 debug=: ;;
15868 --file | --fil | --fi | --f )
15869 $ac_shift
15870 case $ac_optarg in
15871 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15872 '') as_fn_error $? "missing file argument" ;;
15873 esac
15874 as_fn_append CONFIG_FILES " '$ac_optarg'"
15875 ac_need_defaults=false;;
15876 --header | --heade | --head | --hea )
15877 $ac_shift
15878 case $ac_optarg in
15879 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15880 esac
15881 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15882 ac_need_defaults=false;;
15883 --he | --h)
15884 # Conflict between --help and --header
15885 as_fn_error $? "ambiguous option: \`$1'
15886 Try \`$0 --help' for more information.";;
15887 --help | --hel | -h )
15888 $as_echo "$ac_cs_usage"; exit ;;
15889 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15890 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15891 ac_cs_silent=: ;;
15892
15893 # This is an error.
15894 -*) as_fn_error $? "unrecognized option: \`$1'
15895 Try \`$0 --help' for more information." ;;
15896
15897 *) as_fn_append ac_config_targets " $1"
15898 ac_need_defaults=false ;;
15899
15900 esac
15901 shift
15902 done
15903
15904 ac_configure_extra_args=
15905
15906 if $ac_cs_silent; then
15907 exec 6>/dev/null
15908 ac_configure_extra_args="$ac_configure_extra_args --silent"
15909 fi
15910
15911 _ACEOF
15912 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15913 if \$ac_cs_recheck; then
15914 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15915 shift
15916 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15917 CONFIG_SHELL='$SHELL'
15918 export CONFIG_SHELL
15919 exec "\$@"
15920 fi
15921
15922 _ACEOF
15923 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15924 exec 5>>config.log
15925 {
15926 echo
15927 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15928 ## Running $as_me. ##
15929 _ASBOX
15930 $as_echo "$ac_log"
15931 } >&5
15932
15933 _ACEOF
15934 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15935 #
15936 # INIT-COMMANDS
15937 #
15938 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15939
15940
15941 # The HP-UX ksh and POSIX shell print the target directory to stdout
15942 # if CDPATH is set.
15943 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15944
15945 sed_quote_subst='$sed_quote_subst'
15946 double_quote_subst='$double_quote_subst'
15947 delay_variable_subst='$delay_variable_subst'
15948 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15949 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15950 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15951 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15952 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15953 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15954 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15955 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15956 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15957 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15958 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15959 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15960 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15961 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15962 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15963 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15964 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15965 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15966 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15967 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15968 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15969 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15970 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15971 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15972 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15973 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15974 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15975 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15976 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15977 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15978 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15979 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15980 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15981 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15982 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15983 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15984 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15985 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15986 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15987 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15988 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15989 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15990 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15991 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15992 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15993 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15994 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15995 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15996 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"`'
15997 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15998 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15999 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16000 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16001 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16002 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16003 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16004 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16005 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16006 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16007 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16008 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16009 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16010 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16011 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16012 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16013 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16014 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16015 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16016 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16017 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16018 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16019 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16020 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16021 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16022 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16023 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16024 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16025 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16026 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16027 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16028 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16029 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16030 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16031 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16032 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16033 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16034 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16035 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16036 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16037 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16038 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16039 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16040 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16041 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16042 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16043 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16044 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16045 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16046 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16047 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16048 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16049 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16050 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16051 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16052 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16053 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16054 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16055 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16056 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16057 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16058 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16059 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16060 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16061 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16062 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16063 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16064 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16065 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16066 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16067 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16068 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16069 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16070 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16071 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16072 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16073 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16074 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16075 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16076 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16077 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16078 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16079 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16080 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16081 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16082 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16083 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16084 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16085 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16086 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16087 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16088 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16089 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16090 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16091 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16092 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16093 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16094 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16095 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16096 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16097 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16098 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16099 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16100 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
16101 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16102 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16103 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16104 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16105 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16106 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16107 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16108 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16109 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
16110 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16111 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16112 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16113 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16114 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16115 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16116 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16117 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16118 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16119 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16120 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16121 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16122 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16123
16124 LTCC='$LTCC'
16125 LTCFLAGS='$LTCFLAGS'
16126 compiler='$compiler_DEFAULT'
16127
16128 # A function that is used when there is no print builtin or printf.
16129 func_fallback_echo ()
16130 {
16131 eval 'cat <<_LTECHO_EOF
16132 \$1
16133 _LTECHO_EOF'
16134 }
16135
16136 # Quote evaled strings.
16137 for var in SHELL \
16138 ECHO \
16139 SED \
16140 GREP \
16141 EGREP \
16142 FGREP \
16143 LD \
16144 NM \
16145 LN_S \
16146 lt_SP2NL \
16147 lt_NL2SP \
16148 reload_flag \
16149 OBJDUMP \
16150 deplibs_check_method \
16151 file_magic_cmd \
16152 AR \
16153 AR_FLAGS \
16154 STRIP \
16155 RANLIB \
16156 CC \
16157 CFLAGS \
16158 compiler \
16159 lt_cv_sys_global_symbol_pipe \
16160 lt_cv_sys_global_symbol_to_cdecl \
16161 lt_cv_sys_global_symbol_to_c_name_address \
16162 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16163 lt_prog_compiler_no_builtin_flag \
16164 lt_prog_compiler_wl \
16165 lt_prog_compiler_pic \
16166 lt_prog_compiler_static \
16167 lt_cv_prog_compiler_c_o \
16168 need_locks \
16169 DSYMUTIL \
16170 NMEDIT \
16171 LIPO \
16172 OTOOL \
16173 OTOOL64 \
16174 shrext_cmds \
16175 export_dynamic_flag_spec \
16176 whole_archive_flag_spec \
16177 compiler_needs_object \
16178 with_gnu_ld \
16179 allow_undefined_flag \
16180 no_undefined_flag \
16181 hardcode_libdir_flag_spec \
16182 hardcode_libdir_flag_spec_ld \
16183 hardcode_libdir_separator \
16184 fix_srcfile_path \
16185 exclude_expsyms \
16186 include_expsyms \
16187 file_list_spec \
16188 variables_saved_for_relink \
16189 libname_spec \
16190 library_names_spec \
16191 soname_spec \
16192 install_override_mode \
16193 finish_eval \
16194 old_striplib \
16195 striplib \
16196 compiler_lib_search_dirs \
16197 predep_objects \
16198 postdep_objects \
16199 predeps \
16200 postdeps \
16201 compiler_lib_search_path \
16202 LD_CXX \
16203 reload_flag_CXX \
16204 compiler_CXX \
16205 lt_prog_compiler_no_builtin_flag_CXX \
16206 lt_prog_compiler_wl_CXX \
16207 lt_prog_compiler_pic_CXX \
16208 lt_prog_compiler_static_CXX \
16209 lt_cv_prog_compiler_c_o_CXX \
16210 export_dynamic_flag_spec_CXX \
16211 whole_archive_flag_spec_CXX \
16212 compiler_needs_object_CXX \
16213 with_gnu_ld_CXX \
16214 allow_undefined_flag_CXX \
16215 no_undefined_flag_CXX \
16216 hardcode_libdir_flag_spec_CXX \
16217 hardcode_libdir_flag_spec_ld_CXX \
16218 hardcode_libdir_separator_CXX \
16219 fix_srcfile_path_CXX \
16220 exclude_expsyms_CXX \
16221 include_expsyms_CXX \
16222 file_list_spec_CXX \
16223 compiler_lib_search_dirs_CXX \
16224 predep_objects_CXX \
16225 postdep_objects_CXX \
16226 predeps_CXX \
16227 postdeps_CXX \
16228 compiler_lib_search_path_CXX; do
16229 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16230 *[\\\\\\\`\\"\\\$]*)
16231 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16232 ;;
16233 *)
16234 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16235 ;;
16236 esac
16237 done
16238
16239 # Double-quote double-evaled strings.
16240 for var in reload_cmds \
16241 old_postinstall_cmds \
16242 old_postuninstall_cmds \
16243 old_archive_cmds \
16244 extract_expsyms_cmds \
16245 old_archive_from_new_cmds \
16246 old_archive_from_expsyms_cmds \
16247 archive_cmds \
16248 archive_expsym_cmds \
16249 module_cmds \
16250 module_expsym_cmds \
16251 export_symbols_cmds \
16252 prelink_cmds \
16253 postinstall_cmds \
16254 postuninstall_cmds \
16255 finish_cmds \
16256 sys_lib_search_path_spec \
16257 sys_lib_dlsearch_path_spec \
16258 reload_cmds_CXX \
16259 old_archive_cmds_CXX \
16260 old_archive_from_new_cmds_CXX \
16261 old_archive_from_expsyms_cmds_CXX \
16262 archive_cmds_CXX \
16263 archive_expsym_cmds_CXX \
16264 module_cmds_CXX \
16265 module_expsym_cmds_CXX \
16266 export_symbols_cmds_CXX \
16267 prelink_cmds_CXX; do
16268 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16269 *[\\\\\\\`\\"\\\$]*)
16270 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16271 ;;
16272 *)
16273 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16274 ;;
16275 esac
16276 done
16277
16278 ac_aux_dir='$ac_aux_dir'
16279 xsi_shell='$xsi_shell'
16280 lt_shell_append='$lt_shell_append'
16281
16282 # See if we are running on zsh, and set the options which allow our
16283 # commands through without removal of \ escapes INIT.
16284 if test -n "\${ZSH_VERSION+set}" ; then
16285 setopt NO_GLOB_SUBST
16286 fi
16287
16288
16289 PACKAGE='$PACKAGE'
16290 VERSION='$VERSION'
16291 TIMESTAMP='$TIMESTAMP'
16292 RM='$RM'
16293 ofile='$ofile'
16294
16295
16296
16297
16298
16299
16300 _ACEOF
16301
16302 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16303
16304 # Handling of arguments.
16305 for ac_config_target in $ac_config_targets
16306 do
16307 case $ac_config_target in
16308 "cc1plugin-config.h") CONFIG_HEADERS="$CONFIG_HEADERS cc1plugin-config.h" ;;
16309 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16310 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16311 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16312
16313 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16314 esac
16315 done
16316
16317
16318 # If the user did not use the arguments to specify the items to instantiate,
16319 # then the envvar interface is used. Set only those that are not.
16320 # We use the long form for the default assignment because of an extremely
16321 # bizarre bug on SunOS 4.1.3.
16322 if $ac_need_defaults; then
16323 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16324 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16325 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16326 fi
16327
16328 # Have a temporary directory for convenience. Make it in the build tree
16329 # simply because there is no reason against having it here, and in addition,
16330 # creating and moving files from /tmp can sometimes cause problems.
16331 # Hook for its removal unless debugging.
16332 # Note that there is a small window in which the directory will not be cleaned:
16333 # after its creation but before its name has been assigned to `$tmp'.
16334 $debug ||
16335 {
16336 tmp= ac_tmp=
16337 trap 'exit_status=$?
16338 : "${ac_tmp:=$tmp}"
16339 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16340 ' 0
16341 trap 'as_fn_exit 1' 1 2 13 15
16342 }
16343 # Create a (secure) tmp directory for tmp files.
16344
16345 {
16346 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16347 test -d "$tmp"
16348 } ||
16349 {
16350 tmp=./conf$$-$RANDOM
16351 (umask 077 && mkdir "$tmp")
16352 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16353 ac_tmp=$tmp
16354
16355 # Set up the scripts for CONFIG_FILES section.
16356 # No need to generate them if there are no CONFIG_FILES.
16357 # This happens for instance with `./config.status config.h'.
16358 if test -n "$CONFIG_FILES"; then
16359
16360
16361 ac_cr=`echo X | tr X '\015'`
16362 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16363 # But we know of no other shell where ac_cr would be empty at this
16364 # point, so we can use a bashism as a fallback.
16365 if test "x$ac_cr" = x; then
16366 eval ac_cr=\$\'\\r\'
16367 fi
16368 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16369 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16370 ac_cs_awk_cr='\\r'
16371 else
16372 ac_cs_awk_cr=$ac_cr
16373 fi
16374
16375 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16376 _ACEOF
16377
16378
16379 {
16380 echo "cat >conf$$subs.awk <<_ACEOF" &&
16381 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16382 echo "_ACEOF"
16383 } >conf$$subs.sh ||
16384 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16385 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16386 ac_delim='%!_!# '
16387 for ac_last_try in false false false false false :; do
16388 . ./conf$$subs.sh ||
16389 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16390
16391 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16392 if test $ac_delim_n = $ac_delim_num; then
16393 break
16394 elif $ac_last_try; then
16395 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16396 else
16397 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16398 fi
16399 done
16400 rm -f conf$$subs.sh
16401
16402 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16403 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16404 _ACEOF
16405 sed -n '
16406 h
16407 s/^/S["/; s/!.*/"]=/
16408 p
16409 g
16410 s/^[^!]*!//
16411 :repl
16412 t repl
16413 s/'"$ac_delim"'$//
16414 t delim
16415 :nl
16416 h
16417 s/\(.\{148\}\)..*/\1/
16418 t more1
16419 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16420 p
16421 n
16422 b repl
16423 :more1
16424 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16425 p
16426 g
16427 s/.\{148\}//
16428 t nl
16429 :delim
16430 h
16431 s/\(.\{148\}\)..*/\1/
16432 t more2
16433 s/["\\]/\\&/g; s/^/"/; s/$/"/
16434 p
16435 b
16436 :more2
16437 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16438 p
16439 g
16440 s/.\{148\}//
16441 t delim
16442 ' <conf$$subs.awk | sed '
16443 /^[^""]/{
16444 N
16445 s/\n//
16446 }
16447 ' >>$CONFIG_STATUS || ac_write_fail=1
16448 rm -f conf$$subs.awk
16449 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16450 _ACAWK
16451 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16452 for (key in S) S_is_set[key] = 1
16453 FS = "\a"
16454
16455 }
16456 {
16457 line = $ 0
16458 nfields = split(line, field, "@")
16459 substed = 0
16460 len = length(field[1])
16461 for (i = 2; i < nfields; i++) {
16462 key = field[i]
16463 keylen = length(key)
16464 if (S_is_set[key]) {
16465 value = S[key]
16466 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16467 len += length(value) + length(field[++i])
16468 substed = 1
16469 } else
16470 len += 1 + keylen
16471 }
16472
16473 print line
16474 }
16475
16476 _ACAWK
16477 _ACEOF
16478 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16479 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16480 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16481 else
16482 cat
16483 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16484 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16485 _ACEOF
16486
16487 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16488 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16489 # trailing colons and then remove the whole line if VPATH becomes empty
16490 # (actually we leave an empty line to preserve line numbers).
16491 if test "x$srcdir" = x.; then
16492 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16493 h
16494 s///
16495 s/^/:/
16496 s/[ ]*$/:/
16497 s/:\$(srcdir):/:/g
16498 s/:\${srcdir}:/:/g
16499 s/:@srcdir@:/:/g
16500 s/^:*//
16501 s/:*$//
16502 x
16503 s/\(=[ ]*\).*/\1/
16504 G
16505 s/\n//
16506 s/^[^=]*=[ ]*$//
16507 }'
16508 fi
16509
16510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16511 fi # test -n "$CONFIG_FILES"
16512
16513 # Set up the scripts for CONFIG_HEADERS section.
16514 # No need to generate them if there are no CONFIG_HEADERS.
16515 # This happens for instance with `./config.status Makefile'.
16516 if test -n "$CONFIG_HEADERS"; then
16517 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16518 BEGIN {
16519 _ACEOF
16520
16521 # Transform confdefs.h into an awk script `defines.awk', embedded as
16522 # here-document in config.status, that substitutes the proper values into
16523 # config.h.in to produce config.h.
16524
16525 # Create a delimiter string that does not exist in confdefs.h, to ease
16526 # handling of long lines.
16527 ac_delim='%!_!# '
16528 for ac_last_try in false false :; do
16529 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16530 if test -z "$ac_tt"; then
16531 break
16532 elif $ac_last_try; then
16533 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16534 else
16535 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16536 fi
16537 done
16538
16539 # For the awk script, D is an array of macro values keyed by name,
16540 # likewise P contains macro parameters if any. Preserve backslash
16541 # newline sequences.
16542
16543 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16544 sed -n '
16545 s/.\{148\}/&'"$ac_delim"'/g
16546 t rset
16547 :rset
16548 s/^[ ]*#[ ]*define[ ][ ]*/ /
16549 t def
16550 d
16551 :def
16552 s/\\$//
16553 t bsnl
16554 s/["\\]/\\&/g
16555 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16556 D["\1"]=" \3"/p
16557 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16558 d
16559 :bsnl
16560 s/["\\]/\\&/g
16561 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16562 D["\1"]=" \3\\\\\\n"\\/p
16563 t cont
16564 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16565 t cont
16566 d
16567 :cont
16568 n
16569 s/.\{148\}/&'"$ac_delim"'/g
16570 t clear
16571 :clear
16572 s/\\$//
16573 t bsnlc
16574 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16575 d
16576 :bsnlc
16577 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16578 b cont
16579 ' <confdefs.h | sed '
16580 s/'"$ac_delim"'/"\\\
16581 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16582
16583 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16584 for (key in D) D_is_set[key] = 1
16585 FS = "\a"
16586 }
16587 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16588 line = \$ 0
16589 split(line, arg, " ")
16590 if (arg[1] == "#") {
16591 defundef = arg[2]
16592 mac1 = arg[3]
16593 } else {
16594 defundef = substr(arg[1], 2)
16595 mac1 = arg[2]
16596 }
16597 split(mac1, mac2, "(") #)
16598 macro = mac2[1]
16599 prefix = substr(line, 1, index(line, defundef) - 1)
16600 if (D_is_set[macro]) {
16601 # Preserve the white space surrounding the "#".
16602 print prefix "define", macro P[macro] D[macro]
16603 next
16604 } else {
16605 # Replace #undef with comments. This is necessary, for example,
16606 # in the case of _POSIX_SOURCE, which is predefined and required
16607 # on some systems where configure will not decide to define it.
16608 if (defundef == "undef") {
16609 print "/*", prefix defundef, macro, "*/"
16610 next
16611 }
16612 }
16613 }
16614 { print }
16615 _ACAWK
16616 _ACEOF
16617 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16618 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16619 fi # test -n "$CONFIG_HEADERS"
16620
16621
16622 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16623 shift
16624 for ac_tag
16625 do
16626 case $ac_tag in
16627 :[FHLC]) ac_mode=$ac_tag; continue;;
16628 esac
16629 case $ac_mode$ac_tag in
16630 :[FHL]*:*);;
16631 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16632 :[FH]-) ac_tag=-:-;;
16633 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16634 esac
16635 ac_save_IFS=$IFS
16636 IFS=:
16637 set x $ac_tag
16638 IFS=$ac_save_IFS
16639 shift
16640 ac_file=$1
16641 shift
16642
16643 case $ac_mode in
16644 :L) ac_source=$1;;
16645 :[FH])
16646 ac_file_inputs=
16647 for ac_f
16648 do
16649 case $ac_f in
16650 -) ac_f="$ac_tmp/stdin";;
16651 *) # Look for the file first in the build tree, then in the source tree
16652 # (if the path is not absolute). The absolute path cannot be DOS-style,
16653 # because $ac_f cannot contain `:'.
16654 test -f "$ac_f" ||
16655 case $ac_f in
16656 [\\/$]*) false;;
16657 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16658 esac ||
16659 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16660 esac
16661 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16662 as_fn_append ac_file_inputs " '$ac_f'"
16663 done
16664
16665 # Let's still pretend it is `configure' which instantiates (i.e., don't
16666 # use $as_me), people would be surprised to read:
16667 # /* config.h. Generated by config.status. */
16668 configure_input='Generated from '`
16669 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16670 `' by configure.'
16671 if test x"$ac_file" != x-; then
16672 configure_input="$ac_file. $configure_input"
16673 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16674 $as_echo "$as_me: creating $ac_file" >&6;}
16675 fi
16676 # Neutralize special characters interpreted by sed in replacement strings.
16677 case $configure_input in #(
16678 *\&* | *\|* | *\\* )
16679 ac_sed_conf_input=`$as_echo "$configure_input" |
16680 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16681 *) ac_sed_conf_input=$configure_input;;
16682 esac
16683
16684 case $ac_tag in
16685 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16686 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16687 esac
16688 ;;
16689 esac
16690
16691 ac_dir=`$as_dirname -- "$ac_file" ||
16692 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16693 X"$ac_file" : 'X\(//\)[^/]' \| \
16694 X"$ac_file" : 'X\(//\)$' \| \
16695 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16696 $as_echo X"$ac_file" |
16697 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16698 s//\1/
16699 q
16700 }
16701 /^X\(\/\/\)[^/].*/{
16702 s//\1/
16703 q
16704 }
16705 /^X\(\/\/\)$/{
16706 s//\1/
16707 q
16708 }
16709 /^X\(\/\).*/{
16710 s//\1/
16711 q
16712 }
16713 s/.*/./; q'`
16714 as_dir="$ac_dir"; as_fn_mkdir_p
16715 ac_builddir=.
16716
16717 case "$ac_dir" in
16718 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16719 *)
16720 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16721 # A ".." for each directory in $ac_dir_suffix.
16722 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16723 case $ac_top_builddir_sub in
16724 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16725 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16726 esac ;;
16727 esac
16728 ac_abs_top_builddir=$ac_pwd
16729 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16730 # for backward compatibility:
16731 ac_top_builddir=$ac_top_build_prefix
16732
16733 case $srcdir in
16734 .) # We are building in place.
16735 ac_srcdir=.
16736 ac_top_srcdir=$ac_top_builddir_sub
16737 ac_abs_top_srcdir=$ac_pwd ;;
16738 [\\/]* | ?:[\\/]* ) # Absolute name.
16739 ac_srcdir=$srcdir$ac_dir_suffix;
16740 ac_top_srcdir=$srcdir
16741 ac_abs_top_srcdir=$srcdir ;;
16742 *) # Relative name.
16743 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16744 ac_top_srcdir=$ac_top_build_prefix$srcdir
16745 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16746 esac
16747 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16748
16749
16750 case $ac_mode in
16751 :F)
16752 #
16753 # CONFIG_FILE
16754 #
16755
16756 case $INSTALL in
16757 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16758 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16759 esac
16760 ac_MKDIR_P=$MKDIR_P
16761 case $MKDIR_P in
16762 [\\/$]* | ?:[\\/]* ) ;;
16763 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16764 esac
16765 _ACEOF
16766
16767 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16768 # If the template does not know about datarootdir, expand it.
16769 # FIXME: This hack should be removed a few years after 2.60.
16770 ac_datarootdir_hack=; ac_datarootdir_seen=
16771 ac_sed_dataroot='
16772 /datarootdir/ {
16773 p
16774 q
16775 }
16776 /@datadir@/p
16777 /@docdir@/p
16778 /@infodir@/p
16779 /@localedir@/p
16780 /@mandir@/p'
16781 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16782 *datarootdir*) ac_datarootdir_seen=yes;;
16783 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16785 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16786 _ACEOF
16787 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16788 ac_datarootdir_hack='
16789 s&@datadir@&$datadir&g
16790 s&@docdir@&$docdir&g
16791 s&@infodir@&$infodir&g
16792 s&@localedir@&$localedir&g
16793 s&@mandir@&$mandir&g
16794 s&\\\${datarootdir}&$datarootdir&g' ;;
16795 esac
16796 _ACEOF
16797
16798 # Neutralize VPATH when `$srcdir' = `.'.
16799 # Shell code in configure.ac might set extrasub.
16800 # FIXME: do we really want to maintain this feature?
16801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16802 ac_sed_extra="$ac_vpsub
16803 $extrasub
16804 _ACEOF
16805 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16806 :t
16807 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16808 s|@configure_input@|$ac_sed_conf_input|;t t
16809 s&@top_builddir@&$ac_top_builddir_sub&;t t
16810 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16811 s&@srcdir@&$ac_srcdir&;t t
16812 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16813 s&@top_srcdir@&$ac_top_srcdir&;t t
16814 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16815 s&@builddir@&$ac_builddir&;t t
16816 s&@abs_builddir@&$ac_abs_builddir&;t t
16817 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16818 s&@INSTALL@&$ac_INSTALL&;t t
16819 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16820 $ac_datarootdir_hack
16821 "
16822 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16823 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16824
16825 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16826 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16827 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16828 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16830 which seems to be undefined. Please make sure it is defined" >&5
16831 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16832 which seems to be undefined. Please make sure it is defined" >&2;}
16833
16834 rm -f "$ac_tmp/stdin"
16835 case $ac_file in
16836 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16837 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16838 esac \
16839 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16840 ;;
16841 :H)
16842 #
16843 # CONFIG_HEADER
16844 #
16845 if test x"$ac_file" != x-; then
16846 {
16847 $as_echo "/* $configure_input */" \
16848 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16849 } >"$ac_tmp/config.h" \
16850 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16851 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16852 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16853 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16854 else
16855 rm -f "$ac_file"
16856 mv "$ac_tmp/config.h" "$ac_file" \
16857 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16858 fi
16859 else
16860 $as_echo "/* $configure_input */" \
16861 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16862 || as_fn_error $? "could not create -" "$LINENO" 5
16863 fi
16864 # Compute "$ac_file"'s index in $config_headers.
16865 _am_arg="$ac_file"
16866 _am_stamp_count=1
16867 for _am_header in $config_headers :; do
16868 case $_am_header in
16869 $_am_arg | $_am_arg:* )
16870 break ;;
16871 * )
16872 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16873 esac
16874 done
16875 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16876 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16877 X"$_am_arg" : 'X\(//\)[^/]' \| \
16878 X"$_am_arg" : 'X\(//\)$' \| \
16879 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16880 $as_echo X"$_am_arg" |
16881 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16882 s//\1/
16883 q
16884 }
16885 /^X\(\/\/\)[^/].*/{
16886 s//\1/
16887 q
16888 }
16889 /^X\(\/\/\)$/{
16890 s//\1/
16891 q
16892 }
16893 /^X\(\/\).*/{
16894 s//\1/
16895 q
16896 }
16897 s/.*/./; q'`/stamp-h$_am_stamp_count
16898 ;;
16899
16900 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16901 $as_echo "$as_me: executing $ac_file commands" >&6;}
16902 ;;
16903 esac
16904
16905
16906 case $ac_file$ac_mode in
16907 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16908 # Older Autoconf quotes --file arguments for eval, but not when files
16909 # are listed without --file. Let's play safe and only enable the eval
16910 # if we detect the quoting.
16911 case $CONFIG_FILES in
16912 *\'*) eval set x "$CONFIG_FILES" ;;
16913 *) set x $CONFIG_FILES ;;
16914 esac
16915 shift
16916 for mf
16917 do
16918 # Strip MF so we end up with the name of the file.
16919 mf=`echo "$mf" | sed -e 's/:.*$//'`
16920 # Check whether this is an Automake generated Makefile or not.
16921 # We used to match only the files named 'Makefile.in', but
16922 # some people rename them; so instead we look at the file content.
16923 # Grep'ing the first line is not enough: some people post-process
16924 # each Makefile.in and add a new line on top of each file to say so.
16925 # Grep'ing the whole file is not good either: AIX grep has a line
16926 # limit of 2048, but all sed's we know have understand at least 4000.
16927 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16928 dirpart=`$as_dirname -- "$mf" ||
16929 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16930 X"$mf" : 'X\(//\)[^/]' \| \
16931 X"$mf" : 'X\(//\)$' \| \
16932 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16933 $as_echo X"$mf" |
16934 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16935 s//\1/
16936 q
16937 }
16938 /^X\(\/\/\)[^/].*/{
16939 s//\1/
16940 q
16941 }
16942 /^X\(\/\/\)$/{
16943 s//\1/
16944 q
16945 }
16946 /^X\(\/\).*/{
16947 s//\1/
16948 q
16949 }
16950 s/.*/./; q'`
16951 else
16952 continue
16953 fi
16954 # Extract the definition of DEPDIR, am__include, and am__quote
16955 # from the Makefile without running 'make'.
16956 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16957 test -z "$DEPDIR" && continue
16958 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16959 test -z "$am__include" && continue
16960 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16961 # Find all dependency output files, they are included files with
16962 # $(DEPDIR) in their names. We invoke sed twice because it is the
16963 # simplest approach to changing $(DEPDIR) to its actual value in the
16964 # expansion.
16965 for file in `sed -n "
16966 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16967 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16968 # Make sure the directory exists.
16969 test -f "$dirpart/$file" && continue
16970 fdir=`$as_dirname -- "$file" ||
16971 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16972 X"$file" : 'X\(//\)[^/]' \| \
16973 X"$file" : 'X\(//\)$' \| \
16974 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16975 $as_echo X"$file" |
16976 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16977 s//\1/
16978 q
16979 }
16980 /^X\(\/\/\)[^/].*/{
16981 s//\1/
16982 q
16983 }
16984 /^X\(\/\/\)$/{
16985 s//\1/
16986 q
16987 }
16988 /^X\(\/\).*/{
16989 s//\1/
16990 q
16991 }
16992 s/.*/./; q'`
16993 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16994 # echo "creating $dirpart/$file"
16995 echo '# dummy' > "$dirpart/$file"
16996 done
16997 done
16998 }
16999 ;;
17000 "libtool":C)
17001
17002 # See if we are running on zsh, and set the options which allow our
17003 # commands through without removal of \ escapes.
17004 if test -n "${ZSH_VERSION+set}" ; then
17005 setopt NO_GLOB_SUBST
17006 fi
17007
17008 cfgfile="${ofile}T"
17009 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17010 $RM "$cfgfile"
17011
17012 cat <<_LT_EOF >> "$cfgfile"
17013 #! $SHELL
17014
17015 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17016 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17017 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17018 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17019 #
17020 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17021 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17022 # Written by Gordon Matzigkeit, 1996
17023 #
17024 # This file is part of GNU Libtool.
17025 #
17026 # GNU Libtool is free software; you can redistribute it and/or
17027 # modify it under the terms of the GNU General Public License as
17028 # published by the Free Software Foundation; either version 2 of
17029 # the License, or (at your option) any later version.
17030 #
17031 # As a special exception to the GNU General Public License,
17032 # if you distribute this file as part of a program or library that
17033 # is built using GNU Libtool, you may include this file under the
17034 # same distribution terms that you use for the rest of that program.
17035 #
17036 # GNU Libtool is distributed in the hope that it will be useful,
17037 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17038 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17039 # GNU General Public License for more details.
17040 #
17041 # You should have received a copy of the GNU General Public License
17042 # along with GNU Libtool; see the file COPYING. If not, a copy
17043 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17044 # obtained by writing to the Free Software Foundation, Inc.,
17045 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17046
17047
17048 # The names of the tagged configurations supported by this script.
17049 available_tags="CXX "
17050
17051 # ### BEGIN LIBTOOL CONFIG
17052
17053 # Which release of libtool.m4 was used?
17054 macro_version=$macro_version
17055 macro_revision=$macro_revision
17056
17057 # Whether or not to build static libraries.
17058 build_old_libs=$enable_static
17059
17060 # Whether or not to build shared libraries.
17061 build_libtool_libs=$enable_shared
17062
17063 # What type of objects to build.
17064 pic_mode=$pic_mode
17065
17066 # Whether or not to optimize for fast installation.
17067 fast_install=$enable_fast_install
17068
17069 # Shell to use when invoking shell scripts.
17070 SHELL=$lt_SHELL
17071
17072 # An echo program that protects backslashes.
17073 ECHO=$lt_ECHO
17074
17075 # The host system.
17076 host_alias=$host_alias
17077 host=$host
17078 host_os=$host_os
17079
17080 # The build system.
17081 build_alias=$build_alias
17082 build=$build
17083 build_os=$build_os
17084
17085 # A sed program that does not truncate output.
17086 SED=$lt_SED
17087
17088 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17089 Xsed="\$SED -e 1s/^X//"
17090
17091 # A grep program that handles long lines.
17092 GREP=$lt_GREP
17093
17094 # An ERE matcher.
17095 EGREP=$lt_EGREP
17096
17097 # A literal string matcher.
17098 FGREP=$lt_FGREP
17099
17100 # A BSD- or MS-compatible name lister.
17101 NM=$lt_NM
17102
17103 # Whether we need soft or hard links.
17104 LN_S=$lt_LN_S
17105
17106 # What is the maximum length of a command?
17107 max_cmd_len=$max_cmd_len
17108
17109 # Object file suffix (normally "o").
17110 objext=$ac_objext
17111
17112 # Executable file suffix (normally "").
17113 exeext=$exeext
17114
17115 # whether the shell understands "unset".
17116 lt_unset=$lt_unset
17117
17118 # turn spaces into newlines.
17119 SP2NL=$lt_lt_SP2NL
17120
17121 # turn newlines into spaces.
17122 NL2SP=$lt_lt_NL2SP
17123
17124 # An object symbol dumper.
17125 OBJDUMP=$lt_OBJDUMP
17126
17127 # Method to check whether dependent libraries are shared objects.
17128 deplibs_check_method=$lt_deplibs_check_method
17129
17130 # Command to use when deplibs_check_method == "file_magic".
17131 file_magic_cmd=$lt_file_magic_cmd
17132
17133 # The archiver.
17134 AR=$lt_AR
17135 AR_FLAGS=$lt_AR_FLAGS
17136
17137 # A symbol stripping program.
17138 STRIP=$lt_STRIP
17139
17140 # Commands used to install an old-style archive.
17141 RANLIB=$lt_RANLIB
17142 old_postinstall_cmds=$lt_old_postinstall_cmds
17143 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17144
17145 # Whether to use a lock for old archive extraction.
17146 lock_old_archive_extraction=$lock_old_archive_extraction
17147
17148 # A C compiler.
17149 LTCC=$lt_CC
17150
17151 # LTCC compiler flags.
17152 LTCFLAGS=$lt_CFLAGS
17153
17154 # Take the output of nm and produce a listing of raw symbols and C names.
17155 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17156
17157 # Transform the output of nm in a proper C declaration.
17158 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17159
17160 # Transform the output of nm in a C name address pair.
17161 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17162
17163 # Transform the output of nm in a C name address pair when lib prefix is needed.
17164 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17165
17166 # The name of the directory that contains temporary libtool files.
17167 objdir=$objdir
17168
17169 # Used to examine libraries when file_magic_cmd begins with "file".
17170 MAGIC_CMD=$MAGIC_CMD
17171
17172 # Must we lock files when doing compilation?
17173 need_locks=$lt_need_locks
17174
17175 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17176 DSYMUTIL=$lt_DSYMUTIL
17177
17178 # Tool to change global to local symbols on Mac OS X.
17179 NMEDIT=$lt_NMEDIT
17180
17181 # Tool to manipulate fat objects and archives on Mac OS X.
17182 LIPO=$lt_LIPO
17183
17184 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17185 OTOOL=$lt_OTOOL
17186
17187 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17188 OTOOL64=$lt_OTOOL64
17189
17190 # Old archive suffix (normally "a").
17191 libext=$libext
17192
17193 # Shared library suffix (normally ".so").
17194 shrext_cmds=$lt_shrext_cmds
17195
17196 # The commands to extract the exported symbol list from a shared archive.
17197 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17198
17199 # Variables whose values should be saved in libtool wrapper scripts and
17200 # restored at link time.
17201 variables_saved_for_relink=$lt_variables_saved_for_relink
17202
17203 # Do we need the "lib" prefix for modules?
17204 need_lib_prefix=$need_lib_prefix
17205
17206 # Do we need a version for libraries?
17207 need_version=$need_version
17208
17209 # Library versioning type.
17210 version_type=$version_type
17211
17212 # Shared library runtime path variable.
17213 runpath_var=$runpath_var
17214
17215 # Shared library path variable.
17216 shlibpath_var=$shlibpath_var
17217
17218 # Is shlibpath searched before the hard-coded library search path?
17219 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17220
17221 # Format of library name prefix.
17222 libname_spec=$lt_libname_spec
17223
17224 # List of archive names. First name is the real one, the rest are links.
17225 # The last name is the one that the linker finds with -lNAME
17226 library_names_spec=$lt_library_names_spec
17227
17228 # The coded name of the library, if different from the real name.
17229 soname_spec=$lt_soname_spec
17230
17231 # Permission mode override for installation of shared libraries.
17232 install_override_mode=$lt_install_override_mode
17233
17234 # Command to use after installation of a shared archive.
17235 postinstall_cmds=$lt_postinstall_cmds
17236
17237 # Command to use after uninstallation of a shared archive.
17238 postuninstall_cmds=$lt_postuninstall_cmds
17239
17240 # Commands used to finish a libtool library installation in a directory.
17241 finish_cmds=$lt_finish_cmds
17242
17243 # As "finish_cmds", except a single script fragment to be evaled but
17244 # not shown.
17245 finish_eval=$lt_finish_eval
17246
17247 # Whether we should hardcode library paths into libraries.
17248 hardcode_into_libs=$hardcode_into_libs
17249
17250 # Compile-time system search path for libraries.
17251 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17252
17253 # Run-time system search path for libraries.
17254 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17255
17256 # Whether dlopen is supported.
17257 dlopen_support=$enable_dlopen
17258
17259 # Whether dlopen of programs is supported.
17260 dlopen_self=$enable_dlopen_self
17261
17262 # Whether dlopen of statically linked programs is supported.
17263 dlopen_self_static=$enable_dlopen_self_static
17264
17265 # Commands to strip libraries.
17266 old_striplib=$lt_old_striplib
17267 striplib=$lt_striplib
17268
17269
17270 # The linker used to build libraries.
17271 LD=$lt_LD
17272
17273 # How to create reloadable object files.
17274 reload_flag=$lt_reload_flag
17275 reload_cmds=$lt_reload_cmds
17276
17277 # Commands used to build an old-style archive.
17278 old_archive_cmds=$lt_old_archive_cmds
17279
17280 # A language specific compiler.
17281 CC=$lt_compiler
17282
17283 # Is the compiler the GNU compiler?
17284 with_gcc=$GCC
17285
17286 # Compiler flag to turn off builtin functions.
17287 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17288
17289 # How to pass a linker flag through the compiler.
17290 wl=$lt_lt_prog_compiler_wl
17291
17292 # Additional compiler flags for building library objects.
17293 pic_flag=$lt_lt_prog_compiler_pic
17294
17295 # Compiler flag to prevent dynamic linking.
17296 link_static_flag=$lt_lt_prog_compiler_static
17297
17298 # Does compiler simultaneously support -c and -o options?
17299 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17300
17301 # Whether or not to add -lc for building shared libraries.
17302 build_libtool_need_lc=$archive_cmds_need_lc
17303
17304 # Whether or not to disallow shared libs when runtime libs are static.
17305 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17306
17307 # Compiler flag to allow reflexive dlopens.
17308 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17309
17310 # Compiler flag to generate shared objects directly from archives.
17311 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17312
17313 # Whether the compiler copes with passing no objects directly.
17314 compiler_needs_object=$lt_compiler_needs_object
17315
17316 # Create an old-style archive from a shared archive.
17317 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17318
17319 # Create a temporary old-style archive to link instead of a shared archive.
17320 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17321
17322 # Commands used to build a shared archive.
17323 archive_cmds=$lt_archive_cmds
17324 archive_expsym_cmds=$lt_archive_expsym_cmds
17325
17326 # Commands used to build a loadable module if different from building
17327 # a shared archive.
17328 module_cmds=$lt_module_cmds
17329 module_expsym_cmds=$lt_module_expsym_cmds
17330
17331 # Whether we are building with GNU ld or not.
17332 with_gnu_ld=$lt_with_gnu_ld
17333
17334 # Flag that allows shared libraries with undefined symbols to be built.
17335 allow_undefined_flag=$lt_allow_undefined_flag
17336
17337 # Flag that enforces no undefined symbols.
17338 no_undefined_flag=$lt_no_undefined_flag
17339
17340 # Flag to hardcode \$libdir into a binary during linking.
17341 # This must work even if \$libdir does not exist
17342 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17343
17344 # If ld is used when linking, flag to hardcode \$libdir into a binary
17345 # during linking. This must work even if \$libdir does not exist.
17346 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17347
17348 # Whether we need a single "-rpath" flag with a separated argument.
17349 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17350
17351 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17352 # DIR into the resulting binary.
17353 hardcode_direct=$hardcode_direct
17354
17355 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17356 # DIR into the resulting binary and the resulting library dependency is
17357 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17358 # library is relocated.
17359 hardcode_direct_absolute=$hardcode_direct_absolute
17360
17361 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17362 # into the resulting binary.
17363 hardcode_minus_L=$hardcode_minus_L
17364
17365 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17366 # into the resulting binary.
17367 hardcode_shlibpath_var=$hardcode_shlibpath_var
17368
17369 # Set to "yes" if building a shared library automatically hardcodes DIR
17370 # into the library and all subsequent libraries and executables linked
17371 # against it.
17372 hardcode_automatic=$hardcode_automatic
17373
17374 # Set to yes if linker adds runtime paths of dependent libraries
17375 # to runtime path list.
17376 inherit_rpath=$inherit_rpath
17377
17378 # Whether libtool must link a program against all its dependency libraries.
17379 link_all_deplibs=$link_all_deplibs
17380
17381 # Fix the shell variable \$srcfile for the compiler.
17382 fix_srcfile_path=$lt_fix_srcfile_path
17383
17384 # Set to "yes" if exported symbols are required.
17385 always_export_symbols=$always_export_symbols
17386
17387 # The commands to list exported symbols.
17388 export_symbols_cmds=$lt_export_symbols_cmds
17389
17390 # Symbols that should not be listed in the preloaded symbols.
17391 exclude_expsyms=$lt_exclude_expsyms
17392
17393 # Symbols that must always be exported.
17394 include_expsyms=$lt_include_expsyms
17395
17396 # Commands necessary for linking programs (against libraries) with templates.
17397 prelink_cmds=$lt_prelink_cmds
17398
17399 # Specify filename containing input files.
17400 file_list_spec=$lt_file_list_spec
17401
17402 # How to hardcode a shared library path into an executable.
17403 hardcode_action=$hardcode_action
17404
17405 # The directories searched by this compiler when creating a shared library.
17406 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17407
17408 # Dependencies to place before and after the objects being linked to
17409 # create a shared library.
17410 predep_objects=$lt_predep_objects
17411 postdep_objects=$lt_postdep_objects
17412 predeps=$lt_predeps
17413 postdeps=$lt_postdeps
17414
17415 # The library search path used internally by the compiler when linking
17416 # a shared library.
17417 compiler_lib_search_path=$lt_compiler_lib_search_path
17418
17419 # ### END LIBTOOL CONFIG
17420
17421 _LT_EOF
17422
17423 case $host_os in
17424 aix3*)
17425 cat <<\_LT_EOF >> "$cfgfile"
17426 # AIX sometimes has problems with the GCC collect2 program. For some
17427 # reason, if we set the COLLECT_NAMES environment variable, the problems
17428 # vanish in a puff of smoke.
17429 if test "X${COLLECT_NAMES+set}" != Xset; then
17430 COLLECT_NAMES=
17431 export COLLECT_NAMES
17432 fi
17433 _LT_EOF
17434 ;;
17435 esac
17436
17437
17438 ltmain="$ac_aux_dir/ltmain.sh"
17439
17440
17441 # We use sed instead of cat because bash on DJGPP gets confused if
17442 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17443 # text mode, it properly converts lines to CR/LF. This bash problem
17444 # is reportedly fixed, but why not run on old versions too?
17445 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17446 || (rm -f "$cfgfile"; exit 1)
17447
17448 case $xsi_shell in
17449 yes)
17450 cat << \_LT_EOF >> "$cfgfile"
17451
17452 # func_dirname file append nondir_replacement
17453 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17454 # otherwise set result to NONDIR_REPLACEMENT.
17455 func_dirname ()
17456 {
17457 case ${1} in
17458 */*) func_dirname_result="${1%/*}${2}" ;;
17459 * ) func_dirname_result="${3}" ;;
17460 esac
17461 }
17462
17463 # func_basename file
17464 func_basename ()
17465 {
17466 func_basename_result="${1##*/}"
17467 }
17468
17469 # func_dirname_and_basename file append nondir_replacement
17470 # perform func_basename and func_dirname in a single function
17471 # call:
17472 # dirname: Compute the dirname of FILE. If nonempty,
17473 # add APPEND to the result, otherwise set result
17474 # to NONDIR_REPLACEMENT.
17475 # value returned in "$func_dirname_result"
17476 # basename: Compute filename of FILE.
17477 # value retuned in "$func_basename_result"
17478 # Implementation must be kept synchronized with func_dirname
17479 # and func_basename. For efficiency, we do not delegate to
17480 # those functions but instead duplicate the functionality here.
17481 func_dirname_and_basename ()
17482 {
17483 case ${1} in
17484 */*) func_dirname_result="${1%/*}${2}" ;;
17485 * ) func_dirname_result="${3}" ;;
17486 esac
17487 func_basename_result="${1##*/}"
17488 }
17489
17490 # func_stripname prefix suffix name
17491 # strip PREFIX and SUFFIX off of NAME.
17492 # PREFIX and SUFFIX must not contain globbing or regex special
17493 # characters, hashes, percent signs, but SUFFIX may contain a leading
17494 # dot (in which case that matches only a dot).
17495 func_stripname ()
17496 {
17497 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17498 # positional parameters, so assign one to ordinary parameter first.
17499 func_stripname_result=${3}
17500 func_stripname_result=${func_stripname_result#"${1}"}
17501 func_stripname_result=${func_stripname_result%"${2}"}
17502 }
17503
17504 # func_opt_split
17505 func_opt_split ()
17506 {
17507 func_opt_split_opt=${1%%=*}
17508 func_opt_split_arg=${1#*=}
17509 }
17510
17511 # func_lo2o object
17512 func_lo2o ()
17513 {
17514 case ${1} in
17515 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17516 *) func_lo2o_result=${1} ;;
17517 esac
17518 }
17519
17520 # func_xform libobj-or-source
17521 func_xform ()
17522 {
17523 func_xform_result=${1%.*}.lo
17524 }
17525
17526 # func_arith arithmetic-term...
17527 func_arith ()
17528 {
17529 func_arith_result=$(( $* ))
17530 }
17531
17532 # func_len string
17533 # STRING may not start with a hyphen.
17534 func_len ()
17535 {
17536 func_len_result=${#1}
17537 }
17538
17539 _LT_EOF
17540 ;;
17541 *) # Bourne compatible functions.
17542 cat << \_LT_EOF >> "$cfgfile"
17543
17544 # func_dirname file append nondir_replacement
17545 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17546 # otherwise set result to NONDIR_REPLACEMENT.
17547 func_dirname ()
17548 {
17549 # Extract subdirectory from the argument.
17550 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17551 if test "X$func_dirname_result" = "X${1}"; then
17552 func_dirname_result="${3}"
17553 else
17554 func_dirname_result="$func_dirname_result${2}"
17555 fi
17556 }
17557
17558 # func_basename file
17559 func_basename ()
17560 {
17561 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17562 }
17563
17564
17565 # func_stripname prefix suffix name
17566 # strip PREFIX and SUFFIX off of NAME.
17567 # PREFIX and SUFFIX must not contain globbing or regex special
17568 # characters, hashes, percent signs, but SUFFIX may contain a leading
17569 # dot (in which case that matches only a dot).
17570 # func_strip_suffix prefix name
17571 func_stripname ()
17572 {
17573 case ${2} in
17574 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17575 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17576 esac
17577 }
17578
17579 # sed scripts:
17580 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17581 my_sed_long_arg='1s/^-[^=]*=//'
17582
17583 # func_opt_split
17584 func_opt_split ()
17585 {
17586 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17587 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17588 }
17589
17590 # func_lo2o object
17591 func_lo2o ()
17592 {
17593 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17594 }
17595
17596 # func_xform libobj-or-source
17597 func_xform ()
17598 {
17599 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17600 }
17601
17602 # func_arith arithmetic-term...
17603 func_arith ()
17604 {
17605 func_arith_result=`expr "$@"`
17606 }
17607
17608 # func_len string
17609 # STRING may not start with a hyphen.
17610 func_len ()
17611 {
17612 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17613 }
17614
17615 _LT_EOF
17616 esac
17617
17618 case $lt_shell_append in
17619 yes)
17620 cat << \_LT_EOF >> "$cfgfile"
17621
17622 # func_append var value
17623 # Append VALUE to the end of shell variable VAR.
17624 func_append ()
17625 {
17626 eval "$1+=\$2"
17627 }
17628 _LT_EOF
17629 ;;
17630 *)
17631 cat << \_LT_EOF >> "$cfgfile"
17632
17633 # func_append var value
17634 # Append VALUE to the end of shell variable VAR.
17635 func_append ()
17636 {
17637 eval "$1=\$$1\$2"
17638 }
17639
17640 _LT_EOF
17641 ;;
17642 esac
17643
17644
17645 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17646 || (rm -f "$cfgfile"; exit 1)
17647
17648 mv -f "$cfgfile" "$ofile" ||
17649 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17650 chmod +x "$ofile"
17651
17652
17653 cat <<_LT_EOF >> "$ofile"
17654
17655 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17656
17657 # The linker used to build libraries.
17658 LD=$lt_LD_CXX
17659
17660 # How to create reloadable object files.
17661 reload_flag=$lt_reload_flag_CXX
17662 reload_cmds=$lt_reload_cmds_CXX
17663
17664 # Commands used to build an old-style archive.
17665 old_archive_cmds=$lt_old_archive_cmds_CXX
17666
17667 # A language specific compiler.
17668 CC=$lt_compiler_CXX
17669
17670 # Is the compiler the GNU compiler?
17671 with_gcc=$GCC_CXX
17672
17673 # Compiler flag to turn off builtin functions.
17674 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17675
17676 # How to pass a linker flag through the compiler.
17677 wl=$lt_lt_prog_compiler_wl_CXX
17678
17679 # Additional compiler flags for building library objects.
17680 pic_flag=$lt_lt_prog_compiler_pic_CXX
17681
17682 # Compiler flag to prevent dynamic linking.
17683 link_static_flag=$lt_lt_prog_compiler_static_CXX
17684
17685 # Does compiler simultaneously support -c and -o options?
17686 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17687
17688 # Whether or not to add -lc for building shared libraries.
17689 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17690
17691 # Whether or not to disallow shared libs when runtime libs are static.
17692 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17693
17694 # Compiler flag to allow reflexive dlopens.
17695 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17696
17697 # Compiler flag to generate shared objects directly from archives.
17698 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17699
17700 # Whether the compiler copes with passing no objects directly.
17701 compiler_needs_object=$lt_compiler_needs_object_CXX
17702
17703 # Create an old-style archive from a shared archive.
17704 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17705
17706 # Create a temporary old-style archive to link instead of a shared archive.
17707 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17708
17709 # Commands used to build a shared archive.
17710 archive_cmds=$lt_archive_cmds_CXX
17711 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17712
17713 # Commands used to build a loadable module if different from building
17714 # a shared archive.
17715 module_cmds=$lt_module_cmds_CXX
17716 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17717
17718 # Whether we are building with GNU ld or not.
17719 with_gnu_ld=$lt_with_gnu_ld_CXX
17720
17721 # Flag that allows shared libraries with undefined symbols to be built.
17722 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17723
17724 # Flag that enforces no undefined symbols.
17725 no_undefined_flag=$lt_no_undefined_flag_CXX
17726
17727 # Flag to hardcode \$libdir into a binary during linking.
17728 # This must work even if \$libdir does not exist
17729 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17730
17731 # If ld is used when linking, flag to hardcode \$libdir into a binary
17732 # during linking. This must work even if \$libdir does not exist.
17733 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17734
17735 # Whether we need a single "-rpath" flag with a separated argument.
17736 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17737
17738 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17739 # DIR into the resulting binary.
17740 hardcode_direct=$hardcode_direct_CXX
17741
17742 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17743 # DIR into the resulting binary and the resulting library dependency is
17744 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17745 # library is relocated.
17746 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17747
17748 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17749 # into the resulting binary.
17750 hardcode_minus_L=$hardcode_minus_L_CXX
17751
17752 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17753 # into the resulting binary.
17754 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17755
17756 # Set to "yes" if building a shared library automatically hardcodes DIR
17757 # into the library and all subsequent libraries and executables linked
17758 # against it.
17759 hardcode_automatic=$hardcode_automatic_CXX
17760
17761 # Set to yes if linker adds runtime paths of dependent libraries
17762 # to runtime path list.
17763 inherit_rpath=$inherit_rpath_CXX
17764
17765 # Whether libtool must link a program against all its dependency libraries.
17766 link_all_deplibs=$link_all_deplibs_CXX
17767
17768 # Fix the shell variable \$srcfile for the compiler.
17769 fix_srcfile_path=$lt_fix_srcfile_path_CXX
17770
17771 # Set to "yes" if exported symbols are required.
17772 always_export_symbols=$always_export_symbols_CXX
17773
17774 # The commands to list exported symbols.
17775 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17776
17777 # Symbols that should not be listed in the preloaded symbols.
17778 exclude_expsyms=$lt_exclude_expsyms_CXX
17779
17780 # Symbols that must always be exported.
17781 include_expsyms=$lt_include_expsyms_CXX
17782
17783 # Commands necessary for linking programs (against libraries) with templates.
17784 prelink_cmds=$lt_prelink_cmds_CXX
17785
17786 # Specify filename containing input files.
17787 file_list_spec=$lt_file_list_spec_CXX
17788
17789 # How to hardcode a shared library path into an executable.
17790 hardcode_action=$hardcode_action_CXX
17791
17792 # The directories searched by this compiler when creating a shared library.
17793 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17794
17795 # Dependencies to place before and after the objects being linked to
17796 # create a shared library.
17797 predep_objects=$lt_predep_objects_CXX
17798 postdep_objects=$lt_postdep_objects_CXX
17799 predeps=$lt_predeps_CXX
17800 postdeps=$lt_postdeps_CXX
17801
17802 # The library search path used internally by the compiler when linking
17803 # a shared library.
17804 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17805
17806 # ### END LIBTOOL TAG CONFIG: CXX
17807 _LT_EOF
17808
17809 ;;
17810
17811 esac
17812 done # for ac_tag
17813
17814
17815 as_fn_exit 0
17816 _ACEOF
17817 ac_clean_files=$ac_clean_files_save
17818
17819 test $ac_write_fail = 0 ||
17820 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17821
17822
17823 # configure is writing to config.log, and then calls config.status.
17824 # config.status does its own redirection, appending to config.log.
17825 # Unfortunately, on DOS this fails, as config.log is still kept open
17826 # by configure, so config.status won't be able to write to it; its
17827 # output is simply discarded. So we exec the FD to /dev/null,
17828 # effectively closing config.log, so it can be properly (re)opened and
17829 # appended to by config.status. When coming back to configure, we
17830 # need to make the FD available again.
17831 if test "$no_create" != yes; then
17832 ac_cs_success=:
17833 ac_config_status_args=
17834 test "$silent" = yes &&
17835 ac_config_status_args="$ac_config_status_args --quiet"
17836 exec 5>/dev/null
17837 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17838 exec 5>>config.log
17839 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17840 # would make configure fail if this is the last instruction.
17841 $ac_cs_success || as_fn_exit 1
17842 fi
17843 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17845 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17846 fi
17847