sim: move UNUSED before TYPE in SIM_ENDIAN_INLINE's definition
[deliverable/binutils-gdb.git] / sim / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for sim 0.
4 #
5 # Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521 *)
522 ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
592 PACKAGE_NAME='sim'
593 PACKAGE_TARNAME='sim'
594 PACKAGE_VERSION='0'
595 PACKAGE_STRING='sim 0'
596 PACKAGE_BUGREPORT='https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim'
597 PACKAGE_URL='https://sourceware.org/gdb/wiki/Sim/'
598
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_header_list=
636 ac_func_list=
637 enable_option_checking=no
638 ac_subst_vars='am__EXEEXT_FALSE
639 am__EXEEXT_TRUE
640 LTLIBOBJS
641 SIM_ENABLE_IGEN_FALSE
642 SIM_ENABLE_IGEN_TRUE
643 subdirs
644 SIM_PRIMARY_TARGET
645 AM_BACKSLASH
646 AM_DEFAULT_VERBOSITY
647 AM_DEFAULT_V
648 AM_V
649 am__fastdepCC_FALSE
650 am__fastdepCC_TRUE
651 CCDEPMODE
652 am__nodep
653 AMDEPBACKSLASH
654 AMDEP_FALSE
655 AMDEP_TRUE
656 am__quote
657 am__include
658 DEPDIR
659 am__untar
660 am__tar
661 AMTAR
662 am__leading_dot
663 SET_MAKE
664 mkdir_p
665 MKDIR_P
666 INSTALL_STRIP_PROGRAM
667 install_sh
668 MAKEINFO
669 AUTOHEADER
670 AUTOMAKE
671 AUTOCONF
672 ACLOCAL
673 VERSION
674 PACKAGE
675 CYGPATH_W
676 am__isrc
677 MAINT
678 MAINTAINER_MODE_FALSE
679 MAINTAINER_MODE_TRUE
680 lt_cv_dlopen_libs
681 OTOOL64
682 OTOOL
683 LIPO
684 NMEDIT
685 DSYMUTIL
686 AWK
687 STRIP
688 OBJDUMP
689 LN_S
690 NM
691 ac_ct_DUMPBIN
692 DUMPBIN
693 LD
694 FGREP
695 SED
696 LIBTOOL
697 PLUGINS_FALSE
698 PLUGINS_TRUE
699 zlibinc
700 zlibdir
701 CATOBJEXT
702 GENCAT
703 INSTOBJEXT
704 DATADIRNAME
705 CATALOGS
706 POSUB
707 GMSGFMT
708 XGETTEXT
709 INCINTL
710 LIBINTL_DEP
711 LIBINTL
712 USE_NLS
713 LIBOBJS
714 C_DIALECT
715 RANLIB
716 AR
717 LDFLAGS_FOR_BUILD
718 CFLAGS_FOR_BUILD
719 RANLIB_FOR_BUILD
720 CC_FOR_BUILD
721 AR_FOR_BUILD
722 DTC
723 INSTALL_DATA
724 INSTALL_SCRIPT
725 INSTALL_PROGRAM
726 EGREP
727 GREP
728 CPP
729 OBJEXT
730 EXEEXT
731 ac_ct_CC
732 CPPFLAGS
733 LDFLAGS
734 CFLAGS
735 CC
736 target_os
737 target_vendor
738 target_cpu
739 target
740 host_os
741 host_vendor
742 host_cpu
743 host
744 build_os
745 build_vendor
746 build_cpu
747 build
748 REPORT_BUGS_TEXI
749 REPORT_BUGS_TO
750 PKGVERSION
751 target_alias
752 host_alias
753 build_alias
754 LIBS
755 ECHO_T
756 ECHO_N
757 ECHO_C
758 DEFS
759 mandir
760 localedir
761 libdir
762 psdir
763 pdfdir
764 dvidir
765 htmldir
766 infodir
767 docdir
768 oldincludedir
769 includedir
770 localstatedir
771 sharedstatedir
772 sysconfdir
773 datadir
774 datarootdir
775 libexecdir
776 sbindir
777 bindir
778 program_transform_name
779 prefix
780 exec_prefix
781 PACKAGE_URL
782 PACKAGE_BUGREPORT
783 PACKAGE_STRING
784 PACKAGE_VERSION
785 PACKAGE_TARNAME
786 PACKAGE_NAME
787 PATH_SEPARATOR
788 SHELL
789 WERROR_CFLAGS
790 WARN_CFLAGS'
791 ac_subst_files=''
792 ac_user_opts='
793 enable_option_checking
794 with_pkgversion
795 with_bugurl
796 with_system_zlib
797 enable_plugins
798 enable_shared
799 enable_static
800 with_pic
801 enable_fast_install
802 with_gnu_ld
803 enable_libtool_lock
804 enable_maintainer_mode
805 enable_dependency_tracking
806 enable_silent_rules
807 enable_sim
808 enable_example_sims
809 enable_targets
810 enable_sim_alignment
811 enable_sim_assert
812 enable_sim_debug
813 enable_sim_endian
814 enable_sim_environment
815 enable_sim_profile
816 enable_sim_stdio
817 enable_sim_trace
818 enable_werror
819 enable_build_warnings
820 enable_sim_build_warnings
821 '
822 ac_precious_vars='build_alias
823 host_alias
824 target_alias
825 CC
826 CFLAGS
827 LDFLAGS
828 LIBS
829 CPPFLAGS
830 CPP'
831 ac_subdirs_all='aarch64
832 arm
833 avr
834 bfin
835 bpf
836 cr16
837 cris
838 d10v
839 frv
840 h8300
841 iq2000
842 lm32
843 m32c
844 m32r
845 m68hc11
846 mcore
847 microblaze
848 mips
849 mn10300
850 moxie
851 msp430
852 or1k
853 pru
854 riscv
855 rl78
856 rx
857 sh
858 erc32
859 ppc
860 ft32
861 v850
862 example-synacor'
863
864 # Initialize some variables set by options.
865 ac_init_help=
866 ac_init_version=false
867 ac_unrecognized_opts=
868 ac_unrecognized_sep=
869 # The variables have the same names as the options, with
870 # dashes changed to underlines.
871 cache_file=/dev/null
872 exec_prefix=NONE
873 no_create=
874 no_recursion=
875 prefix=NONE
876 program_prefix=NONE
877 program_suffix=NONE
878 program_transform_name=s,x,x,
879 silent=
880 site=
881 srcdir=
882 verbose=
883 x_includes=NONE
884 x_libraries=NONE
885
886 # Installation directory options.
887 # These are left unexpanded so users can "make install exec_prefix=/foo"
888 # and all the variables that are supposed to be based on exec_prefix
889 # by default will actually change.
890 # Use braces instead of parens because sh, perl, etc. also accept them.
891 # (The list follows the same order as the GNU Coding Standards.)
892 bindir='${exec_prefix}/bin'
893 sbindir='${exec_prefix}/sbin'
894 libexecdir='${exec_prefix}/libexec'
895 datarootdir='${prefix}/share'
896 datadir='${datarootdir}'
897 sysconfdir='${prefix}/etc'
898 sharedstatedir='${prefix}/com'
899 localstatedir='${prefix}/var'
900 includedir='${prefix}/include'
901 oldincludedir='/usr/include'
902 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
903 infodir='${datarootdir}/info'
904 htmldir='${docdir}'
905 dvidir='${docdir}'
906 pdfdir='${docdir}'
907 psdir='${docdir}'
908 libdir='${exec_prefix}/lib'
909 localedir='${datarootdir}/locale'
910 mandir='${datarootdir}/man'
911
912 ac_prev=
913 ac_dashdash=
914 for ac_option
915 do
916 # If the previous option needs an argument, assign it.
917 if test -n "$ac_prev"; then
918 eval $ac_prev=\$ac_option
919 ac_prev=
920 continue
921 fi
922
923 case $ac_option in
924 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
925 *=) ac_optarg= ;;
926 *) ac_optarg=yes ;;
927 esac
928
929 # Accept the important Cygnus configure options, so we can diagnose typos.
930
931 case $ac_dashdash$ac_option in
932 --)
933 ac_dashdash=yes ;;
934
935 -bindir | --bindir | --bindi | --bind | --bin | --bi)
936 ac_prev=bindir ;;
937 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
938 bindir=$ac_optarg ;;
939
940 -build | --build | --buil | --bui | --bu)
941 ac_prev=build_alias ;;
942 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
943 build_alias=$ac_optarg ;;
944
945 -cache-file | --cache-file | --cache-fil | --cache-fi \
946 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
947 ac_prev=cache_file ;;
948 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
949 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
950 cache_file=$ac_optarg ;;
951
952 --config-cache | -C)
953 cache_file=config.cache ;;
954
955 -datadir | --datadir | --datadi | --datad)
956 ac_prev=datadir ;;
957 -datadir=* | --datadir=* | --datadi=* | --datad=*)
958 datadir=$ac_optarg ;;
959
960 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
961 | --dataroo | --dataro | --datar)
962 ac_prev=datarootdir ;;
963 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
964 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
965 datarootdir=$ac_optarg ;;
966
967 -disable-* | --disable-*)
968 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
969 # Reject names that are not valid shell variable names.
970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971 as_fn_error $? "invalid feature name: $ac_useropt"
972 ac_useropt_orig=$ac_useropt
973 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974 case $ac_user_opts in
975 *"
976 "enable_$ac_useropt"
977 "*) ;;
978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
979 ac_unrecognized_sep=', ';;
980 esac
981 eval enable_$ac_useropt=no ;;
982
983 -docdir | --docdir | --docdi | --doc | --do)
984 ac_prev=docdir ;;
985 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
986 docdir=$ac_optarg ;;
987
988 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
989 ac_prev=dvidir ;;
990 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
991 dvidir=$ac_optarg ;;
992
993 -enable-* | --enable-*)
994 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
995 # Reject names that are not valid shell variable names.
996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
997 as_fn_error $? "invalid feature name: $ac_useropt"
998 ac_useropt_orig=$ac_useropt
999 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1000 case $ac_user_opts in
1001 *"
1002 "enable_$ac_useropt"
1003 "*) ;;
1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1005 ac_unrecognized_sep=', ';;
1006 esac
1007 eval enable_$ac_useropt=\$ac_optarg ;;
1008
1009 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1010 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1011 | --exec | --exe | --ex)
1012 ac_prev=exec_prefix ;;
1013 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1014 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1015 | --exec=* | --exe=* | --ex=*)
1016 exec_prefix=$ac_optarg ;;
1017
1018 -gas | --gas | --ga | --g)
1019 # Obsolete; use --with-gas.
1020 with_gas=yes ;;
1021
1022 -help | --help | --hel | --he | -h)
1023 ac_init_help=long ;;
1024 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1025 ac_init_help=recursive ;;
1026 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1027 ac_init_help=short ;;
1028
1029 -host | --host | --hos | --ho)
1030 ac_prev=host_alias ;;
1031 -host=* | --host=* | --hos=* | --ho=*)
1032 host_alias=$ac_optarg ;;
1033
1034 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1035 ac_prev=htmldir ;;
1036 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1037 | --ht=*)
1038 htmldir=$ac_optarg ;;
1039
1040 -includedir | --includedir | --includedi | --included | --include \
1041 | --includ | --inclu | --incl | --inc)
1042 ac_prev=includedir ;;
1043 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1044 | --includ=* | --inclu=* | --incl=* | --inc=*)
1045 includedir=$ac_optarg ;;
1046
1047 -infodir | --infodir | --infodi | --infod | --info | --inf)
1048 ac_prev=infodir ;;
1049 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1050 infodir=$ac_optarg ;;
1051
1052 -libdir | --libdir | --libdi | --libd)
1053 ac_prev=libdir ;;
1054 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1055 libdir=$ac_optarg ;;
1056
1057 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1058 | --libexe | --libex | --libe)
1059 ac_prev=libexecdir ;;
1060 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1061 | --libexe=* | --libex=* | --libe=*)
1062 libexecdir=$ac_optarg ;;
1063
1064 -localedir | --localedir | --localedi | --localed | --locale)
1065 ac_prev=localedir ;;
1066 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1067 localedir=$ac_optarg ;;
1068
1069 -localstatedir | --localstatedir | --localstatedi | --localstated \
1070 | --localstate | --localstat | --localsta | --localst | --locals)
1071 ac_prev=localstatedir ;;
1072 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1073 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1074 localstatedir=$ac_optarg ;;
1075
1076 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1077 ac_prev=mandir ;;
1078 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1079 mandir=$ac_optarg ;;
1080
1081 -nfp | --nfp | --nf)
1082 # Obsolete; use --without-fp.
1083 with_fp=no ;;
1084
1085 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1086 | --no-cr | --no-c | -n)
1087 no_create=yes ;;
1088
1089 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1090 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1091 no_recursion=yes ;;
1092
1093 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1094 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1095 | --oldin | --oldi | --old | --ol | --o)
1096 ac_prev=oldincludedir ;;
1097 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1098 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1099 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1100 oldincludedir=$ac_optarg ;;
1101
1102 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1103 ac_prev=prefix ;;
1104 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1105 prefix=$ac_optarg ;;
1106
1107 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1108 | --program-pre | --program-pr | --program-p)
1109 ac_prev=program_prefix ;;
1110 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1111 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1112 program_prefix=$ac_optarg ;;
1113
1114 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1115 | --program-suf | --program-su | --program-s)
1116 ac_prev=program_suffix ;;
1117 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1118 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1119 program_suffix=$ac_optarg ;;
1120
1121 -program-transform-name | --program-transform-name \
1122 | --program-transform-nam | --program-transform-na \
1123 | --program-transform-n | --program-transform- \
1124 | --program-transform | --program-transfor \
1125 | --program-transfo | --program-transf \
1126 | --program-trans | --program-tran \
1127 | --progr-tra | --program-tr | --program-t)
1128 ac_prev=program_transform_name ;;
1129 -program-transform-name=* | --program-transform-name=* \
1130 | --program-transform-nam=* | --program-transform-na=* \
1131 | --program-transform-n=* | --program-transform-=* \
1132 | --program-transform=* | --program-transfor=* \
1133 | --program-transfo=* | --program-transf=* \
1134 | --program-trans=* | --program-tran=* \
1135 | --progr-tra=* | --program-tr=* | --program-t=*)
1136 program_transform_name=$ac_optarg ;;
1137
1138 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1139 ac_prev=pdfdir ;;
1140 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1141 pdfdir=$ac_optarg ;;
1142
1143 -psdir | --psdir | --psdi | --psd | --ps)
1144 ac_prev=psdir ;;
1145 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1146 psdir=$ac_optarg ;;
1147
1148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1149 | -silent | --silent | --silen | --sile | --sil)
1150 silent=yes ;;
1151
1152 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1153 ac_prev=sbindir ;;
1154 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1155 | --sbi=* | --sb=*)
1156 sbindir=$ac_optarg ;;
1157
1158 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1159 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1160 | --sharedst | --shareds | --shared | --share | --shar \
1161 | --sha | --sh)
1162 ac_prev=sharedstatedir ;;
1163 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1164 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1165 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1166 | --sha=* | --sh=*)
1167 sharedstatedir=$ac_optarg ;;
1168
1169 -site | --site | --sit)
1170 ac_prev=site ;;
1171 -site=* | --site=* | --sit=*)
1172 site=$ac_optarg ;;
1173
1174 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1175 ac_prev=srcdir ;;
1176 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1177 srcdir=$ac_optarg ;;
1178
1179 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1180 | --syscon | --sysco | --sysc | --sys | --sy)
1181 ac_prev=sysconfdir ;;
1182 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1183 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1184 sysconfdir=$ac_optarg ;;
1185
1186 -target | --target | --targe | --targ | --tar | --ta | --t)
1187 ac_prev=target_alias ;;
1188 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1189 target_alias=$ac_optarg ;;
1190
1191 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1192 verbose=yes ;;
1193
1194 -version | --version | --versio | --versi | --vers | -V)
1195 ac_init_version=: ;;
1196
1197 -with-* | --with-*)
1198 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201 as_fn_error $? "invalid package name: $ac_useropt"
1202 ac_useropt_orig=$ac_useropt
1203 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1204 case $ac_user_opts in
1205 *"
1206 "with_$ac_useropt"
1207 "*) ;;
1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1209 ac_unrecognized_sep=', ';;
1210 esac
1211 eval with_$ac_useropt=\$ac_optarg ;;
1212
1213 -without-* | --without-*)
1214 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1215 # Reject names that are not valid shell variable names.
1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1217 as_fn_error $? "invalid package name: $ac_useropt"
1218 ac_useropt_orig=$ac_useropt
1219 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1220 case $ac_user_opts in
1221 *"
1222 "with_$ac_useropt"
1223 "*) ;;
1224 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1225 ac_unrecognized_sep=', ';;
1226 esac
1227 eval with_$ac_useropt=no ;;
1228
1229 --x)
1230 # Obsolete; use --with-x.
1231 with_x=yes ;;
1232
1233 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1234 | --x-incl | --x-inc | --x-in | --x-i)
1235 ac_prev=x_includes ;;
1236 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1237 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1238 x_includes=$ac_optarg ;;
1239
1240 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1241 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1242 ac_prev=x_libraries ;;
1243 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1244 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1245 x_libraries=$ac_optarg ;;
1246
1247 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1248 Try \`$0 --help' for more information"
1249 ;;
1250
1251 *=*)
1252 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1253 # Reject names that are not valid shell variable names.
1254 case $ac_envvar in #(
1255 '' | [0-9]* | *[!_$as_cr_alnum]* )
1256 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1257 esac
1258 eval $ac_envvar=\$ac_optarg
1259 export $ac_envvar ;;
1260
1261 *)
1262 # FIXME: should be removed in autoconf 3.0.
1263 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1264 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1265 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1266 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1267 ;;
1268
1269 esac
1270 done
1271
1272 if test -n "$ac_prev"; then
1273 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1274 as_fn_error $? "missing argument to $ac_option"
1275 fi
1276
1277 if test -n "$ac_unrecognized_opts"; then
1278 case $enable_option_checking in
1279 no) ;;
1280 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1281 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1282 esac
1283 fi
1284
1285 # Check all directory arguments for consistency.
1286 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1287 datadir sysconfdir sharedstatedir localstatedir includedir \
1288 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1289 libdir localedir mandir
1290 do
1291 eval ac_val=\$$ac_var
1292 # Remove trailing slashes.
1293 case $ac_val in
1294 */ )
1295 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1296 eval $ac_var=\$ac_val;;
1297 esac
1298 # Be sure to have absolute directory names.
1299 case $ac_val in
1300 [\\/$]* | ?:[\\/]* ) continue;;
1301 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1302 esac
1303 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1304 done
1305
1306 # There might be people who depend on the old broken behavior: `$host'
1307 # used to hold the argument of --host etc.
1308 # FIXME: To remove some day.
1309 build=$build_alias
1310 host=$host_alias
1311 target=$target_alias
1312
1313 # FIXME: To remove some day.
1314 if test "x$host_alias" != x; then
1315 if test "x$build_alias" = x; then
1316 cross_compiling=maybe
1317 elif test "x$build_alias" != "x$host_alias"; then
1318 cross_compiling=yes
1319 fi
1320 fi
1321
1322 ac_tool_prefix=
1323 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1324
1325 test "$silent" = yes && exec 6>/dev/null
1326
1327
1328 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1329 ac_ls_di=`ls -di .` &&
1330 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1331 as_fn_error $? "working directory cannot be determined"
1332 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1333 as_fn_error $? "pwd does not report name of working directory"
1334
1335
1336 # Find the source files, if location was not specified.
1337 if test -z "$srcdir"; then
1338 ac_srcdir_defaulted=yes
1339 # Try the directory containing this script, then the parent directory.
1340 ac_confdir=`$as_dirname -- "$as_myself" ||
1341 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1342 X"$as_myself" : 'X\(//\)[^/]' \| \
1343 X"$as_myself" : 'X\(//\)$' \| \
1344 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1345 $as_echo X"$as_myself" |
1346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\/\)[^/].*/{
1351 s//\1/
1352 q
1353 }
1354 /^X\(\/\/\)$/{
1355 s//\1/
1356 q
1357 }
1358 /^X\(\/\).*/{
1359 s//\1/
1360 q
1361 }
1362 s/.*/./; q'`
1363 srcdir=$ac_confdir
1364 if test ! -r "$srcdir/$ac_unique_file"; then
1365 srcdir=..
1366 fi
1367 else
1368 ac_srcdir_defaulted=no
1369 fi
1370 if test ! -r "$srcdir/$ac_unique_file"; then
1371 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1372 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1373 fi
1374 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1375 ac_abs_confdir=`(
1376 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1377 pwd)`
1378 # When building in place, set srcdir=.
1379 if test "$ac_abs_confdir" = "$ac_pwd"; then
1380 srcdir=.
1381 fi
1382 # Remove unnecessary trailing slashes from srcdir.
1383 # Double slashes in file names in object file debugging info
1384 # mess up M-x gdb in Emacs.
1385 case $srcdir in
1386 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1387 esac
1388 for ac_var in $ac_precious_vars; do
1389 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1390 eval ac_env_${ac_var}_value=\$${ac_var}
1391 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1392 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1393 done
1394
1395 #
1396 # Report the --help message.
1397 #
1398 if test "$ac_init_help" = "long"; then
1399 # Omit some internal or obsolete options to make the list less imposing.
1400 # This message is too long to be a string in the A/UX 3.1 sh.
1401 cat <<_ACEOF
1402 \`configure' configures sim 0 to adapt to many kinds of systems.
1403
1404 Usage: $0 [OPTION]... [VAR=VALUE]...
1405
1406 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1407 VAR=VALUE. See below for descriptions of some of the useful variables.
1408
1409 Defaults for the options are specified in brackets.
1410
1411 Configuration:
1412 -h, --help display this help and exit
1413 --help=short display options specific to this package
1414 --help=recursive display the short help of all the included packages
1415 -V, --version display version information and exit
1416 -q, --quiet, --silent do not print \`checking ...' messages
1417 --cache-file=FILE cache test results in FILE [disabled]
1418 -C, --config-cache alias for \`--cache-file=config.cache'
1419 -n, --no-create do not create output files
1420 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1421
1422 Installation directories:
1423 --prefix=PREFIX install architecture-independent files in PREFIX
1424 [$ac_default_prefix]
1425 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1426 [PREFIX]
1427
1428 By default, \`make install' will install all the files in
1429 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1430 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1431 for instance \`--prefix=\$HOME'.
1432
1433 For better control, use the options below.
1434
1435 Fine tuning of the installation directories:
1436 --bindir=DIR user executables [EPREFIX/bin]
1437 --sbindir=DIR system admin executables [EPREFIX/sbin]
1438 --libexecdir=DIR program executables [EPREFIX/libexec]
1439 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1440 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1441 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1442 --libdir=DIR object code libraries [EPREFIX/lib]
1443 --includedir=DIR C header files [PREFIX/include]
1444 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1445 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1446 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1447 --infodir=DIR info documentation [DATAROOTDIR/info]
1448 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1449 --mandir=DIR man documentation [DATAROOTDIR/man]
1450 --docdir=DIR documentation root [DATAROOTDIR/doc/sim]
1451 --htmldir=DIR html documentation [DOCDIR]
1452 --dvidir=DIR dvi documentation [DOCDIR]
1453 --pdfdir=DIR pdf documentation [DOCDIR]
1454 --psdir=DIR ps documentation [DOCDIR]
1455 _ACEOF
1456
1457 cat <<\_ACEOF
1458
1459 Program names:
1460 --program-prefix=PREFIX prepend PREFIX to installed program names
1461 --program-suffix=SUFFIX append SUFFIX to installed program names
1462 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1463
1464 System types:
1465 --build=BUILD configure for building on BUILD [guessed]
1466 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1467 --target=TARGET configure for building compilers for TARGET [HOST]
1468 _ACEOF
1469 fi
1470
1471 if test -n "$ac_init_help"; then
1472 case $ac_init_help in
1473 short | recursive ) echo "Configuration of sim 0:";;
1474 esac
1475 cat <<\_ACEOF
1476
1477 Optional Features:
1478 --disable-option-checking ignore unrecognized --enable/--with options
1479 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1480 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1481 --enable-plugins Enable support for plugins
1482 --enable-shared[=PKGS] build shared libraries [default=yes]
1483 --enable-static[=PKGS] build static libraries [default=yes]
1484 --enable-fast-install[=PKGS]
1485 optimize for fast installation [default=yes]
1486 --disable-libtool-lock avoid locking (might break parallel builds)
1487 --enable-maintainer-mode
1488 enable make rules and dependencies not useful (and
1489 sometimes confusing) to the casual installer
1490 --enable-dependency-tracking
1491 do not reject slow dependency extractors
1492 --disable-dependency-tracking
1493 speeds up one-time build
1494 --enable-silent-rules less verbose build output (undo: "make V=1")
1495 --disable-silent-rules verbose build output (undo: "make V=0")
1496 --enable-sim Enable the GNU simulator
1497 --enable-example-sims enable example GNU simulators
1498 --enable-targets alternative target configurations
1499 --enable-sim-alignment=align
1500 Specify strict, nonstrict or forced alignment of
1501 memory accesses
1502 --enable-sim-assert Specify whether to perform random assertions
1503 --enable-sim-debug=opts Enable debugging flags (for developers of the sim
1504 itself)
1505 --enable-sim-endian=endian
1506 Specify target byte endian orientation
1507 --enable-sim-environment=environment
1508 Specify mixed, user, virtual or operating
1509 environment
1510 --enable-sim-profile=opts
1511 Enable profiling flags
1512 --enable-sim-stdio Specify whether to use stdio for console
1513 input/output
1514 --enable-sim-trace=opts Enable tracing of simulated programs
1515 --enable-werror treat compile warnings as errors
1516 --enable-build-warnings enable build-time compiler warnings if gcc is used
1517 --enable-sim-build-warnings
1518 enable SIM specific build-time compiler warnings if
1519 gcc is used
1520
1521 Optional Packages:
1522 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1523 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1524 --with-pkgversion=PKG Use PKG in the version string in place of "SIM"
1525 --with-bugurl=URL Direct users to URL to report a bug
1526 --with-system-zlib use installed libz
1527 --with-pic try to use only PIC/non-PIC objects [default=use
1528 both]
1529 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1530
1531 Some influential environment variables:
1532 CC C compiler command
1533 CFLAGS C compiler flags
1534 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1535 nonstandard directory <lib dir>
1536 LIBS libraries to pass to the linker, e.g. -l<library>
1537 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1538 you have headers in a nonstandard directory <include dir>
1539 CPP C preprocessor
1540
1541 Use these variables to override the choices made by `configure' or to help
1542 it to find libraries and programs with nonstandard names/locations.
1543
1544 Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
1545 sim home page: <https://sourceware.org/gdb/wiki/Sim/>.
1546 _ACEOF
1547 ac_status=$?
1548 fi
1549
1550 if test "$ac_init_help" = "recursive"; then
1551 # If there are subdirs, report their specific --help.
1552 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1553 test -d "$ac_dir" ||
1554 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1555 continue
1556 ac_builddir=.
1557
1558 case "$ac_dir" in
1559 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1560 *)
1561 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1562 # A ".." for each directory in $ac_dir_suffix.
1563 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1564 case $ac_top_builddir_sub in
1565 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1566 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1567 esac ;;
1568 esac
1569 ac_abs_top_builddir=$ac_pwd
1570 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1571 # for backward compatibility:
1572 ac_top_builddir=$ac_top_build_prefix
1573
1574 case $srcdir in
1575 .) # We are building in place.
1576 ac_srcdir=.
1577 ac_top_srcdir=$ac_top_builddir_sub
1578 ac_abs_top_srcdir=$ac_pwd ;;
1579 [\\/]* | ?:[\\/]* ) # Absolute name.
1580 ac_srcdir=$srcdir$ac_dir_suffix;
1581 ac_top_srcdir=$srcdir
1582 ac_abs_top_srcdir=$srcdir ;;
1583 *) # Relative name.
1584 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1585 ac_top_srcdir=$ac_top_build_prefix$srcdir
1586 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1587 esac
1588 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1589
1590 cd "$ac_dir" || { ac_status=$?; continue; }
1591 # Check for guested configure.
1592 if test -f "$ac_srcdir/configure.gnu"; then
1593 echo &&
1594 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1595 elif test -f "$ac_srcdir/configure"; then
1596 echo &&
1597 $SHELL "$ac_srcdir/configure" --help=recursive
1598 else
1599 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1600 fi || ac_status=$?
1601 cd "$ac_pwd" || { ac_status=$?; break; }
1602 done
1603 fi
1604
1605 test -n "$ac_init_help" && exit $ac_status
1606 if $ac_init_version; then
1607 cat <<\_ACEOF
1608 sim configure 0
1609 generated by GNU Autoconf 2.69
1610
1611 Copyright (C) 2012 Free Software Foundation, Inc.
1612 This configure script is free software; the Free Software Foundation
1613 gives unlimited permission to copy, distribute and modify it.
1614 _ACEOF
1615 exit
1616 fi
1617
1618 ## ------------------------ ##
1619 ## Autoconf initialization. ##
1620 ## ------------------------ ##
1621
1622 # ac_fn_c_try_compile LINENO
1623 # --------------------------
1624 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1625 ac_fn_c_try_compile ()
1626 {
1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628 rm -f conftest.$ac_objext
1629 if { { ac_try="$ac_compile"
1630 case "(($ac_try" in
1631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1632 *) ac_try_echo=$ac_try;;
1633 esac
1634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635 $as_echo "$ac_try_echo"; } >&5
1636 (eval "$ac_compile") 2>conftest.err
1637 ac_status=$?
1638 if test -s conftest.err; then
1639 grep -v '^ *+' conftest.err >conftest.er1
1640 cat conftest.er1 >&5
1641 mv -f conftest.er1 conftest.err
1642 fi
1643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1644 test $ac_status = 0; } && {
1645 test -z "$ac_c_werror_flag" ||
1646 test ! -s conftest.err
1647 } && test -s conftest.$ac_objext; then :
1648 ac_retval=0
1649 else
1650 $as_echo "$as_me: failed program was:" >&5
1651 sed 's/^/| /' conftest.$ac_ext >&5
1652
1653 ac_retval=1
1654 fi
1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656 as_fn_set_status $ac_retval
1657
1658 } # ac_fn_c_try_compile
1659
1660 # ac_fn_c_try_cpp LINENO
1661 # ----------------------
1662 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1663 ac_fn_c_try_cpp ()
1664 {
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 if { { ac_try="$ac_cpp conftest.$ac_ext"
1667 case "(($ac_try" in
1668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1669 *) ac_try_echo=$ac_try;;
1670 esac
1671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672 $as_echo "$ac_try_echo"; } >&5
1673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1674 ac_status=$?
1675 if test -s conftest.err; then
1676 grep -v '^ *+' conftest.err >conftest.er1
1677 cat conftest.er1 >&5
1678 mv -f conftest.er1 conftest.err
1679 fi
1680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681 test $ac_status = 0; } > conftest.i && {
1682 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1683 test ! -s conftest.err
1684 }; then :
1685 ac_retval=0
1686 else
1687 $as_echo "$as_me: failed program was:" >&5
1688 sed 's/^/| /' conftest.$ac_ext >&5
1689
1690 ac_retval=1
1691 fi
1692 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1693 as_fn_set_status $ac_retval
1694
1695 } # ac_fn_c_try_cpp
1696
1697 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1698 # -------------------------------------------------------
1699 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1700 # the include files in INCLUDES and setting the cache variable VAR
1701 # accordingly.
1702 ac_fn_c_check_header_mongrel ()
1703 {
1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705 if eval \${$3+:} false; then :
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1707 $as_echo_n "checking for $2... " >&6; }
1708 if eval \${$3+:} false; then :
1709 $as_echo_n "(cached) " >&6
1710 fi
1711 eval ac_res=\$$3
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1713 $as_echo "$ac_res" >&6; }
1714 else
1715 # Is the header compilable?
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1717 $as_echo_n "checking $2 usability... " >&6; }
1718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1719 /* end confdefs.h. */
1720 $4
1721 #include <$2>
1722 _ACEOF
1723 if ac_fn_c_try_compile "$LINENO"; then :
1724 ac_header_compiler=yes
1725 else
1726 ac_header_compiler=no
1727 fi
1728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1730 $as_echo "$ac_header_compiler" >&6; }
1731
1732 # Is the header present?
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1734 $as_echo_n "checking $2 presence... " >&6; }
1735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1736 /* end confdefs.h. */
1737 #include <$2>
1738 _ACEOF
1739 if ac_fn_c_try_cpp "$LINENO"; then :
1740 ac_header_preproc=yes
1741 else
1742 ac_header_preproc=no
1743 fi
1744 rm -f conftest.err conftest.i conftest.$ac_ext
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1746 $as_echo "$ac_header_preproc" >&6; }
1747
1748 # So? What about this header?
1749 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1750 yes:no: )
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1752 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1754 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1755 ;;
1756 no:yes:* )
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1758 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1760 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1762 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1764 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1766 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1767 ( $as_echo "## -------------------------------------------------------------------------------------- ##
1768 ## Report this to https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim ##
1769 ## -------------------------------------------------------------------------------------- ##"
1770 ) | sed "s/^/$as_me: WARNING: /" >&2
1771 ;;
1772 esac
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1774 $as_echo_n "checking for $2... " >&6; }
1775 if eval \${$3+:} false; then :
1776 $as_echo_n "(cached) " >&6
1777 else
1778 eval "$3=\$ac_header_compiler"
1779 fi
1780 eval ac_res=\$$3
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1782 $as_echo "$ac_res" >&6; }
1783 fi
1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785
1786 } # ac_fn_c_check_header_mongrel
1787
1788 # ac_fn_c_try_run LINENO
1789 # ----------------------
1790 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1791 # that executables *can* be run.
1792 ac_fn_c_try_run ()
1793 {
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 if { { ac_try="$ac_link"
1796 case "(($ac_try" in
1797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1798 *) ac_try_echo=$ac_try;;
1799 esac
1800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1801 $as_echo "$ac_try_echo"; } >&5
1802 (eval "$ac_link") 2>&5
1803 ac_status=$?
1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1806 { { case "(($ac_try" in
1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808 *) ac_try_echo=$ac_try;;
1809 esac
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 $as_echo "$ac_try_echo"; } >&5
1812 (eval "$ac_try") 2>&5
1813 ac_status=$?
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; }; }; then :
1816 ac_retval=0
1817 else
1818 $as_echo "$as_me: program exited with status $ac_status" >&5
1819 $as_echo "$as_me: failed program was:" >&5
1820 sed 's/^/| /' conftest.$ac_ext >&5
1821
1822 ac_retval=$ac_status
1823 fi
1824 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826 as_fn_set_status $ac_retval
1827
1828 } # ac_fn_c_try_run
1829
1830 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1831 # -------------------------------------------------------
1832 # Tests whether HEADER exists and can be compiled using the include files in
1833 # INCLUDES, setting the cache variable VAR accordingly.
1834 ac_fn_c_check_header_compile ()
1835 {
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1838 $as_echo_n "checking for $2... " >&6; }
1839 if eval \${$3+:} false; then :
1840 $as_echo_n "(cached) " >&6
1841 else
1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843 /* end confdefs.h. */
1844 $4
1845 #include <$2>
1846 _ACEOF
1847 if ac_fn_c_try_compile "$LINENO"; then :
1848 eval "$3=yes"
1849 else
1850 eval "$3=no"
1851 fi
1852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1853 fi
1854 eval ac_res=\$$3
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1856 $as_echo "$ac_res" >&6; }
1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858
1859 } # ac_fn_c_check_header_compile
1860
1861 # ac_fn_c_try_link LINENO
1862 # -----------------------
1863 # Try to link conftest.$ac_ext, and return whether this succeeded.
1864 ac_fn_c_try_link ()
1865 {
1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867 rm -f conftest.$ac_objext conftest$ac_exeext
1868 if { { ac_try="$ac_link"
1869 case "(($ac_try" in
1870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1871 *) ac_try_echo=$ac_try;;
1872 esac
1873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874 $as_echo "$ac_try_echo"; } >&5
1875 (eval "$ac_link") 2>conftest.err
1876 ac_status=$?
1877 if test -s conftest.err; then
1878 grep -v '^ *+' conftest.err >conftest.er1
1879 cat conftest.er1 >&5
1880 mv -f conftest.er1 conftest.err
1881 fi
1882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1883 test $ac_status = 0; } && {
1884 test -z "$ac_c_werror_flag" ||
1885 test ! -s conftest.err
1886 } && test -s conftest$ac_exeext && {
1887 test "$cross_compiling" = yes ||
1888 test -x conftest$ac_exeext
1889 }; then :
1890 ac_retval=0
1891 else
1892 $as_echo "$as_me: failed program was:" >&5
1893 sed 's/^/| /' conftest.$ac_ext >&5
1894
1895 ac_retval=1
1896 fi
1897 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1898 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1899 # interfere with the next link command; also delete a directory that is
1900 # left behind by Apple's compiler. We do this before executing the actions.
1901 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1902 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1903 as_fn_set_status $ac_retval
1904
1905 } # ac_fn_c_try_link
1906
1907 # ac_fn_c_check_func LINENO FUNC VAR
1908 # ----------------------------------
1909 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1910 ac_fn_c_check_func ()
1911 {
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1914 $as_echo_n "checking for $2... " >&6; }
1915 if eval \${$3+:} false; then :
1916 $as_echo_n "(cached) " >&6
1917 else
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919 /* end confdefs.h. */
1920 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1922 #define $2 innocuous_$2
1923
1924 /* System header to define __stub macros and hopefully few prototypes,
1925 which can conflict with char $2 (); below.
1926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1927 <limits.h> exists even on freestanding compilers. */
1928
1929 #ifdef __STDC__
1930 # include <limits.h>
1931 #else
1932 # include <assert.h>
1933 #endif
1934
1935 #undef $2
1936
1937 /* Override any GCC internal prototype to avoid an error.
1938 Use char because int might match the return type of a GCC
1939 builtin and then its argument prototype would still apply. */
1940 #ifdef __cplusplus
1941 extern "C"
1942 #endif
1943 char $2 ();
1944 /* The GNU C library defines this for functions which it implements
1945 to always fail with ENOSYS. Some functions are actually named
1946 something starting with __ and the normal name is an alias. */
1947 #if defined __stub_$2 || defined __stub___$2
1948 choke me
1949 #endif
1950
1951 int
1952 main ()
1953 {
1954 return $2 ();
1955 ;
1956 return 0;
1957 }
1958 _ACEOF
1959 if ac_fn_c_try_link "$LINENO"; then :
1960 eval "$3=yes"
1961 else
1962 eval "$3=no"
1963 fi
1964 rm -f core conftest.err conftest.$ac_objext \
1965 conftest$ac_exeext conftest.$ac_ext
1966 fi
1967 eval ac_res=\$$3
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1969 $as_echo "$ac_res" >&6; }
1970 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971
1972 } # ac_fn_c_check_func
1973
1974 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1975 # ----------------------------------------------------
1976 # Tries to find if the field MEMBER exists in type AGGR, after including
1977 # INCLUDES, setting cache variable VAR accordingly.
1978 ac_fn_c_check_member ()
1979 {
1980 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1982 $as_echo_n "checking for $2.$3... " >&6; }
1983 if eval \${$4+:} false; then :
1984 $as_echo_n "(cached) " >&6
1985 else
1986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987 /* end confdefs.h. */
1988 $5
1989 int
1990 main ()
1991 {
1992 static $2 ac_aggr;
1993 if (ac_aggr.$3)
1994 return 0;
1995 ;
1996 return 0;
1997 }
1998 _ACEOF
1999 if ac_fn_c_try_compile "$LINENO"; then :
2000 eval "$4=yes"
2001 else
2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003 /* end confdefs.h. */
2004 $5
2005 int
2006 main ()
2007 {
2008 static $2 ac_aggr;
2009 if (sizeof ac_aggr.$3)
2010 return 0;
2011 ;
2012 return 0;
2013 }
2014 _ACEOF
2015 if ac_fn_c_try_compile "$LINENO"; then :
2016 eval "$4=yes"
2017 else
2018 eval "$4=no"
2019 fi
2020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2021 fi
2022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2023 fi
2024 eval ac_res=\$$4
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2026 $as_echo "$ac_res" >&6; }
2027 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2028
2029 } # ac_fn_c_check_member
2030
2031 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2032 # ---------------------------------------------
2033 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2034 # accordingly.
2035 ac_fn_c_check_decl ()
2036 {
2037 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2038 as_decl_name=`echo $2|sed 's/ *(.*//'`
2039 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2041 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2042 if eval \${$3+:} false; then :
2043 $as_echo_n "(cached) " >&6
2044 else
2045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2046 /* end confdefs.h. */
2047 $4
2048 int
2049 main ()
2050 {
2051 #ifndef $as_decl_name
2052 #ifdef __cplusplus
2053 (void) $as_decl_use;
2054 #else
2055 (void) $as_decl_name;
2056 #endif
2057 #endif
2058
2059 ;
2060 return 0;
2061 }
2062 _ACEOF
2063 if ac_fn_c_try_compile "$LINENO"; then :
2064 eval "$3=yes"
2065 else
2066 eval "$3=no"
2067 fi
2068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069 fi
2070 eval ac_res=\$$3
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2072 $as_echo "$ac_res" >&6; }
2073 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2074
2075 } # ac_fn_c_check_decl
2076
2077 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2078 # -------------------------------------------
2079 # Tests whether TYPE exists after having included INCLUDES, setting cache
2080 # variable VAR accordingly.
2081 ac_fn_c_check_type ()
2082 {
2083 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2085 $as_echo_n "checking for $2... " >&6; }
2086 if eval \${$3+:} false; then :
2087 $as_echo_n "(cached) " >&6
2088 else
2089 eval "$3=no"
2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h. */
2092 $4
2093 int
2094 main ()
2095 {
2096 if (sizeof ($2))
2097 return 0;
2098 ;
2099 return 0;
2100 }
2101 _ACEOF
2102 if ac_fn_c_try_compile "$LINENO"; then :
2103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104 /* end confdefs.h. */
2105 $4
2106 int
2107 main ()
2108 {
2109 if (sizeof (($2)))
2110 return 0;
2111 ;
2112 return 0;
2113 }
2114 _ACEOF
2115 if ac_fn_c_try_compile "$LINENO"; then :
2116
2117 else
2118 eval "$3=yes"
2119 fi
2120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2121 fi
2122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2123 fi
2124 eval ac_res=\$$3
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2126 $as_echo "$ac_res" >&6; }
2127 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2128
2129 } # ac_fn_c_check_type
2130 cat >config.log <<_ACEOF
2131 This file contains any messages produced by compilers while
2132 running configure, to aid debugging if configure makes a mistake.
2133
2134 It was created by sim $as_me 0, which was
2135 generated by GNU Autoconf 2.69. Invocation command line was
2136
2137 $ $0 $@
2138
2139 _ACEOF
2140 exec 5>>config.log
2141 {
2142 cat <<_ASUNAME
2143 ## --------- ##
2144 ## Platform. ##
2145 ## --------- ##
2146
2147 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2148 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2149 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2150 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2151 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2152
2153 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2154 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2155
2156 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2157 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2158 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2159 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2160 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2161 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2162 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2163
2164 _ASUNAME
2165
2166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2167 for as_dir in $PATH
2168 do
2169 IFS=$as_save_IFS
2170 test -z "$as_dir" && as_dir=.
2171 $as_echo "PATH: $as_dir"
2172 done
2173 IFS=$as_save_IFS
2174
2175 } >&5
2176
2177 cat >&5 <<_ACEOF
2178
2179
2180 ## ----------- ##
2181 ## Core tests. ##
2182 ## ----------- ##
2183
2184 _ACEOF
2185
2186
2187 # Keep a trace of the command line.
2188 # Strip out --no-create and --no-recursion so they do not pile up.
2189 # Strip out --silent because we don't want to record it for future runs.
2190 # Also quote any args containing shell meta-characters.
2191 # Make two passes to allow for proper duplicate-argument suppression.
2192 ac_configure_args=
2193 ac_configure_args0=
2194 ac_configure_args1=
2195 ac_must_keep_next=false
2196 for ac_pass in 1 2
2197 do
2198 for ac_arg
2199 do
2200 case $ac_arg in
2201 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2202 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2203 | -silent | --silent | --silen | --sile | --sil)
2204 continue ;;
2205 *\'*)
2206 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2207 esac
2208 case $ac_pass in
2209 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2210 2)
2211 as_fn_append ac_configure_args1 " '$ac_arg'"
2212 if test $ac_must_keep_next = true; then
2213 ac_must_keep_next=false # Got value, back to normal.
2214 else
2215 case $ac_arg in
2216 *=* | --config-cache | -C | -disable-* | --disable-* \
2217 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2218 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2219 | -with-* | --with-* | -without-* | --without-* | --x)
2220 case "$ac_configure_args0 " in
2221 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2222 esac
2223 ;;
2224 -* ) ac_must_keep_next=true ;;
2225 esac
2226 fi
2227 as_fn_append ac_configure_args " '$ac_arg'"
2228 ;;
2229 esac
2230 done
2231 done
2232 { ac_configure_args0=; unset ac_configure_args0;}
2233 { ac_configure_args1=; unset ac_configure_args1;}
2234
2235 # When interrupted or exit'd, cleanup temporary files, and complete
2236 # config.log. We remove comments because anyway the quotes in there
2237 # would cause problems or look ugly.
2238 # WARNING: Use '\'' to represent an apostrophe within the trap.
2239 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2240 trap 'exit_status=$?
2241 # Save into config.log some information that might help in debugging.
2242 {
2243 echo
2244
2245 $as_echo "## ---------------- ##
2246 ## Cache variables. ##
2247 ## ---------------- ##"
2248 echo
2249 # The following way of writing the cache mishandles newlines in values,
2250 (
2251 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2252 eval ac_val=\$$ac_var
2253 case $ac_val in #(
2254 *${as_nl}*)
2255 case $ac_var in #(
2256 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2257 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2258 esac
2259 case $ac_var in #(
2260 _ | IFS | as_nl) ;; #(
2261 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2262 *) { eval $ac_var=; unset $ac_var;} ;;
2263 esac ;;
2264 esac
2265 done
2266 (set) 2>&1 |
2267 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2268 *${as_nl}ac_space=\ *)
2269 sed -n \
2270 "s/'\''/'\''\\\\'\'''\''/g;
2271 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2272 ;; #(
2273 *)
2274 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2275 ;;
2276 esac |
2277 sort
2278 )
2279 echo
2280
2281 $as_echo "## ----------------- ##
2282 ## Output variables. ##
2283 ## ----------------- ##"
2284 echo
2285 for ac_var in $ac_subst_vars
2286 do
2287 eval ac_val=\$$ac_var
2288 case $ac_val in
2289 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2290 esac
2291 $as_echo "$ac_var='\''$ac_val'\''"
2292 done | sort
2293 echo
2294
2295 if test -n "$ac_subst_files"; then
2296 $as_echo "## ------------------- ##
2297 ## File substitutions. ##
2298 ## ------------------- ##"
2299 echo
2300 for ac_var in $ac_subst_files
2301 do
2302 eval ac_val=\$$ac_var
2303 case $ac_val in
2304 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2305 esac
2306 $as_echo "$ac_var='\''$ac_val'\''"
2307 done | sort
2308 echo
2309 fi
2310
2311 if test -s confdefs.h; then
2312 $as_echo "## ----------- ##
2313 ## confdefs.h. ##
2314 ## ----------- ##"
2315 echo
2316 cat confdefs.h
2317 echo
2318 fi
2319 test "$ac_signal" != 0 &&
2320 $as_echo "$as_me: caught signal $ac_signal"
2321 $as_echo "$as_me: exit $exit_status"
2322 } >&5
2323 rm -f core *.core core.conftest.* &&
2324 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2325 exit $exit_status
2326 ' 0
2327 for ac_signal in 1 2 13 15; do
2328 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2329 done
2330 ac_signal=0
2331
2332 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2333 rm -f -r conftest* confdefs.h
2334
2335 $as_echo "/* confdefs.h */" > confdefs.h
2336
2337 # Predefined preprocessor variables.
2338
2339 cat >>confdefs.h <<_ACEOF
2340 #define PACKAGE_NAME "$PACKAGE_NAME"
2341 _ACEOF
2342
2343 cat >>confdefs.h <<_ACEOF
2344 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2345 _ACEOF
2346
2347 cat >>confdefs.h <<_ACEOF
2348 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2349 _ACEOF
2350
2351 cat >>confdefs.h <<_ACEOF
2352 #define PACKAGE_STRING "$PACKAGE_STRING"
2353 _ACEOF
2354
2355 cat >>confdefs.h <<_ACEOF
2356 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2357 _ACEOF
2358
2359 cat >>confdefs.h <<_ACEOF
2360 #define PACKAGE_URL "$PACKAGE_URL"
2361 _ACEOF
2362
2363
2364 # Let the site file select an alternate cache file if it wants to.
2365 # Prefer an explicitly selected file to automatically selected ones.
2366 ac_site_file1=NONE
2367 ac_site_file2=NONE
2368 if test -n "$CONFIG_SITE"; then
2369 # We do not want a PATH search for config.site.
2370 case $CONFIG_SITE in #((
2371 -*) ac_site_file1=./$CONFIG_SITE;;
2372 */*) ac_site_file1=$CONFIG_SITE;;
2373 *) ac_site_file1=./$CONFIG_SITE;;
2374 esac
2375 elif test "x$prefix" != xNONE; then
2376 ac_site_file1=$prefix/share/config.site
2377 ac_site_file2=$prefix/etc/config.site
2378 else
2379 ac_site_file1=$ac_default_prefix/share/config.site
2380 ac_site_file2=$ac_default_prefix/etc/config.site
2381 fi
2382 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2383 do
2384 test "x$ac_site_file" = xNONE && continue
2385 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2387 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2388 sed 's/^/| /' "$ac_site_file" >&5
2389 . "$ac_site_file" \
2390 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2391 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2392 as_fn_error $? "failed to load site script $ac_site_file
2393 See \`config.log' for more details" "$LINENO" 5; }
2394 fi
2395 done
2396
2397 if test -r "$cache_file"; then
2398 # Some versions of bash will fail to source /dev/null (special files
2399 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2400 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2402 $as_echo "$as_me: loading cache $cache_file" >&6;}
2403 case $cache_file in
2404 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2405 *) . "./$cache_file";;
2406 esac
2407 fi
2408 else
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2410 $as_echo "$as_me: creating cache $cache_file" >&6;}
2411 >$cache_file
2412 fi
2413
2414 as_fn_append ac_header_list " dlfcn.h"
2415 as_fn_append ac_header_list " fcntl.h"
2416 as_fn_append ac_header_list " fpu_control.h"
2417 as_fn_append ac_header_list " termios.h"
2418 as_fn_append ac_header_list " unistd.h"
2419 as_fn_append ac_header_list " utime.h"
2420 as_fn_append ac_header_list " linux/if_tun.h"
2421 as_fn_append ac_header_list " linux/mii.h"
2422 as_fn_append ac_header_list " linux/types.h"
2423 as_fn_append ac_header_list " net/if.h"
2424 as_fn_append ac_header_list " netinet/in.h"
2425 as_fn_append ac_header_list " netinet/tcp.h"
2426 as_fn_append ac_header_list " sys/ioctl.h"
2427 as_fn_append ac_header_list " sys/mman.h"
2428 as_fn_append ac_header_list " sys/mount.h"
2429 as_fn_append ac_header_list " sys/param.h"
2430 as_fn_append ac_header_list " sys/resource.h"
2431 as_fn_append ac_header_list " sys/socket.h"
2432 as_fn_append ac_header_list " sys/stat.h"
2433 as_fn_append ac_header_list " sys/statfs.h"
2434 as_fn_append ac_header_list " sys/termio.h"
2435 as_fn_append ac_header_list " sys/termios.h"
2436 as_fn_append ac_header_list " sys/types.h"
2437 as_fn_append ac_header_list " sys/vfs.h"
2438 as_fn_append ac_func_list " __setfpucw"
2439 as_fn_append ac_func_list " access"
2440 as_fn_append ac_func_list " aint"
2441 as_fn_append ac_func_list " anint"
2442 as_fn_append ac_func_list " cfgetispeed"
2443 as_fn_append ac_func_list " cfgetospeed"
2444 as_fn_append ac_func_list " cfsetispeed"
2445 as_fn_append ac_func_list " cfsetospeed"
2446 as_fn_append ac_func_list " chdir"
2447 as_fn_append ac_func_list " chmod"
2448 as_fn_append ac_func_list " dup"
2449 as_fn_append ac_func_list " dup2"
2450 as_fn_append ac_func_list " execv"
2451 as_fn_append ac_func_list " execve"
2452 as_fn_append ac_func_list " fcntl"
2453 as_fn_append ac_func_list " fork"
2454 as_fn_append ac_func_list " fstat"
2455 as_fn_append ac_func_list " fstatfs"
2456 as_fn_append ac_func_list " ftruncate"
2457 as_fn_append ac_func_list " getdirentries"
2458 as_fn_append ac_func_list " getegid"
2459 as_fn_append ac_func_list " geteuid"
2460 as_fn_append ac_func_list " getgid"
2461 as_fn_append ac_func_list " getpid"
2462 as_fn_append ac_func_list " getppid"
2463 as_fn_append ac_func_list " getrusage"
2464 as_fn_append ac_func_list " gettimeofday"
2465 as_fn_append ac_func_list " getuid"
2466 as_fn_append ac_func_list " ioctl"
2467 as_fn_append ac_func_list " kill"
2468 as_fn_append ac_func_list " link"
2469 as_fn_append ac_func_list " lseek"
2470 as_fn_append ac_func_list " mmap"
2471 as_fn_append ac_func_list " munmap"
2472 as_fn_append ac_func_list " pipe"
2473 as_fn_append ac_func_list " posix_fallocate"
2474 as_fn_append ac_func_list " pread"
2475 as_fn_append ac_func_list " rmdir"
2476 as_fn_append ac_func_list " setregid"
2477 as_fn_append ac_func_list " setreuid"
2478 as_fn_append ac_func_list " setgid"
2479 as_fn_append ac_func_list " setuid"
2480 as_fn_append ac_func_list " sigaction"
2481 as_fn_append ac_func_list " sigprocmask"
2482 as_fn_append ac_func_list " sqrt"
2483 as_fn_append ac_func_list " stat"
2484 as_fn_append ac_func_list " strsignal"
2485 as_fn_append ac_func_list " symlink"
2486 as_fn_append ac_func_list " tcdrain"
2487 as_fn_append ac_func_list " tcflow"
2488 as_fn_append ac_func_list " tcflush"
2489 as_fn_append ac_func_list " tcgetattr"
2490 as_fn_append ac_func_list " tcgetpgrp"
2491 as_fn_append ac_func_list " tcsendbreak"
2492 as_fn_append ac_func_list " tcsetattr"
2493 as_fn_append ac_func_list " tcsetpgrp"
2494 as_fn_append ac_func_list " time"
2495 as_fn_append ac_func_list " truncate"
2496 as_fn_append ac_func_list " umask"
2497 as_fn_append ac_func_list " unlink"
2498 as_fn_append ac_func_list " utime"
2499 # Check that the precious variables saved in the cache have kept the same
2500 # value.
2501 ac_cache_corrupted=false
2502 for ac_var in $ac_precious_vars; do
2503 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2504 eval ac_new_set=\$ac_env_${ac_var}_set
2505 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2506 eval ac_new_val=\$ac_env_${ac_var}_value
2507 case $ac_old_set,$ac_new_set in
2508 set,)
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2510 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2511 ac_cache_corrupted=: ;;
2512 ,set)
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2514 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2515 ac_cache_corrupted=: ;;
2516 ,);;
2517 *)
2518 if test "x$ac_old_val" != "x$ac_new_val"; then
2519 # differences in whitespace do not lead to failure.
2520 ac_old_val_w=`echo x $ac_old_val`
2521 ac_new_val_w=`echo x $ac_new_val`
2522 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2524 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2525 ac_cache_corrupted=:
2526 else
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2528 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2529 eval $ac_var=\$ac_old_val
2530 fi
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2532 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2534 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2535 fi;;
2536 esac
2537 # Pass precious variables to config.status.
2538 if test "$ac_new_set" = set; then
2539 case $ac_new_val in
2540 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2541 *) ac_arg=$ac_var=$ac_new_val ;;
2542 esac
2543 case " $ac_configure_args " in
2544 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2545 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2546 esac
2547 fi
2548 done
2549 if $ac_cache_corrupted; then
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2551 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2553 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2554 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2555 fi
2556 ## -------------------- ##
2557 ## Main body of script. ##
2558 ## -------------------- ##
2559
2560 ac_ext=c
2561 ac_cpp='$CPP $CPPFLAGS'
2562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2565
2566
2567
2568
2569
2570
2571
2572
2573 # Check whether --with-pkgversion was given.
2574 if test "${with_pkgversion+set}" = set; then :
2575 withval=$with_pkgversion; case "$withval" in
2576 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
2577 no) PKGVERSION= ;;
2578 *) PKGVERSION="($withval) " ;;
2579 esac
2580 else
2581 PKGVERSION="(SIM) "
2582
2583 fi
2584
2585
2586
2587
2588 cat >>confdefs.h <<_ACEOF
2589 #define PKGVERSION "$PKGVERSION"
2590 _ACEOF
2591
2592
2593
2594 # Check whether --with-bugurl was given.
2595 if test "${with_bugurl+set}" = set; then :
2596 withval=$with_bugurl; case "$withval" in
2597 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
2598 no) BUGURL=
2599 ;;
2600 *) BUGURL="$withval"
2601 ;;
2602 esac
2603 else
2604 BUGURL="$PACKAGE_BUGREPORT"
2605
2606 fi
2607
2608 case ${BUGURL} in
2609 "")
2610 REPORT_BUGS_TO=
2611 REPORT_BUGS_TEXI=
2612 ;;
2613 *)
2614 REPORT_BUGS_TO="<$BUGURL>"
2615 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
2616 ;;
2617 esac;
2618
2619
2620
2621
2622 cat >>confdefs.h <<_ACEOF
2623 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
2624 _ACEOF
2625
2626
2627 ac_config_headers="$ac_config_headers config.h"
2628
2629
2630 ac_aux_dir=
2631 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2632 if test -f "$ac_dir/install-sh"; then
2633 ac_aux_dir=$ac_dir
2634 ac_install_sh="$ac_aux_dir/install-sh -c"
2635 break
2636 elif test -f "$ac_dir/install.sh"; then
2637 ac_aux_dir=$ac_dir
2638 ac_install_sh="$ac_aux_dir/install.sh -c"
2639 break
2640 elif test -f "$ac_dir/shtool"; then
2641 ac_aux_dir=$ac_dir
2642 ac_install_sh="$ac_aux_dir/shtool install -c"
2643 break
2644 fi
2645 done
2646 if test -z "$ac_aux_dir"; then
2647 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2648 fi
2649
2650 # These three variables are undocumented and unsupported,
2651 # and are intended to be withdrawn in a future Autoconf release.
2652 # They can cause serious problems if a builder's source tree is in a directory
2653 # whose full name contains unusual characters.
2654 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2655 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2656 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2657
2658
2659 # Make sure we can run config.sub.
2660 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2661 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2662
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2664 $as_echo_n "checking build system type... " >&6; }
2665 if ${ac_cv_build+:} false; then :
2666 $as_echo_n "(cached) " >&6
2667 else
2668 ac_build_alias=$build_alias
2669 test "x$ac_build_alias" = x &&
2670 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2671 test "x$ac_build_alias" = x &&
2672 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2673 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2674 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2675
2676 fi
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2678 $as_echo "$ac_cv_build" >&6; }
2679 case $ac_cv_build in
2680 *-*-*) ;;
2681 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2682 esac
2683 build=$ac_cv_build
2684 ac_save_IFS=$IFS; IFS='-'
2685 set x $ac_cv_build
2686 shift
2687 build_cpu=$1
2688 build_vendor=$2
2689 shift; shift
2690 # Remember, the first character of IFS is used to create $*,
2691 # except with old shells:
2692 build_os=$*
2693 IFS=$ac_save_IFS
2694 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2695
2696
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2698 $as_echo_n "checking host system type... " >&6; }
2699 if ${ac_cv_host+:} false; then :
2700 $as_echo_n "(cached) " >&6
2701 else
2702 if test "x$host_alias" = x; then
2703 ac_cv_host=$ac_cv_build
2704 else
2705 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2706 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2707 fi
2708
2709 fi
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2711 $as_echo "$ac_cv_host" >&6; }
2712 case $ac_cv_host in
2713 *-*-*) ;;
2714 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2715 esac
2716 host=$ac_cv_host
2717 ac_save_IFS=$IFS; IFS='-'
2718 set x $ac_cv_host
2719 shift
2720 host_cpu=$1
2721 host_vendor=$2
2722 shift; shift
2723 # Remember, the first character of IFS is used to create $*,
2724 # except with old shells:
2725 host_os=$*
2726 IFS=$ac_save_IFS
2727 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2728
2729
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2731 $as_echo_n "checking target system type... " >&6; }
2732 if ${ac_cv_target+:} false; then :
2733 $as_echo_n "(cached) " >&6
2734 else
2735 if test "x$target_alias" = x; then
2736 ac_cv_target=$ac_cv_host
2737 else
2738 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2739 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2740 fi
2741
2742 fi
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2744 $as_echo "$ac_cv_target" >&6; }
2745 case $ac_cv_target in
2746 *-*-*) ;;
2747 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2748 esac
2749 target=$ac_cv_target
2750 ac_save_IFS=$IFS; IFS='-'
2751 set x $ac_cv_target
2752 shift
2753 target_cpu=$1
2754 target_vendor=$2
2755 shift; shift
2756 # Remember, the first character of IFS is used to create $*,
2757 # except with old shells:
2758 target_os=$*
2759 IFS=$ac_save_IFS
2760 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2761
2762
2763 # The aliases save the names the user supplied, while $host etc.
2764 # will get canonicalized.
2765 test -n "$target_alias" &&
2766 test "$program_prefix$program_suffix$program_transform_name" = \
2767 NONENONEs,x,x, &&
2768 program_prefix=${target_alias}-
2769 # Expand $ac_aux_dir to an absolute path.
2770 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2771
2772 ac_ext=c
2773 ac_cpp='$CPP $CPPFLAGS'
2774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2777 if test -n "$ac_tool_prefix"; then
2778 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2779 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2781 $as_echo_n "checking for $ac_word... " >&6; }
2782 if ${ac_cv_prog_CC+:} false; then :
2783 $as_echo_n "(cached) " >&6
2784 else
2785 if test -n "$CC"; then
2786 ac_cv_prog_CC="$CC" # Let the user override the test.
2787 else
2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789 for as_dir in $PATH
2790 do
2791 IFS=$as_save_IFS
2792 test -z "$as_dir" && as_dir=.
2793 for ac_exec_ext in '' $ac_executable_extensions; do
2794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2795 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2797 break 2
2798 fi
2799 done
2800 done
2801 IFS=$as_save_IFS
2802
2803 fi
2804 fi
2805 CC=$ac_cv_prog_CC
2806 if test -n "$CC"; then
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2808 $as_echo "$CC" >&6; }
2809 else
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2811 $as_echo "no" >&6; }
2812 fi
2813
2814
2815 fi
2816 if test -z "$ac_cv_prog_CC"; then
2817 ac_ct_CC=$CC
2818 # Extract the first word of "gcc", so it can be a program name with args.
2819 set dummy gcc; ac_word=$2
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2821 $as_echo_n "checking for $ac_word... " >&6; }
2822 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2823 $as_echo_n "(cached) " >&6
2824 else
2825 if test -n "$ac_ct_CC"; then
2826 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2827 else
2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 for as_dir in $PATH
2830 do
2831 IFS=$as_save_IFS
2832 test -z "$as_dir" && as_dir=.
2833 for ac_exec_ext in '' $ac_executable_extensions; do
2834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2835 ac_cv_prog_ac_ct_CC="gcc"
2836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 break 2
2838 fi
2839 done
2840 done
2841 IFS=$as_save_IFS
2842
2843 fi
2844 fi
2845 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2846 if test -n "$ac_ct_CC"; then
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2848 $as_echo "$ac_ct_CC" >&6; }
2849 else
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2851 $as_echo "no" >&6; }
2852 fi
2853
2854 if test "x$ac_ct_CC" = x; then
2855 CC=""
2856 else
2857 case $cross_compiling:$ac_tool_warned in
2858 yes:)
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2861 ac_tool_warned=yes ;;
2862 esac
2863 CC=$ac_ct_CC
2864 fi
2865 else
2866 CC="$ac_cv_prog_CC"
2867 fi
2868
2869 if test -z "$CC"; then
2870 if test -n "$ac_tool_prefix"; then
2871 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2872 set dummy ${ac_tool_prefix}cc; ac_word=$2
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2874 $as_echo_n "checking for $ac_word... " >&6; }
2875 if ${ac_cv_prog_CC+:} false; then :
2876 $as_echo_n "(cached) " >&6
2877 else
2878 if test -n "$CC"; then
2879 ac_cv_prog_CC="$CC" # Let the user override the test.
2880 else
2881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882 for as_dir in $PATH
2883 do
2884 IFS=$as_save_IFS
2885 test -z "$as_dir" && as_dir=.
2886 for ac_exec_ext in '' $ac_executable_extensions; do
2887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2888 ac_cv_prog_CC="${ac_tool_prefix}cc"
2889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2890 break 2
2891 fi
2892 done
2893 done
2894 IFS=$as_save_IFS
2895
2896 fi
2897 fi
2898 CC=$ac_cv_prog_CC
2899 if test -n "$CC"; then
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2901 $as_echo "$CC" >&6; }
2902 else
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2904 $as_echo "no" >&6; }
2905 fi
2906
2907
2908 fi
2909 fi
2910 if test -z "$CC"; then
2911 # Extract the first word of "cc", so it can be a program name with args.
2912 set dummy cc; ac_word=$2
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2914 $as_echo_n "checking for $ac_word... " >&6; }
2915 if ${ac_cv_prog_CC+:} false; then :
2916 $as_echo_n "(cached) " >&6
2917 else
2918 if test -n "$CC"; then
2919 ac_cv_prog_CC="$CC" # Let the user override the test.
2920 else
2921 ac_prog_rejected=no
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 for as_dir in $PATH
2924 do
2925 IFS=$as_save_IFS
2926 test -z "$as_dir" && as_dir=.
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2929 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2930 ac_prog_rejected=yes
2931 continue
2932 fi
2933 ac_cv_prog_CC="cc"
2934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2935 break 2
2936 fi
2937 done
2938 done
2939 IFS=$as_save_IFS
2940
2941 if test $ac_prog_rejected = yes; then
2942 # We found a bogon in the path, so make sure we never use it.
2943 set dummy $ac_cv_prog_CC
2944 shift
2945 if test $# != 0; then
2946 # We chose a different compiler from the bogus one.
2947 # However, it has the same basename, so the bogon will be chosen
2948 # first if we set CC to just the basename; use the full file name.
2949 shift
2950 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2951 fi
2952 fi
2953 fi
2954 fi
2955 CC=$ac_cv_prog_CC
2956 if test -n "$CC"; then
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2958 $as_echo "$CC" >&6; }
2959 else
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2961 $as_echo "no" >&6; }
2962 fi
2963
2964
2965 fi
2966 if test -z "$CC"; then
2967 if test -n "$ac_tool_prefix"; then
2968 for ac_prog in cl.exe
2969 do
2970 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2971 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2973 $as_echo_n "checking for $ac_word... " >&6; }
2974 if ${ac_cv_prog_CC+:} false; then :
2975 $as_echo_n "(cached) " >&6
2976 else
2977 if test -n "$CC"; then
2978 ac_cv_prog_CC="$CC" # Let the user override the test.
2979 else
2980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981 for as_dir in $PATH
2982 do
2983 IFS=$as_save_IFS
2984 test -z "$as_dir" && as_dir=.
2985 for ac_exec_ext in '' $ac_executable_extensions; do
2986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2987 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2989 break 2
2990 fi
2991 done
2992 done
2993 IFS=$as_save_IFS
2994
2995 fi
2996 fi
2997 CC=$ac_cv_prog_CC
2998 if test -n "$CC"; then
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3000 $as_echo "$CC" >&6; }
3001 else
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3003 $as_echo "no" >&6; }
3004 fi
3005
3006
3007 test -n "$CC" && break
3008 done
3009 fi
3010 if test -z "$CC"; then
3011 ac_ct_CC=$CC
3012 for ac_prog in cl.exe
3013 do
3014 # Extract the first word of "$ac_prog", so it can be a program name with args.
3015 set dummy $ac_prog; ac_word=$2
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3017 $as_echo_n "checking for $ac_word... " >&6; }
3018 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3019 $as_echo_n "(cached) " >&6
3020 else
3021 if test -n "$ac_ct_CC"; then
3022 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3023 else
3024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3025 for as_dir in $PATH
3026 do
3027 IFS=$as_save_IFS
3028 test -z "$as_dir" && as_dir=.
3029 for ac_exec_ext in '' $ac_executable_extensions; do
3030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3031 ac_cv_prog_ac_ct_CC="$ac_prog"
3032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3033 break 2
3034 fi
3035 done
3036 done
3037 IFS=$as_save_IFS
3038
3039 fi
3040 fi
3041 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3042 if test -n "$ac_ct_CC"; then
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3044 $as_echo "$ac_ct_CC" >&6; }
3045 else
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3047 $as_echo "no" >&6; }
3048 fi
3049
3050
3051 test -n "$ac_ct_CC" && break
3052 done
3053
3054 if test "x$ac_ct_CC" = x; then
3055 CC=""
3056 else
3057 case $cross_compiling:$ac_tool_warned in
3058 yes:)
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3060 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3061 ac_tool_warned=yes ;;
3062 esac
3063 CC=$ac_ct_CC
3064 fi
3065 fi
3066
3067 fi
3068
3069
3070 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3072 as_fn_error $? "no acceptable C compiler found in \$PATH
3073 See \`config.log' for more details" "$LINENO" 5; }
3074
3075 # Provide some information about the compiler.
3076 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3077 set X $ac_compile
3078 ac_compiler=$2
3079 for ac_option in --version -v -V -qversion; do
3080 { { ac_try="$ac_compiler $ac_option >&5"
3081 case "(($ac_try" in
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3084 esac
3085 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3086 $as_echo "$ac_try_echo"; } >&5
3087 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3088 ac_status=$?
3089 if test -s conftest.err; then
3090 sed '10a\
3091 ... rest of stderr output deleted ...
3092 10q' conftest.err >conftest.er1
3093 cat conftest.er1 >&5
3094 fi
3095 rm -f conftest.er1 conftest.err
3096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3097 test $ac_status = 0; }
3098 done
3099
3100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3101 /* end confdefs.h. */
3102
3103 int
3104 main ()
3105 {
3106
3107 ;
3108 return 0;
3109 }
3110 _ACEOF
3111 ac_clean_files_save=$ac_clean_files
3112 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3113 # Try to create an executable without -o first, disregard a.out.
3114 # It will help us diagnose broken compilers, and finding out an intuition
3115 # of exeext.
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3117 $as_echo_n "checking whether the C compiler works... " >&6; }
3118 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3119
3120 # The possible output files:
3121 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3122
3123 ac_rmfiles=
3124 for ac_file in $ac_files
3125 do
3126 case $ac_file in
3127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3128 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3129 esac
3130 done
3131 rm -f $ac_rmfiles
3132
3133 if { { ac_try="$ac_link_default"
3134 case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3137 esac
3138 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3139 $as_echo "$ac_try_echo"; } >&5
3140 (eval "$ac_link_default") 2>&5
3141 ac_status=$?
3142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3143 test $ac_status = 0; }; then :
3144 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3145 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3146 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3147 # so that the user can short-circuit this test for compilers unknown to
3148 # Autoconf.
3149 for ac_file in $ac_files ''
3150 do
3151 test -f "$ac_file" || continue
3152 case $ac_file in
3153 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3154 ;;
3155 [ab].out )
3156 # We found the default executable, but exeext='' is most
3157 # certainly right.
3158 break;;
3159 *.* )
3160 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3161 then :; else
3162 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3163 fi
3164 # We set ac_cv_exeext here because the later test for it is not
3165 # safe: cross compilers may not add the suffix if given an `-o'
3166 # argument, so we may need to know it at that point already.
3167 # Even if this section looks crufty: it has the advantage of
3168 # actually working.
3169 break;;
3170 * )
3171 break;;
3172 esac
3173 done
3174 test "$ac_cv_exeext" = no && ac_cv_exeext=
3175
3176 else
3177 ac_file=''
3178 fi
3179 if test -z "$ac_file"; then :
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3181 $as_echo "no" >&6; }
3182 $as_echo "$as_me: failed program was:" >&5
3183 sed 's/^/| /' conftest.$ac_ext >&5
3184
3185 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3186 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3187 as_fn_error 77 "C compiler cannot create executables
3188 See \`config.log' for more details" "$LINENO" 5; }
3189 else
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3191 $as_echo "yes" >&6; }
3192 fi
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3194 $as_echo_n "checking for C compiler default output file name... " >&6; }
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3196 $as_echo "$ac_file" >&6; }
3197 ac_exeext=$ac_cv_exeext
3198
3199 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3200 ac_clean_files=$ac_clean_files_save
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3202 $as_echo_n "checking for suffix of executables... " >&6; }
3203 if { { ac_try="$ac_link"
3204 case "(($ac_try" in
3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206 *) ac_try_echo=$ac_try;;
3207 esac
3208 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3209 $as_echo "$ac_try_echo"; } >&5
3210 (eval "$ac_link") 2>&5
3211 ac_status=$?
3212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3213 test $ac_status = 0; }; then :
3214 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3215 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3216 # work properly (i.e., refer to `conftest.exe'), while it won't with
3217 # `rm'.
3218 for ac_file in conftest.exe conftest conftest.*; do
3219 test -f "$ac_file" || continue
3220 case $ac_file in
3221 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3222 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3223 break;;
3224 * ) break;;
3225 esac
3226 done
3227 else
3228 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3229 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3230 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3231 See \`config.log' for more details" "$LINENO" 5; }
3232 fi
3233 rm -f conftest conftest$ac_cv_exeext
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3235 $as_echo "$ac_cv_exeext" >&6; }
3236
3237 rm -f conftest.$ac_ext
3238 EXEEXT=$ac_cv_exeext
3239 ac_exeext=$EXEEXT
3240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3241 /* end confdefs.h. */
3242 #include <stdio.h>
3243 int
3244 main ()
3245 {
3246 FILE *f = fopen ("conftest.out", "w");
3247 return ferror (f) || fclose (f) != 0;
3248
3249 ;
3250 return 0;
3251 }
3252 _ACEOF
3253 ac_clean_files="$ac_clean_files conftest.out"
3254 # Check that the compiler produces executables we can run. If not, either
3255 # the compiler is broken, or we cross compile.
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3257 $as_echo_n "checking whether we are cross compiling... " >&6; }
3258 if test "$cross_compiling" != yes; then
3259 { { ac_try="$ac_link"
3260 case "(($ac_try" in
3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
3263 esac
3264 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3265 $as_echo "$ac_try_echo"; } >&5
3266 (eval "$ac_link") 2>&5
3267 ac_status=$?
3268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3269 test $ac_status = 0; }
3270 if { ac_try='./conftest$ac_cv_exeext'
3271 { { case "(($ac_try" in
3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273 *) ac_try_echo=$ac_try;;
3274 esac
3275 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3276 $as_echo "$ac_try_echo"; } >&5
3277 (eval "$ac_try") 2>&5
3278 ac_status=$?
3279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3280 test $ac_status = 0; }; }; then
3281 cross_compiling=no
3282 else
3283 if test "$cross_compiling" = maybe; then
3284 cross_compiling=yes
3285 else
3286 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3288 as_fn_error $? "cannot run C compiled programs.
3289 If you meant to cross compile, use \`--host'.
3290 See \`config.log' for more details" "$LINENO" 5; }
3291 fi
3292 fi
3293 fi
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3295 $as_echo "$cross_compiling" >&6; }
3296
3297 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3298 ac_clean_files=$ac_clean_files_save
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3300 $as_echo_n "checking for suffix of object files... " >&6; }
3301 if ${ac_cv_objext+:} false; then :
3302 $as_echo_n "(cached) " >&6
3303 else
3304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3305 /* end confdefs.h. */
3306
3307 int
3308 main ()
3309 {
3310
3311 ;
3312 return 0;
3313 }
3314 _ACEOF
3315 rm -f conftest.o conftest.obj
3316 if { { ac_try="$ac_compile"
3317 case "(($ac_try" in
3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3320 esac
3321 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3322 $as_echo "$ac_try_echo"; } >&5
3323 (eval "$ac_compile") 2>&5
3324 ac_status=$?
3325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3326 test $ac_status = 0; }; then :
3327 for ac_file in conftest.o conftest.obj conftest.*; do
3328 test -f "$ac_file" || continue;
3329 case $ac_file in
3330 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3331 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3332 break;;
3333 esac
3334 done
3335 else
3336 $as_echo "$as_me: failed program was:" >&5
3337 sed 's/^/| /' conftest.$ac_ext >&5
3338
3339 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3341 as_fn_error $? "cannot compute suffix of object files: cannot compile
3342 See \`config.log' for more details" "$LINENO" 5; }
3343 fi
3344 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3345 fi
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3347 $as_echo "$ac_cv_objext" >&6; }
3348 OBJEXT=$ac_cv_objext
3349 ac_objext=$OBJEXT
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3351 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3352 if ${ac_cv_c_compiler_gnu+:} false; then :
3353 $as_echo_n "(cached) " >&6
3354 else
3355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3356 /* end confdefs.h. */
3357
3358 int
3359 main ()
3360 {
3361 #ifndef __GNUC__
3362 choke me
3363 #endif
3364
3365 ;
3366 return 0;
3367 }
3368 _ACEOF
3369 if ac_fn_c_try_compile "$LINENO"; then :
3370 ac_compiler_gnu=yes
3371 else
3372 ac_compiler_gnu=no
3373 fi
3374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3375 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3376
3377 fi
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3379 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3380 if test $ac_compiler_gnu = yes; then
3381 GCC=yes
3382 else
3383 GCC=
3384 fi
3385 ac_test_CFLAGS=${CFLAGS+set}
3386 ac_save_CFLAGS=$CFLAGS
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3388 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3389 if ${ac_cv_prog_cc_g+:} false; then :
3390 $as_echo_n "(cached) " >&6
3391 else
3392 ac_save_c_werror_flag=$ac_c_werror_flag
3393 ac_c_werror_flag=yes
3394 ac_cv_prog_cc_g=no
3395 CFLAGS="-g"
3396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3397 /* end confdefs.h. */
3398
3399 int
3400 main ()
3401 {
3402
3403 ;
3404 return 0;
3405 }
3406 _ACEOF
3407 if ac_fn_c_try_compile "$LINENO"; then :
3408 ac_cv_prog_cc_g=yes
3409 else
3410 CFLAGS=""
3411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3412 /* end confdefs.h. */
3413
3414 int
3415 main ()
3416 {
3417
3418 ;
3419 return 0;
3420 }
3421 _ACEOF
3422 if ac_fn_c_try_compile "$LINENO"; then :
3423
3424 else
3425 ac_c_werror_flag=$ac_save_c_werror_flag
3426 CFLAGS="-g"
3427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3428 /* end confdefs.h. */
3429
3430 int
3431 main ()
3432 {
3433
3434 ;
3435 return 0;
3436 }
3437 _ACEOF
3438 if ac_fn_c_try_compile "$LINENO"; then :
3439 ac_cv_prog_cc_g=yes
3440 fi
3441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3442 fi
3443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3444 fi
3445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3446 ac_c_werror_flag=$ac_save_c_werror_flag
3447 fi
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3449 $as_echo "$ac_cv_prog_cc_g" >&6; }
3450 if test "$ac_test_CFLAGS" = set; then
3451 CFLAGS=$ac_save_CFLAGS
3452 elif test $ac_cv_prog_cc_g = yes; then
3453 if test "$GCC" = yes; then
3454 CFLAGS="-g -O2"
3455 else
3456 CFLAGS="-g"
3457 fi
3458 else
3459 if test "$GCC" = yes; then
3460 CFLAGS="-O2"
3461 else
3462 CFLAGS=
3463 fi
3464 fi
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3466 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3467 if ${ac_cv_prog_cc_c89+:} false; then :
3468 $as_echo_n "(cached) " >&6
3469 else
3470 ac_cv_prog_cc_c89=no
3471 ac_save_CC=$CC
3472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473 /* end confdefs.h. */
3474 #include <stdarg.h>
3475 #include <stdio.h>
3476 struct stat;
3477 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3478 struct buf { int x; };
3479 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3480 static char *e (p, i)
3481 char **p;
3482 int i;
3483 {
3484 return p[i];
3485 }
3486 static char *f (char * (*g) (char **, int), char **p, ...)
3487 {
3488 char *s;
3489 va_list v;
3490 va_start (v,p);
3491 s = g (p, va_arg (v,int));
3492 va_end (v);
3493 return s;
3494 }
3495
3496 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3497 function prototypes and stuff, but not '\xHH' hex character constants.
3498 These don't provoke an error unfortunately, instead are silently treated
3499 as 'x'. The following induces an error, until -std is added to get
3500 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3501 array size at least. It's necessary to write '\x00'==0 to get something
3502 that's true only with -std. */
3503 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3504
3505 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3506 inside strings and character constants. */
3507 #define FOO(x) 'x'
3508 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3509
3510 int test (int i, double x);
3511 struct s1 {int (*f) (int a);};
3512 struct s2 {int (*f) (double a);};
3513 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3514 int argc;
3515 char **argv;
3516 int
3517 main ()
3518 {
3519 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3520 ;
3521 return 0;
3522 }
3523 _ACEOF
3524 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3525 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3526 do
3527 CC="$ac_save_CC $ac_arg"
3528 if ac_fn_c_try_compile "$LINENO"; then :
3529 ac_cv_prog_cc_c89=$ac_arg
3530 fi
3531 rm -f core conftest.err conftest.$ac_objext
3532 test "x$ac_cv_prog_cc_c89" != "xno" && break
3533 done
3534 rm -f conftest.$ac_ext
3535 CC=$ac_save_CC
3536
3537 fi
3538 # AC_CACHE_VAL
3539 case "x$ac_cv_prog_cc_c89" in
3540 x)
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3542 $as_echo "none needed" >&6; } ;;
3543 xno)
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3545 $as_echo "unsupported" >&6; } ;;
3546 *)
3547 CC="$CC $ac_cv_prog_cc_c89"
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3549 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3550 esac
3551 if test "x$ac_cv_prog_cc_c89" != xno; then :
3552
3553 fi
3554
3555 ac_ext=c
3556 ac_cpp='$CPP $CPPFLAGS'
3557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3560
3561 ac_ext=c
3562 ac_cpp='$CPP $CPPFLAGS'
3563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3567 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3568 if ${am_cv_prog_cc_c_o+:} false; then :
3569 $as_echo_n "(cached) " >&6
3570 else
3571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3572 /* end confdefs.h. */
3573
3574 int
3575 main ()
3576 {
3577
3578 ;
3579 return 0;
3580 }
3581 _ACEOF
3582 # Make sure it works both with $CC and with simple cc.
3583 # Following AC_PROG_CC_C_O, we do the test twice because some
3584 # compilers refuse to overwrite an existing .o file with -o,
3585 # though they will create one.
3586 am_cv_prog_cc_c_o=yes
3587 for am_i in 1 2; do
3588 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3589 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3590 ac_status=$?
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); } \
3593 && test -f conftest2.$ac_objext; then
3594 : OK
3595 else
3596 am_cv_prog_cc_c_o=no
3597 break
3598 fi
3599 done
3600 rm -f core conftest*
3601 unset am_i
3602 fi
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3604 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3605 if test "$am_cv_prog_cc_c_o" != yes; then
3606 # Losing compiler, so override with the script.
3607 # FIXME: It is wrong to rewrite CC.
3608 # But if we don't then we get into trouble of one sort or another.
3609 # A longer-term fix would be to have automake use am__CC in this case,
3610 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3611 CC="$am_aux_dir/compile $CC"
3612 fi
3613 ac_ext=c
3614 ac_cpp='$CPP $CPPFLAGS'
3615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3618
3619
3620
3621 ac_ext=c
3622 ac_cpp='$CPP $CPPFLAGS'
3623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3627 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3628 # On Suns, sometimes $CPP names a directory.
3629 if test -n "$CPP" && test -d "$CPP"; then
3630 CPP=
3631 fi
3632 if test -z "$CPP"; then
3633 if ${ac_cv_prog_CPP+:} false; then :
3634 $as_echo_n "(cached) " >&6
3635 else
3636 # Double quotes because CPP needs to be expanded
3637 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3638 do
3639 ac_preproc_ok=false
3640 for ac_c_preproc_warn_flag in '' yes
3641 do
3642 # Use a header file that comes with gcc, so configuring glibc
3643 # with a fresh cross-compiler works.
3644 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3645 # <limits.h> exists even on freestanding compilers.
3646 # On the NeXT, cc -E runs the code through the compiler's parser,
3647 # not just through cpp. "Syntax error" is here to catch this case.
3648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649 /* end confdefs.h. */
3650 #ifdef __STDC__
3651 # include <limits.h>
3652 #else
3653 # include <assert.h>
3654 #endif
3655 Syntax error
3656 _ACEOF
3657 if ac_fn_c_try_cpp "$LINENO"; then :
3658
3659 else
3660 # Broken: fails on valid input.
3661 continue
3662 fi
3663 rm -f conftest.err conftest.i conftest.$ac_ext
3664
3665 # OK, works on sane cases. Now check whether nonexistent headers
3666 # can be detected and how.
3667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3668 /* end confdefs.h. */
3669 #include <ac_nonexistent.h>
3670 _ACEOF
3671 if ac_fn_c_try_cpp "$LINENO"; then :
3672 # Broken: success on invalid input.
3673 continue
3674 else
3675 # Passes both tests.
3676 ac_preproc_ok=:
3677 break
3678 fi
3679 rm -f conftest.err conftest.i conftest.$ac_ext
3680
3681 done
3682 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3683 rm -f conftest.i conftest.err conftest.$ac_ext
3684 if $ac_preproc_ok; then :
3685 break
3686 fi
3687
3688 done
3689 ac_cv_prog_CPP=$CPP
3690
3691 fi
3692 CPP=$ac_cv_prog_CPP
3693 else
3694 ac_cv_prog_CPP=$CPP
3695 fi
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3697 $as_echo "$CPP" >&6; }
3698 ac_preproc_ok=false
3699 for ac_c_preproc_warn_flag in '' yes
3700 do
3701 # Use a header file that comes with gcc, so configuring glibc
3702 # with a fresh cross-compiler works.
3703 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3704 # <limits.h> exists even on freestanding compilers.
3705 # On the NeXT, cc -E runs the code through the compiler's parser,
3706 # not just through cpp. "Syntax error" is here to catch this case.
3707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708 /* end confdefs.h. */
3709 #ifdef __STDC__
3710 # include <limits.h>
3711 #else
3712 # include <assert.h>
3713 #endif
3714 Syntax error
3715 _ACEOF
3716 if ac_fn_c_try_cpp "$LINENO"; then :
3717
3718 else
3719 # Broken: fails on valid input.
3720 continue
3721 fi
3722 rm -f conftest.err conftest.i conftest.$ac_ext
3723
3724 # OK, works on sane cases. Now check whether nonexistent headers
3725 # can be detected and how.
3726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727 /* end confdefs.h. */
3728 #include <ac_nonexistent.h>
3729 _ACEOF
3730 if ac_fn_c_try_cpp "$LINENO"; then :
3731 # Broken: success on invalid input.
3732 continue
3733 else
3734 # Passes both tests.
3735 ac_preproc_ok=:
3736 break
3737 fi
3738 rm -f conftest.err conftest.i conftest.$ac_ext
3739
3740 done
3741 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3742 rm -f conftest.i conftest.err conftest.$ac_ext
3743 if $ac_preproc_ok; then :
3744
3745 else
3746 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3748 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3749 See \`config.log' for more details" "$LINENO" 5; }
3750 fi
3751
3752 ac_ext=c
3753 ac_cpp='$CPP $CPPFLAGS'
3754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3757
3758
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3760 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3761 if ${ac_cv_path_GREP+:} false; then :
3762 $as_echo_n "(cached) " >&6
3763 else
3764 if test -z "$GREP"; then
3765 ac_path_GREP_found=false
3766 # Loop through the user's path and test for each of PROGNAME-LIST
3767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3769 do
3770 IFS=$as_save_IFS
3771 test -z "$as_dir" && as_dir=.
3772 for ac_prog in grep ggrep; do
3773 for ac_exec_ext in '' $ac_executable_extensions; do
3774 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3775 as_fn_executable_p "$ac_path_GREP" || continue
3776 # Check for GNU ac_path_GREP and select it if it is found.
3777 # Check for GNU $ac_path_GREP
3778 case `"$ac_path_GREP" --version 2>&1` in
3779 *GNU*)
3780 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3781 *)
3782 ac_count=0
3783 $as_echo_n 0123456789 >"conftest.in"
3784 while :
3785 do
3786 cat "conftest.in" "conftest.in" >"conftest.tmp"
3787 mv "conftest.tmp" "conftest.in"
3788 cp "conftest.in" "conftest.nl"
3789 $as_echo 'GREP' >> "conftest.nl"
3790 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3791 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3792 as_fn_arith $ac_count + 1 && ac_count=$as_val
3793 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3794 # Best one so far, save it but keep looking for a better one
3795 ac_cv_path_GREP="$ac_path_GREP"
3796 ac_path_GREP_max=$ac_count
3797 fi
3798 # 10*(2^10) chars as input seems more than enough
3799 test $ac_count -gt 10 && break
3800 done
3801 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3802 esac
3803
3804 $ac_path_GREP_found && break 3
3805 done
3806 done
3807 done
3808 IFS=$as_save_IFS
3809 if test -z "$ac_cv_path_GREP"; then
3810 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3811 fi
3812 else
3813 ac_cv_path_GREP=$GREP
3814 fi
3815
3816 fi
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3818 $as_echo "$ac_cv_path_GREP" >&6; }
3819 GREP="$ac_cv_path_GREP"
3820
3821
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3823 $as_echo_n "checking for egrep... " >&6; }
3824 if ${ac_cv_path_EGREP+:} false; then :
3825 $as_echo_n "(cached) " >&6
3826 else
3827 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3828 then ac_cv_path_EGREP="$GREP -E"
3829 else
3830 if test -z "$EGREP"; then
3831 ac_path_EGREP_found=false
3832 # Loop through the user's path and test for each of PROGNAME-LIST
3833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3835 do
3836 IFS=$as_save_IFS
3837 test -z "$as_dir" && as_dir=.
3838 for ac_prog in egrep; do
3839 for ac_exec_ext in '' $ac_executable_extensions; do
3840 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3841 as_fn_executable_p "$ac_path_EGREP" || continue
3842 # Check for GNU ac_path_EGREP and select it if it is found.
3843 # Check for GNU $ac_path_EGREP
3844 case `"$ac_path_EGREP" --version 2>&1` in
3845 *GNU*)
3846 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3847 *)
3848 ac_count=0
3849 $as_echo_n 0123456789 >"conftest.in"
3850 while :
3851 do
3852 cat "conftest.in" "conftest.in" >"conftest.tmp"
3853 mv "conftest.tmp" "conftest.in"
3854 cp "conftest.in" "conftest.nl"
3855 $as_echo 'EGREP' >> "conftest.nl"
3856 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3857 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3858 as_fn_arith $ac_count + 1 && ac_count=$as_val
3859 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3860 # Best one so far, save it but keep looking for a better one
3861 ac_cv_path_EGREP="$ac_path_EGREP"
3862 ac_path_EGREP_max=$ac_count
3863 fi
3864 # 10*(2^10) chars as input seems more than enough
3865 test $ac_count -gt 10 && break
3866 done
3867 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3868 esac
3869
3870 $ac_path_EGREP_found && break 3
3871 done
3872 done
3873 done
3874 IFS=$as_save_IFS
3875 if test -z "$ac_cv_path_EGREP"; then
3876 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3877 fi
3878 else
3879 ac_cv_path_EGREP=$EGREP
3880 fi
3881
3882 fi
3883 fi
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3885 $as_echo "$ac_cv_path_EGREP" >&6; }
3886 EGREP="$ac_cv_path_EGREP"
3887
3888
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3890 $as_echo_n "checking for ANSI C header files... " >&6; }
3891 if ${ac_cv_header_stdc+:} false; then :
3892 $as_echo_n "(cached) " >&6
3893 else
3894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895 /* end confdefs.h. */
3896 #include <stdlib.h>
3897 #include <stdarg.h>
3898 #include <string.h>
3899 #include <float.h>
3900
3901 int
3902 main ()
3903 {
3904
3905 ;
3906 return 0;
3907 }
3908 _ACEOF
3909 if ac_fn_c_try_compile "$LINENO"; then :
3910 ac_cv_header_stdc=yes
3911 else
3912 ac_cv_header_stdc=no
3913 fi
3914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3915
3916 if test $ac_cv_header_stdc = yes; then
3917 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3919 /* end confdefs.h. */
3920 #include <string.h>
3921
3922 _ACEOF
3923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3924 $EGREP "memchr" >/dev/null 2>&1; then :
3925
3926 else
3927 ac_cv_header_stdc=no
3928 fi
3929 rm -f conftest*
3930
3931 fi
3932
3933 if test $ac_cv_header_stdc = yes; then
3934 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936 /* end confdefs.h. */
3937 #include <stdlib.h>
3938
3939 _ACEOF
3940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3941 $EGREP "free" >/dev/null 2>&1; then :
3942
3943 else
3944 ac_cv_header_stdc=no
3945 fi
3946 rm -f conftest*
3947
3948 fi
3949
3950 if test $ac_cv_header_stdc = yes; then
3951 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3952 if test "$cross_compiling" = yes; then :
3953 :
3954 else
3955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956 /* end confdefs.h. */
3957 #include <ctype.h>
3958 #include <stdlib.h>
3959 #if ((' ' & 0x0FF) == 0x020)
3960 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3961 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3962 #else
3963 # define ISLOWER(c) \
3964 (('a' <= (c) && (c) <= 'i') \
3965 || ('j' <= (c) && (c) <= 'r') \
3966 || ('s' <= (c) && (c) <= 'z'))
3967 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3968 #endif
3969
3970 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3971 int
3972 main ()
3973 {
3974 int i;
3975 for (i = 0; i < 256; i++)
3976 if (XOR (islower (i), ISLOWER (i))
3977 || toupper (i) != TOUPPER (i))
3978 return 2;
3979 return 0;
3980 }
3981 _ACEOF
3982 if ac_fn_c_try_run "$LINENO"; then :
3983
3984 else
3985 ac_cv_header_stdc=no
3986 fi
3987 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3988 conftest.$ac_objext conftest.beam conftest.$ac_ext
3989 fi
3990
3991 fi
3992 fi
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3994 $as_echo "$ac_cv_header_stdc" >&6; }
3995 if test $ac_cv_header_stdc = yes; then
3996
3997 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3998
3999 fi
4000
4001 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4002 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4003 inttypes.h stdint.h unistd.h
4004 do :
4005 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4006 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4007 "
4008 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4009 cat >>confdefs.h <<_ACEOF
4010 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4011 _ACEOF
4012
4013 fi
4014
4015 done
4016
4017
4018
4019 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4020 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4021 MINIX=yes
4022 else
4023 MINIX=
4024 fi
4025
4026
4027 if test "$MINIX" = yes; then
4028
4029 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4030
4031
4032 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4033
4034
4035 $as_echo "#define _MINIX 1" >>confdefs.h
4036
4037 fi
4038
4039
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4041 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4042 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4043 $as_echo_n "(cached) " >&6
4044 else
4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h. */
4047
4048 # define __EXTENSIONS__ 1
4049 $ac_includes_default
4050 int
4051 main ()
4052 {
4053
4054 ;
4055 return 0;
4056 }
4057 _ACEOF
4058 if ac_fn_c_try_compile "$LINENO"; then :
4059 ac_cv_safe_to_define___extensions__=yes
4060 else
4061 ac_cv_safe_to_define___extensions__=no
4062 fi
4063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4064 fi
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4066 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4067 test $ac_cv_safe_to_define___extensions__ = yes &&
4068 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4069
4070 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4071
4072 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4073
4074 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4075
4076 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4077
4078
4079 test "$program_prefix" != NONE &&
4080 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4081 # Use a double $ so make ignores it.
4082 test "$program_suffix" != NONE &&
4083 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4084 # Double any \ or $.
4085 # By default was `s,x,x', remove it if useless.
4086 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4087 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4088
4089 # Find a good install program. We prefer a C program (faster),
4090 # so one script is as good as another. But avoid the broken or
4091 # incompatible versions:
4092 # SysV /etc/install, /usr/sbin/install
4093 # SunOS /usr/etc/install
4094 # IRIX /sbin/install
4095 # AIX /bin/install
4096 # AmigaOS /C/install, which installs bootblocks on floppy discs
4097 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4098 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4099 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4100 # OS/2's system install, which has a completely different semantic
4101 # ./install, which can be erroneously created by make from ./install.sh.
4102 # Reject install programs that cannot install multiple files.
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4104 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4105 if test -z "$INSTALL"; then
4106 if ${ac_cv_path_install+:} false; then :
4107 $as_echo_n "(cached) " >&6
4108 else
4109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110 for as_dir in $PATH
4111 do
4112 IFS=$as_save_IFS
4113 test -z "$as_dir" && as_dir=.
4114 # Account for people who put trailing slashes in PATH elements.
4115 case $as_dir/ in #((
4116 ./ | .// | /[cC]/* | \
4117 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4118 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4119 /usr/ucb/* ) ;;
4120 *)
4121 # OSF1 and SCO ODT 3.0 have their own names for install.
4122 # Don't use installbsd from OSF since it installs stuff as root
4123 # by default.
4124 for ac_prog in ginstall scoinst install; do
4125 for ac_exec_ext in '' $ac_executable_extensions; do
4126 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4127 if test $ac_prog = install &&
4128 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4129 # AIX install. It has an incompatible calling convention.
4130 :
4131 elif test $ac_prog = install &&
4132 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4133 # program-specific install script used by HP pwplus--don't use.
4134 :
4135 else
4136 rm -rf conftest.one conftest.two conftest.dir
4137 echo one > conftest.one
4138 echo two > conftest.two
4139 mkdir conftest.dir
4140 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4141 test -s conftest.one && test -s conftest.two &&
4142 test -s conftest.dir/conftest.one &&
4143 test -s conftest.dir/conftest.two
4144 then
4145 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4146 break 3
4147 fi
4148 fi
4149 fi
4150 done
4151 done
4152 ;;
4153 esac
4154
4155 done
4156 IFS=$as_save_IFS
4157
4158 rm -rf conftest.one conftest.two conftest.dir
4159
4160 fi
4161 if test "${ac_cv_path_install+set}" = set; then
4162 INSTALL=$ac_cv_path_install
4163 else
4164 # As a last resort, use the slow shell script. Don't cache a
4165 # value for INSTALL within a source directory, because that will
4166 # break other packages using the cache if that directory is
4167 # removed, or if the value is a relative name.
4168 INSTALL=$ac_install_sh
4169 fi
4170 fi
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4172 $as_echo "$INSTALL" >&6; }
4173
4174 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4175 # It thinks the first close brace ends the variable substitution.
4176 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4177
4178 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4179
4180 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4181
4182
4183
4184
4185
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4187 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4188 if ${ac_cv_c_bigendian+:} false; then :
4189 $as_echo_n "(cached) " >&6
4190 else
4191 ac_cv_c_bigendian=unknown
4192 # See if we're dealing with a universal compiler.
4193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4194 /* end confdefs.h. */
4195 #ifndef __APPLE_CC__
4196 not a universal capable compiler
4197 #endif
4198 typedef int dummy;
4199
4200 _ACEOF
4201 if ac_fn_c_try_compile "$LINENO"; then :
4202
4203 # Check for potential -arch flags. It is not universal unless
4204 # there are at least two -arch flags with different values.
4205 ac_arch=
4206 ac_prev=
4207 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4208 if test -n "$ac_prev"; then
4209 case $ac_word in
4210 i?86 | x86_64 | ppc | ppc64)
4211 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4212 ac_arch=$ac_word
4213 else
4214 ac_cv_c_bigendian=universal
4215 break
4216 fi
4217 ;;
4218 esac
4219 ac_prev=
4220 elif test "x$ac_word" = "x-arch"; then
4221 ac_prev=arch
4222 fi
4223 done
4224 fi
4225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4226 if test $ac_cv_c_bigendian = unknown; then
4227 # See if sys/param.h defines the BYTE_ORDER macro.
4228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4229 /* end confdefs.h. */
4230 #include <sys/types.h>
4231 #include <sys/param.h>
4232
4233 int
4234 main ()
4235 {
4236 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4237 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4238 && LITTLE_ENDIAN)
4239 bogus endian macros
4240 #endif
4241
4242 ;
4243 return 0;
4244 }
4245 _ACEOF
4246 if ac_fn_c_try_compile "$LINENO"; then :
4247 # It does; now see whether it defined to BIG_ENDIAN or not.
4248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4249 /* end confdefs.h. */
4250 #include <sys/types.h>
4251 #include <sys/param.h>
4252
4253 int
4254 main ()
4255 {
4256 #if BYTE_ORDER != BIG_ENDIAN
4257 not big endian
4258 #endif
4259
4260 ;
4261 return 0;
4262 }
4263 _ACEOF
4264 if ac_fn_c_try_compile "$LINENO"; then :
4265 ac_cv_c_bigendian=yes
4266 else
4267 ac_cv_c_bigendian=no
4268 fi
4269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4270 fi
4271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4272 fi
4273 if test $ac_cv_c_bigendian = unknown; then
4274 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276 /* end confdefs.h. */
4277 #include <limits.h>
4278
4279 int
4280 main ()
4281 {
4282 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4283 bogus endian macros
4284 #endif
4285
4286 ;
4287 return 0;
4288 }
4289 _ACEOF
4290 if ac_fn_c_try_compile "$LINENO"; then :
4291 # It does; now see whether it defined to _BIG_ENDIAN or not.
4292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4293 /* end confdefs.h. */
4294 #include <limits.h>
4295
4296 int
4297 main ()
4298 {
4299 #ifndef _BIG_ENDIAN
4300 not big endian
4301 #endif
4302
4303 ;
4304 return 0;
4305 }
4306 _ACEOF
4307 if ac_fn_c_try_compile "$LINENO"; then :
4308 ac_cv_c_bigendian=yes
4309 else
4310 ac_cv_c_bigendian=no
4311 fi
4312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4313 fi
4314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4315 fi
4316 if test $ac_cv_c_bigendian = unknown; then
4317 # Compile a test program.
4318 if test "$cross_compiling" = yes; then :
4319 # Try to guess by grepping values from an object file.
4320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4321 /* end confdefs.h. */
4322 short int ascii_mm[] =
4323 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4324 short int ascii_ii[] =
4325 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4326 int use_ascii (int i) {
4327 return ascii_mm[i] + ascii_ii[i];
4328 }
4329 short int ebcdic_ii[] =
4330 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4331 short int ebcdic_mm[] =
4332 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4333 int use_ebcdic (int i) {
4334 return ebcdic_mm[i] + ebcdic_ii[i];
4335 }
4336 extern int foo;
4337
4338 int
4339 main ()
4340 {
4341 return use_ascii (foo) == use_ebcdic (foo);
4342 ;
4343 return 0;
4344 }
4345 _ACEOF
4346 if ac_fn_c_try_compile "$LINENO"; then :
4347 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4348 ac_cv_c_bigendian=yes
4349 fi
4350 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4351 if test "$ac_cv_c_bigendian" = unknown; then
4352 ac_cv_c_bigendian=no
4353 else
4354 # finding both strings is unlikely to happen, but who knows?
4355 ac_cv_c_bigendian=unknown
4356 fi
4357 fi
4358 fi
4359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4360 else
4361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4362 /* end confdefs.h. */
4363 $ac_includes_default
4364 int
4365 main ()
4366 {
4367
4368 /* Are we little or big endian? From Harbison&Steele. */
4369 union
4370 {
4371 long int l;
4372 char c[sizeof (long int)];
4373 } u;
4374 u.l = 1;
4375 return u.c[sizeof (long int) - 1] == 1;
4376
4377 ;
4378 return 0;
4379 }
4380 _ACEOF
4381 if ac_fn_c_try_run "$LINENO"; then :
4382 ac_cv_c_bigendian=no
4383 else
4384 ac_cv_c_bigendian=yes
4385 fi
4386 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4387 conftest.$ac_objext conftest.beam conftest.$ac_ext
4388 fi
4389
4390 fi
4391 fi
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4393 $as_echo "$ac_cv_c_bigendian" >&6; }
4394 case $ac_cv_c_bigendian in #(
4395 yes)
4396 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4397 ;; #(
4398 no)
4399 ;; #(
4400 universal)
4401
4402 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4403
4404 ;; #(
4405 *)
4406 as_fn_error $? "unknown endianness
4407 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4408 esac
4409
4410
4411
4412
4413 if test -n "$ac_tool_prefix"; then
4414 # Extract the first word of "${ac_tool_prefix}dtc", so it can be a program name with args.
4415 set dummy ${ac_tool_prefix}dtc; ac_word=$2
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4417 $as_echo_n "checking for $ac_word... " >&6; }
4418 if ${ac_cv_prog_DTC+:} false; then :
4419 $as_echo_n "(cached) " >&6
4420 else
4421 if test -n "$DTC"; then
4422 ac_cv_prog_DTC="$DTC" # Let the user override the test.
4423 else
4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425 for as_dir in $PATH
4426 do
4427 IFS=$as_save_IFS
4428 test -z "$as_dir" && as_dir=.
4429 for ac_exec_ext in '' $ac_executable_extensions; do
4430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4431 ac_cv_prog_DTC="${ac_tool_prefix}dtc"
4432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4433 break 2
4434 fi
4435 done
4436 done
4437 IFS=$as_save_IFS
4438
4439 fi
4440 fi
4441 DTC=$ac_cv_prog_DTC
4442 if test -n "$DTC"; then
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTC" >&5
4444 $as_echo "$DTC" >&6; }
4445 else
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4447 $as_echo "no" >&6; }
4448 fi
4449
4450
4451 fi
4452 if test -z "$ac_cv_prog_DTC"; then
4453 ac_ct_DTC=$DTC
4454 # Extract the first word of "dtc", so it can be a program name with args.
4455 set dummy dtc; ac_word=$2
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4457 $as_echo_n "checking for $ac_word... " >&6; }
4458 if ${ac_cv_prog_ac_ct_DTC+:} false; then :
4459 $as_echo_n "(cached) " >&6
4460 else
4461 if test -n "$ac_ct_DTC"; then
4462 ac_cv_prog_ac_ct_DTC="$ac_ct_DTC" # Let the user override the test.
4463 else
4464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465 for as_dir in $PATH
4466 do
4467 IFS=$as_save_IFS
4468 test -z "$as_dir" && as_dir=.
4469 for ac_exec_ext in '' $ac_executable_extensions; do
4470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4471 ac_cv_prog_ac_ct_DTC="dtc"
4472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4473 break 2
4474 fi
4475 done
4476 done
4477 IFS=$as_save_IFS
4478
4479 fi
4480 fi
4481 ac_ct_DTC=$ac_cv_prog_ac_ct_DTC
4482 if test -n "$ac_ct_DTC"; then
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DTC" >&5
4484 $as_echo "$ac_ct_DTC" >&6; }
4485 else
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4487 $as_echo "no" >&6; }
4488 fi
4489
4490 if test "x$ac_ct_DTC" = x; then
4491 DTC=""
4492 else
4493 case $cross_compiling:$ac_tool_warned in
4494 yes:)
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4497 ac_tool_warned=yes ;;
4498 esac
4499 DTC=$ac_ct_DTC
4500 fi
4501 else
4502 DTC="$ac_cv_prog_DTC"
4503 fi
4504
4505
4506 if test "x$cross_compiling" = "xno"; then
4507 : "${AR_FOR_BUILD:=\$(AR)}"
4508 : "${CC_FOR_BUILD:=\$(CC)}"
4509 : "${RANLIB_FOR_BUILD:=\$(RANLIB)}"
4510 : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}"
4511 : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}"
4512 else
4513 : "${AR_FOR_BUILD:=ar}"
4514 : "${CC_FOR_BUILD:=gcc}"
4515 : "${RANLIB_FOR_BUILD:=ranlib}"
4516 : "${CFLAGS_FOR_BUILD:=-g -O}"
4517 : "${LDLFAGS_FOR_BUILD:=}"
4518 fi
4519
4520
4521
4522
4523
4524
4525
4526 if test -n "$ac_tool_prefix"; then
4527 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4528 set dummy ${ac_tool_prefix}ar; ac_word=$2
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4530 $as_echo_n "checking for $ac_word... " >&6; }
4531 if ${ac_cv_prog_AR+:} false; then :
4532 $as_echo_n "(cached) " >&6
4533 else
4534 if test -n "$AR"; then
4535 ac_cv_prog_AR="$AR" # Let the user override the test.
4536 else
4537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538 for as_dir in $PATH
4539 do
4540 IFS=$as_save_IFS
4541 test -z "$as_dir" && as_dir=.
4542 for ac_exec_ext in '' $ac_executable_extensions; do
4543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4544 ac_cv_prog_AR="${ac_tool_prefix}ar"
4545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4546 break 2
4547 fi
4548 done
4549 done
4550 IFS=$as_save_IFS
4551
4552 fi
4553 fi
4554 AR=$ac_cv_prog_AR
4555 if test -n "$AR"; then
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4557 $as_echo "$AR" >&6; }
4558 else
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4560 $as_echo "no" >&6; }
4561 fi
4562
4563
4564 fi
4565 if test -z "$ac_cv_prog_AR"; then
4566 ac_ct_AR=$AR
4567 # Extract the first word of "ar", so it can be a program name with args.
4568 set dummy ar; ac_word=$2
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4570 $as_echo_n "checking for $ac_word... " >&6; }
4571 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4572 $as_echo_n "(cached) " >&6
4573 else
4574 if test -n "$ac_ct_AR"; then
4575 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4576 else
4577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578 for as_dir in $PATH
4579 do
4580 IFS=$as_save_IFS
4581 test -z "$as_dir" && as_dir=.
4582 for ac_exec_ext in '' $ac_executable_extensions; do
4583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4584 ac_cv_prog_ac_ct_AR="ar"
4585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4586 break 2
4587 fi
4588 done
4589 done
4590 IFS=$as_save_IFS
4591
4592 fi
4593 fi
4594 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4595 if test -n "$ac_ct_AR"; then
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4597 $as_echo "$ac_ct_AR" >&6; }
4598 else
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4600 $as_echo "no" >&6; }
4601 fi
4602
4603 if test "x$ac_ct_AR" = x; then
4604 AR=""
4605 else
4606 case $cross_compiling:$ac_tool_warned in
4607 yes:)
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4610 ac_tool_warned=yes ;;
4611 esac
4612 AR=$ac_ct_AR
4613 fi
4614 else
4615 AR="$ac_cv_prog_AR"
4616 fi
4617
4618 if test -n "$ac_tool_prefix"; then
4619 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4620 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4622 $as_echo_n "checking for $ac_word... " >&6; }
4623 if ${ac_cv_prog_RANLIB+:} false; then :
4624 $as_echo_n "(cached) " >&6
4625 else
4626 if test -n "$RANLIB"; then
4627 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4628 else
4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 for as_dir in $PATH
4631 do
4632 IFS=$as_save_IFS
4633 test -z "$as_dir" && as_dir=.
4634 for ac_exec_ext in '' $ac_executable_extensions; do
4635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4636 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4638 break 2
4639 fi
4640 done
4641 done
4642 IFS=$as_save_IFS
4643
4644 fi
4645 fi
4646 RANLIB=$ac_cv_prog_RANLIB
4647 if test -n "$RANLIB"; then
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4649 $as_echo "$RANLIB" >&6; }
4650 else
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4652 $as_echo "no" >&6; }
4653 fi
4654
4655
4656 fi
4657 if test -z "$ac_cv_prog_RANLIB"; then
4658 ac_ct_RANLIB=$RANLIB
4659 # Extract the first word of "ranlib", so it can be a program name with args.
4660 set dummy ranlib; ac_word=$2
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4662 $as_echo_n "checking for $ac_word... " >&6; }
4663 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4664 $as_echo_n "(cached) " >&6
4665 else
4666 if test -n "$ac_ct_RANLIB"; then
4667 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4668 else
4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 for as_dir in $PATH
4671 do
4672 IFS=$as_save_IFS
4673 test -z "$as_dir" && as_dir=.
4674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4676 ac_cv_prog_ac_ct_RANLIB="ranlib"
4677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4678 break 2
4679 fi
4680 done
4681 done
4682 IFS=$as_save_IFS
4683
4684 fi
4685 fi
4686 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4687 if test -n "$ac_ct_RANLIB"; then
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4689 $as_echo "$ac_ct_RANLIB" >&6; }
4690 else
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4692 $as_echo "no" >&6; }
4693 fi
4694
4695 if test "x$ac_ct_RANLIB" = x; then
4696 RANLIB=":"
4697 else
4698 case $cross_compiling:$ac_tool_warned in
4699 yes:)
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4702 ac_tool_warned=yes ;;
4703 esac
4704 RANLIB=$ac_ct_RANLIB
4705 fi
4706 else
4707 RANLIB="$ac_cv_prog_RANLIB"
4708 fi
4709
4710
4711 # Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using
4712 # AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands
4713 # is C99. So handle it ourselves.
4714 :
4715 C_DIALECT=
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5
4717 $as_echo_n "checking whether C11 is supported by default... " >&6; }
4718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4719 /* end confdefs.h. */
4720
4721 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
4722 # error "C11 support not found"
4723 #endif
4724
4725 _ACEOF
4726 if ac_fn_c_try_compile "$LINENO"; then :
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4728 $as_echo "yes" >&6; }
4729 else
4730
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4732 $as_echo "no" >&6; }
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5
4734 $as_echo_n "checking for -std=c11 support... " >&6; }
4735 ac_save_CC="$CC"
4736 CC="$CC -std=c11"
4737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4738 /* end confdefs.h. */
4739
4740 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
4741 # error "C11 support not found"
4742 #endif
4743
4744 _ACEOF
4745 if ac_fn_c_try_compile "$LINENO"; then :
4746
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4748 $as_echo "yes" >&6; }
4749 CC="$ac_save_CC"
4750 C_DIALECT="-std=c11"
4751
4752 else
4753 as_fn_error $? "C11 is required" "$LINENO" 5
4754 fi
4755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4756 fi
4757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4758
4759
4760
4761
4762
4763 for ac_header in $ac_header_list
4764 do :
4765 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4766 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4767 "
4768 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4769 cat >>confdefs.h <<_ACEOF
4770 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4771 _ACEOF
4772
4773 fi
4774
4775 done
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828 for ac_func in $ac_func_list
4829 do :
4830 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4831 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4832 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4833 cat >>confdefs.h <<_ACEOF
4834 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4835 _ACEOF
4836
4837 fi
4838 done
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
4963 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
4964 if ${ac_cv_struct_tm+:} false; then :
4965 $as_echo_n "(cached) " >&6
4966 else
4967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4968 /* end confdefs.h. */
4969 #include <sys/types.h>
4970 #include <time.h>
4971
4972 int
4973 main ()
4974 {
4975 struct tm tm;
4976 int *p = &tm.tm_sec;
4977 return !p;
4978 ;
4979 return 0;
4980 }
4981 _ACEOF
4982 if ac_fn_c_try_compile "$LINENO"; then :
4983 ac_cv_struct_tm=time.h
4984 else
4985 ac_cv_struct_tm=sys/time.h
4986 fi
4987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4988 fi
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
4990 $as_echo "$ac_cv_struct_tm" >&6; }
4991 if test $ac_cv_struct_tm = sys/time.h; then
4992
4993 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
4994
4995 fi
4996
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
4998 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
4999 if ${ac_cv_type_uid_t+:} false; then :
5000 $as_echo_n "(cached) " >&6
5001 else
5002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003 /* end confdefs.h. */
5004 #include <sys/types.h>
5005
5006 _ACEOF
5007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5008 $EGREP "uid_t" >/dev/null 2>&1; then :
5009 ac_cv_type_uid_t=yes
5010 else
5011 ac_cv_type_uid_t=no
5012 fi
5013 rm -f conftest*
5014
5015 fi
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5017 $as_echo "$ac_cv_type_uid_t" >&6; }
5018 if test $ac_cv_type_uid_t = no; then
5019
5020 $as_echo "#define uid_t int" >>confdefs.h
5021
5022
5023 $as_echo "#define gid_t int" >>confdefs.h
5024
5025 fi
5026
5027 case `pwd` in
5028 *\ * | *\ *)
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5030 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5031 esac
5032
5033
5034
5035 macro_version='2.2.7a'
5036 macro_revision='1.3134'
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050 ltmain="$ac_aux_dir/ltmain.sh"
5051
5052 # Backslashify metacharacters that are still active within
5053 # double-quoted strings.
5054 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5055
5056 # Same as above, but do not quote variable references.
5057 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5058
5059 # Sed substitution to delay expansion of an escaped shell variable in a
5060 # double_quote_subst'ed string.
5061 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5062
5063 # Sed substitution to delay expansion of an escaped single quote.
5064 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5065
5066 # Sed substitution to avoid accidental globbing in evaled expressions
5067 no_glob_subst='s/\*/\\\*/g'
5068
5069 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5070 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5071 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5072
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5074 $as_echo_n "checking how to print strings... " >&6; }
5075 # Test print first, because it will be a builtin if present.
5076 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5077 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5078 ECHO='print -r --'
5079 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5080 ECHO='printf %s\n'
5081 else
5082 # Use this function as a fallback that always works.
5083 func_fallback_echo ()
5084 {
5085 eval 'cat <<_LTECHO_EOF
5086 $1
5087 _LTECHO_EOF'
5088 }
5089 ECHO='func_fallback_echo'
5090 fi
5091
5092 # func_echo_all arg...
5093 # Invoke $ECHO with all args, space-separated.
5094 func_echo_all ()
5095 {
5096 $ECHO ""
5097 }
5098
5099 case "$ECHO" in
5100 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5101 $as_echo "printf" >&6; } ;;
5102 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5103 $as_echo "print -r" >&6; } ;;
5104 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5105 $as_echo "cat" >&6; } ;;
5106 esac
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5122 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5123 if ${ac_cv_path_SED+:} false; then :
5124 $as_echo_n "(cached) " >&6
5125 else
5126 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5127 for ac_i in 1 2 3 4 5 6 7; do
5128 ac_script="$ac_script$as_nl$ac_script"
5129 done
5130 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5131 { ac_script=; unset ac_script;}
5132 if test -z "$SED"; then
5133 ac_path_SED_found=false
5134 # Loop through the user's path and test for each of PROGNAME-LIST
5135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136 for as_dir in $PATH
5137 do
5138 IFS=$as_save_IFS
5139 test -z "$as_dir" && as_dir=.
5140 for ac_prog in sed gsed; do
5141 for ac_exec_ext in '' $ac_executable_extensions; do
5142 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5143 as_fn_executable_p "$ac_path_SED" || continue
5144 # Check for GNU ac_path_SED and select it if it is found.
5145 # Check for GNU $ac_path_SED
5146 case `"$ac_path_SED" --version 2>&1` in
5147 *GNU*)
5148 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5149 *)
5150 ac_count=0
5151 $as_echo_n 0123456789 >"conftest.in"
5152 while :
5153 do
5154 cat "conftest.in" "conftest.in" >"conftest.tmp"
5155 mv "conftest.tmp" "conftest.in"
5156 cp "conftest.in" "conftest.nl"
5157 $as_echo '' >> "conftest.nl"
5158 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5159 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5160 as_fn_arith $ac_count + 1 && ac_count=$as_val
5161 if test $ac_count -gt ${ac_path_SED_max-0}; then
5162 # Best one so far, save it but keep looking for a better one
5163 ac_cv_path_SED="$ac_path_SED"
5164 ac_path_SED_max=$ac_count
5165 fi
5166 # 10*(2^10) chars as input seems more than enough
5167 test $ac_count -gt 10 && break
5168 done
5169 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5170 esac
5171
5172 $ac_path_SED_found && break 3
5173 done
5174 done
5175 done
5176 IFS=$as_save_IFS
5177 if test -z "$ac_cv_path_SED"; then
5178 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5179 fi
5180 else
5181 ac_cv_path_SED=$SED
5182 fi
5183
5184 fi
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5186 $as_echo "$ac_cv_path_SED" >&6; }
5187 SED="$ac_cv_path_SED"
5188 rm -f conftest.sed
5189
5190 test -z "$SED" && SED=sed
5191 Xsed="$SED -e 1s/^X//"
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5204 $as_echo_n "checking for fgrep... " >&6; }
5205 if ${ac_cv_path_FGREP+:} false; then :
5206 $as_echo_n "(cached) " >&6
5207 else
5208 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5209 then ac_cv_path_FGREP="$GREP -F"
5210 else
5211 if test -z "$FGREP"; then
5212 ac_path_FGREP_found=false
5213 # Loop through the user's path and test for each of PROGNAME-LIST
5214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5216 do
5217 IFS=$as_save_IFS
5218 test -z "$as_dir" && as_dir=.
5219 for ac_prog in fgrep; do
5220 for ac_exec_ext in '' $ac_executable_extensions; do
5221 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5222 as_fn_executable_p "$ac_path_FGREP" || continue
5223 # Check for GNU ac_path_FGREP and select it if it is found.
5224 # Check for GNU $ac_path_FGREP
5225 case `"$ac_path_FGREP" --version 2>&1` in
5226 *GNU*)
5227 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5228 *)
5229 ac_count=0
5230 $as_echo_n 0123456789 >"conftest.in"
5231 while :
5232 do
5233 cat "conftest.in" "conftest.in" >"conftest.tmp"
5234 mv "conftest.tmp" "conftest.in"
5235 cp "conftest.in" "conftest.nl"
5236 $as_echo 'FGREP' >> "conftest.nl"
5237 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5238 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5239 as_fn_arith $ac_count + 1 && ac_count=$as_val
5240 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5241 # Best one so far, save it but keep looking for a better one
5242 ac_cv_path_FGREP="$ac_path_FGREP"
5243 ac_path_FGREP_max=$ac_count
5244 fi
5245 # 10*(2^10) chars as input seems more than enough
5246 test $ac_count -gt 10 && break
5247 done
5248 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5249 esac
5250
5251 $ac_path_FGREP_found && break 3
5252 done
5253 done
5254 done
5255 IFS=$as_save_IFS
5256 if test -z "$ac_cv_path_FGREP"; then
5257 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5258 fi
5259 else
5260 ac_cv_path_FGREP=$FGREP
5261 fi
5262
5263 fi
5264 fi
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5266 $as_echo "$ac_cv_path_FGREP" >&6; }
5267 FGREP="$ac_cv_path_FGREP"
5268
5269
5270 test -z "$GREP" && GREP=grep
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290 # Check whether --with-gnu-ld was given.
5291 if test "${with_gnu_ld+set}" = set; then :
5292 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5293 else
5294 with_gnu_ld=no
5295 fi
5296
5297 ac_prog=ld
5298 if test "$GCC" = yes; then
5299 # Check if gcc -print-prog-name=ld gives a path.
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5301 $as_echo_n "checking for ld used by $CC... " >&6; }
5302 case $host in
5303 *-*-mingw*)
5304 # gcc leaves a trailing carriage return which upsets mingw
5305 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5306 *)
5307 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5308 esac
5309 case $ac_prog in
5310 # Accept absolute paths.
5311 [\\/]* | ?:[\\/]*)
5312 re_direlt='/[^/][^/]*/\.\./'
5313 # Canonicalize the pathname of ld
5314 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5315 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5316 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5317 done
5318 test -z "$LD" && LD="$ac_prog"
5319 ;;
5320 "")
5321 # If it fails, then pretend we aren't using GCC.
5322 ac_prog=ld
5323 ;;
5324 *)
5325 # If it is relative, then search for the first ld in PATH.
5326 with_gnu_ld=unknown
5327 ;;
5328 esac
5329 elif test "$with_gnu_ld" = yes; then
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5331 $as_echo_n "checking for GNU ld... " >&6; }
5332 else
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5334 $as_echo_n "checking for non-GNU ld... " >&6; }
5335 fi
5336 if ${lt_cv_path_LD+:} false; then :
5337 $as_echo_n "(cached) " >&6
5338 else
5339 if test -z "$LD"; then
5340 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5341 for ac_dir in $PATH; do
5342 IFS="$lt_save_ifs"
5343 test -z "$ac_dir" && ac_dir=.
5344 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5345 lt_cv_path_LD="$ac_dir/$ac_prog"
5346 # Check to see if the program is GNU ld. I'd rather use --version,
5347 # but apparently some variants of GNU ld only accept -v.
5348 # Break only if it was the GNU/non-GNU ld that we prefer.
5349 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5350 *GNU* | *'with BFD'*)
5351 test "$with_gnu_ld" != no && break
5352 ;;
5353 *)
5354 test "$with_gnu_ld" != yes && break
5355 ;;
5356 esac
5357 fi
5358 done
5359 IFS="$lt_save_ifs"
5360 else
5361 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5362 fi
5363 fi
5364
5365 LD="$lt_cv_path_LD"
5366 if test -n "$LD"; then
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5368 $as_echo "$LD" >&6; }
5369 else
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5371 $as_echo "no" >&6; }
5372 fi
5373 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5375 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5376 if ${lt_cv_prog_gnu_ld+:} false; then :
5377 $as_echo_n "(cached) " >&6
5378 else
5379 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5380 case `$LD -v 2>&1 </dev/null` in
5381 *GNU* | *'with BFD'*)
5382 lt_cv_prog_gnu_ld=yes
5383 ;;
5384 *)
5385 lt_cv_prog_gnu_ld=no
5386 ;;
5387 esac
5388 fi
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5390 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5391 with_gnu_ld=$lt_cv_prog_gnu_ld
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5402 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5403 if ${lt_cv_path_NM+:} false; then :
5404 $as_echo_n "(cached) " >&6
5405 else
5406 if test -n "$NM"; then
5407 # Let the user override the test.
5408 lt_cv_path_NM="$NM"
5409 else
5410 lt_nm_to_check="${ac_tool_prefix}nm"
5411 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5412 lt_nm_to_check="$lt_nm_to_check nm"
5413 fi
5414 for lt_tmp_nm in $lt_nm_to_check; do
5415 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5416 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5417 IFS="$lt_save_ifs"
5418 test -z "$ac_dir" && ac_dir=.
5419 tmp_nm="$ac_dir/$lt_tmp_nm"
5420 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5421 # Check to see if the nm accepts a BSD-compat flag.
5422 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5423 # nm: unknown option "B" ignored
5424 # Tru64's nm complains that /dev/null is an invalid object file
5425 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5426 */dev/null* | *'Invalid file or object type'*)
5427 lt_cv_path_NM="$tmp_nm -B"
5428 break
5429 ;;
5430 *)
5431 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5432 */dev/null*)
5433 lt_cv_path_NM="$tmp_nm -p"
5434 break
5435 ;;
5436 *)
5437 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5438 continue # so that we can try to find one that supports BSD flags
5439 ;;
5440 esac
5441 ;;
5442 esac
5443 fi
5444 done
5445 IFS="$lt_save_ifs"
5446 done
5447 : ${lt_cv_path_NM=no}
5448 fi
5449 fi
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5451 $as_echo "$lt_cv_path_NM" >&6; }
5452 if test "$lt_cv_path_NM" != "no"; then
5453 NM="$lt_cv_path_NM"
5454 else
5455 # Didn't find any BSD compatible name lister, look for dumpbin.
5456 if test -n "$DUMPBIN"; then :
5457 # Let the user override the test.
5458 else
5459 if test -n "$ac_tool_prefix"; then
5460 for ac_prog in dumpbin "link -dump"
5461 do
5462 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5463 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5465 $as_echo_n "checking for $ac_word... " >&6; }
5466 if ${ac_cv_prog_DUMPBIN+:} false; then :
5467 $as_echo_n "(cached) " >&6
5468 else
5469 if test -n "$DUMPBIN"; then
5470 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5471 else
5472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5473 for as_dir in $PATH
5474 do
5475 IFS=$as_save_IFS
5476 test -z "$as_dir" && as_dir=.
5477 for ac_exec_ext in '' $ac_executable_extensions; do
5478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5479 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5481 break 2
5482 fi
5483 done
5484 done
5485 IFS=$as_save_IFS
5486
5487 fi
5488 fi
5489 DUMPBIN=$ac_cv_prog_DUMPBIN
5490 if test -n "$DUMPBIN"; then
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5492 $as_echo "$DUMPBIN" >&6; }
5493 else
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5495 $as_echo "no" >&6; }
5496 fi
5497
5498
5499 test -n "$DUMPBIN" && break
5500 done
5501 fi
5502 if test -z "$DUMPBIN"; then
5503 ac_ct_DUMPBIN=$DUMPBIN
5504 for ac_prog in dumpbin "link -dump"
5505 do
5506 # Extract the first word of "$ac_prog", so it can be a program name with args.
5507 set dummy $ac_prog; ac_word=$2
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5509 $as_echo_n "checking for $ac_word... " >&6; }
5510 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5511 $as_echo_n "(cached) " >&6
5512 else
5513 if test -n "$ac_ct_DUMPBIN"; then
5514 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5515 else
5516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517 for as_dir in $PATH
5518 do
5519 IFS=$as_save_IFS
5520 test -z "$as_dir" && as_dir=.
5521 for ac_exec_ext in '' $ac_executable_extensions; do
5522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5523 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5525 break 2
5526 fi
5527 done
5528 done
5529 IFS=$as_save_IFS
5530
5531 fi
5532 fi
5533 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5534 if test -n "$ac_ct_DUMPBIN"; then
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5536 $as_echo "$ac_ct_DUMPBIN" >&6; }
5537 else
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5539 $as_echo "no" >&6; }
5540 fi
5541
5542
5543 test -n "$ac_ct_DUMPBIN" && break
5544 done
5545
5546 if test "x$ac_ct_DUMPBIN" = x; then
5547 DUMPBIN=":"
5548 else
5549 case $cross_compiling:$ac_tool_warned in
5550 yes:)
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5553 ac_tool_warned=yes ;;
5554 esac
5555 DUMPBIN=$ac_ct_DUMPBIN
5556 fi
5557 fi
5558
5559 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5560 *COFF*)
5561 DUMPBIN="$DUMPBIN -symbols"
5562 ;;
5563 *)
5564 DUMPBIN=:
5565 ;;
5566 esac
5567 fi
5568
5569 if test "$DUMPBIN" != ":"; then
5570 NM="$DUMPBIN"
5571 fi
5572 fi
5573 test -z "$NM" && NM=nm
5574
5575
5576
5577
5578
5579
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5581 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5582 if ${lt_cv_nm_interface+:} false; then :
5583 $as_echo_n "(cached) " >&6
5584 else
5585 lt_cv_nm_interface="BSD nm"
5586 echo "int some_variable = 0;" > conftest.$ac_ext
5587 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5588 (eval "$ac_compile" 2>conftest.err)
5589 cat conftest.err >&5
5590 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5591 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5592 cat conftest.err >&5
5593 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5594 cat conftest.out >&5
5595 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5596 lt_cv_nm_interface="MS dumpbin"
5597 fi
5598 rm -f conftest*
5599 fi
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5601 $as_echo "$lt_cv_nm_interface" >&6; }
5602
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5604 $as_echo_n "checking whether ln -s works... " >&6; }
5605 LN_S=$as_ln_s
5606 if test "$LN_S" = "ln -s"; then
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5608 $as_echo "yes" >&6; }
5609 else
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5611 $as_echo "no, using $LN_S" >&6; }
5612 fi
5613
5614 # find the maximum length of command line arguments
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5616 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5617 if ${lt_cv_sys_max_cmd_len+:} false; then :
5618 $as_echo_n "(cached) " >&6
5619 else
5620 i=0
5621 teststring="ABCD"
5622
5623 case $build_os in
5624 msdosdjgpp*)
5625 # On DJGPP, this test can blow up pretty badly due to problems in libc
5626 # (any single argument exceeding 2000 bytes causes a buffer overrun
5627 # during glob expansion). Even if it were fixed, the result of this
5628 # check would be larger than it should be.
5629 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5630 ;;
5631
5632 gnu*)
5633 # Under GNU Hurd, this test is not required because there is
5634 # no limit to the length of command line arguments.
5635 # Libtool will interpret -1 as no limit whatsoever
5636 lt_cv_sys_max_cmd_len=-1;
5637 ;;
5638
5639 cygwin* | mingw* | cegcc*)
5640 # On Win9x/ME, this test blows up -- it succeeds, but takes
5641 # about 5 minutes as the teststring grows exponentially.
5642 # Worse, since 9x/ME are not pre-emptively multitasking,
5643 # you end up with a "frozen" computer, even though with patience
5644 # the test eventually succeeds (with a max line length of 256k).
5645 # Instead, let's just punt: use the minimum linelength reported by
5646 # all of the supported platforms: 8192 (on NT/2K/XP).
5647 lt_cv_sys_max_cmd_len=8192;
5648 ;;
5649
5650 mint*)
5651 # On MiNT this can take a long time and run out of memory.
5652 lt_cv_sys_max_cmd_len=8192;
5653 ;;
5654
5655 amigaos*)
5656 # On AmigaOS with pdksh, this test takes hours, literally.
5657 # So we just punt and use a minimum line length of 8192.
5658 lt_cv_sys_max_cmd_len=8192;
5659 ;;
5660
5661 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5662 # This has been around since 386BSD, at least. Likely further.
5663 if test -x /sbin/sysctl; then
5664 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5665 elif test -x /usr/sbin/sysctl; then
5666 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5667 else
5668 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5669 fi
5670 # And add a safety zone
5671 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5672 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5673 ;;
5674
5675 interix*)
5676 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5677 lt_cv_sys_max_cmd_len=196608
5678 ;;
5679
5680 osf*)
5681 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5682 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5683 # nice to cause kernel panics so lets avoid the loop below.
5684 # First set a reasonable default.
5685 lt_cv_sys_max_cmd_len=16384
5686 #
5687 if test -x /sbin/sysconfig; then
5688 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5689 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5690 esac
5691 fi
5692 ;;
5693 sco3.2v5*)
5694 lt_cv_sys_max_cmd_len=102400
5695 ;;
5696 sysv5* | sco5v6* | sysv4.2uw2*)
5697 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5698 if test -n "$kargmax"; then
5699 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5700 else
5701 lt_cv_sys_max_cmd_len=32768
5702 fi
5703 ;;
5704 *)
5705 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5706 if test -n "$lt_cv_sys_max_cmd_len"; then
5707 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5708 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5709 else
5710 # Make teststring a little bigger before we do anything with it.
5711 # a 1K string should be a reasonable start.
5712 for i in 1 2 3 4 5 6 7 8 ; do
5713 teststring=$teststring$teststring
5714 done
5715 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5716 # If test is not a shell built-in, we'll probably end up computing a
5717 # maximum length that is only half of the actual maximum length, but
5718 # we can't tell.
5719 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5720 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5721 test $i != 17 # 1/2 MB should be enough
5722 do
5723 i=`expr $i + 1`
5724 teststring=$teststring$teststring
5725 done
5726 # Only check the string length outside the loop.
5727 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5728 teststring=
5729 # Add a significant safety factor because C++ compilers can tack on
5730 # massive amounts of additional arguments before passing them to the
5731 # linker. It appears as though 1/2 is a usable value.
5732 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5733 fi
5734 ;;
5735 esac
5736
5737 fi
5738
5739 if test -n $lt_cv_sys_max_cmd_len ; then
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5741 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5742 else
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5744 $as_echo "none" >&6; }
5745 fi
5746 max_cmd_len=$lt_cv_sys_max_cmd_len
5747
5748
5749
5750
5751
5752
5753 : ${CP="cp -f"}
5754 : ${MV="mv -f"}
5755 : ${RM="rm -f"}
5756
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5758 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5759 # Try some XSI features
5760 xsi_shell=no
5761 ( _lt_dummy="a/b/c"
5762 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5763 = c,a/b,, \
5764 && eval 'test $(( 1 + 1 )) -eq 2 \
5765 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5766 && xsi_shell=yes
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5768 $as_echo "$xsi_shell" >&6; }
5769
5770
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5772 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5773 lt_shell_append=no
5774 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5775 >/dev/null 2>&1 \
5776 && lt_shell_append=yes
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5778 $as_echo "$lt_shell_append" >&6; }
5779
5780
5781 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5782 lt_unset=unset
5783 else
5784 lt_unset=false
5785 fi
5786
5787
5788
5789
5790
5791 # test EBCDIC or ASCII
5792 case `echo X|tr X '\101'` in
5793 A) # ASCII based system
5794 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5795 lt_SP2NL='tr \040 \012'
5796 lt_NL2SP='tr \015\012 \040\040'
5797 ;;
5798 *) # EBCDIC based system
5799 lt_SP2NL='tr \100 \n'
5800 lt_NL2SP='tr \r\n \100\100'
5801 ;;
5802 esac
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5813 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5814 if ${lt_cv_ld_reload_flag+:} false; then :
5815 $as_echo_n "(cached) " >&6
5816 else
5817 lt_cv_ld_reload_flag='-r'
5818 fi
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5820 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5821 reload_flag=$lt_cv_ld_reload_flag
5822 case $reload_flag in
5823 "" | " "*) ;;
5824 *) reload_flag=" $reload_flag" ;;
5825 esac
5826 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5827 case $host_os in
5828 darwin*)
5829 if test "$GCC" = yes; then
5830 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5831 else
5832 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5833 fi
5834 ;;
5835 esac
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845 if test -n "$ac_tool_prefix"; then
5846 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5847 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5849 $as_echo_n "checking for $ac_word... " >&6; }
5850 if ${ac_cv_prog_OBJDUMP+:} false; then :
5851 $as_echo_n "(cached) " >&6
5852 else
5853 if test -n "$OBJDUMP"; then
5854 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5855 else
5856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857 for as_dir in $PATH
5858 do
5859 IFS=$as_save_IFS
5860 test -z "$as_dir" && as_dir=.
5861 for ac_exec_ext in '' $ac_executable_extensions; do
5862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5863 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5865 break 2
5866 fi
5867 done
5868 done
5869 IFS=$as_save_IFS
5870
5871 fi
5872 fi
5873 OBJDUMP=$ac_cv_prog_OBJDUMP
5874 if test -n "$OBJDUMP"; then
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5876 $as_echo "$OBJDUMP" >&6; }
5877 else
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5879 $as_echo "no" >&6; }
5880 fi
5881
5882
5883 fi
5884 if test -z "$ac_cv_prog_OBJDUMP"; then
5885 ac_ct_OBJDUMP=$OBJDUMP
5886 # Extract the first word of "objdump", so it can be a program name with args.
5887 set dummy objdump; ac_word=$2
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5889 $as_echo_n "checking for $ac_word... " >&6; }
5890 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5891 $as_echo_n "(cached) " >&6
5892 else
5893 if test -n "$ac_ct_OBJDUMP"; then
5894 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5895 else
5896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897 for as_dir in $PATH
5898 do
5899 IFS=$as_save_IFS
5900 test -z "$as_dir" && as_dir=.
5901 for ac_exec_ext in '' $ac_executable_extensions; do
5902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5903 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5905 break 2
5906 fi
5907 done
5908 done
5909 IFS=$as_save_IFS
5910
5911 fi
5912 fi
5913 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5914 if test -n "$ac_ct_OBJDUMP"; then
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5916 $as_echo "$ac_ct_OBJDUMP" >&6; }
5917 else
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5919 $as_echo "no" >&6; }
5920 fi
5921
5922 if test "x$ac_ct_OBJDUMP" = x; then
5923 OBJDUMP="false"
5924 else
5925 case $cross_compiling:$ac_tool_warned in
5926 yes:)
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5929 ac_tool_warned=yes ;;
5930 esac
5931 OBJDUMP=$ac_ct_OBJDUMP
5932 fi
5933 else
5934 OBJDUMP="$ac_cv_prog_OBJDUMP"
5935 fi
5936
5937 test -z "$OBJDUMP" && OBJDUMP=objdump
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5948 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5949 if ${lt_cv_deplibs_check_method+:} false; then :
5950 $as_echo_n "(cached) " >&6
5951 else
5952 lt_cv_file_magic_cmd='$MAGIC_CMD'
5953 lt_cv_file_magic_test_file=
5954 lt_cv_deplibs_check_method='unknown'
5955 # Need to set the preceding variable on all platforms that support
5956 # interlibrary dependencies.
5957 # 'none' -- dependencies not supported.
5958 # `unknown' -- same as none, but documents that we really don't know.
5959 # 'pass_all' -- all dependencies passed with no checks.
5960 # 'test_compile' -- check by making test program.
5961 # 'file_magic [[regex]]' -- check by looking for files in library path
5962 # which responds to the $file_magic_cmd with a given extended regex.
5963 # If you have `file' or equivalent on your system and you're not sure
5964 # whether `pass_all' will *always* work, you probably want this one.
5965
5966 case $host_os in
5967 aix[4-9]*)
5968 lt_cv_deplibs_check_method=pass_all
5969 ;;
5970
5971 beos*)
5972 lt_cv_deplibs_check_method=pass_all
5973 ;;
5974
5975 bsdi[45]*)
5976 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5977 lt_cv_file_magic_cmd='/usr/bin/file -L'
5978 lt_cv_file_magic_test_file=/shlib/libc.so
5979 ;;
5980
5981 cygwin*)
5982 # func_win32_libid is a shell function defined in ltmain.sh
5983 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5984 lt_cv_file_magic_cmd='func_win32_libid'
5985 ;;
5986
5987 mingw* | pw32*)
5988 # Base MSYS/MinGW do not provide the 'file' command needed by
5989 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5990 # unless we find 'file', for example because we are cross-compiling.
5991 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5992 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5993 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5994 lt_cv_file_magic_cmd='func_win32_libid'
5995 else
5996 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5997 lt_cv_file_magic_cmd='$OBJDUMP -f'
5998 fi
5999 ;;
6000
6001 cegcc*)
6002 # use the weaker test based on 'objdump'. See mingw*.
6003 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6004 lt_cv_file_magic_cmd='$OBJDUMP -f'
6005 ;;
6006
6007 darwin* | rhapsody*)
6008 lt_cv_deplibs_check_method=pass_all
6009 ;;
6010
6011 freebsd* | dragonfly*)
6012 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6013 case $host_cpu in
6014 i*86 )
6015 # Not sure whether the presence of OpenBSD here was a mistake.
6016 # Let's accept both of them until this is cleared up.
6017 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6018 lt_cv_file_magic_cmd=/usr/bin/file
6019 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6020 ;;
6021 esac
6022 else
6023 lt_cv_deplibs_check_method=pass_all
6024 fi
6025 ;;
6026
6027 gnu*)
6028 lt_cv_deplibs_check_method=pass_all
6029 ;;
6030
6031 haiku*)
6032 lt_cv_deplibs_check_method=pass_all
6033 ;;
6034
6035 hpux10.20* | hpux11*)
6036 lt_cv_file_magic_cmd=/usr/bin/file
6037 case $host_cpu in
6038 ia64*)
6039 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6040 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6041 ;;
6042 hppa*64*)
6043 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]'
6044 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6045 ;;
6046 *)
6047 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6048 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6049 ;;
6050 esac
6051 ;;
6052
6053 interix[3-9]*)
6054 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6055 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6056 ;;
6057
6058 irix5* | irix6* | nonstopux*)
6059 case $LD in
6060 *-32|*"-32 ") libmagic=32-bit;;
6061 *-n32|*"-n32 ") libmagic=N32;;
6062 *-64|*"-64 ") libmagic=64-bit;;
6063 *) libmagic=never-match;;
6064 esac
6065 lt_cv_deplibs_check_method=pass_all
6066 ;;
6067
6068 # This must be Linux ELF.
6069 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6070 lt_cv_deplibs_check_method=pass_all
6071 ;;
6072
6073 netbsd*)
6074 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6075 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6076 else
6077 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6078 fi
6079 ;;
6080
6081 newos6*)
6082 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6083 lt_cv_file_magic_cmd=/usr/bin/file
6084 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6085 ;;
6086
6087 *nto* | *qnx*)
6088 lt_cv_deplibs_check_method=pass_all
6089 ;;
6090
6091 openbsd*)
6092 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6093 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6094 else
6095 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6096 fi
6097 ;;
6098
6099 osf3* | osf4* | osf5*)
6100 lt_cv_deplibs_check_method=pass_all
6101 ;;
6102
6103 rdos*)
6104 lt_cv_deplibs_check_method=pass_all
6105 ;;
6106
6107 solaris*)
6108 lt_cv_deplibs_check_method=pass_all
6109 ;;
6110
6111 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6112 lt_cv_deplibs_check_method=pass_all
6113 ;;
6114
6115 sysv4 | sysv4.3*)
6116 case $host_vendor in
6117 motorola)
6118 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]'
6119 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6120 ;;
6121 ncr)
6122 lt_cv_deplibs_check_method=pass_all
6123 ;;
6124 sequent)
6125 lt_cv_file_magic_cmd='/bin/file'
6126 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6127 ;;
6128 sni)
6129 lt_cv_file_magic_cmd='/bin/file'
6130 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6131 lt_cv_file_magic_test_file=/lib/libc.so
6132 ;;
6133 siemens)
6134 lt_cv_deplibs_check_method=pass_all
6135 ;;
6136 pc)
6137 lt_cv_deplibs_check_method=pass_all
6138 ;;
6139 esac
6140 ;;
6141
6142 tpf*)
6143 lt_cv_deplibs_check_method=pass_all
6144 ;;
6145 esac
6146
6147 fi
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6149 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6150 file_magic_cmd=$lt_cv_file_magic_cmd
6151 deplibs_check_method=$lt_cv_deplibs_check_method
6152 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165 plugin_option=
6166 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6167 for plugin in $plugin_names; do
6168 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6169 if test x$plugin_so = x$plugin; then
6170 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6171 fi
6172 if test x$plugin_so != x$plugin; then
6173 plugin_option="--plugin $plugin_so"
6174 break
6175 fi
6176 done
6177
6178 if test -n "$ac_tool_prefix"; then
6179 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6180 set dummy ${ac_tool_prefix}ar; ac_word=$2
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6182 $as_echo_n "checking for $ac_word... " >&6; }
6183 if ${ac_cv_prog_AR+:} false; then :
6184 $as_echo_n "(cached) " >&6
6185 else
6186 if test -n "$AR"; then
6187 ac_cv_prog_AR="$AR" # Let the user override the test.
6188 else
6189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6190 for as_dir in $PATH
6191 do
6192 IFS=$as_save_IFS
6193 test -z "$as_dir" && as_dir=.
6194 for ac_exec_ext in '' $ac_executable_extensions; do
6195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6196 ac_cv_prog_AR="${ac_tool_prefix}ar"
6197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6198 break 2
6199 fi
6200 done
6201 done
6202 IFS=$as_save_IFS
6203
6204 fi
6205 fi
6206 AR=$ac_cv_prog_AR
6207 if test -n "$AR"; then
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6209 $as_echo "$AR" >&6; }
6210 else
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6212 $as_echo "no" >&6; }
6213 fi
6214
6215
6216 fi
6217 if test -z "$ac_cv_prog_AR"; then
6218 ac_ct_AR=$AR
6219 # Extract the first word of "ar", so it can be a program name with args.
6220 set dummy ar; ac_word=$2
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6222 $as_echo_n "checking for $ac_word... " >&6; }
6223 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6224 $as_echo_n "(cached) " >&6
6225 else
6226 if test -n "$ac_ct_AR"; then
6227 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6228 else
6229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6230 for as_dir in $PATH
6231 do
6232 IFS=$as_save_IFS
6233 test -z "$as_dir" && as_dir=.
6234 for ac_exec_ext in '' $ac_executable_extensions; do
6235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6236 ac_cv_prog_ac_ct_AR="ar"
6237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6238 break 2
6239 fi
6240 done
6241 done
6242 IFS=$as_save_IFS
6243
6244 fi
6245 fi
6246 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6247 if test -n "$ac_ct_AR"; then
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6249 $as_echo "$ac_ct_AR" >&6; }
6250 else
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6252 $as_echo "no" >&6; }
6253 fi
6254
6255 if test "x$ac_ct_AR" = x; then
6256 AR="false"
6257 else
6258 case $cross_compiling:$ac_tool_warned in
6259 yes:)
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6262 ac_tool_warned=yes ;;
6263 esac
6264 AR=$ac_ct_AR
6265 fi
6266 else
6267 AR="$ac_cv_prog_AR"
6268 fi
6269
6270 test -z "$AR" && AR=ar
6271 if test -n "$plugin_option"; then
6272 if $AR --help 2>&1 | grep -q "\--plugin"; then
6273 touch conftest.c
6274 $AR $plugin_option rc conftest.a conftest.c
6275 if test "$?" != 0; then
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6277 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6278 else
6279 AR="$AR $plugin_option"
6280 fi
6281 rm -f conftest.*
6282 fi
6283 fi
6284 test -z "$AR_FLAGS" && AR_FLAGS=cru
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296 if test -n "$ac_tool_prefix"; then
6297 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6298 set dummy ${ac_tool_prefix}strip; ac_word=$2
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6300 $as_echo_n "checking for $ac_word... " >&6; }
6301 if ${ac_cv_prog_STRIP+:} false; then :
6302 $as_echo_n "(cached) " >&6
6303 else
6304 if test -n "$STRIP"; then
6305 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6306 else
6307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6308 for as_dir in $PATH
6309 do
6310 IFS=$as_save_IFS
6311 test -z "$as_dir" && as_dir=.
6312 for ac_exec_ext in '' $ac_executable_extensions; do
6313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6314 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6316 break 2
6317 fi
6318 done
6319 done
6320 IFS=$as_save_IFS
6321
6322 fi
6323 fi
6324 STRIP=$ac_cv_prog_STRIP
6325 if test -n "$STRIP"; then
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6327 $as_echo "$STRIP" >&6; }
6328 else
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6330 $as_echo "no" >&6; }
6331 fi
6332
6333
6334 fi
6335 if test -z "$ac_cv_prog_STRIP"; then
6336 ac_ct_STRIP=$STRIP
6337 # Extract the first word of "strip", so it can be a program name with args.
6338 set dummy strip; ac_word=$2
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6340 $as_echo_n "checking for $ac_word... " >&6; }
6341 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6342 $as_echo_n "(cached) " >&6
6343 else
6344 if test -n "$ac_ct_STRIP"; then
6345 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6346 else
6347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6348 for as_dir in $PATH
6349 do
6350 IFS=$as_save_IFS
6351 test -z "$as_dir" && as_dir=.
6352 for ac_exec_ext in '' $ac_executable_extensions; do
6353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6354 ac_cv_prog_ac_ct_STRIP="strip"
6355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6356 break 2
6357 fi
6358 done
6359 done
6360 IFS=$as_save_IFS
6361
6362 fi
6363 fi
6364 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6365 if test -n "$ac_ct_STRIP"; then
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6367 $as_echo "$ac_ct_STRIP" >&6; }
6368 else
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6370 $as_echo "no" >&6; }
6371 fi
6372
6373 if test "x$ac_ct_STRIP" = x; then
6374 STRIP=":"
6375 else
6376 case $cross_compiling:$ac_tool_warned in
6377 yes:)
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6379 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6380 ac_tool_warned=yes ;;
6381 esac
6382 STRIP=$ac_ct_STRIP
6383 fi
6384 else
6385 STRIP="$ac_cv_prog_STRIP"
6386 fi
6387
6388 test -z "$STRIP" && STRIP=:
6389
6390
6391
6392
6393
6394
6395 if test -n "$ac_tool_prefix"; then
6396 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6397 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6399 $as_echo_n "checking for $ac_word... " >&6; }
6400 if ${ac_cv_prog_RANLIB+:} false; then :
6401 $as_echo_n "(cached) " >&6
6402 else
6403 if test -n "$RANLIB"; then
6404 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6405 else
6406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407 for as_dir in $PATH
6408 do
6409 IFS=$as_save_IFS
6410 test -z "$as_dir" && as_dir=.
6411 for ac_exec_ext in '' $ac_executable_extensions; do
6412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6413 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6415 break 2
6416 fi
6417 done
6418 done
6419 IFS=$as_save_IFS
6420
6421 fi
6422 fi
6423 RANLIB=$ac_cv_prog_RANLIB
6424 if test -n "$RANLIB"; then
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6426 $as_echo "$RANLIB" >&6; }
6427 else
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6429 $as_echo "no" >&6; }
6430 fi
6431
6432
6433 fi
6434 if test -z "$ac_cv_prog_RANLIB"; then
6435 ac_ct_RANLIB=$RANLIB
6436 # Extract the first word of "ranlib", so it can be a program name with args.
6437 set dummy ranlib; ac_word=$2
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6439 $as_echo_n "checking for $ac_word... " >&6; }
6440 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6441 $as_echo_n "(cached) " >&6
6442 else
6443 if test -n "$ac_ct_RANLIB"; then
6444 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6445 else
6446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447 for as_dir in $PATH
6448 do
6449 IFS=$as_save_IFS
6450 test -z "$as_dir" && as_dir=.
6451 for ac_exec_ext in '' $ac_executable_extensions; do
6452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6453 ac_cv_prog_ac_ct_RANLIB="ranlib"
6454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6455 break 2
6456 fi
6457 done
6458 done
6459 IFS=$as_save_IFS
6460
6461 fi
6462 fi
6463 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6464 if test -n "$ac_ct_RANLIB"; then
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6466 $as_echo "$ac_ct_RANLIB" >&6; }
6467 else
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6469 $as_echo "no" >&6; }
6470 fi
6471
6472 if test "x$ac_ct_RANLIB" = x; then
6473 RANLIB=":"
6474 else
6475 case $cross_compiling:$ac_tool_warned in
6476 yes:)
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6479 ac_tool_warned=yes ;;
6480 esac
6481 RANLIB=$ac_ct_RANLIB
6482 fi
6483 else
6484 RANLIB="$ac_cv_prog_RANLIB"
6485 fi
6486
6487 test -z "$RANLIB" && RANLIB=:
6488 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6489 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6490 RANLIB="$RANLIB $plugin_option"
6491 fi
6492 fi
6493
6494
6495
6496
6497
6498
6499 # Determine commands to create old-style static archives.
6500 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6501 old_postinstall_cmds='chmod 644 $oldlib'
6502 old_postuninstall_cmds=
6503
6504 if test -n "$RANLIB"; then
6505 case $host_os in
6506 openbsd*)
6507 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6508 ;;
6509 *)
6510 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6511 ;;
6512 esac
6513 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6514 fi
6515
6516 case $host_os in
6517 darwin*)
6518 lock_old_archive_extraction=yes ;;
6519 *)
6520 lock_old_archive_extraction=no ;;
6521 esac
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543 for ac_prog in gawk mawk nawk awk
6544 do
6545 # Extract the first word of "$ac_prog", so it can be a program name with args.
6546 set dummy $ac_prog; ac_word=$2
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6548 $as_echo_n "checking for $ac_word... " >&6; }
6549 if ${ac_cv_prog_AWK+:} false; then :
6550 $as_echo_n "(cached) " >&6
6551 else
6552 if test -n "$AWK"; then
6553 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6554 else
6555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556 for as_dir in $PATH
6557 do
6558 IFS=$as_save_IFS
6559 test -z "$as_dir" && as_dir=.
6560 for ac_exec_ext in '' $ac_executable_extensions; do
6561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6562 ac_cv_prog_AWK="$ac_prog"
6563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6564 break 2
6565 fi
6566 done
6567 done
6568 IFS=$as_save_IFS
6569
6570 fi
6571 fi
6572 AWK=$ac_cv_prog_AWK
6573 if test -n "$AWK"; then
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6575 $as_echo "$AWK" >&6; }
6576 else
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6578 $as_echo "no" >&6; }
6579 fi
6580
6581
6582 test -n "$AWK" && break
6583 done
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603 # If no C compiler was specified, use CC.
6604 LTCC=${LTCC-"$CC"}
6605
6606 # If no C compiler flags were specified, use CFLAGS.
6607 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6608
6609 # Allow CC to be a program name with arguments.
6610 compiler=$CC
6611
6612
6613 # Check for command to grab the raw symbol name followed by C symbol from nm.
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6615 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6616 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6617 $as_echo_n "(cached) " >&6
6618 else
6619
6620 # These are sane defaults that work on at least a few old systems.
6621 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6622
6623 # Character class describing NM global symbol codes.
6624 symcode='[BCDEGRST]'
6625
6626 # Regexp to match symbols that can be accessed directly from C.
6627 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6628
6629 # Define system-specific variables.
6630 case $host_os in
6631 aix*)
6632 symcode='[BCDT]'
6633 ;;
6634 cygwin* | mingw* | pw32* | cegcc*)
6635 symcode='[ABCDGISTW]'
6636 ;;
6637 hpux*)
6638 if test "$host_cpu" = ia64; then
6639 symcode='[ABCDEGRST]'
6640 fi
6641 ;;
6642 irix* | nonstopux*)
6643 symcode='[BCDEGRST]'
6644 ;;
6645 osf*)
6646 symcode='[BCDEGQRST]'
6647 ;;
6648 solaris*)
6649 symcode='[BDRT]'
6650 ;;
6651 sco3.2v5*)
6652 symcode='[DT]'
6653 ;;
6654 sysv4.2uw2*)
6655 symcode='[DT]'
6656 ;;
6657 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6658 symcode='[ABDT]'
6659 ;;
6660 sysv4)
6661 symcode='[DFNSTU]'
6662 ;;
6663 esac
6664
6665 # If we're using GNU nm, then use its standard symbol codes.
6666 case `$NM -V 2>&1` in
6667 *GNU* | *'with BFD'*)
6668 symcode='[ABCDGIRSTW]' ;;
6669 esac
6670
6671 # Transform an extracted symbol line into a proper C declaration.
6672 # Some systems (esp. on ia64) link data and code symbols differently,
6673 # so use this general approach.
6674 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6675
6676 # Transform an extracted symbol line into symbol name and symbol address
6677 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6678 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'"
6679
6680 # Handle CRLF in mingw tool chain
6681 opt_cr=
6682 case $build_os in
6683 mingw*)
6684 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6685 ;;
6686 esac
6687
6688 # Try without a prefix underscore, then with it.
6689 for ac_symprfx in "" "_"; do
6690
6691 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6692 symxfrm="\\1 $ac_symprfx\\2 \\2"
6693
6694 # Write the raw and C identifiers.
6695 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6696 # Fake it for dumpbin and say T for any non-static function
6697 # and D for any global variable.
6698 # Also find C++ and __fastcall symbols from MSVC++,
6699 # which start with @ or ?.
6700 lt_cv_sys_global_symbol_pipe="$AWK '"\
6701 " {last_section=section; section=\$ 3};"\
6702 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6703 " \$ 0!~/External *\|/{next};"\
6704 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6705 " {if(hide[section]) next};"\
6706 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6707 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6708 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6709 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6710 " ' prfx=^$ac_symprfx"
6711 else
6712 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6713 fi
6714
6715 # Check to see that the pipe works correctly.
6716 pipe_works=no
6717
6718 rm -f conftest*
6719 cat > conftest.$ac_ext <<_LT_EOF
6720 #ifdef __cplusplus
6721 extern "C" {
6722 #endif
6723 char nm_test_var;
6724 void nm_test_func(void);
6725 void nm_test_func(void){}
6726 #ifdef __cplusplus
6727 }
6728 #endif
6729 int main(){nm_test_var='a';nm_test_func();return(0);}
6730 _LT_EOF
6731
6732 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6733 (eval $ac_compile) 2>&5
6734 ac_status=$?
6735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6736 test $ac_status = 0; }; then
6737 # Now try to grab the symbols.
6738 nlist=conftest.nm
6739 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6740 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6741 ac_status=$?
6742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6743 test $ac_status = 0; } && test -s "$nlist"; then
6744 # Try sorting and uniquifying the output.
6745 if sort "$nlist" | uniq > "$nlist"T; then
6746 mv -f "$nlist"T "$nlist"
6747 else
6748 rm -f "$nlist"T
6749 fi
6750
6751 # Make sure that we snagged all the symbols we need.
6752 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6753 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6754 cat <<_LT_EOF > conftest.$ac_ext
6755 #ifdef __cplusplus
6756 extern "C" {
6757 #endif
6758
6759 _LT_EOF
6760 # Now generate the symbol file.
6761 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6762
6763 cat <<_LT_EOF >> conftest.$ac_ext
6764
6765 /* The mapping between symbol names and symbols. */
6766 const struct {
6767 const char *name;
6768 void *address;
6769 }
6770 lt__PROGRAM__LTX_preloaded_symbols[] =
6771 {
6772 { "@PROGRAM@", (void *) 0 },
6773 _LT_EOF
6774 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6775 cat <<\_LT_EOF >> conftest.$ac_ext
6776 {0, (void *) 0}
6777 };
6778
6779 /* This works around a problem in FreeBSD linker */
6780 #ifdef FREEBSD_WORKAROUND
6781 static const void *lt_preloaded_setup() {
6782 return lt__PROGRAM__LTX_preloaded_symbols;
6783 }
6784 #endif
6785
6786 #ifdef __cplusplus
6787 }
6788 #endif
6789 _LT_EOF
6790 # Now try linking the two files.
6791 mv conftest.$ac_objext conftstm.$ac_objext
6792 lt_save_LIBS="$LIBS"
6793 lt_save_CFLAGS="$CFLAGS"
6794 LIBS="conftstm.$ac_objext"
6795 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6796 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6797 (eval $ac_link) 2>&5
6798 ac_status=$?
6799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6800 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6801 pipe_works=yes
6802 fi
6803 LIBS="$lt_save_LIBS"
6804 CFLAGS="$lt_save_CFLAGS"
6805 else
6806 echo "cannot find nm_test_func in $nlist" >&5
6807 fi
6808 else
6809 echo "cannot find nm_test_var in $nlist" >&5
6810 fi
6811 else
6812 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6813 fi
6814 else
6815 echo "$progname: failed program was:" >&5
6816 cat conftest.$ac_ext >&5
6817 fi
6818 rm -rf conftest* conftst*
6819
6820 # Do not use the global_symbol_pipe unless it works.
6821 if test "$pipe_works" = yes; then
6822 break
6823 else
6824 lt_cv_sys_global_symbol_pipe=
6825 fi
6826 done
6827
6828 fi
6829
6830 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6831 lt_cv_sys_global_symbol_to_cdecl=
6832 fi
6833 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6835 $as_echo "failed" >&6; }
6836 else
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6838 $as_echo "ok" >&6; }
6839 fi
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862 # Check whether --enable-libtool-lock was given.
6863 if test "${enable_libtool_lock+set}" = set; then :
6864 enableval=$enable_libtool_lock;
6865 fi
6866
6867 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6868
6869 # Some flags need to be propagated to the compiler or linker for good
6870 # libtool support.
6871 case $host in
6872 ia64-*-hpux*)
6873 # Find out which ABI we are using.
6874 echo 'int i;' > conftest.$ac_ext
6875 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6876 (eval $ac_compile) 2>&5
6877 ac_status=$?
6878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6879 test $ac_status = 0; }; then
6880 case `/usr/bin/file conftest.$ac_objext` in
6881 *ELF-32*)
6882 HPUX_IA64_MODE="32"
6883 ;;
6884 *ELF-64*)
6885 HPUX_IA64_MODE="64"
6886 ;;
6887 esac
6888 fi
6889 rm -rf conftest*
6890 ;;
6891 *-*-irix6*)
6892 # Find out which ABI we are using.
6893 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6894 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6895 (eval $ac_compile) 2>&5
6896 ac_status=$?
6897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6898 test $ac_status = 0; }; then
6899 if test "$lt_cv_prog_gnu_ld" = yes; then
6900 case `/usr/bin/file conftest.$ac_objext` in
6901 *32-bit*)
6902 LD="${LD-ld} -melf32bsmip"
6903 ;;
6904 *N32*)
6905 LD="${LD-ld} -melf32bmipn32"
6906 ;;
6907 *64-bit*)
6908 LD="${LD-ld} -melf64bmip"
6909 ;;
6910 esac
6911 else
6912 case `/usr/bin/file conftest.$ac_objext` in
6913 *32-bit*)
6914 LD="${LD-ld} -32"
6915 ;;
6916 *N32*)
6917 LD="${LD-ld} -n32"
6918 ;;
6919 *64-bit*)
6920 LD="${LD-ld} -64"
6921 ;;
6922 esac
6923 fi
6924 fi
6925 rm -rf conftest*
6926 ;;
6927
6928 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6929 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6930 # Find out which ABI we are using.
6931 echo 'int i;' > conftest.$ac_ext
6932 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6933 (eval $ac_compile) 2>&5
6934 ac_status=$?
6935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6936 test $ac_status = 0; }; then
6937 case `/usr/bin/file conftest.o` in
6938 *32-bit*)
6939 case $host in
6940 x86_64-*kfreebsd*-gnu)
6941 LD="${LD-ld} -m elf_i386_fbsd"
6942 ;;
6943 x86_64-*linux*)
6944 case `/usr/bin/file conftest.o` in
6945 *x86-64*)
6946 LD="${LD-ld} -m elf32_x86_64"
6947 ;;
6948 *)
6949 LD="${LD-ld} -m elf_i386"
6950 ;;
6951 esac
6952 ;;
6953 powerpc64le-*linux*)
6954 LD="${LD-ld} -m elf32lppclinux"
6955 ;;
6956 powerpc64-*linux*)
6957 LD="${LD-ld} -m elf32ppclinux"
6958 ;;
6959 s390x-*linux*)
6960 LD="${LD-ld} -m elf_s390"
6961 ;;
6962 sparc64-*linux*)
6963 LD="${LD-ld} -m elf32_sparc"
6964 ;;
6965 esac
6966 ;;
6967 *64-bit*)
6968 case $host in
6969 x86_64-*kfreebsd*-gnu)
6970 LD="${LD-ld} -m elf_x86_64_fbsd"
6971 ;;
6972 x86_64-*linux*)
6973 LD="${LD-ld} -m elf_x86_64"
6974 ;;
6975 powerpcle-*linux*)
6976 LD="${LD-ld} -m elf64lppc"
6977 ;;
6978 powerpc-*linux*)
6979 LD="${LD-ld} -m elf64ppc"
6980 ;;
6981 s390*-*linux*|s390*-*tpf*)
6982 LD="${LD-ld} -m elf64_s390"
6983 ;;
6984 sparc*-*linux*)
6985 LD="${LD-ld} -m elf64_sparc"
6986 ;;
6987 esac
6988 ;;
6989 esac
6990 fi
6991 rm -rf conftest*
6992 ;;
6993
6994 *-*-sco3.2v5*)
6995 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6996 SAVE_CFLAGS="$CFLAGS"
6997 CFLAGS="$CFLAGS -belf"
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6999 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7000 if ${lt_cv_cc_needs_belf+:} false; then :
7001 $as_echo_n "(cached) " >&6
7002 else
7003 ac_ext=c
7004 ac_cpp='$CPP $CPPFLAGS'
7005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7008
7009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7010 /* end confdefs.h. */
7011
7012 int
7013 main ()
7014 {
7015
7016 ;
7017 return 0;
7018 }
7019 _ACEOF
7020 if ac_fn_c_try_link "$LINENO"; then :
7021 lt_cv_cc_needs_belf=yes
7022 else
7023 lt_cv_cc_needs_belf=no
7024 fi
7025 rm -f core conftest.err conftest.$ac_objext \
7026 conftest$ac_exeext conftest.$ac_ext
7027 ac_ext=c
7028 ac_cpp='$CPP $CPPFLAGS'
7029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7032
7033 fi
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7035 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7036 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7037 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7038 CFLAGS="$SAVE_CFLAGS"
7039 fi
7040 ;;
7041 sparc*-*solaris*)
7042 # Find out which ABI we are using.
7043 echo 'int i;' > conftest.$ac_ext
7044 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7045 (eval $ac_compile) 2>&5
7046 ac_status=$?
7047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7048 test $ac_status = 0; }; then
7049 case `/usr/bin/file conftest.o` in
7050 *64-bit*)
7051 case $lt_cv_prog_gnu_ld in
7052 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7053 *)
7054 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7055 LD="${LD-ld} -64"
7056 fi
7057 ;;
7058 esac
7059 ;;
7060 esac
7061 fi
7062 rm -rf conftest*
7063 ;;
7064 esac
7065
7066 need_locks="$enable_libtool_lock"
7067
7068
7069 case $host_os in
7070 rhapsody* | darwin*)
7071 if test -n "$ac_tool_prefix"; then
7072 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7073 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7075 $as_echo_n "checking for $ac_word... " >&6; }
7076 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7077 $as_echo_n "(cached) " >&6
7078 else
7079 if test -n "$DSYMUTIL"; then
7080 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7081 else
7082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083 for as_dir in $PATH
7084 do
7085 IFS=$as_save_IFS
7086 test -z "$as_dir" && as_dir=.
7087 for ac_exec_ext in '' $ac_executable_extensions; do
7088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7089 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7091 break 2
7092 fi
7093 done
7094 done
7095 IFS=$as_save_IFS
7096
7097 fi
7098 fi
7099 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7100 if test -n "$DSYMUTIL"; then
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7102 $as_echo "$DSYMUTIL" >&6; }
7103 else
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7105 $as_echo "no" >&6; }
7106 fi
7107
7108
7109 fi
7110 if test -z "$ac_cv_prog_DSYMUTIL"; then
7111 ac_ct_DSYMUTIL=$DSYMUTIL
7112 # Extract the first word of "dsymutil", so it can be a program name with args.
7113 set dummy dsymutil; ac_word=$2
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7115 $as_echo_n "checking for $ac_word... " >&6; }
7116 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7117 $as_echo_n "(cached) " >&6
7118 else
7119 if test -n "$ac_ct_DSYMUTIL"; then
7120 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7121 else
7122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7123 for as_dir in $PATH
7124 do
7125 IFS=$as_save_IFS
7126 test -z "$as_dir" && as_dir=.
7127 for ac_exec_ext in '' $ac_executable_extensions; do
7128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7129 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7131 break 2
7132 fi
7133 done
7134 done
7135 IFS=$as_save_IFS
7136
7137 fi
7138 fi
7139 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7140 if test -n "$ac_ct_DSYMUTIL"; then
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7142 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7143 else
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7145 $as_echo "no" >&6; }
7146 fi
7147
7148 if test "x$ac_ct_DSYMUTIL" = x; then
7149 DSYMUTIL=":"
7150 else
7151 case $cross_compiling:$ac_tool_warned in
7152 yes:)
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7154 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7155 ac_tool_warned=yes ;;
7156 esac
7157 DSYMUTIL=$ac_ct_DSYMUTIL
7158 fi
7159 else
7160 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7161 fi
7162
7163 if test -n "$ac_tool_prefix"; then
7164 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7165 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7167 $as_echo_n "checking for $ac_word... " >&6; }
7168 if ${ac_cv_prog_NMEDIT+:} false; then :
7169 $as_echo_n "(cached) " >&6
7170 else
7171 if test -n "$NMEDIT"; then
7172 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7173 else
7174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175 for as_dir in $PATH
7176 do
7177 IFS=$as_save_IFS
7178 test -z "$as_dir" && as_dir=.
7179 for ac_exec_ext in '' $ac_executable_extensions; do
7180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7181 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7183 break 2
7184 fi
7185 done
7186 done
7187 IFS=$as_save_IFS
7188
7189 fi
7190 fi
7191 NMEDIT=$ac_cv_prog_NMEDIT
7192 if test -n "$NMEDIT"; then
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7194 $as_echo "$NMEDIT" >&6; }
7195 else
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7197 $as_echo "no" >&6; }
7198 fi
7199
7200
7201 fi
7202 if test -z "$ac_cv_prog_NMEDIT"; then
7203 ac_ct_NMEDIT=$NMEDIT
7204 # Extract the first word of "nmedit", so it can be a program name with args.
7205 set dummy nmedit; ac_word=$2
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7207 $as_echo_n "checking for $ac_word... " >&6; }
7208 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7209 $as_echo_n "(cached) " >&6
7210 else
7211 if test -n "$ac_ct_NMEDIT"; then
7212 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7213 else
7214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215 for as_dir in $PATH
7216 do
7217 IFS=$as_save_IFS
7218 test -z "$as_dir" && as_dir=.
7219 for ac_exec_ext in '' $ac_executable_extensions; do
7220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7221 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7223 break 2
7224 fi
7225 done
7226 done
7227 IFS=$as_save_IFS
7228
7229 fi
7230 fi
7231 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7232 if test -n "$ac_ct_NMEDIT"; then
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7234 $as_echo "$ac_ct_NMEDIT" >&6; }
7235 else
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7237 $as_echo "no" >&6; }
7238 fi
7239
7240 if test "x$ac_ct_NMEDIT" = x; then
7241 NMEDIT=":"
7242 else
7243 case $cross_compiling:$ac_tool_warned in
7244 yes:)
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7247 ac_tool_warned=yes ;;
7248 esac
7249 NMEDIT=$ac_ct_NMEDIT
7250 fi
7251 else
7252 NMEDIT="$ac_cv_prog_NMEDIT"
7253 fi
7254
7255 if test -n "$ac_tool_prefix"; then
7256 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7257 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7259 $as_echo_n "checking for $ac_word... " >&6; }
7260 if ${ac_cv_prog_LIPO+:} false; then :
7261 $as_echo_n "(cached) " >&6
7262 else
7263 if test -n "$LIPO"; then
7264 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7265 else
7266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7267 for as_dir in $PATH
7268 do
7269 IFS=$as_save_IFS
7270 test -z "$as_dir" && as_dir=.
7271 for ac_exec_ext in '' $ac_executable_extensions; do
7272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7273 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7275 break 2
7276 fi
7277 done
7278 done
7279 IFS=$as_save_IFS
7280
7281 fi
7282 fi
7283 LIPO=$ac_cv_prog_LIPO
7284 if test -n "$LIPO"; then
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7286 $as_echo "$LIPO" >&6; }
7287 else
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7289 $as_echo "no" >&6; }
7290 fi
7291
7292
7293 fi
7294 if test -z "$ac_cv_prog_LIPO"; then
7295 ac_ct_LIPO=$LIPO
7296 # Extract the first word of "lipo", so it can be a program name with args.
7297 set dummy lipo; ac_word=$2
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7299 $as_echo_n "checking for $ac_word... " >&6; }
7300 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7301 $as_echo_n "(cached) " >&6
7302 else
7303 if test -n "$ac_ct_LIPO"; then
7304 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7305 else
7306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7307 for as_dir in $PATH
7308 do
7309 IFS=$as_save_IFS
7310 test -z "$as_dir" && as_dir=.
7311 for ac_exec_ext in '' $ac_executable_extensions; do
7312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7313 ac_cv_prog_ac_ct_LIPO="lipo"
7314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7315 break 2
7316 fi
7317 done
7318 done
7319 IFS=$as_save_IFS
7320
7321 fi
7322 fi
7323 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7324 if test -n "$ac_ct_LIPO"; then
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7326 $as_echo "$ac_ct_LIPO" >&6; }
7327 else
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7329 $as_echo "no" >&6; }
7330 fi
7331
7332 if test "x$ac_ct_LIPO" = x; then
7333 LIPO=":"
7334 else
7335 case $cross_compiling:$ac_tool_warned in
7336 yes:)
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7338 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7339 ac_tool_warned=yes ;;
7340 esac
7341 LIPO=$ac_ct_LIPO
7342 fi
7343 else
7344 LIPO="$ac_cv_prog_LIPO"
7345 fi
7346
7347 if test -n "$ac_tool_prefix"; then
7348 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7349 set dummy ${ac_tool_prefix}otool; ac_word=$2
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7351 $as_echo_n "checking for $ac_word... " >&6; }
7352 if ${ac_cv_prog_OTOOL+:} false; then :
7353 $as_echo_n "(cached) " >&6
7354 else
7355 if test -n "$OTOOL"; then
7356 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7357 else
7358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7359 for as_dir in $PATH
7360 do
7361 IFS=$as_save_IFS
7362 test -z "$as_dir" && as_dir=.
7363 for ac_exec_ext in '' $ac_executable_extensions; do
7364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7365 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7367 break 2
7368 fi
7369 done
7370 done
7371 IFS=$as_save_IFS
7372
7373 fi
7374 fi
7375 OTOOL=$ac_cv_prog_OTOOL
7376 if test -n "$OTOOL"; then
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7378 $as_echo "$OTOOL" >&6; }
7379 else
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7381 $as_echo "no" >&6; }
7382 fi
7383
7384
7385 fi
7386 if test -z "$ac_cv_prog_OTOOL"; then
7387 ac_ct_OTOOL=$OTOOL
7388 # Extract the first word of "otool", so it can be a program name with args.
7389 set dummy otool; ac_word=$2
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7391 $as_echo_n "checking for $ac_word... " >&6; }
7392 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7393 $as_echo_n "(cached) " >&6
7394 else
7395 if test -n "$ac_ct_OTOOL"; then
7396 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7397 else
7398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7399 for as_dir in $PATH
7400 do
7401 IFS=$as_save_IFS
7402 test -z "$as_dir" && as_dir=.
7403 for ac_exec_ext in '' $ac_executable_extensions; do
7404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7405 ac_cv_prog_ac_ct_OTOOL="otool"
7406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7407 break 2
7408 fi
7409 done
7410 done
7411 IFS=$as_save_IFS
7412
7413 fi
7414 fi
7415 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7416 if test -n "$ac_ct_OTOOL"; then
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7418 $as_echo "$ac_ct_OTOOL" >&6; }
7419 else
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7421 $as_echo "no" >&6; }
7422 fi
7423
7424 if test "x$ac_ct_OTOOL" = x; then
7425 OTOOL=":"
7426 else
7427 case $cross_compiling:$ac_tool_warned in
7428 yes:)
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7431 ac_tool_warned=yes ;;
7432 esac
7433 OTOOL=$ac_ct_OTOOL
7434 fi
7435 else
7436 OTOOL="$ac_cv_prog_OTOOL"
7437 fi
7438
7439 if test -n "$ac_tool_prefix"; then
7440 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7441 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7443 $as_echo_n "checking for $ac_word... " >&6; }
7444 if ${ac_cv_prog_OTOOL64+:} false; then :
7445 $as_echo_n "(cached) " >&6
7446 else
7447 if test -n "$OTOOL64"; then
7448 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7449 else
7450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7451 for as_dir in $PATH
7452 do
7453 IFS=$as_save_IFS
7454 test -z "$as_dir" && as_dir=.
7455 for ac_exec_ext in '' $ac_executable_extensions; do
7456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7457 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7459 break 2
7460 fi
7461 done
7462 done
7463 IFS=$as_save_IFS
7464
7465 fi
7466 fi
7467 OTOOL64=$ac_cv_prog_OTOOL64
7468 if test -n "$OTOOL64"; then
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7470 $as_echo "$OTOOL64" >&6; }
7471 else
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7473 $as_echo "no" >&6; }
7474 fi
7475
7476
7477 fi
7478 if test -z "$ac_cv_prog_OTOOL64"; then
7479 ac_ct_OTOOL64=$OTOOL64
7480 # Extract the first word of "otool64", so it can be a program name with args.
7481 set dummy otool64; ac_word=$2
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7483 $as_echo_n "checking for $ac_word... " >&6; }
7484 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7485 $as_echo_n "(cached) " >&6
7486 else
7487 if test -n "$ac_ct_OTOOL64"; then
7488 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7489 else
7490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7491 for as_dir in $PATH
7492 do
7493 IFS=$as_save_IFS
7494 test -z "$as_dir" && as_dir=.
7495 for ac_exec_ext in '' $ac_executable_extensions; do
7496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7497 ac_cv_prog_ac_ct_OTOOL64="otool64"
7498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7499 break 2
7500 fi
7501 done
7502 done
7503 IFS=$as_save_IFS
7504
7505 fi
7506 fi
7507 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7508 if test -n "$ac_ct_OTOOL64"; then
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7510 $as_echo "$ac_ct_OTOOL64" >&6; }
7511 else
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7513 $as_echo "no" >&6; }
7514 fi
7515
7516 if test "x$ac_ct_OTOOL64" = x; then
7517 OTOOL64=":"
7518 else
7519 case $cross_compiling:$ac_tool_warned in
7520 yes:)
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7523 ac_tool_warned=yes ;;
7524 esac
7525 OTOOL64=$ac_ct_OTOOL64
7526 fi
7527 else
7528 OTOOL64="$ac_cv_prog_OTOOL64"
7529 fi
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7558 $as_echo_n "checking for -single_module linker flag... " >&6; }
7559 if ${lt_cv_apple_cc_single_mod+:} false; then :
7560 $as_echo_n "(cached) " >&6
7561 else
7562 lt_cv_apple_cc_single_mod=no
7563 if test -z "${LT_MULTI_MODULE}"; then
7564 # By default we will add the -single_module flag. You can override
7565 # by either setting the environment variable LT_MULTI_MODULE
7566 # non-empty at configure time, or by adding -multi_module to the
7567 # link flags.
7568 rm -rf libconftest.dylib*
7569 echo "int foo(void){return 1;}" > conftest.c
7570 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7571 -dynamiclib -Wl,-single_module conftest.c" >&5
7572 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7573 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7574 _lt_result=$?
7575 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7576 lt_cv_apple_cc_single_mod=yes
7577 else
7578 cat conftest.err >&5
7579 fi
7580 rm -rf libconftest.dylib*
7581 rm -f conftest.*
7582 fi
7583 fi
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7585 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7587 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7588 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7589 $as_echo_n "(cached) " >&6
7590 else
7591 lt_cv_ld_exported_symbols_list=no
7592 save_LDFLAGS=$LDFLAGS
7593 echo "_main" > conftest.sym
7594 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7596 /* end confdefs.h. */
7597
7598 int
7599 main ()
7600 {
7601
7602 ;
7603 return 0;
7604 }
7605 _ACEOF
7606 if ac_fn_c_try_link "$LINENO"; then :
7607 lt_cv_ld_exported_symbols_list=yes
7608 else
7609 lt_cv_ld_exported_symbols_list=no
7610 fi
7611 rm -f core conftest.err conftest.$ac_objext \
7612 conftest$ac_exeext conftest.$ac_ext
7613 LDFLAGS="$save_LDFLAGS"
7614
7615 fi
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7617 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7619 $as_echo_n "checking for -force_load linker flag... " >&6; }
7620 if ${lt_cv_ld_force_load+:} false; then :
7621 $as_echo_n "(cached) " >&6
7622 else
7623 lt_cv_ld_force_load=no
7624 cat > conftest.c << _LT_EOF
7625 int forced_loaded() { return 2;}
7626 _LT_EOF
7627 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7628 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7629 echo "$AR cru libconftest.a conftest.o" >&5
7630 $AR cru libconftest.a conftest.o 2>&5
7631 cat > conftest.c << _LT_EOF
7632 int main() { return 0;}
7633 _LT_EOF
7634 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7635 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7636 _lt_result=$?
7637 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7638 lt_cv_ld_force_load=yes
7639 else
7640 cat conftest.err >&5
7641 fi
7642 rm -f conftest.err libconftest.a conftest conftest.c
7643 rm -rf conftest.dSYM
7644
7645 fi
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7647 $as_echo "$lt_cv_ld_force_load" >&6; }
7648 case $host_os in
7649 rhapsody* | darwin1.[012])
7650 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7651 darwin1.*)
7652 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7653 darwin*) # darwin 5.x on
7654 # if running on 10.5 or later, the deployment target defaults
7655 # to the OS version, if on x86, and 10.4, the deployment
7656 # target defaults to 10.4. Don't you love it?
7657 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7658 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7659 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7660 10.[012][,.]*)
7661 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7662 10.*)
7663 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7664 esac
7665 ;;
7666 esac
7667 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7668 _lt_dar_single_mod='$single_module'
7669 fi
7670 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7671 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7672 else
7673 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7674 fi
7675 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7676 _lt_dsymutil='~$DSYMUTIL $lib || :'
7677 else
7678 _lt_dsymutil=
7679 fi
7680 ;;
7681 esac
7682
7683 for ac_header in dlfcn.h
7684 do :
7685 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7686 "
7687 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7688 cat >>confdefs.h <<_ACEOF
7689 #define HAVE_DLFCN_H 1
7690 _ACEOF
7691
7692 fi
7693
7694 done
7695
7696
7697 ac_header_dirent=no
7698 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7699 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
7701 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
7702 if eval \${$as_ac_Header+:} false; then :
7703 $as_echo_n "(cached) " >&6
7704 else
7705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7706 /* end confdefs.h. */
7707 #include <sys/types.h>
7708 #include <$ac_hdr>
7709
7710 int
7711 main ()
7712 {
7713 if ((DIR *) 0)
7714 return 0;
7715 ;
7716 return 0;
7717 }
7718 _ACEOF
7719 if ac_fn_c_try_compile "$LINENO"; then :
7720 eval "$as_ac_Header=yes"
7721 else
7722 eval "$as_ac_Header=no"
7723 fi
7724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7725 fi
7726 eval ac_res=\$$as_ac_Header
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7728 $as_echo "$ac_res" >&6; }
7729 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7730 cat >>confdefs.h <<_ACEOF
7731 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7732 _ACEOF
7733
7734 ac_header_dirent=$ac_hdr; break
7735 fi
7736
7737 done
7738 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7739 if test $ac_header_dirent = dirent.h; then
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7741 $as_echo_n "checking for library containing opendir... " >&6; }
7742 if ${ac_cv_search_opendir+:} false; then :
7743 $as_echo_n "(cached) " >&6
7744 else
7745 ac_func_search_save_LIBS=$LIBS
7746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7747 /* end confdefs.h. */
7748
7749 /* Override any GCC internal prototype to avoid an error.
7750 Use char because int might match the return type of a GCC
7751 builtin and then its argument prototype would still apply. */
7752 #ifdef __cplusplus
7753 extern "C"
7754 #endif
7755 char opendir ();
7756 int
7757 main ()
7758 {
7759 return opendir ();
7760 ;
7761 return 0;
7762 }
7763 _ACEOF
7764 for ac_lib in '' dir; do
7765 if test -z "$ac_lib"; then
7766 ac_res="none required"
7767 else
7768 ac_res=-l$ac_lib
7769 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7770 fi
7771 if ac_fn_c_try_link "$LINENO"; then :
7772 ac_cv_search_opendir=$ac_res
7773 fi
7774 rm -f core conftest.err conftest.$ac_objext \
7775 conftest$ac_exeext
7776 if ${ac_cv_search_opendir+:} false; then :
7777 break
7778 fi
7779 done
7780 if ${ac_cv_search_opendir+:} false; then :
7781
7782 else
7783 ac_cv_search_opendir=no
7784 fi
7785 rm conftest.$ac_ext
7786 LIBS=$ac_func_search_save_LIBS
7787 fi
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7789 $as_echo "$ac_cv_search_opendir" >&6; }
7790 ac_res=$ac_cv_search_opendir
7791 if test "$ac_res" != no; then :
7792 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7793
7794 fi
7795
7796 else
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7798 $as_echo_n "checking for library containing opendir... " >&6; }
7799 if ${ac_cv_search_opendir+:} false; then :
7800 $as_echo_n "(cached) " >&6
7801 else
7802 ac_func_search_save_LIBS=$LIBS
7803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7804 /* end confdefs.h. */
7805
7806 /* Override any GCC internal prototype to avoid an error.
7807 Use char because int might match the return type of a GCC
7808 builtin and then its argument prototype would still apply. */
7809 #ifdef __cplusplus
7810 extern "C"
7811 #endif
7812 char opendir ();
7813 int
7814 main ()
7815 {
7816 return opendir ();
7817 ;
7818 return 0;
7819 }
7820 _ACEOF
7821 for ac_lib in '' x; do
7822 if test -z "$ac_lib"; then
7823 ac_res="none required"
7824 else
7825 ac_res=-l$ac_lib
7826 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7827 fi
7828 if ac_fn_c_try_link "$LINENO"; then :
7829 ac_cv_search_opendir=$ac_res
7830 fi
7831 rm -f core conftest.err conftest.$ac_objext \
7832 conftest$ac_exeext
7833 if ${ac_cv_search_opendir+:} false; then :
7834 break
7835 fi
7836 done
7837 if ${ac_cv_search_opendir+:} false; then :
7838
7839 else
7840 ac_cv_search_opendir=no
7841 fi
7842 rm conftest.$ac_ext
7843 LIBS=$ac_func_search_save_LIBS
7844 fi
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7846 $as_echo "$ac_cv_search_opendir" >&6; }
7847 ac_res=$ac_cv_search_opendir
7848 if test "$ac_res" != no; then :
7849 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7850
7851 fi
7852
7853 fi
7854
7855
7856
7857
7858 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
7859 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
7860
7861 cat >>confdefs.h <<_ACEOF
7862 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
7863 _ACEOF
7864
7865
7866 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
7867
7868 fi
7869
7870
7871 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
7872 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
7873
7874 cat >>confdefs.h <<_ACEOF
7875 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
7876 _ACEOF
7877
7878
7879 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
7880
7881 else
7882 case " $LIBOBJS " in
7883 *" fileblocks.$ac_objext "* ) ;;
7884 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
7885 ;;
7886 esac
7887
7888 fi
7889
7890
7891 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
7892 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
7893
7894 cat >>confdefs.h <<_ACEOF
7895 #define HAVE_STRUCT_STAT_ST_RDEV 1
7896 _ACEOF
7897
7898
7899 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
7900
7901 fi
7902
7903
7904 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7905 #include <$ac_cv_struct_tm>
7906
7907 "
7908 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
7909
7910 cat >>confdefs.h <<_ACEOF
7911 #define HAVE_STRUCT_TM_TM_ZONE 1
7912 _ACEOF
7913
7914
7915 fi
7916
7917 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7918
7919 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7920
7921 else
7922 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7923 "
7924 if test "x$ac_cv_have_decl_tzname" = xyes; then :
7925 ac_have_decl=1
7926 else
7927 ac_have_decl=0
7928 fi
7929
7930 cat >>confdefs.h <<_ACEOF
7931 #define HAVE_DECL_TZNAME $ac_have_decl
7932 _ACEOF
7933
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7935 $as_echo_n "checking for tzname... " >&6; }
7936 if ${ac_cv_var_tzname+:} false; then :
7937 $as_echo_n "(cached) " >&6
7938 else
7939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7940 /* end confdefs.h. */
7941 #include <time.h>
7942 #if !HAVE_DECL_TZNAME
7943 extern char *tzname[];
7944 #endif
7945
7946 int
7947 main ()
7948 {
7949 return tzname[0][0];
7950 ;
7951 return 0;
7952 }
7953 _ACEOF
7954 if ac_fn_c_try_link "$LINENO"; then :
7955 ac_cv_var_tzname=yes
7956 else
7957 ac_cv_var_tzname=no
7958 fi
7959 rm -f core conftest.err conftest.$ac_objext \
7960 conftest$ac_exeext conftest.$ac_ext
7961 fi
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7963 $as_echo "$ac_cv_var_tzname" >&6; }
7964 if test $ac_cv_var_tzname = yes; then
7965
7966 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7967
7968 fi
7969 fi
7970
7971
7972 ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H
7973 #include <sys/types.h>
7974 #endif
7975 #ifdef HAVE_SYS_STAT_H
7976 #include <sys/stat.h>
7977 #endif
7978 "
7979 if test "x$ac_cv_member_struct_stat_st_dev" = xyes; then :
7980
7981 cat >>confdefs.h <<_ACEOF
7982 #define HAVE_STRUCT_STAT_ST_DEV 1
7983 _ACEOF
7984
7985
7986 fi
7987 ac_fn_c_check_member "$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H
7988 #include <sys/types.h>
7989 #endif
7990 #ifdef HAVE_SYS_STAT_H
7991 #include <sys/stat.h>
7992 #endif
7993 "
7994 if test "x$ac_cv_member_struct_stat_st_ino" = xyes; then :
7995
7996 cat >>confdefs.h <<_ACEOF
7997 #define HAVE_STRUCT_STAT_ST_INO 1
7998 _ACEOF
7999
8000
8001 fi
8002 ac_fn_c_check_member "$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H
8003 #include <sys/types.h>
8004 #endif
8005 #ifdef HAVE_SYS_STAT_H
8006 #include <sys/stat.h>
8007 #endif
8008 "
8009 if test "x$ac_cv_member_struct_stat_st_mode" = xyes; then :
8010
8011 cat >>confdefs.h <<_ACEOF
8012 #define HAVE_STRUCT_STAT_ST_MODE 1
8013 _ACEOF
8014
8015
8016 fi
8017 ac_fn_c_check_member "$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H
8018 #include <sys/types.h>
8019 #endif
8020 #ifdef HAVE_SYS_STAT_H
8021 #include <sys/stat.h>
8022 #endif
8023 "
8024 if test "x$ac_cv_member_struct_stat_st_nlink" = xyes; then :
8025
8026 cat >>confdefs.h <<_ACEOF
8027 #define HAVE_STRUCT_STAT_ST_NLINK 1
8028 _ACEOF
8029
8030
8031 fi
8032 ac_fn_c_check_member "$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H
8033 #include <sys/types.h>
8034 #endif
8035 #ifdef HAVE_SYS_STAT_H
8036 #include <sys/stat.h>
8037 #endif
8038 "
8039 if test "x$ac_cv_member_struct_stat_st_uid" = xyes; then :
8040
8041 cat >>confdefs.h <<_ACEOF
8042 #define HAVE_STRUCT_STAT_ST_UID 1
8043 _ACEOF
8044
8045
8046 fi
8047 ac_fn_c_check_member "$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H
8048 #include <sys/types.h>
8049 #endif
8050 #ifdef HAVE_SYS_STAT_H
8051 #include <sys/stat.h>
8052 #endif
8053 "
8054 if test "x$ac_cv_member_struct_stat_st_gid" = xyes; then :
8055
8056 cat >>confdefs.h <<_ACEOF
8057 #define HAVE_STRUCT_STAT_ST_GID 1
8058 _ACEOF
8059
8060
8061 fi
8062 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H
8063 #include <sys/types.h>
8064 #endif
8065 #ifdef HAVE_SYS_STAT_H
8066 #include <sys/stat.h>
8067 #endif
8068 "
8069 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
8070
8071 cat >>confdefs.h <<_ACEOF
8072 #define HAVE_STRUCT_STAT_ST_RDEV 1
8073 _ACEOF
8074
8075
8076 fi
8077 ac_fn_c_check_member "$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H
8078 #include <sys/types.h>
8079 #endif
8080 #ifdef HAVE_SYS_STAT_H
8081 #include <sys/stat.h>
8082 #endif
8083 "
8084 if test "x$ac_cv_member_struct_stat_st_size" = xyes; then :
8085
8086 cat >>confdefs.h <<_ACEOF
8087 #define HAVE_STRUCT_STAT_ST_SIZE 1
8088 _ACEOF
8089
8090
8091 fi
8092 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H
8093 #include <sys/types.h>
8094 #endif
8095 #ifdef HAVE_SYS_STAT_H
8096 #include <sys/stat.h>
8097 #endif
8098 "
8099 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8100
8101 cat >>confdefs.h <<_ACEOF
8102 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8103 _ACEOF
8104
8105
8106 fi
8107 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H
8108 #include <sys/types.h>
8109 #endif
8110 #ifdef HAVE_SYS_STAT_H
8111 #include <sys/stat.h>
8112 #endif
8113 "
8114 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8115
8116 cat >>confdefs.h <<_ACEOF
8117 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8118 _ACEOF
8119
8120
8121 fi
8122 ac_fn_c_check_member "$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H
8123 #include <sys/types.h>
8124 #endif
8125 #ifdef HAVE_SYS_STAT_H
8126 #include <sys/stat.h>
8127 #endif
8128 "
8129 if test "x$ac_cv_member_struct_stat_st_atime" = xyes; then :
8130
8131 cat >>confdefs.h <<_ACEOF
8132 #define HAVE_STRUCT_STAT_ST_ATIME 1
8133 _ACEOF
8134
8135
8136 fi
8137 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H
8138 #include <sys/types.h>
8139 #endif
8140 #ifdef HAVE_SYS_STAT_H
8141 #include <sys/stat.h>
8142 #endif
8143 "
8144 if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then :
8145
8146 cat >>confdefs.h <<_ACEOF
8147 #define HAVE_STRUCT_STAT_ST_MTIME 1
8148 _ACEOF
8149
8150
8151 fi
8152 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H
8153 #include <sys/types.h>
8154 #endif
8155 #ifdef HAVE_SYS_STAT_H
8156 #include <sys/stat.h>
8157 #endif
8158 "
8159 if test "x$ac_cv_member_struct_stat_st_ctime" = xyes; then :
8160
8161 cat >>confdefs.h <<_ACEOF
8162 #define HAVE_STRUCT_STAT_ST_CTIME 1
8163 _ACEOF
8164
8165
8166 fi
8167
8168
8169 ac_fn_c_check_type "$LINENO" "__int128" "ac_cv_type___int128" "$ac_includes_default"
8170 if test "x$ac_cv_type___int128" = xyes; then :
8171
8172 cat >>confdefs.h <<_ACEOF
8173 #define HAVE___INT128 1
8174 _ACEOF
8175
8176
8177 fi
8178
8179 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
8180 #include <sys/socket.h>
8181
8182 "
8183 if test "x$ac_cv_type_socklen_t" = xyes; then :
8184
8185 cat >>confdefs.h <<_ACEOF
8186 #define HAVE_SOCKLEN_T 1
8187 _ACEOF
8188
8189
8190 fi
8191
8192
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
8194 $as_echo_n "checking type of array argument to getgroups... " >&6; }
8195 if ${ac_cv_type_getgroups+:} false; then :
8196 $as_echo_n "(cached) " >&6
8197 else
8198 if test "$cross_compiling" = yes; then :
8199 ac_cv_type_getgroups=cross
8200 else
8201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8202 /* end confdefs.h. */
8203 /* Thanks to Mike Rendell for this test. */
8204 $ac_includes_default
8205 #define NGID 256
8206 #undef MAX
8207 #define MAX(x, y) ((x) > (y) ? (x) : (y))
8208
8209 int
8210 main ()
8211 {
8212 gid_t gidset[NGID];
8213 int i, n;
8214 union { gid_t gval; long int lval; } val;
8215
8216 val.lval = -1;
8217 for (i = 0; i < NGID; i++)
8218 gidset[i] = val.gval;
8219 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
8220 gidset);
8221 /* Exit non-zero if getgroups seems to require an array of ints. This
8222 happens when gid_t is short int but getgroups modifies an array
8223 of ints. */
8224 return n > 0 && gidset[n] != val.gval;
8225 }
8226 _ACEOF
8227 if ac_fn_c_try_run "$LINENO"; then :
8228 ac_cv_type_getgroups=gid_t
8229 else
8230 ac_cv_type_getgroups=int
8231 fi
8232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8233 conftest.$ac_objext conftest.beam conftest.$ac_ext
8234 fi
8235
8236 if test $ac_cv_type_getgroups = cross; then
8237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8238 /* end confdefs.h. */
8239 #include <unistd.h>
8240
8241 _ACEOF
8242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8243 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
8244 ac_cv_type_getgroups=gid_t
8245 else
8246 ac_cv_type_getgroups=int
8247 fi
8248 rm -f conftest*
8249
8250 fi
8251 fi
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
8253 $as_echo "$ac_cv_type_getgroups" >&6; }
8254
8255 cat >>confdefs.h <<_ACEOF
8256 #define GETGROUPS_T $ac_cv_type_getgroups
8257 _ACEOF
8258
8259
8260 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
8261 if test "x$ac_cv_type_mode_t" = xyes; then :
8262
8263 else
8264
8265 cat >>confdefs.h <<_ACEOF
8266 #define mode_t int
8267 _ACEOF
8268
8269 fi
8270
8271 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
8272 if test "x$ac_cv_type_off_t" = xyes; then :
8273
8274 else
8275
8276 cat >>confdefs.h <<_ACEOF
8277 #define off_t long int
8278 _ACEOF
8279
8280 fi
8281
8282 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8283 if test "x$ac_cv_type_pid_t" = xyes; then :
8284
8285 else
8286
8287 cat >>confdefs.h <<_ACEOF
8288 #define pid_t int
8289 _ACEOF
8290
8291 fi
8292
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8294 $as_echo_n "checking return type of signal handlers... " >&6; }
8295 if ${ac_cv_type_signal+:} false; then :
8296 $as_echo_n "(cached) " >&6
8297 else
8298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8299 /* end confdefs.h. */
8300 #include <sys/types.h>
8301 #include <signal.h>
8302
8303 int
8304 main ()
8305 {
8306 return *(signal (0, 0)) (0) == 1;
8307 ;
8308 return 0;
8309 }
8310 _ACEOF
8311 if ac_fn_c_try_compile "$LINENO"; then :
8312 ac_cv_type_signal=int
8313 else
8314 ac_cv_type_signal=void
8315 fi
8316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8317 fi
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8319 $as_echo "$ac_cv_type_signal" >&6; }
8320
8321 cat >>confdefs.h <<_ACEOF
8322 #define RETSIGTYPE $ac_cv_type_signal
8323 _ACEOF
8324
8325
8326 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8327 if test "x$ac_cv_type_size_t" = xyes; then :
8328
8329 else
8330
8331 cat >>confdefs.h <<_ACEOF
8332 #define size_t unsigned int
8333 _ACEOF
8334
8335 fi
8336
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8338 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8339 if ${ac_cv_type_uid_t+:} false; then :
8340 $as_echo_n "(cached) " >&6
8341 else
8342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8343 /* end confdefs.h. */
8344 #include <sys/types.h>
8345
8346 _ACEOF
8347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8348 $EGREP "uid_t" >/dev/null 2>&1; then :
8349 ac_cv_type_uid_t=yes
8350 else
8351 ac_cv_type_uid_t=no
8352 fi
8353 rm -f conftest*
8354
8355 fi
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8357 $as_echo "$ac_cv_type_uid_t" >&6; }
8358 if test $ac_cv_type_uid_t = no; then
8359
8360 $as_echo "#define uid_t int" >>confdefs.h
8361
8362
8363 $as_echo "#define gid_t int" >>confdefs.h
8364
8365 fi
8366
8367
8368 ALL_LINGUAS=
8369 # If we haven't got the data from the intl directory,
8370 # assume NLS is disabled.
8371 USE_NLS=no
8372 LIBINTL=
8373 LIBINTL_DEP=
8374 INCINTL=
8375 XGETTEXT=
8376 GMSGFMT=
8377 POSUB=
8378
8379 if test -f ../intl/config.intl; then
8380 . ../intl/config.intl
8381 fi
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8383 $as_echo_n "checking whether NLS is requested... " >&6; }
8384 if test x"$USE_NLS" != xyes; then
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8386 $as_echo "no" >&6; }
8387 else
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8389 $as_echo "yes" >&6; }
8390
8391 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
8392
8393
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
8395 $as_echo_n "checking for catalogs to be installed... " >&6; }
8396 # Look for .po and .gmo files in the source directory.
8397 CATALOGS=
8398 XLINGUAS=
8399 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
8400 # If there aren't any .gmo files the shell will give us the
8401 # literal string "../path/to/srcdir/po/*.gmo" which has to be
8402 # weeded out.
8403 case "$cat" in *\**)
8404 continue;;
8405 esac
8406 # The quadruple backslash is collapsed to a double backslash
8407 # by the backticks, then collapsed again by the double quotes,
8408 # leaving us with one backslash in the sed expression (right
8409 # before the dot that mustn't act as a wildcard).
8410 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
8411 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
8412 # The user is allowed to set LINGUAS to a list of languages to
8413 # install catalogs for. If it's empty that means "all of them."
8414 if test "x$LINGUAS" = x; then
8415 CATALOGS="$CATALOGS $cat"
8416 XLINGUAS="$XLINGUAS $lang"
8417 else
8418 case "$LINGUAS" in *$lang*)
8419 CATALOGS="$CATALOGS $cat"
8420 XLINGUAS="$XLINGUAS $lang"
8421 ;;
8422 esac
8423 fi
8424 done
8425 LINGUAS="$XLINGUAS"
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
8427 $as_echo "$LINGUAS" >&6; }
8428
8429
8430 DATADIRNAME=share
8431
8432 INSTOBJEXT=.mo
8433
8434 GENCAT=gencat
8435
8436 CATOBJEXT=.gmo
8437
8438 fi
8439
8440
8441 # Use the system's zlib library.
8442 zlibdir="-L\$(top_builddir)/../zlib"
8443 zlibinc="-I\$(top_srcdir)/../zlib"
8444
8445 # Check whether --with-system-zlib was given.
8446 if test "${with_system_zlib+set}" = set; then :
8447 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
8448 zlibdir=
8449 zlibinc=
8450 fi
8451
8452 fi
8453
8454
8455
8456
8457
8458
8459 maybe_plugins=no
8460 for ac_header in dlfcn.h
8461 do :
8462 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8463 "
8464 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8465 cat >>confdefs.h <<_ACEOF
8466 #define HAVE_DLFCN_H 1
8467 _ACEOF
8468 maybe_plugins=yes
8469 fi
8470
8471 done
8472
8473 for ac_header in windows.h
8474 do :
8475 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
8476 "
8477 if test "x$ac_cv_header_windows_h" = xyes; then :
8478 cat >>confdefs.h <<_ACEOF
8479 #define HAVE_WINDOWS_H 1
8480 _ACEOF
8481 maybe_plugins=yes
8482 fi
8483
8484 done
8485
8486
8487 # Check whether --enable-plugins was given.
8488 if test "${enable_plugins+set}" = set; then :
8489 enableval=$enable_plugins; case "${enableval}" in
8490 no) plugins=no ;;
8491 *) plugins=yes
8492 if test "$maybe_plugins" != "yes" ; then
8493 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
8494 fi ;;
8495 esac
8496 else
8497 plugins=$maybe_plugins
8498
8499 fi
8500
8501 if test "$plugins" = "yes"; then
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
8503 $as_echo_n "checking for library containing dlsym... " >&6; }
8504 if ${ac_cv_search_dlsym+:} false; then :
8505 $as_echo_n "(cached) " >&6
8506 else
8507 ac_func_search_save_LIBS=$LIBS
8508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8509 /* end confdefs.h. */
8510
8511 /* Override any GCC internal prototype to avoid an error.
8512 Use char because int might match the return type of a GCC
8513 builtin and then its argument prototype would still apply. */
8514 #ifdef __cplusplus
8515 extern "C"
8516 #endif
8517 char dlsym ();
8518 int
8519 main ()
8520 {
8521 return dlsym ();
8522 ;
8523 return 0;
8524 }
8525 _ACEOF
8526 for ac_lib in '' dl; do
8527 if test -z "$ac_lib"; then
8528 ac_res="none required"
8529 else
8530 ac_res=-l$ac_lib
8531 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8532 fi
8533 if ac_fn_c_try_link "$LINENO"; then :
8534 ac_cv_search_dlsym=$ac_res
8535 fi
8536 rm -f core conftest.err conftest.$ac_objext \
8537 conftest$ac_exeext
8538 if ${ac_cv_search_dlsym+:} false; then :
8539 break
8540 fi
8541 done
8542 if ${ac_cv_search_dlsym+:} false; then :
8543
8544 else
8545 ac_cv_search_dlsym=no
8546 fi
8547 rm conftest.$ac_ext
8548 LIBS=$ac_func_search_save_LIBS
8549 fi
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
8551 $as_echo "$ac_cv_search_dlsym" >&6; }
8552 ac_res=$ac_cv_search_dlsym
8553 if test "$ac_res" != no; then :
8554 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8555
8556 fi
8557
8558 fi
8559
8560 if test "$plugins" = yes; then
8561 PLUGINS_TRUE=
8562 PLUGINS_FALSE='#'
8563 else
8564 PLUGINS_TRUE='#'
8565 PLUGINS_FALSE=
8566 fi
8567
8568
8569
8570
8571
8572 # Set options
8573 enable_dlopen=yes
8574
8575
8576
8577
8578 enable_win32_dll=no
8579
8580
8581 # Check whether --enable-shared was given.
8582 if test "${enable_shared+set}" = set; then :
8583 enableval=$enable_shared; p=${PACKAGE-default}
8584 case $enableval in
8585 yes) enable_shared=yes ;;
8586 no) enable_shared=no ;;
8587 *)
8588 enable_shared=no
8589 # Look at the argument we got. We use all the common list separators.
8590 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8591 for pkg in $enableval; do
8592 IFS="$lt_save_ifs"
8593 if test "X$pkg" = "X$p"; then
8594 enable_shared=yes
8595 fi
8596 done
8597 IFS="$lt_save_ifs"
8598 ;;
8599 esac
8600 else
8601 enable_shared=yes
8602 fi
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612 # Check whether --enable-static was given.
8613 if test "${enable_static+set}" = set; then :
8614 enableval=$enable_static; p=${PACKAGE-default}
8615 case $enableval in
8616 yes) enable_static=yes ;;
8617 no) enable_static=no ;;
8618 *)
8619 enable_static=no
8620 # Look at the argument we got. We use all the common list separators.
8621 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8622 for pkg in $enableval; do
8623 IFS="$lt_save_ifs"
8624 if test "X$pkg" = "X$p"; then
8625 enable_static=yes
8626 fi
8627 done
8628 IFS="$lt_save_ifs"
8629 ;;
8630 esac
8631 else
8632 enable_static=yes
8633 fi
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644 # Check whether --with-pic was given.
8645 if test "${with_pic+set}" = set; then :
8646 withval=$with_pic; pic_mode="$withval"
8647 else
8648 pic_mode=default
8649 fi
8650
8651
8652 test -z "$pic_mode" && pic_mode=default
8653
8654
8655
8656
8657
8658
8659
8660 # Check whether --enable-fast-install was given.
8661 if test "${enable_fast_install+set}" = set; then :
8662 enableval=$enable_fast_install; p=${PACKAGE-default}
8663 case $enableval in
8664 yes) enable_fast_install=yes ;;
8665 no) enable_fast_install=no ;;
8666 *)
8667 enable_fast_install=no
8668 # Look at the argument we got. We use all the common list separators.
8669 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8670 for pkg in $enableval; do
8671 IFS="$lt_save_ifs"
8672 if test "X$pkg" = "X$p"; then
8673 enable_fast_install=yes
8674 fi
8675 done
8676 IFS="$lt_save_ifs"
8677 ;;
8678 esac
8679 else
8680 enable_fast_install=yes
8681 fi
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693 # This can be used to rebuild libtool when needed
8694 LIBTOOL_DEPS="$ltmain"
8695
8696 # Always use our own libtool.
8697 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724 test -z "$LN_S" && LN_S="ln -s"
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739 if test -n "${ZSH_VERSION+set}" ; then
8740 setopt NO_GLOB_SUBST
8741 fi
8742
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8744 $as_echo_n "checking for objdir... " >&6; }
8745 if ${lt_cv_objdir+:} false; then :
8746 $as_echo_n "(cached) " >&6
8747 else
8748 rm -f .libs 2>/dev/null
8749 mkdir .libs 2>/dev/null
8750 if test -d .libs; then
8751 lt_cv_objdir=.libs
8752 else
8753 # MS-DOS does not allow filenames that begin with a dot.
8754 lt_cv_objdir=_libs
8755 fi
8756 rmdir .libs 2>/dev/null
8757 fi
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8759 $as_echo "$lt_cv_objdir" >&6; }
8760 objdir=$lt_cv_objdir
8761
8762
8763
8764
8765
8766 cat >>confdefs.h <<_ACEOF
8767 #define LT_OBJDIR "$lt_cv_objdir/"
8768 _ACEOF
8769
8770
8771
8772
8773 case $host_os in
8774 aix3*)
8775 # AIX sometimes has problems with the GCC collect2 program. For some
8776 # reason, if we set the COLLECT_NAMES environment variable, the problems
8777 # vanish in a puff of smoke.
8778 if test "X${COLLECT_NAMES+set}" != Xset; then
8779 COLLECT_NAMES=
8780 export COLLECT_NAMES
8781 fi
8782 ;;
8783 esac
8784
8785 # Global variables:
8786 ofile=libtool
8787 can_build_shared=yes
8788
8789 # All known linkers require a `.a' archive for static linking (except MSVC,
8790 # which needs '.lib').
8791 libext=a
8792
8793 with_gnu_ld="$lt_cv_prog_gnu_ld"
8794
8795 old_CC="$CC"
8796 old_CFLAGS="$CFLAGS"
8797
8798 # Set sane defaults for various variables
8799 test -z "$CC" && CC=cc
8800 test -z "$LTCC" && LTCC=$CC
8801 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8802 test -z "$LD" && LD=ld
8803 test -z "$ac_objext" && ac_objext=o
8804
8805 for cc_temp in $compiler""; do
8806 case $cc_temp in
8807 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8808 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8809 \-*) ;;
8810 *) break;;
8811 esac
8812 done
8813 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8814
8815
8816 # Only perform the check for file, if the check method requires it
8817 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8818 case $deplibs_check_method in
8819 file_magic*)
8820 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8822 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8823 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8824 $as_echo_n "(cached) " >&6
8825 else
8826 case $MAGIC_CMD in
8827 [\\/*] | ?:[\\/]*)
8828 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8829 ;;
8830 *)
8831 lt_save_MAGIC_CMD="$MAGIC_CMD"
8832 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8833 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8834 for ac_dir in $ac_dummy; do
8835 IFS="$lt_save_ifs"
8836 test -z "$ac_dir" && ac_dir=.
8837 if test -f $ac_dir/${ac_tool_prefix}file; then
8838 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8839 if test -n "$file_magic_test_file"; then
8840 case $deplibs_check_method in
8841 "file_magic "*)
8842 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8843 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8844 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8845 $EGREP "$file_magic_regex" > /dev/null; then
8846 :
8847 else
8848 cat <<_LT_EOF 1>&2
8849
8850 *** Warning: the command libtool uses to detect shared libraries,
8851 *** $file_magic_cmd, produces output that libtool cannot recognize.
8852 *** The result is that libtool may fail to recognize shared libraries
8853 *** as such. This will affect the creation of libtool libraries that
8854 *** depend on shared libraries, but programs linked with such libtool
8855 *** libraries will work regardless of this problem. Nevertheless, you
8856 *** may want to report the problem to your system manager and/or to
8857 *** bug-libtool@gnu.org
8858
8859 _LT_EOF
8860 fi ;;
8861 esac
8862 fi
8863 break
8864 fi
8865 done
8866 IFS="$lt_save_ifs"
8867 MAGIC_CMD="$lt_save_MAGIC_CMD"
8868 ;;
8869 esac
8870 fi
8871
8872 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8873 if test -n "$MAGIC_CMD"; then
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8875 $as_echo "$MAGIC_CMD" >&6; }
8876 else
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8878 $as_echo "no" >&6; }
8879 fi
8880
8881
8882
8883
8884
8885 if test -z "$lt_cv_path_MAGIC_CMD"; then
8886 if test -n "$ac_tool_prefix"; then
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8888 $as_echo_n "checking for file... " >&6; }
8889 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8890 $as_echo_n "(cached) " >&6
8891 else
8892 case $MAGIC_CMD in
8893 [\\/*] | ?:[\\/]*)
8894 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8895 ;;
8896 *)
8897 lt_save_MAGIC_CMD="$MAGIC_CMD"
8898 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8899 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8900 for ac_dir in $ac_dummy; do
8901 IFS="$lt_save_ifs"
8902 test -z "$ac_dir" && ac_dir=.
8903 if test -f $ac_dir/file; then
8904 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8905 if test -n "$file_magic_test_file"; then
8906 case $deplibs_check_method in
8907 "file_magic "*)
8908 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8909 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8910 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8911 $EGREP "$file_magic_regex" > /dev/null; then
8912 :
8913 else
8914 cat <<_LT_EOF 1>&2
8915
8916 *** Warning: the command libtool uses to detect shared libraries,
8917 *** $file_magic_cmd, produces output that libtool cannot recognize.
8918 *** The result is that libtool may fail to recognize shared libraries
8919 *** as such. This will affect the creation of libtool libraries that
8920 *** depend on shared libraries, but programs linked with such libtool
8921 *** libraries will work regardless of this problem. Nevertheless, you
8922 *** may want to report the problem to your system manager and/or to
8923 *** bug-libtool@gnu.org
8924
8925 _LT_EOF
8926 fi ;;
8927 esac
8928 fi
8929 break
8930 fi
8931 done
8932 IFS="$lt_save_ifs"
8933 MAGIC_CMD="$lt_save_MAGIC_CMD"
8934 ;;
8935 esac
8936 fi
8937
8938 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8939 if test -n "$MAGIC_CMD"; then
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8941 $as_echo "$MAGIC_CMD" >&6; }
8942 else
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8944 $as_echo "no" >&6; }
8945 fi
8946
8947
8948 else
8949 MAGIC_CMD=:
8950 fi
8951 fi
8952
8953 fi
8954 ;;
8955 esac
8956
8957 # Use C for the default configuration in the libtool script
8958
8959 lt_save_CC="$CC"
8960 ac_ext=c
8961 ac_cpp='$CPP $CPPFLAGS'
8962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8965
8966
8967 # Source file extension for C test sources.
8968 ac_ext=c
8969
8970 # Object file extension for compiled C test sources.
8971 objext=o
8972 objext=$objext
8973
8974 # Code to be used in simple compile tests
8975 lt_simple_compile_test_code="int some_variable = 0;"
8976
8977 # Code to be used in simple link tests
8978 lt_simple_link_test_code='int main(){return(0);}'
8979
8980
8981
8982
8983
8984
8985
8986 # If no C compiler was specified, use CC.
8987 LTCC=${LTCC-"$CC"}
8988
8989 # If no C compiler flags were specified, use CFLAGS.
8990 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8991
8992 # Allow CC to be a program name with arguments.
8993 compiler=$CC
8994
8995 # Save the default compiler, since it gets overwritten when the other
8996 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8997 compiler_DEFAULT=$CC
8998
8999 # save warnings/boilerplate of simple test code
9000 ac_outfile=conftest.$ac_objext
9001 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9002 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9003 _lt_compiler_boilerplate=`cat conftest.err`
9004 $RM conftest*
9005
9006 ac_outfile=conftest.$ac_objext
9007 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9008 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9009 _lt_linker_boilerplate=`cat conftest.err`
9010 $RM -r conftest*
9011
9012
9013 ## CAVEAT EMPTOR:
9014 ## There is no encapsulation within the following macros, do not change
9015 ## the running order or otherwise move them around unless you know exactly
9016 ## what you are doing...
9017 if test -n "$compiler"; then
9018
9019 lt_prog_compiler_no_builtin_flag=
9020
9021 if test "$GCC" = yes; then
9022 case $cc_basename in
9023 nvcc*)
9024 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9025 *)
9026 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9027 esac
9028
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9030 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9031 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9032 $as_echo_n "(cached) " >&6
9033 else
9034 lt_cv_prog_compiler_rtti_exceptions=no
9035 ac_outfile=conftest.$ac_objext
9036 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9037 lt_compiler_flag="-fno-rtti -fno-exceptions"
9038 # Insert the option either (1) after the last *FLAGS variable, or
9039 # (2) before a word containing "conftest.", or (3) at the end.
9040 # Note that $ac_compile itself does not contain backslashes and begins
9041 # with a dollar sign (not a hyphen), so the echo should work correctly.
9042 # The option is referenced via a variable to avoid confusing sed.
9043 lt_compile=`echo "$ac_compile" | $SED \
9044 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9045 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9046 -e 's:$: $lt_compiler_flag:'`
9047 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9048 (eval "$lt_compile" 2>conftest.err)
9049 ac_status=$?
9050 cat conftest.err >&5
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 if (exit $ac_status) && test -s "$ac_outfile"; then
9053 # The compiler can only warn and ignore the option if not recognized
9054 # So say no if there are warnings other than the usual output.
9055 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9056 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9057 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9058 lt_cv_prog_compiler_rtti_exceptions=yes
9059 fi
9060 fi
9061 $RM conftest*
9062
9063 fi
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9065 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9066
9067 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9068 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9069 else
9070 :
9071 fi
9072
9073 fi
9074
9075
9076
9077
9078
9079
9080 lt_prog_compiler_wl=
9081 lt_prog_compiler_pic=
9082 lt_prog_compiler_static=
9083
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9085 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9086
9087 if test "$GCC" = yes; then
9088 lt_prog_compiler_wl='-Wl,'
9089 lt_prog_compiler_static='-static'
9090
9091 case $host_os in
9092 aix*)
9093 # All AIX code is PIC.
9094 if test "$host_cpu" = ia64; then
9095 # AIX 5 now supports IA64 processor
9096 lt_prog_compiler_static='-Bstatic'
9097 fi
9098 lt_prog_compiler_pic='-fPIC'
9099 ;;
9100
9101 amigaos*)
9102 case $host_cpu in
9103 powerpc)
9104 # see comment about AmigaOS4 .so support
9105 lt_prog_compiler_pic='-fPIC'
9106 ;;
9107 m68k)
9108 # FIXME: we need at least 68020 code to build shared libraries, but
9109 # adding the `-m68020' flag to GCC prevents building anything better,
9110 # like `-m68040'.
9111 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9112 ;;
9113 esac
9114 ;;
9115
9116 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9117 # PIC is the default for these OSes.
9118 ;;
9119
9120 mingw* | cygwin* | pw32* | os2* | cegcc*)
9121 # This hack is so that the source file can tell whether it is being
9122 # built for inclusion in a dll (and should export symbols for example).
9123 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9124 # (--disable-auto-import) libraries
9125 lt_prog_compiler_pic='-DDLL_EXPORT'
9126 ;;
9127
9128 darwin* | rhapsody*)
9129 # PIC is the default on this platform
9130 # Common symbols not allowed in MH_DYLIB files
9131 lt_prog_compiler_pic='-fno-common'
9132 ;;
9133
9134 haiku*)
9135 # PIC is the default for Haiku.
9136 # The "-static" flag exists, but is broken.
9137 lt_prog_compiler_static=
9138 ;;
9139
9140 hpux*)
9141 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9142 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9143 # sets the default TLS model and affects inlining.
9144 case $host_cpu in
9145 hppa*64*)
9146 # +Z the default
9147 ;;
9148 *)
9149 lt_prog_compiler_pic='-fPIC'
9150 ;;
9151 esac
9152 ;;
9153
9154 interix[3-9]*)
9155 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9156 # Instead, we relocate shared libraries at runtime.
9157 ;;
9158
9159 msdosdjgpp*)
9160 # Just because we use GCC doesn't mean we suddenly get shared libraries
9161 # on systems that don't support them.
9162 lt_prog_compiler_can_build_shared=no
9163 enable_shared=no
9164 ;;
9165
9166 *nto* | *qnx*)
9167 # QNX uses GNU C++, but need to define -shared option too, otherwise
9168 # it will coredump.
9169 lt_prog_compiler_pic='-fPIC -shared'
9170 ;;
9171
9172 sysv4*MP*)
9173 if test -d /usr/nec; then
9174 lt_prog_compiler_pic=-Kconform_pic
9175 fi
9176 ;;
9177
9178 *)
9179 lt_prog_compiler_pic='-fPIC'
9180 ;;
9181 esac
9182
9183 case $cc_basename in
9184 nvcc*) # Cuda Compiler Driver 2.2
9185 lt_prog_compiler_wl='-Xlinker '
9186 lt_prog_compiler_pic='-Xcompiler -fPIC'
9187 ;;
9188 esac
9189 else
9190 # PORTME Check for flag to pass linker flags through the system compiler.
9191 case $host_os in
9192 aix*)
9193 lt_prog_compiler_wl='-Wl,'
9194 if test "$host_cpu" = ia64; then
9195 # AIX 5 now supports IA64 processor
9196 lt_prog_compiler_static='-Bstatic'
9197 else
9198 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9199 fi
9200 ;;
9201
9202 mingw* | cygwin* | pw32* | os2* | cegcc*)
9203 # This hack is so that the source file can tell whether it is being
9204 # built for inclusion in a dll (and should export symbols for example).
9205 lt_prog_compiler_pic='-DDLL_EXPORT'
9206 ;;
9207
9208 hpux9* | hpux10* | hpux11*)
9209 lt_prog_compiler_wl='-Wl,'
9210 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9211 # not for PA HP-UX.
9212 case $host_cpu in
9213 hppa*64*|ia64*)
9214 # +Z the default
9215 ;;
9216 *)
9217 lt_prog_compiler_pic='+Z'
9218 ;;
9219 esac
9220 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9221 lt_prog_compiler_static='${wl}-a ${wl}archive'
9222 ;;
9223
9224 irix5* | irix6* | nonstopux*)
9225 lt_prog_compiler_wl='-Wl,'
9226 # PIC (with -KPIC) is the default.
9227 lt_prog_compiler_static='-non_shared'
9228 ;;
9229
9230 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9231 case $cc_basename in
9232 # old Intel for x86_64 which still supported -KPIC.
9233 ecc*)
9234 lt_prog_compiler_wl='-Wl,'
9235 lt_prog_compiler_pic='-KPIC'
9236 lt_prog_compiler_static='-static'
9237 ;;
9238 # icc used to be incompatible with GCC.
9239 # ICC 10 doesn't accept -KPIC any more.
9240 icc* | ifort*)
9241 lt_prog_compiler_wl='-Wl,'
9242 lt_prog_compiler_pic='-fPIC'
9243 lt_prog_compiler_static='-static'
9244 ;;
9245 # Lahey Fortran 8.1.
9246 lf95*)
9247 lt_prog_compiler_wl='-Wl,'
9248 lt_prog_compiler_pic='--shared'
9249 lt_prog_compiler_static='--static'
9250 ;;
9251 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9252 # Portland Group compilers (*not* the Pentium gcc compiler,
9253 # which looks to be a dead project)
9254 lt_prog_compiler_wl='-Wl,'
9255 lt_prog_compiler_pic='-fpic'
9256 lt_prog_compiler_static='-Bstatic'
9257 ;;
9258 ccc*)
9259 lt_prog_compiler_wl='-Wl,'
9260 # All Alpha code is PIC.
9261 lt_prog_compiler_static='-non_shared'
9262 ;;
9263 xl* | bgxl* | bgf* | mpixl*)
9264 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9265 lt_prog_compiler_wl='-Wl,'
9266 lt_prog_compiler_pic='-qpic'
9267 lt_prog_compiler_static='-qstaticlink'
9268 ;;
9269 *)
9270 case `$CC -V 2>&1 | sed 5q` in
9271 *Sun\ F* | *Sun*Fortran*)
9272 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9273 lt_prog_compiler_pic='-KPIC'
9274 lt_prog_compiler_static='-Bstatic'
9275 lt_prog_compiler_wl=''
9276 ;;
9277 *Sun\ C*)
9278 # Sun C 5.9
9279 lt_prog_compiler_pic='-KPIC'
9280 lt_prog_compiler_static='-Bstatic'
9281 lt_prog_compiler_wl='-Wl,'
9282 ;;
9283 esac
9284 ;;
9285 esac
9286 ;;
9287
9288 newsos6)
9289 lt_prog_compiler_pic='-KPIC'
9290 lt_prog_compiler_static='-Bstatic'
9291 ;;
9292
9293 *nto* | *qnx*)
9294 # QNX uses GNU C++, but need to define -shared option too, otherwise
9295 # it will coredump.
9296 lt_prog_compiler_pic='-fPIC -shared'
9297 ;;
9298
9299 osf3* | osf4* | osf5*)
9300 lt_prog_compiler_wl='-Wl,'
9301 # All OSF/1 code is PIC.
9302 lt_prog_compiler_static='-non_shared'
9303 ;;
9304
9305 rdos*)
9306 lt_prog_compiler_static='-non_shared'
9307 ;;
9308
9309 solaris*)
9310 lt_prog_compiler_pic='-KPIC'
9311 lt_prog_compiler_static='-Bstatic'
9312 case $cc_basename in
9313 f77* | f90* | f95*)
9314 lt_prog_compiler_wl='-Qoption ld ';;
9315 *)
9316 lt_prog_compiler_wl='-Wl,';;
9317 esac
9318 ;;
9319
9320 sunos4*)
9321 lt_prog_compiler_wl='-Qoption ld '
9322 lt_prog_compiler_pic='-PIC'
9323 lt_prog_compiler_static='-Bstatic'
9324 ;;
9325
9326 sysv4 | sysv4.2uw2* | sysv4.3*)
9327 lt_prog_compiler_wl='-Wl,'
9328 lt_prog_compiler_pic='-KPIC'
9329 lt_prog_compiler_static='-Bstatic'
9330 ;;
9331
9332 sysv4*MP*)
9333 if test -d /usr/nec ;then
9334 lt_prog_compiler_pic='-Kconform_pic'
9335 lt_prog_compiler_static='-Bstatic'
9336 fi
9337 ;;
9338
9339 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9340 lt_prog_compiler_wl='-Wl,'
9341 lt_prog_compiler_pic='-KPIC'
9342 lt_prog_compiler_static='-Bstatic'
9343 ;;
9344
9345 unicos*)
9346 lt_prog_compiler_wl='-Wl,'
9347 lt_prog_compiler_can_build_shared=no
9348 ;;
9349
9350 uts4*)
9351 lt_prog_compiler_pic='-pic'
9352 lt_prog_compiler_static='-Bstatic'
9353 ;;
9354
9355 *)
9356 lt_prog_compiler_can_build_shared=no
9357 ;;
9358 esac
9359 fi
9360
9361 case $host_os in
9362 # For platforms which do not support PIC, -DPIC is meaningless:
9363 *djgpp*)
9364 lt_prog_compiler_pic=
9365 ;;
9366 *)
9367 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9368 ;;
9369 esac
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9371 $as_echo "$lt_prog_compiler_pic" >&6; }
9372
9373
9374
9375
9376
9377
9378 #
9379 # Check to make sure the PIC flag actually works.
9380 #
9381 if test -n "$lt_prog_compiler_pic"; then
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9383 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9384 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9385 $as_echo_n "(cached) " >&6
9386 else
9387 lt_cv_prog_compiler_pic_works=no
9388 ac_outfile=conftest.$ac_objext
9389 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9390 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9391 # Insert the option either (1) after the last *FLAGS variable, or
9392 # (2) before a word containing "conftest.", or (3) at the end.
9393 # Note that $ac_compile itself does not contain backslashes and begins
9394 # with a dollar sign (not a hyphen), so the echo should work correctly.
9395 # The option is referenced via a variable to avoid confusing sed.
9396 lt_compile=`echo "$ac_compile" | $SED \
9397 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9398 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9399 -e 's:$: $lt_compiler_flag:'`
9400 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9401 (eval "$lt_compile" 2>conftest.err)
9402 ac_status=$?
9403 cat conftest.err >&5
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 if (exit $ac_status) && test -s "$ac_outfile"; then
9406 # The compiler can only warn and ignore the option if not recognized
9407 # So say no if there are warnings other than the usual output.
9408 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9409 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9410 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9411 lt_cv_prog_compiler_pic_works=yes
9412 fi
9413 fi
9414 $RM conftest*
9415
9416 fi
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9418 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9419
9420 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9421 case $lt_prog_compiler_pic in
9422 "" | " "*) ;;
9423 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9424 esac
9425 else
9426 lt_prog_compiler_pic=
9427 lt_prog_compiler_can_build_shared=no
9428 fi
9429
9430 fi
9431
9432
9433
9434
9435
9436
9437 #
9438 # Check to make sure the static flag actually works.
9439 #
9440 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9442 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9443 if ${lt_cv_prog_compiler_static_works+:} false; then :
9444 $as_echo_n "(cached) " >&6
9445 else
9446 lt_cv_prog_compiler_static_works=no
9447 save_LDFLAGS="$LDFLAGS"
9448 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9449 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9450 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9451 # The linker can only warn and ignore the option if not recognized
9452 # So say no if there are warnings
9453 if test -s conftest.err; then
9454 # Append any errors to the config.log.
9455 cat conftest.err 1>&5
9456 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9457 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9458 if diff conftest.exp conftest.er2 >/dev/null; then
9459 lt_cv_prog_compiler_static_works=yes
9460 fi
9461 else
9462 lt_cv_prog_compiler_static_works=yes
9463 fi
9464 fi
9465 $RM -r conftest*
9466 LDFLAGS="$save_LDFLAGS"
9467
9468 fi
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9470 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9471
9472 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9473 :
9474 else
9475 lt_prog_compiler_static=
9476 fi
9477
9478
9479
9480
9481
9482
9483
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9485 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9486 if ${lt_cv_prog_compiler_c_o+:} false; then :
9487 $as_echo_n "(cached) " >&6
9488 else
9489 lt_cv_prog_compiler_c_o=no
9490 $RM -r conftest 2>/dev/null
9491 mkdir conftest
9492 cd conftest
9493 mkdir out
9494 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9495
9496 lt_compiler_flag="-o out/conftest2.$ac_objext"
9497 # Insert the option either (1) after the last *FLAGS variable, or
9498 # (2) before a word containing "conftest.", or (3) at the end.
9499 # Note that $ac_compile itself does not contain backslashes and begins
9500 # with a dollar sign (not a hyphen), so the echo should work correctly.
9501 lt_compile=`echo "$ac_compile" | $SED \
9502 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9503 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9504 -e 's:$: $lt_compiler_flag:'`
9505 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9506 (eval "$lt_compile" 2>out/conftest.err)
9507 ac_status=$?
9508 cat out/conftest.err >&5
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9511 then
9512 # The compiler can only warn and ignore the option if not recognized
9513 # So say no if there are warnings
9514 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9515 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9516 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9517 lt_cv_prog_compiler_c_o=yes
9518 fi
9519 fi
9520 chmod u+w . 2>&5
9521 $RM conftest*
9522 # SGI C++ compiler will create directory out/ii_files/ for
9523 # template instantiation
9524 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9525 $RM out/* && rmdir out
9526 cd ..
9527 $RM -r conftest
9528 $RM conftest*
9529
9530 fi
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9532 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9533
9534
9535
9536
9537
9538
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9540 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9541 if ${lt_cv_prog_compiler_c_o+:} false; then :
9542 $as_echo_n "(cached) " >&6
9543 else
9544 lt_cv_prog_compiler_c_o=no
9545 $RM -r conftest 2>/dev/null
9546 mkdir conftest
9547 cd conftest
9548 mkdir out
9549 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9550
9551 lt_compiler_flag="-o out/conftest2.$ac_objext"
9552 # Insert the option either (1) after the last *FLAGS variable, or
9553 # (2) before a word containing "conftest.", or (3) at the end.
9554 # Note that $ac_compile itself does not contain backslashes and begins
9555 # with a dollar sign (not a hyphen), so the echo should work correctly.
9556 lt_compile=`echo "$ac_compile" | $SED \
9557 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9558 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9559 -e 's:$: $lt_compiler_flag:'`
9560 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9561 (eval "$lt_compile" 2>out/conftest.err)
9562 ac_status=$?
9563 cat out/conftest.err >&5
9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9566 then
9567 # The compiler can only warn and ignore the option if not recognized
9568 # So say no if there are warnings
9569 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9570 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9571 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9572 lt_cv_prog_compiler_c_o=yes
9573 fi
9574 fi
9575 chmod u+w . 2>&5
9576 $RM conftest*
9577 # SGI C++ compiler will create directory out/ii_files/ for
9578 # template instantiation
9579 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9580 $RM out/* && rmdir out
9581 cd ..
9582 $RM -r conftest
9583 $RM conftest*
9584
9585 fi
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9587 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9588
9589
9590
9591
9592 hard_links="nottested"
9593 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9594 # do not overwrite the value of need_locks provided by the user
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9596 $as_echo_n "checking if we can lock with hard links... " >&6; }
9597 hard_links=yes
9598 $RM conftest*
9599 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9600 touch conftest.a
9601 ln conftest.a conftest.b 2>&5 || hard_links=no
9602 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9604 $as_echo "$hard_links" >&6; }
9605 if test "$hard_links" = no; then
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9607 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9608 need_locks=warn
9609 fi
9610 else
9611 need_locks=no
9612 fi
9613
9614
9615
9616
9617
9618
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9620 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9621
9622 runpath_var=
9623 allow_undefined_flag=
9624 always_export_symbols=no
9625 archive_cmds=
9626 archive_expsym_cmds=
9627 compiler_needs_object=no
9628 enable_shared_with_static_runtimes=no
9629 export_dynamic_flag_spec=
9630 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9631 hardcode_automatic=no
9632 hardcode_direct=no
9633 hardcode_direct_absolute=no
9634 hardcode_libdir_flag_spec=
9635 hardcode_libdir_flag_spec_ld=
9636 hardcode_libdir_separator=
9637 hardcode_minus_L=no
9638 hardcode_shlibpath_var=unsupported
9639 inherit_rpath=no
9640 link_all_deplibs=unknown
9641 module_cmds=
9642 module_expsym_cmds=
9643 old_archive_from_new_cmds=
9644 old_archive_from_expsyms_cmds=
9645 thread_safe_flag_spec=
9646 whole_archive_flag_spec=
9647 # include_expsyms should be a list of space-separated symbols to be *always*
9648 # included in the symbol list
9649 include_expsyms=
9650 # exclude_expsyms can be an extended regexp of symbols to exclude
9651 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9652 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9653 # as well as any symbol that contains `d'.
9654 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9655 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9656 # platforms (ab)use it in PIC code, but their linkers get confused if
9657 # the symbol is explicitly referenced. Since portable code cannot
9658 # rely on this symbol name, it's probably fine to never include it in
9659 # preloaded symbol tables.
9660 # Exclude shared library initialization/finalization symbols.
9661 extract_expsyms_cmds=
9662
9663 case $host_os in
9664 cygwin* | mingw* | pw32* | cegcc*)
9665 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9666 # When not using gcc, we currently assume that we are using
9667 # Microsoft Visual C++.
9668 if test "$GCC" != yes; then
9669 with_gnu_ld=no
9670 fi
9671 ;;
9672 interix*)
9673 # we just hope/assume this is gcc and not c89 (= MSVC++)
9674 with_gnu_ld=yes
9675 ;;
9676 openbsd*)
9677 with_gnu_ld=no
9678 ;;
9679 esac
9680
9681 ld_shlibs=yes
9682
9683 # On some targets, GNU ld is compatible enough with the native linker
9684 # that we're better off using the native interface for both.
9685 lt_use_gnu_ld_interface=no
9686 if test "$with_gnu_ld" = yes; then
9687 case $host_os in
9688 aix*)
9689 # The AIX port of GNU ld has always aspired to compatibility
9690 # with the native linker. However, as the warning in the GNU ld
9691 # block says, versions before 2.19.5* couldn't really create working
9692 # shared libraries, regardless of the interface used.
9693 case `$LD -v 2>&1` in
9694 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9695 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9696 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9697 *)
9698 lt_use_gnu_ld_interface=yes
9699 ;;
9700 esac
9701 ;;
9702 *)
9703 lt_use_gnu_ld_interface=yes
9704 ;;
9705 esac
9706 fi
9707
9708 if test "$lt_use_gnu_ld_interface" = yes; then
9709 # If archive_cmds runs LD, not CC, wlarc should be empty
9710 wlarc='${wl}'
9711
9712 # Set some defaults for GNU ld with shared library support. These
9713 # are reset later if shared libraries are not supported. Putting them
9714 # here allows them to be overridden if necessary.
9715 runpath_var=LD_RUN_PATH
9716 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9717 export_dynamic_flag_spec='${wl}--export-dynamic'
9718 # ancient GNU ld didn't support --whole-archive et. al.
9719 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9720 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9721 else
9722 whole_archive_flag_spec=
9723 fi
9724 supports_anon_versioning=no
9725 case `$LD -v 2>&1` in
9726 *GNU\ gold*) supports_anon_versioning=yes ;;
9727 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9728 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9729 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9730 *\ 2.11.*) ;; # other 2.11 versions
9731 *) supports_anon_versioning=yes ;;
9732 esac
9733
9734 # See if GNU ld supports shared libraries.
9735 case $host_os in
9736 aix[3-9]*)
9737 # On AIX/PPC, the GNU linker is very broken
9738 if test "$host_cpu" != ia64; then
9739 ld_shlibs=no
9740 cat <<_LT_EOF 1>&2
9741
9742 *** Warning: the GNU linker, at least up to release 2.19, is reported
9743 *** to be unable to reliably create shared libraries on AIX.
9744 *** Therefore, libtool is disabling shared libraries support. If you
9745 *** really care for shared libraries, you may want to install binutils
9746 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9747 *** You will then need to restart the configuration process.
9748
9749 _LT_EOF
9750 fi
9751 ;;
9752
9753 amigaos*)
9754 case $host_cpu in
9755 powerpc)
9756 # see comment about AmigaOS4 .so support
9757 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9758 archive_expsym_cmds=''
9759 ;;
9760 m68k)
9761 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)'
9762 hardcode_libdir_flag_spec='-L$libdir'
9763 hardcode_minus_L=yes
9764 ;;
9765 esac
9766 ;;
9767
9768 beos*)
9769 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9770 allow_undefined_flag=unsupported
9771 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9772 # support --undefined. This deserves some investigation. FIXME
9773 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9774 else
9775 ld_shlibs=no
9776 fi
9777 ;;
9778
9779 cygwin* | mingw* | pw32* | cegcc*)
9780 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9781 # as there is no search path for DLLs.
9782 hardcode_libdir_flag_spec='-L$libdir'
9783 export_dynamic_flag_spec='${wl}--export-all-symbols'
9784 allow_undefined_flag=unsupported
9785 always_export_symbols=no
9786 enable_shared_with_static_runtimes=yes
9787 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9788
9789 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9790 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9791 # If the export-symbols file already is a .def file (1st line
9792 # is EXPORTS), use it as is; otherwise, prepend...
9793 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9794 cp $export_symbols $output_objdir/$soname.def;
9795 else
9796 echo EXPORTS > $output_objdir/$soname.def;
9797 cat $export_symbols >> $output_objdir/$soname.def;
9798 fi~
9799 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9800 else
9801 ld_shlibs=no
9802 fi
9803 ;;
9804
9805 haiku*)
9806 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9807 link_all_deplibs=yes
9808 ;;
9809
9810 interix[3-9]*)
9811 hardcode_direct=no
9812 hardcode_shlibpath_var=no
9813 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9814 export_dynamic_flag_spec='${wl}-E'
9815 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9816 # Instead, shared libraries are loaded at an image base (0x10000000 by
9817 # default) and relocated if they conflict, which is a slow very memory
9818 # consuming and fragmenting process. To avoid this, we pick a random,
9819 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9820 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9821 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9822 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'
9823 ;;
9824
9825 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9826 tmp_diet=no
9827 if test "$host_os" = linux-dietlibc; then
9828 case $cc_basename in
9829 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9830 esac
9831 fi
9832 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9833 && test "$tmp_diet" = no
9834 then
9835 tmp_addflag=' $pic_flag'
9836 tmp_sharedflag='-shared'
9837 case $cc_basename,$host_cpu in
9838 pgcc*) # Portland Group C compiler
9839 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'
9840 tmp_addflag=' $pic_flag'
9841 ;;
9842 pgf77* | pgf90* | pgf95* | pgfortran*)
9843 # Portland Group f77 and f90 compilers
9844 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'
9845 tmp_addflag=' $pic_flag -Mnomain' ;;
9846 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9847 tmp_addflag=' -i_dynamic' ;;
9848 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9849 tmp_addflag=' -i_dynamic -nofor_main' ;;
9850 ifc* | ifort*) # Intel Fortran compiler
9851 tmp_addflag=' -nofor_main' ;;
9852 lf95*) # Lahey Fortran 8.1
9853 whole_archive_flag_spec=
9854 tmp_sharedflag='--shared' ;;
9855 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9856 tmp_sharedflag='-qmkshrobj'
9857 tmp_addflag= ;;
9858 nvcc*) # Cuda Compiler Driver 2.2
9859 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'
9860 compiler_needs_object=yes
9861 ;;
9862 esac
9863 case `$CC -V 2>&1 | sed 5q` in
9864 *Sun\ C*) # Sun C 5.9
9865 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'
9866 compiler_needs_object=yes
9867 tmp_sharedflag='-G' ;;
9868 *Sun\ F*) # Sun Fortran 8.3
9869 tmp_sharedflag='-G' ;;
9870 esac
9871 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9872
9873 if test "x$supports_anon_versioning" = xyes; then
9874 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9875 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9876 echo "local: *; };" >> $output_objdir/$libname.ver~
9877 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9878 fi
9879
9880 case $cc_basename in
9881 xlf* | bgf* | bgxlf* | mpixlf*)
9882 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9883 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9884 hardcode_libdir_flag_spec=
9885 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9886 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9887 if test "x$supports_anon_versioning" = xyes; then
9888 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9889 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9890 echo "local: *; };" >> $output_objdir/$libname.ver~
9891 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9892 fi
9893 ;;
9894 esac
9895 else
9896 ld_shlibs=no
9897 fi
9898 ;;
9899
9900 netbsd*)
9901 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9902 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9903 wlarc=
9904 else
9905 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9906 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9907 fi
9908 ;;
9909
9910 solaris*)
9911 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9912 ld_shlibs=no
9913 cat <<_LT_EOF 1>&2
9914
9915 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9916 *** create shared libraries on Solaris systems. Therefore, libtool
9917 *** is disabling shared libraries support. We urge you to upgrade GNU
9918 *** binutils to release 2.9.1 or newer. Another option is to modify
9919 *** your PATH or compiler configuration so that the native linker is
9920 *** used, and then restart.
9921
9922 _LT_EOF
9923 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9924 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9925 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9926 else
9927 ld_shlibs=no
9928 fi
9929 ;;
9930
9931 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9932 case `$LD -v 2>&1` in
9933 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9934 ld_shlibs=no
9935 cat <<_LT_EOF 1>&2
9936
9937 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9938 *** reliably create shared libraries on SCO systems. Therefore, libtool
9939 *** is disabling shared libraries support. We urge you to upgrade GNU
9940 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9941 *** your PATH or compiler configuration so that the native linker is
9942 *** used, and then restart.
9943
9944 _LT_EOF
9945 ;;
9946 *)
9947 # For security reasons, it is highly recommended that you always
9948 # use absolute paths for naming shared libraries, and exclude the
9949 # DT_RUNPATH tag from executables and libraries. But doing so
9950 # requires that you compile everything twice, which is a pain.
9951 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9952 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9953 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9954 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9955 else
9956 ld_shlibs=no
9957 fi
9958 ;;
9959 esac
9960 ;;
9961
9962 sunos4*)
9963 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9964 wlarc=
9965 hardcode_direct=yes
9966 hardcode_shlibpath_var=no
9967 ;;
9968
9969 *)
9970 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9971 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9972 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9973 else
9974 ld_shlibs=no
9975 fi
9976 ;;
9977 esac
9978
9979 if test "$ld_shlibs" = no; then
9980 runpath_var=
9981 hardcode_libdir_flag_spec=
9982 export_dynamic_flag_spec=
9983 whole_archive_flag_spec=
9984 fi
9985 else
9986 # PORTME fill in a description of your system's linker (not GNU ld)
9987 case $host_os in
9988 aix3*)
9989 allow_undefined_flag=unsupported
9990 always_export_symbols=yes
9991 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'
9992 # Note: this linker hardcodes the directories in LIBPATH if there
9993 # are no directories specified by -L.
9994 hardcode_minus_L=yes
9995 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9996 # Neither direct hardcoding nor static linking is supported with a
9997 # broken collect2.
9998 hardcode_direct=unsupported
9999 fi
10000 ;;
10001
10002 aix[4-9]*)
10003 if test "$host_cpu" = ia64; then
10004 # On IA64, the linker does run time linking by default, so we don't
10005 # have to do anything special.
10006 aix_use_runtimelinking=no
10007 exp_sym_flag='-Bexport'
10008 no_entry_flag=""
10009 else
10010 # If we're using GNU nm, then we don't want the "-C" option.
10011 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10012 # Also, AIX nm treats weak defined symbols like other global
10013 # defined symbols, whereas GNU nm marks them as "W".
10014 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10015 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'
10016 else
10017 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'
10018 fi
10019 aix_use_runtimelinking=no
10020
10021 # Test if we are trying to use run time linking or normal
10022 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10023 # need to do runtime linking.
10024 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10025 for ld_flag in $LDFLAGS; do
10026 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10027 aix_use_runtimelinking=yes
10028 break
10029 fi
10030 done
10031 ;;
10032 esac
10033
10034 exp_sym_flag='-bexport'
10035 no_entry_flag='-bnoentry'
10036 fi
10037
10038 # When large executables or shared objects are built, AIX ld can
10039 # have problems creating the table of contents. If linking a library
10040 # or program results in "error TOC overflow" add -mminimal-toc to
10041 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10042 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10043
10044 archive_cmds=''
10045 hardcode_direct=yes
10046 hardcode_direct_absolute=yes
10047 hardcode_libdir_separator=':'
10048 link_all_deplibs=yes
10049 file_list_spec='${wl}-f,'
10050
10051 if test "$GCC" = yes; then
10052 case $host_os in aix4.[012]|aix4.[012].*)
10053 # We only want to do this on AIX 4.2 and lower, the check
10054 # below for broken collect2 doesn't work under 4.3+
10055 collect2name=`${CC} -print-prog-name=collect2`
10056 if test -f "$collect2name" &&
10057 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10058 then
10059 # We have reworked collect2
10060 :
10061 else
10062 # We have old collect2
10063 hardcode_direct=unsupported
10064 # It fails to find uninstalled libraries when the uninstalled
10065 # path is not listed in the libpath. Setting hardcode_minus_L
10066 # to unsupported forces relinking
10067 hardcode_minus_L=yes
10068 hardcode_libdir_flag_spec='-L$libdir'
10069 hardcode_libdir_separator=
10070 fi
10071 ;;
10072 esac
10073 shared_flag='-shared'
10074 if test "$aix_use_runtimelinking" = yes; then
10075 shared_flag="$shared_flag "'${wl}-G'
10076 fi
10077 else
10078 # not using gcc
10079 if test "$host_cpu" = ia64; then
10080 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10081 # chokes on -Wl,-G. The following line is correct:
10082 shared_flag='-G'
10083 else
10084 if test "$aix_use_runtimelinking" = yes; then
10085 shared_flag='${wl}-G'
10086 else
10087 shared_flag='${wl}-bM:SRE'
10088 fi
10089 fi
10090 fi
10091
10092 export_dynamic_flag_spec='${wl}-bexpall'
10093 # It seems that -bexpall does not export symbols beginning with
10094 # underscore (_), so it is better to generate a list of symbols to export.
10095 always_export_symbols=yes
10096 if test "$aix_use_runtimelinking" = yes; then
10097 # Warning - without using the other runtime loading flags (-brtl),
10098 # -berok will link without error, but may produce a broken library.
10099 allow_undefined_flag='-berok'
10100 # Determine the default libpath from the value encoded in an
10101 # empty executable.
10102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10103 /* end confdefs.h. */
10104
10105 int
10106 main ()
10107 {
10108
10109 ;
10110 return 0;
10111 }
10112 _ACEOF
10113 if ac_fn_c_try_link "$LINENO"; then :
10114
10115 lt_aix_libpath_sed='
10116 /Import File Strings/,/^$/ {
10117 /^0/ {
10118 s/^0 *\(.*\)$/\1/
10119 p
10120 }
10121 }'
10122 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10123 # Check for a 64-bit object if we didn't find anything.
10124 if test -z "$aix_libpath"; then
10125 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10126 fi
10127 fi
10128 rm -f core conftest.err conftest.$ac_objext \
10129 conftest$ac_exeext conftest.$ac_ext
10130 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10131
10132 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10133 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"
10134 else
10135 if test "$host_cpu" = ia64; then
10136 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10137 allow_undefined_flag="-z nodefs"
10138 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"
10139 else
10140 # Determine the default libpath from the value encoded in an
10141 # empty executable.
10142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10143 /* end confdefs.h. */
10144
10145 int
10146 main ()
10147 {
10148
10149 ;
10150 return 0;
10151 }
10152 _ACEOF
10153 if ac_fn_c_try_link "$LINENO"; then :
10154
10155 lt_aix_libpath_sed='
10156 /Import File Strings/,/^$/ {
10157 /^0/ {
10158 s/^0 *\(.*\)$/\1/
10159 p
10160 }
10161 }'
10162 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10163 # Check for a 64-bit object if we didn't find anything.
10164 if test -z "$aix_libpath"; then
10165 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10166 fi
10167 fi
10168 rm -f core conftest.err conftest.$ac_objext \
10169 conftest$ac_exeext conftest.$ac_ext
10170 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10171
10172 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10173 # Warning - without using the other run time loading flags,
10174 # -berok will link without error, but may produce a broken library.
10175 no_undefined_flag=' ${wl}-bernotok'
10176 allow_undefined_flag=' ${wl}-berok'
10177 if test "$with_gnu_ld" = yes; then
10178 # We only use this code for GNU lds that support --whole-archive.
10179 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10180 else
10181 # Exported symbols can be pulled into shared objects from archives
10182 whole_archive_flag_spec='$convenience'
10183 fi
10184 archive_cmds_need_lc=yes
10185 # This is similar to how AIX traditionally builds its shared libraries.
10186 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'
10187 fi
10188 fi
10189 ;;
10190
10191 amigaos*)
10192 case $host_cpu in
10193 powerpc)
10194 # see comment about AmigaOS4 .so support
10195 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10196 archive_expsym_cmds=''
10197 ;;
10198 m68k)
10199 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)'
10200 hardcode_libdir_flag_spec='-L$libdir'
10201 hardcode_minus_L=yes
10202 ;;
10203 esac
10204 ;;
10205
10206 bsdi[45]*)
10207 export_dynamic_flag_spec=-rdynamic
10208 ;;
10209
10210 cygwin* | mingw* | pw32* | cegcc*)
10211 # When not using gcc, we currently assume that we are using
10212 # Microsoft Visual C++.
10213 # hardcode_libdir_flag_spec is actually meaningless, as there is
10214 # no search path for DLLs.
10215 hardcode_libdir_flag_spec=' '
10216 allow_undefined_flag=unsupported
10217 # Tell ltmain to make .lib files, not .a files.
10218 libext=lib
10219 # Tell ltmain to make .dll files, not .so files.
10220 shrext_cmds=".dll"
10221 # FIXME: Setting linknames here is a bad hack.
10222 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10223 # The linker will automatically build a .lib file if we build a DLL.
10224 old_archive_from_new_cmds='true'
10225 # FIXME: Should let the user specify the lib program.
10226 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10227 fix_srcfile_path='`cygpath -w "$srcfile"`'
10228 enable_shared_with_static_runtimes=yes
10229 ;;
10230
10231 darwin* | rhapsody*)
10232
10233
10234 archive_cmds_need_lc=no
10235 hardcode_direct=no
10236 hardcode_automatic=yes
10237 hardcode_shlibpath_var=unsupported
10238 if test "$lt_cv_ld_force_load" = "yes"; then
10239 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\"`'
10240 else
10241 whole_archive_flag_spec=''
10242 fi
10243 link_all_deplibs=yes
10244 allow_undefined_flag="$_lt_dar_allow_undefined"
10245 case $cc_basename in
10246 ifort*) _lt_dar_can_shared=yes ;;
10247 *) _lt_dar_can_shared=$GCC ;;
10248 esac
10249 if test "$_lt_dar_can_shared" = "yes"; then
10250 output_verbose_link_cmd=func_echo_all
10251 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10252 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10253 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}"
10254 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}"
10255
10256 else
10257 ld_shlibs=no
10258 fi
10259
10260 ;;
10261
10262 dgux*)
10263 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10264 hardcode_libdir_flag_spec='-L$libdir'
10265 hardcode_shlibpath_var=no
10266 ;;
10267
10268 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10269 # support. Future versions do this automatically, but an explicit c++rt0.o
10270 # does not break anything, and helps significantly (at the cost of a little
10271 # extra space).
10272 freebsd2.2*)
10273 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10274 hardcode_libdir_flag_spec='-R$libdir'
10275 hardcode_direct=yes
10276 hardcode_shlibpath_var=no
10277 ;;
10278
10279 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10280 freebsd2.*)
10281 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10282 hardcode_direct=yes
10283 hardcode_minus_L=yes
10284 hardcode_shlibpath_var=no
10285 ;;
10286
10287 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10288 freebsd* | dragonfly*)
10289 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10290 hardcode_libdir_flag_spec='-R$libdir'
10291 hardcode_direct=yes
10292 hardcode_shlibpath_var=no
10293 ;;
10294
10295 hpux9*)
10296 if test "$GCC" = yes; then
10297 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'
10298 else
10299 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'
10300 fi
10301 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10302 hardcode_libdir_separator=:
10303 hardcode_direct=yes
10304
10305 # hardcode_minus_L: Not really in the search PATH,
10306 # but as the default location of the library.
10307 hardcode_minus_L=yes
10308 export_dynamic_flag_spec='${wl}-E'
10309 ;;
10310
10311 hpux10*)
10312 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10313 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10314 else
10315 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10316 fi
10317 if test "$with_gnu_ld" = no; then
10318 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10319 hardcode_libdir_flag_spec_ld='+b $libdir'
10320 hardcode_libdir_separator=:
10321 hardcode_direct=yes
10322 hardcode_direct_absolute=yes
10323 export_dynamic_flag_spec='${wl}-E'
10324 # hardcode_minus_L: Not really in the search PATH,
10325 # but as the default location of the library.
10326 hardcode_minus_L=yes
10327 fi
10328 ;;
10329
10330 hpux11*)
10331 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10332 case $host_cpu in
10333 hppa*64*)
10334 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10335 ;;
10336 ia64*)
10337 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10338 ;;
10339 *)
10340 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10341 ;;
10342 esac
10343 else
10344 case $host_cpu in
10345 hppa*64*)
10346 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10347 ;;
10348 ia64*)
10349 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10350 ;;
10351 *)
10352
10353 # Older versions of the 11.00 compiler do not understand -b yet
10354 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10356 $as_echo_n "checking if $CC understands -b... " >&6; }
10357 if ${lt_cv_prog_compiler__b+:} false; then :
10358 $as_echo_n "(cached) " >&6
10359 else
10360 lt_cv_prog_compiler__b=no
10361 save_LDFLAGS="$LDFLAGS"
10362 LDFLAGS="$LDFLAGS -b"
10363 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10364 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10365 # The linker can only warn and ignore the option if not recognized
10366 # So say no if there are warnings
10367 if test -s conftest.err; then
10368 # Append any errors to the config.log.
10369 cat conftest.err 1>&5
10370 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10371 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10372 if diff conftest.exp conftest.er2 >/dev/null; then
10373 lt_cv_prog_compiler__b=yes
10374 fi
10375 else
10376 lt_cv_prog_compiler__b=yes
10377 fi
10378 fi
10379 $RM -r conftest*
10380 LDFLAGS="$save_LDFLAGS"
10381
10382 fi
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10384 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10385
10386 if test x"$lt_cv_prog_compiler__b" = xyes; then
10387 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10388 else
10389 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10390 fi
10391
10392 ;;
10393 esac
10394 fi
10395 if test "$with_gnu_ld" = no; then
10396 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10397 hardcode_libdir_separator=:
10398
10399 case $host_cpu in
10400 hppa*64*|ia64*)
10401 hardcode_direct=no
10402 hardcode_shlibpath_var=no
10403 ;;
10404 *)
10405 hardcode_direct=yes
10406 hardcode_direct_absolute=yes
10407 export_dynamic_flag_spec='${wl}-E'
10408
10409 # hardcode_minus_L: Not really in the search PATH,
10410 # but as the default location of the library.
10411 hardcode_minus_L=yes
10412 ;;
10413 esac
10414 fi
10415 ;;
10416
10417 irix5* | irix6* | nonstopux*)
10418 if test "$GCC" = yes; then
10419 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'
10420 # Try to use the -exported_symbol ld option, if it does not
10421 # work, assume that -exports_file does not work either and
10422 # implicitly export all symbols.
10423 save_LDFLAGS="$LDFLAGS"
10424 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10426 /* end confdefs.h. */
10427 int foo(void) {}
10428 _ACEOF
10429 if ac_fn_c_try_link "$LINENO"; then :
10430 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'
10431
10432 fi
10433 rm -f core conftest.err conftest.$ac_objext \
10434 conftest$ac_exeext conftest.$ac_ext
10435 LDFLAGS="$save_LDFLAGS"
10436 else
10437 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'
10438 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'
10439 fi
10440 archive_cmds_need_lc='no'
10441 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10442 hardcode_libdir_separator=:
10443 inherit_rpath=yes
10444 link_all_deplibs=yes
10445 ;;
10446
10447 netbsd*)
10448 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10449 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10450 else
10451 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10452 fi
10453 hardcode_libdir_flag_spec='-R$libdir'
10454 hardcode_direct=yes
10455 hardcode_shlibpath_var=no
10456 ;;
10457
10458 newsos6)
10459 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10460 hardcode_direct=yes
10461 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10462 hardcode_libdir_separator=:
10463 hardcode_shlibpath_var=no
10464 ;;
10465
10466 *nto* | *qnx*)
10467 ;;
10468
10469 openbsd*)
10470 if test -f /usr/libexec/ld.so; then
10471 hardcode_direct=yes
10472 hardcode_shlibpath_var=no
10473 hardcode_direct_absolute=yes
10474 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10475 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10476 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10477 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10478 export_dynamic_flag_spec='${wl}-E'
10479 else
10480 case $host_os in
10481 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10482 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10483 hardcode_libdir_flag_spec='-R$libdir'
10484 ;;
10485 *)
10486 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10487 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10488 ;;
10489 esac
10490 fi
10491 else
10492 ld_shlibs=no
10493 fi
10494 ;;
10495
10496 os2*)
10497 hardcode_libdir_flag_spec='-L$libdir'
10498 hardcode_minus_L=yes
10499 allow_undefined_flag=unsupported
10500 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'
10501 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10502 ;;
10503
10504 osf3*)
10505 if test "$GCC" = yes; then
10506 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10507 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'
10508 else
10509 allow_undefined_flag=' -expect_unresolved \*'
10510 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'
10511 fi
10512 archive_cmds_need_lc='no'
10513 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10514 hardcode_libdir_separator=:
10515 ;;
10516
10517 osf4* | osf5*) # as osf3* with the addition of -msym flag
10518 if test "$GCC" = yes; then
10519 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10520 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'
10521 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10522 else
10523 allow_undefined_flag=' -expect_unresolved \*'
10524 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'
10525 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~
10526 $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'
10527
10528 # Both c and cxx compiler support -rpath directly
10529 hardcode_libdir_flag_spec='-rpath $libdir'
10530 fi
10531 archive_cmds_need_lc='no'
10532 hardcode_libdir_separator=:
10533 ;;
10534
10535 solaris*)
10536 no_undefined_flag=' -z defs'
10537 if test "$GCC" = yes; then
10538 wlarc='${wl}'
10539 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10540 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10541 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10542 else
10543 case `$CC -V 2>&1` in
10544 *"Compilers 5.0"*)
10545 wlarc=''
10546 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10547 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10548 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10549 ;;
10550 *)
10551 wlarc='${wl}'
10552 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10553 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10554 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10555 ;;
10556 esac
10557 fi
10558 hardcode_libdir_flag_spec='-R$libdir'
10559 hardcode_shlibpath_var=no
10560 case $host_os in
10561 solaris2.[0-5] | solaris2.[0-5].*) ;;
10562 *)
10563 # The compiler driver will combine and reorder linker options,
10564 # but understands `-z linker_flag'. GCC discards it without `$wl',
10565 # but is careful enough not to reorder.
10566 # Supported since Solaris 2.6 (maybe 2.5.1?)
10567 if test "$GCC" = yes; then
10568 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10569 else
10570 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10571 fi
10572 ;;
10573 esac
10574 link_all_deplibs=yes
10575 ;;
10576
10577 sunos4*)
10578 if test "x$host_vendor" = xsequent; then
10579 # Use $CC to link under sequent, because it throws in some extra .o
10580 # files that make .init and .fini sections work.
10581 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10582 else
10583 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10584 fi
10585 hardcode_libdir_flag_spec='-L$libdir'
10586 hardcode_direct=yes
10587 hardcode_minus_L=yes
10588 hardcode_shlibpath_var=no
10589 ;;
10590
10591 sysv4)
10592 case $host_vendor in
10593 sni)
10594 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10595 hardcode_direct=yes # is this really true???
10596 ;;
10597 siemens)
10598 ## LD is ld it makes a PLAMLIB
10599 ## CC just makes a GrossModule.
10600 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10601 reload_cmds='$CC -r -o $output$reload_objs'
10602 hardcode_direct=no
10603 ;;
10604 motorola)
10605 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10606 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10607 ;;
10608 esac
10609 runpath_var='LD_RUN_PATH'
10610 hardcode_shlibpath_var=no
10611 ;;
10612
10613 sysv4.3*)
10614 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10615 hardcode_shlibpath_var=no
10616 export_dynamic_flag_spec='-Bexport'
10617 ;;
10618
10619 sysv4*MP*)
10620 if test -d /usr/nec; then
10621 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10622 hardcode_shlibpath_var=no
10623 runpath_var=LD_RUN_PATH
10624 hardcode_runpath_var=yes
10625 ld_shlibs=yes
10626 fi
10627 ;;
10628
10629 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10630 no_undefined_flag='${wl}-z,text'
10631 archive_cmds_need_lc=no
10632 hardcode_shlibpath_var=no
10633 runpath_var='LD_RUN_PATH'
10634
10635 if test "$GCC" = yes; then
10636 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10637 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10638 else
10639 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10640 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10641 fi
10642 ;;
10643
10644 sysv5* | sco3.2v5* | sco5v6*)
10645 # Note: We can NOT use -z defs as we might desire, because we do not
10646 # link with -lc, and that would cause any symbols used from libc to
10647 # always be unresolved, which means just about no library would
10648 # ever link correctly. If we're not using GNU ld we use -z text
10649 # though, which does catch some bad symbols but isn't as heavy-handed
10650 # as -z defs.
10651 no_undefined_flag='${wl}-z,text'
10652 allow_undefined_flag='${wl}-z,nodefs'
10653 archive_cmds_need_lc=no
10654 hardcode_shlibpath_var=no
10655 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10656 hardcode_libdir_separator=':'
10657 link_all_deplibs=yes
10658 export_dynamic_flag_spec='${wl}-Bexport'
10659 runpath_var='LD_RUN_PATH'
10660
10661 if test "$GCC" = yes; then
10662 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10663 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10664 else
10665 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10666 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10667 fi
10668 ;;
10669
10670 uts4*)
10671 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10672 hardcode_libdir_flag_spec='-L$libdir'
10673 hardcode_shlibpath_var=no
10674 ;;
10675
10676 *)
10677 ld_shlibs=no
10678 ;;
10679 esac
10680
10681 if test x$host_vendor = xsni; then
10682 case $host in
10683 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10684 export_dynamic_flag_spec='${wl}-Blargedynsym'
10685 ;;
10686 esac
10687 fi
10688 fi
10689
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10691 $as_echo "$ld_shlibs" >&6; }
10692 test "$ld_shlibs" = no && can_build_shared=no
10693
10694 with_gnu_ld=$with_gnu_ld
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710 #
10711 # Do we need to explicitly link libc?
10712 #
10713 case "x$archive_cmds_need_lc" in
10714 x|xyes)
10715 # Assume -lc should be added
10716 archive_cmds_need_lc=yes
10717
10718 if test "$enable_shared" = yes && test "$GCC" = yes; then
10719 case $archive_cmds in
10720 *'~'*)
10721 # FIXME: we may have to deal with multi-command sequences.
10722 ;;
10723 '$CC '*)
10724 # Test whether the compiler implicitly links with -lc since on some
10725 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10726 # to ld, don't add -lc before -lgcc.
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10728 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10729 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10730 $as_echo_n "(cached) " >&6
10731 else
10732 $RM conftest*
10733 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10734
10735 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10736 (eval $ac_compile) 2>&5
10737 ac_status=$?
10738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10739 test $ac_status = 0; } 2>conftest.err; then
10740 soname=conftest
10741 lib=conftest
10742 libobjs=conftest.$ac_objext
10743 deplibs=
10744 wl=$lt_prog_compiler_wl
10745 pic_flag=$lt_prog_compiler_pic
10746 compiler_flags=-v
10747 linker_flags=-v
10748 verstring=
10749 output_objdir=.
10750 libname=conftest
10751 lt_save_allow_undefined_flag=$allow_undefined_flag
10752 allow_undefined_flag=
10753 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10754 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10755 ac_status=$?
10756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10757 test $ac_status = 0; }
10758 then
10759 lt_cv_archive_cmds_need_lc=no
10760 else
10761 lt_cv_archive_cmds_need_lc=yes
10762 fi
10763 allow_undefined_flag=$lt_save_allow_undefined_flag
10764 else
10765 cat conftest.err 1>&5
10766 fi
10767 $RM conftest*
10768
10769 fi
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10771 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10772 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10773 ;;
10774 esac
10775 fi
10776 ;;
10777 esac
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10936 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10937
10938 if test "$GCC" = yes; then
10939 case $host_os in
10940 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10941 *) lt_awk_arg="/^libraries:/" ;;
10942 esac
10943 case $host_os in
10944 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10945 *) lt_sed_strip_eq="s,=/,/,g" ;;
10946 esac
10947 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10948 case $lt_search_path_spec in
10949 *\;*)
10950 # if the path contains ";" then we assume it to be the separator
10951 # otherwise default to the standard path separator (i.e. ":") - it is
10952 # assumed that no part of a normal pathname contains ";" but that should
10953 # okay in the real world where ";" in dirpaths is itself problematic.
10954 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10955 ;;
10956 *)
10957 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10958 ;;
10959 esac
10960 # Ok, now we have the path, separated by spaces, we can step through it
10961 # and add multilib dir if necessary.
10962 lt_tmp_lt_search_path_spec=
10963 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10964 for lt_sys_path in $lt_search_path_spec; do
10965 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10966 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10967 else
10968 test -d "$lt_sys_path" && \
10969 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10970 fi
10971 done
10972 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10973 BEGIN {RS=" "; FS="/|\n";} {
10974 lt_foo="";
10975 lt_count=0;
10976 for (lt_i = NF; lt_i > 0; lt_i--) {
10977 if ($lt_i != "" && $lt_i != ".") {
10978 if ($lt_i == "..") {
10979 lt_count++;
10980 } else {
10981 if (lt_count == 0) {
10982 lt_foo="/" $lt_i lt_foo;
10983 } else {
10984 lt_count--;
10985 }
10986 }
10987 }
10988 }
10989 if (lt_foo != "") { lt_freq[lt_foo]++; }
10990 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10991 }'`
10992 # AWK program above erroneously prepends '/' to C:/dos/paths
10993 # for these hosts.
10994 case $host_os in
10995 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10996 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10997 esac
10998 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10999 else
11000 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11001 fi
11002 library_names_spec=
11003 libname_spec='lib$name'
11004 soname_spec=
11005 shrext_cmds=".so"
11006 postinstall_cmds=
11007 postuninstall_cmds=
11008 finish_cmds=
11009 finish_eval=
11010 shlibpath_var=
11011 shlibpath_overrides_runpath=unknown
11012 version_type=none
11013 dynamic_linker="$host_os ld.so"
11014 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11015 need_lib_prefix=unknown
11016 hardcode_into_libs=no
11017
11018 # when you set need_version to no, make sure it does not cause -set_version
11019 # flags to be left without arguments
11020 need_version=unknown
11021
11022 case $host_os in
11023 aix3*)
11024 version_type=linux
11025 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11026 shlibpath_var=LIBPATH
11027
11028 # AIX 3 has no versioning support, so we append a major version to the name.
11029 soname_spec='${libname}${release}${shared_ext}$major'
11030 ;;
11031
11032 aix[4-9]*)
11033 version_type=linux
11034 need_lib_prefix=no
11035 need_version=no
11036 hardcode_into_libs=yes
11037 if test "$host_cpu" = ia64; then
11038 # AIX 5 supports IA64
11039 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11040 shlibpath_var=LD_LIBRARY_PATH
11041 else
11042 # With GCC up to 2.95.x, collect2 would create an import file
11043 # for dependence libraries. The import file would start with
11044 # the line `#! .'. This would cause the generated library to
11045 # depend on `.', always an invalid library. This was fixed in
11046 # development snapshots of GCC prior to 3.0.
11047 case $host_os in
11048 aix4 | aix4.[01] | aix4.[01].*)
11049 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11050 echo ' yes '
11051 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11052 :
11053 else
11054 can_build_shared=no
11055 fi
11056 ;;
11057 esac
11058 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11059 # soname into executable. Probably we can add versioning support to
11060 # collect2, so additional links can be useful in future.
11061 if test "$aix_use_runtimelinking" = yes; then
11062 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11063 # instead of lib<name>.a to let people know that these are not
11064 # typical AIX shared libraries.
11065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11066 else
11067 # We preserve .a as extension for shared libraries through AIX4.2
11068 # and later when we are not doing run time linking.
11069 library_names_spec='${libname}${release}.a $libname.a'
11070 soname_spec='${libname}${release}${shared_ext}$major'
11071 fi
11072 shlibpath_var=LIBPATH
11073 fi
11074 ;;
11075
11076 amigaos*)
11077 case $host_cpu in
11078 powerpc)
11079 # Since July 2007 AmigaOS4 officially supports .so libraries.
11080 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11082 ;;
11083 m68k)
11084 library_names_spec='$libname.ixlibrary $libname.a'
11085 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11086 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'
11087 ;;
11088 esac
11089 ;;
11090
11091 beos*)
11092 library_names_spec='${libname}${shared_ext}'
11093 dynamic_linker="$host_os ld.so"
11094 shlibpath_var=LIBRARY_PATH
11095 ;;
11096
11097 bsdi[45]*)
11098 version_type=linux
11099 need_version=no
11100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11101 soname_spec='${libname}${release}${shared_ext}$major'
11102 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11103 shlibpath_var=LD_LIBRARY_PATH
11104 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11105 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11106 # the default ld.so.conf also contains /usr/contrib/lib and
11107 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11108 # libtool to hard-code these into programs
11109 ;;
11110
11111 cygwin* | mingw* | pw32* | cegcc*)
11112 version_type=windows
11113 shrext_cmds=".dll"
11114 need_version=no
11115 need_lib_prefix=no
11116
11117 case $GCC,$host_os in
11118 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11119 library_names_spec='$libname.dll.a'
11120 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11121 postinstall_cmds='base_file=`basename \${file}`~
11122 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11123 dldir=$destdir/`dirname \$dlpath`~
11124 test -d \$dldir || mkdir -p \$dldir~
11125 $install_prog $dir/$dlname \$dldir/$dlname~
11126 chmod a+x \$dldir/$dlname~
11127 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11128 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11129 fi'
11130 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11131 dlpath=$dir/\$dldll~
11132 $RM \$dlpath'
11133 shlibpath_overrides_runpath=yes
11134
11135 case $host_os in
11136 cygwin*)
11137 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11138 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11139
11140 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11141 ;;
11142 mingw* | cegcc*)
11143 # MinGW DLLs use traditional 'lib' prefix
11144 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11145 ;;
11146 pw32*)
11147 # pw32 DLLs use 'pw' prefix rather than 'lib'
11148 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11149 ;;
11150 esac
11151 ;;
11152
11153 *)
11154 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11155 ;;
11156 esac
11157 dynamic_linker='Win32 ld.exe'
11158 # FIXME: first we should search . and the directory the executable is in
11159 shlibpath_var=PATH
11160 ;;
11161
11162 darwin* | rhapsody*)
11163 dynamic_linker="$host_os dyld"
11164 version_type=darwin
11165 need_lib_prefix=no
11166 need_version=no
11167 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11168 soname_spec='${libname}${release}${major}$shared_ext'
11169 shlibpath_overrides_runpath=yes
11170 shlibpath_var=DYLD_LIBRARY_PATH
11171 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11172
11173 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11174 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11175 ;;
11176
11177 dgux*)
11178 version_type=linux
11179 need_lib_prefix=no
11180 need_version=no
11181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11182 soname_spec='${libname}${release}${shared_ext}$major'
11183 shlibpath_var=LD_LIBRARY_PATH
11184 ;;
11185
11186 freebsd* | dragonfly*)
11187 # DragonFly does not have aout. When/if they implement a new
11188 # versioning mechanism, adjust this.
11189 if test -x /usr/bin/objformat; then
11190 objformat=`/usr/bin/objformat`
11191 else
11192 case $host_os in
11193 freebsd[23].*) objformat=aout ;;
11194 *) objformat=elf ;;
11195 esac
11196 fi
11197 version_type=freebsd-$objformat
11198 case $version_type in
11199 freebsd-elf*)
11200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11201 need_version=no
11202 need_lib_prefix=no
11203 ;;
11204 freebsd-*)
11205 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11206 need_version=yes
11207 ;;
11208 esac
11209 shlibpath_var=LD_LIBRARY_PATH
11210 case $host_os in
11211 freebsd2.*)
11212 shlibpath_overrides_runpath=yes
11213 ;;
11214 freebsd3.[01]* | freebsdelf3.[01]*)
11215 shlibpath_overrides_runpath=yes
11216 hardcode_into_libs=yes
11217 ;;
11218 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11219 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11220 shlibpath_overrides_runpath=no
11221 hardcode_into_libs=yes
11222 ;;
11223 *) # from 4.6 on, and DragonFly
11224 shlibpath_overrides_runpath=yes
11225 hardcode_into_libs=yes
11226 ;;
11227 esac
11228 ;;
11229
11230 haiku*)
11231 version_type=linux
11232 need_lib_prefix=no
11233 need_version=no
11234 dynamic_linker="$host_os runtime_loader"
11235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11236 soname_spec='${libname}${release}${shared_ext}$major'
11237 shlibpath_var=LIBRARY_PATH
11238 shlibpath_overrides_runpath=yes
11239 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11240 hardcode_into_libs=yes
11241 ;;
11242
11243 hpux9* | hpux10* | hpux11*)
11244 # Give a soname corresponding to the major version so that dld.sl refuses to
11245 # link against other versions.
11246 version_type=sunos
11247 need_lib_prefix=no
11248 need_version=no
11249 case $host_cpu in
11250 ia64*)
11251 shrext_cmds='.so'
11252 hardcode_into_libs=yes
11253 dynamic_linker="$host_os dld.so"
11254 shlibpath_var=LD_LIBRARY_PATH
11255 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11257 soname_spec='${libname}${release}${shared_ext}$major'
11258 if test "X$HPUX_IA64_MODE" = X32; then
11259 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11260 else
11261 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11262 fi
11263 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11264 ;;
11265 hppa*64*)
11266 shrext_cmds='.sl'
11267 hardcode_into_libs=yes
11268 dynamic_linker="$host_os dld.sl"
11269 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11270 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11272 soname_spec='${libname}${release}${shared_ext}$major'
11273 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11274 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11275 ;;
11276 *)
11277 shrext_cmds='.sl'
11278 dynamic_linker="$host_os dld.sl"
11279 shlibpath_var=SHLIB_PATH
11280 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11282 soname_spec='${libname}${release}${shared_ext}$major'
11283 ;;
11284 esac
11285 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11286 postinstall_cmds='chmod 555 $lib'
11287 # or fails outright, so override atomically:
11288 install_override_mode=555
11289 ;;
11290
11291 interix[3-9]*)
11292 version_type=linux
11293 need_lib_prefix=no
11294 need_version=no
11295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11296 soname_spec='${libname}${release}${shared_ext}$major'
11297 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11298 shlibpath_var=LD_LIBRARY_PATH
11299 shlibpath_overrides_runpath=no
11300 hardcode_into_libs=yes
11301 ;;
11302
11303 irix5* | irix6* | nonstopux*)
11304 case $host_os in
11305 nonstopux*) version_type=nonstopux ;;
11306 *)
11307 if test "$lt_cv_prog_gnu_ld" = yes; then
11308 version_type=linux
11309 else
11310 version_type=irix
11311 fi ;;
11312 esac
11313 need_lib_prefix=no
11314 need_version=no
11315 soname_spec='${libname}${release}${shared_ext}$major'
11316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11317 case $host_os in
11318 irix5* | nonstopux*)
11319 libsuff= shlibsuff=
11320 ;;
11321 *)
11322 case $LD in # libtool.m4 will add one of these switches to LD
11323 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11324 libsuff= shlibsuff= libmagic=32-bit;;
11325 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11326 libsuff=32 shlibsuff=N32 libmagic=N32;;
11327 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11328 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11329 *) libsuff= shlibsuff= libmagic=never-match;;
11330 esac
11331 ;;
11332 esac
11333 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11334 shlibpath_overrides_runpath=no
11335 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11336 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11337 hardcode_into_libs=yes
11338 ;;
11339
11340 # No shared lib support for Linux oldld, aout, or coff.
11341 linux*oldld* | linux*aout* | linux*coff*)
11342 dynamic_linker=no
11343 ;;
11344
11345 # This must be Linux ELF.
11346 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11347 version_type=linux
11348 need_lib_prefix=no
11349 need_version=no
11350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11351 soname_spec='${libname}${release}${shared_ext}$major'
11352 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11353 shlibpath_var=LD_LIBRARY_PATH
11354 shlibpath_overrides_runpath=no
11355
11356 # Some binutils ld are patched to set DT_RUNPATH
11357 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11358 $as_echo_n "(cached) " >&6
11359 else
11360 lt_cv_shlibpath_overrides_runpath=no
11361 save_LDFLAGS=$LDFLAGS
11362 save_libdir=$libdir
11363 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11364 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11366 /* end confdefs.h. */
11367
11368 int
11369 main ()
11370 {
11371
11372 ;
11373 return 0;
11374 }
11375 _ACEOF
11376 if ac_fn_c_try_link "$LINENO"; then :
11377 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11378 lt_cv_shlibpath_overrides_runpath=yes
11379 fi
11380 fi
11381 rm -f core conftest.err conftest.$ac_objext \
11382 conftest$ac_exeext conftest.$ac_ext
11383 LDFLAGS=$save_LDFLAGS
11384 libdir=$save_libdir
11385
11386 fi
11387
11388 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11389
11390 # This implies no fast_install, which is unacceptable.
11391 # Some rework will be needed to allow for fast_install
11392 # before this can be enabled.
11393 hardcode_into_libs=yes
11394
11395 # Append ld.so.conf contents to the search path
11396 if test -f /etc/ld.so.conf; then
11397 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' ' '`
11398 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11399 fi
11400
11401 # We used to test for /lib/ld.so.1 and disable shared libraries on
11402 # powerpc, because MkLinux only supported shared libraries with the
11403 # GNU dynamic linker. Since this was broken with cross compilers,
11404 # most powerpc-linux boxes support dynamic linking these days and
11405 # people can always --disable-shared, the test was removed, and we
11406 # assume the GNU/Linux dynamic linker is in use.
11407 dynamic_linker='GNU/Linux ld.so'
11408 ;;
11409
11410 netbsd*)
11411 version_type=sunos
11412 need_lib_prefix=no
11413 need_version=no
11414 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11416 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11417 dynamic_linker='NetBSD (a.out) ld.so'
11418 else
11419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11420 soname_spec='${libname}${release}${shared_ext}$major'
11421 dynamic_linker='NetBSD ld.elf_so'
11422 fi
11423 shlibpath_var=LD_LIBRARY_PATH
11424 shlibpath_overrides_runpath=yes
11425 hardcode_into_libs=yes
11426 ;;
11427
11428 newsos6)
11429 version_type=linux
11430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11431 shlibpath_var=LD_LIBRARY_PATH
11432 shlibpath_overrides_runpath=yes
11433 ;;
11434
11435 *nto* | *qnx*)
11436 version_type=qnx
11437 need_lib_prefix=no
11438 need_version=no
11439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11440 soname_spec='${libname}${release}${shared_ext}$major'
11441 shlibpath_var=LD_LIBRARY_PATH
11442 shlibpath_overrides_runpath=no
11443 hardcode_into_libs=yes
11444 dynamic_linker='ldqnx.so'
11445 ;;
11446
11447 openbsd*)
11448 version_type=sunos
11449 sys_lib_dlsearch_path_spec="/usr/lib"
11450 need_lib_prefix=no
11451 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11452 case $host_os in
11453 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11454 *) need_version=no ;;
11455 esac
11456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11457 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11458 shlibpath_var=LD_LIBRARY_PATH
11459 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11460 case $host_os in
11461 openbsd2.[89] | openbsd2.[89].*)
11462 shlibpath_overrides_runpath=no
11463 ;;
11464 *)
11465 shlibpath_overrides_runpath=yes
11466 ;;
11467 esac
11468 else
11469 shlibpath_overrides_runpath=yes
11470 fi
11471 ;;
11472
11473 os2*)
11474 libname_spec='$name'
11475 shrext_cmds=".dll"
11476 need_lib_prefix=no
11477 library_names_spec='$libname${shared_ext} $libname.a'
11478 dynamic_linker='OS/2 ld.exe'
11479 shlibpath_var=LIBPATH
11480 ;;
11481
11482 osf3* | osf4* | osf5*)
11483 version_type=osf
11484 need_lib_prefix=no
11485 need_version=no
11486 soname_spec='${libname}${release}${shared_ext}$major'
11487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11488 shlibpath_var=LD_LIBRARY_PATH
11489 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11490 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11491 ;;
11492
11493 rdos*)
11494 dynamic_linker=no
11495 ;;
11496
11497 solaris*)
11498 version_type=linux
11499 need_lib_prefix=no
11500 need_version=no
11501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11502 soname_spec='${libname}${release}${shared_ext}$major'
11503 shlibpath_var=LD_LIBRARY_PATH
11504 shlibpath_overrides_runpath=yes
11505 hardcode_into_libs=yes
11506 # ldd complains unless libraries are executable
11507 postinstall_cmds='chmod +x $lib'
11508 ;;
11509
11510 sunos4*)
11511 version_type=sunos
11512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11513 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11514 shlibpath_var=LD_LIBRARY_PATH
11515 shlibpath_overrides_runpath=yes
11516 if test "$with_gnu_ld" = yes; then
11517 need_lib_prefix=no
11518 fi
11519 need_version=yes
11520 ;;
11521
11522 sysv4 | sysv4.3*)
11523 version_type=linux
11524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11525 soname_spec='${libname}${release}${shared_ext}$major'
11526 shlibpath_var=LD_LIBRARY_PATH
11527 case $host_vendor in
11528 sni)
11529 shlibpath_overrides_runpath=no
11530 need_lib_prefix=no
11531 runpath_var=LD_RUN_PATH
11532 ;;
11533 siemens)
11534 need_lib_prefix=no
11535 ;;
11536 motorola)
11537 need_lib_prefix=no
11538 need_version=no
11539 shlibpath_overrides_runpath=no
11540 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11541 ;;
11542 esac
11543 ;;
11544
11545 sysv4*MP*)
11546 if test -d /usr/nec ;then
11547 version_type=linux
11548 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11549 soname_spec='$libname${shared_ext}.$major'
11550 shlibpath_var=LD_LIBRARY_PATH
11551 fi
11552 ;;
11553
11554 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11555 version_type=freebsd-elf
11556 need_lib_prefix=no
11557 need_version=no
11558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11559 soname_spec='${libname}${release}${shared_ext}$major'
11560 shlibpath_var=LD_LIBRARY_PATH
11561 shlibpath_overrides_runpath=yes
11562 hardcode_into_libs=yes
11563 if test "$with_gnu_ld" = yes; then
11564 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11565 else
11566 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11567 case $host_os in
11568 sco3.2v5*)
11569 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11570 ;;
11571 esac
11572 fi
11573 sys_lib_dlsearch_path_spec='/usr/lib'
11574 ;;
11575
11576 tpf*)
11577 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11578 version_type=linux
11579 need_lib_prefix=no
11580 need_version=no
11581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11582 shlibpath_var=LD_LIBRARY_PATH
11583 shlibpath_overrides_runpath=no
11584 hardcode_into_libs=yes
11585 ;;
11586
11587 uts4*)
11588 version_type=linux
11589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11590 soname_spec='${libname}${release}${shared_ext}$major'
11591 shlibpath_var=LD_LIBRARY_PATH
11592 ;;
11593
11594 *)
11595 dynamic_linker=no
11596 ;;
11597 esac
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11599 $as_echo "$dynamic_linker" >&6; }
11600 test "$dynamic_linker" = no && can_build_shared=no
11601
11602 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11603 if test "$GCC" = yes; then
11604 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11605 fi
11606
11607 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11608 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11609 fi
11610 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11611 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11612 fi
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11706 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11707 hardcode_action=
11708 if test -n "$hardcode_libdir_flag_spec" ||
11709 test -n "$runpath_var" ||
11710 test "X$hardcode_automatic" = "Xyes" ; then
11711
11712 # We can hardcode non-existent directories.
11713 if test "$hardcode_direct" != no &&
11714 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11715 # have to relink, otherwise we might link with an installed library
11716 # when we should be linking with a yet-to-be-installed one
11717 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11718 test "$hardcode_minus_L" != no; then
11719 # Linking always hardcodes the temporary library directory.
11720 hardcode_action=relink
11721 else
11722 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11723 hardcode_action=immediate
11724 fi
11725 else
11726 # We cannot hardcode anything, or else we can only hardcode existing
11727 # directories.
11728 hardcode_action=unsupported
11729 fi
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11731 $as_echo "$hardcode_action" >&6; }
11732
11733 if test "$hardcode_action" = relink ||
11734 test "$inherit_rpath" = yes; then
11735 # Fast installation is not supported
11736 enable_fast_install=no
11737 elif test "$shlibpath_overrides_runpath" = yes ||
11738 test "$enable_shared" = no; then
11739 # Fast installation is not necessary
11740 enable_fast_install=needless
11741 fi
11742
11743
11744
11745
11746
11747
11748 if test "x$enable_dlopen" != xyes; then
11749 enable_dlopen=unknown
11750 enable_dlopen_self=unknown
11751 enable_dlopen_self_static=unknown
11752 else
11753 lt_cv_dlopen=no
11754 lt_cv_dlopen_libs=
11755
11756 case $host_os in
11757 beos*)
11758 lt_cv_dlopen="load_add_on"
11759 lt_cv_dlopen_libs=
11760 lt_cv_dlopen_self=yes
11761 ;;
11762
11763 mingw* | pw32* | cegcc*)
11764 lt_cv_dlopen="LoadLibrary"
11765 lt_cv_dlopen_libs=
11766 ;;
11767
11768 cygwin*)
11769 lt_cv_dlopen="dlopen"
11770 lt_cv_dlopen_libs=
11771 ;;
11772
11773 darwin*)
11774 # if libdl is installed we need to link against it
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11776 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11777 if ${ac_cv_lib_dl_dlopen+:} false; then :
11778 $as_echo_n "(cached) " >&6
11779 else
11780 ac_check_lib_save_LIBS=$LIBS
11781 LIBS="-ldl $LIBS"
11782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11783 /* end confdefs.h. */
11784
11785 /* Override any GCC internal prototype to avoid an error.
11786 Use char because int might match the return type of a GCC
11787 builtin and then its argument prototype would still apply. */
11788 #ifdef __cplusplus
11789 extern "C"
11790 #endif
11791 char dlopen ();
11792 int
11793 main ()
11794 {
11795 return dlopen ();
11796 ;
11797 return 0;
11798 }
11799 _ACEOF
11800 if ac_fn_c_try_link "$LINENO"; then :
11801 ac_cv_lib_dl_dlopen=yes
11802 else
11803 ac_cv_lib_dl_dlopen=no
11804 fi
11805 rm -f core conftest.err conftest.$ac_objext \
11806 conftest$ac_exeext conftest.$ac_ext
11807 LIBS=$ac_check_lib_save_LIBS
11808 fi
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11810 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11811 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11812 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11813 else
11814
11815 lt_cv_dlopen="dyld"
11816 lt_cv_dlopen_libs=
11817 lt_cv_dlopen_self=yes
11818
11819 fi
11820
11821 ;;
11822
11823 *)
11824 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11825 if test "x$ac_cv_func_shl_load" = xyes; then :
11826 lt_cv_dlopen="shl_load"
11827 else
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11829 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11830 if ${ac_cv_lib_dld_shl_load+:} false; then :
11831 $as_echo_n "(cached) " >&6
11832 else
11833 ac_check_lib_save_LIBS=$LIBS
11834 LIBS="-ldld $LIBS"
11835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11836 /* end confdefs.h. */
11837
11838 /* Override any GCC internal prototype to avoid an error.
11839 Use char because int might match the return type of a GCC
11840 builtin and then its argument prototype would still apply. */
11841 #ifdef __cplusplus
11842 extern "C"
11843 #endif
11844 char shl_load ();
11845 int
11846 main ()
11847 {
11848 return shl_load ();
11849 ;
11850 return 0;
11851 }
11852 _ACEOF
11853 if ac_fn_c_try_link "$LINENO"; then :
11854 ac_cv_lib_dld_shl_load=yes
11855 else
11856 ac_cv_lib_dld_shl_load=no
11857 fi
11858 rm -f core conftest.err conftest.$ac_objext \
11859 conftest$ac_exeext conftest.$ac_ext
11860 LIBS=$ac_check_lib_save_LIBS
11861 fi
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11863 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11864 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11865 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11866 else
11867 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11868 if test "x$ac_cv_func_dlopen" = xyes; then :
11869 lt_cv_dlopen="dlopen"
11870 else
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11872 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11873 if ${ac_cv_lib_dl_dlopen+:} false; then :
11874 $as_echo_n "(cached) " >&6
11875 else
11876 ac_check_lib_save_LIBS=$LIBS
11877 LIBS="-ldl $LIBS"
11878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11879 /* end confdefs.h. */
11880
11881 /* Override any GCC internal prototype to avoid an error.
11882 Use char because int might match the return type of a GCC
11883 builtin and then its argument prototype would still apply. */
11884 #ifdef __cplusplus
11885 extern "C"
11886 #endif
11887 char dlopen ();
11888 int
11889 main ()
11890 {
11891 return dlopen ();
11892 ;
11893 return 0;
11894 }
11895 _ACEOF
11896 if ac_fn_c_try_link "$LINENO"; then :
11897 ac_cv_lib_dl_dlopen=yes
11898 else
11899 ac_cv_lib_dl_dlopen=no
11900 fi
11901 rm -f core conftest.err conftest.$ac_objext \
11902 conftest$ac_exeext conftest.$ac_ext
11903 LIBS=$ac_check_lib_save_LIBS
11904 fi
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11906 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11907 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11908 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11909 else
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11911 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11912 if ${ac_cv_lib_svld_dlopen+:} false; then :
11913 $as_echo_n "(cached) " >&6
11914 else
11915 ac_check_lib_save_LIBS=$LIBS
11916 LIBS="-lsvld $LIBS"
11917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11918 /* end confdefs.h. */
11919
11920 /* Override any GCC internal prototype to avoid an error.
11921 Use char because int might match the return type of a GCC
11922 builtin and then its argument prototype would still apply. */
11923 #ifdef __cplusplus
11924 extern "C"
11925 #endif
11926 char dlopen ();
11927 int
11928 main ()
11929 {
11930 return dlopen ();
11931 ;
11932 return 0;
11933 }
11934 _ACEOF
11935 if ac_fn_c_try_link "$LINENO"; then :
11936 ac_cv_lib_svld_dlopen=yes
11937 else
11938 ac_cv_lib_svld_dlopen=no
11939 fi
11940 rm -f core conftest.err conftest.$ac_objext \
11941 conftest$ac_exeext conftest.$ac_ext
11942 LIBS=$ac_check_lib_save_LIBS
11943 fi
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11945 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11946 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11947 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11948 else
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11950 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11951 if ${ac_cv_lib_dld_dld_link+:} false; then :
11952 $as_echo_n "(cached) " >&6
11953 else
11954 ac_check_lib_save_LIBS=$LIBS
11955 LIBS="-ldld $LIBS"
11956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11957 /* end confdefs.h. */
11958
11959 /* Override any GCC internal prototype to avoid an error.
11960 Use char because int might match the return type of a GCC
11961 builtin and then its argument prototype would still apply. */
11962 #ifdef __cplusplus
11963 extern "C"
11964 #endif
11965 char dld_link ();
11966 int
11967 main ()
11968 {
11969 return dld_link ();
11970 ;
11971 return 0;
11972 }
11973 _ACEOF
11974 if ac_fn_c_try_link "$LINENO"; then :
11975 ac_cv_lib_dld_dld_link=yes
11976 else
11977 ac_cv_lib_dld_dld_link=no
11978 fi
11979 rm -f core conftest.err conftest.$ac_objext \
11980 conftest$ac_exeext conftest.$ac_ext
11981 LIBS=$ac_check_lib_save_LIBS
11982 fi
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11984 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11985 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11986 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11987 fi
11988
11989
11990 fi
11991
11992
11993 fi
11994
11995
11996 fi
11997
11998
11999 fi
12000
12001
12002 fi
12003
12004 ;;
12005 esac
12006
12007 if test "x$lt_cv_dlopen" != xno; then
12008 enable_dlopen=yes
12009 else
12010 enable_dlopen=no
12011 fi
12012
12013 case $lt_cv_dlopen in
12014 dlopen)
12015 save_CPPFLAGS="$CPPFLAGS"
12016 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12017
12018 save_LDFLAGS="$LDFLAGS"
12019 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12020
12021 save_LIBS="$LIBS"
12022 LIBS="$lt_cv_dlopen_libs $LIBS"
12023
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12025 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12026 if ${lt_cv_dlopen_self+:} false; then :
12027 $as_echo_n "(cached) " >&6
12028 else
12029 if test "$cross_compiling" = yes; then :
12030 lt_cv_dlopen_self=cross
12031 else
12032 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12033 lt_status=$lt_dlunknown
12034 cat > conftest.$ac_ext <<_LT_EOF
12035 #line 12035 "configure"
12036 #include "confdefs.h"
12037
12038 #if HAVE_DLFCN_H
12039 #include <dlfcn.h>
12040 #endif
12041
12042 #include <stdio.h>
12043
12044 #ifdef RTLD_GLOBAL
12045 # define LT_DLGLOBAL RTLD_GLOBAL
12046 #else
12047 # ifdef DL_GLOBAL
12048 # define LT_DLGLOBAL DL_GLOBAL
12049 # else
12050 # define LT_DLGLOBAL 0
12051 # endif
12052 #endif
12053
12054 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12055 find out it does not work in some platform. */
12056 #ifndef LT_DLLAZY_OR_NOW
12057 # ifdef RTLD_LAZY
12058 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12059 # else
12060 # ifdef DL_LAZY
12061 # define LT_DLLAZY_OR_NOW DL_LAZY
12062 # else
12063 # ifdef RTLD_NOW
12064 # define LT_DLLAZY_OR_NOW RTLD_NOW
12065 # else
12066 # ifdef DL_NOW
12067 # define LT_DLLAZY_OR_NOW DL_NOW
12068 # else
12069 # define LT_DLLAZY_OR_NOW 0
12070 # endif
12071 # endif
12072 # endif
12073 # endif
12074 #endif
12075
12076 /* When -fvisbility=hidden is used, assume the code has been annotated
12077 correspondingly for the symbols needed. */
12078 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12079 void fnord () __attribute__((visibility("default")));
12080 #endif
12081
12082 void fnord () { int i=42; }
12083 int main ()
12084 {
12085 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12086 int status = $lt_dlunknown;
12087
12088 if (self)
12089 {
12090 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12091 else
12092 {
12093 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12094 else puts (dlerror ());
12095 }
12096 /* dlclose (self); */
12097 }
12098 else
12099 puts (dlerror ());
12100
12101 return status;
12102 }
12103 _LT_EOF
12104 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12105 (eval $ac_link) 2>&5
12106 ac_status=$?
12107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12108 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12109 (./conftest; exit; ) >&5 2>/dev/null
12110 lt_status=$?
12111 case x$lt_status in
12112 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12113 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12114 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12115 esac
12116 else :
12117 # compilation failed
12118 lt_cv_dlopen_self=no
12119 fi
12120 fi
12121 rm -fr conftest*
12122
12123
12124 fi
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12126 $as_echo "$lt_cv_dlopen_self" >&6; }
12127
12128 if test "x$lt_cv_dlopen_self" = xyes; then
12129 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12131 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12132 if ${lt_cv_dlopen_self_static+:} false; then :
12133 $as_echo_n "(cached) " >&6
12134 else
12135 if test "$cross_compiling" = yes; then :
12136 lt_cv_dlopen_self_static=cross
12137 else
12138 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12139 lt_status=$lt_dlunknown
12140 cat > conftest.$ac_ext <<_LT_EOF
12141 #line 12141 "configure"
12142 #include "confdefs.h"
12143
12144 #if HAVE_DLFCN_H
12145 #include <dlfcn.h>
12146 #endif
12147
12148 #include <stdio.h>
12149
12150 #ifdef RTLD_GLOBAL
12151 # define LT_DLGLOBAL RTLD_GLOBAL
12152 #else
12153 # ifdef DL_GLOBAL
12154 # define LT_DLGLOBAL DL_GLOBAL
12155 # else
12156 # define LT_DLGLOBAL 0
12157 # endif
12158 #endif
12159
12160 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12161 find out it does not work in some platform. */
12162 #ifndef LT_DLLAZY_OR_NOW
12163 # ifdef RTLD_LAZY
12164 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12165 # else
12166 # ifdef DL_LAZY
12167 # define LT_DLLAZY_OR_NOW DL_LAZY
12168 # else
12169 # ifdef RTLD_NOW
12170 # define LT_DLLAZY_OR_NOW RTLD_NOW
12171 # else
12172 # ifdef DL_NOW
12173 # define LT_DLLAZY_OR_NOW DL_NOW
12174 # else
12175 # define LT_DLLAZY_OR_NOW 0
12176 # endif
12177 # endif
12178 # endif
12179 # endif
12180 #endif
12181
12182 /* When -fvisbility=hidden is used, assume the code has been annotated
12183 correspondingly for the symbols needed. */
12184 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12185 void fnord () __attribute__((visibility("default")));
12186 #endif
12187
12188 void fnord () { int i=42; }
12189 int main ()
12190 {
12191 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12192 int status = $lt_dlunknown;
12193
12194 if (self)
12195 {
12196 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12197 else
12198 {
12199 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12200 else puts (dlerror ());
12201 }
12202 /* dlclose (self); */
12203 }
12204 else
12205 puts (dlerror ());
12206
12207 return status;
12208 }
12209 _LT_EOF
12210 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12211 (eval $ac_link) 2>&5
12212 ac_status=$?
12213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12214 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12215 (./conftest; exit; ) >&5 2>/dev/null
12216 lt_status=$?
12217 case x$lt_status in
12218 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12219 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12220 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12221 esac
12222 else :
12223 # compilation failed
12224 lt_cv_dlopen_self_static=no
12225 fi
12226 fi
12227 rm -fr conftest*
12228
12229
12230 fi
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12232 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12233 fi
12234
12235 CPPFLAGS="$save_CPPFLAGS"
12236 LDFLAGS="$save_LDFLAGS"
12237 LIBS="$save_LIBS"
12238 ;;
12239 esac
12240
12241 case $lt_cv_dlopen_self in
12242 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12243 *) enable_dlopen_self=unknown ;;
12244 esac
12245
12246 case $lt_cv_dlopen_self_static in
12247 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12248 *) enable_dlopen_self_static=unknown ;;
12249 esac
12250 fi
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268 striplib=
12269 old_striplib=
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12271 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12272 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12273 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12274 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12276 $as_echo "yes" >&6; }
12277 else
12278 # FIXME - insert some real tests, host_os isn't really good enough
12279 case $host_os in
12280 darwin*)
12281 if test -n "$STRIP" ; then
12282 striplib="$STRIP -x"
12283 old_striplib="$STRIP -S"
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12285 $as_echo "yes" >&6; }
12286 else
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12288 $as_echo "no" >&6; }
12289 fi
12290 ;;
12291 *)
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12293 $as_echo "no" >&6; }
12294 ;;
12295 esac
12296 fi
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309 # Report which library types will actually be built
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12311 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12313 $as_echo "$can_build_shared" >&6; }
12314
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12316 $as_echo_n "checking whether to build shared libraries... " >&6; }
12317 test "$can_build_shared" = "no" && enable_shared=no
12318
12319 # On AIX, shared libraries and static libraries use the same namespace, and
12320 # are all built from PIC.
12321 case $host_os in
12322 aix3*)
12323 test "$enable_shared" = yes && enable_static=no
12324 if test -n "$RANLIB"; then
12325 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12326 postinstall_cmds='$RANLIB $lib'
12327 fi
12328 ;;
12329
12330 aix[4-9]*)
12331 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12332 test "$enable_shared" = yes && enable_static=no
12333 fi
12334 ;;
12335 esac
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12337 $as_echo "$enable_shared" >&6; }
12338
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12340 $as_echo_n "checking whether to build static libraries... " >&6; }
12341 # Make sure either enable_shared or enable_static is yes.
12342 test "$enable_shared" = yes || enable_static=yes
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12344 $as_echo "$enable_static" >&6; }
12345
12346
12347
12348
12349 fi
12350 ac_ext=c
12351 ac_cpp='$CPP $CPPFLAGS'
12352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12355
12356 CC="$lt_save_CC"
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370 ac_config_commands="$ac_config_commands libtool"
12371
12372
12373
12374
12375 # Only expand once:
12376
12377
12378
12379
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
12381 $as_echo_n "checking for bind in -lsocket... " >&6; }
12382 if ${ac_cv_lib_socket_bind+:} false; then :
12383 $as_echo_n "(cached) " >&6
12384 else
12385 ac_check_lib_save_LIBS=$LIBS
12386 LIBS="-lsocket $LIBS"
12387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12388 /* end confdefs.h. */
12389
12390 /* Override any GCC internal prototype to avoid an error.
12391 Use char because int might match the return type of a GCC
12392 builtin and then its argument prototype would still apply. */
12393 #ifdef __cplusplus
12394 extern "C"
12395 #endif
12396 char bind ();
12397 int
12398 main ()
12399 {
12400 return bind ();
12401 ;
12402 return 0;
12403 }
12404 _ACEOF
12405 if ac_fn_c_try_link "$LINENO"; then :
12406 ac_cv_lib_socket_bind=yes
12407 else
12408 ac_cv_lib_socket_bind=no
12409 fi
12410 rm -f core conftest.err conftest.$ac_objext \
12411 conftest$ac_exeext conftest.$ac_ext
12412 LIBS=$ac_check_lib_save_LIBS
12413 fi
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
12415 $as_echo "$ac_cv_lib_socket_bind" >&6; }
12416 if test "x$ac_cv_lib_socket_bind" = xyes; then :
12417 cat >>confdefs.h <<_ACEOF
12418 #define HAVE_LIBSOCKET 1
12419 _ACEOF
12420
12421 LIBS="-lsocket $LIBS"
12422
12423 fi
12424
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
12426 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
12427 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
12428 $as_echo_n "(cached) " >&6
12429 else
12430 ac_check_lib_save_LIBS=$LIBS
12431 LIBS="-lnsl $LIBS"
12432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12433 /* end confdefs.h. */
12434
12435 /* Override any GCC internal prototype to avoid an error.
12436 Use char because int might match the return type of a GCC
12437 builtin and then its argument prototype would still apply. */
12438 #ifdef __cplusplus
12439 extern "C"
12440 #endif
12441 char gethostbyname ();
12442 int
12443 main ()
12444 {
12445 return gethostbyname ();
12446 ;
12447 return 0;
12448 }
12449 _ACEOF
12450 if ac_fn_c_try_link "$LINENO"; then :
12451 ac_cv_lib_nsl_gethostbyname=yes
12452 else
12453 ac_cv_lib_nsl_gethostbyname=no
12454 fi
12455 rm -f core conftest.err conftest.$ac_objext \
12456 conftest$ac_exeext conftest.$ac_ext
12457 LIBS=$ac_check_lib_save_LIBS
12458 fi
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
12460 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
12461 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
12462 cat >>confdefs.h <<_ACEOF
12463 #define HAVE_LIBNSL 1
12464 _ACEOF
12465
12466 LIBS="-lnsl $LIBS"
12467
12468 fi
12469
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs in -lm" >&5
12471 $as_echo_n "checking for fabs in -lm... " >&6; }
12472 if ${ac_cv_lib_m_fabs+:} false; then :
12473 $as_echo_n "(cached) " >&6
12474 else
12475 ac_check_lib_save_LIBS=$LIBS
12476 LIBS="-lm $LIBS"
12477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12478 /* end confdefs.h. */
12479
12480 /* Override any GCC internal prototype to avoid an error.
12481 Use char because int might match the return type of a GCC
12482 builtin and then its argument prototype would still apply. */
12483 #ifdef __cplusplus
12484 extern "C"
12485 #endif
12486 char fabs ();
12487 int
12488 main ()
12489 {
12490 return fabs ();
12491 ;
12492 return 0;
12493 }
12494 _ACEOF
12495 if ac_fn_c_try_link "$LINENO"; then :
12496 ac_cv_lib_m_fabs=yes
12497 else
12498 ac_cv_lib_m_fabs=no
12499 fi
12500 rm -f core conftest.err conftest.$ac_objext \
12501 conftest$ac_exeext conftest.$ac_ext
12502 LIBS=$ac_check_lib_save_LIBS
12503 fi
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabs" >&5
12505 $as_echo "$ac_cv_lib_m_fabs" >&6; }
12506 if test "x$ac_cv_lib_m_fabs" = xyes; then :
12507 cat >>confdefs.h <<_ACEOF
12508 #define HAVE_LIBM 1
12509 _ACEOF
12510
12511 LIBS="-lm $LIBS"
12512
12513 fi
12514
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log2 in -lm" >&5
12516 $as_echo_n "checking for log2 in -lm... " >&6; }
12517 if ${ac_cv_lib_m_log2+:} false; then :
12518 $as_echo_n "(cached) " >&6
12519 else
12520 ac_check_lib_save_LIBS=$LIBS
12521 LIBS="-lm $LIBS"
12522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12523 /* end confdefs.h. */
12524
12525 /* Override any GCC internal prototype to avoid an error.
12526 Use char because int might match the return type of a GCC
12527 builtin and then its argument prototype would still apply. */
12528 #ifdef __cplusplus
12529 extern "C"
12530 #endif
12531 char log2 ();
12532 int
12533 main ()
12534 {
12535 return log2 ();
12536 ;
12537 return 0;
12538 }
12539 _ACEOF
12540 if ac_fn_c_try_link "$LINENO"; then :
12541 ac_cv_lib_m_log2=yes
12542 else
12543 ac_cv_lib_m_log2=no
12544 fi
12545 rm -f core conftest.err conftest.$ac_objext \
12546 conftest$ac_exeext conftest.$ac_ext
12547 LIBS=$ac_check_lib_save_LIBS
12548 fi
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log2" >&5
12550 $as_echo "$ac_cv_lib_m_log2" >&6; }
12551 if test "x$ac_cv_lib_m_log2" = xyes; then :
12552 cat >>confdefs.h <<_ACEOF
12553 #define HAVE_LIBM 1
12554 _ACEOF
12555
12556 LIBS="-lm $LIBS"
12557
12558 fi
12559
12560
12561
12562
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12564 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12565 # Check whether --enable-maintainer-mode was given.
12566 if test "${enable_maintainer_mode+set}" = set; then :
12567 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12568 else
12569 USE_MAINTAINER_MODE=no
12570 fi
12571
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12573 $as_echo "$USE_MAINTAINER_MODE" >&6; }
12574 if test $USE_MAINTAINER_MODE = yes; then
12575 MAINTAINER_MODE_TRUE=
12576 MAINTAINER_MODE_FALSE='#'
12577 else
12578 MAINTAINER_MODE_TRUE='#'
12579 MAINTAINER_MODE_FALSE=
12580 fi
12581
12582 MAINT=$MAINTAINER_MODE_TRUE
12583
12584
12585 am__api_version='1.15'
12586
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
12588 $as_echo_n "checking whether build environment is sane... " >&6; }
12589 # Reject unsafe characters in $srcdir or the absolute working directory
12590 # name. Accept space and tab only in the latter.
12591 am_lf='
12592 '
12593 case `pwd` in
12594 *[\\\"\#\$\&\'\`$am_lf]*)
12595 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
12596 esac
12597 case $srcdir in
12598 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
12599 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
12600 esac
12601
12602 # Do 'set' in a subshell so we don't clobber the current shell's
12603 # arguments. Must try -L first in case configure is actually a
12604 # symlink; some systems play weird games with the mod time of symlinks
12605 # (eg FreeBSD returns the mod time of the symlink's containing
12606 # directory).
12607 if (
12608 am_has_slept=no
12609 for am_try in 1 2; do
12610 echo "timestamp, slept: $am_has_slept" > conftest.file
12611 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
12612 if test "$*" = "X"; then
12613 # -L didn't work.
12614 set X `ls -t "$srcdir/configure" conftest.file`
12615 fi
12616 if test "$*" != "X $srcdir/configure conftest.file" \
12617 && test "$*" != "X conftest.file $srcdir/configure"; then
12618
12619 # If neither matched, then we have a broken ls. This can happen
12620 # if, for instance, CONFIG_SHELL is bash and it inherits a
12621 # broken ls alias from the environment. This has actually
12622 # happened. Such a system could not be considered "sane".
12623 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
12624 alias in your environment" "$LINENO" 5
12625 fi
12626 if test "$2" = conftest.file || test $am_try -eq 2; then
12627 break
12628 fi
12629 # Just in case.
12630 sleep 1
12631 am_has_slept=yes
12632 done
12633 test "$2" = conftest.file
12634 )
12635 then
12636 # Ok.
12637 :
12638 else
12639 as_fn_error $? "newly created file is older than distributed files!
12640 Check your system clock" "$LINENO" 5
12641 fi
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12643 $as_echo "yes" >&6; }
12644 # If we didn't sleep, we still need to ensure time stamps of config.status and
12645 # generated files are strictly newer.
12646 am_sleep_pid=
12647 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
12648 ( sleep 1 ) &
12649 am_sleep_pid=$!
12650 fi
12651
12652 rm -f conftest.file
12653
12654 if test x"${MISSING+set}" != xset; then
12655 case $am_aux_dir in
12656 *\ * | *\ *)
12657 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
12658 *)
12659 MISSING="\${SHELL} $am_aux_dir/missing" ;;
12660 esac
12661 fi
12662 # Use eval to expand $SHELL
12663 if eval "$MISSING --is-lightweight"; then
12664 am_missing_run="$MISSING "
12665 else
12666 am_missing_run=
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
12668 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
12669 fi
12670
12671 if test x"${install_sh+set}" != xset; then
12672 case $am_aux_dir in
12673 *\ * | *\ *)
12674 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
12675 *)
12676 install_sh="\${SHELL} $am_aux_dir/install-sh"
12677 esac
12678 fi
12679
12680 # Installed binaries are usually stripped using 'strip' when the user
12681 # run "make install-strip". However 'strip' might not be the right
12682 # tool to use in cross-compilation environments, therefore Automake
12683 # will honor the 'STRIP' environment variable to overrule this program.
12684 if test "$cross_compiling" != no; then
12685 if test -n "$ac_tool_prefix"; then
12686 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12687 set dummy ${ac_tool_prefix}strip; ac_word=$2
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12689 $as_echo_n "checking for $ac_word... " >&6; }
12690 if ${ac_cv_prog_STRIP+:} false; then :
12691 $as_echo_n "(cached) " >&6
12692 else
12693 if test -n "$STRIP"; then
12694 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12695 else
12696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12697 for as_dir in $PATH
12698 do
12699 IFS=$as_save_IFS
12700 test -z "$as_dir" && as_dir=.
12701 for ac_exec_ext in '' $ac_executable_extensions; do
12702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12703 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12705 break 2
12706 fi
12707 done
12708 done
12709 IFS=$as_save_IFS
12710
12711 fi
12712 fi
12713 STRIP=$ac_cv_prog_STRIP
12714 if test -n "$STRIP"; then
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12716 $as_echo "$STRIP" >&6; }
12717 else
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12719 $as_echo "no" >&6; }
12720 fi
12721
12722
12723 fi
12724 if test -z "$ac_cv_prog_STRIP"; then
12725 ac_ct_STRIP=$STRIP
12726 # Extract the first word of "strip", so it can be a program name with args.
12727 set dummy strip; ac_word=$2
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12729 $as_echo_n "checking for $ac_word... " >&6; }
12730 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12731 $as_echo_n "(cached) " >&6
12732 else
12733 if test -n "$ac_ct_STRIP"; then
12734 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12735 else
12736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12737 for as_dir in $PATH
12738 do
12739 IFS=$as_save_IFS
12740 test -z "$as_dir" && as_dir=.
12741 for ac_exec_ext in '' $ac_executable_extensions; do
12742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12743 ac_cv_prog_ac_ct_STRIP="strip"
12744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12745 break 2
12746 fi
12747 done
12748 done
12749 IFS=$as_save_IFS
12750
12751 fi
12752 fi
12753 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12754 if test -n "$ac_ct_STRIP"; then
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12756 $as_echo "$ac_ct_STRIP" >&6; }
12757 else
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12759 $as_echo "no" >&6; }
12760 fi
12761
12762 if test "x$ac_ct_STRIP" = x; then
12763 STRIP=":"
12764 else
12765 case $cross_compiling:$ac_tool_warned in
12766 yes:)
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12768 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12769 ac_tool_warned=yes ;;
12770 esac
12771 STRIP=$ac_ct_STRIP
12772 fi
12773 else
12774 STRIP="$ac_cv_prog_STRIP"
12775 fi
12776
12777 fi
12778 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
12779
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
12781 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
12782 if test -z "$MKDIR_P"; then
12783 if ${ac_cv_path_mkdir+:} false; then :
12784 $as_echo_n "(cached) " >&6
12785 else
12786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12787 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
12788 do
12789 IFS=$as_save_IFS
12790 test -z "$as_dir" && as_dir=.
12791 for ac_prog in mkdir gmkdir; do
12792 for ac_exec_ext in '' $ac_executable_extensions; do
12793 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
12794 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
12795 'mkdir (GNU coreutils) '* | \
12796 'mkdir (coreutils) '* | \
12797 'mkdir (fileutils) '4.1*)
12798 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
12799 break 3;;
12800 esac
12801 done
12802 done
12803 done
12804 IFS=$as_save_IFS
12805
12806 fi
12807
12808 test -d ./--version && rmdir ./--version
12809 if test "${ac_cv_path_mkdir+set}" = set; then
12810 MKDIR_P="$ac_cv_path_mkdir -p"
12811 else
12812 # As a last resort, use the slow shell script. Don't cache a
12813 # value for MKDIR_P within a source directory, because that will
12814 # break other packages using the cache if that directory is
12815 # removed, or if the value is a relative name.
12816 MKDIR_P="$ac_install_sh -d"
12817 fi
12818 fi
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
12820 $as_echo "$MKDIR_P" >&6; }
12821
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12823 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12824 set x ${MAKE-make}
12825 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12826 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
12827 $as_echo_n "(cached) " >&6
12828 else
12829 cat >conftest.make <<\_ACEOF
12830 SHELL = /bin/sh
12831 all:
12832 @echo '@@@%%%=$(MAKE)=@@@%%%'
12833 _ACEOF
12834 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
12835 case `${MAKE-make} -f conftest.make 2>/dev/null` in
12836 *@@@%%%=?*=@@@%%%*)
12837 eval ac_cv_prog_make_${ac_make}_set=yes;;
12838 *)
12839 eval ac_cv_prog_make_${ac_make}_set=no;;
12840 esac
12841 rm -f conftest.make
12842 fi
12843 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12845 $as_echo "yes" >&6; }
12846 SET_MAKE=
12847 else
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12849 $as_echo "no" >&6; }
12850 SET_MAKE="MAKE=${MAKE-make}"
12851 fi
12852
12853 rm -rf .tst 2>/dev/null
12854 mkdir .tst 2>/dev/null
12855 if test -d .tst; then
12856 am__leading_dot=.
12857 else
12858 am__leading_dot=_
12859 fi
12860 rmdir .tst 2>/dev/null
12861
12862 DEPDIR="${am__leading_dot}deps"
12863
12864 ac_config_commands="$ac_config_commands depfiles"
12865
12866
12867 am_make=${MAKE-make}
12868 cat > confinc << 'END'
12869 am__doit:
12870 @echo this is the am__doit target
12871 .PHONY: am__doit
12872 END
12873 # If we don't find an include directive, just comment out the code.
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
12875 $as_echo_n "checking for style of include used by $am_make... " >&6; }
12876 am__include="#"
12877 am__quote=
12878 _am_result=none
12879 # First try GNU make style include.
12880 echo "include confinc" > confmf
12881 # Ignore all kinds of additional output from 'make'.
12882 case `$am_make -s -f confmf 2> /dev/null` in #(
12883 *the\ am__doit\ target*)
12884 am__include=include
12885 am__quote=
12886 _am_result=GNU
12887 ;;
12888 esac
12889 # Now try BSD make style include.
12890 if test "$am__include" = "#"; then
12891 echo '.include "confinc"' > confmf
12892 case `$am_make -s -f confmf 2> /dev/null` in #(
12893 *the\ am__doit\ target*)
12894 am__include=.include
12895 am__quote="\""
12896 _am_result=BSD
12897 ;;
12898 esac
12899 fi
12900
12901
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
12903 $as_echo "$_am_result" >&6; }
12904 rm -f confinc confmf
12905
12906 # Check whether --enable-dependency-tracking was given.
12907 if test "${enable_dependency_tracking+set}" = set; then :
12908 enableval=$enable_dependency_tracking;
12909 fi
12910
12911 if test "x$enable_dependency_tracking" != xno; then
12912 am_depcomp="$ac_aux_dir/depcomp"
12913 AMDEPBACKSLASH='\'
12914 am__nodep='_no'
12915 fi
12916 if test "x$enable_dependency_tracking" != xno; then
12917 AMDEP_TRUE=
12918 AMDEP_FALSE='#'
12919 else
12920 AMDEP_TRUE='#'
12921 AMDEP_FALSE=
12922 fi
12923
12924
12925 # Check whether --enable-silent-rules was given.
12926 if test "${enable_silent_rules+set}" = set; then :
12927 enableval=$enable_silent_rules;
12928 fi
12929
12930 case $enable_silent_rules in # (((
12931 yes) AM_DEFAULT_VERBOSITY=0;;
12932 no) AM_DEFAULT_VERBOSITY=1;;
12933 *) AM_DEFAULT_VERBOSITY=1;;
12934 esac
12935 am_make=${MAKE-make}
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
12937 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
12938 if ${am_cv_make_support_nested_variables+:} false; then :
12939 $as_echo_n "(cached) " >&6
12940 else
12941 if $as_echo 'TRUE=$(BAR$(V))
12942 BAR0=false
12943 BAR1=true
12944 V=1
12945 am__doit:
12946 @$(TRUE)
12947 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
12948 am_cv_make_support_nested_variables=yes
12949 else
12950 am_cv_make_support_nested_variables=no
12951 fi
12952 fi
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
12954 $as_echo "$am_cv_make_support_nested_variables" >&6; }
12955 if test $am_cv_make_support_nested_variables = yes; then
12956 AM_V='$(V)'
12957 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
12958 else
12959 AM_V=$AM_DEFAULT_VERBOSITY
12960 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
12961 fi
12962 AM_BACKSLASH='\'
12963
12964 if test "`cd $srcdir && pwd`" != "`pwd`"; then
12965 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
12966 # is not polluted with repeated "-I."
12967 am__isrc=' -I$(srcdir)'
12968 # test to see if srcdir already configured
12969 if test -f $srcdir/config.status; then
12970 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
12971 fi
12972 fi
12973
12974 # test whether we have cygpath
12975 if test -z "$CYGPATH_W"; then
12976 if (cygpath --version) >/dev/null 2>/dev/null; then
12977 CYGPATH_W='cygpath -w'
12978 else
12979 CYGPATH_W=echo
12980 fi
12981 fi
12982
12983
12984 # Define the identity of the package.
12985 PACKAGE='sim'
12986 VERSION='0'
12987
12988
12989 cat >>confdefs.h <<_ACEOF
12990 #define PACKAGE "$PACKAGE"
12991 _ACEOF
12992
12993
12994 cat >>confdefs.h <<_ACEOF
12995 #define VERSION "$VERSION"
12996 _ACEOF
12997
12998 # Some tools Automake needs.
12999
13000 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
13001
13002
13003 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
13004
13005
13006 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
13007
13008
13009 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
13010
13011
13012 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
13013
13014 # For better backward compatibility. To be removed once Automake 1.9.x
13015 # dies out for good. For more background, see:
13016 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
13017 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
13018 mkdir_p='$(MKDIR_P)'
13019
13020 # We need awk for the "check" target (and possibly the TAP driver). The
13021 # system "awk" is bad on some platforms.
13022 # Always define AMTAR for backward compatibility. Yes, it's still used
13023 # in the wild :-( We should find a proper way to deprecate it ...
13024 AMTAR='$${TAR-tar}'
13025
13026
13027 # We'll loop over all known methods to create a tar archive until one works.
13028 _am_tools='gnutar pax cpio none'
13029
13030 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
13031
13032
13033
13034
13035
13036 depcc="$CC" am_compiler_list=
13037
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13039 $as_echo_n "checking dependency style of $depcc... " >&6; }
13040 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13041 $as_echo_n "(cached) " >&6
13042 else
13043 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13044 # We make a subdir and do the tests there. Otherwise we can end up
13045 # making bogus files that we don't know about and never remove. For
13046 # instance it was reported that on HP-UX the gcc test will end up
13047 # making a dummy file named 'D' -- because '-MD' means "put the output
13048 # in D".
13049 rm -rf conftest.dir
13050 mkdir conftest.dir
13051 # Copy depcomp to subdir because otherwise we won't find it if we're
13052 # using a relative directory.
13053 cp "$am_depcomp" conftest.dir
13054 cd conftest.dir
13055 # We will build objects and dependencies in a subdirectory because
13056 # it helps to detect inapplicable dependency modes. For instance
13057 # both Tru64's cc and ICC support -MD to output dependencies as a
13058 # side effect of compilation, but ICC will put the dependencies in
13059 # the current directory while Tru64 will put them in the object
13060 # directory.
13061 mkdir sub
13062
13063 am_cv_CC_dependencies_compiler_type=none
13064 if test "$am_compiler_list" = ""; then
13065 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13066 fi
13067 am__universal=false
13068 case " $depcc " in #(
13069 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13070 esac
13071
13072 for depmode in $am_compiler_list; do
13073 # Setup a source with many dependencies, because some compilers
13074 # like to wrap large dependency lists on column 80 (with \), and
13075 # we should not choose a depcomp mode which is confused by this.
13076 #
13077 # We need to recreate these files for each test, as the compiler may
13078 # overwrite some of them when testing with obscure command lines.
13079 # This happens at least with the AIX C compiler.
13080 : > sub/conftest.c
13081 for i in 1 2 3 4 5 6; do
13082 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13083 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13084 # Solaris 10 /bin/sh.
13085 echo '/* dummy */' > sub/conftst$i.h
13086 done
13087 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13088
13089 # We check with '-c' and '-o' for the sake of the "dashmstdout"
13090 # mode. It turns out that the SunPro C++ compiler does not properly
13091 # handle '-M -o', and we need to detect this. Also, some Intel
13092 # versions had trouble with output in subdirs.
13093 am__obj=sub/conftest.${OBJEXT-o}
13094 am__minus_obj="-o $am__obj"
13095 case $depmode in
13096 gcc)
13097 # This depmode causes a compiler race in universal mode.
13098 test "$am__universal" = false || continue
13099 ;;
13100 nosideeffect)
13101 # After this tag, mechanisms are not by side-effect, so they'll
13102 # only be used when explicitly requested.
13103 if test "x$enable_dependency_tracking" = xyes; then
13104 continue
13105 else
13106 break
13107 fi
13108 ;;
13109 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13110 # This compiler won't grok '-c -o', but also, the minuso test has
13111 # not run yet. These depmodes are late enough in the game, and
13112 # so weak that their functioning should not be impacted.
13113 am__obj=conftest.${OBJEXT-o}
13114 am__minus_obj=
13115 ;;
13116 none) break ;;
13117 esac
13118 if depmode=$depmode \
13119 source=sub/conftest.c object=$am__obj \
13120 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13121 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13122 >/dev/null 2>conftest.err &&
13123 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13124 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13125 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13126 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13127 # icc doesn't choke on unknown options, it will just issue warnings
13128 # or remarks (even with -Werror). So we grep stderr for any message
13129 # that says an option was ignored or not supported.
13130 # When given -MP, icc 7.0 and 7.1 complain thusly:
13131 # icc: Command line warning: ignoring option '-M'; no argument required
13132 # The diagnosis changed in icc 8.0:
13133 # icc: Command line remark: option '-MP' not supported
13134 if (grep 'ignoring option' conftest.err ||
13135 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13136 am_cv_CC_dependencies_compiler_type=$depmode
13137 break
13138 fi
13139 fi
13140 done
13141
13142 cd ..
13143 rm -rf conftest.dir
13144 else
13145 am_cv_CC_dependencies_compiler_type=none
13146 fi
13147
13148 fi
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13150 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13151 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13152
13153 if
13154 test "x$enable_dependency_tracking" != xno \
13155 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13156 am__fastdepCC_TRUE=
13157 am__fastdepCC_FALSE='#'
13158 else
13159 am__fastdepCC_TRUE='#'
13160 am__fastdepCC_FALSE=
13161 fi
13162
13163
13164
13165 # POSIX will say in a future version that running "rm -f" with no argument
13166 # is OK; and we want to be able to make that assumption in our Makefile
13167 # recipes. So use an aggressive probe to check that the usage we want is
13168 # actually supported "in the wild" to an acceptable degree.
13169 # See automake bug#10828.
13170 # To make any issue more visible, cause the running configure to be aborted
13171 # by default if the 'rm' program in use doesn't match our expectations; the
13172 # user can still override this though.
13173 if rm -f && rm -fr && rm -rf; then : OK; else
13174 cat >&2 <<'END'
13175 Oops!
13176
13177 Your 'rm' program seems unable to run without file operands specified
13178 on the command line, even when the '-f' option is present. This is contrary
13179 to the behaviour of most rm programs out there, and not conforming with
13180 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
13181
13182 Please tell bug-automake@gnu.org about your system, including the value
13183 of your $PATH and any error possibly output before this message. This
13184 can help us improve future automake versions.
13185
13186 END
13187 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
13188 echo 'Configuration will proceed anyway, since you have set the' >&2
13189 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
13190 echo >&2
13191 else
13192 cat >&2 <<'END'
13193 Aborting the configuration process, to ensure you take notice of the issue.
13194
13195 You can download and install GNU coreutils to get an 'rm' implementation
13196 that behaves properly: <http://www.gnu.org/software/coreutils/>.
13197
13198 If you want to complete the configuration process using your problematic
13199 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
13200 to "yes", and re-run configure.
13201
13202 END
13203 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
13204 fi
13205 fi
13206
13207 # Check whether --enable-silent-rules was given.
13208 if test "${enable_silent_rules+set}" = set; then :
13209 enableval=$enable_silent_rules;
13210 fi
13211
13212 case $enable_silent_rules in # (((
13213 yes) AM_DEFAULT_VERBOSITY=0;;
13214 no) AM_DEFAULT_VERBOSITY=1;;
13215 *) AM_DEFAULT_VERBOSITY=0;;
13216 esac
13217 am_make=${MAKE-make}
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
13219 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
13220 if ${am_cv_make_support_nested_variables+:} false; then :
13221 $as_echo_n "(cached) " >&6
13222 else
13223 if $as_echo 'TRUE=$(BAR$(V))
13224 BAR0=false
13225 BAR1=true
13226 V=1
13227 am__doit:
13228 @$(TRUE)
13229 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
13230 am_cv_make_support_nested_variables=yes
13231 else
13232 am_cv_make_support_nested_variables=no
13233 fi
13234 fi
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
13236 $as_echo "$am_cv_make_support_nested_variables" >&6; }
13237 if test $am_cv_make_support_nested_variables = yes; then
13238 AM_V='$(V)'
13239 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
13240 else
13241 AM_V=$AM_DEFAULT_VERBOSITY
13242 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
13243 fi
13244 AM_BACKSLASH='\'
13245
13246
13247 # If a cpu ever has more than one simulator to choose from, use
13248 # --enable-sim=... to choose.
13249 # Check whether --enable-sim was given.
13250 if test "${enable_sim+set}" = set; then :
13251 enableval=$enable_sim; case "${enableval}" in
13252 yes | no) ;;
13253 *) as_fn_error $? "bad value ${enableval} given for --enable-sim option" "$LINENO" 5 ;;
13254 esac
13255 fi
13256
13257
13258 # Check whether --enable-example-sims was given.
13259 if test "${enable_example_sims+set}" = set; then :
13260 enableval=$enable_example_sims;
13261 fi
13262
13263
13264 # Check whether --enable-targets was given.
13265 if test "${enable_targets+set}" = set; then :
13266 enableval=$enable_targets; case "${enableval}" in
13267 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
13268 ;;
13269 no) enable_targets= ;;
13270 *) enable_targets=$enableval ;;
13271 esac
13272 fi
13273
13274
13275 SIM_PRIMARY_TARGET=
13276
13277
13278
13279
13280
13281 if test "${enable_sim}" != no; then
13282 sim_igen=no
13283 for targ in `echo $target $enable_targets | sed 's/,/ /g'`
13284 do
13285 case "${targ}" in
13286 all|aarch64*-*-*)
13287 if test "${targ}" = "${target}"; then
13288 SIM_PRIMARY_TARGET=aarch64
13289 fi
13290
13291
13292 subdirs="$subdirs aarch64"
13293
13294 ac_config_commands="$ac_config_commands depdir-aarch64"
13295
13296
13297
13298 ;;
13299 esac
13300
13301 case "${targ}" in
13302 all|arm*-*-*)
13303 if test "${targ}" = "${target}"; then
13304 SIM_PRIMARY_TARGET=arm
13305 fi
13306 subdirs="$subdirs arm"
13307
13308 ac_config_commands="$ac_config_commands depdir-arm"
13309
13310
13311
13312 ;;
13313 esac
13314
13315 case "${targ}" in
13316 all|avr*-*-*)
13317 if test "${targ}" = "${target}"; then
13318 SIM_PRIMARY_TARGET=avr
13319 fi
13320 subdirs="$subdirs avr"
13321
13322 ac_config_commands="$ac_config_commands depdir-avr"
13323
13324
13325
13326 ;;
13327 esac
13328
13329 case "${targ}" in
13330 all|bfin-*-*)
13331 if test "${targ}" = "${target}"; then
13332 SIM_PRIMARY_TARGET=bfin
13333 fi
13334 subdirs="$subdirs bfin"
13335
13336 ac_config_commands="$ac_config_commands depdir-bfin"
13337
13338
13339
13340 ;;
13341 esac
13342
13343 case "${targ}" in
13344 all|bpf-*-*)
13345 if test "${targ}" = "${target}"; then
13346 SIM_PRIMARY_TARGET=bpf
13347 fi
13348 subdirs="$subdirs bpf"
13349
13350 ac_config_commands="$ac_config_commands depdir-bpf"
13351
13352
13353
13354 ;;
13355 esac
13356
13357 case "${targ}" in
13358 all|cr16*-*-*)
13359 if test "${targ}" = "${target}"; then
13360 SIM_PRIMARY_TARGET=cr16
13361 fi
13362 subdirs="$subdirs cr16"
13363
13364 ac_config_commands="$ac_config_commands depdir-cr16"
13365
13366
13367
13368 ;;
13369 esac
13370
13371 case "${targ}" in
13372 all|cris-*-* | crisv32-*-*)
13373 if test "${targ}" = "${target}"; then
13374 SIM_PRIMARY_TARGET=cris
13375 fi
13376 subdirs="$subdirs cris"
13377
13378 ac_config_commands="$ac_config_commands depdir-cris"
13379
13380
13381
13382 ;;
13383 esac
13384
13385 case "${targ}" in
13386 all|d10v-*-*)
13387 if test "${targ}" = "${target}"; then
13388 SIM_PRIMARY_TARGET=d10v
13389 fi
13390 subdirs="$subdirs d10v"
13391
13392 ac_config_commands="$ac_config_commands depdir-d10v"
13393
13394
13395
13396 ;;
13397 esac
13398
13399 case "${targ}" in
13400 all|frv-*-*)
13401 if test "${targ}" = "${target}"; then
13402 SIM_PRIMARY_TARGET=frv
13403 fi
13404 subdirs="$subdirs frv"
13405
13406 ac_config_commands="$ac_config_commands depdir-frv"
13407
13408
13409
13410 ;;
13411 esac
13412
13413 case "${targ}" in
13414 all|h8300*-*-*)
13415 if test "${targ}" = "${target}"; then
13416 SIM_PRIMARY_TARGET=h8300
13417 fi
13418 subdirs="$subdirs h8300"
13419
13420 ac_config_commands="$ac_config_commands depdir-h8300"
13421
13422
13423
13424 ;;
13425 esac
13426
13427 case "${targ}" in
13428 all|iq2000-*-*)
13429 if test "${targ}" = "${target}"; then
13430 SIM_PRIMARY_TARGET=iq2000
13431 fi
13432 subdirs="$subdirs iq2000"
13433
13434 ac_config_commands="$ac_config_commands depdir-iq2000"
13435
13436
13437
13438 ;;
13439 esac
13440
13441 case "${targ}" in
13442 all|lm32-*-*)
13443 if test "${targ}" = "${target}"; then
13444 SIM_PRIMARY_TARGET=lm32
13445 fi
13446 subdirs="$subdirs lm32"
13447
13448 ac_config_commands="$ac_config_commands depdir-lm32"
13449
13450
13451
13452 ;;
13453 esac
13454
13455 case "${targ}" in
13456 all|m32c-*-*)
13457 if test "${targ}" = "${target}"; then
13458 SIM_PRIMARY_TARGET=m32c
13459 fi
13460 subdirs="$subdirs m32c"
13461
13462 ac_config_commands="$ac_config_commands depdir-m32c"
13463
13464
13465
13466 ;;
13467 esac
13468
13469 case "${targ}" in
13470 all|m32r-*-*)
13471 if test "${targ}" = "${target}"; then
13472 SIM_PRIMARY_TARGET=m32r
13473 fi
13474 subdirs="$subdirs m32r"
13475
13476 ac_config_commands="$ac_config_commands depdir-m32r"
13477
13478
13479
13480 ;;
13481 esac
13482
13483 case "${targ}" in
13484 all|m68hc11-*-*|m6811-*-*)
13485 if test "${targ}" = "${target}"; then
13486 SIM_PRIMARY_TARGET=m68hc11
13487 fi
13488 subdirs="$subdirs m68hc11"
13489
13490 ac_config_commands="$ac_config_commands depdir-m68hc11"
13491
13492
13493
13494 ;;
13495 esac
13496
13497 case "${targ}" in
13498 all|mcore-*-*)
13499 if test "${targ}" = "${target}"; then
13500 SIM_PRIMARY_TARGET=mcore
13501 fi
13502 subdirs="$subdirs mcore"
13503
13504 ac_config_commands="$ac_config_commands depdir-mcore"
13505
13506
13507
13508 ;;
13509 esac
13510
13511 case "${targ}" in
13512 all|microblaze-*-*)
13513 if test "${targ}" = "${target}"; then
13514 SIM_PRIMARY_TARGET=microblaze
13515 fi
13516 subdirs="$subdirs microblaze"
13517
13518 ac_config_commands="$ac_config_commands depdir-microblaze"
13519
13520
13521
13522 ;;
13523 esac
13524
13525 case "${targ}" in
13526 all|mips*-*-*)
13527 if test "${targ}" = "${target}"; then
13528 SIM_PRIMARY_TARGET=mips
13529 fi
13530 subdirs="$subdirs mips"
13531
13532 ac_config_commands="$ac_config_commands depdir-mips"
13533
13534
13535 sim_igen=yes
13536 ;;
13537 esac
13538
13539 case "${targ}" in
13540 all|mn10300*-*-*)
13541 if test "${targ}" = "${target}"; then
13542 SIM_PRIMARY_TARGET=mn10300
13543 fi
13544 subdirs="$subdirs mn10300"
13545
13546 ac_config_commands="$ac_config_commands depdir-mn10300"
13547
13548
13549 sim_igen=yes
13550 ;;
13551 esac
13552
13553 case "${targ}" in
13554 all|moxie-*-*)
13555 if test "${targ}" = "${target}"; then
13556 SIM_PRIMARY_TARGET=moxie
13557 fi
13558 subdirs="$subdirs moxie"
13559
13560 ac_config_commands="$ac_config_commands depdir-moxie"
13561
13562
13563
13564 ;;
13565 esac
13566
13567 case "${targ}" in
13568 all|msp430*-*-*)
13569 if test "${targ}" = "${target}"; then
13570 SIM_PRIMARY_TARGET=msp430
13571 fi
13572 subdirs="$subdirs msp430"
13573
13574 ac_config_commands="$ac_config_commands depdir-msp430"
13575
13576
13577
13578 ;;
13579 esac
13580
13581 case "${targ}" in
13582 all|or1k-*-* | or1knd-*-*)
13583 if test "${targ}" = "${target}"; then
13584 SIM_PRIMARY_TARGET=or1k
13585 fi
13586 subdirs="$subdirs or1k"
13587
13588 ac_config_commands="$ac_config_commands depdir-or1k"
13589
13590
13591
13592 ;;
13593 esac
13594
13595 case "${targ}" in
13596 all|pru*-*-*)
13597 if test "${targ}" = "${target}"; then
13598 SIM_PRIMARY_TARGET=pru
13599 fi
13600 subdirs="$subdirs pru"
13601
13602 ac_config_commands="$ac_config_commands depdir-pru"
13603
13604
13605
13606 ;;
13607 esac
13608
13609 case "${targ}" in
13610 all|riscv*-*-*)
13611 if test "${targ}" = "${target}"; then
13612 SIM_PRIMARY_TARGET=riscv
13613 fi
13614 subdirs="$subdirs riscv"
13615
13616 ac_config_commands="$ac_config_commands depdir-riscv"
13617
13618
13619
13620 ;;
13621 esac
13622
13623 case "${targ}" in
13624 all|rl78-*-*)
13625 if test "${targ}" = "${target}"; then
13626 SIM_PRIMARY_TARGET=rl78
13627 fi
13628 subdirs="$subdirs rl78"
13629
13630 ac_config_commands="$ac_config_commands depdir-rl78"
13631
13632
13633
13634 ;;
13635 esac
13636
13637 case "${targ}" in
13638 all|rx-*-*)
13639 if test "${targ}" = "${target}"; then
13640 SIM_PRIMARY_TARGET=rx
13641 fi
13642 subdirs="$subdirs rx"
13643
13644 ac_config_commands="$ac_config_commands depdir-rx"
13645
13646
13647
13648 ;;
13649 esac
13650
13651 case "${targ}" in
13652 all|sh*-*-*)
13653 if test "${targ}" = "${target}"; then
13654 SIM_PRIMARY_TARGET=sh
13655 fi
13656 subdirs="$subdirs sh"
13657
13658 ac_config_commands="$ac_config_commands depdir-sh"
13659
13660
13661
13662 ;;
13663 esac
13664
13665 case "${targ}" in
13666 all|sparc-*-rtems*|sparc-*-elf*)
13667 if test "${targ}" = "${target}"; then
13668 SIM_PRIMARY_TARGET=erc32
13669 fi
13670 subdirs="$subdirs erc32"
13671
13672 ac_config_commands="$ac_config_commands depdir-erc32"
13673
13674
13675
13676 ;;
13677 esac
13678
13679 case "${targ}" in
13680 all|powerpc*-*-*)
13681 if test "${targ}" = "${target}"; then
13682 SIM_PRIMARY_TARGET=ppc
13683 fi
13684 subdirs="$subdirs ppc"
13685
13686 ac_config_commands="$ac_config_commands depdir-ppc"
13687
13688
13689
13690 ;;
13691 esac
13692
13693 case "${targ}" in
13694 all|ft32-*-*)
13695 if test "${targ}" = "${target}"; then
13696 SIM_PRIMARY_TARGET=ft32
13697 fi
13698 subdirs="$subdirs ft32"
13699
13700 ac_config_commands="$ac_config_commands depdir-ft32"
13701
13702
13703
13704 ;;
13705 esac
13706
13707 case "${targ}" in
13708 all|v850*-*-*)
13709 if test "${targ}" = "${target}"; then
13710 SIM_PRIMARY_TARGET=v850
13711 fi
13712 subdirs="$subdirs v850"
13713
13714 ac_config_commands="$ac_config_commands depdir-v850"
13715
13716
13717 sim_igen=yes
13718 ;;
13719 esac
13720
13721 done
13722
13723 if test "x${enable_example_sims}" = xyes; then
13724 subdirs="$subdirs example-synacor"
13725
13726 ac_config_commands="$ac_config_commands depdir-example-synacor"
13727
13728
13729 fi
13730 fi
13731 if test "$sim_igen" = "yes"; then
13732 SIM_ENABLE_IGEN_TRUE=
13733 SIM_ENABLE_IGEN_FALSE='#'
13734 else
13735 SIM_ENABLE_IGEN_TRUE='#'
13736 SIM_ENABLE_IGEN_FALSE=
13737 fi
13738
13739
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim alignment" >&5
13741 $as_echo_n "checking whether to force sim alignment... " >&6; }
13742 sim_alignment=
13743 # Check whether --enable-sim-alignment was given.
13744 if test "${enable_sim_alignment+set}" = set; then :
13745 enableval=$enable_sim_alignment; case "${enableval}" in
13746 yes | strict | STRICT) sim_alignment="STRICT_ALIGNMENT";;
13747 no | nonstrict | NONSTRICT) sim_alignment="NONSTRICT_ALIGNMENT";;
13748 forced | FORCED) sim_alignment="FORCED_ALIGNMENT";;
13749 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5;;
13750 esac
13751 fi
13752
13753 cat >>confdefs.h <<_ACEOF
13754 #define WITH_ALIGNMENT ${sim_alignment:-0}
13755 _ACEOF
13756
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
13758 $as_echo "${sim_alignment:-no}" >&6; }
13759
13760
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5
13762 $as_echo_n "checking whether to enable sim asserts... " >&6; }
13763 sim_assert="1"
13764 # Check whether --enable-sim-assert was given.
13765 if test "${enable_sim_assert+set}" = set; then :
13766 enableval=$enable_sim_assert; case "${enableval}" in
13767 yes) sim_assert="1";;
13768 no) sim_assert="0";;
13769 *) as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;;
13770 esac
13771 fi
13772
13773 cat >>confdefs.h <<_ACEOF
13774 #define WITH_ASSERT $sim_assert
13775 _ACEOF
13776
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5
13778 $as_echo "$sim_assert" >&6; }
13779
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5
13781 $as_echo_n "checking for sim debug setting... " >&6; }
13782 sim_debug="0"
13783 # Check whether --enable-sim-debug was given.
13784 if test "${enable_sim_debug+set}" = set; then :
13785 enableval=$enable_sim_debug; case "${enableval}" in
13786 yes) sim_debug="7";;
13787 no) sim_debug="0";;
13788 *) sim_debug="($enableval)";;
13789 esac
13790 fi
13791 if test "$sim_debug" != "0"; then
13792
13793 cat >>confdefs.h <<_ACEOF
13794 #define DEBUG $sim_debug
13795 _ACEOF
13796
13797 fi
13798
13799 cat >>confdefs.h <<_ACEOF
13800 #define WITH_DEBUG $sim_debug
13801 _ACEOF
13802
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5
13804 $as_echo "$sim_debug" >&6; }
13805
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim endianness" >&5
13807 $as_echo_n "checking whether to force sim endianness... " >&6; }
13808 sim_endian=
13809 # Check whether --enable-sim-endian was given.
13810 if test "${enable_sim_endian+set}" = set; then :
13811 enableval=$enable_sim_endian; case "${enableval}" in
13812 b*|B*) sim_endian="BFD_ENDIAN_BIG";;
13813 l*|L*) sim_endian="BFD_ENDIAN_LITTLE";;
13814 yes | no) ;;
13815 *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5;;
13816 esac
13817 fi
13818
13819 cat >>confdefs.h <<_ACEOF
13820 #define WITH_TARGET_BYTE_ORDER ${sim_endian:-BFD_ENDIAN_UNKNOWN}
13821 _ACEOF
13822
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
13824 $as_echo "${sim_alignment:-no}" >&6; }
13825
13826
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5
13828 $as_echo_n "checking default sim environment setting... " >&6; }
13829 sim_environment="ALL_ENVIRONMENT"
13830 # Check whether --enable-sim-environment was given.
13831 if test "${enable_sim_environment+set}" = set; then :
13832 enableval=$enable_sim_environment; case "${enableval}" in
13833 all | ALL) sim_environment="ALL_ENVIRONMENT";;
13834 user | USER) sim_environment="USER_ENVIRONMENT";;
13835 virtual | VIRTUAL) sim_environment="VIRTUAL_ENVIRONMENT";;
13836 operating | OPERATING) sim_environment="OPERATING_ENVIRONMENT";;
13837 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;;
13838 esac
13839 fi
13840
13841 cat >>confdefs.h <<_ACEOF
13842 #define WITH_ENVIRONMENT $sim_environment
13843 _ACEOF
13844
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5
13846 $as_echo "$sim_environment" >&6; }
13847
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5
13849 $as_echo_n "checking for sim profile settings... " >&6; }
13850 profile="1"
13851 sim_profile="-1"
13852 # Check whether --enable-sim-profile was given.
13853 if test "${enable_sim_profile+set}" = set; then :
13854 enableval=$enable_sim_profile; case "${enableval}" in
13855 yes) profile="1" sim_profile="-1";;
13856 no) profile="0" sim_profile="0";;
13857 [-0-9]*)
13858 profile="(${enableval})" sim_profile="(${enableval})";;
13859 [a-z]*)
13860 profile="1"
13861 sim_profile=""
13862 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
13863 if test x"$sim_profile" = x; then
13864 sim_profile="(PROFILE_$x"
13865 else
13866 sim_profile="${sim_profile}|PROFILE_$x"
13867 fi
13868 done
13869 sim_profile="$sim_profile)" ;;
13870 esac
13871 fi
13872
13873 cat >>confdefs.h <<_ACEOF
13874 #define PROFILE $profile
13875 _ACEOF
13876
13877
13878 cat >>confdefs.h <<_ACEOF
13879 #define WITH_PROFILE $sim_profile
13880 _ACEOF
13881
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5
13883 $as_echo "$sim_profile" >&6; }
13884
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
13886 $as_echo_n "checking for sim stdio debug behavior... " >&6; }
13887 sim_stdio="0"
13888 # Check whether --enable-sim-stdio was given.
13889 if test "${enable_sim_stdio+set}" = set; then :
13890 enableval=$enable_sim_stdio; case "${enableval}" in
13891 yes) sim_stdio="DO_USE_STDIO";;
13892 no) sim_stdio="DONT_USE_STDIO";;
13893 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
13894 esac
13895 fi
13896
13897 cat >>confdefs.h <<_ACEOF
13898 #define WITH_STDIO $sim_stdio
13899 _ACEOF
13900
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
13902 $as_echo "$sim_stdio" >&6; }
13903
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
13905 $as_echo_n "checking for sim trace settings... " >&6; }
13906 sim_trace="~TRACE_debug"
13907 # Check whether --enable-sim-trace was given.
13908 if test "${enable_sim_trace+set}" = set; then :
13909 enableval=$enable_sim_trace; case "${enableval}" in
13910 yes) sim_trace="-1";;
13911 no) sim_trace="0";;
13912 [-0-9]*)
13913 sim_trace="'(${enableval})'";;
13914 [[:lower:]]*)
13915 sim_trace=""
13916 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
13917 if test x"$sim_trace" = x; then
13918 sim_trace="(TRACE_$x"
13919 else
13920 sim_trace="${sim_trace}|TRACE_$x"
13921 fi
13922 done
13923 sim_trace="$sim_trace)" ;;
13924 esac
13925 fi
13926
13927 cat >>confdefs.h <<_ACEOF
13928 #define WITH_TRACE $sim_trace
13929 _ACEOF
13930
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
13932 $as_echo "$sim_trace" >&6; }
13933
13934
13935 # Check whether --enable-werror was given.
13936 if test "${enable_werror+set}" = set; then :
13937 enableval=$enable_werror; case "${enableval}" in
13938 yes | y) ERROR_ON_WARNING="yes" ;;
13939 no | n) ERROR_ON_WARNING="no" ;;
13940 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
13941 esac
13942 fi
13943
13944
13945 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
13946 ERROR_ON_WARNING=yes
13947 fi
13948
13949 WERROR_CFLAGS=""
13950 if test "${ERROR_ON_WARNING}" = yes ; then
13951 WERROR_CFLAGS="-Werror"
13952 fi
13953
13954 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
13955 -Wpointer-sign \
13956 -Wno-unused -Wunused-value -Wunused-function \
13957 -Wno-switch -Wno-char-subscripts -Wmissing-prototypes
13958 -Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
13959 -Wold-style-declaration -Wold-style-definition"
13960
13961 # Enable -Wno-format by default when using gcc on mingw since many
13962 # GCC versions complain about %I64.
13963 case "${host}" in
13964 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
13965 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
13966 esac
13967
13968 # Check whether --enable-build-warnings was given.
13969 if test "${enable_build_warnings+set}" = set; then :
13970 enableval=$enable_build_warnings; case "${enableval}" in
13971 yes) ;;
13972 no) build_warnings="-w";;
13973 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
13974 build_warnings="${build_warnings} ${t}";;
13975 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
13976 build_warnings="${t} ${build_warnings}";;
13977 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
13978 esac
13979 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
13980 echo "Setting compiler warning flags = $build_warnings" 6>&1
13981 fi
13982 fi
13983 # Check whether --enable-sim-build-warnings was given.
13984 if test "${enable_sim_build_warnings+set}" = set; then :
13985 enableval=$enable_sim_build_warnings; case "${enableval}" in
13986 yes) ;;
13987 no) build_warnings="-w";;
13988 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
13989 build_warnings="${build_warnings} ${t}";;
13990 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
13991 build_warnings="${t} ${build_warnings}";;
13992 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
13993 esac
13994 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
13995 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
13996 fi
13997 fi
13998 WARN_CFLAGS=""
13999 if test "x${build_warnings}" != x -a "x$GCC" = xyes
14000 then
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
14002 $as_echo_n "checking compiler warning flags... " >&6; }
14003 # Separate out the -Werror flag as some files just cannot be
14004 # compiled with it enabled.
14005 for w in ${build_warnings}; do
14006 case $w in
14007 -Werr*) WERROR_CFLAGS=-Werror ;;
14008 *) # Check that GCC accepts it
14009 saved_CFLAGS="$CFLAGS"
14010 CFLAGS="$CFLAGS -Werror $w"
14011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14012 /* end confdefs.h. */
14013
14014 int
14015 main ()
14016 {
14017
14018 ;
14019 return 0;
14020 }
14021 _ACEOF
14022 if ac_fn_c_try_compile "$LINENO"; then :
14023 WARN_CFLAGS="${WARN_CFLAGS} $w"
14024 fi
14025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14026 CFLAGS="$saved_CFLAGS"
14027 esac
14028 done
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
14030 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
14031 fi
14032
14033
14034 ac_config_files="$ac_config_files arch-subdir.mk Makefile"
14035
14036 cat >confcache <<\_ACEOF
14037 # This file is a shell script that caches the results of configure
14038 # tests run on this system so they can be shared between configure
14039 # scripts and configure runs, see configure's option --config-cache.
14040 # It is not useful on other systems. If it contains results you don't
14041 # want to keep, you may remove or edit it.
14042 #
14043 # config.status only pays attention to the cache file if you give it
14044 # the --recheck option to rerun configure.
14045 #
14046 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14047 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14048 # following values.
14049
14050 _ACEOF
14051
14052 # The following way of writing the cache mishandles newlines in values,
14053 # but we know of no workaround that is simple, portable, and efficient.
14054 # So, we kill variables containing newlines.
14055 # Ultrix sh set writes to stderr and can't be redirected directly,
14056 # and sets the high bit in the cache file unless we assign to the vars.
14057 (
14058 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14059 eval ac_val=\$$ac_var
14060 case $ac_val in #(
14061 *${as_nl}*)
14062 case $ac_var in #(
14063 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14064 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14065 esac
14066 case $ac_var in #(
14067 _ | IFS | as_nl) ;; #(
14068 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14069 *) { eval $ac_var=; unset $ac_var;} ;;
14070 esac ;;
14071 esac
14072 done
14073
14074 (set) 2>&1 |
14075 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14076 *${as_nl}ac_space=\ *)
14077 # `set' does not quote correctly, so add quotes: double-quote
14078 # substitution turns \\\\ into \\, and sed turns \\ into \.
14079 sed -n \
14080 "s/'/'\\\\''/g;
14081 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14082 ;; #(
14083 *)
14084 # `set' quotes correctly as required by POSIX, so do not add quotes.
14085 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14086 ;;
14087 esac |
14088 sort
14089 ) |
14090 sed '
14091 /^ac_cv_env_/b end
14092 t clear
14093 :clear
14094 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14095 t end
14096 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14097 :end' >>confcache
14098 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14099 if test -w "$cache_file"; then
14100 if test "x$cache_file" != "x/dev/null"; then
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14102 $as_echo "$as_me: updating cache $cache_file" >&6;}
14103 if test ! -f "$cache_file" || test -h "$cache_file"; then
14104 cat confcache >"$cache_file"
14105 else
14106 case $cache_file in #(
14107 */* | ?:*)
14108 mv -f confcache "$cache_file"$$ &&
14109 mv -f "$cache_file"$$ "$cache_file" ;; #(
14110 *)
14111 mv -f confcache "$cache_file" ;;
14112 esac
14113 fi
14114 fi
14115 else
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14117 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14118 fi
14119 fi
14120 rm -f confcache
14121
14122 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14123 # Let make expand exec_prefix.
14124 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14125
14126 DEFS=-DHAVE_CONFIG_H
14127
14128 ac_libobjs=
14129 ac_ltlibobjs=
14130 U=
14131 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14132 # 1. Remove the extension, and $U if already installed.
14133 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14134 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14135 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14136 # will be set to the directory where LIBOBJS objects are built.
14137 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14138 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14139 done
14140 LIBOBJS=$ac_libobjs
14141
14142 LTLIBOBJS=$ac_ltlibobjs
14143
14144
14145
14146 if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
14147 as_fn_error $? "conditional \"PLUGINS\" was never defined.
14148 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14149 fi
14150 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14151 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14152 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14153 fi
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14155 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14156 if test -n "$am_sleep_pid"; then
14157 # Hide warnings about reused PIDs.
14158 wait $am_sleep_pid 2>/dev/null
14159 fi
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14161 $as_echo "done" >&6; }
14162 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14163 as_fn_error $? "conditional \"AMDEP\" was never defined.
14164 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14165 fi
14166 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14167 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14168 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14169 fi
14170 if test -n "$EXEEXT"; then
14171 am__EXEEXT_TRUE=
14172 am__EXEEXT_FALSE='#'
14173 else
14174 am__EXEEXT_TRUE='#'
14175 am__EXEEXT_FALSE=
14176 fi
14177
14178 if test -z "${SIM_ENABLE_IGEN_TRUE}" && test -z "${SIM_ENABLE_IGEN_FALSE}"; then
14179 as_fn_error $? "conditional \"SIM_ENABLE_IGEN\" was never defined.
14180 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14181 fi
14182
14183 : "${CONFIG_STATUS=./config.status}"
14184 ac_write_fail=0
14185 ac_clean_files_save=$ac_clean_files
14186 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14188 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14189 as_write_fail=0
14190 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14191 #! $SHELL
14192 # Generated by $as_me.
14193 # Run this file to recreate the current configuration.
14194 # Compiler output produced by configure, useful for debugging
14195 # configure, is in config.log if it exists.
14196
14197 debug=false
14198 ac_cs_recheck=false
14199 ac_cs_silent=false
14200
14201 SHELL=\${CONFIG_SHELL-$SHELL}
14202 export SHELL
14203 _ASEOF
14204 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14205 ## -------------------- ##
14206 ## M4sh Initialization. ##
14207 ## -------------------- ##
14208
14209 # Be more Bourne compatible
14210 DUALCASE=1; export DUALCASE # for MKS sh
14211 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14212 emulate sh
14213 NULLCMD=:
14214 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14215 # is contrary to our usage. Disable this feature.
14216 alias -g '${1+"$@"}'='"$@"'
14217 setopt NO_GLOB_SUBST
14218 else
14219 case `(set -o) 2>/dev/null` in #(
14220 *posix*) :
14221 set -o posix ;; #(
14222 *) :
14223 ;;
14224 esac
14225 fi
14226
14227
14228 as_nl='
14229 '
14230 export as_nl
14231 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14232 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14233 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14234 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14235 # Prefer a ksh shell builtin over an external printf program on Solaris,
14236 # but without wasting forks for bash or zsh.
14237 if test -z "$BASH_VERSION$ZSH_VERSION" \
14238 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14239 as_echo='print -r --'
14240 as_echo_n='print -rn --'
14241 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14242 as_echo='printf %s\n'
14243 as_echo_n='printf %s'
14244 else
14245 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14246 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14247 as_echo_n='/usr/ucb/echo -n'
14248 else
14249 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14250 as_echo_n_body='eval
14251 arg=$1;
14252 case $arg in #(
14253 *"$as_nl"*)
14254 expr "X$arg" : "X\\(.*\\)$as_nl";
14255 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14256 esac;
14257 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14258 '
14259 export as_echo_n_body
14260 as_echo_n='sh -c $as_echo_n_body as_echo'
14261 fi
14262 export as_echo_body
14263 as_echo='sh -c $as_echo_body as_echo'
14264 fi
14265
14266 # The user is always right.
14267 if test "${PATH_SEPARATOR+set}" != set; then
14268 PATH_SEPARATOR=:
14269 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14270 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14271 PATH_SEPARATOR=';'
14272 }
14273 fi
14274
14275
14276 # IFS
14277 # We need space, tab and new line, in precisely that order. Quoting is
14278 # there to prevent editors from complaining about space-tab.
14279 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14280 # splitting by setting IFS to empty value.)
14281 IFS=" "" $as_nl"
14282
14283 # Find who we are. Look in the path if we contain no directory separator.
14284 as_myself=
14285 case $0 in #((
14286 *[\\/]* ) as_myself=$0 ;;
14287 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14288 for as_dir in $PATH
14289 do
14290 IFS=$as_save_IFS
14291 test -z "$as_dir" && as_dir=.
14292 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14293 done
14294 IFS=$as_save_IFS
14295
14296 ;;
14297 esac
14298 # We did not find ourselves, most probably we were run as `sh COMMAND'
14299 # in which case we are not to be found in the path.
14300 if test "x$as_myself" = x; then
14301 as_myself=$0
14302 fi
14303 if test ! -f "$as_myself"; then
14304 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14305 exit 1
14306 fi
14307
14308 # Unset variables that we do not need and which cause bugs (e.g. in
14309 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14310 # suppresses any "Segmentation fault" message there. '((' could
14311 # trigger a bug in pdksh 5.2.14.
14312 for as_var in BASH_ENV ENV MAIL MAILPATH
14313 do eval test x\${$as_var+set} = xset \
14314 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14315 done
14316 PS1='$ '
14317 PS2='> '
14318 PS4='+ '
14319
14320 # NLS nuisances.
14321 LC_ALL=C
14322 export LC_ALL
14323 LANGUAGE=C
14324 export LANGUAGE
14325
14326 # CDPATH.
14327 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14328
14329
14330 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14331 # ----------------------------------------
14332 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14333 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14334 # script with STATUS, using 1 if that was 0.
14335 as_fn_error ()
14336 {
14337 as_status=$1; test $as_status -eq 0 && as_status=1
14338 if test "$4"; then
14339 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14340 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14341 fi
14342 $as_echo "$as_me: error: $2" >&2
14343 as_fn_exit $as_status
14344 } # as_fn_error
14345
14346
14347 # as_fn_set_status STATUS
14348 # -----------------------
14349 # Set $? to STATUS, without forking.
14350 as_fn_set_status ()
14351 {
14352 return $1
14353 } # as_fn_set_status
14354
14355 # as_fn_exit STATUS
14356 # -----------------
14357 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14358 as_fn_exit ()
14359 {
14360 set +e
14361 as_fn_set_status $1
14362 exit $1
14363 } # as_fn_exit
14364
14365 # as_fn_unset VAR
14366 # ---------------
14367 # Portably unset VAR.
14368 as_fn_unset ()
14369 {
14370 { eval $1=; unset $1;}
14371 }
14372 as_unset=as_fn_unset
14373 # as_fn_append VAR VALUE
14374 # ----------------------
14375 # Append the text in VALUE to the end of the definition contained in VAR. Take
14376 # advantage of any shell optimizations that allow amortized linear growth over
14377 # repeated appends, instead of the typical quadratic growth present in naive
14378 # implementations.
14379 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14380 eval 'as_fn_append ()
14381 {
14382 eval $1+=\$2
14383 }'
14384 else
14385 as_fn_append ()
14386 {
14387 eval $1=\$$1\$2
14388 }
14389 fi # as_fn_append
14390
14391 # as_fn_arith ARG...
14392 # ------------------
14393 # Perform arithmetic evaluation on the ARGs, and store the result in the
14394 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14395 # must be portable across $(()) and expr.
14396 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14397 eval 'as_fn_arith ()
14398 {
14399 as_val=$(( $* ))
14400 }'
14401 else
14402 as_fn_arith ()
14403 {
14404 as_val=`expr "$@" || test $? -eq 1`
14405 }
14406 fi # as_fn_arith
14407
14408
14409 if expr a : '\(a\)' >/dev/null 2>&1 &&
14410 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14411 as_expr=expr
14412 else
14413 as_expr=false
14414 fi
14415
14416 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14417 as_basename=basename
14418 else
14419 as_basename=false
14420 fi
14421
14422 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14423 as_dirname=dirname
14424 else
14425 as_dirname=false
14426 fi
14427
14428 as_me=`$as_basename -- "$0" ||
14429 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14430 X"$0" : 'X\(//\)$' \| \
14431 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14432 $as_echo X/"$0" |
14433 sed '/^.*\/\([^/][^/]*\)\/*$/{
14434 s//\1/
14435 q
14436 }
14437 /^X\/\(\/\/\)$/{
14438 s//\1/
14439 q
14440 }
14441 /^X\/\(\/\).*/{
14442 s//\1/
14443 q
14444 }
14445 s/.*/./; q'`
14446
14447 # Avoid depending upon Character Ranges.
14448 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14449 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14450 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14451 as_cr_digits='0123456789'
14452 as_cr_alnum=$as_cr_Letters$as_cr_digits
14453
14454 ECHO_C= ECHO_N= ECHO_T=
14455 case `echo -n x` in #(((((
14456 -n*)
14457 case `echo 'xy\c'` in
14458 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14459 xy) ECHO_C='\c';;
14460 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14461 ECHO_T=' ';;
14462 esac;;
14463 *)
14464 ECHO_N='-n';;
14465 esac
14466
14467 rm -f conf$$ conf$$.exe conf$$.file
14468 if test -d conf$$.dir; then
14469 rm -f conf$$.dir/conf$$.file
14470 else
14471 rm -f conf$$.dir
14472 mkdir conf$$.dir 2>/dev/null
14473 fi
14474 if (echo >conf$$.file) 2>/dev/null; then
14475 if ln -s conf$$.file conf$$ 2>/dev/null; then
14476 as_ln_s='ln -s'
14477 # ... but there are two gotchas:
14478 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14479 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14480 # In both cases, we have to default to `cp -pR'.
14481 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14482 as_ln_s='cp -pR'
14483 elif ln conf$$.file conf$$ 2>/dev/null; then
14484 as_ln_s=ln
14485 else
14486 as_ln_s='cp -pR'
14487 fi
14488 else
14489 as_ln_s='cp -pR'
14490 fi
14491 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14492 rmdir conf$$.dir 2>/dev/null
14493
14494
14495 # as_fn_mkdir_p
14496 # -------------
14497 # Create "$as_dir" as a directory, including parents if necessary.
14498 as_fn_mkdir_p ()
14499 {
14500
14501 case $as_dir in #(
14502 -*) as_dir=./$as_dir;;
14503 esac
14504 test -d "$as_dir" || eval $as_mkdir_p || {
14505 as_dirs=
14506 while :; do
14507 case $as_dir in #(
14508 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14509 *) as_qdir=$as_dir;;
14510 esac
14511 as_dirs="'$as_qdir' $as_dirs"
14512 as_dir=`$as_dirname -- "$as_dir" ||
14513 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14514 X"$as_dir" : 'X\(//\)[^/]' \| \
14515 X"$as_dir" : 'X\(//\)$' \| \
14516 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14517 $as_echo X"$as_dir" |
14518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14519 s//\1/
14520 q
14521 }
14522 /^X\(\/\/\)[^/].*/{
14523 s//\1/
14524 q
14525 }
14526 /^X\(\/\/\)$/{
14527 s//\1/
14528 q
14529 }
14530 /^X\(\/\).*/{
14531 s//\1/
14532 q
14533 }
14534 s/.*/./; q'`
14535 test -d "$as_dir" && break
14536 done
14537 test -z "$as_dirs" || eval "mkdir $as_dirs"
14538 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14539
14540
14541 } # as_fn_mkdir_p
14542 if mkdir -p . 2>/dev/null; then
14543 as_mkdir_p='mkdir -p "$as_dir"'
14544 else
14545 test -d ./-p && rmdir ./-p
14546 as_mkdir_p=false
14547 fi
14548
14549
14550 # as_fn_executable_p FILE
14551 # -----------------------
14552 # Test if FILE is an executable regular file.
14553 as_fn_executable_p ()
14554 {
14555 test -f "$1" && test -x "$1"
14556 } # as_fn_executable_p
14557 as_test_x='test -x'
14558 as_executable_p=as_fn_executable_p
14559
14560 # Sed expression to map a string onto a valid CPP name.
14561 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14562
14563 # Sed expression to map a string onto a valid variable name.
14564 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14565
14566
14567 exec 6>&1
14568 ## ----------------------------------- ##
14569 ## Main body of $CONFIG_STATUS script. ##
14570 ## ----------------------------------- ##
14571 _ASEOF
14572 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14573
14574 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14575 # Save the log message, to keep $0 and so on meaningful, and to
14576 # report actual input values of CONFIG_FILES etc. instead of their
14577 # values after options handling.
14578 ac_log="
14579 This file was extended by sim $as_me 0, which was
14580 generated by GNU Autoconf 2.69. Invocation command line was
14581
14582 CONFIG_FILES = $CONFIG_FILES
14583 CONFIG_HEADERS = $CONFIG_HEADERS
14584 CONFIG_LINKS = $CONFIG_LINKS
14585 CONFIG_COMMANDS = $CONFIG_COMMANDS
14586 $ $0 $@
14587
14588 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14589 "
14590
14591 _ACEOF
14592
14593 case $ac_config_files in *"
14594 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14595 esac
14596
14597 case $ac_config_headers in *"
14598 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14599 esac
14600
14601
14602 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14603 # Files that config.status was made for.
14604 config_files="$ac_config_files"
14605 config_headers="$ac_config_headers"
14606 config_commands="$ac_config_commands"
14607
14608 _ACEOF
14609
14610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14611 ac_cs_usage="\
14612 \`$as_me' instantiates files and other configuration actions
14613 from templates according to the current configuration. Unless the files
14614 and actions are specified as TAGs, all are instantiated by default.
14615
14616 Usage: $0 [OPTION]... [TAG]...
14617
14618 -h, --help print this help, then exit
14619 -V, --version print version number and configuration settings, then exit
14620 --config print configuration, then exit
14621 -q, --quiet, --silent
14622 do not print progress messages
14623 -d, --debug don't remove temporary files
14624 --recheck update $as_me by reconfiguring in the same conditions
14625 --file=FILE[:TEMPLATE]
14626 instantiate the configuration file FILE
14627 --header=FILE[:TEMPLATE]
14628 instantiate the configuration header FILE
14629
14630 Configuration files:
14631 $config_files
14632
14633 Configuration headers:
14634 $config_headers
14635
14636 Configuration commands:
14637 $config_commands
14638
14639 Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
14640 sim home page: <https://sourceware.org/gdb/wiki/Sim/>."
14641
14642 _ACEOF
14643 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14644 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14645 ac_cs_version="\\
14646 sim config.status 0
14647 configured by $0, generated by GNU Autoconf 2.69,
14648 with options \\"\$ac_cs_config\\"
14649
14650 Copyright (C) 2012 Free Software Foundation, Inc.
14651 This config.status script is free software; the Free Software Foundation
14652 gives unlimited permission to copy, distribute and modify it."
14653
14654 ac_pwd='$ac_pwd'
14655 srcdir='$srcdir'
14656 INSTALL='$INSTALL'
14657 MKDIR_P='$MKDIR_P'
14658 AWK='$AWK'
14659 test -n "\$AWK" || AWK=awk
14660 _ACEOF
14661
14662 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14663 # The default lists apply if the user does not specify any file.
14664 ac_need_defaults=:
14665 while test $# != 0
14666 do
14667 case $1 in
14668 --*=?*)
14669 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14670 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14671 ac_shift=:
14672 ;;
14673 --*=)
14674 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14675 ac_optarg=
14676 ac_shift=:
14677 ;;
14678 *)
14679 ac_option=$1
14680 ac_optarg=$2
14681 ac_shift=shift
14682 ;;
14683 esac
14684
14685 case $ac_option in
14686 # Handling of the options.
14687 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14688 ac_cs_recheck=: ;;
14689 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14690 $as_echo "$ac_cs_version"; exit ;;
14691 --config | --confi | --conf | --con | --co | --c )
14692 $as_echo "$ac_cs_config"; exit ;;
14693 --debug | --debu | --deb | --de | --d | -d )
14694 debug=: ;;
14695 --file | --fil | --fi | --f )
14696 $ac_shift
14697 case $ac_optarg in
14698 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14699 '') as_fn_error $? "missing file argument" ;;
14700 esac
14701 as_fn_append CONFIG_FILES " '$ac_optarg'"
14702 ac_need_defaults=false;;
14703 --header | --heade | --head | --hea )
14704 $ac_shift
14705 case $ac_optarg in
14706 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14707 esac
14708 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14709 ac_need_defaults=false;;
14710 --he | --h)
14711 # Conflict between --help and --header
14712 as_fn_error $? "ambiguous option: \`$1'
14713 Try \`$0 --help' for more information.";;
14714 --help | --hel | -h )
14715 $as_echo "$ac_cs_usage"; exit ;;
14716 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14717 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14718 ac_cs_silent=: ;;
14719
14720 # This is an error.
14721 -*) as_fn_error $? "unrecognized option: \`$1'
14722 Try \`$0 --help' for more information." ;;
14723
14724 *) as_fn_append ac_config_targets " $1"
14725 ac_need_defaults=false ;;
14726
14727 esac
14728 shift
14729 done
14730
14731 ac_configure_extra_args=
14732
14733 if $ac_cs_silent; then
14734 exec 6>/dev/null
14735 ac_configure_extra_args="$ac_configure_extra_args --silent"
14736 fi
14737
14738 _ACEOF
14739 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14740 if \$ac_cs_recheck; then
14741 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14742 shift
14743 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14744 CONFIG_SHELL='$SHELL'
14745 export CONFIG_SHELL
14746 exec "\$@"
14747 fi
14748
14749 _ACEOF
14750 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14751 exec 5>>config.log
14752 {
14753 echo
14754 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14755 ## Running $as_me. ##
14756 _ASBOX
14757 $as_echo "$ac_log"
14758 } >&5
14759
14760 _ACEOF
14761 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14762 #
14763 # INIT-COMMANDS
14764 #
14765
14766
14767 # The HP-UX ksh and POSIX shell print the target directory to stdout
14768 # if CDPATH is set.
14769 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14770
14771 sed_quote_subst='$sed_quote_subst'
14772 double_quote_subst='$double_quote_subst'
14773 delay_variable_subst='$delay_variable_subst'
14774 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14775 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14776 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14777 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14778 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14779 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14780 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14781 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14782 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14783 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14784 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14785 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14786 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14787 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14788 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14789 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14790 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14791 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14792 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14793 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14794 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14795 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14796 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14797 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14798 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14799 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14800 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14801 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14802 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14803 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14804 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14805 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14806 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14807 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14808 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14809 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14810 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14811 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14812 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14813 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14814 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14815 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14816 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14817 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14818 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14819 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14820 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14821 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14822 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"`'
14823 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14824 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14825 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14826 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14827 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14828 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14829 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14830 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14831 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14832 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14833 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14834 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14835 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14836 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14837 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14838 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14839 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14840 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14841 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14842 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14843 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14844 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14845 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14846 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14847 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14848 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14849 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14850 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14851 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14852 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14853 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14854 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14855 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14856 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14857 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14858 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14859 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14860 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14861 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14862 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14863 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
14864 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14865 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14866 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14867 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14868 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14869 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14870 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14871 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14872 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14873 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14874 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14875 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14876 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14877 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14878 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14879 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14880 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14881 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14882 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14883 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14884 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14885 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14886 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14887 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14888 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14889 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14890 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14891 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14892 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14893 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14894
14895 LTCC='$LTCC'
14896 LTCFLAGS='$LTCFLAGS'
14897 compiler='$compiler_DEFAULT'
14898
14899 # A function that is used when there is no print builtin or printf.
14900 func_fallback_echo ()
14901 {
14902 eval 'cat <<_LTECHO_EOF
14903 \$1
14904 _LTECHO_EOF'
14905 }
14906
14907 # Quote evaled strings.
14908 for var in SHELL \
14909 ECHO \
14910 SED \
14911 GREP \
14912 EGREP \
14913 FGREP \
14914 LD \
14915 NM \
14916 LN_S \
14917 lt_SP2NL \
14918 lt_NL2SP \
14919 reload_flag \
14920 OBJDUMP \
14921 deplibs_check_method \
14922 file_magic_cmd \
14923 AR \
14924 AR_FLAGS \
14925 STRIP \
14926 RANLIB \
14927 CC \
14928 CFLAGS \
14929 compiler \
14930 lt_cv_sys_global_symbol_pipe \
14931 lt_cv_sys_global_symbol_to_cdecl \
14932 lt_cv_sys_global_symbol_to_c_name_address \
14933 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14934 lt_prog_compiler_no_builtin_flag \
14935 lt_prog_compiler_wl \
14936 lt_prog_compiler_pic \
14937 lt_prog_compiler_static \
14938 lt_cv_prog_compiler_c_o \
14939 need_locks \
14940 DSYMUTIL \
14941 NMEDIT \
14942 LIPO \
14943 OTOOL \
14944 OTOOL64 \
14945 shrext_cmds \
14946 export_dynamic_flag_spec \
14947 whole_archive_flag_spec \
14948 compiler_needs_object \
14949 with_gnu_ld \
14950 allow_undefined_flag \
14951 no_undefined_flag \
14952 hardcode_libdir_flag_spec \
14953 hardcode_libdir_flag_spec_ld \
14954 hardcode_libdir_separator \
14955 fix_srcfile_path \
14956 exclude_expsyms \
14957 include_expsyms \
14958 file_list_spec \
14959 variables_saved_for_relink \
14960 libname_spec \
14961 library_names_spec \
14962 soname_spec \
14963 install_override_mode \
14964 finish_eval \
14965 old_striplib \
14966 striplib; do
14967 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14968 *[\\\\\\\`\\"\\\$]*)
14969 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14970 ;;
14971 *)
14972 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14973 ;;
14974 esac
14975 done
14976
14977 # Double-quote double-evaled strings.
14978 for var in reload_cmds \
14979 old_postinstall_cmds \
14980 old_postuninstall_cmds \
14981 old_archive_cmds \
14982 extract_expsyms_cmds \
14983 old_archive_from_new_cmds \
14984 old_archive_from_expsyms_cmds \
14985 archive_cmds \
14986 archive_expsym_cmds \
14987 module_cmds \
14988 module_expsym_cmds \
14989 export_symbols_cmds \
14990 prelink_cmds \
14991 postinstall_cmds \
14992 postuninstall_cmds \
14993 finish_cmds \
14994 sys_lib_search_path_spec \
14995 sys_lib_dlsearch_path_spec; do
14996 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14997 *[\\\\\\\`\\"\\\$]*)
14998 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14999 ;;
15000 *)
15001 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15002 ;;
15003 esac
15004 done
15005
15006 ac_aux_dir='$ac_aux_dir'
15007 xsi_shell='$xsi_shell'
15008 lt_shell_append='$lt_shell_append'
15009
15010 # See if we are running on zsh, and set the options which allow our
15011 # commands through without removal of \ escapes INIT.
15012 if test -n "\${ZSH_VERSION+set}" ; then
15013 setopt NO_GLOB_SUBST
15014 fi
15015
15016
15017 PACKAGE='$PACKAGE'
15018 VERSION='$VERSION'
15019 TIMESTAMP='$TIMESTAMP'
15020 RM='$RM'
15021 ofile='$ofile'
15022
15023
15024
15025 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15026 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15027 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15028 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15029 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15030 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15031 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15032 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15033 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15034 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15035 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15036 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15037 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15038 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15039 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15040 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15041 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15042 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15043 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15044 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15045 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15046 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15047 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15048 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15049 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15050 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15051 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15052 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15053 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15054 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15055 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15056 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15057 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15058
15059 _ACEOF
15060
15061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15062
15063 # Handling of arguments.
15064 for ac_config_target in $ac_config_targets
15065 do
15066 case $ac_config_target in
15067 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15068 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15069 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15070 "depdir-aarch64") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-aarch64" ;;
15071 "depdir-arm") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-arm" ;;
15072 "depdir-avr") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-avr" ;;
15073 "depdir-bfin") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-bfin" ;;
15074 "depdir-bpf") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-bpf" ;;
15075 "depdir-cr16") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-cr16" ;;
15076 "depdir-cris") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-cris" ;;
15077 "depdir-d10v") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-d10v" ;;
15078 "depdir-frv") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-frv" ;;
15079 "depdir-h8300") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-h8300" ;;
15080 "depdir-iq2000") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-iq2000" ;;
15081 "depdir-lm32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-lm32" ;;
15082 "depdir-m32c") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m32c" ;;
15083 "depdir-m32r") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m32r" ;;
15084 "depdir-m68hc11") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m68hc11" ;;
15085 "depdir-mcore") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mcore" ;;
15086 "depdir-microblaze") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-microblaze" ;;
15087 "depdir-mips") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mips" ;;
15088 "depdir-mn10300") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mn10300" ;;
15089 "depdir-moxie") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-moxie" ;;
15090 "depdir-msp430") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-msp430" ;;
15091 "depdir-or1k") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-or1k" ;;
15092 "depdir-pru") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-pru" ;;
15093 "depdir-riscv") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-riscv" ;;
15094 "depdir-rl78") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-rl78" ;;
15095 "depdir-rx") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-rx" ;;
15096 "depdir-sh") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-sh" ;;
15097 "depdir-erc32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-erc32" ;;
15098 "depdir-ppc") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-ppc" ;;
15099 "depdir-ft32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-ft32" ;;
15100 "depdir-v850") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-v850" ;;
15101 "depdir-example-synacor") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-example-synacor" ;;
15102 "arch-subdir.mk") CONFIG_FILES="$CONFIG_FILES arch-subdir.mk" ;;
15103 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15104
15105 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15106 esac
15107 done
15108
15109
15110 # If the user did not use the arguments to specify the items to instantiate,
15111 # then the envvar interface is used. Set only those that are not.
15112 # We use the long form for the default assignment because of an extremely
15113 # bizarre bug on SunOS 4.1.3.
15114 if $ac_need_defaults; then
15115 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15116 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15117 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15118 fi
15119
15120 # Have a temporary directory for convenience. Make it in the build tree
15121 # simply because there is no reason against having it here, and in addition,
15122 # creating and moving files from /tmp can sometimes cause problems.
15123 # Hook for its removal unless debugging.
15124 # Note that there is a small window in which the directory will not be cleaned:
15125 # after its creation but before its name has been assigned to `$tmp'.
15126 $debug ||
15127 {
15128 tmp= ac_tmp=
15129 trap 'exit_status=$?
15130 : "${ac_tmp:=$tmp}"
15131 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15132 ' 0
15133 trap 'as_fn_exit 1' 1 2 13 15
15134 }
15135 # Create a (secure) tmp directory for tmp files.
15136
15137 {
15138 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15139 test -d "$tmp"
15140 } ||
15141 {
15142 tmp=./conf$$-$RANDOM
15143 (umask 077 && mkdir "$tmp")
15144 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15145 ac_tmp=$tmp
15146
15147 # Set up the scripts for CONFIG_FILES section.
15148 # No need to generate them if there are no CONFIG_FILES.
15149 # This happens for instance with `./config.status config.h'.
15150 if test -n "$CONFIG_FILES"; then
15151
15152
15153 ac_cr=`echo X | tr X '\015'`
15154 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15155 # But we know of no other shell where ac_cr would be empty at this
15156 # point, so we can use a bashism as a fallback.
15157 if test "x$ac_cr" = x; then
15158 eval ac_cr=\$\'\\r\'
15159 fi
15160 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15161 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15162 ac_cs_awk_cr='\\r'
15163 else
15164 ac_cs_awk_cr=$ac_cr
15165 fi
15166
15167 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15168 _ACEOF
15169
15170
15171 {
15172 echo "cat >conf$$subs.awk <<_ACEOF" &&
15173 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15174 echo "_ACEOF"
15175 } >conf$$subs.sh ||
15176 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15177 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15178 ac_delim='%!_!# '
15179 for ac_last_try in false false false false false :; do
15180 . ./conf$$subs.sh ||
15181 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15182
15183 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15184 if test $ac_delim_n = $ac_delim_num; then
15185 break
15186 elif $ac_last_try; then
15187 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15188 else
15189 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15190 fi
15191 done
15192 rm -f conf$$subs.sh
15193
15194 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15195 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15196 _ACEOF
15197 sed -n '
15198 h
15199 s/^/S["/; s/!.*/"]=/
15200 p
15201 g
15202 s/^[^!]*!//
15203 :repl
15204 t repl
15205 s/'"$ac_delim"'$//
15206 t delim
15207 :nl
15208 h
15209 s/\(.\{148\}\)..*/\1/
15210 t more1
15211 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15212 p
15213 n
15214 b repl
15215 :more1
15216 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15217 p
15218 g
15219 s/.\{148\}//
15220 t nl
15221 :delim
15222 h
15223 s/\(.\{148\}\)..*/\1/
15224 t more2
15225 s/["\\]/\\&/g; s/^/"/; s/$/"/
15226 p
15227 b
15228 :more2
15229 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15230 p
15231 g
15232 s/.\{148\}//
15233 t delim
15234 ' <conf$$subs.awk | sed '
15235 /^[^""]/{
15236 N
15237 s/\n//
15238 }
15239 ' >>$CONFIG_STATUS || ac_write_fail=1
15240 rm -f conf$$subs.awk
15241 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15242 _ACAWK
15243 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15244 for (key in S) S_is_set[key] = 1
15245 FS = "\a"
15246
15247 }
15248 {
15249 line = $ 0
15250 nfields = split(line, field, "@")
15251 substed = 0
15252 len = length(field[1])
15253 for (i = 2; i < nfields; i++) {
15254 key = field[i]
15255 keylen = length(key)
15256 if (S_is_set[key]) {
15257 value = S[key]
15258 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15259 len += length(value) + length(field[++i])
15260 substed = 1
15261 } else
15262 len += 1 + keylen
15263 }
15264
15265 print line
15266 }
15267
15268 _ACAWK
15269 _ACEOF
15270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15271 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15272 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15273 else
15274 cat
15275 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15276 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15277 _ACEOF
15278
15279 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15280 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15281 # trailing colons and then remove the whole line if VPATH becomes empty
15282 # (actually we leave an empty line to preserve line numbers).
15283 if test "x$srcdir" = x.; then
15284 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15285 h
15286 s///
15287 s/^/:/
15288 s/[ ]*$/:/
15289 s/:\$(srcdir):/:/g
15290 s/:\${srcdir}:/:/g
15291 s/:@srcdir@:/:/g
15292 s/^:*//
15293 s/:*$//
15294 x
15295 s/\(=[ ]*\).*/\1/
15296 G
15297 s/\n//
15298 s/^[^=]*=[ ]*$//
15299 }'
15300 fi
15301
15302 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15303 fi # test -n "$CONFIG_FILES"
15304
15305 # Set up the scripts for CONFIG_HEADERS section.
15306 # No need to generate them if there are no CONFIG_HEADERS.
15307 # This happens for instance with `./config.status Makefile'.
15308 if test -n "$CONFIG_HEADERS"; then
15309 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15310 BEGIN {
15311 _ACEOF
15312
15313 # Transform confdefs.h into an awk script `defines.awk', embedded as
15314 # here-document in config.status, that substitutes the proper values into
15315 # config.h.in to produce config.h.
15316
15317 # Create a delimiter string that does not exist in confdefs.h, to ease
15318 # handling of long lines.
15319 ac_delim='%!_!# '
15320 for ac_last_try in false false :; do
15321 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15322 if test -z "$ac_tt"; then
15323 break
15324 elif $ac_last_try; then
15325 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15326 else
15327 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15328 fi
15329 done
15330
15331 # For the awk script, D is an array of macro values keyed by name,
15332 # likewise P contains macro parameters if any. Preserve backslash
15333 # newline sequences.
15334
15335 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15336 sed -n '
15337 s/.\{148\}/&'"$ac_delim"'/g
15338 t rset
15339 :rset
15340 s/^[ ]*#[ ]*define[ ][ ]*/ /
15341 t def
15342 d
15343 :def
15344 s/\\$//
15345 t bsnl
15346 s/["\\]/\\&/g
15347 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15348 D["\1"]=" \3"/p
15349 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15350 d
15351 :bsnl
15352 s/["\\]/\\&/g
15353 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15354 D["\1"]=" \3\\\\\\n"\\/p
15355 t cont
15356 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15357 t cont
15358 d
15359 :cont
15360 n
15361 s/.\{148\}/&'"$ac_delim"'/g
15362 t clear
15363 :clear
15364 s/\\$//
15365 t bsnlc
15366 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15367 d
15368 :bsnlc
15369 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15370 b cont
15371 ' <confdefs.h | sed '
15372 s/'"$ac_delim"'/"\\\
15373 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15374
15375 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15376 for (key in D) D_is_set[key] = 1
15377 FS = "\a"
15378 }
15379 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15380 line = \$ 0
15381 split(line, arg, " ")
15382 if (arg[1] == "#") {
15383 defundef = arg[2]
15384 mac1 = arg[3]
15385 } else {
15386 defundef = substr(arg[1], 2)
15387 mac1 = arg[2]
15388 }
15389 split(mac1, mac2, "(") #)
15390 macro = mac2[1]
15391 prefix = substr(line, 1, index(line, defundef) - 1)
15392 if (D_is_set[macro]) {
15393 # Preserve the white space surrounding the "#".
15394 print prefix "define", macro P[macro] D[macro]
15395 next
15396 } else {
15397 # Replace #undef with comments. This is necessary, for example,
15398 # in the case of _POSIX_SOURCE, which is predefined and required
15399 # on some systems where configure will not decide to define it.
15400 if (defundef == "undef") {
15401 print "/*", prefix defundef, macro, "*/"
15402 next
15403 }
15404 }
15405 }
15406 { print }
15407 _ACAWK
15408 _ACEOF
15409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15410 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15411 fi # test -n "$CONFIG_HEADERS"
15412
15413
15414 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15415 shift
15416 for ac_tag
15417 do
15418 case $ac_tag in
15419 :[FHLC]) ac_mode=$ac_tag; continue;;
15420 esac
15421 case $ac_mode$ac_tag in
15422 :[FHL]*:*);;
15423 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15424 :[FH]-) ac_tag=-:-;;
15425 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15426 esac
15427 ac_save_IFS=$IFS
15428 IFS=:
15429 set x $ac_tag
15430 IFS=$ac_save_IFS
15431 shift
15432 ac_file=$1
15433 shift
15434
15435 case $ac_mode in
15436 :L) ac_source=$1;;
15437 :[FH])
15438 ac_file_inputs=
15439 for ac_f
15440 do
15441 case $ac_f in
15442 -) ac_f="$ac_tmp/stdin";;
15443 *) # Look for the file first in the build tree, then in the source tree
15444 # (if the path is not absolute). The absolute path cannot be DOS-style,
15445 # because $ac_f cannot contain `:'.
15446 test -f "$ac_f" ||
15447 case $ac_f in
15448 [\\/$]*) false;;
15449 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15450 esac ||
15451 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15452 esac
15453 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15454 as_fn_append ac_file_inputs " '$ac_f'"
15455 done
15456
15457 # Let's still pretend it is `configure' which instantiates (i.e., don't
15458 # use $as_me), people would be surprised to read:
15459 # /* config.h. Generated by config.status. */
15460 configure_input='Generated from '`
15461 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15462 `' by configure.'
15463 if test x"$ac_file" != x-; then
15464 configure_input="$ac_file. $configure_input"
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15466 $as_echo "$as_me: creating $ac_file" >&6;}
15467 fi
15468 # Neutralize special characters interpreted by sed in replacement strings.
15469 case $configure_input in #(
15470 *\&* | *\|* | *\\* )
15471 ac_sed_conf_input=`$as_echo "$configure_input" |
15472 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15473 *) ac_sed_conf_input=$configure_input;;
15474 esac
15475
15476 case $ac_tag in
15477 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15478 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15479 esac
15480 ;;
15481 esac
15482
15483 ac_dir=`$as_dirname -- "$ac_file" ||
15484 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15485 X"$ac_file" : 'X\(//\)[^/]' \| \
15486 X"$ac_file" : 'X\(//\)$' \| \
15487 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15488 $as_echo X"$ac_file" |
15489 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15490 s//\1/
15491 q
15492 }
15493 /^X\(\/\/\)[^/].*/{
15494 s//\1/
15495 q
15496 }
15497 /^X\(\/\/\)$/{
15498 s//\1/
15499 q
15500 }
15501 /^X\(\/\).*/{
15502 s//\1/
15503 q
15504 }
15505 s/.*/./; q'`
15506 as_dir="$ac_dir"; as_fn_mkdir_p
15507 ac_builddir=.
15508
15509 case "$ac_dir" in
15510 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15511 *)
15512 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15513 # A ".." for each directory in $ac_dir_suffix.
15514 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15515 case $ac_top_builddir_sub in
15516 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15517 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15518 esac ;;
15519 esac
15520 ac_abs_top_builddir=$ac_pwd
15521 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15522 # for backward compatibility:
15523 ac_top_builddir=$ac_top_build_prefix
15524
15525 case $srcdir in
15526 .) # We are building in place.
15527 ac_srcdir=.
15528 ac_top_srcdir=$ac_top_builddir_sub
15529 ac_abs_top_srcdir=$ac_pwd ;;
15530 [\\/]* | ?:[\\/]* ) # Absolute name.
15531 ac_srcdir=$srcdir$ac_dir_suffix;
15532 ac_top_srcdir=$srcdir
15533 ac_abs_top_srcdir=$srcdir ;;
15534 *) # Relative name.
15535 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15536 ac_top_srcdir=$ac_top_build_prefix$srcdir
15537 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15538 esac
15539 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15540
15541
15542 case $ac_mode in
15543 :F)
15544 #
15545 # CONFIG_FILE
15546 #
15547
15548 case $INSTALL in
15549 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15550 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15551 esac
15552 ac_MKDIR_P=$MKDIR_P
15553 case $MKDIR_P in
15554 [\\/$]* | ?:[\\/]* ) ;;
15555 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15556 esac
15557 _ACEOF
15558
15559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15560 # If the template does not know about datarootdir, expand it.
15561 # FIXME: This hack should be removed a few years after 2.60.
15562 ac_datarootdir_hack=; ac_datarootdir_seen=
15563 ac_sed_dataroot='
15564 /datarootdir/ {
15565 p
15566 q
15567 }
15568 /@datadir@/p
15569 /@docdir@/p
15570 /@infodir@/p
15571 /@localedir@/p
15572 /@mandir@/p'
15573 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15574 *datarootdir*) ac_datarootdir_seen=yes;;
15575 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15577 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15578 _ACEOF
15579 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15580 ac_datarootdir_hack='
15581 s&@datadir@&$datadir&g
15582 s&@docdir@&$docdir&g
15583 s&@infodir@&$infodir&g
15584 s&@localedir@&$localedir&g
15585 s&@mandir@&$mandir&g
15586 s&\\\${datarootdir}&$datarootdir&g' ;;
15587 esac
15588 _ACEOF
15589
15590 # Neutralize VPATH when `$srcdir' = `.'.
15591 # Shell code in configure.ac might set extrasub.
15592 # FIXME: do we really want to maintain this feature?
15593 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15594 ac_sed_extra="$ac_vpsub
15595 $extrasub
15596 _ACEOF
15597 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15598 :t
15599 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15600 s|@configure_input@|$ac_sed_conf_input|;t t
15601 s&@top_builddir@&$ac_top_builddir_sub&;t t
15602 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15603 s&@srcdir@&$ac_srcdir&;t t
15604 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15605 s&@top_srcdir@&$ac_top_srcdir&;t t
15606 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15607 s&@builddir@&$ac_builddir&;t t
15608 s&@abs_builddir@&$ac_abs_builddir&;t t
15609 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15610 s&@INSTALL@&$ac_INSTALL&;t t
15611 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15612 $ac_datarootdir_hack
15613 "
15614 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15615 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15616
15617 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15618 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15619 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15620 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15622 which seems to be undefined. Please make sure it is defined" >&5
15623 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15624 which seems to be undefined. Please make sure it is defined" >&2;}
15625
15626 rm -f "$ac_tmp/stdin"
15627 case $ac_file in
15628 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15629 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15630 esac \
15631 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15632 ;;
15633 :H)
15634 #
15635 # CONFIG_HEADER
15636 #
15637 if test x"$ac_file" != x-; then
15638 {
15639 $as_echo "/* $configure_input */" \
15640 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15641 } >"$ac_tmp/config.h" \
15642 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15643 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15644 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15645 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15646 else
15647 rm -f "$ac_file"
15648 mv "$ac_tmp/config.h" "$ac_file" \
15649 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15650 fi
15651 else
15652 $as_echo "/* $configure_input */" \
15653 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15654 || as_fn_error $? "could not create -" "$LINENO" 5
15655 fi
15656 # Compute "$ac_file"'s index in $config_headers.
15657 _am_arg="$ac_file"
15658 _am_stamp_count=1
15659 for _am_header in $config_headers :; do
15660 case $_am_header in
15661 $_am_arg | $_am_arg:* )
15662 break ;;
15663 * )
15664 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15665 esac
15666 done
15667 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15668 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15669 X"$_am_arg" : 'X\(//\)[^/]' \| \
15670 X"$_am_arg" : 'X\(//\)$' \| \
15671 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15672 $as_echo X"$_am_arg" |
15673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15674 s//\1/
15675 q
15676 }
15677 /^X\(\/\/\)[^/].*/{
15678 s//\1/
15679 q
15680 }
15681 /^X\(\/\/\)$/{
15682 s//\1/
15683 q
15684 }
15685 /^X\(\/\).*/{
15686 s//\1/
15687 q
15688 }
15689 s/.*/./; q'`/stamp-h$_am_stamp_count
15690 ;;
15691
15692 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15693 $as_echo "$as_me: executing $ac_file commands" >&6;}
15694 ;;
15695 esac
15696
15697
15698 case $ac_file$ac_mode in
15699 "libtool":C)
15700
15701 # See if we are running on zsh, and set the options which allow our
15702 # commands through without removal of \ escapes.
15703 if test -n "${ZSH_VERSION+set}" ; then
15704 setopt NO_GLOB_SUBST
15705 fi
15706
15707 cfgfile="${ofile}T"
15708 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15709 $RM "$cfgfile"
15710
15711 cat <<_LT_EOF >> "$cfgfile"
15712 #! $SHELL
15713
15714 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15715 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15716 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15717 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15718 #
15719 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15720 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15721 # Written by Gordon Matzigkeit, 1996
15722 #
15723 # This file is part of GNU Libtool.
15724 #
15725 # GNU Libtool is free software; you can redistribute it and/or
15726 # modify it under the terms of the GNU General Public License as
15727 # published by the Free Software Foundation; either version 2 of
15728 # the License, or (at your option) any later version.
15729 #
15730 # As a special exception to the GNU General Public License,
15731 # if you distribute this file as part of a program or library that
15732 # is built using GNU Libtool, you may include this file under the
15733 # same distribution terms that you use for the rest of that program.
15734 #
15735 # GNU Libtool is distributed in the hope that it will be useful,
15736 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15737 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15738 # GNU General Public License for more details.
15739 #
15740 # You should have received a copy of the GNU General Public License
15741 # along with GNU Libtool; see the file COPYING. If not, a copy
15742 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15743 # obtained by writing to the Free Software Foundation, Inc.,
15744 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15745
15746
15747 # The names of the tagged configurations supported by this script.
15748 available_tags=""
15749
15750 # ### BEGIN LIBTOOL CONFIG
15751
15752 # Which release of libtool.m4 was used?
15753 macro_version=$macro_version
15754 macro_revision=$macro_revision
15755
15756 # Whether or not to build shared libraries.
15757 build_libtool_libs=$enable_shared
15758
15759 # Whether or not to build static libraries.
15760 build_old_libs=$enable_static
15761
15762 # What type of objects to build.
15763 pic_mode=$pic_mode
15764
15765 # Whether or not to optimize for fast installation.
15766 fast_install=$enable_fast_install
15767
15768 # Shell to use when invoking shell scripts.
15769 SHELL=$lt_SHELL
15770
15771 # An echo program that protects backslashes.
15772 ECHO=$lt_ECHO
15773
15774 # The host system.
15775 host_alias=$host_alias
15776 host=$host
15777 host_os=$host_os
15778
15779 # The build system.
15780 build_alias=$build_alias
15781 build=$build
15782 build_os=$build_os
15783
15784 # A sed program that does not truncate output.
15785 SED=$lt_SED
15786
15787 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15788 Xsed="\$SED -e 1s/^X//"
15789
15790 # A grep program that handles long lines.
15791 GREP=$lt_GREP
15792
15793 # An ERE matcher.
15794 EGREP=$lt_EGREP
15795
15796 # A literal string matcher.
15797 FGREP=$lt_FGREP
15798
15799 # A BSD- or MS-compatible name lister.
15800 NM=$lt_NM
15801
15802 # Whether we need soft or hard links.
15803 LN_S=$lt_LN_S
15804
15805 # What is the maximum length of a command?
15806 max_cmd_len=$max_cmd_len
15807
15808 # Object file suffix (normally "o").
15809 objext=$ac_objext
15810
15811 # Executable file suffix (normally "").
15812 exeext=$exeext
15813
15814 # whether the shell understands "unset".
15815 lt_unset=$lt_unset
15816
15817 # turn spaces into newlines.
15818 SP2NL=$lt_lt_SP2NL
15819
15820 # turn newlines into spaces.
15821 NL2SP=$lt_lt_NL2SP
15822
15823 # An object symbol dumper.
15824 OBJDUMP=$lt_OBJDUMP
15825
15826 # Method to check whether dependent libraries are shared objects.
15827 deplibs_check_method=$lt_deplibs_check_method
15828
15829 # Command to use when deplibs_check_method == "file_magic".
15830 file_magic_cmd=$lt_file_magic_cmd
15831
15832 # The archiver.
15833 AR=$lt_AR
15834 AR_FLAGS=$lt_AR_FLAGS
15835
15836 # A symbol stripping program.
15837 STRIP=$lt_STRIP
15838
15839 # Commands used to install an old-style archive.
15840 RANLIB=$lt_RANLIB
15841 old_postinstall_cmds=$lt_old_postinstall_cmds
15842 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15843
15844 # Whether to use a lock for old archive extraction.
15845 lock_old_archive_extraction=$lock_old_archive_extraction
15846
15847 # A C compiler.
15848 LTCC=$lt_CC
15849
15850 # LTCC compiler flags.
15851 LTCFLAGS=$lt_CFLAGS
15852
15853 # Take the output of nm and produce a listing of raw symbols and C names.
15854 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15855
15856 # Transform the output of nm in a proper C declaration.
15857 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15858
15859 # Transform the output of nm in a C name address pair.
15860 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15861
15862 # Transform the output of nm in a C name address pair when lib prefix is needed.
15863 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15864
15865 # The name of the directory that contains temporary libtool files.
15866 objdir=$objdir
15867
15868 # Used to examine libraries when file_magic_cmd begins with "file".
15869 MAGIC_CMD=$MAGIC_CMD
15870
15871 # Must we lock files when doing compilation?
15872 need_locks=$lt_need_locks
15873
15874 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15875 DSYMUTIL=$lt_DSYMUTIL
15876
15877 # Tool to change global to local symbols on Mac OS X.
15878 NMEDIT=$lt_NMEDIT
15879
15880 # Tool to manipulate fat objects and archives on Mac OS X.
15881 LIPO=$lt_LIPO
15882
15883 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15884 OTOOL=$lt_OTOOL
15885
15886 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15887 OTOOL64=$lt_OTOOL64
15888
15889 # Old archive suffix (normally "a").
15890 libext=$libext
15891
15892 # Shared library suffix (normally ".so").
15893 shrext_cmds=$lt_shrext_cmds
15894
15895 # The commands to extract the exported symbol list from a shared archive.
15896 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15897
15898 # Variables whose values should be saved in libtool wrapper scripts and
15899 # restored at link time.
15900 variables_saved_for_relink=$lt_variables_saved_for_relink
15901
15902 # Do we need the "lib" prefix for modules?
15903 need_lib_prefix=$need_lib_prefix
15904
15905 # Do we need a version for libraries?
15906 need_version=$need_version
15907
15908 # Library versioning type.
15909 version_type=$version_type
15910
15911 # Shared library runtime path variable.
15912 runpath_var=$runpath_var
15913
15914 # Shared library path variable.
15915 shlibpath_var=$shlibpath_var
15916
15917 # Is shlibpath searched before the hard-coded library search path?
15918 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15919
15920 # Format of library name prefix.
15921 libname_spec=$lt_libname_spec
15922
15923 # List of archive names. First name is the real one, the rest are links.
15924 # The last name is the one that the linker finds with -lNAME
15925 library_names_spec=$lt_library_names_spec
15926
15927 # The coded name of the library, if different from the real name.
15928 soname_spec=$lt_soname_spec
15929
15930 # Permission mode override for installation of shared libraries.
15931 install_override_mode=$lt_install_override_mode
15932
15933 # Command to use after installation of a shared archive.
15934 postinstall_cmds=$lt_postinstall_cmds
15935
15936 # Command to use after uninstallation of a shared archive.
15937 postuninstall_cmds=$lt_postuninstall_cmds
15938
15939 # Commands used to finish a libtool library installation in a directory.
15940 finish_cmds=$lt_finish_cmds
15941
15942 # As "finish_cmds", except a single script fragment to be evaled but
15943 # not shown.
15944 finish_eval=$lt_finish_eval
15945
15946 # Whether we should hardcode library paths into libraries.
15947 hardcode_into_libs=$hardcode_into_libs
15948
15949 # Compile-time system search path for libraries.
15950 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15951
15952 # Run-time system search path for libraries.
15953 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15954
15955 # Whether dlopen is supported.
15956 dlopen_support=$enable_dlopen
15957
15958 # Whether dlopen of programs is supported.
15959 dlopen_self=$enable_dlopen_self
15960
15961 # Whether dlopen of statically linked programs is supported.
15962 dlopen_self_static=$enable_dlopen_self_static
15963
15964 # Commands to strip libraries.
15965 old_striplib=$lt_old_striplib
15966 striplib=$lt_striplib
15967
15968
15969 # The linker used to build libraries.
15970 LD=$lt_LD
15971
15972 # How to create reloadable object files.
15973 reload_flag=$lt_reload_flag
15974 reload_cmds=$lt_reload_cmds
15975
15976 # Commands used to build an old-style archive.
15977 old_archive_cmds=$lt_old_archive_cmds
15978
15979 # A language specific compiler.
15980 CC=$lt_compiler
15981
15982 # Is the compiler the GNU compiler?
15983 with_gcc=$GCC
15984
15985 # Compiler flag to turn off builtin functions.
15986 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15987
15988 # How to pass a linker flag through the compiler.
15989 wl=$lt_lt_prog_compiler_wl
15990
15991 # Additional compiler flags for building library objects.
15992 pic_flag=$lt_lt_prog_compiler_pic
15993
15994 # Compiler flag to prevent dynamic linking.
15995 link_static_flag=$lt_lt_prog_compiler_static
15996
15997 # Does compiler simultaneously support -c and -o options?
15998 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15999
16000 # Whether or not to add -lc for building shared libraries.
16001 build_libtool_need_lc=$archive_cmds_need_lc
16002
16003 # Whether or not to disallow shared libs when runtime libs are static.
16004 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16005
16006 # Compiler flag to allow reflexive dlopens.
16007 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16008
16009 # Compiler flag to generate shared objects directly from archives.
16010 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16011
16012 # Whether the compiler copes with passing no objects directly.
16013 compiler_needs_object=$lt_compiler_needs_object
16014
16015 # Create an old-style archive from a shared archive.
16016 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16017
16018 # Create a temporary old-style archive to link instead of a shared archive.
16019 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16020
16021 # Commands used to build a shared archive.
16022 archive_cmds=$lt_archive_cmds
16023 archive_expsym_cmds=$lt_archive_expsym_cmds
16024
16025 # Commands used to build a loadable module if different from building
16026 # a shared archive.
16027 module_cmds=$lt_module_cmds
16028 module_expsym_cmds=$lt_module_expsym_cmds
16029
16030 # Whether we are building with GNU ld or not.
16031 with_gnu_ld=$lt_with_gnu_ld
16032
16033 # Flag that allows shared libraries with undefined symbols to be built.
16034 allow_undefined_flag=$lt_allow_undefined_flag
16035
16036 # Flag that enforces no undefined symbols.
16037 no_undefined_flag=$lt_no_undefined_flag
16038
16039 # Flag to hardcode \$libdir into a binary during linking.
16040 # This must work even if \$libdir does not exist
16041 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16042
16043 # If ld is used when linking, flag to hardcode \$libdir into a binary
16044 # during linking. This must work even if \$libdir does not exist.
16045 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16046
16047 # Whether we need a single "-rpath" flag with a separated argument.
16048 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16049
16050 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16051 # DIR into the resulting binary.
16052 hardcode_direct=$hardcode_direct
16053
16054 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16055 # DIR into the resulting binary and the resulting library dependency is
16056 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16057 # library is relocated.
16058 hardcode_direct_absolute=$hardcode_direct_absolute
16059
16060 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16061 # into the resulting binary.
16062 hardcode_minus_L=$hardcode_minus_L
16063
16064 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16065 # into the resulting binary.
16066 hardcode_shlibpath_var=$hardcode_shlibpath_var
16067
16068 # Set to "yes" if building a shared library automatically hardcodes DIR
16069 # into the library and all subsequent libraries and executables linked
16070 # against it.
16071 hardcode_automatic=$hardcode_automatic
16072
16073 # Set to yes if linker adds runtime paths of dependent libraries
16074 # to runtime path list.
16075 inherit_rpath=$inherit_rpath
16076
16077 # Whether libtool must link a program against all its dependency libraries.
16078 link_all_deplibs=$link_all_deplibs
16079
16080 # Fix the shell variable \$srcfile for the compiler.
16081 fix_srcfile_path=$lt_fix_srcfile_path
16082
16083 # Set to "yes" if exported symbols are required.
16084 always_export_symbols=$always_export_symbols
16085
16086 # The commands to list exported symbols.
16087 export_symbols_cmds=$lt_export_symbols_cmds
16088
16089 # Symbols that should not be listed in the preloaded symbols.
16090 exclude_expsyms=$lt_exclude_expsyms
16091
16092 # Symbols that must always be exported.
16093 include_expsyms=$lt_include_expsyms
16094
16095 # Commands necessary for linking programs (against libraries) with templates.
16096 prelink_cmds=$lt_prelink_cmds
16097
16098 # Specify filename containing input files.
16099 file_list_spec=$lt_file_list_spec
16100
16101 # How to hardcode a shared library path into an executable.
16102 hardcode_action=$hardcode_action
16103
16104 # ### END LIBTOOL CONFIG
16105
16106 _LT_EOF
16107
16108 case $host_os in
16109 aix3*)
16110 cat <<\_LT_EOF >> "$cfgfile"
16111 # AIX sometimes has problems with the GCC collect2 program. For some
16112 # reason, if we set the COLLECT_NAMES environment variable, the problems
16113 # vanish in a puff of smoke.
16114 if test "X${COLLECT_NAMES+set}" != Xset; then
16115 COLLECT_NAMES=
16116 export COLLECT_NAMES
16117 fi
16118 _LT_EOF
16119 ;;
16120 esac
16121
16122
16123 ltmain="$ac_aux_dir/ltmain.sh"
16124
16125
16126 # We use sed instead of cat because bash on DJGPP gets confused if
16127 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16128 # text mode, it properly converts lines to CR/LF. This bash problem
16129 # is reportedly fixed, but why not run on old versions too?
16130 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16131 || (rm -f "$cfgfile"; exit 1)
16132
16133 case $xsi_shell in
16134 yes)
16135 cat << \_LT_EOF >> "$cfgfile"
16136
16137 # func_dirname file append nondir_replacement
16138 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16139 # otherwise set result to NONDIR_REPLACEMENT.
16140 func_dirname ()
16141 {
16142 case ${1} in
16143 */*) func_dirname_result="${1%/*}${2}" ;;
16144 * ) func_dirname_result="${3}" ;;
16145 esac
16146 }
16147
16148 # func_basename file
16149 func_basename ()
16150 {
16151 func_basename_result="${1##*/}"
16152 }
16153
16154 # func_dirname_and_basename file append nondir_replacement
16155 # perform func_basename and func_dirname in a single function
16156 # call:
16157 # dirname: Compute the dirname of FILE. If nonempty,
16158 # add APPEND to the result, otherwise set result
16159 # to NONDIR_REPLACEMENT.
16160 # value returned in "$func_dirname_result"
16161 # basename: Compute filename of FILE.
16162 # value retuned in "$func_basename_result"
16163 # Implementation must be kept synchronized with func_dirname
16164 # and func_basename. For efficiency, we do not delegate to
16165 # those functions but instead duplicate the functionality here.
16166 func_dirname_and_basename ()
16167 {
16168 case ${1} in
16169 */*) func_dirname_result="${1%/*}${2}" ;;
16170 * ) func_dirname_result="${3}" ;;
16171 esac
16172 func_basename_result="${1##*/}"
16173 }
16174
16175 # func_stripname prefix suffix name
16176 # strip PREFIX and SUFFIX off of NAME.
16177 # PREFIX and SUFFIX must not contain globbing or regex special
16178 # characters, hashes, percent signs, but SUFFIX may contain a leading
16179 # dot (in which case that matches only a dot).
16180 func_stripname ()
16181 {
16182 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16183 # positional parameters, so assign one to ordinary parameter first.
16184 func_stripname_result=${3}
16185 func_stripname_result=${func_stripname_result#"${1}"}
16186 func_stripname_result=${func_stripname_result%"${2}"}
16187 }
16188
16189 # func_opt_split
16190 func_opt_split ()
16191 {
16192 func_opt_split_opt=${1%%=*}
16193 func_opt_split_arg=${1#*=}
16194 }
16195
16196 # func_lo2o object
16197 func_lo2o ()
16198 {
16199 case ${1} in
16200 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16201 *) func_lo2o_result=${1} ;;
16202 esac
16203 }
16204
16205 # func_xform libobj-or-source
16206 func_xform ()
16207 {
16208 func_xform_result=${1%.*}.lo
16209 }
16210
16211 # func_arith arithmetic-term...
16212 func_arith ()
16213 {
16214 func_arith_result=$(( $* ))
16215 }
16216
16217 # func_len string
16218 # STRING may not start with a hyphen.
16219 func_len ()
16220 {
16221 func_len_result=${#1}
16222 }
16223
16224 _LT_EOF
16225 ;;
16226 *) # Bourne compatible functions.
16227 cat << \_LT_EOF >> "$cfgfile"
16228
16229 # func_dirname file append nondir_replacement
16230 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16231 # otherwise set result to NONDIR_REPLACEMENT.
16232 func_dirname ()
16233 {
16234 # Extract subdirectory from the argument.
16235 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16236 if test "X$func_dirname_result" = "X${1}"; then
16237 func_dirname_result="${3}"
16238 else
16239 func_dirname_result="$func_dirname_result${2}"
16240 fi
16241 }
16242
16243 # func_basename file
16244 func_basename ()
16245 {
16246 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16247 }
16248
16249
16250 # func_stripname prefix suffix name
16251 # strip PREFIX and SUFFIX off of NAME.
16252 # PREFIX and SUFFIX must not contain globbing or regex special
16253 # characters, hashes, percent signs, but SUFFIX may contain a leading
16254 # dot (in which case that matches only a dot).
16255 # func_strip_suffix prefix name
16256 func_stripname ()
16257 {
16258 case ${2} in
16259 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16260 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16261 esac
16262 }
16263
16264 # sed scripts:
16265 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16266 my_sed_long_arg='1s/^-[^=]*=//'
16267
16268 # func_opt_split
16269 func_opt_split ()
16270 {
16271 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16272 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16273 }
16274
16275 # func_lo2o object
16276 func_lo2o ()
16277 {
16278 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16279 }
16280
16281 # func_xform libobj-or-source
16282 func_xform ()
16283 {
16284 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16285 }
16286
16287 # func_arith arithmetic-term...
16288 func_arith ()
16289 {
16290 func_arith_result=`expr "$@"`
16291 }
16292
16293 # func_len string
16294 # STRING may not start with a hyphen.
16295 func_len ()
16296 {
16297 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16298 }
16299
16300 _LT_EOF
16301 esac
16302
16303 case $lt_shell_append in
16304 yes)
16305 cat << \_LT_EOF >> "$cfgfile"
16306
16307 # func_append var value
16308 # Append VALUE to the end of shell variable VAR.
16309 func_append ()
16310 {
16311 eval "$1+=\$2"
16312 }
16313 _LT_EOF
16314 ;;
16315 *)
16316 cat << \_LT_EOF >> "$cfgfile"
16317
16318 # func_append var value
16319 # Append VALUE to the end of shell variable VAR.
16320 func_append ()
16321 {
16322 eval "$1=\$$1\$2"
16323 }
16324
16325 _LT_EOF
16326 ;;
16327 esac
16328
16329
16330 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16331 || (rm -f "$cfgfile"; exit 1)
16332
16333 mv -f "$cfgfile" "$ofile" ||
16334 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16335 chmod +x "$ofile"
16336
16337 ;;
16338 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16339 # Older Autoconf quotes --file arguments for eval, but not when files
16340 # are listed without --file. Let's play safe and only enable the eval
16341 # if we detect the quoting.
16342 case $CONFIG_FILES in
16343 *\'*) eval set x "$CONFIG_FILES" ;;
16344 *) set x $CONFIG_FILES ;;
16345 esac
16346 shift
16347 for mf
16348 do
16349 # Strip MF so we end up with the name of the file.
16350 mf=`echo "$mf" | sed -e 's/:.*$//'`
16351 # Check whether this is an Automake generated Makefile or not.
16352 # We used to match only the files named 'Makefile.in', but
16353 # some people rename them; so instead we look at the file content.
16354 # Grep'ing the first line is not enough: some people post-process
16355 # each Makefile.in and add a new line on top of each file to say so.
16356 # Grep'ing the whole file is not good either: AIX grep has a line
16357 # limit of 2048, but all sed's we know have understand at least 4000.
16358 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16359 dirpart=`$as_dirname -- "$mf" ||
16360 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16361 X"$mf" : 'X\(//\)[^/]' \| \
16362 X"$mf" : 'X\(//\)$' \| \
16363 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16364 $as_echo X"$mf" |
16365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16366 s//\1/
16367 q
16368 }
16369 /^X\(\/\/\)[^/].*/{
16370 s//\1/
16371 q
16372 }
16373 /^X\(\/\/\)$/{
16374 s//\1/
16375 q
16376 }
16377 /^X\(\/\).*/{
16378 s//\1/
16379 q
16380 }
16381 s/.*/./; q'`
16382 else
16383 continue
16384 fi
16385 # Extract the definition of DEPDIR, am__include, and am__quote
16386 # from the Makefile without running 'make'.
16387 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16388 test -z "$DEPDIR" && continue
16389 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16390 test -z "$am__include" && continue
16391 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16392 # Find all dependency output files, they are included files with
16393 # $(DEPDIR) in their names. We invoke sed twice because it is the
16394 # simplest approach to changing $(DEPDIR) to its actual value in the
16395 # expansion.
16396 for file in `sed -n "
16397 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16398 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16399 # Make sure the directory exists.
16400 test -f "$dirpart/$file" && continue
16401 fdir=`$as_dirname -- "$file" ||
16402 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16403 X"$file" : 'X\(//\)[^/]' \| \
16404 X"$file" : 'X\(//\)$' \| \
16405 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16406 $as_echo X"$file" |
16407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16408 s//\1/
16409 q
16410 }
16411 /^X\(\/\/\)[^/].*/{
16412 s//\1/
16413 q
16414 }
16415 /^X\(\/\/\)$/{
16416 s//\1/
16417 q
16418 }
16419 /^X\(\/\).*/{
16420 s//\1/
16421 q
16422 }
16423 s/.*/./; q'`
16424 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16425 # echo "creating $dirpart/$file"
16426 echo '# dummy' > "$dirpart/$file"
16427 done
16428 done
16429 }
16430 ;;
16431 "depdir-aarch64":C) $SHELL $ac_aux_dir/mkinstalldirs aarch64/$DEPDIR ;;
16432 "depdir-arm":C) $SHELL $ac_aux_dir/mkinstalldirs arm/$DEPDIR ;;
16433 "depdir-avr":C) $SHELL $ac_aux_dir/mkinstalldirs avr/$DEPDIR ;;
16434 "depdir-bfin":C) $SHELL $ac_aux_dir/mkinstalldirs bfin/$DEPDIR ;;
16435 "depdir-bpf":C) $SHELL $ac_aux_dir/mkinstalldirs bpf/$DEPDIR ;;
16436 "depdir-cr16":C) $SHELL $ac_aux_dir/mkinstalldirs cr16/$DEPDIR ;;
16437 "depdir-cris":C) $SHELL $ac_aux_dir/mkinstalldirs cris/$DEPDIR ;;
16438 "depdir-d10v":C) $SHELL $ac_aux_dir/mkinstalldirs d10v/$DEPDIR ;;
16439 "depdir-frv":C) $SHELL $ac_aux_dir/mkinstalldirs frv/$DEPDIR ;;
16440 "depdir-h8300":C) $SHELL $ac_aux_dir/mkinstalldirs h8300/$DEPDIR ;;
16441 "depdir-iq2000":C) $SHELL $ac_aux_dir/mkinstalldirs iq2000/$DEPDIR ;;
16442 "depdir-lm32":C) $SHELL $ac_aux_dir/mkinstalldirs lm32/$DEPDIR ;;
16443 "depdir-m32c":C) $SHELL $ac_aux_dir/mkinstalldirs m32c/$DEPDIR ;;
16444 "depdir-m32r":C) $SHELL $ac_aux_dir/mkinstalldirs m32r/$DEPDIR ;;
16445 "depdir-m68hc11":C) $SHELL $ac_aux_dir/mkinstalldirs m68hc11/$DEPDIR ;;
16446 "depdir-mcore":C) $SHELL $ac_aux_dir/mkinstalldirs mcore/$DEPDIR ;;
16447 "depdir-microblaze":C) $SHELL $ac_aux_dir/mkinstalldirs microblaze/$DEPDIR ;;
16448 "depdir-mips":C) $SHELL $ac_aux_dir/mkinstalldirs mips/$DEPDIR ;;
16449 "depdir-mn10300":C) $SHELL $ac_aux_dir/mkinstalldirs mn10300/$DEPDIR ;;
16450 "depdir-moxie":C) $SHELL $ac_aux_dir/mkinstalldirs moxie/$DEPDIR ;;
16451 "depdir-msp430":C) $SHELL $ac_aux_dir/mkinstalldirs msp430/$DEPDIR ;;
16452 "depdir-or1k":C) $SHELL $ac_aux_dir/mkinstalldirs or1k/$DEPDIR ;;
16453 "depdir-pru":C) $SHELL $ac_aux_dir/mkinstalldirs pru/$DEPDIR ;;
16454 "depdir-riscv":C) $SHELL $ac_aux_dir/mkinstalldirs riscv/$DEPDIR ;;
16455 "depdir-rl78":C) $SHELL $ac_aux_dir/mkinstalldirs rl78/$DEPDIR ;;
16456 "depdir-rx":C) $SHELL $ac_aux_dir/mkinstalldirs rx/$DEPDIR ;;
16457 "depdir-sh":C) $SHELL $ac_aux_dir/mkinstalldirs sh/$DEPDIR ;;
16458 "depdir-erc32":C) $SHELL $ac_aux_dir/mkinstalldirs erc32/$DEPDIR ;;
16459 "depdir-ppc":C) $SHELL $ac_aux_dir/mkinstalldirs ppc/$DEPDIR ;;
16460 "depdir-ft32":C) $SHELL $ac_aux_dir/mkinstalldirs ft32/$DEPDIR ;;
16461 "depdir-v850":C) $SHELL $ac_aux_dir/mkinstalldirs v850/$DEPDIR ;;
16462 "depdir-example-synacor":C) $SHELL $ac_aux_dir/mkinstalldirs example-synacor/$DEPDIR ;;
16463
16464 esac
16465 done # for ac_tag
16466
16467
16468 as_fn_exit 0
16469 _ACEOF
16470 ac_clean_files=$ac_clean_files_save
16471
16472 test $ac_write_fail = 0 ||
16473 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16474
16475
16476 # configure is writing to config.log, and then calls config.status.
16477 # config.status does its own redirection, appending to config.log.
16478 # Unfortunately, on DOS this fails, as config.log is still kept open
16479 # by configure, so config.status won't be able to write to it; its
16480 # output is simply discarded. So we exec the FD to /dev/null,
16481 # effectively closing config.log, so it can be properly (re)opened and
16482 # appended to by config.status. When coming back to configure, we
16483 # need to make the FD available again.
16484 if test "$no_create" != yes; then
16485 ac_cs_success=:
16486 ac_config_status_args=
16487 test "$silent" = yes &&
16488 ac_config_status_args="$ac_config_status_args --quiet"
16489 exec 5>/dev/null
16490 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16491 exec 5>>config.log
16492 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16493 # would make configure fail if this is the last instruction.
16494 $ac_cs_success || as_fn_exit 1
16495 fi
16496
16497 #
16498 # CONFIG_SUBDIRS section.
16499 #
16500 if test "$no_recursion" != yes; then
16501
16502 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
16503 # so they do not pile up.
16504 ac_sub_configure_args=
16505 ac_prev=
16506 eval "set x $ac_configure_args"
16507 shift
16508 for ac_arg
16509 do
16510 if test -n "$ac_prev"; then
16511 ac_prev=
16512 continue
16513 fi
16514 case $ac_arg in
16515 -cache-file | --cache-file | --cache-fil | --cache-fi \
16516 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
16517 ac_prev=cache_file ;;
16518 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
16519 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
16520 | --c=*)
16521 ;;
16522 --config-cache | -C)
16523 ;;
16524 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
16525 ac_prev=srcdir ;;
16526 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
16527 ;;
16528 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
16529 ac_prev=prefix ;;
16530 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
16531 ;;
16532 --disable-option-checking)
16533 ;;
16534 *)
16535 case $ac_arg in
16536 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16537 esac
16538 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
16539 esac
16540 done
16541
16542 # Always prepend --prefix to ensure using the same prefix
16543 # in subdir configurations.
16544 ac_arg="--prefix=$prefix"
16545 case $ac_arg in
16546 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16547 esac
16548 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
16549
16550 # Pass --silent
16551 if test "$silent" = yes; then
16552 ac_sub_configure_args="--silent $ac_sub_configure_args"
16553 fi
16554
16555 # Always prepend --disable-option-checking to silence warnings, since
16556 # different subdirs can have different --enable and --with options.
16557 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
16558
16559 ac_popdir=`pwd`
16560 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
16561
16562 # Do not complain, so a configure script can configure whichever
16563 # parts of a large source tree are present.
16564 test -d "$srcdir/$ac_dir" || continue
16565
16566 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
16567 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
16568 $as_echo "$ac_msg" >&6
16569 as_dir="$ac_dir"; as_fn_mkdir_p
16570 ac_builddir=.
16571
16572 case "$ac_dir" in
16573 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16574 *)
16575 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16576 # A ".." for each directory in $ac_dir_suffix.
16577 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16578 case $ac_top_builddir_sub in
16579 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16580 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16581 esac ;;
16582 esac
16583 ac_abs_top_builddir=$ac_pwd
16584 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16585 # for backward compatibility:
16586 ac_top_builddir=$ac_top_build_prefix
16587
16588 case $srcdir in
16589 .) # We are building in place.
16590 ac_srcdir=.
16591 ac_top_srcdir=$ac_top_builddir_sub
16592 ac_abs_top_srcdir=$ac_pwd ;;
16593 [\\/]* | ?:[\\/]* ) # Absolute name.
16594 ac_srcdir=$srcdir$ac_dir_suffix;
16595 ac_top_srcdir=$srcdir
16596 ac_abs_top_srcdir=$srcdir ;;
16597 *) # Relative name.
16598 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16599 ac_top_srcdir=$ac_top_build_prefix$srcdir
16600 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16601 esac
16602 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16603
16604
16605 cd "$ac_dir"
16606
16607 # Check for guested configure; otherwise get Cygnus style configure.
16608 if test -f "$ac_srcdir/configure.gnu"; then
16609 ac_sub_configure=$ac_srcdir/configure.gnu
16610 elif test -f "$ac_srcdir/configure"; then
16611 ac_sub_configure=$ac_srcdir/configure
16612 elif test -f "$ac_srcdir/configure.in"; then
16613 # This should be Cygnus configure.
16614 ac_sub_configure=$ac_aux_dir/configure
16615 else
16616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
16617 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
16618 ac_sub_configure=
16619 fi
16620
16621 # The recursion is here.
16622 if test -n "$ac_sub_configure"; then
16623 # Make the cache file name correct relative to the subdirectory.
16624 case $cache_file in
16625 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
16626 *) # Relative name.
16627 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
16628 esac
16629
16630 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
16631 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
16632 # The eval makes quoting arguments work.
16633 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
16634 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
16635 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
16636 fi
16637
16638 cd "$ac_popdir"
16639 done
16640 fi
16641 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16643 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16644 fi
16645
This page took 0.628267 seconds and 4 git commands to generate.