configure revision 1.1.1.9 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for LTO plugin for ld 0.1.
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 (at] 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='LTO plugin for ld'
589 PACKAGE_TARNAME='lto-plugin'
590 PACKAGE_VERSION='0.1'
591 PACKAGE_STRING='LTO plugin for ld 0.1'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 # include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 # include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
630
631 ac_subst_vars='am__EXEEXT_FALSE
632 am__EXEEXT_TRUE
633 LTLIBOBJS
634 LIBOBJS
635 target_noncanonical
636 lt_host_flags
637 OTOOL64
638 OTOOL
639 LIPO
640 NMEDIT
641 DSYMUTIL
642 RANLIB
643 AR
644 OBJDUMP
645 LN_S
646 NM
647 ac_ct_DUMPBIN
648 DUMPBIN
649 LD
650 FGREP
651 SED
652 LIBTOOL
653 LTO_PLUGIN_USE_SYMVER_SUN_FALSE
654 LTO_PLUGIN_USE_SYMVER_SUN_TRUE
655 LTO_PLUGIN_USE_SYMVER_GNU_FALSE
656 LTO_PLUGIN_USE_SYMVER_GNU_TRUE
657 LTO_PLUGIN_USE_SYMVER_FALSE
658 LTO_PLUGIN_USE_SYMVER_TRUE
659 get_gcc_base_ver
660 real_target_noncanonical
661 accel_dir_suffix
662 gcc_build_dir
663 CET_HOST_FLAGS
664 ac_lto_plugin_ldflags
665 ac_lto_plugin_warn_cflags
666 EGREP
667 GREP
668 CPP
669 am__fastdepCC_FALSE
670 am__fastdepCC_TRUE
671 CCDEPMODE
672 am__nodep
673 AMDEPBACKSLASH
674 AMDEP_FALSE
675 AMDEP_TRUE
676 am__quote
677 am__include
678 DEPDIR
679 OBJEXT
680 EXEEXT
681 ac_ct_CC
682 CPPFLAGS
683 LDFLAGS
684 CFLAGS
685 CC
686 with_libiberty
687 MAINT
688 MAINTAINER_MODE_FALSE
689 MAINTAINER_MODE_TRUE
690 AM_BACKSLASH
691 AM_DEFAULT_VERBOSITY
692 AM_DEFAULT_V
693 AM_V
694 am__untar
695 am__tar
696 AMTAR
697 am__leading_dot
698 SET_MAKE
699 AWK
700 mkdir_p
701 MKDIR_P
702 INSTALL_STRIP_PROGRAM
703 STRIP
704 install_sh
705 MAKEINFO
706 AUTOHEADER
707 AUTOMAKE
708 AUTOCONF
709 ACLOCAL
710 VERSION
711 PACKAGE
712 CYGPATH_W
713 am__isrc
714 INSTALL_DATA
715 INSTALL_SCRIPT
716 INSTALL_PROGRAM
717 target_subdir
718 host_subdir
719 build_subdir
720 build_libsubdir
721 target_os
722 target_vendor
723 target_cpu
724 target
725 host_os
726 host_vendor
727 host_cpu
728 host
729 build_os
730 build_vendor
731 build_cpu
732 build
733 target_alias
734 host_alias
735 build_alias
736 LIBS
737 ECHO_T
738 ECHO_N
739 ECHO_C
740 DEFS
741 mandir
742 localedir
743 libdir
744 psdir
745 pdfdir
746 dvidir
747 htmldir
748 infodir
749 docdir
750 oldincludedir
751 includedir
752 localstatedir
753 sharedstatedir
754 sysconfdir
755 datadir
756 datarootdir
757 libexecdir
758 sbindir
759 bindir
760 program_transform_name
761 prefix
762 exec_prefix
763 PACKAGE_URL
764 PACKAGE_BUGREPORT
765 PACKAGE_STRING
766 PACKAGE_VERSION
767 PACKAGE_TARNAME
768 PACKAGE_NAME
769 PATH_SEPARATOR
770 SHELL'
771 ac_subst_files=''
772 ac_user_opts='
773 enable_option_checking
774 with_build_libsubdir
775 enable_silent_rules
776 enable_maintainer_mode
777 with_libiberty
778 enable_dependency_tracking
779 enable_largefile
780 enable_cet
781 with_gcc_major_version_only
782 enable_shared
783 enable_static
784 with_pic
785 enable_fast_install
786 with_gnu_ld
787 enable_libtool_lock
788 '
789 ac_precious_vars='build_alias
790 host_alias
791 target_alias
792 CC
793 CFLAGS
794 LDFLAGS
795 LIBS
796 CPPFLAGS
797 CPP'
798
799
800 # Initialize some variables set by options.
801 ac_init_help=
802 ac_init_version=false
803 ac_unrecognized_opts=
804 ac_unrecognized_sep=
805 # The variables have the same names as the options, with
806 # dashes changed to underlines.
807 cache_file=/dev/null
808 exec_prefix=NONE
809 no_create=
810 no_recursion=
811 prefix=NONE
812 program_prefix=NONE
813 program_suffix=NONE
814 program_transform_name=s,x,x,
815 silent=
816 site=
817 srcdir=
818 verbose=
819 x_includes=NONE
820 x_libraries=NONE
821
822 # Installation directory options.
823 # These are left unexpanded so users can "make install exec_prefix=/foo"
824 # and all the variables that are supposed to be based on exec_prefix
825 # by default will actually change.
826 # Use braces instead of parens because sh, perl, etc. also accept them.
827 # (The list follows the same order as the GNU Coding Standards.)
828 bindir='${exec_prefix}/bin'
829 sbindir='${exec_prefix}/sbin'
830 libexecdir='${exec_prefix}/libexec'
831 datarootdir='${prefix}/share'
832 datadir='${datarootdir}'
833 sysconfdir='${prefix}/etc'
834 sharedstatedir='${prefix}/com'
835 localstatedir='${prefix}/var'
836 includedir='${prefix}/include'
837 oldincludedir='/usr/include'
838 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
839 infodir='${datarootdir}/info'
840 htmldir='${docdir}'
841 dvidir='${docdir}'
842 pdfdir='${docdir}'
843 psdir='${docdir}'
844 libdir='${exec_prefix}/lib'
845 localedir='${datarootdir}/locale'
846 mandir='${datarootdir}/man'
847
848 ac_prev=
849 ac_dashdash=
850 for ac_option
851 do
852 # If the previous option needs an argument, assign it.
853 if test -n "$ac_prev"; then
854 eval $ac_prev=\$ac_option
855 ac_prev=
856 continue
857 fi
858
859 case $ac_option in
860 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
861 *=) ac_optarg= ;;
862 *) ac_optarg=yes ;;
863 esac
864
865 # Accept the important Cygnus configure options, so we can diagnose typos.
866
867 case $ac_dashdash$ac_option in
868 --)
869 ac_dashdash=yes ;;
870
871 -bindir | --bindir | --bindi | --bind | --bin | --bi)
872 ac_prev=bindir ;;
873 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
874 bindir=$ac_optarg ;;
875
876 -build | --build | --buil | --bui | --bu)
877 ac_prev=build_alias ;;
878 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
879 build_alias=$ac_optarg ;;
880
881 -cache-file | --cache-file | --cache-fil | --cache-fi \
882 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
883 ac_prev=cache_file ;;
884 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
885 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
886 cache_file=$ac_optarg ;;
887
888 --config-cache | -C)
889 cache_file=config.cache ;;
890
891 -datadir | --datadir | --datadi | --datad)
892 ac_prev=datadir ;;
893 -datadir=* | --datadir=* | --datadi=* | --datad=*)
894 datadir=$ac_optarg ;;
895
896 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
897 | --dataroo | --dataro | --datar)
898 ac_prev=datarootdir ;;
899 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
900 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
901 datarootdir=$ac_optarg ;;
902
903 -disable-* | --disable-*)
904 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
905 # Reject names that are not valid shell variable names.
906 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
907 as_fn_error $? "invalid feature name: $ac_useropt"
908 ac_useropt_orig=$ac_useropt
909 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
910 case $ac_user_opts in
911 *"
912 "enable_$ac_useropt"
913 "*) ;;
914 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
915 ac_unrecognized_sep=', ';;
916 esac
917 eval enable_$ac_useropt=no ;;
918
919 -docdir | --docdir | --docdi | --doc | --do)
920 ac_prev=docdir ;;
921 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
922 docdir=$ac_optarg ;;
923
924 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
925 ac_prev=dvidir ;;
926 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
927 dvidir=$ac_optarg ;;
928
929 -enable-* | --enable-*)
930 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
931 # Reject names that are not valid shell variable names.
932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
933 as_fn_error $? "invalid feature name: $ac_useropt"
934 ac_useropt_orig=$ac_useropt
935 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
936 case $ac_user_opts in
937 *"
938 "enable_$ac_useropt"
939 "*) ;;
940 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
941 ac_unrecognized_sep=', ';;
942 esac
943 eval enable_$ac_useropt=\$ac_optarg ;;
944
945 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
946 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
947 | --exec | --exe | --ex)
948 ac_prev=exec_prefix ;;
949 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
950 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
951 | --exec=* | --exe=* | --ex=*)
952 exec_prefix=$ac_optarg ;;
953
954 -gas | --gas | --ga | --g)
955 # Obsolete; use --with-gas.
956 with_gas=yes ;;
957
958 -help | --help | --hel | --he | -h)
959 ac_init_help=long ;;
960 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
961 ac_init_help=recursive ;;
962 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
963 ac_init_help=short ;;
964
965 -host | --host | --hos | --ho)
966 ac_prev=host_alias ;;
967 -host=* | --host=* | --hos=* | --ho=*)
968 host_alias=$ac_optarg ;;
969
970 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
971 ac_prev=htmldir ;;
972 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
973 | --ht=*)
974 htmldir=$ac_optarg ;;
975
976 -includedir | --includedir | --includedi | --included | --include \
977 | --includ | --inclu | --incl | --inc)
978 ac_prev=includedir ;;
979 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
980 | --includ=* | --inclu=* | --incl=* | --inc=*)
981 includedir=$ac_optarg ;;
982
983 -infodir | --infodir | --infodi | --infod | --info | --inf)
984 ac_prev=infodir ;;
985 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
986 infodir=$ac_optarg ;;
987
988 -libdir | --libdir | --libdi | --libd)
989 ac_prev=libdir ;;
990 -libdir=* | --libdir=* | --libdi=* | --libd=*)
991 libdir=$ac_optarg ;;
992
993 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
994 | --libexe | --libex | --libe)
995 ac_prev=libexecdir ;;
996 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
997 | --libexe=* | --libex=* | --libe=*)
998 libexecdir=$ac_optarg ;;
999
1000 -localedir | --localedir | --localedi | --localed | --locale)
1001 ac_prev=localedir ;;
1002 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1003 localedir=$ac_optarg ;;
1004
1005 -localstatedir | --localstatedir | --localstatedi | --localstated \
1006 | --localstate | --localstat | --localsta | --localst | --locals)
1007 ac_prev=localstatedir ;;
1008 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1009 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1010 localstatedir=$ac_optarg ;;
1011
1012 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1013 ac_prev=mandir ;;
1014 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1015 mandir=$ac_optarg ;;
1016
1017 -nfp | --nfp | --nf)
1018 # Obsolete; use --without-fp.
1019 with_fp=no ;;
1020
1021 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1022 | --no-cr | --no-c | -n)
1023 no_create=yes ;;
1024
1025 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1026 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1027 no_recursion=yes ;;
1028
1029 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1030 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1031 | --oldin | --oldi | --old | --ol | --o)
1032 ac_prev=oldincludedir ;;
1033 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1034 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1035 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1036 oldincludedir=$ac_optarg ;;
1037
1038 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1039 ac_prev=prefix ;;
1040 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1041 prefix=$ac_optarg ;;
1042
1043 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1044 | --program-pre | --program-pr | --program-p)
1045 ac_prev=program_prefix ;;
1046 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1047 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1048 program_prefix=$ac_optarg ;;
1049
1050 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1051 | --program-suf | --program-su | --program-s)
1052 ac_prev=program_suffix ;;
1053 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1054 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1055 program_suffix=$ac_optarg ;;
1056
1057 -program-transform-name | --program-transform-name \
1058 | --program-transform-nam | --program-transform-na \
1059 | --program-transform-n | --program-transform- \
1060 | --program-transform | --program-transfor \
1061 | --program-transfo | --program-transf \
1062 | --program-trans | --program-tran \
1063 | --progr-tra | --program-tr | --program-t)
1064 ac_prev=program_transform_name ;;
1065 -program-transform-name=* | --program-transform-name=* \
1066 | --program-transform-nam=* | --program-transform-na=* \
1067 | --program-transform-n=* | --program-transform-=* \
1068 | --program-transform=* | --program-transfor=* \
1069 | --program-transfo=* | --program-transf=* \
1070 | --program-trans=* | --program-tran=* \
1071 | --progr-tra=* | --program-tr=* | --program-t=*)
1072 program_transform_name=$ac_optarg ;;
1073
1074 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1075 ac_prev=pdfdir ;;
1076 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1077 pdfdir=$ac_optarg ;;
1078
1079 -psdir | --psdir | --psdi | --psd | --ps)
1080 ac_prev=psdir ;;
1081 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1082 psdir=$ac_optarg ;;
1083
1084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085 | -silent | --silent | --silen | --sile | --sil)
1086 silent=yes ;;
1087
1088 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1089 ac_prev=sbindir ;;
1090 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1091 | --sbi=* | --sb=*)
1092 sbindir=$ac_optarg ;;
1093
1094 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1095 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1096 | --sharedst | --shareds | --shared | --share | --shar \
1097 | --sha | --sh)
1098 ac_prev=sharedstatedir ;;
1099 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1100 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1101 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1102 | --sha=* | --sh=*)
1103 sharedstatedir=$ac_optarg ;;
1104
1105 -site | --site | --sit)
1106 ac_prev=site ;;
1107 -site=* | --site=* | --sit=*)
1108 site=$ac_optarg ;;
1109
1110 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1111 ac_prev=srcdir ;;
1112 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1113 srcdir=$ac_optarg ;;
1114
1115 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1116 | --syscon | --sysco | --sysc | --sys | --sy)
1117 ac_prev=sysconfdir ;;
1118 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1119 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1120 sysconfdir=$ac_optarg ;;
1121
1122 -target | --target | --targe | --targ | --tar | --ta | --t)
1123 ac_prev=target_alias ;;
1124 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1125 target_alias=$ac_optarg ;;
1126
1127 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1128 verbose=yes ;;
1129
1130 -version | --version | --versio | --versi | --vers | -V)
1131 ac_init_version=: ;;
1132
1133 -with-* | --with-*)
1134 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1135 # Reject names that are not valid shell variable names.
1136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1137 as_fn_error $? "invalid package name: $ac_useropt"
1138 ac_useropt_orig=$ac_useropt
1139 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1140 case $ac_user_opts in
1141 *"
1142 "with_$ac_useropt"
1143 "*) ;;
1144 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1145 ac_unrecognized_sep=', ';;
1146 esac
1147 eval with_$ac_useropt=\$ac_optarg ;;
1148
1149 -without-* | --without-*)
1150 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153 as_fn_error $? "invalid package name: $ac_useropt"
1154 ac_useropt_orig=$ac_useropt
1155 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156 case $ac_user_opts in
1157 *"
1158 "with_$ac_useropt"
1159 "*) ;;
1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1161 ac_unrecognized_sep=', ';;
1162 esac
1163 eval with_$ac_useropt=no ;;
1164
1165 --x)
1166 # Obsolete; use --with-x.
1167 with_x=yes ;;
1168
1169 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1170 | --x-incl | --x-inc | --x-in | --x-i)
1171 ac_prev=x_includes ;;
1172 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1173 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1174 x_includes=$ac_optarg ;;
1175
1176 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1177 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1178 ac_prev=x_libraries ;;
1179 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1180 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1181 x_libraries=$ac_optarg ;;
1182
1183 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1184 Try \`$0 --help' for more information"
1185 ;;
1186
1187 *=*)
1188 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1189 # Reject names that are not valid shell variable names.
1190 case $ac_envvar in #(
1191 '' | [0-9]* | *[!_$as_cr_alnum]* )
1192 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1193 esac
1194 eval $ac_envvar=\$ac_optarg
1195 export $ac_envvar ;;
1196
1197 *)
1198 # FIXME: should be removed in autoconf 3.0.
1199 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1200 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1201 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1202 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1203 ;;
1204
1205 esac
1206 done
1207
1208 if test -n "$ac_prev"; then
1209 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1210 as_fn_error $? "missing argument to $ac_option"
1211 fi
1212
1213 if test -n "$ac_unrecognized_opts"; then
1214 case $enable_option_checking in
1215 no) ;;
1216 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1217 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1218 esac
1219 fi
1220
1221 # Check all directory arguments for consistency.
1222 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1223 datadir sysconfdir sharedstatedir localstatedir includedir \
1224 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1225 libdir localedir mandir
1226 do
1227 eval ac_val=\$$ac_var
1228 # Remove trailing slashes.
1229 case $ac_val in
1230 */ )
1231 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1232 eval $ac_var=\$ac_val;;
1233 esac
1234 # Be sure to have absolute directory names.
1235 case $ac_val in
1236 [\\/$]* | ?:[\\/]* ) continue;;
1237 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1238 esac
1239 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1240 done
1241
1242 # There might be people who depend on the old broken behavior: `$host'
1243 # used to hold the argument of --host etc.
1244 # FIXME: To remove some day.
1245 build=$build_alias
1246 host=$host_alias
1247 target=$target_alias
1248
1249 # FIXME: To remove some day.
1250 if test "x$host_alias" != x; then
1251 if test "x$build_alias" = x; then
1252 cross_compiling=maybe
1253 elif test "x$build_alias" != "x$host_alias"; then
1254 cross_compiling=yes
1255 fi
1256 fi
1257
1258 ac_tool_prefix=
1259 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1260
1261 test "$silent" = yes && exec 6>/dev/null
1262
1263
1264 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1265 ac_ls_di=`ls -di .` &&
1266 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1267 as_fn_error $? "working directory cannot be determined"
1268 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1269 as_fn_error $? "pwd does not report name of working directory"
1270
1271
1272 # Find the source files, if location was not specified.
1273 if test -z "$srcdir"; then
1274 ac_srcdir_defaulted=yes
1275 # Try the directory containing this script, then the parent directory.
1276 ac_confdir=`$as_dirname -- "$as_myself" ||
1277 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1278 X"$as_myself" : 'X\(//\)[^/]' \| \
1279 X"$as_myself" : 'X\(//\)$' \| \
1280 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1281 $as_echo X"$as_myself" |
1282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1283 s//\1/
1284 q
1285 }
1286 /^X\(\/\/\)[^/].*/{
1287 s//\1/
1288 q
1289 }
1290 /^X\(\/\/\)$/{
1291 s//\1/
1292 q
1293 }
1294 /^X\(\/\).*/{
1295 s//\1/
1296 q
1297 }
1298 s/.*/./; q'`
1299 srcdir=$ac_confdir
1300 if test ! -r "$srcdir/$ac_unique_file"; then
1301 srcdir=..
1302 fi
1303 else
1304 ac_srcdir_defaulted=no
1305 fi
1306 if test ! -r "$srcdir/$ac_unique_file"; then
1307 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1308 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1309 fi
1310 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1311 ac_abs_confdir=`(
1312 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1313 pwd)`
1314 # When building in place, set srcdir=.
1315 if test "$ac_abs_confdir" = "$ac_pwd"; then
1316 srcdir=.
1317 fi
1318 # Remove unnecessary trailing slashes from srcdir.
1319 # Double slashes in file names in object file debugging info
1320 # mess up M-x gdb in Emacs.
1321 case $srcdir in
1322 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1323 esac
1324 for ac_var in $ac_precious_vars; do
1325 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1326 eval ac_env_${ac_var}_value=\$${ac_var}
1327 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1328 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1329 done
1330
1331 #
1332 # Report the --help message.
1333 #
1334 if test "$ac_init_help" = "long"; then
1335 # Omit some internal or obsolete options to make the list less imposing.
1336 # This message is too long to be a string in the A/UX 3.1 sh.
1337 cat <<_ACEOF
1338 \`configure' configures LTO plugin for ld 0.1 to adapt to many kinds of systems.
1339
1340 Usage: $0 [OPTION]... [VAR=VALUE]...
1341
1342 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1343 VAR=VALUE. See below for descriptions of some of the useful variables.
1344
1345 Defaults for the options are specified in brackets.
1346
1347 Configuration:
1348 -h, --help display this help and exit
1349 --help=short display options specific to this package
1350 --help=recursive display the short help of all the included packages
1351 -V, --version display version information and exit
1352 -q, --quiet, --silent do not print \`checking ...' messages
1353 --cache-file=FILE cache test results in FILE [disabled]
1354 -C, --config-cache alias for \`--cache-file=config.cache'
1355 -n, --no-create do not create output files
1356 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1357
1358 Installation directories:
1359 --prefix=PREFIX install architecture-independent files in PREFIX
1360 [$ac_default_prefix]
1361 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1362 [PREFIX]
1363
1364 By default, \`make install' will install all the files in
1365 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1366 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1367 for instance \`--prefix=\$HOME'.
1368
1369 For better control, use the options below.
1370
1371 Fine tuning of the installation directories:
1372 --bindir=DIR user executables [EPREFIX/bin]
1373 --sbindir=DIR system admin executables [EPREFIX/sbin]
1374 --libexecdir=DIR program executables [EPREFIX/libexec]
1375 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1376 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1377 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1378 --libdir=DIR object code libraries [EPREFIX/lib]
1379 --includedir=DIR C header files [PREFIX/include]
1380 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1381 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1382 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1383 --infodir=DIR info documentation [DATAROOTDIR/info]
1384 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1385 --mandir=DIR man documentation [DATAROOTDIR/man]
1386 --docdir=DIR documentation root [DATAROOTDIR/doc/lto-plugin]
1387 --htmldir=DIR html documentation [DOCDIR]
1388 --dvidir=DIR dvi documentation [DOCDIR]
1389 --pdfdir=DIR pdf documentation [DOCDIR]
1390 --psdir=DIR ps documentation [DOCDIR]
1391 _ACEOF
1392
1393 cat <<\_ACEOF
1394
1395 Program names:
1396 --program-prefix=PREFIX prepend PREFIX to installed program names
1397 --program-suffix=SUFFIX append SUFFIX to installed program names
1398 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1399
1400 System types:
1401 --build=BUILD configure for building on BUILD [guessed]
1402 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1403 --target=TARGET configure for building compilers for TARGET [HOST]
1404 _ACEOF
1405 fi
1406
1407 if test -n "$ac_init_help"; then
1408 case $ac_init_help in
1409 short | recursive ) echo "Configuration of LTO plugin for ld 0.1:";;
1410 esac
1411 cat <<\_ACEOF
1412
1413 Optional Features:
1414 --disable-option-checking ignore unrecognized --enable/--with options
1415 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1416 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1417 --enable-silent-rules less verbose build output (undo: "make V=1")
1418 --disable-silent-rules verbose build output (undo: "make V=0")
1419 --enable-maintainer-mode
1420 enable make rules and dependencies not useful (and
1421 sometimes confusing) to the casual installer
1422 --enable-dependency-tracking
1423 do not reject slow dependency extractors
1424 --disable-dependency-tracking
1425 speeds up one-time build
1426 --disable-largefile omit support for large files
1427 --enable-cet enable Intel CET in host libraries [default=auto]
1428 --enable-shared[=PKGS] build shared libraries [default=yes]
1429 --enable-static[=PKGS] build static libraries [default=yes]
1430 --enable-fast-install[=PKGS]
1431 optimize for fast installation [default=yes]
1432 --disable-libtool-lock avoid locking (might break parallel builds)
1433
1434 Optional Packages:
1435 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1436 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1437 --with-build-libsubdir=DIR Directory where to find libraries for build system
1438 --with-libiberty=PATH specify the directory where to find libiberty
1439 [../libiberty]
1440 --with-gcc-major-version-only
1441 use only GCC major number in filesystem paths
1442 --with-pic try to use only PIC/non-PIC objects [default=use
1443 both]
1444 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1445
1446 Some influential environment variables:
1447 CC C compiler command
1448 CFLAGS C compiler flags
1449 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1450 nonstandard directory <lib dir>
1451 LIBS libraries to pass to the linker, e.g. -l<library>
1452 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1453 you have headers in a nonstandard directory <include dir>
1454 CPP C preprocessor
1455
1456 Use these variables to override the choices made by `configure' or to help
1457 it to find libraries and programs with nonstandard names/locations.
1458
1459 Report bugs to the package provider.
1460 _ACEOF
1461 ac_status=$?
1462 fi
1463
1464 if test "$ac_init_help" = "recursive"; then
1465 # If there are subdirs, report their specific --help.
1466 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1467 test -d "$ac_dir" ||
1468 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1469 continue
1470 ac_builddir=.
1471
1472 case "$ac_dir" in
1473 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474 *)
1475 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1476 # A ".." for each directory in $ac_dir_suffix.
1477 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1478 case $ac_top_builddir_sub in
1479 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1480 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1481 esac ;;
1482 esac
1483 ac_abs_top_builddir=$ac_pwd
1484 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1485 # for backward compatibility:
1486 ac_top_builddir=$ac_top_build_prefix
1487
1488 case $srcdir in
1489 .) # We are building in place.
1490 ac_srcdir=.
1491 ac_top_srcdir=$ac_top_builddir_sub
1492 ac_abs_top_srcdir=$ac_pwd ;;
1493 [\\/]* | ?:[\\/]* ) # Absolute name.
1494 ac_srcdir=$srcdir$ac_dir_suffix;
1495 ac_top_srcdir=$srcdir
1496 ac_abs_top_srcdir=$srcdir ;;
1497 *) # Relative name.
1498 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1499 ac_top_srcdir=$ac_top_build_prefix$srcdir
1500 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1501 esac
1502 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1503
1504 cd "$ac_dir" || { ac_status=$?; continue; }
1505 # Check for guested configure.
1506 if test -f "$ac_srcdir/configure.gnu"; then
1507 echo &&
1508 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1509 elif test -f "$ac_srcdir/configure"; then
1510 echo &&
1511 $SHELL "$ac_srcdir/configure" --help=recursive
1512 else
1513 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1514 fi || ac_status=$?
1515 cd "$ac_pwd" || { ac_status=$?; break; }
1516 done
1517 fi
1518
1519 test -n "$ac_init_help" && exit $ac_status
1520 if $ac_init_version; then
1521 cat <<\_ACEOF
1522 LTO plugin for ld configure 0.1
1523 generated by GNU Autoconf 2.69
1524
1525 Copyright (C) 2012 Free Software Foundation, Inc.
1526 This configure script is free software; the Free Software Foundation
1527 gives unlimited permission to copy, distribute and modify it.
1528 _ACEOF
1529 exit
1530 fi
1531
1532 ## ------------------------ ##
1533 ## Autoconf initialization. ##
1534 ## ------------------------ ##
1535
1536 # ac_fn_c_try_compile LINENO
1537 # --------------------------
1538 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1539 ac_fn_c_try_compile ()
1540 {
1541 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1542 rm -f conftest.$ac_objext
1543 if { { ac_try="$ac_compile"
1544 case "(($ac_try" in
1545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1546 *) ac_try_echo=$ac_try;;
1547 esac
1548 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1549 $as_echo "$ac_try_echo"; } >&5
1550 (eval "$ac_compile") 2>conftest.err
1551 ac_status=$?
1552 if test -s conftest.err; then
1553 grep -v '^ *+' conftest.err >conftest.er1
1554 cat conftest.er1 >&5
1555 mv -f conftest.er1 conftest.err
1556 fi
1557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1558 test $ac_status = 0; } && {
1559 test -z "$ac_c_werror_flag" ||
1560 test ! -s conftest.err
1561 } && test -s conftest.$ac_objext; then :
1562 ac_retval=0
1563 else
1564 $as_echo "$as_me: failed program was:" >&5
1565 sed 's/^/| /' conftest.$ac_ext >&5
1566
1567 ac_retval=1
1568 fi
1569 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1570 as_fn_set_status $ac_retval
1571
1572 } # ac_fn_c_try_compile
1573
1574 # ac_fn_c_try_cpp LINENO
1575 # ----------------------
1576 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1577 ac_fn_c_try_cpp ()
1578 {
1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580 if { { ac_try="$ac_cpp conftest.$ac_ext"
1581 case "(($ac_try" in
1582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583 *) ac_try_echo=$ac_try;;
1584 esac
1585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586 $as_echo "$ac_try_echo"; } >&5
1587 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1588 ac_status=$?
1589 if test -s conftest.err; then
1590 grep -v '^ *+' conftest.err >conftest.er1
1591 cat conftest.er1 >&5
1592 mv -f conftest.er1 conftest.err
1593 fi
1594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595 test $ac_status = 0; } > conftest.i && {
1596 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1597 test ! -s conftest.err
1598 }; then :
1599 ac_retval=0
1600 else
1601 $as_echo "$as_me: failed program was:" >&5
1602 sed 's/^/| /' conftest.$ac_ext >&5
1603
1604 ac_retval=1
1605 fi
1606 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1607 as_fn_set_status $ac_retval
1608
1609 } # ac_fn_c_try_cpp
1610
1611 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1612 # -------------------------------------------------------
1613 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1614 # the include files in INCLUDES and setting the cache variable VAR
1615 # accordingly.
1616 ac_fn_c_check_header_mongrel ()
1617 {
1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619 if eval \${$3+:} false; then :
1620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1621 $as_echo_n "checking for $2... " >&6; }
1622 if eval \${$3+:} false; then :
1623 $as_echo_n "(cached) " >&6
1624 fi
1625 eval ac_res=\$$3
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1627 $as_echo "$ac_res" >&6; }
1628 else
1629 # Is the header compilable?
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1631 $as_echo_n "checking $2 usability... " >&6; }
1632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1633 /* end confdefs.h. */
1634 $4
1635 #include <$2>
1636 _ACEOF
1637 if ac_fn_c_try_compile "$LINENO"; then :
1638 ac_header_compiler=yes
1639 else
1640 ac_header_compiler=no
1641 fi
1642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1644 $as_echo "$ac_header_compiler" >&6; }
1645
1646 # Is the header present?
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1648 $as_echo_n "checking $2 presence... " >&6; }
1649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1650 /* end confdefs.h. */
1651 #include <$2>
1652 _ACEOF
1653 if ac_fn_c_try_cpp "$LINENO"; then :
1654 ac_header_preproc=yes
1655 else
1656 ac_header_preproc=no
1657 fi
1658 rm -f conftest.err conftest.i conftest.$ac_ext
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1660 $as_echo "$ac_header_preproc" >&6; }
1661
1662 # So? What about this header?
1663 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1664 yes:no: )
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1666 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1668 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1669 ;;
1670 no:yes:* )
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1672 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1674 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1676 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1678 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1680 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1681 ;;
1682 esac
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1684 $as_echo_n "checking for $2... " >&6; }
1685 if eval \${$3+:} false; then :
1686 $as_echo_n "(cached) " >&6
1687 else
1688 eval "$3=\$ac_header_compiler"
1689 fi
1690 eval ac_res=\$$3
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1692 $as_echo "$ac_res" >&6; }
1693 fi
1694 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1695
1696 } # ac_fn_c_check_header_mongrel
1697
1698 # ac_fn_c_try_run LINENO
1699 # ----------------------
1700 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1701 # that executables *can* be run.
1702 ac_fn_c_try_run ()
1703 {
1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705 if { { ac_try="$ac_link"
1706 case "(($ac_try" in
1707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708 *) ac_try_echo=$ac_try;;
1709 esac
1710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711 $as_echo "$ac_try_echo"; } >&5
1712 (eval "$ac_link") 2>&5
1713 ac_status=$?
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1716 { { case "(($ac_try" in
1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718 *) ac_try_echo=$ac_try;;
1719 esac
1720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721 $as_echo "$ac_try_echo"; } >&5
1722 (eval "$ac_try") 2>&5
1723 ac_status=$?
1724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725 test $ac_status = 0; }; }; then :
1726 ac_retval=0
1727 else
1728 $as_echo "$as_me: program exited with status $ac_status" >&5
1729 $as_echo "$as_me: failed program was:" >&5
1730 sed 's/^/| /' conftest.$ac_ext >&5
1731
1732 ac_retval=$ac_status
1733 fi
1734 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736 as_fn_set_status $ac_retval
1737
1738 } # ac_fn_c_try_run
1739
1740 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1741 # -------------------------------------------------------
1742 # Tests whether HEADER exists and can be compiled using the include files in
1743 # INCLUDES, setting the cache variable VAR accordingly.
1744 ac_fn_c_check_header_compile ()
1745 {
1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1748 $as_echo_n "checking for $2... " >&6; }
1749 if eval \${$3+:} false; then :
1750 $as_echo_n "(cached) " >&6
1751 else
1752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1753 /* end confdefs.h. */
1754 $4
1755 #include <$2>
1756 _ACEOF
1757 if ac_fn_c_try_compile "$LINENO"; then :
1758 eval "$3=yes"
1759 else
1760 eval "$3=no"
1761 fi
1762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1763 fi
1764 eval ac_res=\$$3
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1766 $as_echo "$ac_res" >&6; }
1767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1768
1769 } # ac_fn_c_check_header_compile
1770
1771 # ac_fn_c_try_link LINENO
1772 # -----------------------
1773 # Try to link conftest.$ac_ext, and return whether this succeeded.
1774 ac_fn_c_try_link ()
1775 {
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 rm -f conftest.$ac_objext conftest$ac_exeext
1778 if { { ac_try="$ac_link"
1779 case "(($ac_try" in
1780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781 *) ac_try_echo=$ac_try;;
1782 esac
1783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784 $as_echo "$ac_try_echo"; } >&5
1785 (eval "$ac_link") 2>conftest.err
1786 ac_status=$?
1787 if test -s conftest.err; then
1788 grep -v '^ *+' conftest.err >conftest.er1
1789 cat conftest.er1 >&5
1790 mv -f conftest.er1 conftest.err
1791 fi
1792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793 test $ac_status = 0; } && {
1794 test -z "$ac_c_werror_flag" ||
1795 test ! -s conftest.err
1796 } && test -s conftest$ac_exeext && {
1797 test "$cross_compiling" = yes ||
1798 test -x conftest$ac_exeext
1799 }; then :
1800 ac_retval=0
1801 else
1802 $as_echo "$as_me: failed program was:" >&5
1803 sed 's/^/| /' conftest.$ac_ext >&5
1804
1805 ac_retval=1
1806 fi
1807 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1808 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1809 # interfere with the next link command; also delete a directory that is
1810 # left behind by Apple's compiler. We do this before executing the actions.
1811 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813 as_fn_set_status $ac_retval
1814
1815 } # ac_fn_c_try_link
1816
1817 # ac_fn_c_check_func LINENO FUNC VAR
1818 # ----------------------------------
1819 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1820 ac_fn_c_check_func ()
1821 {
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1824 $as_echo_n "checking for $2... " >&6; }
1825 if eval \${$3+:} false; then :
1826 $as_echo_n "(cached) " >&6
1827 else
1828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829 /* end confdefs.h. */
1830 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1832 #define $2 innocuous_$2
1833
1834 /* System header to define __stub macros and hopefully few prototypes,
1835 which can conflict with char $2 (); below.
1836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1837 <limits.h> exists even on freestanding compilers. */
1838
1839 #ifdef __STDC__
1840 # include <limits.h>
1841 #else
1842 # include <assert.h>
1843 #endif
1844
1845 #undef $2
1846
1847 /* Override any GCC internal prototype to avoid an error.
1848 Use char because int might match the return type of a GCC
1849 builtin and then its argument prototype would still apply. */
1850 #ifdef __cplusplus
1851 extern "C"
1852 #endif
1853 char $2 ();
1854 /* The GNU C library defines this for functions which it implements
1855 to always fail with ENOSYS. Some functions are actually named
1856 something starting with __ and the normal name is an alias. */
1857 #if defined __stub_$2 || defined __stub___$2
1858 choke me
1859 #endif
1860
1861 int
1862 main ()
1863 {
1864 return $2 ();
1865 ;
1866 return 0;
1867 }
1868 _ACEOF
1869 if ac_fn_c_try_link "$LINENO"; then :
1870 eval "$3=yes"
1871 else
1872 eval "$3=no"
1873 fi
1874 rm -f core conftest.err conftest.$ac_objext \
1875 conftest$ac_exeext conftest.$ac_ext
1876 fi
1877 eval ac_res=\$$3
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1879 $as_echo "$ac_res" >&6; }
1880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881
1882 } # ac_fn_c_check_func
1883
1884 # ac_fn_c_find_intX_t LINENO BITS VAR
1885 # -----------------------------------
1886 # Finds a signed integer type with width BITS, setting cache variable VAR
1887 # accordingly.
1888 ac_fn_c_find_intX_t ()
1889 {
1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1892 $as_echo_n "checking for int$2_t... " >&6; }
1893 if eval \${$3+:} false; then :
1894 $as_echo_n "(cached) " >&6
1895 else
1896 eval "$3=no"
1897 # Order is important - never check a type that is potentially smaller
1898 # than half of the expected target width.
1899 for ac_type in int$2_t 'int' 'long int' \
1900 'long long int' 'short int' 'signed char'; do
1901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1902 /* end confdefs.h. */
1903 $ac_includes_default
1904 enum { N = $2 / 2 - 1 };
1905 int
1906 main ()
1907 {
1908 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1909 test_array [0] = 0;
1910 return test_array [0];
1911
1912 ;
1913 return 0;
1914 }
1915 _ACEOF
1916 if ac_fn_c_try_compile "$LINENO"; then :
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h. */
1919 $ac_includes_default
1920 enum { N = $2 / 2 - 1 };
1921 int
1922 main ()
1923 {
1924 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1925 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1926 test_array [0] = 0;
1927 return test_array [0];
1928
1929 ;
1930 return 0;
1931 }
1932 _ACEOF
1933 if ac_fn_c_try_compile "$LINENO"; then :
1934
1935 else
1936 case $ac_type in #(
1937 int$2_t) :
1938 eval "$3=yes" ;; #(
1939 *) :
1940 eval "$3=\$ac_type" ;;
1941 esac
1942 fi
1943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1944 fi
1945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1946 if eval test \"x\$"$3"\" = x"no"; then :
1947
1948 else
1949 break
1950 fi
1951 done
1952 fi
1953 eval ac_res=\$$3
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1955 $as_echo "$ac_res" >&6; }
1956 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1957
1958 } # ac_fn_c_find_intX_t
1959
1960 # ac_fn_c_find_uintX_t LINENO BITS VAR
1961 # ------------------------------------
1962 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1963 # accordingly.
1964 ac_fn_c_find_uintX_t ()
1965 {
1966 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1968 $as_echo_n "checking for uint$2_t... " >&6; }
1969 if eval \${$3+:} false; then :
1970 $as_echo_n "(cached) " >&6
1971 else
1972 eval "$3=no"
1973 # Order is important - never check a type that is potentially smaller
1974 # than half of the expected target width.
1975 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1976 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1978 /* end confdefs.h. */
1979 $ac_includes_default
1980 int
1981 main ()
1982 {
1983 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1984 test_array [0] = 0;
1985 return test_array [0];
1986
1987 ;
1988 return 0;
1989 }
1990 _ACEOF
1991 if ac_fn_c_try_compile "$LINENO"; then :
1992 case $ac_type in #(
1993 uint$2_t) :
1994 eval "$3=yes" ;; #(
1995 *) :
1996 eval "$3=\$ac_type" ;;
1997 esac
1998 fi
1999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2000 if eval test \"x\$"$3"\" = x"no"; then :
2001
2002 else
2003 break
2004 fi
2005 done
2006 fi
2007 eval ac_res=\$$3
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2009 $as_echo "$ac_res" >&6; }
2010 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2011
2012 } # ac_fn_c_find_uintX_t
2013 cat >config.log <<_ACEOF
2014 This file contains any messages produced by compilers while
2015 running configure, to aid debugging if configure makes a mistake.
2016
2017 It was created by LTO plugin for ld $as_me 0.1, which was
2018 generated by GNU Autoconf 2.69. Invocation command line was
2019
2020 $ $0 $@
2021
2022 _ACEOF
2023 exec 5>>config.log
2024 {
2025 cat <<_ASUNAME
2026 ## --------- ##
2027 ## Platform. ##
2028 ## --------- ##
2029
2030 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2031 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2032 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2033 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2034 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2035
2036 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2037 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2038
2039 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2040 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2041 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2042 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2043 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2044 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2045 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2046
2047 _ASUNAME
2048
2049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2050 for as_dir in $PATH
2051 do
2052 IFS=$as_save_IFS
2053 test -z "$as_dir" && as_dir=.
2054 $as_echo "PATH: $as_dir"
2055 done
2056 IFS=$as_save_IFS
2057
2058 } >&5
2059
2060 cat >&5 <<_ACEOF
2061
2062
2063 ## ----------- ##
2064 ## Core tests. ##
2065 ## ----------- ##
2066
2067 _ACEOF
2068
2069
2070 # Keep a trace of the command line.
2071 # Strip out --no-create and --no-recursion so they do not pile up.
2072 # Strip out --silent because we don't want to record it for future runs.
2073 # Also quote any args containing shell meta-characters.
2074 # Make two passes to allow for proper duplicate-argument suppression.
2075 ac_configure_args=
2076 ac_configure_args0=
2077 ac_configure_args1=
2078 ac_must_keep_next=false
2079 for ac_pass in 1 2
2080 do
2081 for ac_arg
2082 do
2083 case $ac_arg in
2084 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2086 | -silent | --silent | --silen | --sile | --sil)
2087 continue ;;
2088 *\'*)
2089 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2090 esac
2091 case $ac_pass in
2092 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2093 2)
2094 as_fn_append ac_configure_args1 " '$ac_arg'"
2095 if test $ac_must_keep_next = true; then
2096 ac_must_keep_next=false # Got value, back to normal.
2097 else
2098 case $ac_arg in
2099 *=* | --config-cache | -C | -disable-* | --disable-* \
2100 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2101 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2102 | -with-* | --with-* | -without-* | --without-* | --x)
2103 case "$ac_configure_args0 " in
2104 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2105 esac
2106 ;;
2107 -* ) ac_must_keep_next=true ;;
2108 esac
2109 fi
2110 as_fn_append ac_configure_args " '$ac_arg'"
2111 ;;
2112 esac
2113 done
2114 done
2115 { ac_configure_args0=; unset ac_configure_args0;}
2116 { ac_configure_args1=; unset ac_configure_args1;}
2117
2118 # When interrupted or exit'd, cleanup temporary files, and complete
2119 # config.log. We remove comments because anyway the quotes in there
2120 # would cause problems or look ugly.
2121 # WARNING: Use '\'' to represent an apostrophe within the trap.
2122 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2123 trap 'exit_status=$?
2124 # Save into config.log some information that might help in debugging.
2125 {
2126 echo
2127
2128 $as_echo "## ---------------- ##
2129 ## Cache variables. ##
2130 ## ---------------- ##"
2131 echo
2132 # The following way of writing the cache mishandles newlines in values,
2133 (
2134 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2135 eval ac_val=\$$ac_var
2136 case $ac_val in #(
2137 *${as_nl}*)
2138 case $ac_var in #(
2139 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2140 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2141 esac
2142 case $ac_var in #(
2143 _ | IFS | as_nl) ;; #(
2144 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2145 *) { eval $ac_var=; unset $ac_var;} ;;
2146 esac ;;
2147 esac
2148 done
2149 (set) 2>&1 |
2150 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2151 *${as_nl}ac_space=\ *)
2152 sed -n \
2153 "s/'\''/'\''\\\\'\'''\''/g;
2154 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2155 ;; #(
2156 *)
2157 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2158 ;;
2159 esac |
2160 sort
2161 )
2162 echo
2163
2164 $as_echo "## ----------------- ##
2165 ## Output variables. ##
2166 ## ----------------- ##"
2167 echo
2168 for ac_var in $ac_subst_vars
2169 do
2170 eval ac_val=\$$ac_var
2171 case $ac_val in
2172 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2173 esac
2174 $as_echo "$ac_var='\''$ac_val'\''"
2175 done | sort
2176 echo
2177
2178 if test -n "$ac_subst_files"; then
2179 $as_echo "## ------------------- ##
2180 ## File substitutions. ##
2181 ## ------------------- ##"
2182 echo
2183 for ac_var in $ac_subst_files
2184 do
2185 eval ac_val=\$$ac_var
2186 case $ac_val in
2187 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2188 esac
2189 $as_echo "$ac_var='\''$ac_val'\''"
2190 done | sort
2191 echo
2192 fi
2193
2194 if test -s confdefs.h; then
2195 $as_echo "## ----------- ##
2196 ## confdefs.h. ##
2197 ## ----------- ##"
2198 echo
2199 cat confdefs.h
2200 echo
2201 fi
2202 test "$ac_signal" != 0 &&
2203 $as_echo "$as_me: caught signal $ac_signal"
2204 $as_echo "$as_me: exit $exit_status"
2205 } >&5
2206 rm -f core *.core core.conftest.* &&
2207 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2208 exit $exit_status
2209 ' 0
2210 for ac_signal in 1 2 13 15; do
2211 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2212 done
2213 ac_signal=0
2214
2215 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2216 rm -f -r conftest* confdefs.h
2217
2218 $as_echo "/* confdefs.h */" > confdefs.h
2219
2220 # Predefined preprocessor variables.
2221
2222 cat >>confdefs.h <<_ACEOF
2223 #define PACKAGE_NAME "$PACKAGE_NAME"
2224 _ACEOF
2225
2226 cat >>confdefs.h <<_ACEOF
2227 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2228 _ACEOF
2229
2230 cat >>confdefs.h <<_ACEOF
2231 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2232 _ACEOF
2233
2234 cat >>confdefs.h <<_ACEOF
2235 #define PACKAGE_STRING "$PACKAGE_STRING"
2236 _ACEOF
2237
2238 cat >>confdefs.h <<_ACEOF
2239 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2240 _ACEOF
2241
2242 cat >>confdefs.h <<_ACEOF
2243 #define PACKAGE_URL "$PACKAGE_URL"
2244 _ACEOF
2245
2246
2247 # Let the site file select an alternate cache file if it wants to.
2248 # Prefer an explicitly selected file to automatically selected ones.
2249 ac_site_file1=NONE
2250 ac_site_file2=NONE
2251 if test -n "$CONFIG_SITE"; then
2252 # We do not want a PATH search for config.site.
2253 case $CONFIG_SITE in #((
2254 -*) ac_site_file1=./$CONFIG_SITE;;
2255 */*) ac_site_file1=$CONFIG_SITE;;
2256 *) ac_site_file1=./$CONFIG_SITE;;
2257 esac
2258 elif test "x$prefix" != xNONE; then
2259 ac_site_file1=$prefix/share/config.site
2260 ac_site_file2=$prefix/etc/config.site
2261 else
2262 ac_site_file1=$ac_default_prefix/share/config.site
2263 ac_site_file2=$ac_default_prefix/etc/config.site
2264 fi
2265 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2266 do
2267 test "x$ac_site_file" = xNONE && continue
2268 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2270 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2271 sed 's/^/| /' "$ac_site_file" >&5
2272 . "$ac_site_file" \
2273 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2275 as_fn_error $? "failed to load site script $ac_site_file
2276 See \`config.log' for more details" "$LINENO" 5; }
2277 fi
2278 done
2279
2280 if test -r "$cache_file"; then
2281 # Some versions of bash will fail to source /dev/null (special files
2282 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2283 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2285 $as_echo "$as_me: loading cache $cache_file" >&6;}
2286 case $cache_file in
2287 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2288 *) . "./$cache_file";;
2289 esac
2290 fi
2291 else
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2293 $as_echo "$as_me: creating cache $cache_file" >&6;}
2294 >$cache_file
2295 fi
2296
2297 # Check that the precious variables saved in the cache have kept the same
2298 # value.
2299 ac_cache_corrupted=false
2300 for ac_var in $ac_precious_vars; do
2301 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2302 eval ac_new_set=\$ac_env_${ac_var}_set
2303 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2304 eval ac_new_val=\$ac_env_${ac_var}_value
2305 case $ac_old_set,$ac_new_set in
2306 set,)
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2308 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2309 ac_cache_corrupted=: ;;
2310 ,set)
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2312 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2313 ac_cache_corrupted=: ;;
2314 ,);;
2315 *)
2316 if test "x$ac_old_val" != "x$ac_new_val"; then
2317 # differences in whitespace do not lead to failure.
2318 ac_old_val_w=`echo x $ac_old_val`
2319 ac_new_val_w=`echo x $ac_new_val`
2320 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2322 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2323 ac_cache_corrupted=:
2324 else
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2326 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2327 eval $ac_var=\$ac_old_val
2328 fi
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2330 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2332 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2333 fi;;
2334 esac
2335 # Pass precious variables to config.status.
2336 if test "$ac_new_set" = set; then
2337 case $ac_new_val in
2338 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2339 *) ac_arg=$ac_var=$ac_new_val ;;
2340 esac
2341 case " $ac_configure_args " in
2342 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2343 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2344 esac
2345 fi
2346 done
2347 if $ac_cache_corrupted; then
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2349 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2351 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2352 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2353 fi
2354 ## -------------------- ##
2355 ## Main body of script. ##
2356 ## -------------------- ##
2357
2358 ac_ext=c
2359 ac_cpp='$CPP $CPPFLAGS'
2360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2363
2364
2365
2366
2367
2368 ac_aux_dir=
2369 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2370 if test -f "$ac_dir/install-sh"; then
2371 ac_aux_dir=$ac_dir
2372 ac_install_sh="$SHELL $ac_aux_dir/install-sh -c"
2373 break
2374 elif test -f "$ac_dir/install.sh"; then
2375 ac_aux_dir=$ac_dir
2376 ac_install_sh="$SHELL $ac_aux_dir/install.sh -c"
2377 break
2378 elif test -f "$ac_dir/shtool"; then
2379 ac_aux_dir=$ac_dir
2380 ac_install_sh="$SHELL $ac_aux_dir/shtool install -c"
2381 break
2382 fi
2383 done
2384 if test -z "$ac_aux_dir"; then
2385 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2386 fi
2387
2388 # These three variables are undocumented and unsupported,
2389 # and are intended to be withdrawn in a future Autoconf release.
2390 # They can cause serious problems if a builder's source tree is in a directory
2391 # whose full name contains unusual characters.
2392 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2393 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2394 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2395
2396
2397 # Make sure we can run config.sub.
2398 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2399 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2400
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2402 $as_echo_n "checking build system type... " >&6; }
2403 if ${ac_cv_build+:} false; then :
2404 $as_echo_n "(cached) " >&6
2405 else
2406 ac_build_alias=$build_alias
2407 test "x$ac_build_alias" = x &&
2408 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2409 test "x$ac_build_alias" = x &&
2410 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2411 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2412 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2413
2414 fi
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2416 $as_echo "$ac_cv_build" >&6; }
2417 case $ac_cv_build in
2418 *-*-*) ;;
2419 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2420 esac
2421 build=$ac_cv_build
2422 ac_save_IFS=$IFS; IFS='-'
2423 set x $ac_cv_build
2424 shift
2425 build_cpu=$1
2426 build_vendor=$2
2427 shift; shift
2428 # Remember, the first character of IFS is used to create $*,
2429 # except with old shells:
2430 build_os=$*
2431 IFS=$ac_save_IFS
2432 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2433
2434
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2436 $as_echo_n "checking host system type... " >&6; }
2437 if ${ac_cv_host+:} false; then :
2438 $as_echo_n "(cached) " >&6
2439 else
2440 if test "x$host_alias" = x; then
2441 ac_cv_host=$ac_cv_build
2442 else
2443 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2444 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2445 fi
2446
2447 fi
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2449 $as_echo "$ac_cv_host" >&6; }
2450 case $ac_cv_host in
2451 *-*-*) ;;
2452 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2453 esac
2454 host=$ac_cv_host
2455 ac_save_IFS=$IFS; IFS='-'
2456 set x $ac_cv_host
2457 shift
2458 host_cpu=$1
2459 host_vendor=$2
2460 shift; shift
2461 # Remember, the first character of IFS is used to create $*,
2462 # except with old shells:
2463 host_os=$*
2464 IFS=$ac_save_IFS
2465 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2466
2467
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2469 $as_echo_n "checking target system type... " >&6; }
2470 if ${ac_cv_target+:} false; then :
2471 $as_echo_n "(cached) " >&6
2472 else
2473 if test "x$target_alias" = x; then
2474 ac_cv_target=$ac_cv_host
2475 else
2476 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2477 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2478 fi
2479
2480 fi
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2482 $as_echo "$ac_cv_target" >&6; }
2483 case $ac_cv_target in
2484 *-*-*) ;;
2485 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2486 esac
2487 target=$ac_cv_target
2488 ac_save_IFS=$IFS; IFS='-'
2489 set x $ac_cv_target
2490 shift
2491 target_cpu=$1
2492 target_vendor=$2
2493 shift; shift
2494 # Remember, the first character of IFS is used to create $*,
2495 # except with old shells:
2496 target_os=$*
2497 IFS=$ac_save_IFS
2498 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2499
2500
2501 # The aliases save the names the user supplied, while $host etc.
2502 # will get canonicalized.
2503 test -n "$target_alias" &&
2504 test "$program_prefix$program_suffix$program_transform_name" = \
2505 NONENONEs,x,x, &&
2506 program_prefix=${target_alias}-
2507
2508 case ${build_alias} in
2509 "") build_noncanonical=${build} ;;
2510 *) build_noncanonical=${build_alias} ;;
2511 esac
2512
2513 case ${host_alias} in
2514 "") host_noncanonical=${build_noncanonical} ;;
2515 *) host_noncanonical=${host_alias} ;;
2516 esac
2517
2518 case ${target_alias} in
2519 "") target_noncanonical=${host_noncanonical} ;;
2520 *) target_noncanonical=${target_alias} ;;
2521 esac
2522
2523
2524 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2525 # have matching libraries, they should use host libraries: Makefile.tpl
2526 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2527 # However, they still use the build modules, because the corresponding
2528 # host modules (e.g. bison) are only built for the host when bootstrap
2529 # finishes. So:
2530 # - build_subdir is where we find build modules, and never changes.
2531 # - build_libsubdir is where we find build libraries, and can be overridden.
2532
2533 # Prefix 'build-' so this never conflicts with target_subdir.
2534 build_subdir="build-${build_noncanonical}"
2535
2536 # Check whether --with-build-libsubdir was given.
2537 if test "${with_build_libsubdir+set}" = set; then :
2538 withval=$with_build_libsubdir; build_libsubdir="$withval"
2539 else
2540 build_libsubdir="$build_subdir"
2541 fi
2542
2543 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2544 if ( test $srcdir = . && test -d gcc ) \
2545 || test -d $srcdir/../host-${host_noncanonical}; then
2546 host_subdir="host-${host_noncanonical}"
2547 else
2548 host_subdir=.
2549 fi
2550 # No prefix.
2551 target_subdir=${target_noncanonical}
2552
2553 am__api_version='1.15'
2554
2555 # Find a good install program. We prefer a C program (faster),
2556 # so one script is as good as another. But avoid the broken or
2557 # incompatible versions:
2558 # SysV /etc/install, /usr/sbin/install
2559 # SunOS /usr/etc/install
2560 # IRIX /sbin/install
2561 # AIX /bin/install
2562 # AmigaOS /C/install, which installs bootblocks on floppy discs
2563 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2564 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2565 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2566 # OS/2's system install, which has a completely different semantic
2567 # ./install, which can be erroneously created by make from ./install.sh.
2568 # Reject install programs that cannot install multiple files.
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2570 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2571 if test -z "$INSTALL"; then
2572 if ${ac_cv_path_install+:} false; then :
2573 $as_echo_n "(cached) " >&6
2574 else
2575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576 for as_dir in $PATH
2577 do
2578 IFS=$as_save_IFS
2579 test -z "$as_dir" && as_dir=.
2580 # Account for people who put trailing slashes in PATH elements.
2581 case $as_dir/ in #((
2582 ./ | .// | /[cC]/* | \
2583 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2584 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2585 /usr/ucb/* ) ;;
2586 *)
2587 # OSF1 and SCO ODT 3.0 have their own names for install.
2588 # Don't use installbsd from OSF since it installs stuff as root
2589 # by default.
2590 for ac_prog in ginstall scoinst install; do
2591 for ac_exec_ext in '' $ac_executable_extensions; do
2592 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2593 if test $ac_prog = install &&
2594 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2595 # AIX install. It has an incompatible calling convention.
2596 :
2597 elif test $ac_prog = install &&
2598 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2599 # program-specific install script used by HP pwplus--don't use.
2600 :
2601 else
2602 rm -rf conftest.one conftest.two conftest.dir
2603 echo one > conftest.one
2604 echo two > conftest.two
2605 mkdir conftest.dir
2606 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2607 test -s conftest.one && test -s conftest.two &&
2608 test -s conftest.dir/conftest.one &&
2609 test -s conftest.dir/conftest.two
2610 then
2611 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2612 break 3
2613 fi
2614 fi
2615 fi
2616 done
2617 done
2618 ;;
2619 esac
2620
2621 done
2622 IFS=$as_save_IFS
2623
2624 rm -rf conftest.one conftest.two conftest.dir
2625
2626 fi
2627 if test "${ac_cv_path_install+set}" = set; then
2628 INSTALL=$ac_cv_path_install
2629 else
2630 # As a last resort, use the slow shell script. Don't cache a
2631 # value for INSTALL within a source directory, because that will
2632 # break other packages using the cache if that directory is
2633 # removed, or if the value is a relative name.
2634 INSTALL=$ac_install_sh
2635 fi
2636 fi
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2638 $as_echo "$INSTALL" >&6; }
2639
2640 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2641 # It thinks the first close brace ends the variable substitution.
2642 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2643
2644 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2645
2646 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2647
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2649 $as_echo_n "checking whether build environment is sane... " >&6; }
2650 # Reject unsafe characters in $srcdir or the absolute working directory
2651 # name. Accept space and tab only in the latter.
2652 am_lf='
2653 '
2654 case `pwd` in
2655 *[\\\"\#\$\&\'\`$am_lf]*)
2656 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2657 esac
2658 case $srcdir in
2659 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2660 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2661 esac
2662
2663 # Do 'set' in a subshell so we don't clobber the current shell's
2664 # arguments. Must try -L first in case configure is actually a
2665 # symlink; some systems play weird games with the mod time of symlinks
2666 # (eg FreeBSD returns the mod time of the symlink's containing
2667 # directory).
2668 if (
2669 am_has_slept=no
2670 for am_try in 1 2; do
2671 echo "timestamp, slept: $am_has_slept" > conftest.file
2672 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2673 if test "$*" = "X"; then
2674 # -L didn't work.
2675 set X `ls -t "$srcdir/configure" conftest.file`
2676 fi
2677 if test "$*" != "X $srcdir/configure conftest.file" \
2678 && test "$*" != "X conftest.file $srcdir/configure"; then
2679
2680 # If neither matched, then we have a broken ls. This can happen
2681 # if, for instance, CONFIG_SHELL is bash and it inherits a
2682 # broken ls alias from the environment. This has actually
2683 # happened. Such a system could not be considered "sane".
2684 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2685 alias in your environment" "$LINENO" 5
2686 fi
2687 if test "$2" = conftest.file || test $am_try -eq 2; then
2688 break
2689 fi
2690 # Just in case.
2691 sleep 1
2692 am_has_slept=yes
2693 done
2694 test "$2" = conftest.file
2695 )
2696 then
2697 # Ok.
2698 :
2699 else
2700 as_fn_error $? "newly created file is older than distributed files!
2701 Check your system clock" "$LINENO" 5
2702 fi
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2704 $as_echo "yes" >&6; }
2705 # If we didn't sleep, we still need to ensure time stamps of config.status and
2706 # generated files are strictly newer.
2707 am_sleep_pid=
2708 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2709 ( sleep 1 ) &
2710 am_sleep_pid=$!
2711 fi
2712
2713 rm -f conftest.file
2714
2715 test "$program_prefix" != NONE &&
2716 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2717 # Use a double $ so make ignores it.
2718 test "$program_suffix" != NONE &&
2719 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2720 # Double any \ or $.
2721 # By default was `s,x,x', remove it if useless.
2722 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2723 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2724
2725 # Expand $ac_aux_dir to an absolute path.
2726 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2727
2728 if test x"${MISSING+set}" != xset; then
2729 case $am_aux_dir in
2730 *\ * | *\ *)
2731 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2732 *)
2733 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2734 esac
2735 fi
2736 # Use eval to expand $SHELL
2737 if eval "$MISSING --is-lightweight"; then
2738 am_missing_run="$MISSING "
2739 else
2740 am_missing_run=
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2742 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2743 fi
2744
2745 if test x"${install_sh+set}" != xset; then
2746 case $am_aux_dir in
2747 *\ * | *\ *)
2748 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2749 *)
2750 install_sh="\${SHELL} $am_aux_dir/install-sh"
2751 esac
2752 fi
2753
2754 # Installed binaries are usually stripped using 'strip' when the user
2755 # run "make install-strip". However 'strip' might not be the right
2756 # tool to use in cross-compilation environments, therefore Automake
2757 # will honor the 'STRIP' environment variable to overrule this program.
2758 if test "$cross_compiling" != no; then
2759 if test -n "$ac_tool_prefix"; then
2760 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2761 set dummy ${ac_tool_prefix}strip; ac_word=$2
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2763 $as_echo_n "checking for $ac_word... " >&6; }
2764 if ${ac_cv_prog_STRIP+:} false; then :
2765 $as_echo_n "(cached) " >&6
2766 else
2767 if test -n "$STRIP"; then
2768 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2769 else
2770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771 for as_dir in $PATH
2772 do
2773 IFS=$as_save_IFS
2774 test -z "$as_dir" && as_dir=.
2775 for ac_exec_ext in '' $ac_executable_extensions; do
2776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2777 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2779 break 2
2780 fi
2781 done
2782 done
2783 IFS=$as_save_IFS
2784
2785 fi
2786 fi
2787 STRIP=$ac_cv_prog_STRIP
2788 if test -n "$STRIP"; then
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2790 $as_echo "$STRIP" >&6; }
2791 else
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2793 $as_echo "no" >&6; }
2794 fi
2795
2796
2797 fi
2798 if test -z "$ac_cv_prog_STRIP"; then
2799 ac_ct_STRIP=$STRIP
2800 # Extract the first word of "strip", so it can be a program name with args.
2801 set dummy strip; ac_word=$2
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2803 $as_echo_n "checking for $ac_word... " >&6; }
2804 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2805 $as_echo_n "(cached) " >&6
2806 else
2807 if test -n "$ac_ct_STRIP"; then
2808 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2809 else
2810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2811 for as_dir in $PATH
2812 do
2813 IFS=$as_save_IFS
2814 test -z "$as_dir" && as_dir=.
2815 for ac_exec_ext in '' $ac_executable_extensions; do
2816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2817 ac_cv_prog_ac_ct_STRIP="strip"
2818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2819 break 2
2820 fi
2821 done
2822 done
2823 IFS=$as_save_IFS
2824
2825 fi
2826 fi
2827 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2828 if test -n "$ac_ct_STRIP"; then
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2830 $as_echo "$ac_ct_STRIP" >&6; }
2831 else
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2833 $as_echo "no" >&6; }
2834 fi
2835
2836 if test "x$ac_ct_STRIP" = x; then
2837 STRIP=":"
2838 else
2839 case $cross_compiling:$ac_tool_warned in
2840 yes:)
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2842 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2843 ac_tool_warned=yes ;;
2844 esac
2845 STRIP=$ac_ct_STRIP
2846 fi
2847 else
2848 STRIP="$ac_cv_prog_STRIP"
2849 fi
2850
2851 fi
2852 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2853
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2855 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2856 if test -z "$MKDIR_P"; then
2857 if ${ac_cv_path_mkdir+:} false; then :
2858 $as_echo_n "(cached) " >&6
2859 else
2860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2862 do
2863 IFS=$as_save_IFS
2864 test -z "$as_dir" && as_dir=.
2865 for ac_prog in mkdir gmkdir; do
2866 for ac_exec_ext in '' $ac_executable_extensions; do
2867 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2868 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2869 'mkdir (GNU coreutils) '* | \
2870 'mkdir (coreutils) '* | \
2871 'mkdir (fileutils) '4.1*)
2872 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2873 break 3;;
2874 esac
2875 done
2876 done
2877 done
2878 IFS=$as_save_IFS
2879
2880 fi
2881
2882 test -d ./--version && rmdir ./--version
2883 if test "${ac_cv_path_mkdir+set}" = set; then
2884 MKDIR_P="$ac_cv_path_mkdir -p"
2885 else
2886 # As a last resort, use the slow shell script. Don't cache a
2887 # value for MKDIR_P within a source directory, because that will
2888 # break other packages using the cache if that directory is
2889 # removed, or if the value is a relative name.
2890 MKDIR_P="$ac_install_sh -d"
2891 fi
2892 fi
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2894 $as_echo "$MKDIR_P" >&6; }
2895
2896 for ac_prog in gawk mawk nawk awk
2897 do
2898 # Extract the first word of "$ac_prog", so it can be a program name with args.
2899 set dummy $ac_prog; ac_word=$2
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2901 $as_echo_n "checking for $ac_word... " >&6; }
2902 if ${ac_cv_prog_AWK+:} false; then :
2903 $as_echo_n "(cached) " >&6
2904 else
2905 if test -n "$AWK"; then
2906 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2907 else
2908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2909 for as_dir in $PATH
2910 do
2911 IFS=$as_save_IFS
2912 test -z "$as_dir" && as_dir=.
2913 for ac_exec_ext in '' $ac_executable_extensions; do
2914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2915 ac_cv_prog_AWK="$ac_prog"
2916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2917 break 2
2918 fi
2919 done
2920 done
2921 IFS=$as_save_IFS
2922
2923 fi
2924 fi
2925 AWK=$ac_cv_prog_AWK
2926 if test -n "$AWK"; then
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2928 $as_echo "$AWK" >&6; }
2929 else
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2931 $as_echo "no" >&6; }
2932 fi
2933
2934
2935 test -n "$AWK" && break
2936 done
2937
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2939 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2940 set x ${MAKE-make}
2941 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2942 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2943 $as_echo_n "(cached) " >&6
2944 else
2945 cat >conftest.make <<\_ACEOF
2946 SHELL = /bin/sh
2947 all:
2948 @echo '@@@%%%=$(MAKE)=@@@%%%'
2949 _ACEOF
2950 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2951 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2952 *@@@%%%=?*=@@@%%%*)
2953 eval ac_cv_prog_make_${ac_make}_set=yes;;
2954 *)
2955 eval ac_cv_prog_make_${ac_make}_set=no;;
2956 esac
2957 rm -f conftest.make
2958 fi
2959 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2961 $as_echo "yes" >&6; }
2962 SET_MAKE=
2963 else
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965 $as_echo "no" >&6; }
2966 SET_MAKE="MAKE=${MAKE-make}"
2967 fi
2968
2969 rm -rf .tst 2>/dev/null
2970 mkdir .tst 2>/dev/null
2971 if test -d .tst; then
2972 am__leading_dot=.
2973 else
2974 am__leading_dot=_
2975 fi
2976 rmdir .tst 2>/dev/null
2977
2978 # Check whether --enable-silent-rules was given.
2979 if test "${enable_silent_rules+set}" = set; then :
2980 enableval=$enable_silent_rules;
2981 fi
2982
2983 case $enable_silent_rules in # (((
2984 yes) AM_DEFAULT_VERBOSITY=0;;
2985 no) AM_DEFAULT_VERBOSITY=1;;
2986 *) AM_DEFAULT_VERBOSITY=1;;
2987 esac
2988 am_make=${MAKE-make}
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2990 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2991 if ${am_cv_make_support_nested_variables+:} false; then :
2992 $as_echo_n "(cached) " >&6
2993 else
2994 if $as_echo 'TRUE=$(BAR$(V))
2995 BAR0=false
2996 BAR1=true
2997 V=1
2998 am__doit:
2999 @$(TRUE)
3000 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3001 am_cv_make_support_nested_variables=yes
3002 else
3003 am_cv_make_support_nested_variables=no
3004 fi
3005 fi
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3007 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3008 if test $am_cv_make_support_nested_variables = yes; then
3009 AM_V='$(V)'
3010 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3011 else
3012 AM_V=$AM_DEFAULT_VERBOSITY
3013 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3014 fi
3015 AM_BACKSLASH='\'
3016
3017 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3018 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3019 # is not polluted with repeated "-I."
3020 am__isrc=' -I$(srcdir)'
3021 # test to see if srcdir already configured
3022 if test -f $srcdir/config.status; then
3023 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3024 fi
3025 fi
3026
3027 # test whether we have cygpath
3028 if test -z "$CYGPATH_W"; then
3029 if (cygpath --version) >/dev/null 2>/dev/null; then
3030 CYGPATH_W='cygpath -w'
3031 else
3032 CYGPATH_W=echo
3033 fi
3034 fi
3035
3036
3037 # Define the identity of the package.
3038 PACKAGE='lto-plugin'
3039 VERSION='0.1'
3040
3041
3042 cat >>confdefs.h <<_ACEOF
3043 #define PACKAGE "$PACKAGE"
3044 _ACEOF
3045
3046
3047 cat >>confdefs.h <<_ACEOF
3048 #define VERSION "$VERSION"
3049 _ACEOF
3050
3051 # Some tools Automake needs.
3052
3053 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3054
3055
3056 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3057
3058
3059 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3060
3061
3062 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3063
3064
3065 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3066
3067 # For better backward compatibility. To be removed once Automake 1.9.x
3068 # dies out for good. For more background, see:
3069 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3070 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3071 mkdir_p='$(MKDIR_P)'
3072
3073 # We need awk for the "check" target (and possibly the TAP driver). The
3074 # system "awk" is bad on some platforms.
3075 # Always define AMTAR for backward compatibility. Yes, it's still used
3076 # in the wild :-( We should find a proper way to deprecate it ...
3077 AMTAR='$${TAR-tar}'
3078
3079
3080 # We'll loop over all known methods to create a tar archive until one works.
3081 _am_tools='gnutar pax cpio none'
3082
3083 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3084
3085
3086
3087
3088
3089
3090 # POSIX will say in a future version that running "rm -f" with no argument
3091 # is OK; and we want to be able to make that assumption in our Makefile
3092 # recipes. So use an aggressive probe to check that the usage we want is
3093 # actually supported "in the wild" to an acceptable degree.
3094 # See automake bug#10828.
3095 # To make any issue more visible, cause the running configure to be aborted
3096 # by default if the 'rm' program in use doesn't match our expectations; the
3097 # user can still override this though.
3098 if rm -f && rm -fr && rm -rf; then : OK; else
3099 cat >&2 <<'END'
3100 Oops!
3101
3102 Your 'rm' program seems unable to run without file operands specified
3103 on the command line, even when the '-f' option is present. This is contrary
3104 to the behaviour of most rm programs out there, and not conforming with
3105 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3106
3107 Please tell bug-automake@gnu.org about your system, including the value
3108 of your $PATH and any error possibly output before this message. This
3109 can help us improve future automake versions.
3110
3111 END
3112 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3113 echo 'Configuration will proceed anyway, since you have set the' >&2
3114 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3115 echo >&2
3116 else
3117 cat >&2 <<'END'
3118 Aborting the configuration process, to ensure you take notice of the issue.
3119
3120 You can download and install GNU coreutils to get an 'rm' implementation
3121 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3122
3123 If you want to complete the configuration process using your problematic
3124 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3125 to "yes", and re-run configure.
3126
3127 END
3128 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3129 fi
3130 fi
3131
3132
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3134 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3135 # Check whether --enable-maintainer-mode was given.
3136 if test "${enable_maintainer_mode+set}" = set; then :
3137 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3138 else
3139 USE_MAINTAINER_MODE=no
3140 fi
3141
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3143 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3144 if test $USE_MAINTAINER_MODE = yes; then
3145 MAINTAINER_MODE_TRUE=
3146 MAINTAINER_MODE_FALSE='#'
3147 else
3148 MAINTAINER_MODE_TRUE='#'
3149 MAINTAINER_MODE_FALSE=
3150 fi
3151
3152 MAINT=$MAINTAINER_MODE_TRUE
3153
3154
3155
3156 # Check whether --with-libiberty was given.
3157 if test "${with_libiberty+set}" = set; then :
3158 withval=$with_libiberty;
3159 else
3160 with_libiberty=../libiberty
3161 fi
3162
3163
3164 DEPDIR="${am__leading_dot}deps"
3165
3166 ac_config_commands="$ac_config_commands depfiles"
3167
3168
3169 am_make=${MAKE-make}
3170 cat > confinc << 'END'
3171 am__doit:
3172 @echo this is the am__doit target
3173 .PHONY: am__doit
3174 END
3175 # If we don't find an include directive, just comment out the code.
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3177 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3178 am__include="#"
3179 am__quote=
3180 _am_result=none
3181 # First try GNU make style include.
3182 echo "include confinc" > confmf
3183 # Ignore all kinds of additional output from 'make'.
3184 case `$am_make -s -f confmf 2> /dev/null` in #(
3185 *the\ am__doit\ target*)
3186 am__include=include
3187 am__quote=
3188 _am_result=GNU
3189 ;;
3190 esac
3191 # Now try BSD make style include.
3192 if test "$am__include" = "#"; then
3193 echo '.include "confinc"' > confmf
3194 case `$am_make -s -f confmf 2> /dev/null` in #(
3195 *the\ am__doit\ target*)
3196 am__include=.include
3197 am__quote="\""
3198 _am_result=BSD
3199 ;;
3200 esac
3201 fi
3202
3203
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3205 $as_echo "$_am_result" >&6; }
3206 rm -f confinc confmf
3207
3208 # Check whether --enable-dependency-tracking was given.
3209 if test "${enable_dependency_tracking+set}" = set; then :
3210 enableval=$enable_dependency_tracking;
3211 fi
3212
3213 if test "x$enable_dependency_tracking" != xno; then
3214 am_depcomp="$ac_aux_dir/depcomp"
3215 AMDEPBACKSLASH='\'
3216 am__nodep='_no'
3217 fi
3218 if test "x$enable_dependency_tracking" != xno; then
3219 AMDEP_TRUE=
3220 AMDEP_FALSE='#'
3221 else
3222 AMDEP_TRUE='#'
3223 AMDEP_FALSE=
3224 fi
3225
3226
3227 ac_ext=c
3228 ac_cpp='$CPP $CPPFLAGS'
3229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3232 if test -n "$ac_tool_prefix"; then
3233 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3234 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3236 $as_echo_n "checking for $ac_word... " >&6; }
3237 if ${ac_cv_prog_CC+:} false; then :
3238 $as_echo_n "(cached) " >&6
3239 else
3240 if test -n "$CC"; then
3241 ac_cv_prog_CC="$CC" # Let the user override the test.
3242 else
3243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3244 for as_dir in $PATH
3245 do
3246 IFS=$as_save_IFS
3247 test -z "$as_dir" && as_dir=.
3248 for ac_exec_ext in '' $ac_executable_extensions; do
3249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3250 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3252 break 2
3253 fi
3254 done
3255 done
3256 IFS=$as_save_IFS
3257
3258 fi
3259 fi
3260 CC=$ac_cv_prog_CC
3261 if test -n "$CC"; then
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3263 $as_echo "$CC" >&6; }
3264 else
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266 $as_echo "no" >&6; }
3267 fi
3268
3269
3270 fi
3271 if test -z "$ac_cv_prog_CC"; then
3272 ac_ct_CC=$CC
3273 # Extract the first word of "gcc", so it can be a program name with args.
3274 set dummy gcc; ac_word=$2
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3276 $as_echo_n "checking for $ac_word... " >&6; }
3277 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3278 $as_echo_n "(cached) " >&6
3279 else
3280 if test -n "$ac_ct_CC"; then
3281 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3282 else
3283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 for as_dir in $PATH
3285 do
3286 IFS=$as_save_IFS
3287 test -z "$as_dir" && as_dir=.
3288 for ac_exec_ext in '' $ac_executable_extensions; do
3289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3290 ac_cv_prog_ac_ct_CC="gcc"
3291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3292 break 2
3293 fi
3294 done
3295 done
3296 IFS=$as_save_IFS
3297
3298 fi
3299 fi
3300 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3301 if test -n "$ac_ct_CC"; then
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3303 $as_echo "$ac_ct_CC" >&6; }
3304 else
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306 $as_echo "no" >&6; }
3307 fi
3308
3309 if test "x$ac_ct_CC" = x; then
3310 CC=""
3311 else
3312 case $cross_compiling:$ac_tool_warned in
3313 yes:)
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3315 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3316 ac_tool_warned=yes ;;
3317 esac
3318 CC=$ac_ct_CC
3319 fi
3320 else
3321 CC="$ac_cv_prog_CC"
3322 fi
3323
3324 if test -z "$CC"; then
3325 if test -n "$ac_tool_prefix"; then
3326 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3327 set dummy ${ac_tool_prefix}cc; ac_word=$2
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3329 $as_echo_n "checking for $ac_word... " >&6; }
3330 if ${ac_cv_prog_CC+:} false; then :
3331 $as_echo_n "(cached) " >&6
3332 else
3333 if test -n "$CC"; then
3334 ac_cv_prog_CC="$CC" # Let the user override the test.
3335 else
3336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3337 for as_dir in $PATH
3338 do
3339 IFS=$as_save_IFS
3340 test -z "$as_dir" && as_dir=.
3341 for ac_exec_ext in '' $ac_executable_extensions; do
3342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3343 ac_cv_prog_CC="${ac_tool_prefix}cc"
3344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3345 break 2
3346 fi
3347 done
3348 done
3349 IFS=$as_save_IFS
3350
3351 fi
3352 fi
3353 CC=$ac_cv_prog_CC
3354 if test -n "$CC"; then
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3356 $as_echo "$CC" >&6; }
3357 else
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3359 $as_echo "no" >&6; }
3360 fi
3361
3362
3363 fi
3364 fi
3365 if test -z "$CC"; then
3366 # Extract the first word of "cc", so it can be a program name with args.
3367 set dummy cc; ac_word=$2
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3369 $as_echo_n "checking for $ac_word... " >&6; }
3370 if ${ac_cv_prog_CC+:} false; then :
3371 $as_echo_n "(cached) " >&6
3372 else
3373 if test -n "$CC"; then
3374 ac_cv_prog_CC="$CC" # Let the user override the test.
3375 else
3376 ac_prog_rejected=no
3377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378 for as_dir in $PATH
3379 do
3380 IFS=$as_save_IFS
3381 test -z "$as_dir" && as_dir=.
3382 for ac_exec_ext in '' $ac_executable_extensions; do
3383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3384 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3385 ac_prog_rejected=yes
3386 continue
3387 fi
3388 ac_cv_prog_CC="cc"
3389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3390 break 2
3391 fi
3392 done
3393 done
3394 IFS=$as_save_IFS
3395
3396 if test $ac_prog_rejected = yes; then
3397 # We found a bogon in the path, so make sure we never use it.
3398 set dummy $ac_cv_prog_CC
3399 shift
3400 if test $# != 0; then
3401 # We chose a different compiler from the bogus one.
3402 # However, it has the same basename, so the bogon will be chosen
3403 # first if we set CC to just the basename; use the full file name.
3404 shift
3405 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3406 fi
3407 fi
3408 fi
3409 fi
3410 CC=$ac_cv_prog_CC
3411 if test -n "$CC"; then
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3413 $as_echo "$CC" >&6; }
3414 else
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3416 $as_echo "no" >&6; }
3417 fi
3418
3419
3420 fi
3421 if test -z "$CC"; then
3422 if test -n "$ac_tool_prefix"; then
3423 for ac_prog in cl.exe
3424 do
3425 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3426 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3428 $as_echo_n "checking for $ac_word... " >&6; }
3429 if ${ac_cv_prog_CC+:} false; then :
3430 $as_echo_n "(cached) " >&6
3431 else
3432 if test -n "$CC"; then
3433 ac_cv_prog_CC="$CC" # Let the user override the test.
3434 else
3435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3436 for as_dir in $PATH
3437 do
3438 IFS=$as_save_IFS
3439 test -z "$as_dir" && as_dir=.
3440 for ac_exec_ext in '' $ac_executable_extensions; do
3441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3442 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3444 break 2
3445 fi
3446 done
3447 done
3448 IFS=$as_save_IFS
3449
3450 fi
3451 fi
3452 CC=$ac_cv_prog_CC
3453 if test -n "$CC"; then
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3455 $as_echo "$CC" >&6; }
3456 else
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3458 $as_echo "no" >&6; }
3459 fi
3460
3461
3462 test -n "$CC" && break
3463 done
3464 fi
3465 if test -z "$CC"; then
3466 ac_ct_CC=$CC
3467 for ac_prog in cl.exe
3468 do
3469 # Extract the first word of "$ac_prog", so it can be a program name with args.
3470 set dummy $ac_prog; ac_word=$2
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3472 $as_echo_n "checking for $ac_word... " >&6; }
3473 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3474 $as_echo_n "(cached) " >&6
3475 else
3476 if test -n "$ac_ct_CC"; then
3477 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3478 else
3479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480 for as_dir in $PATH
3481 do
3482 IFS=$as_save_IFS
3483 test -z "$as_dir" && as_dir=.
3484 for ac_exec_ext in '' $ac_executable_extensions; do
3485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3486 ac_cv_prog_ac_ct_CC="$ac_prog"
3487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3488 break 2
3489 fi
3490 done
3491 done
3492 IFS=$as_save_IFS
3493
3494 fi
3495 fi
3496 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3497 if test -n "$ac_ct_CC"; then
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3499 $as_echo "$ac_ct_CC" >&6; }
3500 else
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3502 $as_echo "no" >&6; }
3503 fi
3504
3505
3506 test -n "$ac_ct_CC" && break
3507 done
3508
3509 if test "x$ac_ct_CC" = x; then
3510 CC=""
3511 else
3512 case $cross_compiling:$ac_tool_warned in
3513 yes:)
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3516 ac_tool_warned=yes ;;
3517 esac
3518 CC=$ac_ct_CC
3519 fi
3520 fi
3521
3522 fi
3523
3524
3525 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3527 as_fn_error $? "no acceptable C compiler found in \$PATH
3528 See \`config.log' for more details" "$LINENO" 5; }
3529
3530 # Provide some information about the compiler.
3531 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3532 set X $ac_compile
3533 ac_compiler=$2
3534 for ac_option in --version -v -V -qversion; do
3535 { { ac_try="$ac_compiler $ac_option >&5"
3536 case "(($ac_try" in
3537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538 *) ac_try_echo=$ac_try;;
3539 esac
3540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3541 $as_echo "$ac_try_echo"; } >&5
3542 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3543 ac_status=$?
3544 if test -s conftest.err; then
3545 sed '10a\
3546 ... rest of stderr output deleted ...
3547 10q' conftest.err >conftest.er1
3548 cat conftest.er1 >&5
3549 fi
3550 rm -f conftest.er1 conftest.err
3551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3552 test $ac_status = 0; }
3553 done
3554
3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556 /* end confdefs.h. */
3557
3558 int
3559 main ()
3560 {
3561
3562 ;
3563 return 0;
3564 }
3565 _ACEOF
3566 ac_clean_files_save=$ac_clean_files
3567 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3568 # Try to create an executable without -o first, disregard a.out.
3569 # It will help us diagnose broken compilers, and finding out an intuition
3570 # of exeext.
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3572 $as_echo_n "checking whether the C compiler works... " >&6; }
3573 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3574
3575 # The possible output files:
3576 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3577
3578 ac_rmfiles=
3579 for ac_file in $ac_files
3580 do
3581 case $ac_file in
3582 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3583 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3584 esac
3585 done
3586 rm -f $ac_rmfiles
3587
3588 if { { ac_try="$ac_link_default"
3589 case "(($ac_try" in
3590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3591 *) ac_try_echo=$ac_try;;
3592 esac
3593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3594 $as_echo "$ac_try_echo"; } >&5
3595 (eval "$ac_link_default") 2>&5
3596 ac_status=$?
3597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3598 test $ac_status = 0; }; then :
3599 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3600 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3601 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3602 # so that the user can short-circuit this test for compilers unknown to
3603 # Autoconf.
3604 for ac_file in $ac_files ''
3605 do
3606 test -f "$ac_file" || continue
3607 case $ac_file in
3608 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3609 ;;
3610 [ab].out )
3611 # We found the default executable, but exeext='' is most
3612 # certainly right.
3613 break;;
3614 *.* )
3615 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3616 then :; else
3617 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3618 fi
3619 # We set ac_cv_exeext here because the later test for it is not
3620 # safe: cross compilers may not add the suffix if given an `-o'
3621 # argument, so we may need to know it at that point already.
3622 # Even if this section looks crufty: it has the advantage of
3623 # actually working.
3624 break;;
3625 * )
3626 break;;
3627 esac
3628 done
3629 test "$ac_cv_exeext" = no && ac_cv_exeext=
3630
3631 else
3632 ac_file=''
3633 fi
3634 if test -z "$ac_file"; then :
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3636 $as_echo "no" >&6; }
3637 $as_echo "$as_me: failed program was:" >&5
3638 sed 's/^/| /' conftest.$ac_ext >&5
3639
3640 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3642 as_fn_error 77 "C compiler cannot create executables
3643 See \`config.log' for more details" "$LINENO" 5; }
3644 else
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3646 $as_echo "yes" >&6; }
3647 fi
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3649 $as_echo_n "checking for C compiler default output file name... " >&6; }
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3651 $as_echo "$ac_file" >&6; }
3652 ac_exeext=$ac_cv_exeext
3653
3654 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3655 ac_clean_files=$ac_clean_files_save
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3657 $as_echo_n "checking for suffix of executables... " >&6; }
3658 if { { ac_try="$ac_link"
3659 case "(($ac_try" in
3660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661 *) ac_try_echo=$ac_try;;
3662 esac
3663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3664 $as_echo "$ac_try_echo"; } >&5
3665 (eval "$ac_link") 2>&5
3666 ac_status=$?
3667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3668 test $ac_status = 0; }; then :
3669 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3670 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3671 # work properly (i.e., refer to `conftest.exe'), while it won't with
3672 # `rm'.
3673 for ac_file in conftest.exe conftest conftest.*; do
3674 test -f "$ac_file" || continue
3675 case $ac_file in
3676 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3677 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3678 break;;
3679 * ) break;;
3680 esac
3681 done
3682 else
3683 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3684 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3685 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3686 See \`config.log' for more details" "$LINENO" 5; }
3687 fi
3688 rm -f conftest conftest$ac_cv_exeext
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3690 $as_echo "$ac_cv_exeext" >&6; }
3691
3692 rm -f conftest.$ac_ext
3693 EXEEXT=$ac_cv_exeext
3694 ac_exeext=$EXEEXT
3695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696 /* end confdefs.h. */
3697 #include <stdio.h>
3698 int
3699 main ()
3700 {
3701 FILE *f = fopen ("conftest.out", "w");
3702 return ferror (f) || fclose (f) != 0;
3703
3704 ;
3705 return 0;
3706 }
3707 _ACEOF
3708 ac_clean_files="$ac_clean_files conftest.out"
3709 # Check that the compiler produces executables we can run. If not, either
3710 # the compiler is broken, or we cross compile.
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3712 $as_echo_n "checking whether we are cross compiling... " >&6; }
3713 if test "$cross_compiling" != yes; then
3714 { { ac_try="$ac_link"
3715 case "(($ac_try" in
3716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3717 *) ac_try_echo=$ac_try;;
3718 esac
3719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3720 $as_echo "$ac_try_echo"; } >&5
3721 (eval "$ac_link") 2>&5
3722 ac_status=$?
3723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3724 test $ac_status = 0; }
3725 if { ac_try='./conftest$ac_cv_exeext'
3726 { { case "(($ac_try" in
3727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3728 *) ac_try_echo=$ac_try;;
3729 esac
3730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3731 $as_echo "$ac_try_echo"; } >&5
3732 (eval "$ac_try") 2>&5
3733 ac_status=$?
3734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3735 test $ac_status = 0; }; }; then
3736 cross_compiling=no
3737 else
3738 if test "$cross_compiling" = maybe; then
3739 cross_compiling=yes
3740 else
3741 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3742 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3743 as_fn_error $? "cannot run C compiled programs.
3744 If you meant to cross compile, use \`--host'.
3745 See \`config.log' for more details" "$LINENO" 5; }
3746 fi
3747 fi
3748 fi
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3750 $as_echo "$cross_compiling" >&6; }
3751
3752 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3753 ac_clean_files=$ac_clean_files_save
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3755 $as_echo_n "checking for suffix of object files... " >&6; }
3756 if ${ac_cv_objext+:} false; then :
3757 $as_echo_n "(cached) " >&6
3758 else
3759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760 /* end confdefs.h. */
3761
3762 int
3763 main ()
3764 {
3765
3766 ;
3767 return 0;
3768 }
3769 _ACEOF
3770 rm -f conftest.o conftest.obj
3771 if { { ac_try="$ac_compile"
3772 case "(($ac_try" in
3773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3774 *) ac_try_echo=$ac_try;;
3775 esac
3776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3777 $as_echo "$ac_try_echo"; } >&5
3778 (eval "$ac_compile") 2>&5
3779 ac_status=$?
3780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3781 test $ac_status = 0; }; then :
3782 for ac_file in conftest.o conftest.obj conftest.*; do
3783 test -f "$ac_file" || continue;
3784 case $ac_file in
3785 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3786 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3787 break;;
3788 esac
3789 done
3790 else
3791 $as_echo "$as_me: failed program was:" >&5
3792 sed 's/^/| /' conftest.$ac_ext >&5
3793
3794 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3795 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3796 as_fn_error $? "cannot compute suffix of object files: cannot compile
3797 See \`config.log' for more details" "$LINENO" 5; }
3798 fi
3799 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3800 fi
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3802 $as_echo "$ac_cv_objext" >&6; }
3803 OBJEXT=$ac_cv_objext
3804 ac_objext=$OBJEXT
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3806 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3807 if ${ac_cv_c_compiler_gnu+:} false; then :
3808 $as_echo_n "(cached) " >&6
3809 else
3810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3811 /* end confdefs.h. */
3812
3813 int
3814 main ()
3815 {
3816 #ifndef __GNUC__
3817 choke me
3818 #endif
3819
3820 ;
3821 return 0;
3822 }
3823 _ACEOF
3824 if ac_fn_c_try_compile "$LINENO"; then :
3825 ac_compiler_gnu=yes
3826 else
3827 ac_compiler_gnu=no
3828 fi
3829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3830 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3831
3832 fi
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3834 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3835 if test $ac_compiler_gnu = yes; then
3836 GCC=yes
3837 else
3838 GCC=
3839 fi
3840 ac_test_CFLAGS=${CFLAGS+set}
3841 ac_save_CFLAGS=$CFLAGS
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3843 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3844 if ${ac_cv_prog_cc_g+:} false; then :
3845 $as_echo_n "(cached) " >&6
3846 else
3847 ac_save_c_werror_flag=$ac_c_werror_flag
3848 ac_c_werror_flag=yes
3849 ac_cv_prog_cc_g=no
3850 CFLAGS="-g"
3851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3852 /* end confdefs.h. */
3853
3854 int
3855 main ()
3856 {
3857
3858 ;
3859 return 0;
3860 }
3861 _ACEOF
3862 if ac_fn_c_try_compile "$LINENO"; then :
3863 ac_cv_prog_cc_g=yes
3864 else
3865 CFLAGS=""
3866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3867 /* end confdefs.h. */
3868
3869 int
3870 main ()
3871 {
3872
3873 ;
3874 return 0;
3875 }
3876 _ACEOF
3877 if ac_fn_c_try_compile "$LINENO"; then :
3878
3879 else
3880 ac_c_werror_flag=$ac_save_c_werror_flag
3881 CFLAGS="-g"
3882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3883 /* end confdefs.h. */
3884
3885 int
3886 main ()
3887 {
3888
3889 ;
3890 return 0;
3891 }
3892 _ACEOF
3893 if ac_fn_c_try_compile "$LINENO"; then :
3894 ac_cv_prog_cc_g=yes
3895 fi
3896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3897 fi
3898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3899 fi
3900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3901 ac_c_werror_flag=$ac_save_c_werror_flag
3902 fi
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3904 $as_echo "$ac_cv_prog_cc_g" >&6; }
3905 if test "$ac_test_CFLAGS" = set; then
3906 CFLAGS=$ac_save_CFLAGS
3907 elif test $ac_cv_prog_cc_g = yes; then
3908 if test "$GCC" = yes; then
3909 CFLAGS="-g -O2"
3910 else
3911 CFLAGS="-g"
3912 fi
3913 else
3914 if test "$GCC" = yes; then
3915 CFLAGS="-O2"
3916 else
3917 CFLAGS=
3918 fi
3919 fi
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3921 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3922 if ${ac_cv_prog_cc_c89+:} false; then :
3923 $as_echo_n "(cached) " >&6
3924 else
3925 ac_cv_prog_cc_c89=no
3926 ac_save_CC=$CC
3927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3928 /* end confdefs.h. */
3929 #include <stdarg.h>
3930 #include <stdio.h>
3931 struct stat;
3932 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3933 struct buf { int x; };
3934 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3935 static char *e (p, i)
3936 char **p;
3937 int i;
3938 {
3939 return p[i];
3940 }
3941 static char *f (char * (*g) (char **, int), char **p, ...)
3942 {
3943 char *s;
3944 va_list v;
3945 va_start (v,p);
3946 s = g (p, va_arg (v,int));
3947 va_end (v);
3948 return s;
3949 }
3950
3951 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3952 function prototypes and stuff, but not '\xHH' hex character constants.
3953 These don't provoke an error unfortunately, instead are silently treated
3954 as 'x'. The following induces an error, until -std is added to get
3955 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3956 array size at least. It's necessary to write '\x00'==0 to get something
3957 that's true only with -std. */
3958 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3959
3960 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3961 inside strings and character constants. */
3962 #define FOO(x) 'x'
3963 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3964
3965 int test (int i, double x);
3966 struct s1 {int (*f) (int a);};
3967 struct s2 {int (*f) (double a);};
3968 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3969 int argc;
3970 char **argv;
3971 int
3972 main ()
3973 {
3974 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3975 ;
3976 return 0;
3977 }
3978 _ACEOF
3979 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3980 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3981 do
3982 CC="$ac_save_CC $ac_arg"
3983 if ac_fn_c_try_compile "$LINENO"; then :
3984 ac_cv_prog_cc_c89=$ac_arg
3985 fi
3986 rm -f core conftest.err conftest.$ac_objext
3987 test "x$ac_cv_prog_cc_c89" != "xno" && break
3988 done
3989 rm -f conftest.$ac_ext
3990 CC=$ac_save_CC
3991
3992 fi
3993 # AC_CACHE_VAL
3994 case "x$ac_cv_prog_cc_c89" in
3995 x)
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3997 $as_echo "none needed" >&6; } ;;
3998 xno)
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4000 $as_echo "unsupported" >&6; } ;;
4001 *)
4002 CC="$CC $ac_cv_prog_cc_c89"
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4004 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4005 esac
4006 if test "x$ac_cv_prog_cc_c89" != xno; then :
4007
4008 fi
4009
4010 ac_ext=c
4011 ac_cpp='$CPP $CPPFLAGS'
4012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4015
4016 ac_ext=c
4017 ac_cpp='$CPP $CPPFLAGS'
4018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4022 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4023 if ${am_cv_prog_cc_c_o+:} false; then :
4024 $as_echo_n "(cached) " >&6
4025 else
4026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027 /* end confdefs.h. */
4028
4029 int
4030 main ()
4031 {
4032
4033 ;
4034 return 0;
4035 }
4036 _ACEOF
4037 # Make sure it works both with $CC and with simple cc.
4038 # Following AC_PROG_CC_C_O, we do the test twice because some
4039 # compilers refuse to overwrite an existing .o file with -o,
4040 # though they will create one.
4041 am_cv_prog_cc_c_o=yes
4042 for am_i in 1 2; do
4043 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4044 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4045 ac_status=$?
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); } \
4048 && test -f conftest2.$ac_objext; then
4049 : OK
4050 else
4051 am_cv_prog_cc_c_o=no
4052 break
4053 fi
4054 done
4055 rm -f core conftest*
4056 unset am_i
4057 fi
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4059 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4060 if test "$am_cv_prog_cc_c_o" != yes; then
4061 # Losing compiler, so override with the script.
4062 # FIXME: It is wrong to rewrite CC.
4063 # But if we don't then we get into trouble of one sort or another.
4064 # A longer-term fix would be to have automake use am__CC in this case,
4065 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4066 CC="$am_aux_dir/compile $CC"
4067 fi
4068 ac_ext=c
4069 ac_cpp='$CPP $CPPFLAGS'
4070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4073
4074
4075 depcc="$CC" am_compiler_list=
4076
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4078 $as_echo_n "checking dependency style of $depcc... " >&6; }
4079 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4080 $as_echo_n "(cached) " >&6
4081 else
4082 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4083 # We make a subdir and do the tests there. Otherwise we can end up
4084 # making bogus files that we don't know about and never remove. For
4085 # instance it was reported that on HP-UX the gcc test will end up
4086 # making a dummy file named 'D' -- because '-MD' means "put the output
4087 # in D".
4088 rm -rf conftest.dir
4089 mkdir conftest.dir
4090 # Copy depcomp to subdir because otherwise we won't find it if we're
4091 # using a relative directory.
4092 cp "$am_depcomp" conftest.dir
4093 cd conftest.dir
4094 # We will build objects and dependencies in a subdirectory because
4095 # it helps to detect inapplicable dependency modes. For instance
4096 # both Tru64's cc and ICC support -MD to output dependencies as a
4097 # side effect of compilation, but ICC will put the dependencies in
4098 # the current directory while Tru64 will put them in the object
4099 # directory.
4100 mkdir sub
4101
4102 am_cv_CC_dependencies_compiler_type=none
4103 if test "$am_compiler_list" = ""; then
4104 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4105 fi
4106 am__universal=false
4107 case " $depcc " in #(
4108 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4109 esac
4110
4111 for depmode in $am_compiler_list; do
4112 # Setup a source with many dependencies, because some compilers
4113 # like to wrap large dependency lists on column 80 (with \), and
4114 # we should not choose a depcomp mode which is confused by this.
4115 #
4116 # We need to recreate these files for each test, as the compiler may
4117 # overwrite some of them when testing with obscure command lines.
4118 # This happens at least with the AIX C compiler.
4119 : > sub/conftest.c
4120 for i in 1 2 3 4 5 6; do
4121 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4122 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4123 # Solaris 10 /bin/sh.
4124 echo '/* dummy */' > sub/conftst$i.h
4125 done
4126 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4127
4128 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4129 # mode. It turns out that the SunPro C++ compiler does not properly
4130 # handle '-M -o', and we need to detect this. Also, some Intel
4131 # versions had trouble with output in subdirs.
4132 am__obj=sub/conftest.${OBJEXT-o}
4133 am__minus_obj="-o $am__obj"
4134 case $depmode in
4135 gcc)
4136 # This depmode causes a compiler race in universal mode.
4137 test "$am__universal" = false || continue
4138 ;;
4139 nosideeffect)
4140 # After this tag, mechanisms are not by side-effect, so they'll
4141 # only be used when explicitly requested.
4142 if test "x$enable_dependency_tracking" = xyes; then
4143 continue
4144 else
4145 break
4146 fi
4147 ;;
4148 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4149 # This compiler won't grok '-c -o', but also, the minuso test has
4150 # not run yet. These depmodes are late enough in the game, and
4151 # so weak that their functioning should not be impacted.
4152 am__obj=conftest.${OBJEXT-o}
4153 am__minus_obj=
4154 ;;
4155 none) break ;;
4156 esac
4157 if depmode=$depmode \
4158 source=sub/conftest.c object=$am__obj \
4159 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4160 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4161 >/dev/null 2>conftest.err &&
4162 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4163 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4164 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4165 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4166 # icc doesn't choke on unknown options, it will just issue warnings
4167 # or remarks (even with -Werror). So we grep stderr for any message
4168 # that says an option was ignored or not supported.
4169 # When given -MP, icc 7.0 and 7.1 complain thusly:
4170 # icc: Command line warning: ignoring option '-M'; no argument required
4171 # The diagnosis changed in icc 8.0:
4172 # icc: Command line remark: option '-MP' not supported
4173 if (grep 'ignoring option' conftest.err ||
4174 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4175 am_cv_CC_dependencies_compiler_type=$depmode
4176 break
4177 fi
4178 fi
4179 done
4180
4181 cd ..
4182 rm -rf conftest.dir
4183 else
4184 am_cv_CC_dependencies_compiler_type=none
4185 fi
4186
4187 fi
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4189 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4190 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4191
4192 if
4193 test "x$enable_dependency_tracking" != xno \
4194 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4195 am__fastdepCC_TRUE=
4196 am__fastdepCC_FALSE='#'
4197 else
4198 am__fastdepCC_TRUE='#'
4199 am__fastdepCC_FALSE=
4200 fi
4201
4202
4203
4204 ac_ext=c
4205 ac_cpp='$CPP $CPPFLAGS'
4206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4210 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4211 # On Suns, sometimes $CPP names a directory.
4212 if test -n "$CPP" && test -d "$CPP"; then
4213 CPP=
4214 fi
4215 if test -z "$CPP"; then
4216 if ${ac_cv_prog_CPP+:} false; then :
4217 $as_echo_n "(cached) " >&6
4218 else
4219 # Double quotes because CPP needs to be expanded
4220 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4221 do
4222 ac_preproc_ok=false
4223 for ac_c_preproc_warn_flag in '' yes
4224 do
4225 # Use a header file that comes with gcc, so configuring glibc
4226 # with a fresh cross-compiler works.
4227 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4228 # <limits.h> exists even on freestanding compilers.
4229 # On the NeXT, cc -E runs the code through the compiler's parser,
4230 # not just through cpp. "Syntax error" is here to catch this case.
4231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4232 /* end confdefs.h. */
4233 #ifdef __STDC__
4234 # include <limits.h>
4235 #else
4236 # include <assert.h>
4237 #endif
4238 Syntax error
4239 _ACEOF
4240 if ac_fn_c_try_cpp "$LINENO"; then :
4241
4242 else
4243 # Broken: fails on valid input.
4244 continue
4245 fi
4246 rm -f conftest.err conftest.i conftest.$ac_ext
4247
4248 # OK, works on sane cases. Now check whether nonexistent headers
4249 # can be detected and how.
4250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4251 /* end confdefs.h. */
4252 #include <ac_nonexistent.h>
4253 _ACEOF
4254 if ac_fn_c_try_cpp "$LINENO"; then :
4255 # Broken: success on invalid input.
4256 continue
4257 else
4258 # Passes both tests.
4259 ac_preproc_ok=:
4260 break
4261 fi
4262 rm -f conftest.err conftest.i conftest.$ac_ext
4263
4264 done
4265 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4266 rm -f conftest.i conftest.err conftest.$ac_ext
4267 if $ac_preproc_ok; then :
4268 break
4269 fi
4270
4271 done
4272 ac_cv_prog_CPP=$CPP
4273
4274 fi
4275 CPP=$ac_cv_prog_CPP
4276 else
4277 ac_cv_prog_CPP=$CPP
4278 fi
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4280 $as_echo "$CPP" >&6; }
4281 ac_preproc_ok=false
4282 for ac_c_preproc_warn_flag in '' yes
4283 do
4284 # Use a header file that comes with gcc, so configuring glibc
4285 # with a fresh cross-compiler works.
4286 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4287 # <limits.h> exists even on freestanding compilers.
4288 # On the NeXT, cc -E runs the code through the compiler's parser,
4289 # not just through cpp. "Syntax error" is here to catch this case.
4290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4291 /* end confdefs.h. */
4292 #ifdef __STDC__
4293 # include <limits.h>
4294 #else
4295 # include <assert.h>
4296 #endif
4297 Syntax error
4298 _ACEOF
4299 if ac_fn_c_try_cpp "$LINENO"; then :
4300
4301 else
4302 # Broken: fails on valid input.
4303 continue
4304 fi
4305 rm -f conftest.err conftest.i conftest.$ac_ext
4306
4307 # OK, works on sane cases. Now check whether nonexistent headers
4308 # can be detected and how.
4309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4310 /* end confdefs.h. */
4311 #include <ac_nonexistent.h>
4312 _ACEOF
4313 if ac_fn_c_try_cpp "$LINENO"; then :
4314 # Broken: success on invalid input.
4315 continue
4316 else
4317 # Passes both tests.
4318 ac_preproc_ok=:
4319 break
4320 fi
4321 rm -f conftest.err conftest.i conftest.$ac_ext
4322
4323 done
4324 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4325 rm -f conftest.i conftest.err conftest.$ac_ext
4326 if $ac_preproc_ok; then :
4327
4328 else
4329 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4331 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4332 See \`config.log' for more details" "$LINENO" 5; }
4333 fi
4334
4335 ac_ext=c
4336 ac_cpp='$CPP $CPPFLAGS'
4337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4340
4341
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4343 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4344 if ${ac_cv_path_GREP+:} false; then :
4345 $as_echo_n "(cached) " >&6
4346 else
4347 if test -z "$GREP"; then
4348 ac_path_GREP_found=false
4349 # Loop through the user's path and test for each of PROGNAME-LIST
4350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4351 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4352 do
4353 IFS=$as_save_IFS
4354 test -z "$as_dir" && as_dir=.
4355 for ac_prog in grep ggrep; do
4356 for ac_exec_ext in '' $ac_executable_extensions; do
4357 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4358 as_fn_executable_p "$ac_path_GREP" || continue
4359 # Check for GNU ac_path_GREP and select it if it is found.
4360 # Check for GNU $ac_path_GREP
4361 case `"$ac_path_GREP" --version 2>&1` in
4362 *GNU*)
4363 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4364 *)
4365 ac_count=0
4366 $as_echo_n 0123456789 >"conftest.in"
4367 while :
4368 do
4369 cat "conftest.in" "conftest.in" >"conftest.tmp"
4370 mv "conftest.tmp" "conftest.in"
4371 cp "conftest.in" "conftest.nl"
4372 $as_echo 'GREP' >> "conftest.nl"
4373 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4374 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4375 as_fn_arith $ac_count + 1 && ac_count=$as_val
4376 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4377 # Best one so far, save it but keep looking for a better one
4378 ac_cv_path_GREP="$ac_path_GREP"
4379 ac_path_GREP_max=$ac_count
4380 fi
4381 # 10*(2^10) chars as input seems more than enough
4382 test $ac_count -gt 10 && break
4383 done
4384 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4385 esac
4386
4387 $ac_path_GREP_found && break 3
4388 done
4389 done
4390 done
4391 IFS=$as_save_IFS
4392 if test -z "$ac_cv_path_GREP"; then
4393 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4394 fi
4395 else
4396 ac_cv_path_GREP=$GREP
4397 fi
4398
4399 fi
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4401 $as_echo "$ac_cv_path_GREP" >&6; }
4402 GREP="$ac_cv_path_GREP"
4403
4404
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4406 $as_echo_n "checking for egrep... " >&6; }
4407 if ${ac_cv_path_EGREP+:} false; then :
4408 $as_echo_n "(cached) " >&6
4409 else
4410 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4411 then ac_cv_path_EGREP="$GREP -E"
4412 else
4413 if test -z "$EGREP"; then
4414 ac_path_EGREP_found=false
4415 # Loop through the user's path and test for each of PROGNAME-LIST
4416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4417 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4418 do
4419 IFS=$as_save_IFS
4420 test -z "$as_dir" && as_dir=.
4421 for ac_prog in egrep; do
4422 for ac_exec_ext in '' $ac_executable_extensions; do
4423 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4424 as_fn_executable_p "$ac_path_EGREP" || continue
4425 # Check for GNU ac_path_EGREP and select it if it is found.
4426 # Check for GNU $ac_path_EGREP
4427 case `"$ac_path_EGREP" --version 2>&1` in
4428 *GNU*)
4429 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4430 *)
4431 ac_count=0
4432 $as_echo_n 0123456789 >"conftest.in"
4433 while :
4434 do
4435 cat "conftest.in" "conftest.in" >"conftest.tmp"
4436 mv "conftest.tmp" "conftest.in"
4437 cp "conftest.in" "conftest.nl"
4438 $as_echo 'EGREP' >> "conftest.nl"
4439 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4440 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4441 as_fn_arith $ac_count + 1 && ac_count=$as_val
4442 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4443 # Best one so far, save it but keep looking for a better one
4444 ac_cv_path_EGREP="$ac_path_EGREP"
4445 ac_path_EGREP_max=$ac_count
4446 fi
4447 # 10*(2^10) chars as input seems more than enough
4448 test $ac_count -gt 10 && break
4449 done
4450 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4451 esac
4452
4453 $ac_path_EGREP_found && break 3
4454 done
4455 done
4456 done
4457 IFS=$as_save_IFS
4458 if test -z "$ac_cv_path_EGREP"; then
4459 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4460 fi
4461 else
4462 ac_cv_path_EGREP=$EGREP
4463 fi
4464
4465 fi
4466 fi
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4468 $as_echo "$ac_cv_path_EGREP" >&6; }
4469 EGREP="$ac_cv_path_EGREP"
4470
4471
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4473 $as_echo_n "checking for ANSI C header files... " >&6; }
4474 if ${ac_cv_header_stdc+:} false; then :
4475 $as_echo_n "(cached) " >&6
4476 else
4477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4478 /* end confdefs.h. */
4479 #include <stdlib.h>
4480 #include <stdarg.h>
4481 #include <string.h>
4482 #include <float.h>
4483
4484 int
4485 main ()
4486 {
4487
4488 ;
4489 return 0;
4490 }
4491 _ACEOF
4492 if ac_fn_c_try_compile "$LINENO"; then :
4493 ac_cv_header_stdc=yes
4494 else
4495 ac_cv_header_stdc=no
4496 fi
4497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4498
4499 if test $ac_cv_header_stdc = yes; then
4500 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4502 /* end confdefs.h. */
4503 #include <string.h>
4504
4505 _ACEOF
4506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4507 $EGREP "memchr" >/dev/null 2>&1; then :
4508
4509 else
4510 ac_cv_header_stdc=no
4511 fi
4512 rm -f conftest*
4513
4514 fi
4515
4516 if test $ac_cv_header_stdc = yes; then
4517 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4519 /* end confdefs.h. */
4520 #include <stdlib.h>
4521
4522 _ACEOF
4523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4524 $EGREP "free" >/dev/null 2>&1; then :
4525
4526 else
4527 ac_cv_header_stdc=no
4528 fi
4529 rm -f conftest*
4530
4531 fi
4532
4533 if test $ac_cv_header_stdc = yes; then
4534 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4535 if test "$cross_compiling" = yes; then :
4536 :
4537 else
4538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4539 /* end confdefs.h. */
4540 #include <ctype.h>
4541 #include <stdlib.h>
4542 #if ((' ' & 0x0FF) == 0x020)
4543 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4544 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4545 #else
4546 # define ISLOWER(c) \
4547 (('a' <= (c) && (c) <= 'i') \
4548 || ('j' <= (c) && (c) <= 'r') \
4549 || ('s' <= (c) && (c) <= 'z'))
4550 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4551 #endif
4552
4553 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4554 int
4555 main ()
4556 {
4557 int i;
4558 for (i = 0; i < 256; i++)
4559 if (XOR (islower (i), ISLOWER (i))
4560 || toupper (i) != TOUPPER (i))
4561 return 2;
4562 return 0;
4563 }
4564 _ACEOF
4565 if ac_fn_c_try_run "$LINENO"; then :
4566
4567 else
4568 ac_cv_header_stdc=no
4569 fi
4570 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4571 conftest.$ac_objext conftest.beam conftest.$ac_ext
4572 fi
4573
4574 fi
4575 fi
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4577 $as_echo "$ac_cv_header_stdc" >&6; }
4578 if test $ac_cv_header_stdc = yes; then
4579
4580 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4581
4582 fi
4583
4584 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4585 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4586 inttypes.h stdint.h unistd.h
4587 do :
4588 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4589 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4590 "
4591 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4592 cat >>confdefs.h <<_ACEOF
4593 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4594 _ACEOF
4595
4596 fi
4597
4598 done
4599
4600
4601
4602 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4603 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4604 MINIX=yes
4605 else
4606 MINIX=
4607 fi
4608
4609
4610 if test "$MINIX" = yes; then
4611
4612 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4613
4614
4615 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4616
4617
4618 $as_echo "#define _MINIX 1" >>confdefs.h
4619
4620 fi
4621
4622
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4624 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4625 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4626 $as_echo_n "(cached) " >&6
4627 else
4628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4629 /* end confdefs.h. */
4630
4631 # define __EXTENSIONS__ 1
4632 $ac_includes_default
4633 int
4634 main ()
4635 {
4636
4637 ;
4638 return 0;
4639 }
4640 _ACEOF
4641 if ac_fn_c_try_compile "$LINENO"; then :
4642 ac_cv_safe_to_define___extensions__=yes
4643 else
4644 ac_cv_safe_to_define___extensions__=no
4645 fi
4646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4647 fi
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4649 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4650 test $ac_cv_safe_to_define___extensions__ = yes &&
4651 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4652
4653 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4654
4655 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4656
4657 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4658
4659 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4660
4661
4662 ac_ext=c
4663 ac_cpp='$CPP $CPPFLAGS'
4664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4667 if test -n "$ac_tool_prefix"; then
4668 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4669 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4671 $as_echo_n "checking for $ac_word... " >&6; }
4672 if ${ac_cv_prog_CC+:} false; then :
4673 $as_echo_n "(cached) " >&6
4674 else
4675 if test -n "$CC"; then
4676 ac_cv_prog_CC="$CC" # Let the user override the test.
4677 else
4678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679 for as_dir in $PATH
4680 do
4681 IFS=$as_save_IFS
4682 test -z "$as_dir" && as_dir=.
4683 for ac_exec_ext in '' $ac_executable_extensions; do
4684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4685 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4687 break 2
4688 fi
4689 done
4690 done
4691 IFS=$as_save_IFS
4692
4693 fi
4694 fi
4695 CC=$ac_cv_prog_CC
4696 if test -n "$CC"; then
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4698 $as_echo "$CC" >&6; }
4699 else
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4701 $as_echo "no" >&6; }
4702 fi
4703
4704
4705 fi
4706 if test -z "$ac_cv_prog_CC"; then
4707 ac_ct_CC=$CC
4708 # Extract the first word of "gcc", so it can be a program name with args.
4709 set dummy gcc; ac_word=$2
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4711 $as_echo_n "checking for $ac_word... " >&6; }
4712 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4713 $as_echo_n "(cached) " >&6
4714 else
4715 if test -n "$ac_ct_CC"; then
4716 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4717 else
4718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719 for as_dir in $PATH
4720 do
4721 IFS=$as_save_IFS
4722 test -z "$as_dir" && as_dir=.
4723 for ac_exec_ext in '' $ac_executable_extensions; do
4724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4725 ac_cv_prog_ac_ct_CC="gcc"
4726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4727 break 2
4728 fi
4729 done
4730 done
4731 IFS=$as_save_IFS
4732
4733 fi
4734 fi
4735 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4736 if test -n "$ac_ct_CC"; then
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4738 $as_echo "$ac_ct_CC" >&6; }
4739 else
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4741 $as_echo "no" >&6; }
4742 fi
4743
4744 if test "x$ac_ct_CC" = x; then
4745 CC=""
4746 else
4747 case $cross_compiling:$ac_tool_warned in
4748 yes:)
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4751 ac_tool_warned=yes ;;
4752 esac
4753 CC=$ac_ct_CC
4754 fi
4755 else
4756 CC="$ac_cv_prog_CC"
4757 fi
4758
4759 if test -z "$CC"; then
4760 if test -n "$ac_tool_prefix"; then
4761 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4762 set dummy ${ac_tool_prefix}cc; ac_word=$2
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4764 $as_echo_n "checking for $ac_word... " >&6; }
4765 if ${ac_cv_prog_CC+:} false; then :
4766 $as_echo_n "(cached) " >&6
4767 else
4768 if test -n "$CC"; then
4769 ac_cv_prog_CC="$CC" # Let the user override the test.
4770 else
4771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772 for as_dir in $PATH
4773 do
4774 IFS=$as_save_IFS
4775 test -z "$as_dir" && as_dir=.
4776 for ac_exec_ext in '' $ac_executable_extensions; do
4777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4778 ac_cv_prog_CC="${ac_tool_prefix}cc"
4779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4780 break 2
4781 fi
4782 done
4783 done
4784 IFS=$as_save_IFS
4785
4786 fi
4787 fi
4788 CC=$ac_cv_prog_CC
4789 if test -n "$CC"; then
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4791 $as_echo "$CC" >&6; }
4792 else
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4794 $as_echo "no" >&6; }
4795 fi
4796
4797
4798 fi
4799 fi
4800 if test -z "$CC"; then
4801 # Extract the first word of "cc", so it can be a program name with args.
4802 set dummy cc; ac_word=$2
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4804 $as_echo_n "checking for $ac_word... " >&6; }
4805 if ${ac_cv_prog_CC+:} false; then :
4806 $as_echo_n "(cached) " >&6
4807 else
4808 if test -n "$CC"; then
4809 ac_cv_prog_CC="$CC" # Let the user override the test.
4810 else
4811 ac_prog_rejected=no
4812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813 for as_dir in $PATH
4814 do
4815 IFS=$as_save_IFS
4816 test -z "$as_dir" && as_dir=.
4817 for ac_exec_ext in '' $ac_executable_extensions; do
4818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4819 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4820 ac_prog_rejected=yes
4821 continue
4822 fi
4823 ac_cv_prog_CC="cc"
4824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4825 break 2
4826 fi
4827 done
4828 done
4829 IFS=$as_save_IFS
4830
4831 if test $ac_prog_rejected = yes; then
4832 # We found a bogon in the path, so make sure we never use it.
4833 set dummy $ac_cv_prog_CC
4834 shift
4835 if test $# != 0; then
4836 # We chose a different compiler from the bogus one.
4837 # However, it has the same basename, so the bogon will be chosen
4838 # first if we set CC to just the basename; use the full file name.
4839 shift
4840 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4841 fi
4842 fi
4843 fi
4844 fi
4845 CC=$ac_cv_prog_CC
4846 if test -n "$CC"; then
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4848 $as_echo "$CC" >&6; }
4849 else
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4851 $as_echo "no" >&6; }
4852 fi
4853
4854
4855 fi
4856 if test -z "$CC"; then
4857 if test -n "$ac_tool_prefix"; then
4858 for ac_prog in cl.exe
4859 do
4860 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4861 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4863 $as_echo_n "checking for $ac_word... " >&6; }
4864 if ${ac_cv_prog_CC+:} false; then :
4865 $as_echo_n "(cached) " >&6
4866 else
4867 if test -n "$CC"; then
4868 ac_cv_prog_CC="$CC" # Let the user override the test.
4869 else
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871 for as_dir in $PATH
4872 do
4873 IFS=$as_save_IFS
4874 test -z "$as_dir" && as_dir=.
4875 for ac_exec_ext in '' $ac_executable_extensions; do
4876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4877 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4879 break 2
4880 fi
4881 done
4882 done
4883 IFS=$as_save_IFS
4884
4885 fi
4886 fi
4887 CC=$ac_cv_prog_CC
4888 if test -n "$CC"; then
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4890 $as_echo "$CC" >&6; }
4891 else
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4893 $as_echo "no" >&6; }
4894 fi
4895
4896
4897 test -n "$CC" && break
4898 done
4899 fi
4900 if test -z "$CC"; then
4901 ac_ct_CC=$CC
4902 for ac_prog in cl.exe
4903 do
4904 # Extract the first word of "$ac_prog", so it can be a program name with args.
4905 set dummy $ac_prog; ac_word=$2
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4907 $as_echo_n "checking for $ac_word... " >&6; }
4908 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4909 $as_echo_n "(cached) " >&6
4910 else
4911 if test -n "$ac_ct_CC"; then
4912 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4913 else
4914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915 for as_dir in $PATH
4916 do
4917 IFS=$as_save_IFS
4918 test -z "$as_dir" && as_dir=.
4919 for ac_exec_ext in '' $ac_executable_extensions; do
4920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4921 ac_cv_prog_ac_ct_CC="$ac_prog"
4922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4923 break 2
4924 fi
4925 done
4926 done
4927 IFS=$as_save_IFS
4928
4929 fi
4930 fi
4931 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4932 if test -n "$ac_ct_CC"; then
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4934 $as_echo "$ac_ct_CC" >&6; }
4935 else
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4937 $as_echo "no" >&6; }
4938 fi
4939
4940
4941 test -n "$ac_ct_CC" && break
4942 done
4943
4944 if test "x$ac_ct_CC" = x; then
4945 CC=""
4946 else
4947 case $cross_compiling:$ac_tool_warned in
4948 yes:)
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4950 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4951 ac_tool_warned=yes ;;
4952 esac
4953 CC=$ac_ct_CC
4954 fi
4955 fi
4956
4957 fi
4958
4959
4960 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4961 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4962 as_fn_error $? "no acceptable C compiler found in \$PATH
4963 See \`config.log' for more details" "$LINENO" 5; }
4964
4965 # Provide some information about the compiler.
4966 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4967 set X $ac_compile
4968 ac_compiler=$2
4969 for ac_option in --version -v -V -qversion; do
4970 { { ac_try="$ac_compiler $ac_option >&5"
4971 case "(($ac_try" in
4972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4973 *) ac_try_echo=$ac_try;;
4974 esac
4975 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4976 $as_echo "$ac_try_echo"; } >&5
4977 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4978 ac_status=$?
4979 if test -s conftest.err; then
4980 sed '10a\
4981 ... rest of stderr output deleted ...
4982 10q' conftest.err >conftest.er1
4983 cat conftest.er1 >&5
4984 fi
4985 rm -f conftest.er1 conftest.err
4986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4987 test $ac_status = 0; }
4988 done
4989
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4991 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4992 if ${ac_cv_c_compiler_gnu+:} false; then :
4993 $as_echo_n "(cached) " >&6
4994 else
4995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4996 /* end confdefs.h. */
4997
4998 int
4999 main ()
5000 {
5001 #ifndef __GNUC__
5002 choke me
5003 #endif
5004
5005 ;
5006 return 0;
5007 }
5008 _ACEOF
5009 if ac_fn_c_try_compile "$LINENO"; then :
5010 ac_compiler_gnu=yes
5011 else
5012 ac_compiler_gnu=no
5013 fi
5014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5015 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5016
5017 fi
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5019 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5020 if test $ac_compiler_gnu = yes; then
5021 GCC=yes
5022 else
5023 GCC=
5024 fi
5025 ac_test_CFLAGS=${CFLAGS+set}
5026 ac_save_CFLAGS=$CFLAGS
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5028 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5029 if ${ac_cv_prog_cc_g+:} false; then :
5030 $as_echo_n "(cached) " >&6
5031 else
5032 ac_save_c_werror_flag=$ac_c_werror_flag
5033 ac_c_werror_flag=yes
5034 ac_cv_prog_cc_g=no
5035 CFLAGS="-g"
5036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5037 /* end confdefs.h. */
5038
5039 int
5040 main ()
5041 {
5042
5043 ;
5044 return 0;
5045 }
5046 _ACEOF
5047 if ac_fn_c_try_compile "$LINENO"; then :
5048 ac_cv_prog_cc_g=yes
5049 else
5050 CFLAGS=""
5051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5052 /* end confdefs.h. */
5053
5054 int
5055 main ()
5056 {
5057
5058 ;
5059 return 0;
5060 }
5061 _ACEOF
5062 if ac_fn_c_try_compile "$LINENO"; then :
5063
5064 else
5065 ac_c_werror_flag=$ac_save_c_werror_flag
5066 CFLAGS="-g"
5067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5068 /* end confdefs.h. */
5069
5070 int
5071 main ()
5072 {
5073
5074 ;
5075 return 0;
5076 }
5077 _ACEOF
5078 if ac_fn_c_try_compile "$LINENO"; then :
5079 ac_cv_prog_cc_g=yes
5080 fi
5081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5082 fi
5083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5084 fi
5085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5086 ac_c_werror_flag=$ac_save_c_werror_flag
5087 fi
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5089 $as_echo "$ac_cv_prog_cc_g" >&6; }
5090 if test "$ac_test_CFLAGS" = set; then
5091 CFLAGS=$ac_save_CFLAGS
5092 elif test $ac_cv_prog_cc_g = yes; then
5093 if test "$GCC" = yes; then
5094 CFLAGS="-g -O2"
5095 else
5096 CFLAGS="-g"
5097 fi
5098 else
5099 if test "$GCC" = yes; then
5100 CFLAGS="-O2"
5101 else
5102 CFLAGS=
5103 fi
5104 fi
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5106 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5107 if ${ac_cv_prog_cc_c89+:} false; then :
5108 $as_echo_n "(cached) " >&6
5109 else
5110 ac_cv_prog_cc_c89=no
5111 ac_save_CC=$CC
5112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5113 /* end confdefs.h. */
5114 #include <stdarg.h>
5115 #include <stdio.h>
5116 struct stat;
5117 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5118 struct buf { int x; };
5119 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5120 static char *e (p, i)
5121 char **p;
5122 int i;
5123 {
5124 return p[i];
5125 }
5126 static char *f (char * (*g) (char **, int), char **p, ...)
5127 {
5128 char *s;
5129 va_list v;
5130 va_start (v,p);
5131 s = g (p, va_arg (v,int));
5132 va_end (v);
5133 return s;
5134 }
5135
5136 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5137 function prototypes and stuff, but not '\xHH' hex character constants.
5138 These don't provoke an error unfortunately, instead are silently treated
5139 as 'x'. The following induces an error, until -std is added to get
5140 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5141 array size at least. It's necessary to write '\x00'==0 to get something
5142 that's true only with -std. */
5143 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5144
5145 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5146 inside strings and character constants. */
5147 #define FOO(x) 'x'
5148 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5149
5150 int test (int i, double x);
5151 struct s1 {int (*f) (int a);};
5152 struct s2 {int (*f) (double a);};
5153 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5154 int argc;
5155 char **argv;
5156 int
5157 main ()
5158 {
5159 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5160 ;
5161 return 0;
5162 }
5163 _ACEOF
5164 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5165 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5166 do
5167 CC="$ac_save_CC $ac_arg"
5168 if ac_fn_c_try_compile "$LINENO"; then :
5169 ac_cv_prog_cc_c89=$ac_arg
5170 fi
5171 rm -f core conftest.err conftest.$ac_objext
5172 test "x$ac_cv_prog_cc_c89" != "xno" && break
5173 done
5174 rm -f conftest.$ac_ext
5175 CC=$ac_save_CC
5176
5177 fi
5178 # AC_CACHE_VAL
5179 case "x$ac_cv_prog_cc_c89" in
5180 x)
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5182 $as_echo "none needed" >&6; } ;;
5183 xno)
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5185 $as_echo "unsupported" >&6; } ;;
5186 *)
5187 CC="$CC $ac_cv_prog_cc_c89"
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5189 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5190 esac
5191 if test "x$ac_cv_prog_cc_c89" != xno; then :
5192
5193 fi
5194
5195 ac_ext=c
5196 ac_cpp='$CPP $CPPFLAGS'
5197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5200
5201 ac_ext=c
5202 ac_cpp='$CPP $CPPFLAGS'
5203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5207 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5208 if ${am_cv_prog_cc_c_o+:} false; then :
5209 $as_echo_n "(cached) " >&6
5210 else
5211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5212 /* end confdefs.h. */
5213
5214 int
5215 main ()
5216 {
5217
5218 ;
5219 return 0;
5220 }
5221 _ACEOF
5222 # Make sure it works both with $CC and with simple cc.
5223 # Following AC_PROG_CC_C_O, we do the test twice because some
5224 # compilers refuse to overwrite an existing .o file with -o,
5225 # though they will create one.
5226 am_cv_prog_cc_c_o=yes
5227 for am_i in 1 2; do
5228 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5229 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5230 ac_status=$?
5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232 (exit $ac_status); } \
5233 && test -f conftest2.$ac_objext; then
5234 : OK
5235 else
5236 am_cv_prog_cc_c_o=no
5237 break
5238 fi
5239 done
5240 rm -f core conftest*
5241 unset am_i
5242 fi
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5244 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5245 if test "$am_cv_prog_cc_c_o" != yes; then
5246 # Losing compiler, so override with the script.
5247 # FIXME: It is wrong to rewrite CC.
5248 # But if we don't then we get into trouble of one sort or another.
5249 # A longer-term fix would be to have automake use am__CC in this case,
5250 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5251 CC="$am_aux_dir/compile $CC"
5252 fi
5253 ac_ext=c
5254 ac_cpp='$CPP $CPPFLAGS'
5255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5258
5259
5260 depcc="$CC" am_compiler_list=
5261
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5263 $as_echo_n "checking dependency style of $depcc... " >&6; }
5264 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5265 $as_echo_n "(cached) " >&6
5266 else
5267 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5268 # We make a subdir and do the tests there. Otherwise we can end up
5269 # making bogus files that we don't know about and never remove. For
5270 # instance it was reported that on HP-UX the gcc test will end up
5271 # making a dummy file named 'D' -- because '-MD' means "put the output
5272 # in D".
5273 rm -rf conftest.dir
5274 mkdir conftest.dir
5275 # Copy depcomp to subdir because otherwise we won't find it if we're
5276 # using a relative directory.
5277 cp "$am_depcomp" conftest.dir
5278 cd conftest.dir
5279 # We will build objects and dependencies in a subdirectory because
5280 # it helps to detect inapplicable dependency modes. For instance
5281 # both Tru64's cc and ICC support -MD to output dependencies as a
5282 # side effect of compilation, but ICC will put the dependencies in
5283 # the current directory while Tru64 will put them in the object
5284 # directory.
5285 mkdir sub
5286
5287 am_cv_CC_dependencies_compiler_type=none
5288 if test "$am_compiler_list" = ""; then
5289 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5290 fi
5291 am__universal=false
5292 case " $depcc " in #(
5293 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5294 esac
5295
5296 for depmode in $am_compiler_list; do
5297 # Setup a source with many dependencies, because some compilers
5298 # like to wrap large dependency lists on column 80 (with \), and
5299 # we should not choose a depcomp mode which is confused by this.
5300 #
5301 # We need to recreate these files for each test, as the compiler may
5302 # overwrite some of them when testing with obscure command lines.
5303 # This happens at least with the AIX C compiler.
5304 : > sub/conftest.c
5305 for i in 1 2 3 4 5 6; do
5306 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5307 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5308 # Solaris 10 /bin/sh.
5309 echo '/* dummy */' > sub/conftst$i.h
5310 done
5311 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5312
5313 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5314 # mode. It turns out that the SunPro C++ compiler does not properly
5315 # handle '-M -o', and we need to detect this. Also, some Intel
5316 # versions had trouble with output in subdirs.
5317 am__obj=sub/conftest.${OBJEXT-o}
5318 am__minus_obj="-o $am__obj"
5319 case $depmode in
5320 gcc)
5321 # This depmode causes a compiler race in universal mode.
5322 test "$am__universal" = false || continue
5323 ;;
5324 nosideeffect)
5325 # After this tag, mechanisms are not by side-effect, so they'll
5326 # only be used when explicitly requested.
5327 if test "x$enable_dependency_tracking" = xyes; then
5328 continue
5329 else
5330 break
5331 fi
5332 ;;
5333 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5334 # This compiler won't grok '-c -o', but also, the minuso test has
5335 # not run yet. These depmodes are late enough in the game, and
5336 # so weak that their functioning should not be impacted.
5337 am__obj=conftest.${OBJEXT-o}
5338 am__minus_obj=
5339 ;;
5340 none) break ;;
5341 esac
5342 if depmode=$depmode \
5343 source=sub/conftest.c object=$am__obj \
5344 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5345 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5346 >/dev/null 2>conftest.err &&
5347 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5348 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5349 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5350 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5351 # icc doesn't choke on unknown options, it will just issue warnings
5352 # or remarks (even with -Werror). So we grep stderr for any message
5353 # that says an option was ignored or not supported.
5354 # When given -MP, icc 7.0 and 7.1 complain thusly:
5355 # icc: Command line warning: ignoring option '-M'; no argument required
5356 # The diagnosis changed in icc 8.0:
5357 # icc: Command line remark: option '-MP' not supported
5358 if (grep 'ignoring option' conftest.err ||
5359 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5360 am_cv_CC_dependencies_compiler_type=$depmode
5361 break
5362 fi
5363 fi
5364 done
5365
5366 cd ..
5367 rm -rf conftest.dir
5368 else
5369 am_cv_CC_dependencies_compiler_type=none
5370 fi
5371
5372 fi
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5374 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5375 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5376
5377 if
5378 test "x$enable_dependency_tracking" != xno \
5379 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5380 am__fastdepCC_TRUE=
5381 am__fastdepCC_FALSE='#'
5382 else
5383 am__fastdepCC_TRUE='#'
5384 am__fastdepCC_FALSE=
5385 fi
5386
5387
5388 # Check whether --enable-largefile was given.
5389 if test "${enable_largefile+set}" = set; then :
5390 enableval=$enable_largefile;
5391 fi
5392
5393 if test "$enable_largefile" != no; then
5394
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5396 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5397 if ${ac_cv_sys_largefile_CC+:} false; then :
5398 $as_echo_n "(cached) " >&6
5399 else
5400 ac_cv_sys_largefile_CC=no
5401 if test "$GCC" != yes; then
5402 ac_save_CC=$CC
5403 while :; do
5404 # IRIX 6.2 and later do not support large files by default,
5405 # so use the C compiler's -n32 option if that helps.
5406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5407 /* end confdefs.h. */
5408 #include <sys/types.h>
5409 /* Check that off_t can represent 2**63 - 1 correctly.
5410 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5411 since some C++ compilers masquerading as C compilers
5412 incorrectly reject 9223372036854775807. */
5413 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5414 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5415 && LARGE_OFF_T % 2147483647 == 1)
5416 ? 1 : -1];
5417 int
5418 main ()
5419 {
5420
5421 ;
5422 return 0;
5423 }
5424 _ACEOF
5425 if ac_fn_c_try_compile "$LINENO"; then :
5426 break
5427 fi
5428 rm -f core conftest.err conftest.$ac_objext
5429 CC="$CC -n32"
5430 if ac_fn_c_try_compile "$LINENO"; then :
5431 ac_cv_sys_largefile_CC=' -n32'; break
5432 fi
5433 rm -f core conftest.err conftest.$ac_objext
5434 break
5435 done
5436 CC=$ac_save_CC
5437 rm -f conftest.$ac_ext
5438 fi
5439 fi
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5441 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5442 if test "$ac_cv_sys_largefile_CC" != no; then
5443 CC=$CC$ac_cv_sys_largefile_CC
5444 fi
5445
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5447 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5448 if ${ac_cv_sys_file_offset_bits+:} false; then :
5449 $as_echo_n "(cached) " >&6
5450 else
5451 while :; do
5452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5453 /* end confdefs.h. */
5454 #include <sys/types.h>
5455 /* Check that off_t can represent 2**63 - 1 correctly.
5456 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5457 since some C++ compilers masquerading as C compilers
5458 incorrectly reject 9223372036854775807. */
5459 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5460 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5461 && LARGE_OFF_T % 2147483647 == 1)
5462 ? 1 : -1];
5463 int
5464 main ()
5465 {
5466
5467 ;
5468 return 0;
5469 }
5470 _ACEOF
5471 if ac_fn_c_try_compile "$LINENO"; then :
5472 ac_cv_sys_file_offset_bits=no; break
5473 fi
5474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5476 /* end confdefs.h. */
5477 #define _FILE_OFFSET_BITS 64
5478 #include <sys/types.h>
5479 /* Check that off_t can represent 2**63 - 1 correctly.
5480 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5481 since some C++ compilers masquerading as C compilers
5482 incorrectly reject 9223372036854775807. */
5483 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5484 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5485 && LARGE_OFF_T % 2147483647 == 1)
5486 ? 1 : -1];
5487 int
5488 main ()
5489 {
5490
5491 ;
5492 return 0;
5493 }
5494 _ACEOF
5495 if ac_fn_c_try_compile "$LINENO"; then :
5496 ac_cv_sys_file_offset_bits=64; break
5497 fi
5498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5499 ac_cv_sys_file_offset_bits=unknown
5500 break
5501 done
5502 fi
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5504 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5505 case $ac_cv_sys_file_offset_bits in #(
5506 no | unknown) ;;
5507 *)
5508 cat >>confdefs.h <<_ACEOF
5509 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5510 _ACEOF
5511 ;;
5512 esac
5513 rm -rf conftest*
5514 if test $ac_cv_sys_file_offset_bits = unknown; then
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5516 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5517 if ${ac_cv_sys_large_files+:} false; then :
5518 $as_echo_n "(cached) " >&6
5519 else
5520 while :; do
5521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5522 /* end confdefs.h. */
5523 #include <sys/types.h>
5524 /* Check that off_t can represent 2**63 - 1 correctly.
5525 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5526 since some C++ compilers masquerading as C compilers
5527 incorrectly reject 9223372036854775807. */
5528 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5529 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5530 && LARGE_OFF_T % 2147483647 == 1)
5531 ? 1 : -1];
5532 int
5533 main ()
5534 {
5535
5536 ;
5537 return 0;
5538 }
5539 _ACEOF
5540 if ac_fn_c_try_compile "$LINENO"; then :
5541 ac_cv_sys_large_files=no; break
5542 fi
5543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5545 /* end confdefs.h. */
5546 #define _LARGE_FILES 1
5547 #include <sys/types.h>
5548 /* Check that off_t can represent 2**63 - 1 correctly.
5549 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5550 since some C++ compilers masquerading as C compilers
5551 incorrectly reject 9223372036854775807. */
5552 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5553 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5554 && LARGE_OFF_T % 2147483647 == 1)
5555 ? 1 : -1];
5556 int
5557 main ()
5558 {
5559
5560 ;
5561 return 0;
5562 }
5563 _ACEOF
5564 if ac_fn_c_try_compile "$LINENO"; then :
5565 ac_cv_sys_large_files=1; break
5566 fi
5567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5568 ac_cv_sys_large_files=unknown
5569 break
5570 done
5571 fi
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5573 $as_echo "$ac_cv_sys_large_files" >&6; }
5574 case $ac_cv_sys_large_files in #(
5575 no | unknown) ;;
5576 *)
5577 cat >>confdefs.h <<_ACEOF
5578 #define _LARGE_FILES $ac_cv_sys_large_files
5579 _ACEOF
5580 ;;
5581 esac
5582 rm -rf conftest*
5583 fi
5584
5585
5586 fi
5587
5588 ac_ext=c
5589 ac_cpp='$CPP $CPPFLAGS'
5590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5593
5594 ac_lto_plugin_warn_cflags=
5595 save_CFLAGS="$CFLAGS"
5596 for real_option in -Wall; do
5597 # Do the check with the no- prefix removed since gcc silently
5598 # accepts any -Wno-* option on purpose
5599 case $real_option in
5600 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
5601 *) option=$real_option ;;
5602 esac
5603 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
5604
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
5606 $as_echo_n "checking whether $CC supports $option... " >&6; }
5607 if eval \${$as_acx_Woption+:} false; then :
5608 $as_echo_n "(cached) " >&6
5609 else
5610 CFLAGS="$option"
5611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5612 /* end confdefs.h. */
5613
5614 int
5615 main ()
5616 {
5617
5618 ;
5619 return 0;
5620 }
5621 _ACEOF
5622 if ac_fn_c_try_compile "$LINENO"; then :
5623 eval "$as_acx_Woption=yes"
5624 else
5625 eval "$as_acx_Woption=no"
5626 fi
5627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5628
5629 fi
5630 eval ac_res=\$$as_acx_Woption
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5632 $as_echo "$ac_res" >&6; }
5633 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5634 ac_lto_plugin_warn_cflags="$ac_lto_plugin_warn_cflags${ac_lto_plugin_warn_cflags:+ }$real_option"
5635 fi
5636 done
5637 CFLAGS="$save_CFLAGS"
5638 ac_ext=c
5639 ac_cpp='$CPP $CPPFLAGS'
5640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5643
5644
5645
5646 # Check whether -static-libgcc is supported.
5647 saved_LDFLAGS="$LDFLAGS"
5648 LDFLAGS="$LDFLAGS -static-libgcc"
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -static-libgcc" >&5
5650 $as_echo_n "checking for -static-libgcc... " >&6; }
5651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5652 /* end confdefs.h. */
5653
5654 int main() {}
5655 _ACEOF
5656 if ac_fn_c_try_link "$LINENO"; then :
5657 have_static_libgcc=yes
5658 else
5659 have_static_libgcc=no
5660 fi
5661 rm -f core conftest.err conftest.$ac_objext \
5662 conftest$ac_exeext conftest.$ac_ext
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_static_libgcc" >&5
5664 $as_echo "$have_static_libgcc" >&6; };
5665 LDFLAGS="$saved_LDFLAGS"
5666 # Need -Wc to get it through libtool.
5667 if test "x$have_static_libgcc" = xyes; then
5668 ac_lto_plugin_ldflags="-Wc,-static-libgcc"
5669 fi
5670
5671
5672 # Check whether --enable-cet was given.
5673 if test "${enable_cet+set}" = set; then :
5674 enableval=$enable_cet;
5675 case "$enableval" in
5676 yes|no|auto) ;;
5677 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
5678 esac
5679
5680 else
5681 enable_cet=auto
5682 fi
5683
5684
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
5686 $as_echo_n "checking for CET support... " >&6; }
5687
5688 case "$host" in
5689 i[34567]86-*-linux* | x86_64-*-linux*)
5690 may_have_cet=yes
5691 cet_save_CFLAGS="$CFLAGS"
5692 CFLAGS="$CFLAGS -fcf-protection"
5693 case "$enable_cet" in
5694 auto)
5695 # Check if target supports multi-byte NOPs
5696 # and if compiler and assembler support CET.
5697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5698 /* end confdefs.h. */
5699
5700 int
5701 main ()
5702 {
5703
5704 #if !defined(__SSE2__)
5705 #error target does not support multi-byte NOPs
5706 #else
5707 asm ("setssbsy");
5708 #endif
5709
5710 ;
5711 return 0;
5712 }
5713 _ACEOF
5714 if ac_fn_c_try_compile "$LINENO"; then :
5715 enable_cet=yes
5716 else
5717 enable_cet=no
5718 fi
5719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5720 ;;
5721 yes)
5722 # Check if compiler and assembler support CET.
5723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5724 /* end confdefs.h. */
5725
5726 int
5727 main ()
5728 {
5729 asm ("setssbsy");
5730 ;
5731 return 0;
5732 }
5733 _ACEOF
5734 if ac_fn_c_try_compile "$LINENO"; then :
5735 support_cet=yes
5736 else
5737 support_cet=no
5738 fi
5739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5740 if test $support_cet = "no"; then
5741 if test x$enable_bootstrap != xno \
5742 && test -z "${with_build_subdir}" \
5743 && (test ! -f ../stage_current \
5744 || test `cat ../stage_current` != "stage1"); then
5745 # Require CET support only for the final GCC build.
5746 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
5747 else
5748 # Don't enable CET without CET support for non-bootstrap
5749 # build, in stage1 nor for build support.
5750 enable_cet=no
5751 fi
5752 fi
5753 ;;
5754 esac
5755 CFLAGS="$cet_save_CFLAGS"
5756 ;;
5757 *)
5758 may_have_cet=no
5759 enable_cet=no
5760 ;;
5761 esac
5762
5763 cet_save_CFLAGS="$CFLAGS"
5764 CFLAGS="$CFLAGS -fcf-protection=none"
5765 cet_save_LDFLAGS="$LDFLAGS"
5766 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
5767 if test x$may_have_cet = xyes; then
5768 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
5769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5770 /* end confdefs.h. */
5771
5772 int
5773 main ()
5774 {
5775 return 0;
5776 ;
5777 return 0;
5778 }
5779 _ACEOF
5780 if ac_fn_c_try_link "$LINENO"; then :
5781 may_have_cet=yes
5782 else
5783 may_have_cet=no
5784 fi
5785 rm -f core conftest.err conftest.$ac_objext \
5786 conftest$ac_exeext conftest.$ac_ext
5787 fi
5788
5789 if test x$may_have_cet = xyes; then
5790 if test x$cross_compiling = xno; then
5791 if test "$cross_compiling" = yes; then :
5792 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5793 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5794 as_fn_error $? "cannot run test program while cross compiling
5795 See \`config.log' for more details" "$LINENO" 5; }
5796 else
5797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5798 /* end confdefs.h. */
5799
5800 int
5801 main ()
5802 {
5803 asm ("endbr32");
5804 return 0;
5805 }
5806
5807 _ACEOF
5808 if ac_fn_c_try_run "$LINENO"; then :
5809 have_multi_byte_nop=yes
5810 else
5811 have_multi_byte_nop=no
5812 fi
5813 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5814 conftest.$ac_objext conftest.beam conftest.$ac_ext
5815 fi
5816
5817 have_cet=no
5818 if test x$have_multi_byte_nop = xyes; then
5819 if test "$cross_compiling" = yes; then :
5820 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5821 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5822 as_fn_error $? "cannot run test program while cross compiling
5823 See \`config.log' for more details" "$LINENO" 5; }
5824 else
5825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5826 /* end confdefs.h. */
5827
5828 static void
5829 foo (void)
5830 {
5831 }
5832
5833 static void
5834 __attribute__ ((noinline, noclone))
5835 xxx (void (*f) (void))
5836 {
5837 f ();
5838 }
5839
5840 static void
5841 __attribute__ ((noinline, noclone))
5842 bar (void)
5843 {
5844 xxx (foo);
5845 }
5846
5847 int
5848 main ()
5849 {
5850 bar ();
5851 return 0;
5852 }
5853
5854 _ACEOF
5855 if ac_fn_c_try_run "$LINENO"; then :
5856 have_cet=no
5857 else
5858 have_cet=yes
5859 fi
5860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5861 conftest.$ac_objext conftest.beam conftest.$ac_ext
5862 fi
5863
5864 fi
5865 if test x$enable_cet = xno -a x$have_cet = xyes; then
5866 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
5867 fi
5868 fi
5869 else
5870 # Enable CET in cross compiler if possible so that it will run on both
5871 # CET and non-CET hosts.
5872 have_cet=yes
5873 fi
5874 if test x$enable_cet = xyes; then
5875 CET_HOST_FLAGS="-fcf-protection"
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5877 $as_echo "yes" >&6; }
5878 else
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5880 $as_echo "no" >&6; }
5881 fi
5882 CFLAGS="$cet_save_CFLAGS"
5883 LDFLAGS="$cet_save_LDFLAGS"
5884
5885
5886
5887 if test x"$host_subdir" = x.; then
5888 gcc_build_dir=../gcc
5889 else
5890 gcc_build_dir=../../$host_subdir/gcc
5891 fi
5892
5893
5894 # Used for constructing correct paths for offload compilers.
5895 accel_dir_suffix=
5896 real_target_noncanonical=${target_noncanonical}
5897 if test x"$enable_as_accelerator_for" != x; then
5898 accel_dir_suffix=/accel/${target_noncanonical}
5899 real_target_noncanonical=${enable_as_accelerator_for}
5900 fi
5901
5902
5903
5904 # Determine what GCC version number to use in filesystem paths.
5905
5906 get_gcc_base_ver="cat"
5907
5908 # Check whether --with-gcc-major-version-only was given.
5909 if test "${with_gcc_major_version_only+set}" = set; then :
5910 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
5911 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
5912 fi
5913
5914 fi
5915
5916
5917
5918
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
5920 $as_echo_n "checking whether symbol versioning is supported... " >&6; }
5921 lto_plugin_use_symver=no
5922 if test x$gcc_no_link = xyes; then
5923 # If we cannot link, we cannot build shared libraries, so do not use
5924 # symbol versioning.
5925 lto_plugin_use_symver=no
5926 else
5927 save_LDFLAGS="$LDFLAGS"
5928 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
5929 cat > conftest.map <<EOF
5930 {
5931 global: *foo*; bar; local: *;
5932 };
5933 EOF
5934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5935 /* end confdefs.h. */
5936 int foo;
5937 int
5938 main ()
5939 {
5940
5941 ;
5942 return 0;
5943 }
5944 _ACEOF
5945 if ac_fn_c_try_link "$LINENO"; then :
5946 lto_plugin_use_symver=gnu
5947 else
5948 lto_plugin_use_symver=no
5949 fi
5950 rm -f core conftest.err conftest.$ac_objext \
5951 conftest$ac_exeext conftest.$ac_ext
5952 if test x$lto_plugin_use_symver = xno; then
5953 case "$target_os" in
5954 solaris2*)
5955 LDFLAGS="$save_LDFLAGS"
5956 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
5957 # Sun ld cannot handle wildcards and treats all entries as undefined.
5958 cat > conftest.map <<EOF
5959 {
5960 global: foo; local: *;
5961 };
5962 EOF
5963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5964 /* end confdefs.h. */
5965 int foo;
5966 int
5967 main ()
5968 {
5969
5970 ;
5971 return 0;
5972 }
5973 _ACEOF
5974 if ac_fn_c_try_link "$LINENO"; then :
5975 lto_plugin_use_symver=sun
5976 else
5977 lto_plugin_use_symver=no
5978 fi
5979 rm -f core conftest.err conftest.$ac_objext \
5980 conftest$ac_exeext conftest.$ac_ext
5981 ;;
5982 esac
5983 fi
5984 LDFLAGS="$save_LDFLAGS"
5985 fi
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lto_plugin_use_symver" >&5
5987 $as_echo "$lto_plugin_use_symver" >&6; }
5988 if test "x$lto_plugin_use_symver" != xno; then
5989 LTO_PLUGIN_USE_SYMVER_TRUE=
5990 LTO_PLUGIN_USE_SYMVER_FALSE='#'
5991 else
5992 LTO_PLUGIN_USE_SYMVER_TRUE='#'
5993 LTO_PLUGIN_USE_SYMVER_FALSE=
5994 fi
5995
5996 if test "x$lto_plugin_use_symver" = xgnu; then
5997 LTO_PLUGIN_USE_SYMVER_GNU_TRUE=
5998 LTO_PLUGIN_USE_SYMVER_GNU_FALSE='#'
5999 else
6000 LTO_PLUGIN_USE_SYMVER_GNU_TRUE='#'
6001 LTO_PLUGIN_USE_SYMVER_GNU_FALSE=
6002 fi
6003
6004 if test "x$lto_plugin_use_symver" = xsun; then
6005 LTO_PLUGIN_USE_SYMVER_SUN_TRUE=
6006 LTO_PLUGIN_USE_SYMVER_SUN_FALSE='#'
6007 else
6008 LTO_PLUGIN_USE_SYMVER_SUN_TRUE='#'
6009 LTO_PLUGIN_USE_SYMVER_SUN_FALSE=
6010 fi
6011
6012
6013 case `pwd` in
6014 *\ * | *\ *)
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6016 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6017 esac
6018
6019
6020
6021 macro_version='2.2.7a'
6022 macro_revision='1.3134'
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036 ltmain="$ac_aux_dir/ltmain.sh"
6037
6038 # Backslashify metacharacters that are still active within
6039 # double-quoted strings.
6040 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6041
6042 # Same as above, but do not quote variable references.
6043 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6044
6045 # Sed substitution to delay expansion of an escaped shell variable in a
6046 # double_quote_subst'ed string.
6047 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6048
6049 # Sed substitution to delay expansion of an escaped single quote.
6050 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6051
6052 # Sed substitution to avoid accidental globbing in evaled expressions
6053 no_glob_subst='s/\*/\\\*/g'
6054
6055 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6056 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6057 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6058
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6060 $as_echo_n "checking how to print strings... " >&6; }
6061 # Test print first, because it will be a builtin if present.
6062 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6063 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6064 ECHO='print -r --'
6065 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6066 ECHO='printf %s\n'
6067 else
6068 # Use this function as a fallback that always works.
6069 func_fallback_echo ()
6070 {
6071 eval 'cat <<_LTECHO_EOF
6072 $1
6073 _LTECHO_EOF'
6074 }
6075 ECHO='func_fallback_echo'
6076 fi
6077
6078 # func_echo_all arg...
6079 # Invoke $ECHO with all args, space-separated.
6080 func_echo_all ()
6081 {
6082 $ECHO ""
6083 }
6084
6085 case "$ECHO" in
6086 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6087 $as_echo "printf" >&6; } ;;
6088 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6089 $as_echo "print -r" >&6; } ;;
6090 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6091 $as_echo "cat" >&6; } ;;
6092 esac
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6108 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6109 if ${ac_cv_path_SED+:} false; then :
6110 $as_echo_n "(cached) " >&6
6111 else
6112 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6113 for ac_i in 1 2 3 4 5 6 7; do
6114 ac_script="$ac_script$as_nl$ac_script"
6115 done
6116 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6117 { ac_script=; unset ac_script;}
6118 if test -z "$SED"; then
6119 ac_path_SED_found=false
6120 # Loop through the user's path and test for each of PROGNAME-LIST
6121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6122 for as_dir in $PATH
6123 do
6124 IFS=$as_save_IFS
6125 test -z "$as_dir" && as_dir=.
6126 for ac_prog in sed gsed; do
6127 for ac_exec_ext in '' $ac_executable_extensions; do
6128 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6129 as_fn_executable_p "$ac_path_SED" || continue
6130 # Check for GNU ac_path_SED and select it if it is found.
6131 # Check for GNU $ac_path_SED
6132 case `"$ac_path_SED" --version 2>&1` in
6133 *GNU*)
6134 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6135 *)
6136 ac_count=0
6137 $as_echo_n 0123456789 >"conftest.in"
6138 while :
6139 do
6140 cat "conftest.in" "conftest.in" >"conftest.tmp"
6141 mv "conftest.tmp" "conftest.in"
6142 cp "conftest.in" "conftest.nl"
6143 $as_echo '' >> "conftest.nl"
6144 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6145 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6146 as_fn_arith $ac_count + 1 && ac_count=$as_val
6147 if test $ac_count -gt ${ac_path_SED_max-0}; then
6148 # Best one so far, save it but keep looking for a better one
6149 ac_cv_path_SED="$ac_path_SED"
6150 ac_path_SED_max=$ac_count
6151 fi
6152 # 10*(2^10) chars as input seems more than enough
6153 test $ac_count -gt 10 && break
6154 done
6155 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6156 esac
6157
6158 $ac_path_SED_found && break 3
6159 done
6160 done
6161 done
6162 IFS=$as_save_IFS
6163 if test -z "$ac_cv_path_SED"; then
6164 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6165 fi
6166 else
6167 ac_cv_path_SED=$SED
6168 fi
6169
6170 fi
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6172 $as_echo "$ac_cv_path_SED" >&6; }
6173 SED="$ac_cv_path_SED"
6174 rm -f conftest.sed
6175
6176 test -z "$SED" && SED=sed
6177 Xsed="$SED -e 1s/^X//"
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6190 $as_echo_n "checking for fgrep... " >&6; }
6191 if ${ac_cv_path_FGREP+:} false; then :
6192 $as_echo_n "(cached) " >&6
6193 else
6194 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6195 then ac_cv_path_FGREP="$GREP -F"
6196 else
6197 if test -z "$FGREP"; then
6198 ac_path_FGREP_found=false
6199 # Loop through the user's path and test for each of PROGNAME-LIST
6200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6202 do
6203 IFS=$as_save_IFS
6204 test -z "$as_dir" && as_dir=.
6205 for ac_prog in fgrep; do
6206 for ac_exec_ext in '' $ac_executable_extensions; do
6207 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6208 as_fn_executable_p "$ac_path_FGREP" || continue
6209 # Check for GNU ac_path_FGREP and select it if it is found.
6210 # Check for GNU $ac_path_FGREP
6211 case `"$ac_path_FGREP" --version 2>&1` in
6212 *GNU*)
6213 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6214 *)
6215 ac_count=0
6216 $as_echo_n 0123456789 >"conftest.in"
6217 while :
6218 do
6219 cat "conftest.in" "conftest.in" >"conftest.tmp"
6220 mv "conftest.tmp" "conftest.in"
6221 cp "conftest.in" "conftest.nl"
6222 $as_echo 'FGREP' >> "conftest.nl"
6223 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6224 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6225 as_fn_arith $ac_count + 1 && ac_count=$as_val
6226 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6227 # Best one so far, save it but keep looking for a better one
6228 ac_cv_path_FGREP="$ac_path_FGREP"
6229 ac_path_FGREP_max=$ac_count
6230 fi
6231 # 10*(2^10) chars as input seems more than enough
6232 test $ac_count -gt 10 && break
6233 done
6234 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6235 esac
6236
6237 $ac_path_FGREP_found && break 3
6238 done
6239 done
6240 done
6241 IFS=$as_save_IFS
6242 if test -z "$ac_cv_path_FGREP"; then
6243 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6244 fi
6245 else
6246 ac_cv_path_FGREP=$FGREP
6247 fi
6248
6249 fi
6250 fi
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6252 $as_echo "$ac_cv_path_FGREP" >&6; }
6253 FGREP="$ac_cv_path_FGREP"
6254
6255
6256 test -z "$GREP" && GREP=grep
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276 # Check whether --with-gnu-ld was given.
6277 if test "${with_gnu_ld+set}" = set; then :
6278 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6279 else
6280 with_gnu_ld=no
6281 fi
6282
6283 ac_prog=ld
6284 if test "$GCC" = yes; then
6285 # Check if gcc -print-prog-name=ld gives a path.
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6287 $as_echo_n "checking for ld used by $CC... " >&6; }
6288 case $host in
6289 *-*-mingw*)
6290 # gcc leaves a trailing carriage return which upsets mingw
6291 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6292 *)
6293 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6294 esac
6295 case $ac_prog in
6296 # Accept absolute paths.
6297 [\\/]* | ?:[\\/]*)
6298 re_direlt='/[^/][^/]*/\.\./'
6299 # Canonicalize the pathname of ld
6300 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6301 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6302 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6303 done
6304 test -z "$LD" && LD="$ac_prog"
6305 ;;
6306 "")
6307 # If it fails, then pretend we aren't using GCC.
6308 ac_prog=ld
6309 ;;
6310 *)
6311 # If it is relative, then search for the first ld in PATH.
6312 with_gnu_ld=unknown
6313 ;;
6314 esac
6315 elif test "$with_gnu_ld" = yes; then
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6317 $as_echo_n "checking for GNU ld... " >&6; }
6318 else
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6320 $as_echo_n "checking for non-GNU ld... " >&6; }
6321 fi
6322 if ${lt_cv_path_LD+:} false; then :
6323 $as_echo_n "(cached) " >&6
6324 else
6325 if test -z "$LD"; then
6326 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6327 for ac_dir in $PATH; do
6328 IFS="$lt_save_ifs"
6329 test -z "$ac_dir" && ac_dir=.
6330 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6331 lt_cv_path_LD="$ac_dir/$ac_prog"
6332 # Check to see if the program is GNU ld. I'd rather use --version,
6333 # but apparently some variants of GNU ld only accept -v.
6334 # Break only if it was the GNU/non-GNU ld that we prefer.
6335 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6336 *GNU* | *'with BFD'*)
6337 test "$with_gnu_ld" != no && break
6338 ;;
6339 *)
6340 test "$with_gnu_ld" != yes && break
6341 ;;
6342 esac
6343 fi
6344 done
6345 IFS="$lt_save_ifs"
6346 else
6347 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6348 fi
6349 fi
6350
6351 LD="$lt_cv_path_LD"
6352 if test -n "$LD"; then
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6354 $as_echo "$LD" >&6; }
6355 else
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6357 $as_echo "no" >&6; }
6358 fi
6359 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6361 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6362 if ${lt_cv_prog_gnu_ld+:} false; then :
6363 $as_echo_n "(cached) " >&6
6364 else
6365 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6366 case `$LD -v 2>&1 </dev/null` in
6367 *GNU* | *'with BFD'*)
6368 lt_cv_prog_gnu_ld=yes
6369 ;;
6370 *)
6371 lt_cv_prog_gnu_ld=no
6372 ;;
6373 esac
6374 fi
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6376 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6377 with_gnu_ld=$lt_cv_prog_gnu_ld
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6388 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6389 if ${lt_cv_path_NM+:} false; then :
6390 $as_echo_n "(cached) " >&6
6391 else
6392 if test -n "$NM"; then
6393 # Let the user override the test.
6394 lt_cv_path_NM="$NM"
6395 else
6396 lt_nm_to_check="${ac_tool_prefix}nm"
6397 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6398 lt_nm_to_check="$lt_nm_to_check nm"
6399 fi
6400 for lt_tmp_nm in $lt_nm_to_check; do
6401 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6402 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6403 IFS="$lt_save_ifs"
6404 test -z "$ac_dir" && ac_dir=.
6405 tmp_nm="$ac_dir/$lt_tmp_nm"
6406 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6407 # Check to see if the nm accepts a BSD-compat flag.
6408 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6409 # nm: unknown option "B" ignored
6410 # Tru64's nm complains that /dev/null is an invalid object file
6411 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6412 */dev/null* | *'Invalid file or object type'*)
6413 lt_cv_path_NM="$tmp_nm -B"
6414 break
6415 ;;
6416 *)
6417 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6418 */dev/null*)
6419 lt_cv_path_NM="$tmp_nm -p"
6420 break
6421 ;;
6422 *)
6423 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6424 continue # so that we can try to find one that supports BSD flags
6425 ;;
6426 esac
6427 ;;
6428 esac
6429 fi
6430 done
6431 IFS="$lt_save_ifs"
6432 done
6433 : ${lt_cv_path_NM=no}
6434 fi
6435 fi
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6437 $as_echo "$lt_cv_path_NM" >&6; }
6438 if test "$lt_cv_path_NM" != "no"; then
6439 NM="$lt_cv_path_NM"
6440 else
6441 # Didn't find any BSD compatible name lister, look for dumpbin.
6442 if test -n "$DUMPBIN"; then :
6443 # Let the user override the test.
6444 else
6445 if test -n "$ac_tool_prefix"; then
6446 for ac_prog in dumpbin "link -dump"
6447 do
6448 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6449 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6451 $as_echo_n "checking for $ac_word... " >&6; }
6452 if ${ac_cv_prog_DUMPBIN+:} false; then :
6453 $as_echo_n "(cached) " >&6
6454 else
6455 if test -n "$DUMPBIN"; then
6456 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6457 else
6458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6459 for as_dir in $PATH
6460 do
6461 IFS=$as_save_IFS
6462 test -z "$as_dir" && as_dir=.
6463 for ac_exec_ext in '' $ac_executable_extensions; do
6464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6465 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6467 break 2
6468 fi
6469 done
6470 done
6471 IFS=$as_save_IFS
6472
6473 fi
6474 fi
6475 DUMPBIN=$ac_cv_prog_DUMPBIN
6476 if test -n "$DUMPBIN"; then
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6478 $as_echo "$DUMPBIN" >&6; }
6479 else
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6481 $as_echo "no" >&6; }
6482 fi
6483
6484
6485 test -n "$DUMPBIN" && break
6486 done
6487 fi
6488 if test -z "$DUMPBIN"; then
6489 ac_ct_DUMPBIN=$DUMPBIN
6490 for ac_prog in dumpbin "link -dump"
6491 do
6492 # Extract the first word of "$ac_prog", so it can be a program name with args.
6493 set dummy $ac_prog; ac_word=$2
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6495 $as_echo_n "checking for $ac_word... " >&6; }
6496 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6497 $as_echo_n "(cached) " >&6
6498 else
6499 if test -n "$ac_ct_DUMPBIN"; then
6500 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6501 else
6502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6503 for as_dir in $PATH
6504 do
6505 IFS=$as_save_IFS
6506 test -z "$as_dir" && as_dir=.
6507 for ac_exec_ext in '' $ac_executable_extensions; do
6508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6509 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6511 break 2
6512 fi
6513 done
6514 done
6515 IFS=$as_save_IFS
6516
6517 fi
6518 fi
6519 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6520 if test -n "$ac_ct_DUMPBIN"; then
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6522 $as_echo "$ac_ct_DUMPBIN" >&6; }
6523 else
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6525 $as_echo "no" >&6; }
6526 fi
6527
6528
6529 test -n "$ac_ct_DUMPBIN" && break
6530 done
6531
6532 if test "x$ac_ct_DUMPBIN" = x; then
6533 DUMPBIN=":"
6534 else
6535 case $cross_compiling:$ac_tool_warned in
6536 yes:)
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6539 ac_tool_warned=yes ;;
6540 esac
6541 DUMPBIN=$ac_ct_DUMPBIN
6542 fi
6543 fi
6544
6545 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6546 *COFF*)
6547 DUMPBIN="$DUMPBIN -symbols"
6548 ;;
6549 *)
6550 DUMPBIN=:
6551 ;;
6552 esac
6553 fi
6554
6555 if test "$DUMPBIN" != ":"; then
6556 NM="$DUMPBIN"
6557 fi
6558 fi
6559 test -z "$NM" && NM=nm
6560
6561
6562
6563
6564
6565
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6567 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6568 if ${lt_cv_nm_interface+:} false; then :
6569 $as_echo_n "(cached) " >&6
6570 else
6571 lt_cv_nm_interface="BSD nm"
6572 echo "int some_variable = 0;" > conftest.$ac_ext
6573 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6574 (eval "$ac_compile" 2>conftest.err)
6575 cat conftest.err >&5
6576 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6577 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6578 cat conftest.err >&5
6579 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6580 cat conftest.out >&5
6581 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6582 lt_cv_nm_interface="MS dumpbin"
6583 fi
6584 rm -f conftest*
6585 fi
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6587 $as_echo "$lt_cv_nm_interface" >&6; }
6588
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6590 $as_echo_n "checking whether ln -s works... " >&6; }
6591 LN_S=$as_ln_s
6592 if test "$LN_S" = "ln -s"; then
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6594 $as_echo "yes" >&6; }
6595 else
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6597 $as_echo "no, using $LN_S" >&6; }
6598 fi
6599
6600 # find the maximum length of command line arguments
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6602 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6603 if ${lt_cv_sys_max_cmd_len+:} false; then :
6604 $as_echo_n "(cached) " >&6
6605 else
6606 i=0
6607 teststring="ABCD"
6608
6609 case $build_os in
6610 msdosdjgpp*)
6611 # On DJGPP, this test can blow up pretty badly due to problems in libc
6612 # (any single argument exceeding 2000 bytes causes a buffer overrun
6613 # during glob expansion). Even if it were fixed, the result of this
6614 # check would be larger than it should be.
6615 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6616 ;;
6617
6618 gnu*)
6619 # Under GNU Hurd, this test is not required because there is
6620 # no limit to the length of command line arguments.
6621 # Libtool will interpret -1 as no limit whatsoever
6622 lt_cv_sys_max_cmd_len=-1;
6623 ;;
6624
6625 cygwin* | mingw* | cegcc*)
6626 # On Win9x/ME, this test blows up -- it succeeds, but takes
6627 # about 5 minutes as the teststring grows exponentially.
6628 # Worse, since 9x/ME are not pre-emptively multitasking,
6629 # you end up with a "frozen" computer, even though with patience
6630 # the test eventually succeeds (with a max line length of 256k).
6631 # Instead, let's just punt: use the minimum linelength reported by
6632 # all of the supported platforms: 8192 (on NT/2K/XP).
6633 lt_cv_sys_max_cmd_len=8192;
6634 ;;
6635
6636 mint*)
6637 # On MiNT this can take a long time and run out of memory.
6638 lt_cv_sys_max_cmd_len=8192;
6639 ;;
6640
6641 amigaos*)
6642 # On AmigaOS with pdksh, this test takes hours, literally.
6643 # So we just punt and use a minimum line length of 8192.
6644 lt_cv_sys_max_cmd_len=8192;
6645 ;;
6646
6647 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6648 # This has been around since 386BSD, at least. Likely further.
6649 if test -x /sbin/sysctl; then
6650 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6651 elif test -x /usr/sbin/sysctl; then
6652 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6653 else
6654 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6655 fi
6656 # And add a safety zone
6657 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6658 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6659 ;;
6660
6661 interix*)
6662 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6663 lt_cv_sys_max_cmd_len=196608
6664 ;;
6665
6666 osf*)
6667 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6668 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6669 # nice to cause kernel panics so lets avoid the loop below.
6670 # First set a reasonable default.
6671 lt_cv_sys_max_cmd_len=16384
6672 #
6673 if test -x /sbin/sysconfig; then
6674 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6675 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6676 esac
6677 fi
6678 ;;
6679 sco3.2v5*)
6680 lt_cv_sys_max_cmd_len=102400
6681 ;;
6682 sysv5* | sco5v6* | sysv4.2uw2*)
6683 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6684 if test -n "$kargmax"; then
6685 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6686 else
6687 lt_cv_sys_max_cmd_len=32768
6688 fi
6689 ;;
6690 *)
6691 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6692 if test -n "$lt_cv_sys_max_cmd_len"; then
6693 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6694 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6695 else
6696 # Make teststring a little bigger before we do anything with it.
6697 # a 1K string should be a reasonable start.
6698 for i in 1 2 3 4 5 6 7 8 ; do
6699 teststring=$teststring$teststring
6700 done
6701 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6702 # If test is not a shell built-in, we'll probably end up computing a
6703 # maximum length that is only half of the actual maximum length, but
6704 # we can't tell.
6705 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6706 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6707 test $i != 17 # 1/2 MB should be enough
6708 do
6709 i=`expr $i + 1`
6710 teststring=$teststring$teststring
6711 done
6712 # Only check the string length outside the loop.
6713 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6714 teststring=
6715 # Add a significant safety factor because C++ compilers can tack on
6716 # massive amounts of additional arguments before passing them to the
6717 # linker. It appears as though 1/2 is a usable value.
6718 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6719 fi
6720 ;;
6721 esac
6722
6723 fi
6724
6725 if test -n $lt_cv_sys_max_cmd_len ; then
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6727 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6728 else
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6730 $as_echo "none" >&6; }
6731 fi
6732 max_cmd_len=$lt_cv_sys_max_cmd_len
6733
6734
6735
6736
6737
6738
6739 : ${CP="cp -f"}
6740 : ${MV="mv -f"}
6741 : ${RM="rm -f"}
6742
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6744 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6745 # Try some XSI features
6746 xsi_shell=no
6747 ( _lt_dummy="a/b/c"
6748 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6749 = c,a/b,, \
6750 && eval 'test $(( 1 + 1 )) -eq 2 \
6751 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6752 && xsi_shell=yes
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6754 $as_echo "$xsi_shell" >&6; }
6755
6756
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6758 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6759 lt_shell_append=no
6760 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6761 >/dev/null 2>&1 \
6762 && lt_shell_append=yes
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6764 $as_echo "$lt_shell_append" >&6; }
6765
6766
6767 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6768 lt_unset=unset
6769 else
6770 lt_unset=false
6771 fi
6772
6773
6774
6775
6776
6777 # test EBCDIC or ASCII
6778 case `echo X|tr X '\101'` in
6779 A) # ASCII based system
6780 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6781 lt_SP2NL='tr \040 \012'
6782 lt_NL2SP='tr \015\012 \040\040'
6783 ;;
6784 *) # EBCDIC based system
6785 lt_SP2NL='tr \100 \n'
6786 lt_NL2SP='tr \r\n \100\100'
6787 ;;
6788 esac
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6799 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6800 if ${lt_cv_ld_reload_flag+:} false; then :
6801 $as_echo_n "(cached) " >&6
6802 else
6803 lt_cv_ld_reload_flag='-r'
6804 fi
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6806 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6807 reload_flag=$lt_cv_ld_reload_flag
6808 case $reload_flag in
6809 "" | " "*) ;;
6810 *) reload_flag=" $reload_flag" ;;
6811 esac
6812 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6813 case $host_os in
6814 darwin*)
6815 if test "$GCC" = yes; then
6816 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6817 else
6818 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6819 fi
6820 ;;
6821 esac
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831 if test -n "$ac_tool_prefix"; then
6832 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6833 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6835 $as_echo_n "checking for $ac_word... " >&6; }
6836 if ${ac_cv_prog_OBJDUMP+:} false; then :
6837 $as_echo_n "(cached) " >&6
6838 else
6839 if test -n "$OBJDUMP"; then
6840 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6841 else
6842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6843 for as_dir in $PATH
6844 do
6845 IFS=$as_save_IFS
6846 test -z "$as_dir" && as_dir=.
6847 for ac_exec_ext in '' $ac_executable_extensions; do
6848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6849 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6851 break 2
6852 fi
6853 done
6854 done
6855 IFS=$as_save_IFS
6856
6857 fi
6858 fi
6859 OBJDUMP=$ac_cv_prog_OBJDUMP
6860 if test -n "$OBJDUMP"; then
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6862 $as_echo "$OBJDUMP" >&6; }
6863 else
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6865 $as_echo "no" >&6; }
6866 fi
6867
6868
6869 fi
6870 if test -z "$ac_cv_prog_OBJDUMP"; then
6871 ac_ct_OBJDUMP=$OBJDUMP
6872 # Extract the first word of "objdump", so it can be a program name with args.
6873 set dummy objdump; ac_word=$2
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6875 $as_echo_n "checking for $ac_word... " >&6; }
6876 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6877 $as_echo_n "(cached) " >&6
6878 else
6879 if test -n "$ac_ct_OBJDUMP"; then
6880 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6881 else
6882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6883 for as_dir in $PATH
6884 do
6885 IFS=$as_save_IFS
6886 test -z "$as_dir" && as_dir=.
6887 for ac_exec_ext in '' $ac_executable_extensions; do
6888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6889 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6891 break 2
6892 fi
6893 done
6894 done
6895 IFS=$as_save_IFS
6896
6897 fi
6898 fi
6899 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6900 if test -n "$ac_ct_OBJDUMP"; then
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6902 $as_echo "$ac_ct_OBJDUMP" >&6; }
6903 else
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6905 $as_echo "no" >&6; }
6906 fi
6907
6908 if test "x$ac_ct_OBJDUMP" = x; then
6909 OBJDUMP="false"
6910 else
6911 case $cross_compiling:$ac_tool_warned in
6912 yes:)
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6914 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6915 ac_tool_warned=yes ;;
6916 esac
6917 OBJDUMP=$ac_ct_OBJDUMP
6918 fi
6919 else
6920 OBJDUMP="$ac_cv_prog_OBJDUMP"
6921 fi
6922
6923 test -z "$OBJDUMP" && OBJDUMP=objdump
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6934 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6935 if ${lt_cv_deplibs_check_method+:} false; then :
6936 $as_echo_n "(cached) " >&6
6937 else
6938 lt_cv_file_magic_cmd='$MAGIC_CMD'
6939 lt_cv_file_magic_test_file=
6940 lt_cv_deplibs_check_method='unknown'
6941 # Need to set the preceding variable on all platforms that support
6942 # interlibrary dependencies.
6943 # 'none' -- dependencies not supported.
6944 # `unknown' -- same as none, but documents that we really don't know.
6945 # 'pass_all' -- all dependencies passed with no checks.
6946 # 'test_compile' -- check by making test program.
6947 # 'file_magic [[regex]]' -- check by looking for files in library path
6948 # which responds to the $file_magic_cmd with a given extended regex.
6949 # If you have `file' or equivalent on your system and you're not sure
6950 # whether `pass_all' will *always* work, you probably want this one.
6951
6952 case $host_os in
6953 aix[4-9]*)
6954 lt_cv_deplibs_check_method=pass_all
6955 ;;
6956
6957 beos*)
6958 lt_cv_deplibs_check_method=pass_all
6959 ;;
6960
6961 bsdi[45]*)
6962 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6963 lt_cv_file_magic_cmd='/usr/bin/file -L'
6964 lt_cv_file_magic_test_file=/shlib/libc.so
6965 ;;
6966
6967 cygwin*)
6968 # func_win32_libid is a shell function defined in ltmain.sh
6969 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6970 lt_cv_file_magic_cmd='func_win32_libid'
6971 ;;
6972
6973 mingw* | pw32*)
6974 # Base MSYS/MinGW do not provide the 'file' command needed by
6975 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6976 # unless we find 'file', for example because we are cross-compiling.
6977 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6978 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6979 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6980 lt_cv_file_magic_cmd='func_win32_libid'
6981 else
6982 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6983 lt_cv_file_magic_cmd='$OBJDUMP -f'
6984 fi
6985 ;;
6986
6987 cegcc*)
6988 # use the weaker test based on 'objdump'. See mingw*.
6989 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6990 lt_cv_file_magic_cmd='$OBJDUMP -f'
6991 ;;
6992
6993 darwin* | rhapsody*)
6994 lt_cv_deplibs_check_method=pass_all
6995 ;;
6996
6997 freebsd* | dragonfly*)
6998 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6999 case $host_cpu in
7000 i*86 )
7001 # Not sure whether the presence of OpenBSD here was a mistake.
7002 # Let's accept both of them until this is cleared up.
7003 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7004 lt_cv_file_magic_cmd=/usr/bin/file
7005 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7006 ;;
7007 esac
7008 else
7009 lt_cv_deplibs_check_method=pass_all
7010 fi
7011 ;;
7012
7013 gnu*)
7014 lt_cv_deplibs_check_method=pass_all
7015 ;;
7016
7017 haiku*)
7018 lt_cv_deplibs_check_method=pass_all
7019 ;;
7020
7021 hpux10.20* | hpux11*)
7022 lt_cv_file_magic_cmd=/usr/bin/file
7023 case $host_cpu in
7024 ia64*)
7025 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7026 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7027 ;;
7028 hppa*64*)
7029 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]'
7030 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7031 ;;
7032 *)
7033 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7034 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7035 ;;
7036 esac
7037 ;;
7038
7039 interix[3-9]*)
7040 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7041 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7042 ;;
7043
7044 irix5* | irix6* | nonstopux*)
7045 case $LD in
7046 *-32|*"-32 ") libmagic=32-bit;;
7047 *-n32|*"-n32 ") libmagic=N32;;
7048 *-64|*"-64 ") libmagic=64-bit;;
7049 *) libmagic=never-match;;
7050 esac
7051 lt_cv_deplibs_check_method=pass_all
7052 ;;
7053
7054 # This must be Linux ELF.
7055 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
7056 lt_cv_deplibs_check_method=pass_all
7057 ;;
7058
7059 netbsd*)
7060 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7061 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7062 else
7063 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7064 fi
7065 ;;
7066
7067 newos6*)
7068 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7069 lt_cv_file_magic_cmd=/usr/bin/file
7070 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7071 ;;
7072
7073 *nto* | *qnx*)
7074 lt_cv_deplibs_check_method=pass_all
7075 ;;
7076
7077 openbsd*)
7078 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7079 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7080 else
7081 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7082 fi
7083 ;;
7084
7085 osf3* | osf4* | osf5*)
7086 lt_cv_deplibs_check_method=pass_all
7087 ;;
7088
7089 rdos*)
7090 lt_cv_deplibs_check_method=pass_all
7091 ;;
7092
7093 solaris*)
7094 lt_cv_deplibs_check_method=pass_all
7095 ;;
7096
7097 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7098 lt_cv_deplibs_check_method=pass_all
7099 ;;
7100
7101 sysv4 | sysv4.3*)
7102 case $host_vendor in
7103 motorola)
7104 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]'
7105 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7106 ;;
7107 ncr)
7108 lt_cv_deplibs_check_method=pass_all
7109 ;;
7110 sequent)
7111 lt_cv_file_magic_cmd='/bin/file'
7112 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7113 ;;
7114 sni)
7115 lt_cv_file_magic_cmd='/bin/file'
7116 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7117 lt_cv_file_magic_test_file=/lib/libc.so
7118 ;;
7119 siemens)
7120 lt_cv_deplibs_check_method=pass_all
7121 ;;
7122 pc)
7123 lt_cv_deplibs_check_method=pass_all
7124 ;;
7125 esac
7126 ;;
7127
7128 tpf*)
7129 lt_cv_deplibs_check_method=pass_all
7130 ;;
7131 esac
7132
7133 fi
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7135 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7136 file_magic_cmd=$lt_cv_file_magic_cmd
7137 deplibs_check_method=$lt_cv_deplibs_check_method
7138 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151 if test -n "$ac_tool_prefix"; then
7152 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7153 set dummy ${ac_tool_prefix}ar; ac_word=$2
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7155 $as_echo_n "checking for $ac_word... " >&6; }
7156 if ${ac_cv_prog_AR+:} false; then :
7157 $as_echo_n "(cached) " >&6
7158 else
7159 if test -n "$AR"; then
7160 ac_cv_prog_AR="$AR" # Let the user override the test.
7161 else
7162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7163 for as_dir in $PATH
7164 do
7165 IFS=$as_save_IFS
7166 test -z "$as_dir" && as_dir=.
7167 for ac_exec_ext in '' $ac_executable_extensions; do
7168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7169 ac_cv_prog_AR="${ac_tool_prefix}ar"
7170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7171 break 2
7172 fi
7173 done
7174 done
7175 IFS=$as_save_IFS
7176
7177 fi
7178 fi
7179 AR=$ac_cv_prog_AR
7180 if test -n "$AR"; then
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7182 $as_echo "$AR" >&6; }
7183 else
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7185 $as_echo "no" >&6; }
7186 fi
7187
7188
7189 fi
7190 if test -z "$ac_cv_prog_AR"; then
7191 ac_ct_AR=$AR
7192 # Extract the first word of "ar", so it can be a program name with args.
7193 set dummy ar; ac_word=$2
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7195 $as_echo_n "checking for $ac_word... " >&6; }
7196 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7197 $as_echo_n "(cached) " >&6
7198 else
7199 if test -n "$ac_ct_AR"; then
7200 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7201 else
7202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7203 for as_dir in $PATH
7204 do
7205 IFS=$as_save_IFS
7206 test -z "$as_dir" && as_dir=.
7207 for ac_exec_ext in '' $ac_executable_extensions; do
7208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7209 ac_cv_prog_ac_ct_AR="ar"
7210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7211 break 2
7212 fi
7213 done
7214 done
7215 IFS=$as_save_IFS
7216
7217 fi
7218 fi
7219 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7220 if test -n "$ac_ct_AR"; then
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7222 $as_echo "$ac_ct_AR" >&6; }
7223 else
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7225 $as_echo "no" >&6; }
7226 fi
7227
7228 if test "x$ac_ct_AR" = x; then
7229 AR="false"
7230 else
7231 case $cross_compiling:$ac_tool_warned in
7232 yes:)
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7235 ac_tool_warned=yes ;;
7236 esac
7237 AR=$ac_ct_AR
7238 fi
7239 else
7240 AR="$ac_cv_prog_AR"
7241 fi
7242
7243 test -z "$AR" && AR=ar
7244 test -z "$AR_FLAGS" && AR_FLAGS=cru
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256 if test -n "$ac_tool_prefix"; then
7257 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7258 set dummy ${ac_tool_prefix}strip; ac_word=$2
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7260 $as_echo_n "checking for $ac_word... " >&6; }
7261 if ${ac_cv_prog_STRIP+:} false; then :
7262 $as_echo_n "(cached) " >&6
7263 else
7264 if test -n "$STRIP"; then
7265 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7266 else
7267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7268 for as_dir in $PATH
7269 do
7270 IFS=$as_save_IFS
7271 test -z "$as_dir" && as_dir=.
7272 for ac_exec_ext in '' $ac_executable_extensions; do
7273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7274 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7276 break 2
7277 fi
7278 done
7279 done
7280 IFS=$as_save_IFS
7281
7282 fi
7283 fi
7284 STRIP=$ac_cv_prog_STRIP
7285 if test -n "$STRIP"; then
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7287 $as_echo "$STRIP" >&6; }
7288 else
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7290 $as_echo "no" >&6; }
7291 fi
7292
7293
7294 fi
7295 if test -z "$ac_cv_prog_STRIP"; then
7296 ac_ct_STRIP=$STRIP
7297 # Extract the first word of "strip", so it can be a program name with args.
7298 set dummy strip; ac_word=$2
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7300 $as_echo_n "checking for $ac_word... " >&6; }
7301 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7302 $as_echo_n "(cached) " >&6
7303 else
7304 if test -n "$ac_ct_STRIP"; then
7305 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7306 else
7307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7308 for as_dir in $PATH
7309 do
7310 IFS=$as_save_IFS
7311 test -z "$as_dir" && as_dir=.
7312 for ac_exec_ext in '' $ac_executable_extensions; do
7313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7314 ac_cv_prog_ac_ct_STRIP="strip"
7315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7316 break 2
7317 fi
7318 done
7319 done
7320 IFS=$as_save_IFS
7321
7322 fi
7323 fi
7324 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7325 if test -n "$ac_ct_STRIP"; then
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7327 $as_echo "$ac_ct_STRIP" >&6; }
7328 else
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7330 $as_echo "no" >&6; }
7331 fi
7332
7333 if test "x$ac_ct_STRIP" = x; then
7334 STRIP=":"
7335 else
7336 case $cross_compiling:$ac_tool_warned in
7337 yes:)
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7339 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7340 ac_tool_warned=yes ;;
7341 esac
7342 STRIP=$ac_ct_STRIP
7343 fi
7344 else
7345 STRIP="$ac_cv_prog_STRIP"
7346 fi
7347
7348 test -z "$STRIP" && STRIP=:
7349
7350
7351
7352
7353
7354
7355 if test -n "$ac_tool_prefix"; then
7356 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7357 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7359 $as_echo_n "checking for $ac_word... " >&6; }
7360 if ${ac_cv_prog_RANLIB+:} false; then :
7361 $as_echo_n "(cached) " >&6
7362 else
7363 if test -n "$RANLIB"; then
7364 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7365 else
7366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7367 for as_dir in $PATH
7368 do
7369 IFS=$as_save_IFS
7370 test -z "$as_dir" && as_dir=.
7371 for ac_exec_ext in '' $ac_executable_extensions; do
7372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7373 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7375 break 2
7376 fi
7377 done
7378 done
7379 IFS=$as_save_IFS
7380
7381 fi
7382 fi
7383 RANLIB=$ac_cv_prog_RANLIB
7384 if test -n "$RANLIB"; then
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7386 $as_echo "$RANLIB" >&6; }
7387 else
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7389 $as_echo "no" >&6; }
7390 fi
7391
7392
7393 fi
7394 if test -z "$ac_cv_prog_RANLIB"; then
7395 ac_ct_RANLIB=$RANLIB
7396 # Extract the first word of "ranlib", so it can be a program name with args.
7397 set dummy ranlib; ac_word=$2
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7399 $as_echo_n "checking for $ac_word... " >&6; }
7400 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7401 $as_echo_n "(cached) " >&6
7402 else
7403 if test -n "$ac_ct_RANLIB"; then
7404 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7405 else
7406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7407 for as_dir in $PATH
7408 do
7409 IFS=$as_save_IFS
7410 test -z "$as_dir" && as_dir=.
7411 for ac_exec_ext in '' $ac_executable_extensions; do
7412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7413 ac_cv_prog_ac_ct_RANLIB="ranlib"
7414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7415 break 2
7416 fi
7417 done
7418 done
7419 IFS=$as_save_IFS
7420
7421 fi
7422 fi
7423 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7424 if test -n "$ac_ct_RANLIB"; then
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7426 $as_echo "$ac_ct_RANLIB" >&6; }
7427 else
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7429 $as_echo "no" >&6; }
7430 fi
7431
7432 if test "x$ac_ct_RANLIB" = x; then
7433 RANLIB=":"
7434 else
7435 case $cross_compiling:$ac_tool_warned in
7436 yes:)
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7438 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7439 ac_tool_warned=yes ;;
7440 esac
7441 RANLIB=$ac_ct_RANLIB
7442 fi
7443 else
7444 RANLIB="$ac_cv_prog_RANLIB"
7445 fi
7446
7447 test -z "$RANLIB" && RANLIB=:
7448
7449
7450
7451
7452
7453
7454 # Determine commands to create old-style static archives.
7455 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7456 old_postinstall_cmds='chmod 644 $oldlib'
7457 old_postuninstall_cmds=
7458
7459 if test -n "$RANLIB"; then
7460 case $host_os in
7461 openbsd*)
7462 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7463 ;;
7464 *)
7465 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7466 ;;
7467 esac
7468 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7469 fi
7470
7471 case $host_os in
7472 darwin*)
7473 lock_old_archive_extraction=yes ;;
7474 *)
7475 lock_old_archive_extraction=no ;;
7476 esac
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516 # If no C compiler was specified, use CC.
7517 LTCC=${LTCC-"$CC"}
7518
7519 # If no C compiler flags were specified, use CFLAGS.
7520 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7521
7522 # Allow CC to be a program name with arguments.
7523 compiler=$CC
7524
7525
7526 # Check for command to grab the raw symbol name followed by C symbol from nm.
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7528 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7529 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7530 $as_echo_n "(cached) " >&6
7531 else
7532
7533 # These are sane defaults that work on at least a few old systems.
7534 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7535
7536 # Character class describing NM global symbol codes.
7537 symcode='[BCDEGRST]'
7538
7539 # Regexp to match symbols that can be accessed directly from C.
7540 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7541
7542 # Define system-specific variables.
7543 case $host_os in
7544 aix*)
7545 symcode='[BCDT]'
7546 ;;
7547 cygwin* | mingw* | pw32* | cegcc*)
7548 symcode='[ABCDGISTW]'
7549 ;;
7550 hpux*)
7551 if test "$host_cpu" = ia64; then
7552 symcode='[ABCDEGRST]'
7553 fi
7554 ;;
7555 irix* | nonstopux*)
7556 symcode='[BCDEGRST]'
7557 ;;
7558 osf*)
7559 symcode='[BCDEGQRST]'
7560 ;;
7561 solaris*)
7562 symcode='[BDRT]'
7563 ;;
7564 sco3.2v5*)
7565 symcode='[DT]'
7566 ;;
7567 sysv4.2uw2*)
7568 symcode='[DT]'
7569 ;;
7570 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7571 symcode='[ABDT]'
7572 ;;
7573 sysv4)
7574 symcode='[DFNSTU]'
7575 ;;
7576 esac
7577
7578 # If we're using GNU nm, then use its standard symbol codes.
7579 case `$NM -V 2>&1` in
7580 *GNU* | *'with BFD'*)
7581 symcode='[ABCDGIRSTW]' ;;
7582 esac
7583
7584 # Transform an extracted symbol line into a proper C declaration.
7585 # Some systems (esp. on ia64) link data and code symbols differently,
7586 # so use this general approach.
7587 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7588
7589 # Transform an extracted symbol line into symbol name and symbol address
7590 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7591 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'"
7592
7593 # Handle CRLF in mingw tool chain
7594 opt_cr=
7595 case $build_os in
7596 mingw*)
7597 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7598 ;;
7599 esac
7600
7601 # Try without a prefix underscore, then with it.
7602 for ac_symprfx in "" "_"; do
7603
7604 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7605 symxfrm="\\1 $ac_symprfx\\2 \\2"
7606
7607 # Write the raw and C identifiers.
7608 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7609 # Fake it for dumpbin and say T for any non-static function
7610 # and D for any global variable.
7611 # Also find C++ and __fastcall symbols from MSVC++,
7612 # which start with @ or ?.
7613 lt_cv_sys_global_symbol_pipe="$AWK '"\
7614 " {last_section=section; section=\$ 3};"\
7615 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7616 " \$ 0!~/External *\|/{next};"\
7617 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7618 " {if(hide[section]) next};"\
7619 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7620 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7621 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7622 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7623 " ' prfx=^$ac_symprfx"
7624 else
7625 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7626 fi
7627
7628 # Check to see that the pipe works correctly.
7629 pipe_works=no
7630
7631 rm -f conftest*
7632 cat > conftest.$ac_ext <<_LT_EOF
7633 #ifdef __cplusplus
7634 extern "C" {
7635 #endif
7636 char nm_test_var;
7637 void nm_test_func(void);
7638 void nm_test_func(void){}
7639 #ifdef __cplusplus
7640 }
7641 #endif
7642 int main(){nm_test_var='a';nm_test_func();return(0);}
7643 _LT_EOF
7644
7645 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7646 (eval $ac_compile) 2>&5
7647 ac_status=$?
7648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7649 test $ac_status = 0; }; then
7650 # Now try to grab the symbols.
7651 nlist=conftest.nm
7652 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7653 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7654 ac_status=$?
7655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7656 test $ac_status = 0; } && test -s "$nlist"; then
7657 # Try sorting and uniquifying the output.
7658 if sort "$nlist" | uniq > "$nlist"T; then
7659 mv -f "$nlist"T "$nlist"
7660 else
7661 rm -f "$nlist"T
7662 fi
7663
7664 # Make sure that we snagged all the symbols we need.
7665 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7666 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7667 cat <<_LT_EOF > conftest.$ac_ext
7668 #ifdef __cplusplus
7669 extern "C" {
7670 #endif
7671
7672 _LT_EOF
7673 # Now generate the symbol file.
7674 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7675
7676 cat <<_LT_EOF >> conftest.$ac_ext
7677
7678 /* The mapping between symbol names and symbols. */
7679 const struct {
7680 const char *name;
7681 void *address;
7682 }
7683 lt__PROGRAM__LTX_preloaded_symbols[] =
7684 {
7685 { "@PROGRAM@", (void *) 0 },
7686 _LT_EOF
7687 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7688 cat <<\_LT_EOF >> conftest.$ac_ext
7689 {0, (void *) 0}
7690 };
7691
7692 /* This works around a problem in FreeBSD linker */
7693 #ifdef FREEBSD_WORKAROUND
7694 static const void *lt_preloaded_setup() {
7695 return lt__PROGRAM__LTX_preloaded_symbols;
7696 }
7697 #endif
7698
7699 #ifdef __cplusplus
7700 }
7701 #endif
7702 _LT_EOF
7703 # Now try linking the two files.
7704 mv conftest.$ac_objext conftstm.$ac_objext
7705 lt_save_LIBS="$LIBS"
7706 lt_save_CFLAGS="$CFLAGS"
7707 LIBS="conftstm.$ac_objext"
7708 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7709 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7710 (eval $ac_link) 2>&5
7711 ac_status=$?
7712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7713 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7714 pipe_works=yes
7715 fi
7716 LIBS="$lt_save_LIBS"
7717 CFLAGS="$lt_save_CFLAGS"
7718 else
7719 echo "cannot find nm_test_func in $nlist" >&5
7720 fi
7721 else
7722 echo "cannot find nm_test_var in $nlist" >&5
7723 fi
7724 else
7725 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7726 fi
7727 else
7728 echo "$progname: failed program was:" >&5
7729 cat conftest.$ac_ext >&5
7730 fi
7731 rm -rf conftest* conftst*
7732
7733 # Do not use the global_symbol_pipe unless it works.
7734 if test "$pipe_works" = yes; then
7735 break
7736 else
7737 lt_cv_sys_global_symbol_pipe=
7738 fi
7739 done
7740
7741 fi
7742
7743 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7744 lt_cv_sys_global_symbol_to_cdecl=
7745 fi
7746 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7748 $as_echo "failed" >&6; }
7749 else
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7751 $as_echo "ok" >&6; }
7752 fi
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775 # Check whether --enable-libtool-lock was given.
7776 if test "${enable_libtool_lock+set}" = set; then :
7777 enableval=$enable_libtool_lock;
7778 fi
7779
7780 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7781
7782 # Some flags need to be propagated to the compiler or linker for good
7783 # libtool support.
7784 case $host in
7785 ia64-*-hpux*)
7786 # Find out which ABI we are using.
7787 echo 'int i;' > conftest.$ac_ext
7788 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7789 (eval $ac_compile) 2>&5
7790 ac_status=$?
7791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7792 test $ac_status = 0; }; then
7793 case `/usr/bin/file conftest.$ac_objext` in
7794 *ELF-32*)
7795 HPUX_IA64_MODE="32"
7796 ;;
7797 *ELF-64*)
7798 HPUX_IA64_MODE="64"
7799 ;;
7800 esac
7801 fi
7802 rm -rf conftest*
7803 ;;
7804 *-*-irix6*)
7805 # Find out which ABI we are using.
7806 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7807 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7808 (eval $ac_compile) 2>&5
7809 ac_status=$?
7810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7811 test $ac_status = 0; }; then
7812 if test "$lt_cv_prog_gnu_ld" = yes; then
7813 case `/usr/bin/file conftest.$ac_objext` in
7814 *32-bit*)
7815 LD="${LD-ld} -melf32bsmip"
7816 ;;
7817 *N32*)
7818 LD="${LD-ld} -melf32bmipn32"
7819 ;;
7820 *64-bit*)
7821 LD="${LD-ld} -melf64bmip"
7822 ;;
7823 esac
7824 else
7825 case `/usr/bin/file conftest.$ac_objext` in
7826 *32-bit*)
7827 LD="${LD-ld} -32"
7828 ;;
7829 *N32*)
7830 LD="${LD-ld} -n32"
7831 ;;
7832 *64-bit*)
7833 LD="${LD-ld} -64"
7834 ;;
7835 esac
7836 fi
7837 fi
7838 rm -rf conftest*
7839 ;;
7840
7841 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7842 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7843 # Find out which ABI we are using.
7844 echo 'int i;' > conftest.$ac_ext
7845 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7846 (eval $ac_compile) 2>&5
7847 ac_status=$?
7848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7849 test $ac_status = 0; }; then
7850 case `/usr/bin/file conftest.o` in
7851 *32-bit*)
7852 case $host in
7853 x86_64-*kfreebsd*-gnu)
7854 LD="${LD-ld} -m elf_i386_fbsd"
7855 ;;
7856 x86_64-*linux*)
7857 case `/usr/bin/file conftest.o` in
7858 *x86-64*)
7859 LD="${LD-ld} -m elf32_x86_64"
7860 ;;
7861 *)
7862 LD="${LD-ld} -m elf_i386"
7863 ;;
7864 esac
7865 ;;
7866 powerpc64le-*linux*)
7867 LD="${LD-ld} -m elf32lppclinux"
7868 ;;
7869 powerpc64-*linux*)
7870 LD="${LD-ld} -m elf32ppclinux"
7871 ;;
7872 s390x-*linux*)
7873 LD="${LD-ld} -m elf_s390"
7874 ;;
7875 sparc64-*linux*)
7876 LD="${LD-ld} -m elf32_sparc"
7877 ;;
7878 esac
7879 ;;
7880 *64-bit*)
7881 case $host in
7882 x86_64-*kfreebsd*-gnu)
7883 LD="${LD-ld} -m elf_x86_64_fbsd"
7884 ;;
7885 x86_64-*linux*)
7886 LD="${LD-ld} -m elf_x86_64"
7887 ;;
7888 powerpcle-*linux*)
7889 LD="${LD-ld} -m elf64lppc"
7890 ;;
7891 powerpc-*linux*)
7892 LD="${LD-ld} -m elf64ppc"
7893 ;;
7894 s390*-*linux*|s390*-*tpf*)
7895 LD="${LD-ld} -m elf64_s390"
7896 ;;
7897 sparc*-*linux*)
7898 LD="${LD-ld} -m elf64_sparc"
7899 ;;
7900 esac
7901 ;;
7902 esac
7903 fi
7904 rm -rf conftest*
7905 ;;
7906
7907 *-*-sco3.2v5*)
7908 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7909 SAVE_CFLAGS="$CFLAGS"
7910 CFLAGS="$CFLAGS -belf"
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7912 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7913 if ${lt_cv_cc_needs_belf+:} false; then :
7914 $as_echo_n "(cached) " >&6
7915 else
7916 ac_ext=c
7917 ac_cpp='$CPP $CPPFLAGS'
7918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7921
7922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7923 /* end confdefs.h. */
7924
7925 int
7926 main ()
7927 {
7928
7929 ;
7930 return 0;
7931 }
7932 _ACEOF
7933 if ac_fn_c_try_link "$LINENO"; then :
7934 lt_cv_cc_needs_belf=yes
7935 else
7936 lt_cv_cc_needs_belf=no
7937 fi
7938 rm -f core conftest.err conftest.$ac_objext \
7939 conftest$ac_exeext conftest.$ac_ext
7940 ac_ext=c
7941 ac_cpp='$CPP $CPPFLAGS'
7942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7945
7946 fi
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7948 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7949 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7950 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7951 CFLAGS="$SAVE_CFLAGS"
7952 fi
7953 ;;
7954 sparc*-*solaris*)
7955 # Find out which ABI we are using.
7956 echo 'int i;' > conftest.$ac_ext
7957 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7958 (eval $ac_compile) 2>&5
7959 ac_status=$?
7960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7961 test $ac_status = 0; }; then
7962 case `/usr/bin/file conftest.o` in
7963 *64-bit*)
7964 case $lt_cv_prog_gnu_ld in
7965 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7966 *)
7967 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7968 LD="${LD-ld} -64"
7969 fi
7970 ;;
7971 esac
7972 ;;
7973 esac
7974 fi
7975 rm -rf conftest*
7976 ;;
7977 esac
7978
7979 need_locks="$enable_libtool_lock"
7980
7981
7982 case $host_os in
7983 rhapsody* | darwin*)
7984 if test -n "$ac_tool_prefix"; then
7985 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7986 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7988 $as_echo_n "checking for $ac_word... " >&6; }
7989 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7990 $as_echo_n "(cached) " >&6
7991 else
7992 if test -n "$DSYMUTIL"; then
7993 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7994 else
7995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7996 for as_dir in $PATH
7997 do
7998 IFS=$as_save_IFS
7999 test -z "$as_dir" && as_dir=.
8000 for ac_exec_ext in '' $ac_executable_extensions; do
8001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8002 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8004 break 2
8005 fi
8006 done
8007 done
8008 IFS=$as_save_IFS
8009
8010 fi
8011 fi
8012 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8013 if test -n "$DSYMUTIL"; then
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8015 $as_echo "$DSYMUTIL" >&6; }
8016 else
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8018 $as_echo "no" >&6; }
8019 fi
8020
8021
8022 fi
8023 if test -z "$ac_cv_prog_DSYMUTIL"; then
8024 ac_ct_DSYMUTIL=$DSYMUTIL
8025 # Extract the first word of "dsymutil", so it can be a program name with args.
8026 set dummy dsymutil; ac_word=$2
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8028 $as_echo_n "checking for $ac_word... " >&6; }
8029 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8030 $as_echo_n "(cached) " >&6
8031 else
8032 if test -n "$ac_ct_DSYMUTIL"; then
8033 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8034 else
8035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8036 for as_dir in $PATH
8037 do
8038 IFS=$as_save_IFS
8039 test -z "$as_dir" && as_dir=.
8040 for ac_exec_ext in '' $ac_executable_extensions; do
8041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8042 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8044 break 2
8045 fi
8046 done
8047 done
8048 IFS=$as_save_IFS
8049
8050 fi
8051 fi
8052 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8053 if test -n "$ac_ct_DSYMUTIL"; then
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8055 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8056 else
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8058 $as_echo "no" >&6; }
8059 fi
8060
8061 if test "x$ac_ct_DSYMUTIL" = x; then
8062 DSYMUTIL=":"
8063 else
8064 case $cross_compiling:$ac_tool_warned in
8065 yes:)
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8067 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8068 ac_tool_warned=yes ;;
8069 esac
8070 DSYMUTIL=$ac_ct_DSYMUTIL
8071 fi
8072 else
8073 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8074 fi
8075
8076 if test -n "$ac_tool_prefix"; then
8077 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8078 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8080 $as_echo_n "checking for $ac_word... " >&6; }
8081 if ${ac_cv_prog_NMEDIT+:} false; then :
8082 $as_echo_n "(cached) " >&6
8083 else
8084 if test -n "$NMEDIT"; then
8085 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8086 else
8087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8088 for as_dir in $PATH
8089 do
8090 IFS=$as_save_IFS
8091 test -z "$as_dir" && as_dir=.
8092 for ac_exec_ext in '' $ac_executable_extensions; do
8093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8094 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8096 break 2
8097 fi
8098 done
8099 done
8100 IFS=$as_save_IFS
8101
8102 fi
8103 fi
8104 NMEDIT=$ac_cv_prog_NMEDIT
8105 if test -n "$NMEDIT"; then
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8107 $as_echo "$NMEDIT" >&6; }
8108 else
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8110 $as_echo "no" >&6; }
8111 fi
8112
8113
8114 fi
8115 if test -z "$ac_cv_prog_NMEDIT"; then
8116 ac_ct_NMEDIT=$NMEDIT
8117 # Extract the first word of "nmedit", so it can be a program name with args.
8118 set dummy nmedit; ac_word=$2
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8120 $as_echo_n "checking for $ac_word... " >&6; }
8121 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8122 $as_echo_n "(cached) " >&6
8123 else
8124 if test -n "$ac_ct_NMEDIT"; then
8125 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8126 else
8127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8128 for as_dir in $PATH
8129 do
8130 IFS=$as_save_IFS
8131 test -z "$as_dir" && as_dir=.
8132 for ac_exec_ext in '' $ac_executable_extensions; do
8133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8134 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8136 break 2
8137 fi
8138 done
8139 done
8140 IFS=$as_save_IFS
8141
8142 fi
8143 fi
8144 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8145 if test -n "$ac_ct_NMEDIT"; then
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8147 $as_echo "$ac_ct_NMEDIT" >&6; }
8148 else
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8150 $as_echo "no" >&6; }
8151 fi
8152
8153 if test "x$ac_ct_NMEDIT" = x; then
8154 NMEDIT=":"
8155 else
8156 case $cross_compiling:$ac_tool_warned in
8157 yes:)
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8160 ac_tool_warned=yes ;;
8161 esac
8162 NMEDIT=$ac_ct_NMEDIT
8163 fi
8164 else
8165 NMEDIT="$ac_cv_prog_NMEDIT"
8166 fi
8167
8168 if test -n "$ac_tool_prefix"; then
8169 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8170 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8172 $as_echo_n "checking for $ac_word... " >&6; }
8173 if ${ac_cv_prog_LIPO+:} false; then :
8174 $as_echo_n "(cached) " >&6
8175 else
8176 if test -n "$LIPO"; then
8177 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8178 else
8179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8180 for as_dir in $PATH
8181 do
8182 IFS=$as_save_IFS
8183 test -z "$as_dir" && as_dir=.
8184 for ac_exec_ext in '' $ac_executable_extensions; do
8185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8186 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8188 break 2
8189 fi
8190 done
8191 done
8192 IFS=$as_save_IFS
8193
8194 fi
8195 fi
8196 LIPO=$ac_cv_prog_LIPO
8197 if test -n "$LIPO"; then
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8199 $as_echo "$LIPO" >&6; }
8200 else
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8202 $as_echo "no" >&6; }
8203 fi
8204
8205
8206 fi
8207 if test -z "$ac_cv_prog_LIPO"; then
8208 ac_ct_LIPO=$LIPO
8209 # Extract the first word of "lipo", so it can be a program name with args.
8210 set dummy lipo; ac_word=$2
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8212 $as_echo_n "checking for $ac_word... " >&6; }
8213 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8214 $as_echo_n "(cached) " >&6
8215 else
8216 if test -n "$ac_ct_LIPO"; then
8217 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8218 else
8219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8220 for as_dir in $PATH
8221 do
8222 IFS=$as_save_IFS
8223 test -z "$as_dir" && as_dir=.
8224 for ac_exec_ext in '' $ac_executable_extensions; do
8225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8226 ac_cv_prog_ac_ct_LIPO="lipo"
8227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8228 break 2
8229 fi
8230 done
8231 done
8232 IFS=$as_save_IFS
8233
8234 fi
8235 fi
8236 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8237 if test -n "$ac_ct_LIPO"; then
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8239 $as_echo "$ac_ct_LIPO" >&6; }
8240 else
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8242 $as_echo "no" >&6; }
8243 fi
8244
8245 if test "x$ac_ct_LIPO" = x; then
8246 LIPO=":"
8247 else
8248 case $cross_compiling:$ac_tool_warned in
8249 yes:)
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8252 ac_tool_warned=yes ;;
8253 esac
8254 LIPO=$ac_ct_LIPO
8255 fi
8256 else
8257 LIPO="$ac_cv_prog_LIPO"
8258 fi
8259
8260 if test -n "$ac_tool_prefix"; then
8261 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8262 set dummy ${ac_tool_prefix}otool; ac_word=$2
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8264 $as_echo_n "checking for $ac_word... " >&6; }
8265 if ${ac_cv_prog_OTOOL+:} false; then :
8266 $as_echo_n "(cached) " >&6
8267 else
8268 if test -n "$OTOOL"; then
8269 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8270 else
8271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8272 for as_dir in $PATH
8273 do
8274 IFS=$as_save_IFS
8275 test -z "$as_dir" && as_dir=.
8276 for ac_exec_ext in '' $ac_executable_extensions; do
8277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8278 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8280 break 2
8281 fi
8282 done
8283 done
8284 IFS=$as_save_IFS
8285
8286 fi
8287 fi
8288 OTOOL=$ac_cv_prog_OTOOL
8289 if test -n "$OTOOL"; then
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8291 $as_echo "$OTOOL" >&6; }
8292 else
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8294 $as_echo "no" >&6; }
8295 fi
8296
8297
8298 fi
8299 if test -z "$ac_cv_prog_OTOOL"; then
8300 ac_ct_OTOOL=$OTOOL
8301 # Extract the first word of "otool", so it can be a program name with args.
8302 set dummy otool; ac_word=$2
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8304 $as_echo_n "checking for $ac_word... " >&6; }
8305 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8306 $as_echo_n "(cached) " >&6
8307 else
8308 if test -n "$ac_ct_OTOOL"; then
8309 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8310 else
8311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8312 for as_dir in $PATH
8313 do
8314 IFS=$as_save_IFS
8315 test -z "$as_dir" && as_dir=.
8316 for ac_exec_ext in '' $ac_executable_extensions; do
8317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8318 ac_cv_prog_ac_ct_OTOOL="otool"
8319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8320 break 2
8321 fi
8322 done
8323 done
8324 IFS=$as_save_IFS
8325
8326 fi
8327 fi
8328 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8329 if test -n "$ac_ct_OTOOL"; then
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8331 $as_echo "$ac_ct_OTOOL" >&6; }
8332 else
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8334 $as_echo "no" >&6; }
8335 fi
8336
8337 if test "x$ac_ct_OTOOL" = x; then
8338 OTOOL=":"
8339 else
8340 case $cross_compiling:$ac_tool_warned in
8341 yes:)
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8344 ac_tool_warned=yes ;;
8345 esac
8346 OTOOL=$ac_ct_OTOOL
8347 fi
8348 else
8349 OTOOL="$ac_cv_prog_OTOOL"
8350 fi
8351
8352 if test -n "$ac_tool_prefix"; then
8353 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8354 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8356 $as_echo_n "checking for $ac_word... " >&6; }
8357 if ${ac_cv_prog_OTOOL64+:} false; then :
8358 $as_echo_n "(cached) " >&6
8359 else
8360 if test -n "$OTOOL64"; then
8361 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8362 else
8363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8364 for as_dir in $PATH
8365 do
8366 IFS=$as_save_IFS
8367 test -z "$as_dir" && as_dir=.
8368 for ac_exec_ext in '' $ac_executable_extensions; do
8369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8370 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8372 break 2
8373 fi
8374 done
8375 done
8376 IFS=$as_save_IFS
8377
8378 fi
8379 fi
8380 OTOOL64=$ac_cv_prog_OTOOL64
8381 if test -n "$OTOOL64"; then
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8383 $as_echo "$OTOOL64" >&6; }
8384 else
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8386 $as_echo "no" >&6; }
8387 fi
8388
8389
8390 fi
8391 if test -z "$ac_cv_prog_OTOOL64"; then
8392 ac_ct_OTOOL64=$OTOOL64
8393 # Extract the first word of "otool64", so it can be a program name with args.
8394 set dummy otool64; ac_word=$2
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8396 $as_echo_n "checking for $ac_word... " >&6; }
8397 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8398 $as_echo_n "(cached) " >&6
8399 else
8400 if test -n "$ac_ct_OTOOL64"; then
8401 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8402 else
8403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8404 for as_dir in $PATH
8405 do
8406 IFS=$as_save_IFS
8407 test -z "$as_dir" && as_dir=.
8408 for ac_exec_ext in '' $ac_executable_extensions; do
8409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8410 ac_cv_prog_ac_ct_OTOOL64="otool64"
8411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8412 break 2
8413 fi
8414 done
8415 done
8416 IFS=$as_save_IFS
8417
8418 fi
8419 fi
8420 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8421 if test -n "$ac_ct_OTOOL64"; then
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8423 $as_echo "$ac_ct_OTOOL64" >&6; }
8424 else
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8426 $as_echo "no" >&6; }
8427 fi
8428
8429 if test "x$ac_ct_OTOOL64" = x; then
8430 OTOOL64=":"
8431 else
8432 case $cross_compiling:$ac_tool_warned in
8433 yes:)
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8435 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8436 ac_tool_warned=yes ;;
8437 esac
8438 OTOOL64=$ac_ct_OTOOL64
8439 fi
8440 else
8441 OTOOL64="$ac_cv_prog_OTOOL64"
8442 fi
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8471 $as_echo_n "checking for -single_module linker flag... " >&6; }
8472 if ${lt_cv_apple_cc_single_mod+:} false; then :
8473 $as_echo_n "(cached) " >&6
8474 else
8475 lt_cv_apple_cc_single_mod=no
8476 if test -z "${LT_MULTI_MODULE}"; then
8477 # By default we will add the -single_module flag. You can override
8478 # by either setting the environment variable LT_MULTI_MODULE
8479 # non-empty at configure time, or by adding -multi_module to the
8480 # link flags.
8481 rm -rf libconftest.dylib*
8482 echo "int foo(void){return 1;}" > conftest.c
8483 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8484 -dynamiclib -Wl,-single_module conftest.c" >&5
8485 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8486 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8487 _lt_result=$?
8488 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8489 lt_cv_apple_cc_single_mod=yes
8490 else
8491 cat conftest.err >&5
8492 fi
8493 rm -rf libconftest.dylib*
8494 rm -f conftest.*
8495 fi
8496 fi
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8498 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8500 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8501 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8502 $as_echo_n "(cached) " >&6
8503 else
8504 lt_cv_ld_exported_symbols_list=no
8505 save_LDFLAGS=$LDFLAGS
8506 echo "_main" > conftest.sym
8507 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8509 /* end confdefs.h. */
8510
8511 int
8512 main ()
8513 {
8514
8515 ;
8516 return 0;
8517 }
8518 _ACEOF
8519 if ac_fn_c_try_link "$LINENO"; then :
8520 lt_cv_ld_exported_symbols_list=yes
8521 else
8522 lt_cv_ld_exported_symbols_list=no
8523 fi
8524 rm -f core conftest.err conftest.$ac_objext \
8525 conftest$ac_exeext conftest.$ac_ext
8526 LDFLAGS="$save_LDFLAGS"
8527
8528 fi
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8530 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8532 $as_echo_n "checking for -force_load linker flag... " >&6; }
8533 if ${lt_cv_ld_force_load+:} false; then :
8534 $as_echo_n "(cached) " >&6
8535 else
8536 lt_cv_ld_force_load=no
8537 cat > conftest.c << _LT_EOF
8538 int forced_loaded() { return 2;}
8539 _LT_EOF
8540 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8541 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8542 echo "$AR cru libconftest.a conftest.o" >&5
8543 $AR cru libconftest.a conftest.o 2>&5
8544 cat > conftest.c << _LT_EOF
8545 int main() { return 0;}
8546 _LT_EOF
8547 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8548 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8549 _lt_result=$?
8550 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8551 lt_cv_ld_force_load=yes
8552 else
8553 cat conftest.err >&5
8554 fi
8555 rm -f conftest.err libconftest.a conftest conftest.c
8556 rm -rf conftest.dSYM
8557
8558 fi
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8560 $as_echo "$lt_cv_ld_force_load" >&6; }
8561 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8562 # build without first building modern cctools / linker.
8563 case $host_cpu-$host_os in
8564 *-rhapsody* | *-darwin1.[012])
8565 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8566 *-darwin1.*)
8567 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8568 *-darwin*)
8569 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8570 # deployment target is forced to an earlier version.
8571 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8572 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
8573 ;;
8574 10.[012][,.]*)
8575 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8576 ;;
8577 *)
8578 ;;
8579 esac
8580 ;;
8581 esac
8582 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8583 _lt_dar_single_mod='$single_module'
8584 fi
8585 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8586 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8587 else
8588 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8589 fi
8590 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8591 _lt_dsymutil='~$DSYMUTIL $lib || :'
8592 else
8593 _lt_dsymutil=
8594 fi
8595 ;;
8596 esac
8597
8598 for ac_header in dlfcn.h
8599 do :
8600 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8601 "
8602 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8603 cat >>confdefs.h <<_ACEOF
8604 #define HAVE_DLFCN_H 1
8605 _ACEOF
8606
8607 fi
8608
8609 done
8610
8611
8612
8613
8614
8615 # Set options
8616
8617
8618
8619 enable_dlopen=no
8620
8621
8622 enable_win32_dll=no
8623
8624
8625 # Check whether --enable-shared was given.
8626 if test "${enable_shared+set}" = set; then :
8627 enableval=$enable_shared; p=${PACKAGE-default}
8628 case $enableval in
8629 yes) enable_shared=yes ;;
8630 no) enable_shared=no ;;
8631 *)
8632 enable_shared=no
8633 # Look at the argument we got. We use all the common list separators.
8634 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8635 for pkg in $enableval; do
8636 IFS="$lt_save_ifs"
8637 if test "X$pkg" = "X$p"; then
8638 enable_shared=yes
8639 fi
8640 done
8641 IFS="$lt_save_ifs"
8642 ;;
8643 esac
8644 else
8645 enable_shared=yes
8646 fi
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656 # Check whether --enable-static was given.
8657 if test "${enable_static+set}" = set; then :
8658 enableval=$enable_static; p=${PACKAGE-default}
8659 case $enableval in
8660 yes) enable_static=yes ;;
8661 no) enable_static=no ;;
8662 *)
8663 enable_static=no
8664 # Look at the argument we got. We use all the common list separators.
8665 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8666 for pkg in $enableval; do
8667 IFS="$lt_save_ifs"
8668 if test "X$pkg" = "X$p"; then
8669 enable_static=yes
8670 fi
8671 done
8672 IFS="$lt_save_ifs"
8673 ;;
8674 esac
8675 else
8676 enable_static=yes
8677 fi
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688 # Check whether --with-pic was given.
8689 if test "${with_pic+set}" = set; then :
8690 withval=$with_pic; pic_mode="$withval"
8691 else
8692 pic_mode=default
8693 fi
8694
8695
8696 test -z "$pic_mode" && pic_mode=default
8697
8698
8699
8700
8701
8702
8703
8704 # Check whether --enable-fast-install was given.
8705 if test "${enable_fast_install+set}" = set; then :
8706 enableval=$enable_fast_install; p=${PACKAGE-default}
8707 case $enableval in
8708 yes) enable_fast_install=yes ;;
8709 no) enable_fast_install=no ;;
8710 *)
8711 enable_fast_install=no
8712 # Look at the argument we got. We use all the common list separators.
8713 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8714 for pkg in $enableval; do
8715 IFS="$lt_save_ifs"
8716 if test "X$pkg" = "X$p"; then
8717 enable_fast_install=yes
8718 fi
8719 done
8720 IFS="$lt_save_ifs"
8721 ;;
8722 esac
8723 else
8724 enable_fast_install=yes
8725 fi
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737 # This can be used to rebuild libtool when needed
8738 LIBTOOL_DEPS="$ltmain"
8739
8740 # Always use our own libtool.
8741 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768 test -z "$LN_S" && LN_S="ln -s"
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783 if test -n "${ZSH_VERSION+set}" ; then
8784 setopt NO_GLOB_SUBST
8785 fi
8786
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8788 $as_echo_n "checking for objdir... " >&6; }
8789 if ${lt_cv_objdir+:} false; then :
8790 $as_echo_n "(cached) " >&6
8791 else
8792 rm -f .libs 2>/dev/null
8793 mkdir .libs 2>/dev/null
8794 if test -d .libs; then
8795 lt_cv_objdir=.libs
8796 else
8797 # MS-DOS does not allow filenames that begin with a dot.
8798 lt_cv_objdir=_libs
8799 fi
8800 rmdir .libs 2>/dev/null
8801 fi
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8803 $as_echo "$lt_cv_objdir" >&6; }
8804 objdir=$lt_cv_objdir
8805
8806
8807
8808
8809
8810 cat >>confdefs.h <<_ACEOF
8811 #define LT_OBJDIR "$lt_cv_objdir/"
8812 _ACEOF
8813
8814
8815
8816
8817 case $host_os in
8818 aix3*)
8819 # AIX sometimes has problems with the GCC collect2 program. For some
8820 # reason, if we set the COLLECT_NAMES environment variable, the problems
8821 # vanish in a puff of smoke.
8822 if test "X${COLLECT_NAMES+set}" != Xset; then
8823 COLLECT_NAMES=
8824 export COLLECT_NAMES
8825 fi
8826 ;;
8827 esac
8828
8829 # Global variables:
8830 ofile=libtool
8831 can_build_shared=yes
8832
8833 # All known linkers require a `.a' archive for static linking (except MSVC,
8834 # which needs '.lib').
8835 libext=a
8836
8837 with_gnu_ld="$lt_cv_prog_gnu_ld"
8838
8839 old_CC="$CC"
8840 old_CFLAGS="$CFLAGS"
8841
8842 # Set sane defaults for various variables
8843 test -z "$CC" && CC=cc
8844 test -z "$LTCC" && LTCC=$CC
8845 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8846 test -z "$LD" && LD=ld
8847 test -z "$ac_objext" && ac_objext=o
8848
8849 for cc_temp in $compiler""; do
8850 case $cc_temp in
8851 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8852 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8853 \-*) ;;
8854 *) break;;
8855 esac
8856 done
8857 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8858
8859
8860 # Only perform the check for file, if the check method requires it
8861 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8862 case $deplibs_check_method in
8863 file_magic*)
8864 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8866 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8867 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8868 $as_echo_n "(cached) " >&6
8869 else
8870 case $MAGIC_CMD in
8871 [\\/*] | ?:[\\/]*)
8872 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8873 ;;
8874 *)
8875 lt_save_MAGIC_CMD="$MAGIC_CMD"
8876 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8877 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8878 for ac_dir in $ac_dummy; do
8879 IFS="$lt_save_ifs"
8880 test -z "$ac_dir" && ac_dir=.
8881 if test -f $ac_dir/${ac_tool_prefix}file; then
8882 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8883 if test -n "$file_magic_test_file"; then
8884 case $deplibs_check_method in
8885 "file_magic "*)
8886 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8887 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8888 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8889 $EGREP "$file_magic_regex" > /dev/null; then
8890 :
8891 else
8892 cat <<_LT_EOF 1>&2
8893
8894 *** Warning: the command libtool uses to detect shared libraries,
8895 *** $file_magic_cmd, produces output that libtool cannot recognize.
8896 *** The result is that libtool may fail to recognize shared libraries
8897 *** as such. This will affect the creation of libtool libraries that
8898 *** depend on shared libraries, but programs linked with such libtool
8899 *** libraries will work regardless of this problem. Nevertheless, you
8900 *** may want to report the problem to your system manager and/or to
8901 *** bug-libtool@gnu.org
8902
8903 _LT_EOF
8904 fi ;;
8905 esac
8906 fi
8907 break
8908 fi
8909 done
8910 IFS="$lt_save_ifs"
8911 MAGIC_CMD="$lt_save_MAGIC_CMD"
8912 ;;
8913 esac
8914 fi
8915
8916 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8917 if test -n "$MAGIC_CMD"; then
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8919 $as_echo "$MAGIC_CMD" >&6; }
8920 else
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8922 $as_echo "no" >&6; }
8923 fi
8924
8925
8926
8927
8928
8929 if test -z "$lt_cv_path_MAGIC_CMD"; then
8930 if test -n "$ac_tool_prefix"; then
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8932 $as_echo_n "checking for file... " >&6; }
8933 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8934 $as_echo_n "(cached) " >&6
8935 else
8936 case $MAGIC_CMD in
8937 [\\/*] | ?:[\\/]*)
8938 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8939 ;;
8940 *)
8941 lt_save_MAGIC_CMD="$MAGIC_CMD"
8942 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8943 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8944 for ac_dir in $ac_dummy; do
8945 IFS="$lt_save_ifs"
8946 test -z "$ac_dir" && ac_dir=.
8947 if test -f $ac_dir/file; then
8948 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8949 if test -n "$file_magic_test_file"; then
8950 case $deplibs_check_method in
8951 "file_magic "*)
8952 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8953 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8954 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8955 $EGREP "$file_magic_regex" > /dev/null; then
8956 :
8957 else
8958 cat <<_LT_EOF 1>&2
8959
8960 *** Warning: the command libtool uses to detect shared libraries,
8961 *** $file_magic_cmd, produces output that libtool cannot recognize.
8962 *** The result is that libtool may fail to recognize shared libraries
8963 *** as such. This will affect the creation of libtool libraries that
8964 *** depend on shared libraries, but programs linked with such libtool
8965 *** libraries will work regardless of this problem. Nevertheless, you
8966 *** may want to report the problem to your system manager and/or to
8967 *** bug-libtool@gnu.org
8968
8969 _LT_EOF
8970 fi ;;
8971 esac
8972 fi
8973 break
8974 fi
8975 done
8976 IFS="$lt_save_ifs"
8977 MAGIC_CMD="$lt_save_MAGIC_CMD"
8978 ;;
8979 esac
8980 fi
8981
8982 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8983 if test -n "$MAGIC_CMD"; then
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8985 $as_echo "$MAGIC_CMD" >&6; }
8986 else
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8988 $as_echo "no" >&6; }
8989 fi
8990
8991
8992 else
8993 MAGIC_CMD=:
8994 fi
8995 fi
8996
8997 fi
8998 ;;
8999 esac
9000
9001 # Use C for the default configuration in the libtool script
9002
9003 lt_save_CC="$CC"
9004 ac_ext=c
9005 ac_cpp='$CPP $CPPFLAGS'
9006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9009
9010
9011 # Source file extension for C test sources.
9012 ac_ext=c
9013
9014 # Object file extension for compiled C test sources.
9015 objext=o
9016 objext=$objext
9017
9018 # Code to be used in simple compile tests
9019 lt_simple_compile_test_code="int some_variable = 0;"
9020
9021 # Code to be used in simple link tests
9022 lt_simple_link_test_code='int main(){return(0);}'
9023
9024
9025
9026
9027
9028
9029
9030 # If no C compiler was specified, use CC.
9031 LTCC=${LTCC-"$CC"}
9032
9033 # If no C compiler flags were specified, use CFLAGS.
9034 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9035
9036 # Allow CC to be a program name with arguments.
9037 compiler=$CC
9038
9039 # Save the default compiler, since it gets overwritten when the other
9040 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9041 compiler_DEFAULT=$CC
9042
9043 # save warnings/boilerplate of simple test code
9044 ac_outfile=conftest.$ac_objext
9045 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9046 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9047 _lt_compiler_boilerplate=`cat conftest.err`
9048 $RM conftest*
9049
9050 ac_outfile=conftest.$ac_objext
9051 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9052 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9053 _lt_linker_boilerplate=`cat conftest.err`
9054 $RM -r conftest*
9055
9056
9057 ## CAVEAT EMPTOR:
9058 ## There is no encapsulation within the following macros, do not change
9059 ## the running order or otherwise move them around unless you know exactly
9060 ## what you are doing...
9061 if test -n "$compiler"; then
9062
9063 lt_prog_compiler_no_builtin_flag=
9064
9065 if test "$GCC" = yes; then
9066 case $cc_basename in
9067 nvcc*)
9068 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9069 *)
9070 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9071 esac
9072
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9074 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9075 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9076 $as_echo_n "(cached) " >&6
9077 else
9078 lt_cv_prog_compiler_rtti_exceptions=no
9079 ac_outfile=conftest.$ac_objext
9080 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9081 lt_compiler_flag="-fno-rtti -fno-exceptions"
9082 # Insert the option either (1) after the last *FLAGS variable, or
9083 # (2) before a word containing "conftest.", or (3) at the end.
9084 # Note that $ac_compile itself does not contain backslashes and begins
9085 # with a dollar sign (not a hyphen), so the echo should work correctly.
9086 # The option is referenced via a variable to avoid confusing sed.
9087 lt_compile=`echo "$ac_compile" | $SED \
9088 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9089 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9090 -e 's:$: $lt_compiler_flag:'`
9091 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9092 (eval "$lt_compile" 2>conftest.err)
9093 ac_status=$?
9094 cat conftest.err >&5
9095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096 if (exit $ac_status) && test -s "$ac_outfile"; then
9097 # The compiler can only warn and ignore the option if not recognized
9098 # So say no if there are warnings other than the usual output.
9099 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9100 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9101 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9102 lt_cv_prog_compiler_rtti_exceptions=yes
9103 fi
9104 fi
9105 $RM conftest*
9106
9107 fi
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9109 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9110
9111 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9112 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9113 else
9114 :
9115 fi
9116
9117 fi
9118
9119
9120
9121
9122
9123
9124 lt_prog_compiler_wl=
9125 lt_prog_compiler_pic=
9126 lt_prog_compiler_static=
9127
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9129 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9130
9131 if test "$GCC" = yes; then
9132 lt_prog_compiler_wl='-Wl,'
9133 lt_prog_compiler_static='-static'
9134
9135 case $host_os in
9136 aix*)
9137 # All AIX code is PIC.
9138 if test "$host_cpu" = ia64; then
9139 # AIX 5 now supports IA64 processor
9140 lt_prog_compiler_static='-Bstatic'
9141 fi
9142 lt_prog_compiler_pic='-fPIC'
9143 ;;
9144
9145 amigaos*)
9146 case $host_cpu in
9147 powerpc)
9148 # see comment about AmigaOS4 .so support
9149 lt_prog_compiler_pic='-fPIC'
9150 ;;
9151 m68k)
9152 # FIXME: we need at least 68020 code to build shared libraries, but
9153 # adding the `-m68020' flag to GCC prevents building anything better,
9154 # like `-m68040'.
9155 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9156 ;;
9157 esac
9158 ;;
9159
9160 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9161 # PIC is the default for these OSes.
9162 ;;
9163
9164 mingw* | cygwin* | pw32* | os2* | cegcc*)
9165 # This hack is so that the source file can tell whether it is being
9166 # built for inclusion in a dll (and should export symbols for example).
9167 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9168 # (--disable-auto-import) libraries
9169 lt_prog_compiler_pic='-DDLL_EXPORT'
9170 ;;
9171
9172 darwin* | rhapsody*)
9173 # PIC is the default on this platform
9174 # Common symbols not allowed in MH_DYLIB files
9175 lt_prog_compiler_pic='-fno-common'
9176 ;;
9177
9178 haiku*)
9179 # PIC is the default for Haiku.
9180 # The "-static" flag exists, but is broken.
9181 lt_prog_compiler_static=
9182 ;;
9183
9184 hpux*)
9185 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9186 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9187 # sets the default TLS model and affects inlining.
9188 case $host_cpu in
9189 hppa*64*)
9190 # +Z the default
9191 ;;
9192 *)
9193 lt_prog_compiler_pic='-fPIC'
9194 ;;
9195 esac
9196 ;;
9197
9198 interix[3-9]*)
9199 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9200 # Instead, we relocate shared libraries at runtime.
9201 ;;
9202
9203 msdosdjgpp*)
9204 # Just because we use GCC doesn't mean we suddenly get shared libraries
9205 # on systems that don't support them.
9206 lt_prog_compiler_can_build_shared=no
9207 enable_shared=no
9208 ;;
9209
9210 *nto* | *qnx*)
9211 # QNX uses GNU C++, but need to define -shared option too, otherwise
9212 # it will coredump.
9213 lt_prog_compiler_pic='-fPIC -shared'
9214 ;;
9215
9216 sysv4*MP*)
9217 if test -d /usr/nec; then
9218 lt_prog_compiler_pic=-Kconform_pic
9219 fi
9220 ;;
9221
9222 *)
9223 lt_prog_compiler_pic='-fPIC'
9224 ;;
9225 esac
9226
9227 case $cc_basename in
9228 nvcc*) # Cuda Compiler Driver 2.2
9229 lt_prog_compiler_wl='-Xlinker '
9230 lt_prog_compiler_pic='-Xcompiler -fPIC'
9231 ;;
9232 esac
9233 else
9234 # PORTME Check for flag to pass linker flags through the system compiler.
9235 case $host_os in
9236 aix*)
9237 lt_prog_compiler_wl='-Wl,'
9238 if test "$host_cpu" = ia64; then
9239 # AIX 5 now supports IA64 processor
9240 lt_prog_compiler_static='-Bstatic'
9241 else
9242 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9243 fi
9244 ;;
9245
9246 mingw* | cygwin* | pw32* | os2* | cegcc*)
9247 # This hack is so that the source file can tell whether it is being
9248 # built for inclusion in a dll (and should export symbols for example).
9249 lt_prog_compiler_pic='-DDLL_EXPORT'
9250 ;;
9251
9252 hpux9* | hpux10* | hpux11*)
9253 lt_prog_compiler_wl='-Wl,'
9254 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9255 # not for PA HP-UX.
9256 case $host_cpu in
9257 hppa*64*|ia64*)
9258 # +Z the default
9259 ;;
9260 *)
9261 lt_prog_compiler_pic='+Z'
9262 ;;
9263 esac
9264 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9265 lt_prog_compiler_static='${wl}-a ${wl}archive'
9266 ;;
9267
9268 irix5* | irix6* | nonstopux*)
9269 lt_prog_compiler_wl='-Wl,'
9270 # PIC (with -KPIC) is the default.
9271 lt_prog_compiler_static='-non_shared'
9272 ;;
9273
9274 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9275 case $cc_basename in
9276 # old Intel for x86_64 which still supported -KPIC.
9277 ecc*)
9278 lt_prog_compiler_wl='-Wl,'
9279 lt_prog_compiler_pic='-KPIC'
9280 lt_prog_compiler_static='-static'
9281 ;;
9282 # icc used to be incompatible with GCC.
9283 # ICC 10 doesn't accept -KPIC any more.
9284 icc* | ifort*)
9285 lt_prog_compiler_wl='-Wl,'
9286 lt_prog_compiler_pic='-fPIC'
9287 lt_prog_compiler_static='-static'
9288 ;;
9289 # Lahey Fortran 8.1.
9290 lf95*)
9291 lt_prog_compiler_wl='-Wl,'
9292 lt_prog_compiler_pic='--shared'
9293 lt_prog_compiler_static='--static'
9294 ;;
9295 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9296 # Portland Group compilers (*not* the Pentium gcc compiler,
9297 # which looks to be a dead project)
9298 lt_prog_compiler_wl='-Wl,'
9299 lt_prog_compiler_pic='-fpic'
9300 lt_prog_compiler_static='-Bstatic'
9301 ;;
9302 ccc*)
9303 lt_prog_compiler_wl='-Wl,'
9304 # All Alpha code is PIC.
9305 lt_prog_compiler_static='-non_shared'
9306 ;;
9307 xl* | bgxl* | bgf* | mpixl*)
9308 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9309 lt_prog_compiler_wl='-Wl,'
9310 lt_prog_compiler_pic='-qpic'
9311 lt_prog_compiler_static='-qstaticlink'
9312 ;;
9313 *)
9314 case `$CC -V 2>&1 | sed 5q` in
9315 *Sun\ F* | *Sun*Fortran*)
9316 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9317 lt_prog_compiler_pic='-KPIC'
9318 lt_prog_compiler_static='-Bstatic'
9319 lt_prog_compiler_wl=''
9320 ;;
9321 *Sun\ C*)
9322 # Sun C 5.9
9323 lt_prog_compiler_pic='-KPIC'
9324 lt_prog_compiler_static='-Bstatic'
9325 lt_prog_compiler_wl='-Wl,'
9326 ;;
9327 esac
9328 ;;
9329 esac
9330 ;;
9331
9332 newsos6)
9333 lt_prog_compiler_pic='-KPIC'
9334 lt_prog_compiler_static='-Bstatic'
9335 ;;
9336
9337 *nto* | *qnx*)
9338 # QNX uses GNU C++, but need to define -shared option too, otherwise
9339 # it will coredump.
9340 lt_prog_compiler_pic='-fPIC -shared'
9341 ;;
9342
9343 osf3* | osf4* | osf5*)
9344 lt_prog_compiler_wl='-Wl,'
9345 # All OSF/1 code is PIC.
9346 lt_prog_compiler_static='-non_shared'
9347 ;;
9348
9349 rdos*)
9350 lt_prog_compiler_static='-non_shared'
9351 ;;
9352
9353 solaris*)
9354 lt_prog_compiler_pic='-KPIC'
9355 lt_prog_compiler_static='-Bstatic'
9356 case $cc_basename in
9357 f77* | f90* | f95*)
9358 lt_prog_compiler_wl='-Qoption ld ';;
9359 *)
9360 lt_prog_compiler_wl='-Wl,';;
9361 esac
9362 ;;
9363
9364 sunos4*)
9365 lt_prog_compiler_wl='-Qoption ld '
9366 lt_prog_compiler_pic='-PIC'
9367 lt_prog_compiler_static='-Bstatic'
9368 ;;
9369
9370 sysv4 | sysv4.2uw2* | sysv4.3*)
9371 lt_prog_compiler_wl='-Wl,'
9372 lt_prog_compiler_pic='-KPIC'
9373 lt_prog_compiler_static='-Bstatic'
9374 ;;
9375
9376 sysv4*MP*)
9377 if test -d /usr/nec ;then
9378 lt_prog_compiler_pic='-Kconform_pic'
9379 lt_prog_compiler_static='-Bstatic'
9380 fi
9381 ;;
9382
9383 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9384 lt_prog_compiler_wl='-Wl,'
9385 lt_prog_compiler_pic='-KPIC'
9386 lt_prog_compiler_static='-Bstatic'
9387 ;;
9388
9389 unicos*)
9390 lt_prog_compiler_wl='-Wl,'
9391 lt_prog_compiler_can_build_shared=no
9392 ;;
9393
9394 uts4*)
9395 lt_prog_compiler_pic='-pic'
9396 lt_prog_compiler_static='-Bstatic'
9397 ;;
9398
9399 *)
9400 lt_prog_compiler_can_build_shared=no
9401 ;;
9402 esac
9403 fi
9404
9405 case $host_os in
9406 # For platforms which do not support PIC, -DPIC is meaningless:
9407 *djgpp*)
9408 lt_prog_compiler_pic=
9409 ;;
9410 *)
9411 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9412 ;;
9413 esac
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9415 $as_echo "$lt_prog_compiler_pic" >&6; }
9416
9417
9418
9419
9420
9421
9422 #
9423 # Check to make sure the PIC flag actually works.
9424 #
9425 if test -n "$lt_prog_compiler_pic"; then
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9427 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9428 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9429 $as_echo_n "(cached) " >&6
9430 else
9431 lt_cv_prog_compiler_pic_works=no
9432 ac_outfile=conftest.$ac_objext
9433 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9434 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9435 # Insert the option either (1) after the last *FLAGS variable, or
9436 # (2) before a word containing "conftest.", or (3) at the end.
9437 # Note that $ac_compile itself does not contain backslashes and begins
9438 # with a dollar sign (not a hyphen), so the echo should work correctly.
9439 # The option is referenced via a variable to avoid confusing sed.
9440 lt_compile=`echo "$ac_compile" | $SED \
9441 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9442 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9443 -e 's:$: $lt_compiler_flag:'`
9444 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9445 (eval "$lt_compile" 2>conftest.err)
9446 ac_status=$?
9447 cat conftest.err >&5
9448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 if (exit $ac_status) && test -s "$ac_outfile"; then
9450 # The compiler can only warn and ignore the option if not recognized
9451 # So say no if there are warnings other than the usual output.
9452 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9453 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9454 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9455 lt_cv_prog_compiler_pic_works=yes
9456 fi
9457 fi
9458 $RM conftest*
9459
9460 fi
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9462 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9463
9464 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9465 case $lt_prog_compiler_pic in
9466 "" | " "*) ;;
9467 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9468 esac
9469 else
9470 lt_prog_compiler_pic=
9471 lt_prog_compiler_can_build_shared=no
9472 fi
9473
9474 fi
9475
9476
9477
9478
9479
9480
9481 #
9482 # Check to make sure the static flag actually works.
9483 #
9484 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9486 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9487 if ${lt_cv_prog_compiler_static_works+:} false; then :
9488 $as_echo_n "(cached) " >&6
9489 else
9490 lt_cv_prog_compiler_static_works=no
9491 save_LDFLAGS="$LDFLAGS"
9492 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9493 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9494 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9495 # The linker can only warn and ignore the option if not recognized
9496 # So say no if there are warnings
9497 if test -s conftest.err; then
9498 # Append any errors to the config.log.
9499 cat conftest.err 1>&5
9500 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9501 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9502 if diff conftest.exp conftest.er2 >/dev/null; then
9503 lt_cv_prog_compiler_static_works=yes
9504 fi
9505 else
9506 lt_cv_prog_compiler_static_works=yes
9507 fi
9508 fi
9509 $RM -r conftest*
9510 LDFLAGS="$save_LDFLAGS"
9511
9512 fi
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9514 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9515
9516 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9517 :
9518 else
9519 lt_prog_compiler_static=
9520 fi
9521
9522
9523
9524
9525
9526
9527
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9529 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9530 if ${lt_cv_prog_compiler_c_o+:} false; then :
9531 $as_echo_n "(cached) " >&6
9532 else
9533 lt_cv_prog_compiler_c_o=no
9534 $RM -r conftest 2>/dev/null
9535 mkdir conftest
9536 cd conftest
9537 mkdir out
9538 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9539
9540 lt_compiler_flag="-o out/conftest2.$ac_objext"
9541 # Insert the option either (1) after the last *FLAGS variable, or
9542 # (2) before a word containing "conftest.", or (3) at the end.
9543 # Note that $ac_compile itself does not contain backslashes and begins
9544 # with a dollar sign (not a hyphen), so the echo should work correctly.
9545 lt_compile=`echo "$ac_compile" | $SED \
9546 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9547 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9548 -e 's:$: $lt_compiler_flag:'`
9549 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9550 (eval "$lt_compile" 2>out/conftest.err)
9551 ac_status=$?
9552 cat out/conftest.err >&5
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9555 then
9556 # The compiler can only warn and ignore the option if not recognized
9557 # So say no if there are warnings
9558 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9559 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9560 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9561 lt_cv_prog_compiler_c_o=yes
9562 fi
9563 fi
9564 chmod u+w . 2>&5
9565 $RM conftest*
9566 # SGI C++ compiler will create directory out/ii_files/ for
9567 # template instantiation
9568 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9569 $RM out/* && rmdir out
9570 cd ..
9571 $RM -r conftest
9572 $RM conftest*
9573
9574 fi
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9576 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9577
9578
9579
9580
9581
9582
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9584 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9585 if ${lt_cv_prog_compiler_c_o+:} false; then :
9586 $as_echo_n "(cached) " >&6
9587 else
9588 lt_cv_prog_compiler_c_o=no
9589 $RM -r conftest 2>/dev/null
9590 mkdir conftest
9591 cd conftest
9592 mkdir out
9593 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9594
9595 lt_compiler_flag="-o out/conftest2.$ac_objext"
9596 # Insert the option either (1) after the last *FLAGS variable, or
9597 # (2) before a word containing "conftest.", or (3) at the end.
9598 # Note that $ac_compile itself does not contain backslashes and begins
9599 # with a dollar sign (not a hyphen), so the echo should work correctly.
9600 lt_compile=`echo "$ac_compile" | $SED \
9601 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9602 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9603 -e 's:$: $lt_compiler_flag:'`
9604 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9605 (eval "$lt_compile" 2>out/conftest.err)
9606 ac_status=$?
9607 cat out/conftest.err >&5
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9610 then
9611 # The compiler can only warn and ignore the option if not recognized
9612 # So say no if there are warnings
9613 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9614 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9615 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9616 lt_cv_prog_compiler_c_o=yes
9617 fi
9618 fi
9619 chmod u+w . 2>&5
9620 $RM conftest*
9621 # SGI C++ compiler will create directory out/ii_files/ for
9622 # template instantiation
9623 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9624 $RM out/* && rmdir out
9625 cd ..
9626 $RM -r conftest
9627 $RM conftest*
9628
9629 fi
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9631 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9632
9633
9634
9635
9636 hard_links="nottested"
9637 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9638 # do not overwrite the value of need_locks provided by the user
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9640 $as_echo_n "checking if we can lock with hard links... " >&6; }
9641 hard_links=yes
9642 $RM conftest*
9643 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9644 touch conftest.a
9645 ln conftest.a conftest.b 2>&5 || hard_links=no
9646 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9648 $as_echo "$hard_links" >&6; }
9649 if test "$hard_links" = no; then
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9651 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9652 need_locks=warn
9653 fi
9654 else
9655 need_locks=no
9656 fi
9657
9658
9659
9660
9661
9662
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9664 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9665
9666 runpath_var=
9667 allow_undefined_flag=
9668 always_export_symbols=no
9669 archive_cmds=
9670 archive_expsym_cmds=
9671 compiler_needs_object=no
9672 enable_shared_with_static_runtimes=no
9673 export_dynamic_flag_spec=
9674 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9675 hardcode_automatic=no
9676 hardcode_direct=no
9677 hardcode_direct_absolute=no
9678 hardcode_libdir_flag_spec=
9679 hardcode_libdir_flag_spec_ld=
9680 hardcode_libdir_separator=
9681 hardcode_minus_L=no
9682 hardcode_shlibpath_var=unsupported
9683 inherit_rpath=no
9684 link_all_deplibs=unknown
9685 module_cmds=
9686 module_expsym_cmds=
9687 old_archive_from_new_cmds=
9688 old_archive_from_expsyms_cmds=
9689 thread_safe_flag_spec=
9690 whole_archive_flag_spec=
9691 # include_expsyms should be a list of space-separated symbols to be *always*
9692 # included in the symbol list
9693 include_expsyms=
9694 # exclude_expsyms can be an extended regexp of symbols to exclude
9695 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9696 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9697 # as well as any symbol that contains `d'.
9698 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9699 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9700 # platforms (ab)use it in PIC code, but their linkers get confused if
9701 # the symbol is explicitly referenced. Since portable code cannot
9702 # rely on this symbol name, it's probably fine to never include it in
9703 # preloaded symbol tables.
9704 # Exclude shared library initialization/finalization symbols.
9705 extract_expsyms_cmds=
9706
9707 case $host_os in
9708 cygwin* | mingw* | pw32* | cegcc*)
9709 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9710 # When not using gcc, we currently assume that we are using
9711 # Microsoft Visual C++.
9712 if test "$GCC" != yes; then
9713 with_gnu_ld=no
9714 fi
9715 ;;
9716 interix*)
9717 # we just hope/assume this is gcc and not c89 (= MSVC++)
9718 with_gnu_ld=yes
9719 ;;
9720 openbsd*)
9721 with_gnu_ld=no
9722 ;;
9723 esac
9724
9725 ld_shlibs=yes
9726
9727 # On some targets, GNU ld is compatible enough with the native linker
9728 # that we're better off using the native interface for both.
9729 lt_use_gnu_ld_interface=no
9730 if test "$with_gnu_ld" = yes; then
9731 case $host_os in
9732 aix*)
9733 # The AIX port of GNU ld has always aspired to compatibility
9734 # with the native linker. However, as the warning in the GNU ld
9735 # block says, versions before 2.19.5* couldn't really create working
9736 # shared libraries, regardless of the interface used.
9737 case `$LD -v 2>&1` in
9738 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9739 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9740 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9741 *)
9742 lt_use_gnu_ld_interface=yes
9743 ;;
9744 esac
9745 ;;
9746 *)
9747 lt_use_gnu_ld_interface=yes
9748 ;;
9749 esac
9750 fi
9751
9752 if test "$lt_use_gnu_ld_interface" = yes; then
9753 # If archive_cmds runs LD, not CC, wlarc should be empty
9754 wlarc='${wl}'
9755
9756 # Set some defaults for GNU ld with shared library support. These
9757 # are reset later if shared libraries are not supported. Putting them
9758 # here allows them to be overridden if necessary.
9759 runpath_var=LD_RUN_PATH
9760 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9761 export_dynamic_flag_spec='${wl}--export-dynamic'
9762 # ancient GNU ld didn't support --whole-archive et. al.
9763 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9764 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9765 else
9766 whole_archive_flag_spec=
9767 fi
9768 supports_anon_versioning=no
9769 case `$LD -v 2>&1` in
9770 *GNU\ gold*) supports_anon_versioning=yes ;;
9771 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9772 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9773 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9774 *\ 2.11.*) ;; # other 2.11 versions
9775 *) supports_anon_versioning=yes ;;
9776 esac
9777
9778 # See if GNU ld supports shared libraries.
9779 case $host_os in
9780 aix[3-9]*)
9781 # On AIX/PPC, the GNU linker is very broken
9782 if test "$host_cpu" != ia64; then
9783 ld_shlibs=no
9784 cat <<_LT_EOF 1>&2
9785
9786 *** Warning: the GNU linker, at least up to release 2.19, is reported
9787 *** to be unable to reliably create shared libraries on AIX.
9788 *** Therefore, libtool is disabling shared libraries support. If you
9789 *** really care for shared libraries, you may want to install binutils
9790 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9791 *** You will then need to restart the configuration process.
9792
9793 _LT_EOF
9794 fi
9795 ;;
9796
9797 amigaos*)
9798 case $host_cpu in
9799 powerpc)
9800 # see comment about AmigaOS4 .so support
9801 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9802 archive_expsym_cmds=''
9803 ;;
9804 m68k)
9805 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)'
9806 hardcode_libdir_flag_spec='-L$libdir'
9807 hardcode_minus_L=yes
9808 ;;
9809 esac
9810 ;;
9811
9812 beos*)
9813 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9814 allow_undefined_flag=unsupported
9815 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9816 # support --undefined. This deserves some investigation. FIXME
9817 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9818 else
9819 ld_shlibs=no
9820 fi
9821 ;;
9822
9823 cygwin* | mingw* | pw32* | cegcc*)
9824 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9825 # as there is no search path for DLLs.
9826 hardcode_libdir_flag_spec='-L$libdir'
9827 export_dynamic_flag_spec='${wl}--export-all-symbols'
9828 allow_undefined_flag=unsupported
9829 always_export_symbols=no
9830 enable_shared_with_static_runtimes=yes
9831 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9832
9833 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9834 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9835 # If the export-symbols file already is a .def file (1st line
9836 # is EXPORTS), use it as is; otherwise, prepend...
9837 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9838 cp $export_symbols $output_objdir/$soname.def;
9839 else
9840 echo EXPORTS > $output_objdir/$soname.def;
9841 cat $export_symbols >> $output_objdir/$soname.def;
9842 fi~
9843 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9844 else
9845 ld_shlibs=no
9846 fi
9847 ;;
9848
9849 haiku*)
9850 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9851 link_all_deplibs=yes
9852 ;;
9853
9854 interix[3-9]*)
9855 hardcode_direct=no
9856 hardcode_shlibpath_var=no
9857 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9858 export_dynamic_flag_spec='${wl}-E'
9859 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9860 # Instead, shared libraries are loaded at an image base (0x10000000 by
9861 # default) and relocated if they conflict, which is a slow very memory
9862 # consuming and fragmenting process. To avoid this, we pick a random,
9863 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9864 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9865 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9866 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'
9867 ;;
9868
9869 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9870 tmp_diet=no
9871 if test "$host_os" = linux-dietlibc; then
9872 case $cc_basename in
9873 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9874 esac
9875 fi
9876 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9877 && test "$tmp_diet" = no
9878 then
9879 tmp_addflag=' $pic_flag'
9880 tmp_sharedflag='-shared'
9881 case $cc_basename,$host_cpu in
9882 pgcc*) # Portland Group C compiler
9883 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'
9884 tmp_addflag=' $pic_flag'
9885 ;;
9886 pgf77* | pgf90* | pgf95* | pgfortran*)
9887 # Portland Group f77 and f90 compilers
9888 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'
9889 tmp_addflag=' $pic_flag -Mnomain' ;;
9890 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9891 tmp_addflag=' -i_dynamic' ;;
9892 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9893 tmp_addflag=' -i_dynamic -nofor_main' ;;
9894 ifc* | ifort*) # Intel Fortran compiler
9895 tmp_addflag=' -nofor_main' ;;
9896 lf95*) # Lahey Fortran 8.1
9897 whole_archive_flag_spec=
9898 tmp_sharedflag='--shared' ;;
9899 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9900 tmp_sharedflag='-qmkshrobj'
9901 tmp_addflag= ;;
9902 nvcc*) # Cuda Compiler Driver 2.2
9903 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'
9904 compiler_needs_object=yes
9905 ;;
9906 esac
9907 case `$CC -V 2>&1 | sed 5q` in
9908 *Sun\ C*) # Sun C 5.9
9909 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'
9910 compiler_needs_object=yes
9911 tmp_sharedflag='-G' ;;
9912 *Sun\ F*) # Sun Fortran 8.3
9913 tmp_sharedflag='-G' ;;
9914 esac
9915 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9916
9917 if test "x$supports_anon_versioning" = xyes; then
9918 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9919 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9920 echo "local: *; };" >> $output_objdir/$libname.ver~
9921 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9922 fi
9923
9924 case $cc_basename in
9925 xlf* | bgf* | bgxlf* | mpixlf*)
9926 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9927 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9928 hardcode_libdir_flag_spec=
9929 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9930 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9931 if test "x$supports_anon_versioning" = xyes; then
9932 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9933 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9934 echo "local: *; };" >> $output_objdir/$libname.ver~
9935 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9936 fi
9937 ;;
9938 esac
9939 else
9940 ld_shlibs=no
9941 fi
9942 ;;
9943
9944 netbsd*)
9945 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9946 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9947 wlarc=
9948 else
9949 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9950 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9951 fi
9952 ;;
9953
9954 solaris*)
9955 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9956 ld_shlibs=no
9957 cat <<_LT_EOF 1>&2
9958
9959 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9960 *** create shared libraries on Solaris systems. Therefore, libtool
9961 *** is disabling shared libraries support. We urge you to upgrade GNU
9962 *** binutils to release 2.9.1 or newer. Another option is to modify
9963 *** your PATH or compiler configuration so that the native linker is
9964 *** used, and then restart.
9965
9966 _LT_EOF
9967 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9968 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9969 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9970 else
9971 ld_shlibs=no
9972 fi
9973 ;;
9974
9975 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9976 case `$LD -v 2>&1` in
9977 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9978 ld_shlibs=no
9979 cat <<_LT_EOF 1>&2
9980
9981 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9982 *** reliably create shared libraries on SCO systems. Therefore, libtool
9983 *** is disabling shared libraries support. We urge you to upgrade GNU
9984 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9985 *** your PATH or compiler configuration so that the native linker is
9986 *** used, and then restart.
9987
9988 _LT_EOF
9989 ;;
9990 *)
9991 # For security reasons, it is highly recommended that you always
9992 # use absolute paths for naming shared libraries, and exclude the
9993 # DT_RUNPATH tag from executables and libraries. But doing so
9994 # requires that you compile everything twice, which is a pain.
9995 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9996 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9997 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9998 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9999 else
10000 ld_shlibs=no
10001 fi
10002 ;;
10003 esac
10004 ;;
10005
10006 sunos4*)
10007 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10008 wlarc=
10009 hardcode_direct=yes
10010 hardcode_shlibpath_var=no
10011 ;;
10012
10013 *)
10014 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10015 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10016 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10017 else
10018 ld_shlibs=no
10019 fi
10020 ;;
10021 esac
10022
10023 if test "$ld_shlibs" = no; then
10024 runpath_var=
10025 hardcode_libdir_flag_spec=
10026 export_dynamic_flag_spec=
10027 whole_archive_flag_spec=
10028 fi
10029 else
10030 # PORTME fill in a description of your system's linker (not GNU ld)
10031 case $host_os in
10032 aix3*)
10033 allow_undefined_flag=unsupported
10034 always_export_symbols=yes
10035 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'
10036 # Note: this linker hardcodes the directories in LIBPATH if there
10037 # are no directories specified by -L.
10038 hardcode_minus_L=yes
10039 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10040 # Neither direct hardcoding nor static linking is supported with a
10041 # broken collect2.
10042 hardcode_direct=unsupported
10043 fi
10044 ;;
10045
10046 aix[4-9]*)
10047 if test "$host_cpu" = ia64; then
10048 # On IA64, the linker does run time linking by default, so we don't
10049 # have to do anything special.
10050 aix_use_runtimelinking=no
10051 exp_sym_flag='-Bexport'
10052 no_entry_flag=""
10053 else
10054 # If we're using GNU nm, then we don't want the "-C" option.
10055 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10056 # Also, AIX nm treats weak defined symbols like other global
10057 # defined symbols, whereas GNU nm marks them as "W".
10058 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10059 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'
10060 else
10061 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'
10062 fi
10063 aix_use_runtimelinking=no
10064
10065 # Test if we are trying to use run time linking or normal
10066 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10067 # need to do runtime linking.
10068 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10069 for ld_flag in $LDFLAGS; do
10070 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10071 aix_use_runtimelinking=yes
10072 break
10073 fi
10074 done
10075 ;;
10076 esac
10077
10078 exp_sym_flag='-bexport'
10079 no_entry_flag='-bnoentry'
10080 fi
10081
10082 # When large executables or shared objects are built, AIX ld can
10083 # have problems creating the table of contents. If linking a library
10084 # or program results in "error TOC overflow" add -mminimal-toc to
10085 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10086 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10087
10088 archive_cmds=''
10089 hardcode_direct=yes
10090 hardcode_direct_absolute=yes
10091 hardcode_libdir_separator=':'
10092 link_all_deplibs=yes
10093 file_list_spec='${wl}-f,'
10094
10095 if test "$GCC" = yes; then
10096 case $host_os in aix4.[012]|aix4.[012].*)
10097 # We only want to do this on AIX 4.2 and lower, the check
10098 # below for broken collect2 doesn't work under 4.3+
10099 collect2name=`${CC} -print-prog-name=collect2`
10100 if test -f "$collect2name" &&
10101 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10102 then
10103 # We have reworked collect2
10104 :
10105 else
10106 # We have old collect2
10107 hardcode_direct=unsupported
10108 # It fails to find uninstalled libraries when the uninstalled
10109 # path is not listed in the libpath. Setting hardcode_minus_L
10110 # to unsupported forces relinking
10111 hardcode_minus_L=yes
10112 hardcode_libdir_flag_spec='-L$libdir'
10113 hardcode_libdir_separator=
10114 fi
10115 ;;
10116 esac
10117 shared_flag='-shared'
10118 if test "$aix_use_runtimelinking" = yes; then
10119 shared_flag="$shared_flag "'${wl}-G'
10120 fi
10121 else
10122 # not using gcc
10123 if test "$host_cpu" = ia64; then
10124 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10125 # chokes on -Wl,-G. The following line is correct:
10126 shared_flag='-G'
10127 else
10128 if test "$aix_use_runtimelinking" = yes; then
10129 shared_flag='${wl}-G'
10130 else
10131 shared_flag='${wl}-bM:SRE'
10132 fi
10133 fi
10134 fi
10135
10136 export_dynamic_flag_spec='${wl}-bexpall'
10137 # It seems that -bexpall does not export symbols beginning with
10138 # underscore (_), so it is better to generate a list of symbols to export.
10139 always_export_symbols=yes
10140 if test "$aix_use_runtimelinking" = yes; then
10141 # Warning - without using the other runtime loading flags (-brtl),
10142 # -berok will link without error, but may produce a broken library.
10143 allow_undefined_flag='-berok'
10144 # Determine the default libpath from the value encoded in an
10145 # empty executable.
10146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10147 /* end confdefs.h. */
10148
10149 int
10150 main ()
10151 {
10152
10153 ;
10154 return 0;
10155 }
10156 _ACEOF
10157 if ac_fn_c_try_link "$LINENO"; then :
10158
10159 lt_aix_libpath_sed='
10160 /Import File Strings/,/^$/ {
10161 /^0/ {
10162 s/^0 *\(.*\)$/\1/
10163 p
10164 }
10165 }'
10166 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10167 # Check for a 64-bit object if we didn't find anything.
10168 if test -z "$aix_libpath"; then
10169 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10170 fi
10171 fi
10172 rm -f core conftest.err conftest.$ac_objext \
10173 conftest$ac_exeext conftest.$ac_ext
10174 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10175
10176 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10177 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"
10178 else
10179 if test "$host_cpu" = ia64; then
10180 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10181 allow_undefined_flag="-z nodefs"
10182 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"
10183 else
10184 # Determine the default libpath from the value encoded in an
10185 # empty executable.
10186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10187 /* end confdefs.h. */
10188
10189 int
10190 main ()
10191 {
10192
10193 ;
10194 return 0;
10195 }
10196 _ACEOF
10197 if ac_fn_c_try_link "$LINENO"; then :
10198
10199 lt_aix_libpath_sed='
10200 /Import File Strings/,/^$/ {
10201 /^0/ {
10202 s/^0 *\(.*\)$/\1/
10203 p
10204 }
10205 }'
10206 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10207 # Check for a 64-bit object if we didn't find anything.
10208 if test -z "$aix_libpath"; then
10209 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10210 fi
10211 fi
10212 rm -f core conftest.err conftest.$ac_objext \
10213 conftest$ac_exeext conftest.$ac_ext
10214 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10215
10216 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10217 # Warning - without using the other run time loading flags,
10218 # -berok will link without error, but may produce a broken library.
10219 no_undefined_flag=' ${wl}-bernotok'
10220 allow_undefined_flag=' ${wl}-berok'
10221 if test "$with_gnu_ld" = yes; then
10222 # We only use this code for GNU lds that support --whole-archive.
10223 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10224 else
10225 # Exported symbols can be pulled into shared objects from archives
10226 whole_archive_flag_spec='$convenience'
10227 fi
10228 archive_cmds_need_lc=yes
10229 # This is similar to how AIX traditionally builds its shared libraries.
10230 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'
10231 fi
10232 fi
10233 ;;
10234
10235 amigaos*)
10236 case $host_cpu in
10237 powerpc)
10238 # see comment about AmigaOS4 .so support
10239 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10240 archive_expsym_cmds=''
10241 ;;
10242 m68k)
10243 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)'
10244 hardcode_libdir_flag_spec='-L$libdir'
10245 hardcode_minus_L=yes
10246 ;;
10247 esac
10248 ;;
10249
10250 bsdi[45]*)
10251 export_dynamic_flag_spec=-rdynamic
10252 ;;
10253
10254 cygwin* | mingw* | pw32* | cegcc*)
10255 # When not using gcc, we currently assume that we are using
10256 # Microsoft Visual C++.
10257 # hardcode_libdir_flag_spec is actually meaningless, as there is
10258 # no search path for DLLs.
10259 hardcode_libdir_flag_spec=' '
10260 allow_undefined_flag=unsupported
10261 # Tell ltmain to make .lib files, not .a files.
10262 libext=lib
10263 # Tell ltmain to make .dll files, not .so files.
10264 shrext_cmds=".dll"
10265 # FIXME: Setting linknames here is a bad hack.
10266 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10267 # The linker will automatically build a .lib file if we build a DLL.
10268 old_archive_from_new_cmds='true'
10269 # FIXME: Should let the user specify the lib program.
10270 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10271 fix_srcfile_path='`cygpath -w "$srcfile"`'
10272 enable_shared_with_static_runtimes=yes
10273 ;;
10274
10275 darwin* | rhapsody*)
10276
10277
10278 archive_cmds_need_lc=no
10279 hardcode_direct=no
10280 hardcode_automatic=yes
10281 hardcode_shlibpath_var=unsupported
10282 if test "$lt_cv_ld_force_load" = "yes"; then
10283 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\"`'
10284 else
10285 whole_archive_flag_spec=''
10286 fi
10287 link_all_deplibs=yes
10288 allow_undefined_flag="$_lt_dar_allow_undefined"
10289 case $cc_basename in
10290 ifort*) _lt_dar_can_shared=yes ;;
10291 *) _lt_dar_can_shared=$GCC ;;
10292 esac
10293 if test "$_lt_dar_can_shared" = "yes"; then
10294 output_verbose_link_cmd=func_echo_all
10295 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10296 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10297 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}"
10298 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}"
10299
10300 else
10301 ld_shlibs=no
10302 fi
10303
10304 ;;
10305
10306 dgux*)
10307 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10308 hardcode_libdir_flag_spec='-L$libdir'
10309 hardcode_shlibpath_var=no
10310 ;;
10311
10312 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10313 # support. Future versions do this automatically, but an explicit c++rt0.o
10314 # does not break anything, and helps significantly (at the cost of a little
10315 # extra space).
10316 freebsd2.2*)
10317 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10318 hardcode_libdir_flag_spec='-R$libdir'
10319 hardcode_direct=yes
10320 hardcode_shlibpath_var=no
10321 ;;
10322
10323 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10324 freebsd2.*)
10325 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10326 hardcode_direct=yes
10327 hardcode_minus_L=yes
10328 hardcode_shlibpath_var=no
10329 ;;
10330
10331 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10332 freebsd* | dragonfly*)
10333 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10334 hardcode_libdir_flag_spec='-R$libdir'
10335 hardcode_direct=yes
10336 hardcode_shlibpath_var=no
10337 ;;
10338
10339 hpux9*)
10340 if test "$GCC" = yes; then
10341 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'
10342 else
10343 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'
10344 fi
10345 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10346 hardcode_libdir_separator=:
10347 hardcode_direct=yes
10348
10349 # hardcode_minus_L: Not really in the search PATH,
10350 # but as the default location of the library.
10351 hardcode_minus_L=yes
10352 export_dynamic_flag_spec='${wl}-E'
10353 ;;
10354
10355 hpux10*)
10356 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10357 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10358 else
10359 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10360 fi
10361 if test "$with_gnu_ld" = no; then
10362 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10363 hardcode_libdir_flag_spec_ld='+b $libdir'
10364 hardcode_libdir_separator=:
10365 hardcode_direct=yes
10366 hardcode_direct_absolute=yes
10367 export_dynamic_flag_spec='${wl}-E'
10368 # hardcode_minus_L: Not really in the search PATH,
10369 # but as the default location of the library.
10370 hardcode_minus_L=yes
10371 fi
10372 ;;
10373
10374 hpux11*)
10375 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10376 case $host_cpu in
10377 hppa*64*)
10378 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10379 ;;
10380 ia64*)
10381 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10382 ;;
10383 *)
10384 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10385 ;;
10386 esac
10387 else
10388 case $host_cpu in
10389 hppa*64*)
10390 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10391 ;;
10392 ia64*)
10393 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10394 ;;
10395 *)
10396
10397 # Older versions of the 11.00 compiler do not understand -b yet
10398 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10400 $as_echo_n "checking if $CC understands -b... " >&6; }
10401 if ${lt_cv_prog_compiler__b+:} false; then :
10402 $as_echo_n "(cached) " >&6
10403 else
10404 lt_cv_prog_compiler__b=no
10405 save_LDFLAGS="$LDFLAGS"
10406 LDFLAGS="$LDFLAGS -b"
10407 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10408 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10409 # The linker can only warn and ignore the option if not recognized
10410 # So say no if there are warnings
10411 if test -s conftest.err; then
10412 # Append any errors to the config.log.
10413 cat conftest.err 1>&5
10414 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10415 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10416 if diff conftest.exp conftest.er2 >/dev/null; then
10417 lt_cv_prog_compiler__b=yes
10418 fi
10419 else
10420 lt_cv_prog_compiler__b=yes
10421 fi
10422 fi
10423 $RM -r conftest*
10424 LDFLAGS="$save_LDFLAGS"
10425
10426 fi
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10428 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10429
10430 if test x"$lt_cv_prog_compiler__b" = xyes; then
10431 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10432 else
10433 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10434 fi
10435
10436 ;;
10437 esac
10438 fi
10439 if test "$with_gnu_ld" = no; then
10440 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10441 hardcode_libdir_separator=:
10442
10443 case $host_cpu in
10444 hppa*64*|ia64*)
10445 hardcode_direct=no
10446 hardcode_shlibpath_var=no
10447 ;;
10448 *)
10449 hardcode_direct=yes
10450 hardcode_direct_absolute=yes
10451 export_dynamic_flag_spec='${wl}-E'
10452
10453 # hardcode_minus_L: Not really in the search PATH,
10454 # but as the default location of the library.
10455 hardcode_minus_L=yes
10456 ;;
10457 esac
10458 fi
10459 ;;
10460
10461 irix5* | irix6* | nonstopux*)
10462 if test "$GCC" = yes; then
10463 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'
10464 # Try to use the -exported_symbol ld option, if it does not
10465 # work, assume that -exports_file does not work either and
10466 # implicitly export all symbols.
10467 save_LDFLAGS="$LDFLAGS"
10468 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10470 /* end confdefs.h. */
10471 int foo(void) {}
10472 _ACEOF
10473 if ac_fn_c_try_link "$LINENO"; then :
10474 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'
10475
10476 fi
10477 rm -f core conftest.err conftest.$ac_objext \
10478 conftest$ac_exeext conftest.$ac_ext
10479 LDFLAGS="$save_LDFLAGS"
10480 else
10481 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'
10482 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'
10483 fi
10484 archive_cmds_need_lc='no'
10485 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10486 hardcode_libdir_separator=:
10487 inherit_rpath=yes
10488 link_all_deplibs=yes
10489 ;;
10490
10491 netbsd*)
10492 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10493 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10494 else
10495 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10496 fi
10497 hardcode_libdir_flag_spec='-R$libdir'
10498 hardcode_direct=yes
10499 hardcode_shlibpath_var=no
10500 ;;
10501
10502 newsos6)
10503 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10504 hardcode_direct=yes
10505 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10506 hardcode_libdir_separator=:
10507 hardcode_shlibpath_var=no
10508 ;;
10509
10510 *nto* | *qnx*)
10511 ;;
10512
10513 openbsd*)
10514 if test -f /usr/libexec/ld.so; then
10515 hardcode_direct=yes
10516 hardcode_shlibpath_var=no
10517 hardcode_direct_absolute=yes
10518 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10519 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10520 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10521 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10522 export_dynamic_flag_spec='${wl}-E'
10523 else
10524 case $host_os in
10525 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10526 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10527 hardcode_libdir_flag_spec='-R$libdir'
10528 ;;
10529 *)
10530 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10531 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10532 ;;
10533 esac
10534 fi
10535 else
10536 ld_shlibs=no
10537 fi
10538 ;;
10539
10540 os2*)
10541 hardcode_libdir_flag_spec='-L$libdir'
10542 hardcode_minus_L=yes
10543 allow_undefined_flag=unsupported
10544 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'
10545 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10546 ;;
10547
10548 osf3*)
10549 if test "$GCC" = yes; then
10550 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10551 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'
10552 else
10553 allow_undefined_flag=' -expect_unresolved \*'
10554 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'
10555 fi
10556 archive_cmds_need_lc='no'
10557 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10558 hardcode_libdir_separator=:
10559 ;;
10560
10561 osf4* | osf5*) # as osf3* with the addition of -msym flag
10562 if test "$GCC" = yes; then
10563 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10564 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'
10565 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10566 else
10567 allow_undefined_flag=' -expect_unresolved \*'
10568 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'
10569 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~
10570 $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'
10571
10572 # Both c and cxx compiler support -rpath directly
10573 hardcode_libdir_flag_spec='-rpath $libdir'
10574 fi
10575 archive_cmds_need_lc='no'
10576 hardcode_libdir_separator=:
10577 ;;
10578
10579 solaris*)
10580 no_undefined_flag=' -z defs'
10581 if test "$GCC" = yes; then
10582 wlarc='${wl}'
10583 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10584 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10585 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10586 else
10587 case `$CC -V 2>&1` in
10588 *"Compilers 5.0"*)
10589 wlarc=''
10590 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10591 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10592 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10593 ;;
10594 *)
10595 wlarc='${wl}'
10596 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10597 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10598 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10599 ;;
10600 esac
10601 fi
10602 hardcode_libdir_flag_spec='-R$libdir'
10603 hardcode_shlibpath_var=no
10604 case $host_os in
10605 solaris2.[0-5] | solaris2.[0-5].*) ;;
10606 *)
10607 # The compiler driver will combine and reorder linker options,
10608 # but understands `-z linker_flag'. GCC discards it without `$wl',
10609 # but is careful enough not to reorder.
10610 # Supported since Solaris 2.6 (maybe 2.5.1?)
10611 if test "$GCC" = yes; then
10612 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10613 else
10614 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10615 fi
10616 ;;
10617 esac
10618 link_all_deplibs=yes
10619 ;;
10620
10621 sunos4*)
10622 if test "x$host_vendor" = xsequent; then
10623 # Use $CC to link under sequent, because it throws in some extra .o
10624 # files that make .init and .fini sections work.
10625 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10626 else
10627 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10628 fi
10629 hardcode_libdir_flag_spec='-L$libdir'
10630 hardcode_direct=yes
10631 hardcode_minus_L=yes
10632 hardcode_shlibpath_var=no
10633 ;;
10634
10635 sysv4)
10636 case $host_vendor in
10637 sni)
10638 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10639 hardcode_direct=yes # is this really true???
10640 ;;
10641 siemens)
10642 ## LD is ld it makes a PLAMLIB
10643 ## CC just makes a GrossModule.
10644 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10645 reload_cmds='$CC -r -o $output$reload_objs'
10646 hardcode_direct=no
10647 ;;
10648 motorola)
10649 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10650 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10651 ;;
10652 esac
10653 runpath_var='LD_RUN_PATH'
10654 hardcode_shlibpath_var=no
10655 ;;
10656
10657 sysv4.3*)
10658 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10659 hardcode_shlibpath_var=no
10660 export_dynamic_flag_spec='-Bexport'
10661 ;;
10662
10663 sysv4*MP*)
10664 if test -d /usr/nec; then
10665 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10666 hardcode_shlibpath_var=no
10667 runpath_var=LD_RUN_PATH
10668 hardcode_runpath_var=yes
10669 ld_shlibs=yes
10670 fi
10671 ;;
10672
10673 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10674 no_undefined_flag='${wl}-z,text'
10675 archive_cmds_need_lc=no
10676 hardcode_shlibpath_var=no
10677 runpath_var='LD_RUN_PATH'
10678
10679 if test "$GCC" = yes; then
10680 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10681 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10682 else
10683 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10684 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10685 fi
10686 ;;
10687
10688 sysv5* | sco3.2v5* | sco5v6*)
10689 # Note: We can NOT use -z defs as we might desire, because we do not
10690 # link with -lc, and that would cause any symbols used from libc to
10691 # always be unresolved, which means just about no library would
10692 # ever link correctly. If we're not using GNU ld we use -z text
10693 # though, which does catch some bad symbols but isn't as heavy-handed
10694 # as -z defs.
10695 no_undefined_flag='${wl}-z,text'
10696 allow_undefined_flag='${wl}-z,nodefs'
10697 archive_cmds_need_lc=no
10698 hardcode_shlibpath_var=no
10699 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10700 hardcode_libdir_separator=':'
10701 link_all_deplibs=yes
10702 export_dynamic_flag_spec='${wl}-Bexport'
10703 runpath_var='LD_RUN_PATH'
10704
10705 if test "$GCC" = yes; then
10706 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10707 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10708 else
10709 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10710 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10711 fi
10712 ;;
10713
10714 uts4*)
10715 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10716 hardcode_libdir_flag_spec='-L$libdir'
10717 hardcode_shlibpath_var=no
10718 ;;
10719
10720 *)
10721 ld_shlibs=no
10722 ;;
10723 esac
10724
10725 if test x$host_vendor = xsni; then
10726 case $host in
10727 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10728 export_dynamic_flag_spec='${wl}-Blargedynsym'
10729 ;;
10730 esac
10731 fi
10732 fi
10733
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10735 $as_echo "$ld_shlibs" >&6; }
10736 test "$ld_shlibs" = no && can_build_shared=no
10737
10738 with_gnu_ld=$with_gnu_ld
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754 #
10755 # Do we need to explicitly link libc?
10756 #
10757 case "x$archive_cmds_need_lc" in
10758 x|xyes)
10759 # Assume -lc should be added
10760 archive_cmds_need_lc=yes
10761
10762 if test "$enable_shared" = yes && test "$GCC" = yes; then
10763 case $archive_cmds in
10764 *'~'*)
10765 # FIXME: we may have to deal with multi-command sequences.
10766 ;;
10767 '$CC '*)
10768 # Test whether the compiler implicitly links with -lc since on some
10769 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10770 # to ld, don't add -lc before -lgcc.
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10772 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10773 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10774 $as_echo_n "(cached) " >&6
10775 else
10776 $RM conftest*
10777 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10778
10779 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10780 (eval $ac_compile) 2>&5
10781 ac_status=$?
10782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10783 test $ac_status = 0; } 2>conftest.err; then
10784 soname=conftest
10785 lib=conftest
10786 libobjs=conftest.$ac_objext
10787 deplibs=
10788 wl=$lt_prog_compiler_wl
10789 pic_flag=$lt_prog_compiler_pic
10790 compiler_flags=-v
10791 linker_flags=-v
10792 verstring=
10793 output_objdir=.
10794 libname=conftest
10795 lt_save_allow_undefined_flag=$allow_undefined_flag
10796 allow_undefined_flag=
10797 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10798 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10799 ac_status=$?
10800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10801 test $ac_status = 0; }
10802 then
10803 lt_cv_archive_cmds_need_lc=no
10804 else
10805 lt_cv_archive_cmds_need_lc=yes
10806 fi
10807 allow_undefined_flag=$lt_save_allow_undefined_flag
10808 else
10809 cat conftest.err 1>&5
10810 fi
10811 $RM conftest*
10812
10813 fi
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10815 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10816 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10817 ;;
10818 esac
10819 fi
10820 ;;
10821 esac
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10980 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10981
10982 if test "$GCC" = yes; then
10983 case $host_os in
10984 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10985 *) lt_awk_arg="/^libraries:/" ;;
10986 esac
10987 case $host_os in
10988 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10989 *) lt_sed_strip_eq="s,=/,/,g" ;;
10990 esac
10991 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10992 case $lt_search_path_spec in
10993 *\;*)
10994 # if the path contains ";" then we assume it to be the separator
10995 # otherwise default to the standard path separator (i.e. ":") - it is
10996 # assumed that no part of a normal pathname contains ";" but that should
10997 # okay in the real world where ";" in dirpaths is itself problematic.
10998 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10999 ;;
11000 *)
11001 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11002 ;;
11003 esac
11004 # Ok, now we have the path, separated by spaces, we can step through it
11005 # and add multilib dir if necessary.
11006 lt_tmp_lt_search_path_spec=
11007 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11008 for lt_sys_path in $lt_search_path_spec; do
11009 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11010 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11011 else
11012 test -d "$lt_sys_path" && \
11013 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11014 fi
11015 done
11016 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11017 BEGIN {RS=" "; FS="/|\n";} {
11018 lt_foo="";
11019 lt_count=0;
11020 for (lt_i = NF; lt_i > 0; lt_i--) {
11021 if ($lt_i != "" && $lt_i != ".") {
11022 if ($lt_i == "..") {
11023 lt_count++;
11024 } else {
11025 if (lt_count == 0) {
11026 lt_foo="/" $lt_i lt_foo;
11027 } else {
11028 lt_count--;
11029 }
11030 }
11031 }
11032 }
11033 if (lt_foo != "") { lt_freq[lt_foo]++; }
11034 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11035 }'`
11036 # AWK program above erroneously prepends '/' to C:/dos/paths
11037 # for these hosts.
11038 case $host_os in
11039 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11040 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11041 esac
11042 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11043 else
11044 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11045 fi
11046 library_names_spec=
11047 libname_spec='lib$name'
11048 soname_spec=
11049 shrext_cmds=".so"
11050 postinstall_cmds=
11051 postuninstall_cmds=
11052 finish_cmds=
11053 finish_eval=
11054 shlibpath_var=
11055 shlibpath_overrides_runpath=unknown
11056 version_type=none
11057 dynamic_linker="$host_os ld.so"
11058 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11059 need_lib_prefix=unknown
11060 hardcode_into_libs=no
11061
11062 # when you set need_version to no, make sure it does not cause -set_version
11063 # flags to be left without arguments
11064 need_version=unknown
11065
11066 case $host_os in
11067 aix3*)
11068 version_type=linux
11069 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11070 shlibpath_var=LIBPATH
11071
11072 # AIX 3 has no versioning support, so we append a major version to the name.
11073 soname_spec='${libname}${release}${shared_ext}$major'
11074 ;;
11075
11076 aix[4-9]*)
11077 version_type=linux
11078 need_lib_prefix=no
11079 need_version=no
11080 hardcode_into_libs=yes
11081 if test "$host_cpu" = ia64; then
11082 # AIX 5 supports IA64
11083 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11084 shlibpath_var=LD_LIBRARY_PATH
11085 else
11086 # With GCC up to 2.95.x, collect2 would create an import file
11087 # for dependence libraries. The import file would start with
11088 # the line `#! .'. This would cause the generated library to
11089 # depend on `.', always an invalid library. This was fixed in
11090 # development snapshots of GCC prior to 3.0.
11091 case $host_os in
11092 aix4 | aix4.[01] | aix4.[01].*)
11093 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11094 echo ' yes '
11095 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11096 :
11097 else
11098 can_build_shared=no
11099 fi
11100 ;;
11101 esac
11102 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11103 # soname into executable. Probably we can add versioning support to
11104 # collect2, so additional links can be useful in future.
11105 if test "$aix_use_runtimelinking" = yes; then
11106 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11107 # instead of lib<name>.a to let people know that these are not
11108 # typical AIX shared libraries.
11109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11110 else
11111 # We preserve .a as extension for shared libraries through AIX4.2
11112 # and later when we are not doing run time linking.
11113 library_names_spec='${libname}${release}.a $libname.a'
11114 soname_spec='${libname}${release}${shared_ext}$major'
11115 fi
11116 shlibpath_var=LIBPATH
11117 fi
11118 ;;
11119
11120 amigaos*)
11121 case $host_cpu in
11122 powerpc)
11123 # Since July 2007 AmigaOS4 officially supports .so libraries.
11124 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11126 ;;
11127 m68k)
11128 library_names_spec='$libname.ixlibrary $libname.a'
11129 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11130 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'
11131 ;;
11132 esac
11133 ;;
11134
11135 beos*)
11136 library_names_spec='${libname}${shared_ext}'
11137 dynamic_linker="$host_os ld.so"
11138 shlibpath_var=LIBRARY_PATH
11139 ;;
11140
11141 bsdi[45]*)
11142 version_type=linux
11143 need_version=no
11144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11145 soname_spec='${libname}${release}${shared_ext}$major'
11146 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11147 shlibpath_var=LD_LIBRARY_PATH
11148 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11149 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11150 # the default ld.so.conf also contains /usr/contrib/lib and
11151 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11152 # libtool to hard-code these into programs
11153 ;;
11154
11155 cygwin* | mingw* | pw32* | cegcc*)
11156 version_type=windows
11157 shrext_cmds=".dll"
11158 need_version=no
11159 need_lib_prefix=no
11160
11161 case $GCC,$host_os in
11162 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11163 library_names_spec='$libname.dll.a'
11164 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11165 postinstall_cmds='base_file=`basename \${file}`~
11166 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11167 dldir=$destdir/`dirname \$dlpath`~
11168 test -d \$dldir || mkdir -p \$dldir~
11169 $install_prog $dir/$dlname \$dldir/$dlname~
11170 chmod a+x \$dldir/$dlname~
11171 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11172 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11173 fi'
11174 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11175 dlpath=$dir/\$dldll~
11176 $RM \$dlpath'
11177 shlibpath_overrides_runpath=yes
11178
11179 case $host_os in
11180 cygwin*)
11181 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11182 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11183
11184 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11185 ;;
11186 mingw* | cegcc*)
11187 # MinGW DLLs use traditional 'lib' prefix
11188 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11189 ;;
11190 pw32*)
11191 # pw32 DLLs use 'pw' prefix rather than 'lib'
11192 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11193 ;;
11194 esac
11195 ;;
11196
11197 *)
11198 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11199 ;;
11200 esac
11201 dynamic_linker='Win32 ld.exe'
11202 # FIXME: first we should search . and the directory the executable is in
11203 shlibpath_var=PATH
11204 ;;
11205
11206 darwin* | rhapsody*)
11207 dynamic_linker="$host_os dyld"
11208 version_type=darwin
11209 need_lib_prefix=no
11210 need_version=no
11211 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11212 soname_spec='${libname}${release}${major}$shared_ext'
11213 shlibpath_overrides_runpath=yes
11214 shlibpath_var=DYLD_LIBRARY_PATH
11215 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11216
11217 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11218 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11219 ;;
11220
11221 dgux*)
11222 version_type=linux
11223 need_lib_prefix=no
11224 need_version=no
11225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11226 soname_spec='${libname}${release}${shared_ext}$major'
11227 shlibpath_var=LD_LIBRARY_PATH
11228 ;;
11229
11230 freebsd* | dragonfly*)
11231 # DragonFly does not have aout. When/if they implement a new
11232 # versioning mechanism, adjust this.
11233 if test -x /usr/bin/objformat; then
11234 objformat=`/usr/bin/objformat`
11235 else
11236 case $host_os in
11237 freebsd[23].*) objformat=aout ;;
11238 *) objformat=elf ;;
11239 esac
11240 fi
11241 version_type=freebsd-$objformat
11242 case $version_type in
11243 freebsd-elf*)
11244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11245 need_version=no
11246 need_lib_prefix=no
11247 ;;
11248 freebsd-*)
11249 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11250 need_version=yes
11251 ;;
11252 esac
11253 shlibpath_var=LD_LIBRARY_PATH
11254 case $host_os in
11255 freebsd2.*)
11256 shlibpath_overrides_runpath=yes
11257 ;;
11258 freebsd3.[01]* | freebsdelf3.[01]*)
11259 shlibpath_overrides_runpath=yes
11260 hardcode_into_libs=yes
11261 ;;
11262 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11263 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11264 shlibpath_overrides_runpath=no
11265 hardcode_into_libs=yes
11266 ;;
11267 *) # from 4.6 on, and DragonFly
11268 shlibpath_overrides_runpath=yes
11269 hardcode_into_libs=yes
11270 ;;
11271 esac
11272 ;;
11273
11274 haiku*)
11275 version_type=linux
11276 need_lib_prefix=no
11277 need_version=no
11278 dynamic_linker="$host_os runtime_loader"
11279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11280 soname_spec='${libname}${release}${shared_ext}$major'
11281 shlibpath_var=LIBRARY_PATH
11282 shlibpath_overrides_runpath=yes
11283 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11284 hardcode_into_libs=yes
11285 ;;
11286
11287 hpux9* | hpux10* | hpux11*)
11288 # Give a soname corresponding to the major version so that dld.sl refuses to
11289 # link against other versions.
11290 version_type=sunos
11291 need_lib_prefix=no
11292 need_version=no
11293 case $host_cpu in
11294 ia64*)
11295 shrext_cmds='.so'
11296 hardcode_into_libs=yes
11297 dynamic_linker="$host_os dld.so"
11298 shlibpath_var=LD_LIBRARY_PATH
11299 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11301 soname_spec='${libname}${release}${shared_ext}$major'
11302 if test "X$HPUX_IA64_MODE" = X32; then
11303 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11304 else
11305 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11306 fi
11307 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11308 ;;
11309 hppa*64*)
11310 shrext_cmds='.sl'
11311 hardcode_into_libs=yes
11312 dynamic_linker="$host_os dld.sl"
11313 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11314 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11316 soname_spec='${libname}${release}${shared_ext}$major'
11317 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11318 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11319 ;;
11320 *)
11321 shrext_cmds='.sl'
11322 dynamic_linker="$host_os dld.sl"
11323 shlibpath_var=SHLIB_PATH
11324 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11326 soname_spec='${libname}${release}${shared_ext}$major'
11327 ;;
11328 esac
11329 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11330 postinstall_cmds='chmod 555 $lib'
11331 # or fails outright, so override atomically:
11332 install_override_mode=555
11333 ;;
11334
11335 interix[3-9]*)
11336 version_type=linux
11337 need_lib_prefix=no
11338 need_version=no
11339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11340 soname_spec='${libname}${release}${shared_ext}$major'
11341 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11342 shlibpath_var=LD_LIBRARY_PATH
11343 shlibpath_overrides_runpath=no
11344 hardcode_into_libs=yes
11345 ;;
11346
11347 irix5* | irix6* | nonstopux*)
11348 case $host_os in
11349 nonstopux*) version_type=nonstopux ;;
11350 *)
11351 if test "$lt_cv_prog_gnu_ld" = yes; then
11352 version_type=linux
11353 else
11354 version_type=irix
11355 fi ;;
11356 esac
11357 need_lib_prefix=no
11358 need_version=no
11359 soname_spec='${libname}${release}${shared_ext}$major'
11360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11361 case $host_os in
11362 irix5* | nonstopux*)
11363 libsuff= shlibsuff=
11364 ;;
11365 *)
11366 case $LD in # libtool.m4 will add one of these switches to LD
11367 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11368 libsuff= shlibsuff= libmagic=32-bit;;
11369 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11370 libsuff=32 shlibsuff=N32 libmagic=N32;;
11371 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11372 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11373 *) libsuff= shlibsuff= libmagic=never-match;;
11374 esac
11375 ;;
11376 esac
11377 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11378 shlibpath_overrides_runpath=no
11379 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11380 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11381 hardcode_into_libs=yes
11382 ;;
11383
11384 # No shared lib support for Linux oldld, aout, or coff.
11385 linux*oldld* | linux*aout* | linux*coff*)
11386 dynamic_linker=no
11387 ;;
11388
11389 # This must be Linux ELF.
11390
11391 # uclinux* changes (here and below) have been submitted to the libtool
11392 # project, but have not yet been accepted: they are GCC-local changes
11393 # for the time being. (See
11394 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11395 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
11396 version_type=linux
11397 need_lib_prefix=no
11398 need_version=no
11399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11400 soname_spec='${libname}${release}${shared_ext}$major'
11401 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11402 shlibpath_var=LD_LIBRARY_PATH
11403 shlibpath_overrides_runpath=no
11404
11405 # Some binutils ld are patched to set DT_RUNPATH
11406 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11407 $as_echo_n "(cached) " >&6
11408 else
11409 lt_cv_shlibpath_overrides_runpath=no
11410 save_LDFLAGS=$LDFLAGS
11411 save_libdir=$libdir
11412 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11413 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11415 /* end confdefs.h. */
11416
11417 int
11418 main ()
11419 {
11420
11421 ;
11422 return 0;
11423 }
11424 _ACEOF
11425 if ac_fn_c_try_link "$LINENO"; then :
11426 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11427 lt_cv_shlibpath_overrides_runpath=yes
11428 fi
11429 fi
11430 rm -f core conftest.err conftest.$ac_objext \
11431 conftest$ac_exeext conftest.$ac_ext
11432 LDFLAGS=$save_LDFLAGS
11433 libdir=$save_libdir
11434
11435 fi
11436
11437 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11438
11439 # This implies no fast_install, which is unacceptable.
11440 # Some rework will be needed to allow for fast_install
11441 # before this can be enabled.
11442 hardcode_into_libs=yes
11443
11444 # Append ld.so.conf contents to the search path
11445 if test -f /etc/ld.so.conf; then
11446 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' ' '`
11447 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11448 fi
11449
11450 # We used to test for /lib/ld.so.1 and disable shared libraries on
11451 # powerpc, because MkLinux only supported shared libraries with the
11452 # GNU dynamic linker. Since this was broken with cross compilers,
11453 # most powerpc-linux boxes support dynamic linking these days and
11454 # people can always --disable-shared, the test was removed, and we
11455 # assume the GNU/Linux dynamic linker is in use.
11456 dynamic_linker='GNU/Linux ld.so'
11457 ;;
11458
11459 netbsd*)
11460 version_type=sunos
11461 need_lib_prefix=no
11462 need_version=no
11463 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11465 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11466 dynamic_linker='NetBSD (a.out) ld.so'
11467 else
11468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11469 soname_spec='${libname}${release}${shared_ext}$major'
11470 dynamic_linker='NetBSD ld.elf_so'
11471 fi
11472 shlibpath_var=LD_LIBRARY_PATH
11473 shlibpath_overrides_runpath=yes
11474 hardcode_into_libs=yes
11475 ;;
11476
11477 newsos6)
11478 version_type=linux
11479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11480 shlibpath_var=LD_LIBRARY_PATH
11481 shlibpath_overrides_runpath=yes
11482 ;;
11483
11484 *nto* | *qnx*)
11485 version_type=qnx
11486 need_lib_prefix=no
11487 need_version=no
11488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11489 soname_spec='${libname}${release}${shared_ext}$major'
11490 shlibpath_var=LD_LIBRARY_PATH
11491 shlibpath_overrides_runpath=no
11492 hardcode_into_libs=yes
11493 dynamic_linker='ldqnx.so'
11494 ;;
11495
11496 openbsd*)
11497 version_type=sunos
11498 sys_lib_dlsearch_path_spec="/usr/lib"
11499 need_lib_prefix=no
11500 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11501 case $host_os in
11502 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11503 *) need_version=no ;;
11504 esac
11505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11506 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11507 shlibpath_var=LD_LIBRARY_PATH
11508 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11509 case $host_os in
11510 openbsd2.[89] | openbsd2.[89].*)
11511 shlibpath_overrides_runpath=no
11512 ;;
11513 *)
11514 shlibpath_overrides_runpath=yes
11515 ;;
11516 esac
11517 else
11518 shlibpath_overrides_runpath=yes
11519 fi
11520 ;;
11521
11522 os2*)
11523 libname_spec='$name'
11524 shrext_cmds=".dll"
11525 need_lib_prefix=no
11526 library_names_spec='$libname${shared_ext} $libname.a'
11527 dynamic_linker='OS/2 ld.exe'
11528 shlibpath_var=LIBPATH
11529 ;;
11530
11531 osf3* | osf4* | osf5*)
11532 version_type=osf
11533 need_lib_prefix=no
11534 need_version=no
11535 soname_spec='${libname}${release}${shared_ext}$major'
11536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11537 shlibpath_var=LD_LIBRARY_PATH
11538 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11539 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11540 ;;
11541
11542 rdos*)
11543 dynamic_linker=no
11544 ;;
11545
11546 solaris*)
11547 version_type=linux
11548 need_lib_prefix=no
11549 need_version=no
11550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11551 soname_spec='${libname}${release}${shared_ext}$major'
11552 shlibpath_var=LD_LIBRARY_PATH
11553 shlibpath_overrides_runpath=yes
11554 hardcode_into_libs=yes
11555 # ldd complains unless libraries are executable
11556 postinstall_cmds='chmod +x $lib'
11557 ;;
11558
11559 sunos4*)
11560 version_type=sunos
11561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11562 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11563 shlibpath_var=LD_LIBRARY_PATH
11564 shlibpath_overrides_runpath=yes
11565 if test "$with_gnu_ld" = yes; then
11566 need_lib_prefix=no
11567 fi
11568 need_version=yes
11569 ;;
11570
11571 sysv4 | sysv4.3*)
11572 version_type=linux
11573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11574 soname_spec='${libname}${release}${shared_ext}$major'
11575 shlibpath_var=LD_LIBRARY_PATH
11576 case $host_vendor in
11577 sni)
11578 shlibpath_overrides_runpath=no
11579 need_lib_prefix=no
11580 runpath_var=LD_RUN_PATH
11581 ;;
11582 siemens)
11583 need_lib_prefix=no
11584 ;;
11585 motorola)
11586 need_lib_prefix=no
11587 need_version=no
11588 shlibpath_overrides_runpath=no
11589 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11590 ;;
11591 esac
11592 ;;
11593
11594 sysv4*MP*)
11595 if test -d /usr/nec ;then
11596 version_type=linux
11597 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11598 soname_spec='$libname${shared_ext}.$major'
11599 shlibpath_var=LD_LIBRARY_PATH
11600 fi
11601 ;;
11602
11603 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11604 version_type=freebsd-elf
11605 need_lib_prefix=no
11606 need_version=no
11607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11608 soname_spec='${libname}${release}${shared_ext}$major'
11609 shlibpath_var=LD_LIBRARY_PATH
11610 shlibpath_overrides_runpath=yes
11611 hardcode_into_libs=yes
11612 if test "$with_gnu_ld" = yes; then
11613 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11614 else
11615 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11616 case $host_os in
11617 sco3.2v5*)
11618 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11619 ;;
11620 esac
11621 fi
11622 sys_lib_dlsearch_path_spec='/usr/lib'
11623 ;;
11624
11625 tpf*)
11626 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11627 version_type=linux
11628 need_lib_prefix=no
11629 need_version=no
11630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11631 shlibpath_var=LD_LIBRARY_PATH
11632 shlibpath_overrides_runpath=no
11633 hardcode_into_libs=yes
11634 ;;
11635
11636 uts4*)
11637 version_type=linux
11638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11639 soname_spec='${libname}${release}${shared_ext}$major'
11640 shlibpath_var=LD_LIBRARY_PATH
11641 ;;
11642
11643 *)
11644 dynamic_linker=no
11645 ;;
11646 esac
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11648 $as_echo "$dynamic_linker" >&6; }
11649 test "$dynamic_linker" = no && can_build_shared=no
11650
11651 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11652 if test "$GCC" = yes; then
11653 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11654 fi
11655
11656 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11657 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11658 fi
11659 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11660 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11661 fi
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11755 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11756 hardcode_action=
11757 if test -n "$hardcode_libdir_flag_spec" ||
11758 test -n "$runpath_var" ||
11759 test "X$hardcode_automatic" = "Xyes" ; then
11760
11761 # We can hardcode non-existent directories.
11762 if test "$hardcode_direct" != no &&
11763 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11764 # have to relink, otherwise we might link with an installed library
11765 # when we should be linking with a yet-to-be-installed one
11766 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11767 test "$hardcode_minus_L" != no; then
11768 # Linking always hardcodes the temporary library directory.
11769 hardcode_action=relink
11770 else
11771 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11772 hardcode_action=immediate
11773 fi
11774 else
11775 # We cannot hardcode anything, or else we can only hardcode existing
11776 # directories.
11777 hardcode_action=unsupported
11778 fi
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11780 $as_echo "$hardcode_action" >&6; }
11781
11782 if test "$hardcode_action" = relink ||
11783 test "$inherit_rpath" = yes; then
11784 # Fast installation is not supported
11785 enable_fast_install=no
11786 elif test "$shlibpath_overrides_runpath" = yes ||
11787 test "$enable_shared" = no; then
11788 # Fast installation is not necessary
11789 enable_fast_install=needless
11790 fi
11791
11792
11793
11794
11795
11796
11797 if test "x$enable_dlopen" != xyes; then
11798 enable_dlopen=unknown
11799 enable_dlopen_self=unknown
11800 enable_dlopen_self_static=unknown
11801 else
11802 lt_cv_dlopen=no
11803 lt_cv_dlopen_libs=
11804
11805 case $host_os in
11806 beos*)
11807 lt_cv_dlopen="load_add_on"
11808 lt_cv_dlopen_libs=
11809 lt_cv_dlopen_self=yes
11810 ;;
11811
11812 mingw* | pw32* | cegcc*)
11813 lt_cv_dlopen="LoadLibrary"
11814 lt_cv_dlopen_libs=
11815 ;;
11816
11817 cygwin*)
11818 lt_cv_dlopen="dlopen"
11819 lt_cv_dlopen_libs=
11820 ;;
11821
11822 darwin*)
11823 # if libdl is installed we need to link against it
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11825 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11826 if ${ac_cv_lib_dl_dlopen+:} false; then :
11827 $as_echo_n "(cached) " >&6
11828 else
11829 ac_check_lib_save_LIBS=$LIBS
11830 LIBS="-ldl $LIBS"
11831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11832 /* end confdefs.h. */
11833
11834 /* Override any GCC internal prototype to avoid an error.
11835 Use char because int might match the return type of a GCC
11836 builtin and then its argument prototype would still apply. */
11837 #ifdef __cplusplus
11838 extern "C"
11839 #endif
11840 char dlopen ();
11841 int
11842 main ()
11843 {
11844 return dlopen ();
11845 ;
11846 return 0;
11847 }
11848 _ACEOF
11849 if ac_fn_c_try_link "$LINENO"; then :
11850 ac_cv_lib_dl_dlopen=yes
11851 else
11852 ac_cv_lib_dl_dlopen=no
11853 fi
11854 rm -f core conftest.err conftest.$ac_objext \
11855 conftest$ac_exeext conftest.$ac_ext
11856 LIBS=$ac_check_lib_save_LIBS
11857 fi
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11859 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11860 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11861 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11862 else
11863
11864 lt_cv_dlopen="dyld"
11865 lt_cv_dlopen_libs=
11866 lt_cv_dlopen_self=yes
11867
11868 fi
11869
11870 ;;
11871
11872 *)
11873 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11874 if test "x$ac_cv_func_shl_load" = xyes; then :
11875 lt_cv_dlopen="shl_load"
11876 else
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11878 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11879 if ${ac_cv_lib_dld_shl_load+:} false; then :
11880 $as_echo_n "(cached) " >&6
11881 else
11882 ac_check_lib_save_LIBS=$LIBS
11883 LIBS="-ldld $LIBS"
11884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11885 /* end confdefs.h. */
11886
11887 /* Override any GCC internal prototype to avoid an error.
11888 Use char because int might match the return type of a GCC
11889 builtin and then its argument prototype would still apply. */
11890 #ifdef __cplusplus
11891 extern "C"
11892 #endif
11893 char shl_load ();
11894 int
11895 main ()
11896 {
11897 return shl_load ();
11898 ;
11899 return 0;
11900 }
11901 _ACEOF
11902 if ac_fn_c_try_link "$LINENO"; then :
11903 ac_cv_lib_dld_shl_load=yes
11904 else
11905 ac_cv_lib_dld_shl_load=no
11906 fi
11907 rm -f core conftest.err conftest.$ac_objext \
11908 conftest$ac_exeext conftest.$ac_ext
11909 LIBS=$ac_check_lib_save_LIBS
11910 fi
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11912 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11913 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11914 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11915 else
11916 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11917 if test "x$ac_cv_func_dlopen" = xyes; then :
11918 lt_cv_dlopen="dlopen"
11919 else
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11921 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11922 if ${ac_cv_lib_dl_dlopen+:} false; then :
11923 $as_echo_n "(cached) " >&6
11924 else
11925 ac_check_lib_save_LIBS=$LIBS
11926 LIBS="-ldl $LIBS"
11927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11928 /* end confdefs.h. */
11929
11930 /* Override any GCC internal prototype to avoid an error.
11931 Use char because int might match the return type of a GCC
11932 builtin and then its argument prototype would still apply. */
11933 #ifdef __cplusplus
11934 extern "C"
11935 #endif
11936 char dlopen ();
11937 int
11938 main ()
11939 {
11940 return dlopen ();
11941 ;
11942 return 0;
11943 }
11944 _ACEOF
11945 if ac_fn_c_try_link "$LINENO"; then :
11946 ac_cv_lib_dl_dlopen=yes
11947 else
11948 ac_cv_lib_dl_dlopen=no
11949 fi
11950 rm -f core conftest.err conftest.$ac_objext \
11951 conftest$ac_exeext conftest.$ac_ext
11952 LIBS=$ac_check_lib_save_LIBS
11953 fi
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11955 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11956 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11957 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11958 else
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11960 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11961 if ${ac_cv_lib_svld_dlopen+:} false; then :
11962 $as_echo_n "(cached) " >&6
11963 else
11964 ac_check_lib_save_LIBS=$LIBS
11965 LIBS="-lsvld $LIBS"
11966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11967 /* end confdefs.h. */
11968
11969 /* Override any GCC internal prototype to avoid an error.
11970 Use char because int might match the return type of a GCC
11971 builtin and then its argument prototype would still apply. */
11972 #ifdef __cplusplus
11973 extern "C"
11974 #endif
11975 char dlopen ();
11976 int
11977 main ()
11978 {
11979 return dlopen ();
11980 ;
11981 return 0;
11982 }
11983 _ACEOF
11984 if ac_fn_c_try_link "$LINENO"; then :
11985 ac_cv_lib_svld_dlopen=yes
11986 else
11987 ac_cv_lib_svld_dlopen=no
11988 fi
11989 rm -f core conftest.err conftest.$ac_objext \
11990 conftest$ac_exeext conftest.$ac_ext
11991 LIBS=$ac_check_lib_save_LIBS
11992 fi
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11994 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11995 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11996 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11997 else
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11999 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12000 if ${ac_cv_lib_dld_dld_link+:} false; then :
12001 $as_echo_n "(cached) " >&6
12002 else
12003 ac_check_lib_save_LIBS=$LIBS
12004 LIBS="-ldld $LIBS"
12005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12006 /* end confdefs.h. */
12007
12008 /* Override any GCC internal prototype to avoid an error.
12009 Use char because int might match the return type of a GCC
12010 builtin and then its argument prototype would still apply. */
12011 #ifdef __cplusplus
12012 extern "C"
12013 #endif
12014 char dld_link ();
12015 int
12016 main ()
12017 {
12018 return dld_link ();
12019 ;
12020 return 0;
12021 }
12022 _ACEOF
12023 if ac_fn_c_try_link "$LINENO"; then :
12024 ac_cv_lib_dld_dld_link=yes
12025 else
12026 ac_cv_lib_dld_dld_link=no
12027 fi
12028 rm -f core conftest.err conftest.$ac_objext \
12029 conftest$ac_exeext conftest.$ac_ext
12030 LIBS=$ac_check_lib_save_LIBS
12031 fi
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12033 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12034 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12035 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12036 fi
12037
12038
12039 fi
12040
12041
12042 fi
12043
12044
12045 fi
12046
12047
12048 fi
12049
12050
12051 fi
12052
12053 ;;
12054 esac
12055
12056 if test "x$lt_cv_dlopen" != xno; then
12057 enable_dlopen=yes
12058 else
12059 enable_dlopen=no
12060 fi
12061
12062 case $lt_cv_dlopen in
12063 dlopen)
12064 save_CPPFLAGS="$CPPFLAGS"
12065 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12066
12067 save_LDFLAGS="$LDFLAGS"
12068 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12069
12070 save_LIBS="$LIBS"
12071 LIBS="$lt_cv_dlopen_libs $LIBS"
12072
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12074 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12075 if ${lt_cv_dlopen_self+:} false; then :
12076 $as_echo_n "(cached) " >&6
12077 else
12078 if test "$cross_compiling" = yes; then :
12079 lt_cv_dlopen_self=cross
12080 else
12081 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12082 lt_status=$lt_dlunknown
12083 cat > conftest.$ac_ext <<_LT_EOF
12084 #line 12084 "configure"
12085 #include "confdefs.h"
12086
12087 #if HAVE_DLFCN_H
12088 #include <dlfcn.h>
12089 #endif
12090
12091 #include <stdio.h>
12092
12093 #ifdef RTLD_GLOBAL
12094 # define LT_DLGLOBAL RTLD_GLOBAL
12095 #else
12096 # ifdef DL_GLOBAL
12097 # define LT_DLGLOBAL DL_GLOBAL
12098 # else
12099 # define LT_DLGLOBAL 0
12100 # endif
12101 #endif
12102
12103 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12104 find out it does not work in some platform. */
12105 #ifndef LT_DLLAZY_OR_NOW
12106 # ifdef RTLD_LAZY
12107 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12108 # else
12109 # ifdef DL_LAZY
12110 # define LT_DLLAZY_OR_NOW DL_LAZY
12111 # else
12112 # ifdef RTLD_NOW
12113 # define LT_DLLAZY_OR_NOW RTLD_NOW
12114 # else
12115 # ifdef DL_NOW
12116 # define LT_DLLAZY_OR_NOW DL_NOW
12117 # else
12118 # define LT_DLLAZY_OR_NOW 0
12119 # endif
12120 # endif
12121 # endif
12122 # endif
12123 #endif
12124
12125 /* When -fvisbility=hidden is used, assume the code has been annotated
12126 correspondingly for the symbols needed. */
12127 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12128 void fnord () __attribute__((visibility("default")));
12129 #endif
12130
12131 void fnord () { int i=42; }
12132 int main ()
12133 {
12134 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12135 int status = $lt_dlunknown;
12136
12137 if (self)
12138 {
12139 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12140 else
12141 {
12142 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12143 else puts (dlerror ());
12144 }
12145 /* dlclose (self); */
12146 }
12147 else
12148 puts (dlerror ());
12149
12150 return status;
12151 }
12152 _LT_EOF
12153 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12154 (eval $ac_link) 2>&5
12155 ac_status=$?
12156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12157 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12158 (./conftest; exit; ) >&5 2>/dev/null
12159 lt_status=$?
12160 case x$lt_status in
12161 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12162 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12163 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12164 esac
12165 else :
12166 # compilation failed
12167 lt_cv_dlopen_self=no
12168 fi
12169 fi
12170 rm -fr conftest*
12171
12172
12173 fi
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12175 $as_echo "$lt_cv_dlopen_self" >&6; }
12176
12177 if test "x$lt_cv_dlopen_self" = xyes; then
12178 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12180 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12181 if ${lt_cv_dlopen_self_static+:} false; then :
12182 $as_echo_n "(cached) " >&6
12183 else
12184 if test "$cross_compiling" = yes; then :
12185 lt_cv_dlopen_self_static=cross
12186 else
12187 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12188 lt_status=$lt_dlunknown
12189 cat > conftest.$ac_ext <<_LT_EOF
12190 #line 12190 "configure"
12191 #include "confdefs.h"
12192
12193 #if HAVE_DLFCN_H
12194 #include <dlfcn.h>
12195 #endif
12196
12197 #include <stdio.h>
12198
12199 #ifdef RTLD_GLOBAL
12200 # define LT_DLGLOBAL RTLD_GLOBAL
12201 #else
12202 # ifdef DL_GLOBAL
12203 # define LT_DLGLOBAL DL_GLOBAL
12204 # else
12205 # define LT_DLGLOBAL 0
12206 # endif
12207 #endif
12208
12209 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12210 find out it does not work in some platform. */
12211 #ifndef LT_DLLAZY_OR_NOW
12212 # ifdef RTLD_LAZY
12213 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12214 # else
12215 # ifdef DL_LAZY
12216 # define LT_DLLAZY_OR_NOW DL_LAZY
12217 # else
12218 # ifdef RTLD_NOW
12219 # define LT_DLLAZY_OR_NOW RTLD_NOW
12220 # else
12221 # ifdef DL_NOW
12222 # define LT_DLLAZY_OR_NOW DL_NOW
12223 # else
12224 # define LT_DLLAZY_OR_NOW 0
12225 # endif
12226 # endif
12227 # endif
12228 # endif
12229 #endif
12230
12231 /* When -fvisbility=hidden is used, assume the code has been annotated
12232 correspondingly for the symbols needed. */
12233 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12234 void fnord () __attribute__((visibility("default")));
12235 #endif
12236
12237 void fnord () { int i=42; }
12238 int main ()
12239 {
12240 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12241 int status = $lt_dlunknown;
12242
12243 if (self)
12244 {
12245 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12246 else
12247 {
12248 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12249 else puts (dlerror ());
12250 }
12251 /* dlclose (self); */
12252 }
12253 else
12254 puts (dlerror ());
12255
12256 return status;
12257 }
12258 _LT_EOF
12259 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12260 (eval $ac_link) 2>&5
12261 ac_status=$?
12262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12263 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12264 (./conftest; exit; ) >&5 2>/dev/null
12265 lt_status=$?
12266 case x$lt_status in
12267 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12268 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12269 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12270 esac
12271 else :
12272 # compilation failed
12273 lt_cv_dlopen_self_static=no
12274 fi
12275 fi
12276 rm -fr conftest*
12277
12278
12279 fi
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12281 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12282 fi
12283
12284 CPPFLAGS="$save_CPPFLAGS"
12285 LDFLAGS="$save_LDFLAGS"
12286 LIBS="$save_LIBS"
12287 ;;
12288 esac
12289
12290 case $lt_cv_dlopen_self in
12291 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12292 *) enable_dlopen_self=unknown ;;
12293 esac
12294
12295 case $lt_cv_dlopen_self_static in
12296 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12297 *) enable_dlopen_self_static=unknown ;;
12298 esac
12299 fi
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317 striplib=
12318 old_striplib=
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12320 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12321 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12322 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12323 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12325 $as_echo "yes" >&6; }
12326 else
12327 # FIXME - insert some real tests, host_os isn't really good enough
12328 case $host_os in
12329 darwin*)
12330 if test -n "$STRIP" ; then
12331 striplib="$STRIP -x"
12332 old_striplib="$STRIP -S"
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12334 $as_echo "yes" >&6; }
12335 else
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12337 $as_echo "no" >&6; }
12338 fi
12339 ;;
12340 *)
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12342 $as_echo "no" >&6; }
12343 ;;
12344 esac
12345 fi
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358 # Report which library types will actually be built
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12360 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12362 $as_echo "$can_build_shared" >&6; }
12363
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12365 $as_echo_n "checking whether to build shared libraries... " >&6; }
12366 test "$can_build_shared" = "no" && enable_shared=no
12367
12368 # On AIX, shared libraries and static libraries use the same namespace, and
12369 # are all built from PIC.
12370 case $host_os in
12371 aix3*)
12372 test "$enable_shared" = yes && enable_static=no
12373 if test -n "$RANLIB"; then
12374 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12375 postinstall_cmds='$RANLIB $lib'
12376 fi
12377 ;;
12378
12379 aix[4-9]*)
12380 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12381 test "$enable_shared" = yes && enable_static=no
12382 fi
12383 ;;
12384 esac
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12386 $as_echo "$enable_shared" >&6; }
12387
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12389 $as_echo_n "checking whether to build static libraries... " >&6; }
12390 # Make sure either enable_shared or enable_static is yes.
12391 test "$enable_shared" = yes || enable_static=yes
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12393 $as_echo "$enable_static" >&6; }
12394
12395
12396
12397
12398 fi
12399 ac_ext=c
12400 ac_cpp='$CPP $CPPFLAGS'
12401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12404
12405 CC="$lt_save_CC"
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419 ac_config_commands="$ac_config_commands libtool"
12420
12421
12422
12423
12424 # Only expand once:
12425
12426
12427
12428
12429
12430 case $host in
12431 *-cygwin* | *-mingw*)
12432 # 'host' will be top-level target in the case of a target lib,
12433 # we must compare to with_cross_host to decide if this is a native
12434 # or cross-compiler and select where to install dlls appropriately.
12435 if test -n "$with_cross_host" &&
12436 test x"$with_cross_host" != x"no"; then
12437 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
12438 else
12439 lt_host_flags='-no-undefined -bindir "$(bindir)"';
12440 fi
12441 ;;
12442 *)
12443 lt_host_flags=
12444 ;;
12445 esac
12446
12447
12448
12449
12450 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
12451 case $ac_cv_c_int64_t in #(
12452 no|yes) ;; #(
12453 *)
12454
12455 cat >>confdefs.h <<_ACEOF
12456 #define int64_t $ac_cv_c_int64_t
12457 _ACEOF
12458 ;;
12459 esac
12460
12461 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
12462 case $ac_cv_c_uint64_t in #(
12463 no|yes) ;; #(
12464 *)
12465
12466 $as_echo "#define _UINT64_T 1" >>confdefs.h
12467
12468
12469 cat >>confdefs.h <<_ACEOF
12470 #define uint64_t $ac_cv_c_uint64_t
12471 _ACEOF
12472 ;;
12473 esac
12474
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
12476 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
12477 if ${ac_cv_header_sys_wait_h+:} false; then :
12478 $as_echo_n "(cached) " >&6
12479 else
12480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12481 /* end confdefs.h. */
12482 #include <sys/types.h>
12483 #include <sys/wait.h>
12484 #ifndef WEXITSTATUS
12485 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
12486 #endif
12487 #ifndef WIFEXITED
12488 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12489 #endif
12490
12491 int
12492 main ()
12493 {
12494 int s;
12495 wait (&s);
12496 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12497 ;
12498 return 0;
12499 }
12500 _ACEOF
12501 if ac_fn_c_try_compile "$LINENO"; then :
12502 ac_cv_header_sys_wait_h=yes
12503 else
12504 ac_cv_header_sys_wait_h=no
12505 fi
12506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12507 fi
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
12509 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
12510 if test $ac_cv_header_sys_wait_h = yes; then
12511
12512 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12513
12514 fi
12515
12516 ac_config_files="$ac_config_files Makefile"
12517
12518 ac_config_headers="$ac_config_headers config.h"
12519
12520 cat >confcache <<\_ACEOF
12521 # This file is a shell script that caches the results of configure
12522 # tests run on this system so they can be shared between configure
12523 # scripts and configure runs, see configure's option --config-cache.
12524 # It is not useful on other systems. If it contains results you don't
12525 # want to keep, you may remove or edit it.
12526 #
12527 # config.status only pays attention to the cache file if you give it
12528 # the --recheck option to rerun configure.
12529 #
12530 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12531 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12532 # following values.
12533
12534 _ACEOF
12535
12536 # The following way of writing the cache mishandles newlines in values,
12537 # but we know of no workaround that is simple, portable, and efficient.
12538 # So, we kill variables containing newlines.
12539 # Ultrix sh set writes to stderr and can't be redirected directly,
12540 # and sets the high bit in the cache file unless we assign to the vars.
12541 (
12542 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12543 eval ac_val=\$$ac_var
12544 case $ac_val in #(
12545 *${as_nl}*)
12546 case $ac_var in #(
12547 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12548 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12549 esac
12550 case $ac_var in #(
12551 _ | IFS | as_nl) ;; #(
12552 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12553 *) { eval $ac_var=; unset $ac_var;} ;;
12554 esac ;;
12555 esac
12556 done
12557
12558 (set) 2>&1 |
12559 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12560 *${as_nl}ac_space=\ *)
12561 # `set' does not quote correctly, so add quotes: double-quote
12562 # substitution turns \\\\ into \\, and sed turns \\ into \.
12563 sed -n \
12564 "s/'/'\\\\''/g;
12565 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12566 ;; #(
12567 *)
12568 # `set' quotes correctly as required by POSIX, so do not add quotes.
12569 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12570 ;;
12571 esac |
12572 sort
12573 ) |
12574 sed '
12575 /^ac_cv_env_/b end
12576 t clear
12577 :clear
12578 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12579 t end
12580 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12581 :end' >>confcache
12582 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12583 if test -w "$cache_file"; then
12584 if test "x$cache_file" != "x/dev/null"; then
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12586 $as_echo "$as_me: updating cache $cache_file" >&6;}
12587 if test ! -f "$cache_file" || test -h "$cache_file"; then
12588 cat confcache >"$cache_file"
12589 else
12590 case $cache_file in #(
12591 */* | ?:*)
12592 mv -f confcache "$cache_file"$$ &&
12593 mv -f "$cache_file"$$ "$cache_file" ;; #(
12594 *)
12595 mv -f confcache "$cache_file" ;;
12596 esac
12597 fi
12598 fi
12599 else
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12601 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12602 fi
12603 fi
12604 rm -f confcache
12605
12606 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12607 # Let make expand exec_prefix.
12608 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12609
12610 DEFS=-DHAVE_CONFIG_H
12611
12612 ac_libobjs=
12613 ac_ltlibobjs=
12614 U=
12615 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12616 # 1. Remove the extension, and $U if already installed.
12617 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12618 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12619 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12620 # will be set to the directory where LIBOBJS objects are built.
12621 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12622 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12623 done
12624 LIBOBJS=$ac_libobjs
12625
12626 LTLIBOBJS=$ac_ltlibobjs
12627
12628
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12630 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12631 if test -n "$am_sleep_pid"; then
12632 # Hide warnings about reused PIDs.
12633 wait $am_sleep_pid 2>/dev/null
12634 fi
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12636 $as_echo "done" >&6; }
12637 if test -n "$EXEEXT"; then
12638 am__EXEEXT_TRUE=
12639 am__EXEEXT_FALSE='#'
12640 else
12641 am__EXEEXT_TRUE='#'
12642 am__EXEEXT_FALSE=
12643 fi
12644
12645 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12646 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12647 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12648 fi
12649 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12650 as_fn_error $? "conditional \"AMDEP\" was never defined.
12651 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12652 fi
12653 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12654 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12655 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12656 fi
12657 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12658 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12659 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12660 fi
12661 if test -z "${LTO_PLUGIN_USE_SYMVER_TRUE}" && test -z "${LTO_PLUGIN_USE_SYMVER_FALSE}"; then
12662 as_fn_error $? "conditional \"LTO_PLUGIN_USE_SYMVER\" was never defined.
12663 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12664 fi
12665 if test -z "${LTO_PLUGIN_USE_SYMVER_GNU_TRUE}" && test -z "${LTO_PLUGIN_USE_SYMVER_GNU_FALSE}"; then
12666 as_fn_error $? "conditional \"LTO_PLUGIN_USE_SYMVER_GNU\" was never defined.
12667 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12668 fi
12669 if test -z "${LTO_PLUGIN_USE_SYMVER_SUN_TRUE}" && test -z "${LTO_PLUGIN_USE_SYMVER_SUN_FALSE}"; then
12670 as_fn_error $? "conditional \"LTO_PLUGIN_USE_SYMVER_SUN\" was never defined.
12671 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12672 fi
12673
12674 : "${CONFIG_STATUS=./config.status}"
12675 ac_write_fail=0
12676 ac_clean_files_save=$ac_clean_files
12677 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12679 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12680 as_write_fail=0
12681 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12682 #! $SHELL
12683 # Generated by $as_me.
12684 # Run this file to recreate the current configuration.
12685 # Compiler output produced by configure, useful for debugging
12686 # configure, is in config.log if it exists.
12687
12688 debug=false
12689 ac_cs_recheck=false
12690 ac_cs_silent=false
12691
12692 SHELL=\${CONFIG_SHELL-$SHELL}
12693 export SHELL
12694 _ASEOF
12695 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12696 ## -------------------- ##
12697 ## M4sh Initialization. ##
12698 ## -------------------- ##
12699
12700 # Be more Bourne compatible
12701 DUALCASE=1; export DUALCASE # for MKS sh
12702 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12703 emulate sh
12704 NULLCMD=:
12705 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12706 # is contrary to our usage. Disable this feature.
12707 alias -g '${1+"$@"}'='"$@"'
12708 setopt NO_GLOB_SUBST
12709 else
12710 case `(set -o) 2>/dev/null` in #(
12711 *posix*) :
12712 set -o posix ;; #(
12713 *) :
12714 ;;
12715 esac
12716 fi
12717
12718
12719 as_nl='
12720 '
12721 export as_nl
12722 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12723 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12724 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12725 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12726 # Prefer a ksh shell builtin over an external printf program on Solaris,
12727 # but without wasting forks for bash or zsh.
12728 if test -z "$BASH_VERSION$ZSH_VERSION" \
12729 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12730 as_echo='print -r --'
12731 as_echo_n='print -rn --'
12732 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12733 as_echo='printf %s\n'
12734 as_echo_n='printf %s'
12735 else
12736 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12737 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12738 as_echo_n='/usr/ucb/echo -n'
12739 else
12740 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12741 as_echo_n_body='eval
12742 arg=$1;
12743 case $arg in #(
12744 *"$as_nl"*)
12745 expr "X$arg" : "X\\(.*\\)$as_nl";
12746 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12747 esac;
12748 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12749 '
12750 export as_echo_n_body
12751 as_echo_n='sh -c $as_echo_n_body as_echo'
12752 fi
12753 export as_echo_body
12754 as_echo='sh -c $as_echo_body as_echo'
12755 fi
12756
12757 # The user is always right.
12758 if test "${PATH_SEPARATOR+set}" != set; then
12759 PATH_SEPARATOR=:
12760 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12761 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12762 PATH_SEPARATOR=';'
12763 }
12764 fi
12765
12766
12767 # IFS
12768 # We need space, tab and new line, in precisely that order. Quoting is
12769 # there to prevent editors from complaining about space-tab.
12770 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12771 # splitting by setting IFS to empty value.)
12772 IFS=" "" $as_nl"
12773
12774 # Find who we are. Look in the path if we contain no directory separator.
12775 as_myself=
12776 case $0 in #((
12777 *[\\/]* ) as_myself=$0 ;;
12778 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12779 for as_dir in $PATH
12780 do
12781 IFS=$as_save_IFS
12782 test -z "$as_dir" && as_dir=.
12783 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12784 done
12785 IFS=$as_save_IFS
12786
12787 ;;
12788 esac
12789 # We did not find ourselves, most probably we were run as `sh COMMAND'
12790 # in which case we are not to be found in the path.
12791 if test "x$as_myself" = x; then
12792 as_myself=$0
12793 fi
12794 if test ! -f "$as_myself"; then
12795 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12796 exit 1
12797 fi
12798
12799 # Unset variables that we do not need and which cause bugs (e.g. in
12800 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12801 # suppresses any "Segmentation fault" message there. '((' could
12802 # trigger a bug in pdksh 5.2.14.
12803 for as_var in BASH_ENV ENV MAIL MAILPATH
12804 do eval test x\${$as_var+set} = xset \
12805 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12806 done
12807 PS1='$ '
12808 PS2='> '
12809 PS4='+ '
12810
12811 # NLS nuisances.
12812 LC_ALL=C
12813 export LC_ALL
12814 LANGUAGE=C
12815 export LANGUAGE
12816
12817 # CDPATH.
12818 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12819
12820
12821 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12822 # ----------------------------------------
12823 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12824 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12825 # script with STATUS, using 1 if that was 0.
12826 as_fn_error ()
12827 {
12828 as_status=$1; test $as_status -eq 0 && as_status=1
12829 if test "$4"; then
12830 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12831 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12832 fi
12833 $as_echo "$as_me: error: $2" >&2
12834 as_fn_exit $as_status
12835 } # as_fn_error
12836
12837
12838 # as_fn_set_status STATUS
12839 # -----------------------
12840 # Set $? to STATUS, without forking.
12841 as_fn_set_status ()
12842 {
12843 return $1
12844 } # as_fn_set_status
12845
12846 # as_fn_exit STATUS
12847 # -----------------
12848 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12849 as_fn_exit ()
12850 {
12851 set +e
12852 as_fn_set_status $1
12853 exit $1
12854 } # as_fn_exit
12855
12856 # as_fn_unset VAR
12857 # ---------------
12858 # Portably unset VAR.
12859 as_fn_unset ()
12860 {
12861 { eval $1=; unset $1;}
12862 }
12863 as_unset=as_fn_unset
12864 # as_fn_append VAR VALUE
12865 # ----------------------
12866 # Append the text in VALUE to the end of the definition contained in VAR. Take
12867 # advantage of any shell optimizations that allow amortized linear growth over
12868 # repeated appends, instead of the typical quadratic growth present in naive
12869 # implementations.
12870 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12871 eval 'as_fn_append ()
12872 {
12873 eval $1+=\$2
12874 }'
12875 else
12876 as_fn_append ()
12877 {
12878 eval $1=\$$1\$2
12879 }
12880 fi # as_fn_append
12881
12882 # as_fn_arith ARG...
12883 # ------------------
12884 # Perform arithmetic evaluation on the ARGs, and store the result in the
12885 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12886 # must be portable across $(()) and expr.
12887 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12888 eval 'as_fn_arith ()
12889 {
12890 as_val=$(( $* ))
12891 }'
12892 else
12893 as_fn_arith ()
12894 {
12895 as_val=`expr "$@" || test $? -eq 1`
12896 }
12897 fi # as_fn_arith
12898
12899
12900 if expr a : '\(a\)' >/dev/null 2>&1 &&
12901 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12902 as_expr=expr
12903 else
12904 as_expr=false
12905 fi
12906
12907 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12908 as_basename=basename
12909 else
12910 as_basename=false
12911 fi
12912
12913 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12914 as_dirname=dirname
12915 else
12916 as_dirname=false
12917 fi
12918
12919 as_me=`$as_basename -- "$0" ||
12920 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12921 X"$0" : 'X\(//\)$' \| \
12922 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12923 $as_echo X/"$0" |
12924 sed '/^.*\/\([^/][^/]*\)\/*$/{
12925 s//\1/
12926 q
12927 }
12928 /^X\/\(\/\/\)$/{
12929 s//\1/
12930 q
12931 }
12932 /^X\/\(\/\).*/{
12933 s//\1/
12934 q
12935 }
12936 s/.*/./; q'`
12937
12938 # Avoid depending upon Character Ranges.
12939 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12940 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12941 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12942 as_cr_digits='0123456789'
12943 as_cr_alnum=$as_cr_Letters$as_cr_digits
12944
12945 ECHO_C= ECHO_N= ECHO_T=
12946 case `echo -n x` in #(((((
12947 -n*)
12948 case `echo 'xy\c'` in
12949 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12950 xy) ECHO_C='\c';;
12951 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12952 ECHO_T=' ';;
12953 esac;;
12954 *)
12955 ECHO_N='-n';;
12956 esac
12957
12958 rm -f conf$$ conf$$.exe conf$$.file
12959 if test -d conf$$.dir; then
12960 rm -f conf$$.dir/conf$$.file
12961 else
12962 rm -f conf$$.dir
12963 mkdir conf$$.dir 2>/dev/null
12964 fi
12965 if (echo >conf$$.file) 2>/dev/null; then
12966 if ln -s conf$$.file conf$$ 2>/dev/null; then
12967 as_ln_s='ln -s'
12968 # ... but there are two gotchas:
12969 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12970 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12971 # In both cases, we have to default to `cp -pR'.
12972 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12973 as_ln_s='cp -pR'
12974 elif ln conf$$.file conf$$ 2>/dev/null; then
12975 as_ln_s=ln
12976 else
12977 as_ln_s='cp -pR'
12978 fi
12979 else
12980 as_ln_s='cp -pR'
12981 fi
12982 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12983 rmdir conf$$.dir 2>/dev/null
12984
12985
12986 # as_fn_mkdir_p
12987 # -------------
12988 # Create "$as_dir" as a directory, including parents if necessary.
12989 as_fn_mkdir_p ()
12990 {
12991
12992 case $as_dir in #(
12993 -*) as_dir=./$as_dir;;
12994 esac
12995 test -d "$as_dir" || eval $as_mkdir_p || {
12996 as_dirs=
12997 while :; do
12998 case $as_dir in #(
12999 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13000 *) as_qdir=$as_dir;;
13001 esac
13002 as_dirs="'$as_qdir' $as_dirs"
13003 as_dir=`$as_dirname -- "$as_dir" ||
13004 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13005 X"$as_dir" : 'X\(//\)[^/]' \| \
13006 X"$as_dir" : 'X\(//\)$' \| \
13007 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13008 $as_echo X"$as_dir" |
13009 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13010 s//\1/
13011 q
13012 }
13013 /^X\(\/\/\)[^/].*/{
13014 s//\1/
13015 q
13016 }
13017 /^X\(\/\/\)$/{
13018 s//\1/
13019 q
13020 }
13021 /^X\(\/\).*/{
13022 s//\1/
13023 q
13024 }
13025 s/.*/./; q'`
13026 test -d "$as_dir" && break
13027 done
13028 test -z "$as_dirs" || eval "mkdir $as_dirs"
13029 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13030
13031
13032 } # as_fn_mkdir_p
13033 if mkdir -p . 2>/dev/null; then
13034 as_mkdir_p='mkdir -p "$as_dir"'
13035 else
13036 test -d ./-p && rmdir ./-p
13037 as_mkdir_p=false
13038 fi
13039
13040
13041 # as_fn_executable_p FILE
13042 # -----------------------
13043 # Test if FILE is an executable regular file.
13044 as_fn_executable_p ()
13045 {
13046 test -f "$1" && test -x "$1"
13047 } # as_fn_executable_p
13048 as_test_x='test -x'
13049 as_executable_p=as_fn_executable_p
13050
13051 # Sed expression to map a string onto a valid CPP name.
13052 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13053
13054 # Sed expression to map a string onto a valid variable name.
13055 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13056
13057
13058 exec 6>&1
13059 ## ----------------------------------- ##
13060 ## Main body of $CONFIG_STATUS script. ##
13061 ## ----------------------------------- ##
13062 _ASEOF
13063 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13064
13065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13066 # Save the log message, to keep $0 and so on meaningful, and to
13067 # report actual input values of CONFIG_FILES etc. instead of their
13068 # values after options handling.
13069 ac_log="
13070 This file was extended by LTO plugin for ld $as_me 0.1, which was
13071 generated by GNU Autoconf 2.69. Invocation command line was
13072
13073 CONFIG_FILES = $CONFIG_FILES
13074 CONFIG_HEADERS = $CONFIG_HEADERS
13075 CONFIG_LINKS = $CONFIG_LINKS
13076 CONFIG_COMMANDS = $CONFIG_COMMANDS
13077 $ $0 $@
13078
13079 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13080 "
13081
13082 _ACEOF
13083
13084 case $ac_config_files in *"
13085 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13086 esac
13087
13088 case $ac_config_headers in *"
13089 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13090 esac
13091
13092
13093 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13094 # Files that config.status was made for.
13095 config_files="$ac_config_files"
13096 config_headers="$ac_config_headers"
13097 config_commands="$ac_config_commands"
13098
13099 _ACEOF
13100
13101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13102 ac_cs_usage="\
13103 \`$as_me' instantiates files and other configuration actions
13104 from templates according to the current configuration. Unless the files
13105 and actions are specified as TAGs, all are instantiated by default.
13106
13107 Usage: $0 [OPTION]... [TAG]...
13108
13109 -h, --help print this help, then exit
13110 -V, --version print version number and configuration settings, then exit
13111 --config print configuration, then exit
13112 -q, --quiet, --silent
13113 do not print progress messages
13114 -d, --debug don't remove temporary files
13115 --recheck update $as_me by reconfiguring in the same conditions
13116 --file=FILE[:TEMPLATE]
13117 instantiate the configuration file FILE
13118 --header=FILE[:TEMPLATE]
13119 instantiate the configuration header FILE
13120
13121 Configuration files:
13122 $config_files
13123
13124 Configuration headers:
13125 $config_headers
13126
13127 Configuration commands:
13128 $config_commands
13129
13130 Report bugs to the package provider."
13131
13132 _ACEOF
13133 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13134 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13135 ac_cs_version="\\
13136 LTO plugin for ld config.status 0.1
13137 configured by $0, generated by GNU Autoconf 2.69,
13138 with options \\"\$ac_cs_config\\"
13139
13140 Copyright (C) 2012 Free Software Foundation, Inc.
13141 This config.status script is free software; the Free Software Foundation
13142 gives unlimited permission to copy, distribute and modify it."
13143
13144 ac_pwd='$ac_pwd'
13145 srcdir='$srcdir'
13146 INSTALL='$INSTALL'
13147 MKDIR_P='$MKDIR_P'
13148 AWK='$AWK'
13149 test -n "\$AWK" || AWK=awk
13150 _ACEOF
13151
13152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13153 # The default lists apply if the user does not specify any file.
13154 ac_need_defaults=:
13155 while test $# != 0
13156 do
13157 case $1 in
13158 --*=?*)
13159 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13160 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13161 ac_shift=:
13162 ;;
13163 --*=)
13164 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13165 ac_optarg=
13166 ac_shift=:
13167 ;;
13168 *)
13169 ac_option=$1
13170 ac_optarg=$2
13171 ac_shift=shift
13172 ;;
13173 esac
13174
13175 case $ac_option in
13176 # Handling of the options.
13177 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13178 ac_cs_recheck=: ;;
13179 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13180 $as_echo "$ac_cs_version"; exit ;;
13181 --config | --confi | --conf | --con | --co | --c )
13182 $as_echo "$ac_cs_config"; exit ;;
13183 --debug | --debu | --deb | --de | --d | -d )
13184 debug=: ;;
13185 --file | --fil | --fi | --f )
13186 $ac_shift
13187 case $ac_optarg in
13188 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13189 '') as_fn_error $? "missing file argument" ;;
13190 esac
13191 as_fn_append CONFIG_FILES " '$ac_optarg'"
13192 ac_need_defaults=false;;
13193 --header | --heade | --head | --hea )
13194 $ac_shift
13195 case $ac_optarg in
13196 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13197 esac
13198 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13199 ac_need_defaults=false;;
13200 --he | --h)
13201 # Conflict between --help and --header
13202 as_fn_error $? "ambiguous option: \`$1'
13203 Try \`$0 --help' for more information.";;
13204 --help | --hel | -h )
13205 $as_echo "$ac_cs_usage"; exit ;;
13206 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13207 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13208 ac_cs_silent=: ;;
13209
13210 # This is an error.
13211 -*) as_fn_error $? "unrecognized option: \`$1'
13212 Try \`$0 --help' for more information." ;;
13213
13214 *) as_fn_append ac_config_targets " $1"
13215 ac_need_defaults=false ;;
13216
13217 esac
13218 shift
13219 done
13220
13221 ac_configure_extra_args=
13222
13223 if $ac_cs_silent; then
13224 exec 6>/dev/null
13225 ac_configure_extra_args="$ac_configure_extra_args --silent"
13226 fi
13227
13228 _ACEOF
13229 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13230 if \$ac_cs_recheck; then
13231 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13232 shift
13233 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13234 CONFIG_SHELL='$SHELL'
13235 export CONFIG_SHELL
13236 exec "\$@"
13237 fi
13238
13239 _ACEOF
13240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13241 exec 5>>config.log
13242 {
13243 echo
13244 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13245 ## Running $as_me. ##
13246 _ASBOX
13247 $as_echo "$ac_log"
13248 } >&5
13249
13250 _ACEOF
13251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13252 #
13253 # INIT-COMMANDS
13254 #
13255 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13256
13257
13258 # The HP-UX ksh and POSIX shell print the target directory to stdout
13259 # if CDPATH is set.
13260 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13261
13262 sed_quote_subst='$sed_quote_subst'
13263 double_quote_subst='$double_quote_subst'
13264 delay_variable_subst='$delay_variable_subst'
13265 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13266 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13267 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13268 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13269 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13270 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13271 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13272 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13273 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13274 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13275 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13276 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13277 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13278 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13279 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13280 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13281 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13282 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13283 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13284 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13285 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13286 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13287 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13288 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13289 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13290 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13291 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13292 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13293 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13294 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13295 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13296 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13297 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13298 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13299 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13300 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13301 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13302 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13303 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13304 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13305 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13306 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13307 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13308 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13309 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13310 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13311 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13312 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13313 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"`'
13314 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13315 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13316 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13317 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13318 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13319 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13320 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13321 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13322 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13323 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13324 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13325 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13326 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13327 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13328 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13329 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13330 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13331 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13332 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13333 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13334 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13335 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13336 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13337 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13338 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13339 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13340 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13341 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13342 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13343 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13344 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13345 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13346 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13347 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13348 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13349 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13350 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13351 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13352 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13353 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13354 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13355 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13356 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13357 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13358 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13359 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13360 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13361 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13362 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13363 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13364 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13365 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13366 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13367 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13368 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13369 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13370 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13371 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13372 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13373 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13374 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13375 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13376 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13377 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13378 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13379 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13380 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13381 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13382 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13383 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13384 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13385
13386 LTCC='$LTCC'
13387 LTCFLAGS='$LTCFLAGS'
13388 compiler='$compiler_DEFAULT'
13389
13390 # A function that is used when there is no print builtin or printf.
13391 func_fallback_echo ()
13392 {
13393 eval 'cat <<_LTECHO_EOF
13394 \$1
13395 _LTECHO_EOF'
13396 }
13397
13398 # Quote evaled strings.
13399 for var in SHELL \
13400 ECHO \
13401 SED \
13402 GREP \
13403 EGREP \
13404 FGREP \
13405 LD \
13406 NM \
13407 LN_S \
13408 lt_SP2NL \
13409 lt_NL2SP \
13410 reload_flag \
13411 OBJDUMP \
13412 deplibs_check_method \
13413 file_magic_cmd \
13414 AR \
13415 AR_FLAGS \
13416 STRIP \
13417 RANLIB \
13418 CC \
13419 CFLAGS \
13420 compiler \
13421 lt_cv_sys_global_symbol_pipe \
13422 lt_cv_sys_global_symbol_to_cdecl \
13423 lt_cv_sys_global_symbol_to_c_name_address \
13424 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13425 lt_prog_compiler_no_builtin_flag \
13426 lt_prog_compiler_wl \
13427 lt_prog_compiler_pic \
13428 lt_prog_compiler_static \
13429 lt_cv_prog_compiler_c_o \
13430 need_locks \
13431 DSYMUTIL \
13432 NMEDIT \
13433 LIPO \
13434 OTOOL \
13435 OTOOL64 \
13436 shrext_cmds \
13437 export_dynamic_flag_spec \
13438 whole_archive_flag_spec \
13439 compiler_needs_object \
13440 with_gnu_ld \
13441 allow_undefined_flag \
13442 no_undefined_flag \
13443 hardcode_libdir_flag_spec \
13444 hardcode_libdir_flag_spec_ld \
13445 hardcode_libdir_separator \
13446 fix_srcfile_path \
13447 exclude_expsyms \
13448 include_expsyms \
13449 file_list_spec \
13450 variables_saved_for_relink \
13451 libname_spec \
13452 library_names_spec \
13453 soname_spec \
13454 install_override_mode \
13455 finish_eval \
13456 old_striplib \
13457 striplib; do
13458 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13459 *[\\\\\\\`\\"\\\$]*)
13460 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13461 ;;
13462 *)
13463 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13464 ;;
13465 esac
13466 done
13467
13468 # Double-quote double-evaled strings.
13469 for var in reload_cmds \
13470 old_postinstall_cmds \
13471 old_postuninstall_cmds \
13472 old_archive_cmds \
13473 extract_expsyms_cmds \
13474 old_archive_from_new_cmds \
13475 old_archive_from_expsyms_cmds \
13476 archive_cmds \
13477 archive_expsym_cmds \
13478 module_cmds \
13479 module_expsym_cmds \
13480 export_symbols_cmds \
13481 prelink_cmds \
13482 postinstall_cmds \
13483 postuninstall_cmds \
13484 finish_cmds \
13485 sys_lib_search_path_spec \
13486 sys_lib_dlsearch_path_spec; do
13487 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13488 *[\\\\\\\`\\"\\\$]*)
13489 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13490 ;;
13491 *)
13492 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13493 ;;
13494 esac
13495 done
13496
13497 ac_aux_dir='$ac_aux_dir'
13498 xsi_shell='$xsi_shell'
13499 lt_shell_append='$lt_shell_append'
13500
13501 # See if we are running on zsh, and set the options which allow our
13502 # commands through without removal of \ escapes INIT.
13503 if test -n "\${ZSH_VERSION+set}" ; then
13504 setopt NO_GLOB_SUBST
13505 fi
13506
13507
13508 PACKAGE='$PACKAGE'
13509 VERSION='$VERSION'
13510 TIMESTAMP='$TIMESTAMP'
13511 RM='$RM'
13512 ofile='$ofile'
13513
13514
13515
13516
13517 _ACEOF
13518
13519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13520
13521 # Handling of arguments.
13522 for ac_config_target in $ac_config_targets
13523 do
13524 case $ac_config_target in
13525 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13526 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13527 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13528 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13529
13530 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13531 esac
13532 done
13533
13534
13535 # If the user did not use the arguments to specify the items to instantiate,
13536 # then the envvar interface is used. Set only those that are not.
13537 # We use the long form for the default assignment because of an extremely
13538 # bizarre bug on SunOS 4.1.3.
13539 if $ac_need_defaults; then
13540 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13541 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13542 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13543 fi
13544
13545 # Have a temporary directory for convenience. Make it in the build tree
13546 # simply because there is no reason against having it here, and in addition,
13547 # creating and moving files from /tmp can sometimes cause problems.
13548 # Hook for its removal unless debugging.
13549 # Note that there is a small window in which the directory will not be cleaned:
13550 # after its creation but before its name has been assigned to `$tmp'.
13551 $debug ||
13552 {
13553 tmp= ac_tmp=
13554 trap 'exit_status=$?
13555 : "${ac_tmp:=$tmp}"
13556 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13557 ' 0
13558 trap 'as_fn_exit 1' 1 2 13 15
13559 }
13560 # Create a (secure) tmp directory for tmp files.
13561
13562 {
13563 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13564 test -d "$tmp"
13565 } ||
13566 {
13567 tmp=./conf$$-$RANDOM
13568 (umask 077 && mkdir "$tmp")
13569 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13570 ac_tmp=$tmp
13571
13572 # Set up the scripts for CONFIG_FILES section.
13573 # No need to generate them if there are no CONFIG_FILES.
13574 # This happens for instance with `./config.status config.h'.
13575 if test -n "$CONFIG_FILES"; then
13576
13577
13578 ac_cr=`echo X | tr X '\015'`
13579 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13580 # But we know of no other shell where ac_cr would be empty at this
13581 # point, so we can use a bashism as a fallback.
13582 if test "x$ac_cr" = x; then
13583 eval ac_cr=\$\'\\r\'
13584 fi
13585 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13586 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13587 ac_cs_awk_cr='\\r'
13588 else
13589 ac_cs_awk_cr=$ac_cr
13590 fi
13591
13592 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13593 _ACEOF
13594
13595
13596 {
13597 echo "cat >conf$$subs.awk <<_ACEOF" &&
13598 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13599 echo "_ACEOF"
13600 } >conf$$subs.sh ||
13601 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13602 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13603 ac_delim='%!_!# '
13604 for ac_last_try in false false false false false :; do
13605 . ./conf$$subs.sh ||
13606 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13607
13608 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13609 if test $ac_delim_n = $ac_delim_num; then
13610 break
13611 elif $ac_last_try; then
13612 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13613 else
13614 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13615 fi
13616 done
13617 rm -f conf$$subs.sh
13618
13619 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13620 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13621 _ACEOF
13622 sed -n '
13623 h
13624 s/^/S["/; s/!.*/"]=/
13625 p
13626 g
13627 s/^[^!]*!//
13628 :repl
13629 t repl
13630 s/'"$ac_delim"'$//
13631 t delim
13632 :nl
13633 h
13634 s/\(.\{148\}\)..*/\1/
13635 t more1
13636 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13637 p
13638 n
13639 b repl
13640 :more1
13641 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13642 p
13643 g
13644 s/.\{148\}//
13645 t nl
13646 :delim
13647 h
13648 s/\(.\{148\}\)..*/\1/
13649 t more2
13650 s/["\\]/\\&/g; s/^/"/; s/$/"/
13651 p
13652 b
13653 :more2
13654 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13655 p
13656 g
13657 s/.\{148\}//
13658 t delim
13659 ' <conf$$subs.awk | sed '
13660 /^[^""]/{
13661 N
13662 s/\n//
13663 }
13664 ' >>$CONFIG_STATUS || ac_write_fail=1
13665 rm -f conf$$subs.awk
13666 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13667 _ACAWK
13668 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13669 for (key in S) S_is_set[key] = 1
13670 FS = ""
13671
13672 }
13673 {
13674 line = $ 0
13675 nfields = split(line, field, "@")
13676 substed = 0
13677 len = length(field[1])
13678 for (i = 2; i < nfields; i++) {
13679 key = field[i]
13680 keylen = length(key)
13681 if (S_is_set[key]) {
13682 value = S[key]
13683 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13684 len += length(value) + length(field[++i])
13685 substed = 1
13686 } else
13687 len += 1 + keylen
13688 }
13689
13690 print line
13691 }
13692
13693 _ACAWK
13694 _ACEOF
13695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13696 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13697 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13698 else
13699 cat
13700 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13701 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13702 _ACEOF
13703
13704 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13705 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13706 # trailing colons and then remove the whole line if VPATH becomes empty
13707 # (actually we leave an empty line to preserve line numbers).
13708 if test "x$srcdir" = x.; then
13709 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13710 h
13711 s///
13712 s/^/:/
13713 s/[ ]*$/:/
13714 s/:\$(srcdir):/:/g
13715 s/:\${srcdir}:/:/g
13716 s/:@srcdir@:/:/g
13717 s/^:*//
13718 s/:*$//
13719 x
13720 s/\(=[ ]*\).*/\1/
13721 G
13722 s/\n//
13723 s/^[^=]*=[ ]*$//
13724 }'
13725 fi
13726
13727 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13728 fi # test -n "$CONFIG_FILES"
13729
13730 # Set up the scripts for CONFIG_HEADERS section.
13731 # No need to generate them if there are no CONFIG_HEADERS.
13732 # This happens for instance with `./config.status Makefile'.
13733 if test -n "$CONFIG_HEADERS"; then
13734 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13735 BEGIN {
13736 _ACEOF
13737
13738 # Transform confdefs.h into an awk script `defines.awk', embedded as
13739 # here-document in config.status, that substitutes the proper values into
13740 # config.h.in to produce config.h.
13741
13742 # Create a delimiter string that does not exist in confdefs.h, to ease
13743 # handling of long lines.
13744 ac_delim='%!_!# '
13745 for ac_last_try in false false :; do
13746 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13747 if test -z "$ac_tt"; then
13748 break
13749 elif $ac_last_try; then
13750 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13751 else
13752 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13753 fi
13754 done
13755
13756 # For the awk script, D is an array of macro values keyed by name,
13757 # likewise P contains macro parameters if any. Preserve backslash
13758 # newline sequences.
13759
13760 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13761 sed -n '
13762 s/.\{148\}/&'"$ac_delim"'/g
13763 t rset
13764 :rset
13765 s/^[ ]*#[ ]*define[ ][ ]*/ /
13766 t def
13767 d
13768 :def
13769 s/\\$//
13770 t bsnl
13771 s/["\\]/\\&/g
13772 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13773 D["\1"]=" \3"/p
13774 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13775 d
13776 :bsnl
13777 s/["\\]/\\&/g
13778 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13779 D["\1"]=" \3\\\\\\n"\\/p
13780 t cont
13781 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13782 t cont
13783 d
13784 :cont
13785 n
13786 s/.\{148\}/&'"$ac_delim"'/g
13787 t clear
13788 :clear
13789 s/\\$//
13790 t bsnlc
13791 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13792 d
13793 :bsnlc
13794 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13795 b cont
13796 ' <confdefs.h | sed '
13797 s/'"$ac_delim"'/"\\\
13798 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13799
13800 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13801 for (key in D) D_is_set[key] = 1
13802 FS = ""
13803 }
13804 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13805 line = \$ 0
13806 split(line, arg, " ")
13807 if (arg[1] == "#") {
13808 defundef = arg[2]
13809 mac1 = arg[3]
13810 } else {
13811 defundef = substr(arg[1], 2)
13812 mac1 = arg[2]
13813 }
13814 split(mac1, mac2, "(") #)
13815 macro = mac2[1]
13816 prefix = substr(line, 1, index(line, defundef) - 1)
13817 if (D_is_set[macro]) {
13818 # Preserve the white space surrounding the "#".
13819 print prefix "define", macro P[macro] D[macro]
13820 next
13821 } else {
13822 # Replace #undef with comments. This is necessary, for example,
13823 # in the case of _POSIX_SOURCE, which is predefined and required
13824 # on some systems where configure will not decide to define it.
13825 if (defundef == "undef") {
13826 print "/*", prefix defundef, macro, "*/"
13827 next
13828 }
13829 }
13830 }
13831 { print }
13832 _ACAWK
13833 _ACEOF
13834 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13835 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13836 fi # test -n "$CONFIG_HEADERS"
13837
13838
13839 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13840 shift
13841 for ac_tag
13842 do
13843 case $ac_tag in
13844 :[FHLC]) ac_mode=$ac_tag; continue;;
13845 esac
13846 case $ac_mode$ac_tag in
13847 :[FHL]*:*);;
13848 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13849 :[FH]-) ac_tag=-:-;;
13850 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13851 esac
13852 ac_save_IFS=$IFS
13853 IFS=:
13854 set x $ac_tag
13855 IFS=$ac_save_IFS
13856 shift
13857 ac_file=$1
13858 shift
13859
13860 case $ac_mode in
13861 :L) ac_source=$1;;
13862 :[FH])
13863 ac_file_inputs=
13864 for ac_f
13865 do
13866 case $ac_f in
13867 -) ac_f="$ac_tmp/stdin";;
13868 *) # Look for the file first in the build tree, then in the source tree
13869 # (if the path is not absolute). The absolute path cannot be DOS-style,
13870 # because $ac_f cannot contain `:'.
13871 test -f "$ac_f" ||
13872 case $ac_f in
13873 [\\/$]*) false;;
13874 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13875 esac ||
13876 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13877 esac
13878 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13879 as_fn_append ac_file_inputs " '$ac_f'"
13880 done
13881
13882 # Let's still pretend it is `configure' which instantiates (i.e., don't
13883 # use $as_me), people would be surprised to read:
13884 # /* config.h. Generated by config.status. */
13885 configure_input='Generated from '`
13886 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13887 `' by configure.'
13888 if test x"$ac_file" != x-; then
13889 configure_input="$ac_file. $configure_input"
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13891 $as_echo "$as_me: creating $ac_file" >&6;}
13892 fi
13893 # Neutralize special characters interpreted by sed in replacement strings.
13894 case $configure_input in #(
13895 *\&* | *\|* | *\\* )
13896 ac_sed_conf_input=`$as_echo "$configure_input" |
13897 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13898 *) ac_sed_conf_input=$configure_input;;
13899 esac
13900
13901 case $ac_tag in
13902 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13903 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13904 esac
13905 ;;
13906 esac
13907
13908 ac_dir=`$as_dirname -- "$ac_file" ||
13909 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13910 X"$ac_file" : 'X\(//\)[^/]' \| \
13911 X"$ac_file" : 'X\(//\)$' \| \
13912 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13913 $as_echo X"$ac_file" |
13914 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13915 s//\1/
13916 q
13917 }
13918 /^X\(\/\/\)[^/].*/{
13919 s//\1/
13920 q
13921 }
13922 /^X\(\/\/\)$/{
13923 s//\1/
13924 q
13925 }
13926 /^X\(\/\).*/{
13927 s//\1/
13928 q
13929 }
13930 s/.*/./; q'`
13931 as_dir="$ac_dir"; as_fn_mkdir_p
13932 ac_builddir=.
13933
13934 case "$ac_dir" in
13935 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13936 *)
13937 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13938 # A ".." for each directory in $ac_dir_suffix.
13939 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13940 case $ac_top_builddir_sub in
13941 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13942 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13943 esac ;;
13944 esac
13945 ac_abs_top_builddir=$ac_pwd
13946 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13947 # for backward compatibility:
13948 ac_top_builddir=$ac_top_build_prefix
13949
13950 case $srcdir in
13951 .) # We are building in place.
13952 ac_srcdir=.
13953 ac_top_srcdir=$ac_top_builddir_sub
13954 ac_abs_top_srcdir=$ac_pwd ;;
13955 [\\/]* | ?:[\\/]* ) # Absolute name.
13956 ac_srcdir=$srcdir$ac_dir_suffix;
13957 ac_top_srcdir=$srcdir
13958 ac_abs_top_srcdir=$srcdir ;;
13959 *) # Relative name.
13960 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13961 ac_top_srcdir=$ac_top_build_prefix$srcdir
13962 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13963 esac
13964 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13965
13966
13967 case $ac_mode in
13968 :F)
13969 #
13970 # CONFIG_FILE
13971 #
13972
13973 case $INSTALL in
13974 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13975 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13976 esac
13977 ac_MKDIR_P=$MKDIR_P
13978 case $MKDIR_P in
13979 [\\/$]* | ?:[\\/]* ) ;;
13980 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13981 esac
13982 _ACEOF
13983
13984 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13985 # If the template does not know about datarootdir, expand it.
13986 # FIXME: This hack should be removed a few years after 2.60.
13987 ac_datarootdir_hack=; ac_datarootdir_seen=
13988 ac_sed_dataroot='
13989 /datarootdir/ {
13990 p
13991 q
13992 }
13993 /@datadir@/p
13994 /@docdir@/p
13995 /@infodir@/p
13996 /@localedir@/p
13997 /@mandir@/p'
13998 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13999 *datarootdir*) ac_datarootdir_seen=yes;;
14000 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14002 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14003 _ACEOF
14004 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14005 ac_datarootdir_hack='
14006 s&@datadir@&$datadir&g
14007 s&@docdir@&$docdir&g
14008 s&@infodir@&$infodir&g
14009 s&@localedir@&$localedir&g
14010 s&@mandir@&$mandir&g
14011 s&\\\${datarootdir}&$datarootdir&g' ;;
14012 esac
14013 _ACEOF
14014
14015 # Neutralize VPATH when `$srcdir' = `.'.
14016 # Shell code in configure.ac might set extrasub.
14017 # FIXME: do we really want to maintain this feature?
14018 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14019 ac_sed_extra="$ac_vpsub
14020 $extrasub
14021 _ACEOF
14022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14023 :t
14024 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14025 s|@configure_input@|$ac_sed_conf_input|;t t
14026 s&@top_builddir@&$ac_top_builddir_sub&;t t
14027 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14028 s&@srcdir@&$ac_srcdir&;t t
14029 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14030 s&@top_srcdir@&$ac_top_srcdir&;t t
14031 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14032 s&@builddir@&$ac_builddir&;t t
14033 s&@abs_builddir@&$ac_abs_builddir&;t t
14034 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14035 s&@INSTALL@&$ac_INSTALL&;t t
14036 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14037 $ac_datarootdir_hack
14038 "
14039 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14040 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14041
14042 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14043 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14044 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14045 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14047 which seems to be undefined. Please make sure it is defined" >&5
14048 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14049 which seems to be undefined. Please make sure it is defined" >&2;}
14050
14051 rm -f "$ac_tmp/stdin"
14052 case $ac_file in
14053 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14054 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14055 esac \
14056 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14057 ;;
14058 :H)
14059 #
14060 # CONFIG_HEADER
14061 #
14062 if test x"$ac_file" != x-; then
14063 {
14064 $as_echo "/* $configure_input */" \
14065 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14066 } >"$ac_tmp/config.h" \
14067 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14068 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14070 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14071 else
14072 rm -f "$ac_file"
14073 mv "$ac_tmp/config.h" "$ac_file" \
14074 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14075 fi
14076 else
14077 $as_echo "/* $configure_input */" \
14078 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14079 || as_fn_error $? "could not create -" "$LINENO" 5
14080 fi
14081 # Compute "$ac_file"'s index in $config_headers.
14082 _am_arg="$ac_file"
14083 _am_stamp_count=1
14084 for _am_header in $config_headers :; do
14085 case $_am_header in
14086 $_am_arg | $_am_arg:* )
14087 break ;;
14088 * )
14089 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14090 esac
14091 done
14092 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14093 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14094 X"$_am_arg" : 'X\(//\)[^/]' \| \
14095 X"$_am_arg" : 'X\(//\)$' \| \
14096 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14097 $as_echo X"$_am_arg" |
14098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14099 s//\1/
14100 q
14101 }
14102 /^X\(\/\/\)[^/].*/{
14103 s//\1/
14104 q
14105 }
14106 /^X\(\/\/\)$/{
14107 s//\1/
14108 q
14109 }
14110 /^X\(\/\).*/{
14111 s//\1/
14112 q
14113 }
14114 s/.*/./; q'`/stamp-h$_am_stamp_count
14115 ;;
14116
14117 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14118 $as_echo "$as_me: executing $ac_file commands" >&6;}
14119 ;;
14120 esac
14121
14122
14123 case $ac_file$ac_mode in
14124 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14125 # Older Autoconf quotes --file arguments for eval, but not when files
14126 # are listed without --file. Let's play safe and only enable the eval
14127 # if we detect the quoting.
14128 case $CONFIG_FILES in
14129 *\'*) eval set x "$CONFIG_FILES" ;;
14130 *) set x $CONFIG_FILES ;;
14131 esac
14132 shift
14133 for mf
14134 do
14135 # Strip MF so we end up with the name of the file.
14136 mf=`echo "$mf" | sed -e 's/:.*$//'`
14137 # Check whether this is an Automake generated Makefile or not.
14138 # We used to match only the files named 'Makefile.in', but
14139 # some people rename them; so instead we look at the file content.
14140 # Grep'ing the first line is not enough: some people post-process
14141 # each Makefile.in and add a new line on top of each file to say so.
14142 # Grep'ing the whole file is not good either: AIX grep has a line
14143 # limit of 2048, but all sed's we know have understand at least 4000.
14144 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14145 dirpart=`$as_dirname -- "$mf" ||
14146 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14147 X"$mf" : 'X\(//\)[^/]' \| \
14148 X"$mf" : 'X\(//\)$' \| \
14149 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14150 $as_echo X"$mf" |
14151 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14152 s//\1/
14153 q
14154 }
14155 /^X\(\/\/\)[^/].*/{
14156 s//\1/
14157 q
14158 }
14159 /^X\(\/\/\)$/{
14160 s//\1/
14161 q
14162 }
14163 /^X\(\/\).*/{
14164 s//\1/
14165 q
14166 }
14167 s/.*/./; q'`
14168 else
14169 continue
14170 fi
14171 # Extract the definition of DEPDIR, am__include, and am__quote
14172 # from the Makefile without running 'make'.
14173 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14174 test -z "$DEPDIR" && continue
14175 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14176 test -z "$am__include" && continue
14177 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14178 # Find all dependency output files, they are included files with
14179 # $(DEPDIR) in their names. We invoke sed twice because it is the
14180 # simplest approach to changing $(DEPDIR) to its actual value in the
14181 # expansion.
14182 for file in `sed -n "
14183 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14184 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14185 # Make sure the directory exists.
14186 test -f "$dirpart/$file" && continue
14187 fdir=`$as_dirname -- "$file" ||
14188 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14189 X"$file" : 'X\(//\)[^/]' \| \
14190 X"$file" : 'X\(//\)$' \| \
14191 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14192 $as_echo X"$file" |
14193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14194 s//\1/
14195 q
14196 }
14197 /^X\(\/\/\)[^/].*/{
14198 s//\1/
14199 q
14200 }
14201 /^X\(\/\/\)$/{
14202 s//\1/
14203 q
14204 }
14205 /^X\(\/\).*/{
14206 s//\1/
14207 q
14208 }
14209 s/.*/./; q'`
14210 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14211 # echo "creating $dirpart/$file"
14212 echo '# dummy' > "$dirpart/$file"
14213 done
14214 done
14215 }
14216 ;;
14217 "libtool":C)
14218
14219 # See if we are running on zsh, and set the options which allow our
14220 # commands through without removal of \ escapes.
14221 if test -n "${ZSH_VERSION+set}" ; then
14222 setopt NO_GLOB_SUBST
14223 fi
14224
14225 cfgfile="${ofile}T"
14226 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14227 $RM "$cfgfile"
14228
14229 cat <<_LT_EOF >> "$cfgfile"
14230 #! $SHELL
14231
14232 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14233 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14234 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14235 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14236 #
14237 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14238 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
14239 # Written by Gordon Matzigkeit, 1996
14240 #
14241 # This file is part of GNU Libtool.
14242 #
14243 # GNU Libtool is free software; you can redistribute it and/or
14244 # modify it under the terms of the GNU General Public License as
14245 # published by the Free Software Foundation; either version 2 of
14246 # the License, or (at your option) any later version.
14247 #
14248 # As a special exception to the GNU General Public License,
14249 # if you distribute this file as part of a program or library that
14250 # is built using GNU Libtool, you may include this file under the
14251 # same distribution terms that you use for the rest of that program.
14252 #
14253 # GNU Libtool is distributed in the hope that it will be useful,
14254 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14255 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14256 # GNU General Public License for more details.
14257 #
14258 # You should have received a copy of the GNU General Public License
14259 # along with GNU Libtool; see the file COPYING. If not, a copy
14260 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14261 # obtained by writing to the Free Software Foundation, Inc.,
14262 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14263
14264
14265 # The names of the tagged configurations supported by this script.
14266 available_tags=""
14267
14268 # ### BEGIN LIBTOOL CONFIG
14269
14270 # Which release of libtool.m4 was used?
14271 macro_version=$macro_version
14272 macro_revision=$macro_revision
14273
14274 # Whether or not to build shared libraries.
14275 build_libtool_libs=$enable_shared
14276
14277 # Whether or not to build static libraries.
14278 build_old_libs=$enable_static
14279
14280 # What type of objects to build.
14281 pic_mode=$pic_mode
14282
14283 # Whether or not to optimize for fast installation.
14284 fast_install=$enable_fast_install
14285
14286 # Shell to use when invoking shell scripts.
14287 SHELL=$lt_SHELL
14288
14289 # An echo program that protects backslashes.
14290 ECHO=$lt_ECHO
14291
14292 # The host system.
14293 host_alias=$host_alias
14294 host=$host
14295 host_os=$host_os
14296
14297 # The build system.
14298 build_alias=$build_alias
14299 build=$build
14300 build_os=$build_os
14301
14302 # A sed program that does not truncate output.
14303 SED=$lt_SED
14304
14305 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14306 Xsed="\$SED -e 1s/^X//"
14307
14308 # A grep program that handles long lines.
14309 GREP=$lt_GREP
14310
14311 # An ERE matcher.
14312 EGREP=$lt_EGREP
14313
14314 # A literal string matcher.
14315 FGREP=$lt_FGREP
14316
14317 # A BSD- or MS-compatible name lister.
14318 NM=$lt_NM
14319
14320 # Whether we need soft or hard links.
14321 LN_S=$lt_LN_S
14322
14323 # What is the maximum length of a command?
14324 max_cmd_len=$max_cmd_len
14325
14326 # Object file suffix (normally "o").
14327 objext=$ac_objext
14328
14329 # Executable file suffix (normally "").
14330 exeext=$exeext
14331
14332 # whether the shell understands "unset".
14333 lt_unset=$lt_unset
14334
14335 # turn spaces into newlines.
14336 SP2NL=$lt_lt_SP2NL
14337
14338 # turn newlines into spaces.
14339 NL2SP=$lt_lt_NL2SP
14340
14341 # An object symbol dumper.
14342 OBJDUMP=$lt_OBJDUMP
14343
14344 # Method to check whether dependent libraries are shared objects.
14345 deplibs_check_method=$lt_deplibs_check_method
14346
14347 # Command to use when deplibs_check_method == "file_magic".
14348 file_magic_cmd=$lt_file_magic_cmd
14349
14350 # The archiver.
14351 AR=$lt_AR
14352 AR_FLAGS=$lt_AR_FLAGS
14353
14354 # A symbol stripping program.
14355 STRIP=$lt_STRIP
14356
14357 # Commands used to install an old-style archive.
14358 RANLIB=$lt_RANLIB
14359 old_postinstall_cmds=$lt_old_postinstall_cmds
14360 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14361
14362 # Whether to use a lock for old archive extraction.
14363 lock_old_archive_extraction=$lock_old_archive_extraction
14364
14365 # A C compiler.
14366 LTCC=$lt_CC
14367
14368 # LTCC compiler flags.
14369 LTCFLAGS=$lt_CFLAGS
14370
14371 # Take the output of nm and produce a listing of raw symbols and C names.
14372 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14373
14374 # Transform the output of nm in a proper C declaration.
14375 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14376
14377 # Transform the output of nm in a C name address pair.
14378 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14379
14380 # Transform the output of nm in a C name address pair when lib prefix is needed.
14381 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14382
14383 # The name of the directory that contains temporary libtool files.
14384 objdir=$objdir
14385
14386 # Used to examine libraries when file_magic_cmd begins with "file".
14387 MAGIC_CMD=$MAGIC_CMD
14388
14389 # Must we lock files when doing compilation?
14390 need_locks=$lt_need_locks
14391
14392 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14393 DSYMUTIL=$lt_DSYMUTIL
14394
14395 # Tool to change global to local symbols on Mac OS X.
14396 NMEDIT=$lt_NMEDIT
14397
14398 # Tool to manipulate fat objects and archives on Mac OS X.
14399 LIPO=$lt_LIPO
14400
14401 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14402 OTOOL=$lt_OTOOL
14403
14404 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14405 OTOOL64=$lt_OTOOL64
14406
14407 # Old archive suffix (normally "a").
14408 libext=$libext
14409
14410 # Shared library suffix (normally ".so").
14411 shrext_cmds=$lt_shrext_cmds
14412
14413 # The commands to extract the exported symbol list from a shared archive.
14414 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14415
14416 # Variables whose values should be saved in libtool wrapper scripts and
14417 # restored at link time.
14418 variables_saved_for_relink=$lt_variables_saved_for_relink
14419
14420 # Do we need the "lib" prefix for modules?
14421 need_lib_prefix=$need_lib_prefix
14422
14423 # Do we need a version for libraries?
14424 need_version=$need_version
14425
14426 # Library versioning type.
14427 version_type=$version_type
14428
14429 # Shared library runtime path variable.
14430 runpath_var=$runpath_var
14431
14432 # Shared library path variable.
14433 shlibpath_var=$shlibpath_var
14434
14435 # Is shlibpath searched before the hard-coded library search path?
14436 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14437
14438 # Format of library name prefix.
14439 libname_spec=$lt_libname_spec
14440
14441 # List of archive names. First name is the real one, the rest are links.
14442 # The last name is the one that the linker finds with -lNAME
14443 library_names_spec=$lt_library_names_spec
14444
14445 # The coded name of the library, if different from the real name.
14446 soname_spec=$lt_soname_spec
14447
14448 # Permission mode override for installation of shared libraries.
14449 install_override_mode=$lt_install_override_mode
14450
14451 # Command to use after installation of a shared archive.
14452 postinstall_cmds=$lt_postinstall_cmds
14453
14454 # Command to use after uninstallation of a shared archive.
14455 postuninstall_cmds=$lt_postuninstall_cmds
14456
14457 # Commands used to finish a libtool library installation in a directory.
14458 finish_cmds=$lt_finish_cmds
14459
14460 # As "finish_cmds", except a single script fragment to be evaled but
14461 # not shown.
14462 finish_eval=$lt_finish_eval
14463
14464 # Whether we should hardcode library paths into libraries.
14465 hardcode_into_libs=$hardcode_into_libs
14466
14467 # Compile-time system search path for libraries.
14468 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14469
14470 # Run-time system search path for libraries.
14471 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14472
14473 # Whether dlopen is supported.
14474 dlopen_support=$enable_dlopen
14475
14476 # Whether dlopen of programs is supported.
14477 dlopen_self=$enable_dlopen_self
14478
14479 # Whether dlopen of statically linked programs is supported.
14480 dlopen_self_static=$enable_dlopen_self_static
14481
14482 # Commands to strip libraries.
14483 old_striplib=$lt_old_striplib
14484 striplib=$lt_striplib
14485
14486
14487 # The linker used to build libraries.
14488 LD=$lt_LD
14489
14490 # How to create reloadable object files.
14491 reload_flag=$lt_reload_flag
14492 reload_cmds=$lt_reload_cmds
14493
14494 # Commands used to build an old-style archive.
14495 old_archive_cmds=$lt_old_archive_cmds
14496
14497 # A language specific compiler.
14498 CC=$lt_compiler
14499
14500 # Is the compiler the GNU compiler?
14501 with_gcc=$GCC
14502
14503 # Compiler flag to turn off builtin functions.
14504 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14505
14506 # How to pass a linker flag through the compiler.
14507 wl=$lt_lt_prog_compiler_wl
14508
14509 # Additional compiler flags for building library objects.
14510 pic_flag=$lt_lt_prog_compiler_pic
14511
14512 # Compiler flag to prevent dynamic linking.
14513 link_static_flag=$lt_lt_prog_compiler_static
14514
14515 # Does compiler simultaneously support -c and -o options?
14516 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14517
14518 # Whether or not to add -lc for building shared libraries.
14519 build_libtool_need_lc=$archive_cmds_need_lc
14520
14521 # Whether or not to disallow shared libs when runtime libs are static.
14522 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14523
14524 # Compiler flag to allow reflexive dlopens.
14525 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14526
14527 # Compiler flag to generate shared objects directly from archives.
14528 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14529
14530 # Whether the compiler copes with passing no objects directly.
14531 compiler_needs_object=$lt_compiler_needs_object
14532
14533 # Create an old-style archive from a shared archive.
14534 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14535
14536 # Create a temporary old-style archive to link instead of a shared archive.
14537 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14538
14539 # Commands used to build a shared archive.
14540 archive_cmds=$lt_archive_cmds
14541 archive_expsym_cmds=$lt_archive_expsym_cmds
14542
14543 # Commands used to build a loadable module if different from building
14544 # a shared archive.
14545 module_cmds=$lt_module_cmds
14546 module_expsym_cmds=$lt_module_expsym_cmds
14547
14548 # Whether we are building with GNU ld or not.
14549 with_gnu_ld=$lt_with_gnu_ld
14550
14551 # Flag that allows shared libraries with undefined symbols to be built.
14552 allow_undefined_flag=$lt_allow_undefined_flag
14553
14554 # Flag that enforces no undefined symbols.
14555 no_undefined_flag=$lt_no_undefined_flag
14556
14557 # Flag to hardcode \$libdir into a binary during linking.
14558 # This must work even if \$libdir does not exist
14559 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14560
14561 # If ld is used when linking, flag to hardcode \$libdir into a binary
14562 # during linking. This must work even if \$libdir does not exist.
14563 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14564
14565 # Whether we need a single "-rpath" flag with a separated argument.
14566 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14567
14568 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14569 # DIR into the resulting binary.
14570 hardcode_direct=$hardcode_direct
14571
14572 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14573 # DIR into the resulting binary and the resulting library dependency is
14574 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14575 # library is relocated.
14576 hardcode_direct_absolute=$hardcode_direct_absolute
14577
14578 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14579 # into the resulting binary.
14580 hardcode_minus_L=$hardcode_minus_L
14581
14582 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14583 # into the resulting binary.
14584 hardcode_shlibpath_var=$hardcode_shlibpath_var
14585
14586 # Set to "yes" if building a shared library automatically hardcodes DIR
14587 # into the library and all subsequent libraries and executables linked
14588 # against it.
14589 hardcode_automatic=$hardcode_automatic
14590
14591 # Set to yes if linker adds runtime paths of dependent libraries
14592 # to runtime path list.
14593 inherit_rpath=$inherit_rpath
14594
14595 # Whether libtool must link a program against all its dependency libraries.
14596 link_all_deplibs=$link_all_deplibs
14597
14598 # Fix the shell variable \$srcfile for the compiler.
14599 fix_srcfile_path=$lt_fix_srcfile_path
14600
14601 # Set to "yes" if exported symbols are required.
14602 always_export_symbols=$always_export_symbols
14603
14604 # The commands to list exported symbols.
14605 export_symbols_cmds=$lt_export_symbols_cmds
14606
14607 # Symbols that should not be listed in the preloaded symbols.
14608 exclude_expsyms=$lt_exclude_expsyms
14609
14610 # Symbols that must always be exported.
14611 include_expsyms=$lt_include_expsyms
14612
14613 # Commands necessary for linking programs (against libraries) with templates.
14614 prelink_cmds=$lt_prelink_cmds
14615
14616 # Specify filename containing input files.
14617 file_list_spec=$lt_file_list_spec
14618
14619 # How to hardcode a shared library path into an executable.
14620 hardcode_action=$hardcode_action
14621
14622 # ### END LIBTOOL CONFIG
14623
14624 _LT_EOF
14625
14626 case $host_os in
14627 aix3*)
14628 cat <<\_LT_EOF >> "$cfgfile"
14629 # AIX sometimes has problems with the GCC collect2 program. For some
14630 # reason, if we set the COLLECT_NAMES environment variable, the problems
14631 # vanish in a puff of smoke.
14632 if test "X${COLLECT_NAMES+set}" != Xset; then
14633 COLLECT_NAMES=
14634 export COLLECT_NAMES
14635 fi
14636 _LT_EOF
14637 ;;
14638 esac
14639
14640
14641 ltmain="$ac_aux_dir/ltmain.sh"
14642
14643
14644 # We use sed instead of cat because bash on DJGPP gets confused if
14645 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14646 # text mode, it properly converts lines to CR/LF. This bash problem
14647 # is reportedly fixed, but why not run on old versions too?
14648 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14649 || (rm -f "$cfgfile"; exit 1)
14650
14651 case $xsi_shell in
14652 yes)
14653 cat << \_LT_EOF >> "$cfgfile"
14654
14655 # func_dirname file append nondir_replacement
14656 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14657 # otherwise set result to NONDIR_REPLACEMENT.
14658 func_dirname ()
14659 {
14660 case ${1} in
14661 */*) func_dirname_result="${1%/*}${2}" ;;
14662 * ) func_dirname_result="${3}" ;;
14663 esac
14664 }
14665
14666 # func_basename file
14667 func_basename ()
14668 {
14669 func_basename_result="${1##*/}"
14670 }
14671
14672 # func_dirname_and_basename file append nondir_replacement
14673 # perform func_basename and func_dirname in a single function
14674 # call:
14675 # dirname: Compute the dirname of FILE. If nonempty,
14676 # add APPEND to the result, otherwise set result
14677 # to NONDIR_REPLACEMENT.
14678 # value returned in "$func_dirname_result"
14679 # basename: Compute filename of FILE.
14680 # value retuned in "$func_basename_result"
14681 # Implementation must be kept synchronized with func_dirname
14682 # and func_basename. For efficiency, we do not delegate to
14683 # those functions but instead duplicate the functionality here.
14684 func_dirname_and_basename ()
14685 {
14686 case ${1} in
14687 */*) func_dirname_result="${1%/*}${2}" ;;
14688 * ) func_dirname_result="${3}" ;;
14689 esac
14690 func_basename_result="${1##*/}"
14691 }
14692
14693 # func_stripname prefix suffix name
14694 # strip PREFIX and SUFFIX off of NAME.
14695 # PREFIX and SUFFIX must not contain globbing or regex special
14696 # characters, hashes, percent signs, but SUFFIX may contain a leading
14697 # dot (in which case that matches only a dot).
14698 func_stripname ()
14699 {
14700 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14701 # positional parameters, so assign one to ordinary parameter first.
14702 func_stripname_result=${3}
14703 func_stripname_result=${func_stripname_result#"${1}"}
14704 func_stripname_result=${func_stripname_result%"${2}"}
14705 }
14706
14707 # func_opt_split
14708 func_opt_split ()
14709 {
14710 func_opt_split_opt=${1%%=*}
14711 func_opt_split_arg=${1#*=}
14712 }
14713
14714 # func_lo2o object
14715 func_lo2o ()
14716 {
14717 case ${1} in
14718 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14719 *) func_lo2o_result=${1} ;;
14720 esac
14721 }
14722
14723 # func_xform libobj-or-source
14724 func_xform ()
14725 {
14726 func_xform_result=${1%.*}.lo
14727 }
14728
14729 # func_arith arithmetic-term...
14730 func_arith ()
14731 {
14732 func_arith_result=$(( $* ))
14733 }
14734
14735 # func_len string
14736 # STRING may not start with a hyphen.
14737 func_len ()
14738 {
14739 func_len_result=${#1}
14740 }
14741
14742 _LT_EOF
14743 ;;
14744 *) # Bourne compatible functions.
14745 cat << \_LT_EOF >> "$cfgfile"
14746
14747 # func_dirname file append nondir_replacement
14748 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14749 # otherwise set result to NONDIR_REPLACEMENT.
14750 func_dirname ()
14751 {
14752 # Extract subdirectory from the argument.
14753 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
14754 if test "X$func_dirname_result" = "X${1}"; then
14755 func_dirname_result="${3}"
14756 else
14757 func_dirname_result="$func_dirname_result${2}"
14758 fi
14759 }
14760
14761 # func_basename file
14762 func_basename ()
14763 {
14764 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
14765 }
14766
14767
14768 # func_stripname prefix suffix name
14769 # strip PREFIX and SUFFIX off of NAME.
14770 # PREFIX and SUFFIX must not contain globbing or regex special
14771 # characters, hashes, percent signs, but SUFFIX may contain a leading
14772 # dot (in which case that matches only a dot).
14773 # func_strip_suffix prefix name
14774 func_stripname ()
14775 {
14776 case ${2} in
14777 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14778 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14779 esac
14780 }
14781
14782 # sed scripts:
14783 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14784 my_sed_long_arg='1s/^-[^=]*=//'
14785
14786 # func_opt_split
14787 func_opt_split ()
14788 {
14789 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14790 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
14791 }
14792
14793 # func_lo2o object
14794 func_lo2o ()
14795 {
14796 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
14797 }
14798
14799 # func_xform libobj-or-source
14800 func_xform ()
14801 {
14802 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
14803 }
14804
14805 # func_arith arithmetic-term...
14806 func_arith ()
14807 {
14808 func_arith_result=`expr "$@"`
14809 }
14810
14811 # func_len string
14812 # STRING may not start with a hyphen.
14813 func_len ()
14814 {
14815 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14816 }
14817
14818 _LT_EOF
14819 esac
14820
14821 case $lt_shell_append in
14822 yes)
14823 cat << \_LT_EOF >> "$cfgfile"
14824
14825 # func_append var value
14826 # Append VALUE to the end of shell variable VAR.
14827 func_append ()
14828 {
14829 eval "$1+=\$2"
14830 }
14831 _LT_EOF
14832 ;;
14833 *)
14834 cat << \_LT_EOF >> "$cfgfile"
14835
14836 # func_append var value
14837 # Append VALUE to the end of shell variable VAR.
14838 func_append ()
14839 {
14840 eval "$1=\$$1\$2"
14841 }
14842
14843 _LT_EOF
14844 ;;
14845 esac
14846
14847
14848 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14849 || (rm -f "$cfgfile"; exit 1)
14850
14851 mv -f "$cfgfile" "$ofile" ||
14852 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14853 chmod +x "$ofile"
14854
14855 ;;
14856
14857 esac
14858 done # for ac_tag
14859
14860
14861 as_fn_exit 0
14862 _ACEOF
14863 ac_clean_files=$ac_clean_files_save
14864
14865 test $ac_write_fail = 0 ||
14866 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14867
14868
14869 # configure is writing to config.log, and then calls config.status.
14870 # config.status does its own redirection, appending to config.log.
14871 # Unfortunately, on DOS this fails, as config.log is still kept open
14872 # by configure, so config.status won't be able to write to it; its
14873 # output is simply discarded. So we exec the FD to /dev/null,
14874 # effectively closing config.log, so it can be properly (re)opened and
14875 # appended to by config.status. When coming back to configure, we
14876 # need to make the FD available again.
14877 if test "$no_create" != yes; then
14878 ac_cs_success=:
14879 ac_config_status_args=
14880 test "$silent" = yes &&
14881 ac_config_status_args="$ac_config_status_args --quiet"
14882 exec 5>/dev/null
14883 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14884 exec 5>>config.log
14885 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14886 # would make configure fail if this is the last instruction.
14887 $ac_cs_success || as_fn_exit 1
14888 fi
14889 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14891 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14892 fi
14893
14894