]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/v850/configure
0b8d9fca035161196f7fce95a223e0b254c643a1
[thirdparty/binutils-gdb.git] / sim / v850 / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME=
589 PACKAGE_TARNAME=
590 PACKAGE_VERSION=
591 PACKAGE_STRING=
592 PACKAGE_BUGREPORT=
593 PACKAGE_URL=
594
595 ac_unique_file="Makefile.in"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_subst_vars='LTLIBOBJS
633 LIBOBJS
634 sim_default_model
635 sim_scache
636 sim_float
637 cgen_breaks
638 REPORT_BUGS_TEXI
639 REPORT_BUGS_TO
640 PKGVERSION
641 MAINT
642 MAINTAINER_MODE_FALSE
643 MAINTAINER_MODE_TRUE
644 lt_cv_dlopen_libs
645 OTOOL64
646 OTOOL
647 LIPO
648 NMEDIT
649 DSYMUTIL
650 AWK
651 STRIP
652 OBJDUMP
653 LN_S
654 NM
655 ac_ct_DUMPBIN
656 DUMPBIN
657 LD
658 FGREP
659 SED
660 LIBTOOL
661 PLUGINS_FALSE
662 PLUGINS_TRUE
663 zlibinc
664 zlibdir
665 CATOBJEXT
666 GENCAT
667 INSTOBJEXT
668 DATADIRNAME
669 CATALOGS
670 POSUB
671 GMSGFMT
672 XGETTEXT
673 INCINTL
674 LIBINTL_DEP
675 LIBINTL
676 USE_NLS
677 CCDEPMODE
678 DEPDIR
679 am__leading_dot
680 PACKAGE
681 C_DIALECT
682 RANLIB
683 AR
684 LDFLAGS_FOR_BUILD
685 CFLAGS_FOR_BUILD
686 RANLIB_FOR_BUILD
687 CC_FOR_BUILD
688 AR_FOR_BUILD
689 INSTALL_DATA
690 INSTALL_SCRIPT
691 INSTALL_PROGRAM
692 EGREP
693 GREP
694 CPP
695 OBJEXT
696 EXEEXT
697 ac_ct_CC
698 CPPFLAGS
699 LDFLAGS
700 CFLAGS
701 CC
702 target_os
703 target_vendor
704 target_cpu
705 target
706 host_os
707 host_vendor
708 host_cpu
709 host
710 build_os
711 build_vendor
712 build_cpu
713 build
714 target_alias
715 host_alias
716 build_alias
717 LIBS
718 ECHO_T
719 ECHO_N
720 ECHO_C
721 DEFS
722 mandir
723 localedir
724 libdir
725 psdir
726 pdfdir
727 dvidir
728 htmldir
729 infodir
730 docdir
731 oldincludedir
732 includedir
733 localstatedir
734 sharedstatedir
735 sysconfdir
736 datadir
737 datarootdir
738 libexecdir
739 sbindir
740 bindir
741 program_transform_name
742 prefix
743 exec_prefix
744 PACKAGE_URL
745 PACKAGE_BUGREPORT
746 PACKAGE_STRING
747 PACKAGE_VERSION
748 PACKAGE_TARNAME
749 PACKAGE_NAME
750 PATH_SEPARATOR
751 SHELL
752 WERROR_CFLAGS
753 WARN_CFLAGS
754 sim_reserved_bits
755 sim_inline
756 sim_hw
757 sim_hw_objs
758 sim_hw_cflags
759 sim_endian
760 sim_bitsize
761 sim_alignment'
762 ac_subst_files=''
763 ac_user_opts='
764 enable_option_checking
765 with_system_zlib
766 enable_plugins
767 enable_shared
768 enable_static
769 with_pic
770 enable_fast_install
771 with_gnu_ld
772 enable_libtool_lock
773 enable_maintainer_mode
774 enable_sim_debug
775 enable_sim_stdio
776 enable_sim_trace
777 enable_sim_profile
778 enable_sim_environment
779 enable_sim_inline
780 with_pkgversion
781 with_bugurl
782 enable_sim_endian
783 enable_sim_alignment
784 enable_sim_reserved_bits
785 enable_sim_bitsize
786 enable_werror
787 enable_build_warnings
788 enable_sim_build_warnings
789 enable_sim_hardware
790 '
791 ac_precious_vars='build_alias
792 host_alias
793 target_alias
794 CC
795 CFLAGS
796 LDFLAGS
797 LIBS
798 CPPFLAGS
799 CPP'
800
801
802 # Initialize some variables set by options.
803 ac_init_help=
804 ac_init_version=false
805 ac_unrecognized_opts=
806 ac_unrecognized_sep=
807 # The variables have the same names as the options, with
808 # dashes changed to underlines.
809 cache_file=/dev/null
810 exec_prefix=NONE
811 no_create=
812 no_recursion=
813 prefix=NONE
814 program_prefix=NONE
815 program_suffix=NONE
816 program_transform_name=s,x,x,
817 silent=
818 site=
819 srcdir=
820 verbose=
821 x_includes=NONE
822 x_libraries=NONE
823
824 # Installation directory options.
825 # These are left unexpanded so users can "make install exec_prefix=/foo"
826 # and all the variables that are supposed to be based on exec_prefix
827 # by default will actually change.
828 # Use braces instead of parens because sh, perl, etc. also accept them.
829 # (The list follows the same order as the GNU Coding Standards.)
830 bindir='${exec_prefix}/bin'
831 sbindir='${exec_prefix}/sbin'
832 libexecdir='${exec_prefix}/libexec'
833 datarootdir='${prefix}/share'
834 datadir='${datarootdir}'
835 sysconfdir='${prefix}/etc'
836 sharedstatedir='${prefix}/com'
837 localstatedir='${prefix}/var'
838 includedir='${prefix}/include'
839 oldincludedir='/usr/include'
840 docdir='${datarootdir}/doc/${PACKAGE}'
841 infodir='${datarootdir}/info'
842 htmldir='${docdir}'
843 dvidir='${docdir}'
844 pdfdir='${docdir}'
845 psdir='${docdir}'
846 libdir='${exec_prefix}/lib'
847 localedir='${datarootdir}/locale'
848 mandir='${datarootdir}/man'
849
850 ac_prev=
851 ac_dashdash=
852 for ac_option
853 do
854 # If the previous option needs an argument, assign it.
855 if test -n "$ac_prev"; then
856 eval $ac_prev=\$ac_option
857 ac_prev=
858 continue
859 fi
860
861 case $ac_option in
862 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
863 *=) ac_optarg= ;;
864 *) ac_optarg=yes ;;
865 esac
866
867 # Accept the important Cygnus configure options, so we can diagnose typos.
868
869 case $ac_dashdash$ac_option in
870 --)
871 ac_dashdash=yes ;;
872
873 -bindir | --bindir | --bindi | --bind | --bin | --bi)
874 ac_prev=bindir ;;
875 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
876 bindir=$ac_optarg ;;
877
878 -build | --build | --buil | --bui | --bu)
879 ac_prev=build_alias ;;
880 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
881 build_alias=$ac_optarg ;;
882
883 -cache-file | --cache-file | --cache-fil | --cache-fi \
884 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
885 ac_prev=cache_file ;;
886 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
887 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
888 cache_file=$ac_optarg ;;
889
890 --config-cache | -C)
891 cache_file=config.cache ;;
892
893 -datadir | --datadir | --datadi | --datad)
894 ac_prev=datadir ;;
895 -datadir=* | --datadir=* | --datadi=* | --datad=*)
896 datadir=$ac_optarg ;;
897
898 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
899 | --dataroo | --dataro | --datar)
900 ac_prev=datarootdir ;;
901 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
902 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
903 datarootdir=$ac_optarg ;;
904
905 -disable-* | --disable-*)
906 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
907 # Reject names that are not valid shell variable names.
908 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
909 as_fn_error $? "invalid feature name: $ac_useropt"
910 ac_useropt_orig=$ac_useropt
911 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
912 case $ac_user_opts in
913 *"
914 "enable_$ac_useropt"
915 "*) ;;
916 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
917 ac_unrecognized_sep=', ';;
918 esac
919 eval enable_$ac_useropt=no ;;
920
921 -docdir | --docdir | --docdi | --doc | --do)
922 ac_prev=docdir ;;
923 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
924 docdir=$ac_optarg ;;
925
926 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
927 ac_prev=dvidir ;;
928 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
929 dvidir=$ac_optarg ;;
930
931 -enable-* | --enable-*)
932 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
933 # Reject names that are not valid shell variable names.
934 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
935 as_fn_error $? "invalid feature name: $ac_useropt"
936 ac_useropt_orig=$ac_useropt
937 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
938 case $ac_user_opts in
939 *"
940 "enable_$ac_useropt"
941 "*) ;;
942 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
943 ac_unrecognized_sep=', ';;
944 esac
945 eval enable_$ac_useropt=\$ac_optarg ;;
946
947 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
948 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
949 | --exec | --exe | --ex)
950 ac_prev=exec_prefix ;;
951 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
952 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
953 | --exec=* | --exe=* | --ex=*)
954 exec_prefix=$ac_optarg ;;
955
956 -gas | --gas | --ga | --g)
957 # Obsolete; use --with-gas.
958 with_gas=yes ;;
959
960 -help | --help | --hel | --he | -h)
961 ac_init_help=long ;;
962 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
963 ac_init_help=recursive ;;
964 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
965 ac_init_help=short ;;
966
967 -host | --host | --hos | --ho)
968 ac_prev=host_alias ;;
969 -host=* | --host=* | --hos=* | --ho=*)
970 host_alias=$ac_optarg ;;
971
972 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
973 ac_prev=htmldir ;;
974 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
975 | --ht=*)
976 htmldir=$ac_optarg ;;
977
978 -includedir | --includedir | --includedi | --included | --include \
979 | --includ | --inclu | --incl | --inc)
980 ac_prev=includedir ;;
981 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
982 | --includ=* | --inclu=* | --incl=* | --inc=*)
983 includedir=$ac_optarg ;;
984
985 -infodir | --infodir | --infodi | --infod | --info | --inf)
986 ac_prev=infodir ;;
987 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
988 infodir=$ac_optarg ;;
989
990 -libdir | --libdir | --libdi | --libd)
991 ac_prev=libdir ;;
992 -libdir=* | --libdir=* | --libdi=* | --libd=*)
993 libdir=$ac_optarg ;;
994
995 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
996 | --libexe | --libex | --libe)
997 ac_prev=libexecdir ;;
998 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
999 | --libexe=* | --libex=* | --libe=*)
1000 libexecdir=$ac_optarg ;;
1001
1002 -localedir | --localedir | --localedi | --localed | --locale)
1003 ac_prev=localedir ;;
1004 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1005 localedir=$ac_optarg ;;
1006
1007 -localstatedir | --localstatedir | --localstatedi | --localstated \
1008 | --localstate | --localstat | --localsta | --localst | --locals)
1009 ac_prev=localstatedir ;;
1010 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1011 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1012 localstatedir=$ac_optarg ;;
1013
1014 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1015 ac_prev=mandir ;;
1016 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1017 mandir=$ac_optarg ;;
1018
1019 -nfp | --nfp | --nf)
1020 # Obsolete; use --without-fp.
1021 with_fp=no ;;
1022
1023 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1024 | --no-cr | --no-c | -n)
1025 no_create=yes ;;
1026
1027 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1028 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1029 no_recursion=yes ;;
1030
1031 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1032 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1033 | --oldin | --oldi | --old | --ol | --o)
1034 ac_prev=oldincludedir ;;
1035 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1036 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1037 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1038 oldincludedir=$ac_optarg ;;
1039
1040 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1041 ac_prev=prefix ;;
1042 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1043 prefix=$ac_optarg ;;
1044
1045 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1046 | --program-pre | --program-pr | --program-p)
1047 ac_prev=program_prefix ;;
1048 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1049 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1050 program_prefix=$ac_optarg ;;
1051
1052 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1053 | --program-suf | --program-su | --program-s)
1054 ac_prev=program_suffix ;;
1055 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1056 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1057 program_suffix=$ac_optarg ;;
1058
1059 -program-transform-name | --program-transform-name \
1060 | --program-transform-nam | --program-transform-na \
1061 | --program-transform-n | --program-transform- \
1062 | --program-transform | --program-transfor \
1063 | --program-transfo | --program-transf \
1064 | --program-trans | --program-tran \
1065 | --progr-tra | --program-tr | --program-t)
1066 ac_prev=program_transform_name ;;
1067 -program-transform-name=* | --program-transform-name=* \
1068 | --program-transform-nam=* | --program-transform-na=* \
1069 | --program-transform-n=* | --program-transform-=* \
1070 | --program-transform=* | --program-transfor=* \
1071 | --program-transfo=* | --program-transf=* \
1072 | --program-trans=* | --program-tran=* \
1073 | --progr-tra=* | --program-tr=* | --program-t=*)
1074 program_transform_name=$ac_optarg ;;
1075
1076 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1077 ac_prev=pdfdir ;;
1078 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1079 pdfdir=$ac_optarg ;;
1080
1081 -psdir | --psdir | --psdi | --psd | --ps)
1082 ac_prev=psdir ;;
1083 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1084 psdir=$ac_optarg ;;
1085
1086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1087 | -silent | --silent | --silen | --sile | --sil)
1088 silent=yes ;;
1089
1090 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1091 ac_prev=sbindir ;;
1092 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1093 | --sbi=* | --sb=*)
1094 sbindir=$ac_optarg ;;
1095
1096 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1097 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1098 | --sharedst | --shareds | --shared | --share | --shar \
1099 | --sha | --sh)
1100 ac_prev=sharedstatedir ;;
1101 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1102 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1103 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1104 | --sha=* | --sh=*)
1105 sharedstatedir=$ac_optarg ;;
1106
1107 -site | --site | --sit)
1108 ac_prev=site ;;
1109 -site=* | --site=* | --sit=*)
1110 site=$ac_optarg ;;
1111
1112 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1113 ac_prev=srcdir ;;
1114 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1115 srcdir=$ac_optarg ;;
1116
1117 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1118 | --syscon | --sysco | --sysc | --sys | --sy)
1119 ac_prev=sysconfdir ;;
1120 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1121 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1122 sysconfdir=$ac_optarg ;;
1123
1124 -target | --target | --targe | --targ | --tar | --ta | --t)
1125 ac_prev=target_alias ;;
1126 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1127 target_alias=$ac_optarg ;;
1128
1129 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1130 verbose=yes ;;
1131
1132 -version | --version | --versio | --versi | --vers | -V)
1133 ac_init_version=: ;;
1134
1135 -with-* | --with-*)
1136 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139 as_fn_error $? "invalid package name: $ac_useropt"
1140 ac_useropt_orig=$ac_useropt
1141 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1143 *"
1144 "with_$ac_useropt"
1145 "*) ;;
1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1147 ac_unrecognized_sep=', ';;
1148 esac
1149 eval with_$ac_useropt=\$ac_optarg ;;
1150
1151 -without-* | --without-*)
1152 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1153 # Reject names that are not valid shell variable names.
1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155 as_fn_error $? "invalid package name: $ac_useropt"
1156 ac_useropt_orig=$ac_useropt
1157 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158 case $ac_user_opts in
1159 *"
1160 "with_$ac_useropt"
1161 "*) ;;
1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1163 ac_unrecognized_sep=', ';;
1164 esac
1165 eval with_$ac_useropt=no ;;
1166
1167 --x)
1168 # Obsolete; use --with-x.
1169 with_x=yes ;;
1170
1171 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1172 | --x-incl | --x-inc | --x-in | --x-i)
1173 ac_prev=x_includes ;;
1174 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1175 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1176 x_includes=$ac_optarg ;;
1177
1178 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1179 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1180 ac_prev=x_libraries ;;
1181 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1182 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1183 x_libraries=$ac_optarg ;;
1184
1185 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1186 Try \`$0 --help' for more information"
1187 ;;
1188
1189 *=*)
1190 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1191 # Reject names that are not valid shell variable names.
1192 case $ac_envvar in #(
1193 '' | [0-9]* | *[!_$as_cr_alnum]* )
1194 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1195 esac
1196 eval $ac_envvar=\$ac_optarg
1197 export $ac_envvar ;;
1198
1199 *)
1200 # FIXME: should be removed in autoconf 3.0.
1201 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1202 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1203 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1204 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1205 ;;
1206
1207 esac
1208 done
1209
1210 if test -n "$ac_prev"; then
1211 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1212 as_fn_error $? "missing argument to $ac_option"
1213 fi
1214
1215 if test -n "$ac_unrecognized_opts"; then
1216 case $enable_option_checking in
1217 no) ;;
1218 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1219 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1220 esac
1221 fi
1222
1223 # Check all directory arguments for consistency.
1224 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1225 datadir sysconfdir sharedstatedir localstatedir includedir \
1226 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1227 libdir localedir mandir
1228 do
1229 eval ac_val=\$$ac_var
1230 # Remove trailing slashes.
1231 case $ac_val in
1232 */ )
1233 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1234 eval $ac_var=\$ac_val;;
1235 esac
1236 # Be sure to have absolute directory names.
1237 case $ac_val in
1238 [\\/$]* | ?:[\\/]* ) continue;;
1239 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1240 esac
1241 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1242 done
1243
1244 # There might be people who depend on the old broken behavior: `$host'
1245 # used to hold the argument of --host etc.
1246 # FIXME: To remove some day.
1247 build=$build_alias
1248 host=$host_alias
1249 target=$target_alias
1250
1251 # FIXME: To remove some day.
1252 if test "x$host_alias" != x; then
1253 if test "x$build_alias" = x; then
1254 cross_compiling=maybe
1255 elif test "x$build_alias" != "x$host_alias"; then
1256 cross_compiling=yes
1257 fi
1258 fi
1259
1260 ac_tool_prefix=
1261 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1262
1263 test "$silent" = yes && exec 6>/dev/null
1264
1265
1266 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1267 ac_ls_di=`ls -di .` &&
1268 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1269 as_fn_error $? "working directory cannot be determined"
1270 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1271 as_fn_error $? "pwd does not report name of working directory"
1272
1273
1274 # Find the source files, if location was not specified.
1275 if test -z "$srcdir"; then
1276 ac_srcdir_defaulted=yes
1277 # Try the directory containing this script, then the parent directory.
1278 ac_confdir=`$as_dirname -- "$as_myself" ||
1279 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1280 X"$as_myself" : 'X\(//\)[^/]' \| \
1281 X"$as_myself" : 'X\(//\)$' \| \
1282 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1283 $as_echo X"$as_myself" |
1284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1285 s//\1/
1286 q
1287 }
1288 /^X\(\/\/\)[^/].*/{
1289 s//\1/
1290 q
1291 }
1292 /^X\(\/\/\)$/{
1293 s//\1/
1294 q
1295 }
1296 /^X\(\/\).*/{
1297 s//\1/
1298 q
1299 }
1300 s/.*/./; q'`
1301 srcdir=$ac_confdir
1302 if test ! -r "$srcdir/$ac_unique_file"; then
1303 srcdir=..
1304 fi
1305 else
1306 ac_srcdir_defaulted=no
1307 fi
1308 if test ! -r "$srcdir/$ac_unique_file"; then
1309 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1310 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1311 fi
1312 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1313 ac_abs_confdir=`(
1314 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1315 pwd)`
1316 # When building in place, set srcdir=.
1317 if test "$ac_abs_confdir" = "$ac_pwd"; then
1318 srcdir=.
1319 fi
1320 # Remove unnecessary trailing slashes from srcdir.
1321 # Double slashes in file names in object file debugging info
1322 # mess up M-x gdb in Emacs.
1323 case $srcdir in
1324 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1325 esac
1326 for ac_var in $ac_precious_vars; do
1327 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1328 eval ac_env_${ac_var}_value=\$${ac_var}
1329 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1330 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1331 done
1332
1333 #
1334 # Report the --help message.
1335 #
1336 if test "$ac_init_help" = "long"; then
1337 # Omit some internal or obsolete options to make the list less imposing.
1338 # This message is too long to be a string in the A/UX 3.1 sh.
1339 cat <<_ACEOF
1340 \`configure' configures this package to adapt to many kinds of systems.
1341
1342 Usage: $0 [OPTION]... [VAR=VALUE]...
1343
1344 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1345 VAR=VALUE. See below for descriptions of some of the useful variables.
1346
1347 Defaults for the options are specified in brackets.
1348
1349 Configuration:
1350 -h, --help display this help and exit
1351 --help=short display options specific to this package
1352 --help=recursive display the short help of all the included packages
1353 -V, --version display version information and exit
1354 -q, --quiet, --silent do not print \`checking ...' messages
1355 --cache-file=FILE cache test results in FILE [disabled]
1356 -C, --config-cache alias for \`--cache-file=config.cache'
1357 -n, --no-create do not create output files
1358 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1359
1360 Installation directories:
1361 --prefix=PREFIX install architecture-independent files in PREFIX
1362 [$ac_default_prefix]
1363 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1364 [PREFIX]
1365
1366 By default, \`make install' will install all the files in
1367 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1368 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1369 for instance \`--prefix=\$HOME'.
1370
1371 For better control, use the options below.
1372
1373 Fine tuning of the installation directories:
1374 --bindir=DIR user executables [EPREFIX/bin]
1375 --sbindir=DIR system admin executables [EPREFIX/sbin]
1376 --libexecdir=DIR program executables [EPREFIX/libexec]
1377 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1378 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1379 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1380 --libdir=DIR object code libraries [EPREFIX/lib]
1381 --includedir=DIR C header files [PREFIX/include]
1382 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1383 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1384 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1385 --infodir=DIR info documentation [DATAROOTDIR/info]
1386 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1387 --mandir=DIR man documentation [DATAROOTDIR/man]
1388 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1389 --htmldir=DIR html documentation [DOCDIR]
1390 --dvidir=DIR dvi documentation [DOCDIR]
1391 --pdfdir=DIR pdf documentation [DOCDIR]
1392 --psdir=DIR ps documentation [DOCDIR]
1393 _ACEOF
1394
1395 cat <<\_ACEOF
1396
1397 Program names:
1398 --program-prefix=PREFIX prepend PREFIX to installed program names
1399 --program-suffix=SUFFIX append SUFFIX to installed program names
1400 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1401
1402 System types:
1403 --build=BUILD configure for building on BUILD [guessed]
1404 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1405 --target=TARGET configure for building compilers for TARGET [HOST]
1406 _ACEOF
1407 fi
1408
1409 if test -n "$ac_init_help"; then
1410
1411 cat <<\_ACEOF
1412
1413 Optional Features:
1414 --disable-option-checking ignore unrecognized --enable/--with options
1415 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1416 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1417 --enable-plugins Enable support for plugins
1418 --enable-shared[=PKGS] build shared libraries [default=yes]
1419 --enable-static[=PKGS] build static libraries [default=yes]
1420 --enable-fast-install[=PKGS]
1421 optimize for fast installation [default=yes]
1422 --disable-libtool-lock avoid locking (might break parallel builds)
1423 --enable-maintainer-mode
1424 enable make rules and dependencies not useful (and
1425 sometimes confusing) to the casual installer
1426 --enable-sim-debug=opts Enable debugging flags (for developers of the sim
1427 itself)
1428 --enable-sim-stdio Specify whether to use stdio for console
1429 input/output
1430 --enable-sim-trace=opts Enable tracing of simulated programs
1431 --enable-sim-profile=opts
1432 Enable profiling flags
1433 --enable-sim-environment=environment
1434 Specify mixed, user, virtual or operating
1435 environment
1436 --enable-sim-inline=inlines
1437 Specify which functions should be inlined
1438 --enable-sim-endian=endian
1439 Specify target byte endian orientation
1440 --enable-sim-alignment=align
1441 Specify strict, nonstrict or forced alignment of
1442 memory accesses
1443 --enable-sim-reserved-bits
1444 Specify whether to check reserved bits in
1445 instruction
1446 --enable-sim-bitsize=N Specify target bitsize (32 or 64)
1447 --enable-werror treat compile warnings as errors
1448 --enable-build-warnings enable build-time compiler warnings if gcc is used
1449 --enable-sim-build-warnings
1450 enable SIM specific build-time compiler warnings if
1451 gcc is used
1452 --enable-sim-hardware=LIST
1453 Specify the hardware to be included in the build.
1454
1455 Optional Packages:
1456 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1457 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1458 --with-system-zlib use installed libz
1459 --with-pic try to use only PIC/non-PIC objects [default=use
1460 both]
1461 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1462 --with-pkgversion=PKG Use PKG in the version string in place of "SIM"
1463 --with-bugurl=URL Direct users to URL to report a bug
1464
1465 Some influential environment variables:
1466 CC C compiler command
1467 CFLAGS C compiler flags
1468 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1469 nonstandard directory <lib dir>
1470 LIBS libraries to pass to the linker, e.g. -l<library>
1471 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1472 you have headers in a nonstandard directory <include dir>
1473 CPP C preprocessor
1474
1475 Use these variables to override the choices made by `configure' or to help
1476 it to find libraries and programs with nonstandard names/locations.
1477
1478 Report bugs to the package provider.
1479 _ACEOF
1480 ac_status=$?
1481 fi
1482
1483 if test "$ac_init_help" = "recursive"; then
1484 # If there are subdirs, report their specific --help.
1485 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1486 test -d "$ac_dir" ||
1487 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1488 continue
1489 ac_builddir=.
1490
1491 case "$ac_dir" in
1492 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493 *)
1494 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1495 # A ".." for each directory in $ac_dir_suffix.
1496 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1497 case $ac_top_builddir_sub in
1498 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1500 esac ;;
1501 esac
1502 ac_abs_top_builddir=$ac_pwd
1503 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1504 # for backward compatibility:
1505 ac_top_builddir=$ac_top_build_prefix
1506
1507 case $srcdir in
1508 .) # We are building in place.
1509 ac_srcdir=.
1510 ac_top_srcdir=$ac_top_builddir_sub
1511 ac_abs_top_srcdir=$ac_pwd ;;
1512 [\\/]* | ?:[\\/]* ) # Absolute name.
1513 ac_srcdir=$srcdir$ac_dir_suffix;
1514 ac_top_srcdir=$srcdir
1515 ac_abs_top_srcdir=$srcdir ;;
1516 *) # Relative name.
1517 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1518 ac_top_srcdir=$ac_top_build_prefix$srcdir
1519 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1520 esac
1521 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1522
1523 cd "$ac_dir" || { ac_status=$?; continue; }
1524 # Check for guested configure.
1525 if test -f "$ac_srcdir/configure.gnu"; then
1526 echo &&
1527 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1528 elif test -f "$ac_srcdir/configure"; then
1529 echo &&
1530 $SHELL "$ac_srcdir/configure" --help=recursive
1531 else
1532 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1533 fi || ac_status=$?
1534 cd "$ac_pwd" || { ac_status=$?; break; }
1535 done
1536 fi
1537
1538 test -n "$ac_init_help" && exit $ac_status
1539 if $ac_init_version; then
1540 cat <<\_ACEOF
1541 configure
1542 generated by GNU Autoconf 2.69
1543
1544 Copyright (C) 2012 Free Software Foundation, Inc.
1545 This configure script is free software; the Free Software Foundation
1546 gives unlimited permission to copy, distribute and modify it.
1547 _ACEOF
1548 exit
1549 fi
1550
1551 ## ------------------------ ##
1552 ## Autoconf initialization. ##
1553 ## ------------------------ ##
1554
1555 # ac_fn_c_try_compile LINENO
1556 # --------------------------
1557 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1558 ac_fn_c_try_compile ()
1559 {
1560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1561 rm -f conftest.$ac_objext
1562 if { { ac_try="$ac_compile"
1563 case "(($ac_try" in
1564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1565 *) ac_try_echo=$ac_try;;
1566 esac
1567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1568 $as_echo "$ac_try_echo"; } >&5
1569 (eval "$ac_compile") 2>conftest.err
1570 ac_status=$?
1571 if test -s conftest.err; then
1572 grep -v '^ *+' conftest.err >conftest.er1
1573 cat conftest.er1 >&5
1574 mv -f conftest.er1 conftest.err
1575 fi
1576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1577 test $ac_status = 0; } && {
1578 test -z "$ac_c_werror_flag" ||
1579 test ! -s conftest.err
1580 } && test -s conftest.$ac_objext; then :
1581 ac_retval=0
1582 else
1583 $as_echo "$as_me: failed program was:" >&5
1584 sed 's/^/| /' conftest.$ac_ext >&5
1585
1586 ac_retval=1
1587 fi
1588 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1589 as_fn_set_status $ac_retval
1590
1591 } # ac_fn_c_try_compile
1592
1593 # ac_fn_c_try_cpp LINENO
1594 # ----------------------
1595 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1596 ac_fn_c_try_cpp ()
1597 {
1598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599 if { { ac_try="$ac_cpp conftest.$ac_ext"
1600 case "(($ac_try" in
1601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602 *) ac_try_echo=$ac_try;;
1603 esac
1604 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605 $as_echo "$ac_try_echo"; } >&5
1606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1607 ac_status=$?
1608 if test -s conftest.err; then
1609 grep -v '^ *+' conftest.err >conftest.er1
1610 cat conftest.er1 >&5
1611 mv -f conftest.er1 conftest.err
1612 fi
1613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614 test $ac_status = 0; } > conftest.i && {
1615 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1616 test ! -s conftest.err
1617 }; then :
1618 ac_retval=0
1619 else
1620 $as_echo "$as_me: failed program was:" >&5
1621 sed 's/^/| /' conftest.$ac_ext >&5
1622
1623 ac_retval=1
1624 fi
1625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1626 as_fn_set_status $ac_retval
1627
1628 } # ac_fn_c_try_cpp
1629
1630 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1631 # -------------------------------------------------------
1632 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1633 # the include files in INCLUDES and setting the cache variable VAR
1634 # accordingly.
1635 ac_fn_c_check_header_mongrel ()
1636 {
1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638 if eval \${$3+:} false; then :
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1640 $as_echo_n "checking for $2... " >&6; }
1641 if eval \${$3+:} false; then :
1642 $as_echo_n "(cached) " >&6
1643 fi
1644 eval ac_res=\$$3
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1646 $as_echo "$ac_res" >&6; }
1647 else
1648 # Is the header compilable?
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1650 $as_echo_n "checking $2 usability... " >&6; }
1651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1652 /* end confdefs.h. */
1653 $4
1654 #include <$2>
1655 _ACEOF
1656 if ac_fn_c_try_compile "$LINENO"; then :
1657 ac_header_compiler=yes
1658 else
1659 ac_header_compiler=no
1660 fi
1661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1663 $as_echo "$ac_header_compiler" >&6; }
1664
1665 # Is the header present?
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1667 $as_echo_n "checking $2 presence... " >&6; }
1668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1669 /* end confdefs.h. */
1670 #include <$2>
1671 _ACEOF
1672 if ac_fn_c_try_cpp "$LINENO"; then :
1673 ac_header_preproc=yes
1674 else
1675 ac_header_preproc=no
1676 fi
1677 rm -f conftest.err conftest.i conftest.$ac_ext
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1679 $as_echo "$ac_header_preproc" >&6; }
1680
1681 # So? What about this header?
1682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1683 yes:no: )
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1685 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1687 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1688 ;;
1689 no:yes:* )
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1691 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1693 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1695 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1697 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1699 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1700 ;;
1701 esac
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1703 $as_echo_n "checking for $2... " >&6; }
1704 if eval \${$3+:} false; then :
1705 $as_echo_n "(cached) " >&6
1706 else
1707 eval "$3=\$ac_header_compiler"
1708 fi
1709 eval ac_res=\$$3
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1711 $as_echo "$ac_res" >&6; }
1712 fi
1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714
1715 } # ac_fn_c_check_header_mongrel
1716
1717 # ac_fn_c_try_run LINENO
1718 # ----------------------
1719 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1720 # that executables *can* be run.
1721 ac_fn_c_try_run ()
1722 {
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 if { { ac_try="$ac_link"
1725 case "(($ac_try" in
1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727 *) ac_try_echo=$ac_try;;
1728 esac
1729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730 $as_echo "$ac_try_echo"; } >&5
1731 (eval "$ac_link") 2>&5
1732 ac_status=$?
1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1735 { { case "(($ac_try" in
1736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1737 *) ac_try_echo=$ac_try;;
1738 esac
1739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740 $as_echo "$ac_try_echo"; } >&5
1741 (eval "$ac_try") 2>&5
1742 ac_status=$?
1743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744 test $ac_status = 0; }; }; then :
1745 ac_retval=0
1746 else
1747 $as_echo "$as_me: program exited with status $ac_status" >&5
1748 $as_echo "$as_me: failed program was:" >&5
1749 sed 's/^/| /' conftest.$ac_ext >&5
1750
1751 ac_retval=$ac_status
1752 fi
1753 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1754 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1755 as_fn_set_status $ac_retval
1756
1757 } # ac_fn_c_try_run
1758
1759 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1760 # -------------------------------------------------------
1761 # Tests whether HEADER exists and can be compiled using the include files in
1762 # INCLUDES, setting the cache variable VAR accordingly.
1763 ac_fn_c_check_header_compile ()
1764 {
1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1767 $as_echo_n "checking for $2... " >&6; }
1768 if eval \${$3+:} false; then :
1769 $as_echo_n "(cached) " >&6
1770 else
1771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1772 /* end confdefs.h. */
1773 $4
1774 #include <$2>
1775 _ACEOF
1776 if ac_fn_c_try_compile "$LINENO"; then :
1777 eval "$3=yes"
1778 else
1779 eval "$3=no"
1780 fi
1781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1782 fi
1783 eval ac_res=\$$3
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1785 $as_echo "$ac_res" >&6; }
1786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787
1788 } # ac_fn_c_check_header_compile
1789
1790 # ac_fn_c_try_link LINENO
1791 # -----------------------
1792 # Try to link conftest.$ac_ext, and return whether this succeeded.
1793 ac_fn_c_try_link ()
1794 {
1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796 rm -f conftest.$ac_objext conftest$ac_exeext
1797 if { { ac_try="$ac_link"
1798 case "(($ac_try" in
1799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800 *) ac_try_echo=$ac_try;;
1801 esac
1802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803 $as_echo "$ac_try_echo"; } >&5
1804 (eval "$ac_link") 2>conftest.err
1805 ac_status=$?
1806 if test -s conftest.err; then
1807 grep -v '^ *+' conftest.err >conftest.er1
1808 cat conftest.er1 >&5
1809 mv -f conftest.er1 conftest.err
1810 fi
1811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812 test $ac_status = 0; } && {
1813 test -z "$ac_c_werror_flag" ||
1814 test ! -s conftest.err
1815 } && test -s conftest$ac_exeext && {
1816 test "$cross_compiling" = yes ||
1817 test -x conftest$ac_exeext
1818 }; then :
1819 ac_retval=0
1820 else
1821 $as_echo "$as_me: failed program was:" >&5
1822 sed 's/^/| /' conftest.$ac_ext >&5
1823
1824 ac_retval=1
1825 fi
1826 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1827 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1828 # interfere with the next link command; also delete a directory that is
1829 # left behind by Apple's compiler. We do this before executing the actions.
1830 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832 as_fn_set_status $ac_retval
1833
1834 } # ac_fn_c_try_link
1835
1836 # ac_fn_c_check_func LINENO FUNC VAR
1837 # ----------------------------------
1838 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1839 ac_fn_c_check_func ()
1840 {
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1843 $as_echo_n "checking for $2... " >&6; }
1844 if eval \${$3+:} false; then :
1845 $as_echo_n "(cached) " >&6
1846 else
1847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1848 /* end confdefs.h. */
1849 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1851 #define $2 innocuous_$2
1852
1853 /* System header to define __stub macros and hopefully few prototypes,
1854 which can conflict with char $2 (); below.
1855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1856 <limits.h> exists even on freestanding compilers. */
1857
1858 #ifdef __STDC__
1859 # include <limits.h>
1860 #else
1861 # include <assert.h>
1862 #endif
1863
1864 #undef $2
1865
1866 /* Override any GCC internal prototype to avoid an error.
1867 Use char because int might match the return type of a GCC
1868 builtin and then its argument prototype would still apply. */
1869 #ifdef __cplusplus
1870 extern "C"
1871 #endif
1872 char $2 ();
1873 /* The GNU C library defines this for functions which it implements
1874 to always fail with ENOSYS. Some functions are actually named
1875 something starting with __ and the normal name is an alias. */
1876 #if defined __stub_$2 || defined __stub___$2
1877 choke me
1878 #endif
1879
1880 int
1881 main ()
1882 {
1883 return $2 ();
1884 ;
1885 return 0;
1886 }
1887 _ACEOF
1888 if ac_fn_c_try_link "$LINENO"; then :
1889 eval "$3=yes"
1890 else
1891 eval "$3=no"
1892 fi
1893 rm -f core conftest.err conftest.$ac_objext \
1894 conftest$ac_exeext conftest.$ac_ext
1895 fi
1896 eval ac_res=\$$3
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1898 $as_echo "$ac_res" >&6; }
1899 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1900
1901 } # ac_fn_c_check_func
1902 cat >config.log <<_ACEOF
1903 This file contains any messages produced by compilers while
1904 running configure, to aid debugging if configure makes a mistake.
1905
1906 It was created by $as_me, which was
1907 generated by GNU Autoconf 2.69. Invocation command line was
1908
1909 $ $0 $@
1910
1911 _ACEOF
1912 exec 5>>config.log
1913 {
1914 cat <<_ASUNAME
1915 ## --------- ##
1916 ## Platform. ##
1917 ## --------- ##
1918
1919 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1920 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1921 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1922 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1923 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1924
1925 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1926 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1927
1928 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1929 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1930 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1931 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1932 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1933 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1934 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1935
1936 _ASUNAME
1937
1938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1939 for as_dir in $PATH
1940 do
1941 IFS=$as_save_IFS
1942 test -z "$as_dir" && as_dir=.
1943 $as_echo "PATH: $as_dir"
1944 done
1945 IFS=$as_save_IFS
1946
1947 } >&5
1948
1949 cat >&5 <<_ACEOF
1950
1951
1952 ## ----------- ##
1953 ## Core tests. ##
1954 ## ----------- ##
1955
1956 _ACEOF
1957
1958
1959 # Keep a trace of the command line.
1960 # Strip out --no-create and --no-recursion so they do not pile up.
1961 # Strip out --silent because we don't want to record it for future runs.
1962 # Also quote any args containing shell meta-characters.
1963 # Make two passes to allow for proper duplicate-argument suppression.
1964 ac_configure_args=
1965 ac_configure_args0=
1966 ac_configure_args1=
1967 ac_must_keep_next=false
1968 for ac_pass in 1 2
1969 do
1970 for ac_arg
1971 do
1972 case $ac_arg in
1973 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1974 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1975 | -silent | --silent | --silen | --sile | --sil)
1976 continue ;;
1977 *\'*)
1978 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1979 esac
1980 case $ac_pass in
1981 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1982 2)
1983 as_fn_append ac_configure_args1 " '$ac_arg'"
1984 if test $ac_must_keep_next = true; then
1985 ac_must_keep_next=false # Got value, back to normal.
1986 else
1987 case $ac_arg in
1988 *=* | --config-cache | -C | -disable-* | --disable-* \
1989 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1990 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1991 | -with-* | --with-* | -without-* | --without-* | --x)
1992 case "$ac_configure_args0 " in
1993 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1994 esac
1995 ;;
1996 -* ) ac_must_keep_next=true ;;
1997 esac
1998 fi
1999 as_fn_append ac_configure_args " '$ac_arg'"
2000 ;;
2001 esac
2002 done
2003 done
2004 { ac_configure_args0=; unset ac_configure_args0;}
2005 { ac_configure_args1=; unset ac_configure_args1;}
2006
2007 # When interrupted or exit'd, cleanup temporary files, and complete
2008 # config.log. We remove comments because anyway the quotes in there
2009 # would cause problems or look ugly.
2010 # WARNING: Use '\'' to represent an apostrophe within the trap.
2011 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2012 trap 'exit_status=$?
2013 # Save into config.log some information that might help in debugging.
2014 {
2015 echo
2016
2017 $as_echo "## ---------------- ##
2018 ## Cache variables. ##
2019 ## ---------------- ##"
2020 echo
2021 # The following way of writing the cache mishandles newlines in values,
2022 (
2023 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2024 eval ac_val=\$$ac_var
2025 case $ac_val in #(
2026 *${as_nl}*)
2027 case $ac_var in #(
2028 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2029 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2030 esac
2031 case $ac_var in #(
2032 _ | IFS | as_nl) ;; #(
2033 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2034 *) { eval $ac_var=; unset $ac_var;} ;;
2035 esac ;;
2036 esac
2037 done
2038 (set) 2>&1 |
2039 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2040 *${as_nl}ac_space=\ *)
2041 sed -n \
2042 "s/'\''/'\''\\\\'\'''\''/g;
2043 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2044 ;; #(
2045 *)
2046 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2047 ;;
2048 esac |
2049 sort
2050 )
2051 echo
2052
2053 $as_echo "## ----------------- ##
2054 ## Output variables. ##
2055 ## ----------------- ##"
2056 echo
2057 for ac_var in $ac_subst_vars
2058 do
2059 eval ac_val=\$$ac_var
2060 case $ac_val in
2061 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2062 esac
2063 $as_echo "$ac_var='\''$ac_val'\''"
2064 done | sort
2065 echo
2066
2067 if test -n "$ac_subst_files"; then
2068 $as_echo "## ------------------- ##
2069 ## File substitutions. ##
2070 ## ------------------- ##"
2071 echo
2072 for ac_var in $ac_subst_files
2073 do
2074 eval ac_val=\$$ac_var
2075 case $ac_val in
2076 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2077 esac
2078 $as_echo "$ac_var='\''$ac_val'\''"
2079 done | sort
2080 echo
2081 fi
2082
2083 if test -s confdefs.h; then
2084 $as_echo "## ----------- ##
2085 ## confdefs.h. ##
2086 ## ----------- ##"
2087 echo
2088 cat confdefs.h
2089 echo
2090 fi
2091 test "$ac_signal" != 0 &&
2092 $as_echo "$as_me: caught signal $ac_signal"
2093 $as_echo "$as_me: exit $exit_status"
2094 } >&5
2095 rm -f core *.core core.conftest.* &&
2096 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2097 exit $exit_status
2098 ' 0
2099 for ac_signal in 1 2 13 15; do
2100 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2101 done
2102 ac_signal=0
2103
2104 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2105 rm -f -r conftest* confdefs.h
2106
2107 $as_echo "/* confdefs.h */" > confdefs.h
2108
2109 # Predefined preprocessor variables.
2110
2111 cat >>confdefs.h <<_ACEOF
2112 #define PACKAGE_NAME "$PACKAGE_NAME"
2113 _ACEOF
2114
2115 cat >>confdefs.h <<_ACEOF
2116 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2117 _ACEOF
2118
2119 cat >>confdefs.h <<_ACEOF
2120 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2121 _ACEOF
2122
2123 cat >>confdefs.h <<_ACEOF
2124 #define PACKAGE_STRING "$PACKAGE_STRING"
2125 _ACEOF
2126
2127 cat >>confdefs.h <<_ACEOF
2128 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2129 _ACEOF
2130
2131 cat >>confdefs.h <<_ACEOF
2132 #define PACKAGE_URL "$PACKAGE_URL"
2133 _ACEOF
2134
2135
2136 # Let the site file select an alternate cache file if it wants to.
2137 # Prefer an explicitly selected file to automatically selected ones.
2138 ac_site_file1=NONE
2139 ac_site_file2=NONE
2140 if test -n "$CONFIG_SITE"; then
2141 # We do not want a PATH search for config.site.
2142 case $CONFIG_SITE in #((
2143 -*) ac_site_file1=./$CONFIG_SITE;;
2144 */*) ac_site_file1=$CONFIG_SITE;;
2145 *) ac_site_file1=./$CONFIG_SITE;;
2146 esac
2147 elif test "x$prefix" != xNONE; then
2148 ac_site_file1=$prefix/share/config.site
2149 ac_site_file2=$prefix/etc/config.site
2150 else
2151 ac_site_file1=$ac_default_prefix/share/config.site
2152 ac_site_file2=$ac_default_prefix/etc/config.site
2153 fi
2154 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2155 do
2156 test "x$ac_site_file" = xNONE && continue
2157 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2159 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2160 sed 's/^/| /' "$ac_site_file" >&5
2161 . "$ac_site_file" \
2162 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2164 as_fn_error $? "failed to load site script $ac_site_file
2165 See \`config.log' for more details" "$LINENO" 5; }
2166 fi
2167 done
2168
2169 if test -r "$cache_file"; then
2170 # Some versions of bash will fail to source /dev/null (special files
2171 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2172 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2174 $as_echo "$as_me: loading cache $cache_file" >&6;}
2175 case $cache_file in
2176 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2177 *) . "./$cache_file";;
2178 esac
2179 fi
2180 else
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2182 $as_echo "$as_me: creating cache $cache_file" >&6;}
2183 >$cache_file
2184 fi
2185
2186 # Check that the precious variables saved in the cache have kept the same
2187 # value.
2188 ac_cache_corrupted=false
2189 for ac_var in $ac_precious_vars; do
2190 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2191 eval ac_new_set=\$ac_env_${ac_var}_set
2192 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2193 eval ac_new_val=\$ac_env_${ac_var}_value
2194 case $ac_old_set,$ac_new_set in
2195 set,)
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2197 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2198 ac_cache_corrupted=: ;;
2199 ,set)
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2201 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2202 ac_cache_corrupted=: ;;
2203 ,);;
2204 *)
2205 if test "x$ac_old_val" != "x$ac_new_val"; then
2206 # differences in whitespace do not lead to failure.
2207 ac_old_val_w=`echo x $ac_old_val`
2208 ac_new_val_w=`echo x $ac_new_val`
2209 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2211 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2212 ac_cache_corrupted=:
2213 else
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2215 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2216 eval $ac_var=\$ac_old_val
2217 fi
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2219 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2221 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2222 fi;;
2223 esac
2224 # Pass precious variables to config.status.
2225 if test "$ac_new_set" = set; then
2226 case $ac_new_val in
2227 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2228 *) ac_arg=$ac_var=$ac_new_val ;;
2229 esac
2230 case " $ac_configure_args " in
2231 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2232 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2233 esac
2234 fi
2235 done
2236 if $ac_cache_corrupted; then
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2238 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2240 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2241 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2242 fi
2243 ## -------------------- ##
2244 ## Main body of script. ##
2245 ## -------------------- ##
2246
2247 ac_ext=c
2248 ac_cpp='$CPP $CPPFLAGS'
2249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2252
2253
2254
2255
2256
2257
2258
2259 ac_aux_dir=
2260 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2261 if test -f "$ac_dir/install-sh"; then
2262 ac_aux_dir=$ac_dir
2263 ac_install_sh="$ac_aux_dir/install-sh -c"
2264 break
2265 elif test -f "$ac_dir/install.sh"; then
2266 ac_aux_dir=$ac_dir
2267 ac_install_sh="$ac_aux_dir/install.sh -c"
2268 break
2269 elif test -f "$ac_dir/shtool"; then
2270 ac_aux_dir=$ac_dir
2271 ac_install_sh="$ac_aux_dir/shtool install -c"
2272 break
2273 fi
2274 done
2275 if test -z "$ac_aux_dir"; then
2276 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2277 fi
2278
2279 # These three variables are undocumented and unsupported,
2280 # and are intended to be withdrawn in a future Autoconf release.
2281 # They can cause serious problems if a builder's source tree is in a directory
2282 # whose full name contains unusual characters.
2283 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2284 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2285 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2286
2287
2288 # Make sure we can run config.sub.
2289 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2290 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2291
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2293 $as_echo_n "checking build system type... " >&6; }
2294 if ${ac_cv_build+:} false; then :
2295 $as_echo_n "(cached) " >&6
2296 else
2297 ac_build_alias=$build_alias
2298 test "x$ac_build_alias" = x &&
2299 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2300 test "x$ac_build_alias" = x &&
2301 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2302 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2303 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2304
2305 fi
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2307 $as_echo "$ac_cv_build" >&6; }
2308 case $ac_cv_build in
2309 *-*-*) ;;
2310 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2311 esac
2312 build=$ac_cv_build
2313 ac_save_IFS=$IFS; IFS='-'
2314 set x $ac_cv_build
2315 shift
2316 build_cpu=$1
2317 build_vendor=$2
2318 shift; shift
2319 # Remember, the first character of IFS is used to create $*,
2320 # except with old shells:
2321 build_os=$*
2322 IFS=$ac_save_IFS
2323 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2324
2325
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2327 $as_echo_n "checking host system type... " >&6; }
2328 if ${ac_cv_host+:} false; then :
2329 $as_echo_n "(cached) " >&6
2330 else
2331 if test "x$host_alias" = x; then
2332 ac_cv_host=$ac_cv_build
2333 else
2334 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2335 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2336 fi
2337
2338 fi
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2340 $as_echo "$ac_cv_host" >&6; }
2341 case $ac_cv_host in
2342 *-*-*) ;;
2343 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2344 esac
2345 host=$ac_cv_host
2346 ac_save_IFS=$IFS; IFS='-'
2347 set x $ac_cv_host
2348 shift
2349 host_cpu=$1
2350 host_vendor=$2
2351 shift; shift
2352 # Remember, the first character of IFS is used to create $*,
2353 # except with old shells:
2354 host_os=$*
2355 IFS=$ac_save_IFS
2356 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2357
2358
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2360 $as_echo_n "checking target system type... " >&6; }
2361 if ${ac_cv_target+:} false; then :
2362 $as_echo_n "(cached) " >&6
2363 else
2364 if test "x$target_alias" = x; then
2365 ac_cv_target=$ac_cv_host
2366 else
2367 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2368 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2369 fi
2370
2371 fi
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2373 $as_echo "$ac_cv_target" >&6; }
2374 case $ac_cv_target in
2375 *-*-*) ;;
2376 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2377 esac
2378 target=$ac_cv_target
2379 ac_save_IFS=$IFS; IFS='-'
2380 set x $ac_cv_target
2381 shift
2382 target_cpu=$1
2383 target_vendor=$2
2384 shift; shift
2385 # Remember, the first character of IFS is used to create $*,
2386 # except with old shells:
2387 target_os=$*
2388 IFS=$ac_save_IFS
2389 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2390
2391
2392 # The aliases save the names the user supplied, while $host etc.
2393 # will get canonicalized.
2394 test -n "$target_alias" &&
2395 test "$program_prefix$program_suffix$program_transform_name" = \
2396 NONENONEs,x,x, &&
2397 program_prefix=${target_alias}-
2398 ac_ext=c
2399 ac_cpp='$CPP $CPPFLAGS'
2400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2403 if test -n "$ac_tool_prefix"; then
2404 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2405 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2407 $as_echo_n "checking for $ac_word... " >&6; }
2408 if ${ac_cv_prog_CC+:} false; then :
2409 $as_echo_n "(cached) " >&6
2410 else
2411 if test -n "$CC"; then
2412 ac_cv_prog_CC="$CC" # Let the user override the test.
2413 else
2414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2415 for as_dir in $PATH
2416 do
2417 IFS=$as_save_IFS
2418 test -z "$as_dir" && as_dir=.
2419 for ac_exec_ext in '' $ac_executable_extensions; do
2420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2421 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2423 break 2
2424 fi
2425 done
2426 done
2427 IFS=$as_save_IFS
2428
2429 fi
2430 fi
2431 CC=$ac_cv_prog_CC
2432 if test -n "$CC"; then
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2434 $as_echo "$CC" >&6; }
2435 else
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2437 $as_echo "no" >&6; }
2438 fi
2439
2440
2441 fi
2442 if test -z "$ac_cv_prog_CC"; then
2443 ac_ct_CC=$CC
2444 # Extract the first word of "gcc", so it can be a program name with args.
2445 set dummy gcc; ac_word=$2
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2447 $as_echo_n "checking for $ac_word... " >&6; }
2448 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2449 $as_echo_n "(cached) " >&6
2450 else
2451 if test -n "$ac_ct_CC"; then
2452 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2453 else
2454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455 for as_dir in $PATH
2456 do
2457 IFS=$as_save_IFS
2458 test -z "$as_dir" && as_dir=.
2459 for ac_exec_ext in '' $ac_executable_extensions; do
2460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2461 ac_cv_prog_ac_ct_CC="gcc"
2462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2463 break 2
2464 fi
2465 done
2466 done
2467 IFS=$as_save_IFS
2468
2469 fi
2470 fi
2471 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2472 if test -n "$ac_ct_CC"; then
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2474 $as_echo "$ac_ct_CC" >&6; }
2475 else
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2477 $as_echo "no" >&6; }
2478 fi
2479
2480 if test "x$ac_ct_CC" = x; then
2481 CC=""
2482 else
2483 case $cross_compiling:$ac_tool_warned in
2484 yes:)
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2487 ac_tool_warned=yes ;;
2488 esac
2489 CC=$ac_ct_CC
2490 fi
2491 else
2492 CC="$ac_cv_prog_CC"
2493 fi
2494
2495 if test -z "$CC"; then
2496 if test -n "$ac_tool_prefix"; then
2497 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2498 set dummy ${ac_tool_prefix}cc; ac_word=$2
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2500 $as_echo_n "checking for $ac_word... " >&6; }
2501 if ${ac_cv_prog_CC+:} false; then :
2502 $as_echo_n "(cached) " >&6
2503 else
2504 if test -n "$CC"; then
2505 ac_cv_prog_CC="$CC" # Let the user override the test.
2506 else
2507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508 for as_dir in $PATH
2509 do
2510 IFS=$as_save_IFS
2511 test -z "$as_dir" && as_dir=.
2512 for ac_exec_ext in '' $ac_executable_extensions; do
2513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2514 ac_cv_prog_CC="${ac_tool_prefix}cc"
2515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2516 break 2
2517 fi
2518 done
2519 done
2520 IFS=$as_save_IFS
2521
2522 fi
2523 fi
2524 CC=$ac_cv_prog_CC
2525 if test -n "$CC"; then
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2527 $as_echo "$CC" >&6; }
2528 else
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2530 $as_echo "no" >&6; }
2531 fi
2532
2533
2534 fi
2535 fi
2536 if test -z "$CC"; then
2537 # Extract the first word of "cc", so it can be a program name with args.
2538 set dummy cc; ac_word=$2
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2540 $as_echo_n "checking for $ac_word... " >&6; }
2541 if ${ac_cv_prog_CC+:} false; then :
2542 $as_echo_n "(cached) " >&6
2543 else
2544 if test -n "$CC"; then
2545 ac_cv_prog_CC="$CC" # Let the user override the test.
2546 else
2547 ac_prog_rejected=no
2548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549 for as_dir in $PATH
2550 do
2551 IFS=$as_save_IFS
2552 test -z "$as_dir" && as_dir=.
2553 for ac_exec_ext in '' $ac_executable_extensions; do
2554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2555 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2556 ac_prog_rejected=yes
2557 continue
2558 fi
2559 ac_cv_prog_CC="cc"
2560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2561 break 2
2562 fi
2563 done
2564 done
2565 IFS=$as_save_IFS
2566
2567 if test $ac_prog_rejected = yes; then
2568 # We found a bogon in the path, so make sure we never use it.
2569 set dummy $ac_cv_prog_CC
2570 shift
2571 if test $# != 0; then
2572 # We chose a different compiler from the bogus one.
2573 # However, it has the same basename, so the bogon will be chosen
2574 # first if we set CC to just the basename; use the full file name.
2575 shift
2576 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2577 fi
2578 fi
2579 fi
2580 fi
2581 CC=$ac_cv_prog_CC
2582 if test -n "$CC"; then
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2584 $as_echo "$CC" >&6; }
2585 else
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2587 $as_echo "no" >&6; }
2588 fi
2589
2590
2591 fi
2592 if test -z "$CC"; then
2593 if test -n "$ac_tool_prefix"; then
2594 for ac_prog in cl.exe
2595 do
2596 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2597 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2599 $as_echo_n "checking for $ac_word... " >&6; }
2600 if ${ac_cv_prog_CC+:} false; then :
2601 $as_echo_n "(cached) " >&6
2602 else
2603 if test -n "$CC"; then
2604 ac_cv_prog_CC="$CC" # Let the user override the test.
2605 else
2606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607 for as_dir in $PATH
2608 do
2609 IFS=$as_save_IFS
2610 test -z "$as_dir" && as_dir=.
2611 for ac_exec_ext in '' $ac_executable_extensions; do
2612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2613 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2615 break 2
2616 fi
2617 done
2618 done
2619 IFS=$as_save_IFS
2620
2621 fi
2622 fi
2623 CC=$ac_cv_prog_CC
2624 if test -n "$CC"; then
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2626 $as_echo "$CC" >&6; }
2627 else
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2629 $as_echo "no" >&6; }
2630 fi
2631
2632
2633 test -n "$CC" && break
2634 done
2635 fi
2636 if test -z "$CC"; then
2637 ac_ct_CC=$CC
2638 for ac_prog in cl.exe
2639 do
2640 # Extract the first word of "$ac_prog", so it can be a program name with args.
2641 set dummy $ac_prog; ac_word=$2
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2643 $as_echo_n "checking for $ac_word... " >&6; }
2644 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2645 $as_echo_n "(cached) " >&6
2646 else
2647 if test -n "$ac_ct_CC"; then
2648 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2649 else
2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651 for as_dir in $PATH
2652 do
2653 IFS=$as_save_IFS
2654 test -z "$as_dir" && as_dir=.
2655 for ac_exec_ext in '' $ac_executable_extensions; do
2656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2657 ac_cv_prog_ac_ct_CC="$ac_prog"
2658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2659 break 2
2660 fi
2661 done
2662 done
2663 IFS=$as_save_IFS
2664
2665 fi
2666 fi
2667 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2668 if test -n "$ac_ct_CC"; then
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2670 $as_echo "$ac_ct_CC" >&6; }
2671 else
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2673 $as_echo "no" >&6; }
2674 fi
2675
2676
2677 test -n "$ac_ct_CC" && break
2678 done
2679
2680 if test "x$ac_ct_CC" = x; then
2681 CC=""
2682 else
2683 case $cross_compiling:$ac_tool_warned in
2684 yes:)
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2687 ac_tool_warned=yes ;;
2688 esac
2689 CC=$ac_ct_CC
2690 fi
2691 fi
2692
2693 fi
2694
2695
2696 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2697 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2698 as_fn_error $? "no acceptable C compiler found in \$PATH
2699 See \`config.log' for more details" "$LINENO" 5; }
2700
2701 # Provide some information about the compiler.
2702 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2703 set X $ac_compile
2704 ac_compiler=$2
2705 for ac_option in --version -v -V -qversion; do
2706 { { ac_try="$ac_compiler $ac_option >&5"
2707 case "(($ac_try" in
2708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2709 *) ac_try_echo=$ac_try;;
2710 esac
2711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2712 $as_echo "$ac_try_echo"; } >&5
2713 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2714 ac_status=$?
2715 if test -s conftest.err; then
2716 sed '10a\
2717 ... rest of stderr output deleted ...
2718 10q' conftest.err >conftest.er1
2719 cat conftest.er1 >&5
2720 fi
2721 rm -f conftest.er1 conftest.err
2722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2723 test $ac_status = 0; }
2724 done
2725
2726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2727 /* end confdefs.h. */
2728
2729 int
2730 main ()
2731 {
2732
2733 ;
2734 return 0;
2735 }
2736 _ACEOF
2737 ac_clean_files_save=$ac_clean_files
2738 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2739 # Try to create an executable without -o first, disregard a.out.
2740 # It will help us diagnose broken compilers, and finding out an intuition
2741 # of exeext.
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2743 $as_echo_n "checking whether the C compiler works... " >&6; }
2744 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2745
2746 # The possible output files:
2747 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2748
2749 ac_rmfiles=
2750 for ac_file in $ac_files
2751 do
2752 case $ac_file in
2753 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2754 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2755 esac
2756 done
2757 rm -f $ac_rmfiles
2758
2759 if { { ac_try="$ac_link_default"
2760 case "(($ac_try" in
2761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2762 *) ac_try_echo=$ac_try;;
2763 esac
2764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2765 $as_echo "$ac_try_echo"; } >&5
2766 (eval "$ac_link_default") 2>&5
2767 ac_status=$?
2768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2769 test $ac_status = 0; }; then :
2770 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2771 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2772 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2773 # so that the user can short-circuit this test for compilers unknown to
2774 # Autoconf.
2775 for ac_file in $ac_files ''
2776 do
2777 test -f "$ac_file" || continue
2778 case $ac_file in
2779 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2780 ;;
2781 [ab].out )
2782 # We found the default executable, but exeext='' is most
2783 # certainly right.
2784 break;;
2785 *.* )
2786 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2787 then :; else
2788 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2789 fi
2790 # We set ac_cv_exeext here because the later test for it is not
2791 # safe: cross compilers may not add the suffix if given an `-o'
2792 # argument, so we may need to know it at that point already.
2793 # Even if this section looks crufty: it has the advantage of
2794 # actually working.
2795 break;;
2796 * )
2797 break;;
2798 esac
2799 done
2800 test "$ac_cv_exeext" = no && ac_cv_exeext=
2801
2802 else
2803 ac_file=''
2804 fi
2805 if test -z "$ac_file"; then :
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2807 $as_echo "no" >&6; }
2808 $as_echo "$as_me: failed program was:" >&5
2809 sed 's/^/| /' conftest.$ac_ext >&5
2810
2811 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2813 as_fn_error 77 "C compiler cannot create executables
2814 See \`config.log' for more details" "$LINENO" 5; }
2815 else
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2817 $as_echo "yes" >&6; }
2818 fi
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2820 $as_echo_n "checking for C compiler default output file name... " >&6; }
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2822 $as_echo "$ac_file" >&6; }
2823 ac_exeext=$ac_cv_exeext
2824
2825 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2826 ac_clean_files=$ac_clean_files_save
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2828 $as_echo_n "checking for suffix of executables... " >&6; }
2829 if { { ac_try="$ac_link"
2830 case "(($ac_try" in
2831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2832 *) ac_try_echo=$ac_try;;
2833 esac
2834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2835 $as_echo "$ac_try_echo"; } >&5
2836 (eval "$ac_link") 2>&5
2837 ac_status=$?
2838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2839 test $ac_status = 0; }; then :
2840 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2841 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2842 # work properly (i.e., refer to `conftest.exe'), while it won't with
2843 # `rm'.
2844 for ac_file in conftest.exe conftest conftest.*; do
2845 test -f "$ac_file" || continue
2846 case $ac_file in
2847 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2848 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2849 break;;
2850 * ) break;;
2851 esac
2852 done
2853 else
2854 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2855 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2856 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2857 See \`config.log' for more details" "$LINENO" 5; }
2858 fi
2859 rm -f conftest conftest$ac_cv_exeext
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2861 $as_echo "$ac_cv_exeext" >&6; }
2862
2863 rm -f conftest.$ac_ext
2864 EXEEXT=$ac_cv_exeext
2865 ac_exeext=$EXEEXT
2866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2867 /* end confdefs.h. */
2868 #include <stdio.h>
2869 int
2870 main ()
2871 {
2872 FILE *f = fopen ("conftest.out", "w");
2873 return ferror (f) || fclose (f) != 0;
2874
2875 ;
2876 return 0;
2877 }
2878 _ACEOF
2879 ac_clean_files="$ac_clean_files conftest.out"
2880 # Check that the compiler produces executables we can run. If not, either
2881 # the compiler is broken, or we cross compile.
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2883 $as_echo_n "checking whether we are cross compiling... " >&6; }
2884 if test "$cross_compiling" != yes; then
2885 { { ac_try="$ac_link"
2886 case "(($ac_try" in
2887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2888 *) ac_try_echo=$ac_try;;
2889 esac
2890 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2891 $as_echo "$ac_try_echo"; } >&5
2892 (eval "$ac_link") 2>&5
2893 ac_status=$?
2894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2895 test $ac_status = 0; }
2896 if { ac_try='./conftest$ac_cv_exeext'
2897 { { case "(($ac_try" in
2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899 *) ac_try_echo=$ac_try;;
2900 esac
2901 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2902 $as_echo "$ac_try_echo"; } >&5
2903 (eval "$ac_try") 2>&5
2904 ac_status=$?
2905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2906 test $ac_status = 0; }; }; then
2907 cross_compiling=no
2908 else
2909 if test "$cross_compiling" = maybe; then
2910 cross_compiling=yes
2911 else
2912 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2913 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2914 as_fn_error $? "cannot run C compiled programs.
2915 If you meant to cross compile, use \`--host'.
2916 See \`config.log' for more details" "$LINENO" 5; }
2917 fi
2918 fi
2919 fi
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2921 $as_echo "$cross_compiling" >&6; }
2922
2923 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2924 ac_clean_files=$ac_clean_files_save
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2926 $as_echo_n "checking for suffix of object files... " >&6; }
2927 if ${ac_cv_objext+:} false; then :
2928 $as_echo_n "(cached) " >&6
2929 else
2930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2931 /* end confdefs.h. */
2932
2933 int
2934 main ()
2935 {
2936
2937 ;
2938 return 0;
2939 }
2940 _ACEOF
2941 rm -f conftest.o conftest.obj
2942 if { { ac_try="$ac_compile"
2943 case "(($ac_try" in
2944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2945 *) ac_try_echo=$ac_try;;
2946 esac
2947 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2948 $as_echo "$ac_try_echo"; } >&5
2949 (eval "$ac_compile") 2>&5
2950 ac_status=$?
2951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2952 test $ac_status = 0; }; then :
2953 for ac_file in conftest.o conftest.obj conftest.*; do
2954 test -f "$ac_file" || continue;
2955 case $ac_file in
2956 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2957 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2958 break;;
2959 esac
2960 done
2961 else
2962 $as_echo "$as_me: failed program was:" >&5
2963 sed 's/^/| /' conftest.$ac_ext >&5
2964
2965 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2966 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2967 as_fn_error $? "cannot compute suffix of object files: cannot compile
2968 See \`config.log' for more details" "$LINENO" 5; }
2969 fi
2970 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2971 fi
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2973 $as_echo "$ac_cv_objext" >&6; }
2974 OBJEXT=$ac_cv_objext
2975 ac_objext=$OBJEXT
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2977 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2978 if ${ac_cv_c_compiler_gnu+:} false; then :
2979 $as_echo_n "(cached) " >&6
2980 else
2981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2982 /* end confdefs.h. */
2983
2984 int
2985 main ()
2986 {
2987 #ifndef __GNUC__
2988 choke me
2989 #endif
2990
2991 ;
2992 return 0;
2993 }
2994 _ACEOF
2995 if ac_fn_c_try_compile "$LINENO"; then :
2996 ac_compiler_gnu=yes
2997 else
2998 ac_compiler_gnu=no
2999 fi
3000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3001 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3002
3003 fi
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3005 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3006 if test $ac_compiler_gnu = yes; then
3007 GCC=yes
3008 else
3009 GCC=
3010 fi
3011 ac_test_CFLAGS=${CFLAGS+set}
3012 ac_save_CFLAGS=$CFLAGS
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3014 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3015 if ${ac_cv_prog_cc_g+:} false; then :
3016 $as_echo_n "(cached) " >&6
3017 else
3018 ac_save_c_werror_flag=$ac_c_werror_flag
3019 ac_c_werror_flag=yes
3020 ac_cv_prog_cc_g=no
3021 CFLAGS="-g"
3022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3023 /* end confdefs.h. */
3024
3025 int
3026 main ()
3027 {
3028
3029 ;
3030 return 0;
3031 }
3032 _ACEOF
3033 if ac_fn_c_try_compile "$LINENO"; then :
3034 ac_cv_prog_cc_g=yes
3035 else
3036 CFLAGS=""
3037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3038 /* end confdefs.h. */
3039
3040 int
3041 main ()
3042 {
3043
3044 ;
3045 return 0;
3046 }
3047 _ACEOF
3048 if ac_fn_c_try_compile "$LINENO"; then :
3049
3050 else
3051 ac_c_werror_flag=$ac_save_c_werror_flag
3052 CFLAGS="-g"
3053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3054 /* end confdefs.h. */
3055
3056 int
3057 main ()
3058 {
3059
3060 ;
3061 return 0;
3062 }
3063 _ACEOF
3064 if ac_fn_c_try_compile "$LINENO"; then :
3065 ac_cv_prog_cc_g=yes
3066 fi
3067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3068 fi
3069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3070 fi
3071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3072 ac_c_werror_flag=$ac_save_c_werror_flag
3073 fi
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3075 $as_echo "$ac_cv_prog_cc_g" >&6; }
3076 if test "$ac_test_CFLAGS" = set; then
3077 CFLAGS=$ac_save_CFLAGS
3078 elif test $ac_cv_prog_cc_g = yes; then
3079 if test "$GCC" = yes; then
3080 CFLAGS="-g -O2"
3081 else
3082 CFLAGS="-g"
3083 fi
3084 else
3085 if test "$GCC" = yes; then
3086 CFLAGS="-O2"
3087 else
3088 CFLAGS=
3089 fi
3090 fi
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3092 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3093 if ${ac_cv_prog_cc_c89+:} false; then :
3094 $as_echo_n "(cached) " >&6
3095 else
3096 ac_cv_prog_cc_c89=no
3097 ac_save_CC=$CC
3098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3099 /* end confdefs.h. */
3100 #include <stdarg.h>
3101 #include <stdio.h>
3102 struct stat;
3103 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3104 struct buf { int x; };
3105 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3106 static char *e (p, i)
3107 char **p;
3108 int i;
3109 {
3110 return p[i];
3111 }
3112 static char *f (char * (*g) (char **, int), char **p, ...)
3113 {
3114 char *s;
3115 va_list v;
3116 va_start (v,p);
3117 s = g (p, va_arg (v,int));
3118 va_end (v);
3119 return s;
3120 }
3121
3122 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3123 function prototypes and stuff, but not '\xHH' hex character constants.
3124 These don't provoke an error unfortunately, instead are silently treated
3125 as 'x'. The following induces an error, until -std is added to get
3126 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3127 array size at least. It's necessary to write '\x00'==0 to get something
3128 that's true only with -std. */
3129 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3130
3131 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3132 inside strings and character constants. */
3133 #define FOO(x) 'x'
3134 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3135
3136 int test (int i, double x);
3137 struct s1 {int (*f) (int a);};
3138 struct s2 {int (*f) (double a);};
3139 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3140 int argc;
3141 char **argv;
3142 int
3143 main ()
3144 {
3145 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3146 ;
3147 return 0;
3148 }
3149 _ACEOF
3150 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3151 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3152 do
3153 CC="$ac_save_CC $ac_arg"
3154 if ac_fn_c_try_compile "$LINENO"; then :
3155 ac_cv_prog_cc_c89=$ac_arg
3156 fi
3157 rm -f core conftest.err conftest.$ac_objext
3158 test "x$ac_cv_prog_cc_c89" != "xno" && break
3159 done
3160 rm -f conftest.$ac_ext
3161 CC=$ac_save_CC
3162
3163 fi
3164 # AC_CACHE_VAL
3165 case "x$ac_cv_prog_cc_c89" in
3166 x)
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3168 $as_echo "none needed" >&6; } ;;
3169 xno)
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3171 $as_echo "unsupported" >&6; } ;;
3172 *)
3173 CC="$CC $ac_cv_prog_cc_c89"
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3175 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3176 esac
3177 if test "x$ac_cv_prog_cc_c89" != xno; then :
3178
3179 fi
3180
3181 ac_ext=c
3182 ac_cpp='$CPP $CPPFLAGS'
3183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3186
3187
3188 ac_ext=c
3189 ac_cpp='$CPP $CPPFLAGS'
3190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3194 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3195 # On Suns, sometimes $CPP names a directory.
3196 if test -n "$CPP" && test -d "$CPP"; then
3197 CPP=
3198 fi
3199 if test -z "$CPP"; then
3200 if ${ac_cv_prog_CPP+:} false; then :
3201 $as_echo_n "(cached) " >&6
3202 else
3203 # Double quotes because CPP needs to be expanded
3204 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3205 do
3206 ac_preproc_ok=false
3207 for ac_c_preproc_warn_flag in '' yes
3208 do
3209 # Use a header file that comes with gcc, so configuring glibc
3210 # with a fresh cross-compiler works.
3211 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3212 # <limits.h> exists even on freestanding compilers.
3213 # On the NeXT, cc -E runs the code through the compiler's parser,
3214 # not just through cpp. "Syntax error" is here to catch this case.
3215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3216 /* end confdefs.h. */
3217 #ifdef __STDC__
3218 # include <limits.h>
3219 #else
3220 # include <assert.h>
3221 #endif
3222 Syntax error
3223 _ACEOF
3224 if ac_fn_c_try_cpp "$LINENO"; then :
3225
3226 else
3227 # Broken: fails on valid input.
3228 continue
3229 fi
3230 rm -f conftest.err conftest.i conftest.$ac_ext
3231
3232 # OK, works on sane cases. Now check whether nonexistent headers
3233 # can be detected and how.
3234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3235 /* end confdefs.h. */
3236 #include <ac_nonexistent.h>
3237 _ACEOF
3238 if ac_fn_c_try_cpp "$LINENO"; then :
3239 # Broken: success on invalid input.
3240 continue
3241 else
3242 # Passes both tests.
3243 ac_preproc_ok=:
3244 break
3245 fi
3246 rm -f conftest.err conftest.i conftest.$ac_ext
3247
3248 done
3249 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3250 rm -f conftest.i conftest.err conftest.$ac_ext
3251 if $ac_preproc_ok; then :
3252 break
3253 fi
3254
3255 done
3256 ac_cv_prog_CPP=$CPP
3257
3258 fi
3259 CPP=$ac_cv_prog_CPP
3260 else
3261 ac_cv_prog_CPP=$CPP
3262 fi
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3264 $as_echo "$CPP" >&6; }
3265 ac_preproc_ok=false
3266 for ac_c_preproc_warn_flag in '' yes
3267 do
3268 # Use a header file that comes with gcc, so configuring glibc
3269 # with a fresh cross-compiler works.
3270 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3271 # <limits.h> exists even on freestanding compilers.
3272 # On the NeXT, cc -E runs the code through the compiler's parser,
3273 # not just through cpp. "Syntax error" is here to catch this case.
3274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3275 /* end confdefs.h. */
3276 #ifdef __STDC__
3277 # include <limits.h>
3278 #else
3279 # include <assert.h>
3280 #endif
3281 Syntax error
3282 _ACEOF
3283 if ac_fn_c_try_cpp "$LINENO"; then :
3284
3285 else
3286 # Broken: fails on valid input.
3287 continue
3288 fi
3289 rm -f conftest.err conftest.i conftest.$ac_ext
3290
3291 # OK, works on sane cases. Now check whether nonexistent headers
3292 # can be detected and how.
3293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3294 /* end confdefs.h. */
3295 #include <ac_nonexistent.h>
3296 _ACEOF
3297 if ac_fn_c_try_cpp "$LINENO"; then :
3298 # Broken: success on invalid input.
3299 continue
3300 else
3301 # Passes both tests.
3302 ac_preproc_ok=:
3303 break
3304 fi
3305 rm -f conftest.err conftest.i conftest.$ac_ext
3306
3307 done
3308 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3309 rm -f conftest.i conftest.err conftest.$ac_ext
3310 if $ac_preproc_ok; then :
3311
3312 else
3313 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3315 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3316 See \`config.log' for more details" "$LINENO" 5; }
3317 fi
3318
3319 ac_ext=c
3320 ac_cpp='$CPP $CPPFLAGS'
3321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3324
3325
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3327 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3328 if ${ac_cv_path_GREP+:} false; then :
3329 $as_echo_n "(cached) " >&6
3330 else
3331 if test -z "$GREP"; then
3332 ac_path_GREP_found=false
3333 # Loop through the user's path and test for each of PROGNAME-LIST
3334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3335 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3336 do
3337 IFS=$as_save_IFS
3338 test -z "$as_dir" && as_dir=.
3339 for ac_prog in grep ggrep; do
3340 for ac_exec_ext in '' $ac_executable_extensions; do
3341 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3342 as_fn_executable_p "$ac_path_GREP" || continue
3343 # Check for GNU ac_path_GREP and select it if it is found.
3344 # Check for GNU $ac_path_GREP
3345 case `"$ac_path_GREP" --version 2>&1` in
3346 *GNU*)
3347 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3348 *)
3349 ac_count=0
3350 $as_echo_n 0123456789 >"conftest.in"
3351 while :
3352 do
3353 cat "conftest.in" "conftest.in" >"conftest.tmp"
3354 mv "conftest.tmp" "conftest.in"
3355 cp "conftest.in" "conftest.nl"
3356 $as_echo 'GREP' >> "conftest.nl"
3357 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3358 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3359 as_fn_arith $ac_count + 1 && ac_count=$as_val
3360 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3361 # Best one so far, save it but keep looking for a better one
3362 ac_cv_path_GREP="$ac_path_GREP"
3363 ac_path_GREP_max=$ac_count
3364 fi
3365 # 10*(2^10) chars as input seems more than enough
3366 test $ac_count -gt 10 && break
3367 done
3368 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3369 esac
3370
3371 $ac_path_GREP_found && break 3
3372 done
3373 done
3374 done
3375 IFS=$as_save_IFS
3376 if test -z "$ac_cv_path_GREP"; then
3377 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3378 fi
3379 else
3380 ac_cv_path_GREP=$GREP
3381 fi
3382
3383 fi
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3385 $as_echo "$ac_cv_path_GREP" >&6; }
3386 GREP="$ac_cv_path_GREP"
3387
3388
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3390 $as_echo_n "checking for egrep... " >&6; }
3391 if ${ac_cv_path_EGREP+:} false; then :
3392 $as_echo_n "(cached) " >&6
3393 else
3394 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3395 then ac_cv_path_EGREP="$GREP -E"
3396 else
3397 if test -z "$EGREP"; then
3398 ac_path_EGREP_found=false
3399 # Loop through the user's path and test for each of PROGNAME-LIST
3400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3401 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3402 do
3403 IFS=$as_save_IFS
3404 test -z "$as_dir" && as_dir=.
3405 for ac_prog in egrep; do
3406 for ac_exec_ext in '' $ac_executable_extensions; do
3407 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3408 as_fn_executable_p "$ac_path_EGREP" || continue
3409 # Check for GNU ac_path_EGREP and select it if it is found.
3410 # Check for GNU $ac_path_EGREP
3411 case `"$ac_path_EGREP" --version 2>&1` in
3412 *GNU*)
3413 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3414 *)
3415 ac_count=0
3416 $as_echo_n 0123456789 >"conftest.in"
3417 while :
3418 do
3419 cat "conftest.in" "conftest.in" >"conftest.tmp"
3420 mv "conftest.tmp" "conftest.in"
3421 cp "conftest.in" "conftest.nl"
3422 $as_echo 'EGREP' >> "conftest.nl"
3423 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3424 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3425 as_fn_arith $ac_count + 1 && ac_count=$as_val
3426 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3427 # Best one so far, save it but keep looking for a better one
3428 ac_cv_path_EGREP="$ac_path_EGREP"
3429 ac_path_EGREP_max=$ac_count
3430 fi
3431 # 10*(2^10) chars as input seems more than enough
3432 test $ac_count -gt 10 && break
3433 done
3434 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3435 esac
3436
3437 $ac_path_EGREP_found && break 3
3438 done
3439 done
3440 done
3441 IFS=$as_save_IFS
3442 if test -z "$ac_cv_path_EGREP"; then
3443 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3444 fi
3445 else
3446 ac_cv_path_EGREP=$EGREP
3447 fi
3448
3449 fi
3450 fi
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3452 $as_echo "$ac_cv_path_EGREP" >&6; }
3453 EGREP="$ac_cv_path_EGREP"
3454
3455
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3457 $as_echo_n "checking for ANSI C header files... " >&6; }
3458 if ${ac_cv_header_stdc+:} false; then :
3459 $as_echo_n "(cached) " >&6
3460 else
3461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3462 /* end confdefs.h. */
3463 #include <stdlib.h>
3464 #include <stdarg.h>
3465 #include <string.h>
3466 #include <float.h>
3467
3468 int
3469 main ()
3470 {
3471
3472 ;
3473 return 0;
3474 }
3475 _ACEOF
3476 if ac_fn_c_try_compile "$LINENO"; then :
3477 ac_cv_header_stdc=yes
3478 else
3479 ac_cv_header_stdc=no
3480 fi
3481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3482
3483 if test $ac_cv_header_stdc = yes; then
3484 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3486 /* end confdefs.h. */
3487 #include <string.h>
3488
3489 _ACEOF
3490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3491 $EGREP "memchr" >/dev/null 2>&1; then :
3492
3493 else
3494 ac_cv_header_stdc=no
3495 fi
3496 rm -f conftest*
3497
3498 fi
3499
3500 if test $ac_cv_header_stdc = yes; then
3501 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3503 /* end confdefs.h. */
3504 #include <stdlib.h>
3505
3506 _ACEOF
3507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3508 $EGREP "free" >/dev/null 2>&1; then :
3509
3510 else
3511 ac_cv_header_stdc=no
3512 fi
3513 rm -f conftest*
3514
3515 fi
3516
3517 if test $ac_cv_header_stdc = yes; then
3518 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3519 if test "$cross_compiling" = yes; then :
3520 :
3521 else
3522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3523 /* end confdefs.h. */
3524 #include <ctype.h>
3525 #include <stdlib.h>
3526 #if ((' ' & 0x0FF) == 0x020)
3527 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3528 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3529 #else
3530 # define ISLOWER(c) \
3531 (('a' <= (c) && (c) <= 'i') \
3532 || ('j' <= (c) && (c) <= 'r') \
3533 || ('s' <= (c) && (c) <= 'z'))
3534 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3535 #endif
3536
3537 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3538 int
3539 main ()
3540 {
3541 int i;
3542 for (i = 0; i < 256; i++)
3543 if (XOR (islower (i), ISLOWER (i))
3544 || toupper (i) != TOUPPER (i))
3545 return 2;
3546 return 0;
3547 }
3548 _ACEOF
3549 if ac_fn_c_try_run "$LINENO"; then :
3550
3551 else
3552 ac_cv_header_stdc=no
3553 fi
3554 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3555 conftest.$ac_objext conftest.beam conftest.$ac_ext
3556 fi
3557
3558 fi
3559 fi
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3561 $as_echo "$ac_cv_header_stdc" >&6; }
3562 if test $ac_cv_header_stdc = yes; then
3563
3564 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3565
3566 fi
3567
3568 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3569 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3570 inttypes.h stdint.h unistd.h
3571 do :
3572 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3573 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3574 "
3575 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3576 cat >>confdefs.h <<_ACEOF
3577 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3578 _ACEOF
3579
3580 fi
3581
3582 done
3583
3584
3585
3586 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3587 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3588 MINIX=yes
3589 else
3590 MINIX=
3591 fi
3592
3593
3594 if test "$MINIX" = yes; then
3595
3596 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3597
3598
3599 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3600
3601
3602 $as_echo "#define _MINIX 1" >>confdefs.h
3603
3604 fi
3605
3606
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3608 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3609 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3610 $as_echo_n "(cached) " >&6
3611 else
3612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3613 /* end confdefs.h. */
3614
3615 # define __EXTENSIONS__ 1
3616 $ac_includes_default
3617 int
3618 main ()
3619 {
3620
3621 ;
3622 return 0;
3623 }
3624 _ACEOF
3625 if ac_fn_c_try_compile "$LINENO"; then :
3626 ac_cv_safe_to_define___extensions__=yes
3627 else
3628 ac_cv_safe_to_define___extensions__=no
3629 fi
3630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3631 fi
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3633 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3634 test $ac_cv_safe_to_define___extensions__ = yes &&
3635 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3636
3637 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3638
3639 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3640
3641 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3642
3643 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3644
3645
3646 test "$program_prefix" != NONE &&
3647 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3648 # Use a double $ so make ignores it.
3649 test "$program_suffix" != NONE &&
3650 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3651 # Double any \ or $.
3652 # By default was `s,x,x', remove it if useless.
3653 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3654 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3655
3656 # Find a good install program. We prefer a C program (faster),
3657 # so one script is as good as another. But avoid the broken or
3658 # incompatible versions:
3659 # SysV /etc/install, /usr/sbin/install
3660 # SunOS /usr/etc/install
3661 # IRIX /sbin/install
3662 # AIX /bin/install
3663 # AmigaOS /C/install, which installs bootblocks on floppy discs
3664 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3665 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3666 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3667 # OS/2's system install, which has a completely different semantic
3668 # ./install, which can be erroneously created by make from ./install.sh.
3669 # Reject install programs that cannot install multiple files.
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3671 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3672 if test -z "$INSTALL"; then
3673 if ${ac_cv_path_install+:} false; then :
3674 $as_echo_n "(cached) " >&6
3675 else
3676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3677 for as_dir in $PATH
3678 do
3679 IFS=$as_save_IFS
3680 test -z "$as_dir" && as_dir=.
3681 # Account for people who put trailing slashes in PATH elements.
3682 case $as_dir/ in #((
3683 ./ | .// | /[cC]/* | \
3684 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3685 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3686 /usr/ucb/* ) ;;
3687 *)
3688 # OSF1 and SCO ODT 3.0 have their own names for install.
3689 # Don't use installbsd from OSF since it installs stuff as root
3690 # by default.
3691 for ac_prog in ginstall scoinst install; do
3692 for ac_exec_ext in '' $ac_executable_extensions; do
3693 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3694 if test $ac_prog = install &&
3695 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3696 # AIX install. It has an incompatible calling convention.
3697 :
3698 elif test $ac_prog = install &&
3699 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3700 # program-specific install script used by HP pwplus--don't use.
3701 :
3702 else
3703 rm -rf conftest.one conftest.two conftest.dir
3704 echo one > conftest.one
3705 echo two > conftest.two
3706 mkdir conftest.dir
3707 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3708 test -s conftest.one && test -s conftest.two &&
3709 test -s conftest.dir/conftest.one &&
3710 test -s conftest.dir/conftest.two
3711 then
3712 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3713 break 3
3714 fi
3715 fi
3716 fi
3717 done
3718 done
3719 ;;
3720 esac
3721
3722 done
3723 IFS=$as_save_IFS
3724
3725 rm -rf conftest.one conftest.two conftest.dir
3726
3727 fi
3728 if test "${ac_cv_path_install+set}" = set; then
3729 INSTALL=$ac_cv_path_install
3730 else
3731 # As a last resort, use the slow shell script. Don't cache a
3732 # value for INSTALL within a source directory, because that will
3733 # break other packages using the cache if that directory is
3734 # removed, or if the value is a relative name.
3735 INSTALL=$ac_install_sh
3736 fi
3737 fi
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3739 $as_echo "$INSTALL" >&6; }
3740
3741 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3742 # It thinks the first close brace ends the variable substitution.
3743 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3744
3745 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3746
3747 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3748
3749 rm -rf .tst 2>/dev/null
3750 mkdir .tst 2>/dev/null
3751 if test -d .tst; then
3752 am__leading_dot=.
3753 else
3754 am__leading_dot=_
3755 fi
3756 rmdir .tst 2>/dev/null
3757
3758 DEPDIR="${am__leading_dot}deps"
3759
3760 case `pwd` in
3761 *\ * | *\ *)
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3763 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3764 esac
3765
3766
3767
3768 macro_version='2.2.7a'
3769 macro_revision='1.3134'
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783 ltmain="$ac_aux_dir/ltmain.sh"
3784
3785 # Backslashify metacharacters that are still active within
3786 # double-quoted strings.
3787 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3788
3789 # Same as above, but do not quote variable references.
3790 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3791
3792 # Sed substitution to delay expansion of an escaped shell variable in a
3793 # double_quote_subst'ed string.
3794 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3795
3796 # Sed substitution to delay expansion of an escaped single quote.
3797 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3798
3799 # Sed substitution to avoid accidental globbing in evaled expressions
3800 no_glob_subst='s/\*/\\\*/g'
3801
3802 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3803 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3804 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3805
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3807 $as_echo_n "checking how to print strings... " >&6; }
3808 # Test print first, because it will be a builtin if present.
3809 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
3810 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3811 ECHO='print -r --'
3812 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3813 ECHO='printf %s\n'
3814 else
3815 # Use this function as a fallback that always works.
3816 func_fallback_echo ()
3817 {
3818 eval 'cat <<_LTECHO_EOF
3819 $1
3820 _LTECHO_EOF'
3821 }
3822 ECHO='func_fallback_echo'
3823 fi
3824
3825 # func_echo_all arg...
3826 # Invoke $ECHO with all args, space-separated.
3827 func_echo_all ()
3828 {
3829 $ECHO ""
3830 }
3831
3832 case "$ECHO" in
3833 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3834 $as_echo "printf" >&6; } ;;
3835 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3836 $as_echo "print -r" >&6; } ;;
3837 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3838 $as_echo "cat" >&6; } ;;
3839 esac
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3855 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3856 if ${ac_cv_path_SED+:} false; then :
3857 $as_echo_n "(cached) " >&6
3858 else
3859 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3860 for ac_i in 1 2 3 4 5 6 7; do
3861 ac_script="$ac_script$as_nl$ac_script"
3862 done
3863 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3864 { ac_script=; unset ac_script;}
3865 if test -z "$SED"; then
3866 ac_path_SED_found=false
3867 # Loop through the user's path and test for each of PROGNAME-LIST
3868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3869 for as_dir in $PATH
3870 do
3871 IFS=$as_save_IFS
3872 test -z "$as_dir" && as_dir=.
3873 for ac_prog in sed gsed; do
3874 for ac_exec_ext in '' $ac_executable_extensions; do
3875 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3876 as_fn_executable_p "$ac_path_SED" || continue
3877 # Check for GNU ac_path_SED and select it if it is found.
3878 # Check for GNU $ac_path_SED
3879 case `"$ac_path_SED" --version 2>&1` in
3880 *GNU*)
3881 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3882 *)
3883 ac_count=0
3884 $as_echo_n 0123456789 >"conftest.in"
3885 while :
3886 do
3887 cat "conftest.in" "conftest.in" >"conftest.tmp"
3888 mv "conftest.tmp" "conftest.in"
3889 cp "conftest.in" "conftest.nl"
3890 $as_echo '' >> "conftest.nl"
3891 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3892 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3893 as_fn_arith $ac_count + 1 && ac_count=$as_val
3894 if test $ac_count -gt ${ac_path_SED_max-0}; then
3895 # Best one so far, save it but keep looking for a better one
3896 ac_cv_path_SED="$ac_path_SED"
3897 ac_path_SED_max=$ac_count
3898 fi
3899 # 10*(2^10) chars as input seems more than enough
3900 test $ac_count -gt 10 && break
3901 done
3902 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3903 esac
3904
3905 $ac_path_SED_found && break 3
3906 done
3907 done
3908 done
3909 IFS=$as_save_IFS
3910 if test -z "$ac_cv_path_SED"; then
3911 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3912 fi
3913 else
3914 ac_cv_path_SED=$SED
3915 fi
3916
3917 fi
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3919 $as_echo "$ac_cv_path_SED" >&6; }
3920 SED="$ac_cv_path_SED"
3921 rm -f conftest.sed
3922
3923 test -z "$SED" && SED=sed
3924 Xsed="$SED -e 1s/^X//"
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3937 $as_echo_n "checking for fgrep... " >&6; }
3938 if ${ac_cv_path_FGREP+:} false; then :
3939 $as_echo_n "(cached) " >&6
3940 else
3941 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3942 then ac_cv_path_FGREP="$GREP -F"
3943 else
3944 if test -z "$FGREP"; then
3945 ac_path_FGREP_found=false
3946 # Loop through the user's path and test for each of PROGNAME-LIST
3947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3948 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3949 do
3950 IFS=$as_save_IFS
3951 test -z "$as_dir" && as_dir=.
3952 for ac_prog in fgrep; do
3953 for ac_exec_ext in '' $ac_executable_extensions; do
3954 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3955 as_fn_executable_p "$ac_path_FGREP" || continue
3956 # Check for GNU ac_path_FGREP and select it if it is found.
3957 # Check for GNU $ac_path_FGREP
3958 case `"$ac_path_FGREP" --version 2>&1` in
3959 *GNU*)
3960 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3961 *)
3962 ac_count=0
3963 $as_echo_n 0123456789 >"conftest.in"
3964 while :
3965 do
3966 cat "conftest.in" "conftest.in" >"conftest.tmp"
3967 mv "conftest.tmp" "conftest.in"
3968 cp "conftest.in" "conftest.nl"
3969 $as_echo 'FGREP' >> "conftest.nl"
3970 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3971 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3972 as_fn_arith $ac_count + 1 && ac_count=$as_val
3973 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3974 # Best one so far, save it but keep looking for a better one
3975 ac_cv_path_FGREP="$ac_path_FGREP"
3976 ac_path_FGREP_max=$ac_count
3977 fi
3978 # 10*(2^10) chars as input seems more than enough
3979 test $ac_count -gt 10 && break
3980 done
3981 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3982 esac
3983
3984 $ac_path_FGREP_found && break 3
3985 done
3986 done
3987 done
3988 IFS=$as_save_IFS
3989 if test -z "$ac_cv_path_FGREP"; then
3990 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3991 fi
3992 else
3993 ac_cv_path_FGREP=$FGREP
3994 fi
3995
3996 fi
3997 fi
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3999 $as_echo "$ac_cv_path_FGREP" >&6; }
4000 FGREP="$ac_cv_path_FGREP"
4001
4002
4003 test -z "$GREP" && GREP=grep
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023 # Check whether --with-gnu-ld was given.
4024 if test "${with_gnu_ld+set}" = set; then :
4025 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4026 else
4027 with_gnu_ld=no
4028 fi
4029
4030 ac_prog=ld
4031 if test "$GCC" = yes; then
4032 # Check if gcc -print-prog-name=ld gives a path.
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4034 $as_echo_n "checking for ld used by $CC... " >&6; }
4035 case $host in
4036 *-*-mingw*)
4037 # gcc leaves a trailing carriage return which upsets mingw
4038 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4039 *)
4040 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4041 esac
4042 case $ac_prog in
4043 # Accept absolute paths.
4044 [\\/]* | ?:[\\/]*)
4045 re_direlt='/[^/][^/]*/\.\./'
4046 # Canonicalize the pathname of ld
4047 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4048 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4049 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4050 done
4051 test -z "$LD" && LD="$ac_prog"
4052 ;;
4053 "")
4054 # If it fails, then pretend we aren't using GCC.
4055 ac_prog=ld
4056 ;;
4057 *)
4058 # If it is relative, then search for the first ld in PATH.
4059 with_gnu_ld=unknown
4060 ;;
4061 esac
4062 elif test "$with_gnu_ld" = yes; then
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4064 $as_echo_n "checking for GNU ld... " >&6; }
4065 else
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4067 $as_echo_n "checking for non-GNU ld... " >&6; }
4068 fi
4069 if ${lt_cv_path_LD+:} false; then :
4070 $as_echo_n "(cached) " >&6
4071 else
4072 if test -z "$LD"; then
4073 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4074 for ac_dir in $PATH; do
4075 IFS="$lt_save_ifs"
4076 test -z "$ac_dir" && ac_dir=.
4077 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4078 lt_cv_path_LD="$ac_dir/$ac_prog"
4079 # Check to see if the program is GNU ld. I'd rather use --version,
4080 # but apparently some variants of GNU ld only accept -v.
4081 # Break only if it was the GNU/non-GNU ld that we prefer.
4082 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4083 *GNU* | *'with BFD'*)
4084 test "$with_gnu_ld" != no && break
4085 ;;
4086 *)
4087 test "$with_gnu_ld" != yes && break
4088 ;;
4089 esac
4090 fi
4091 done
4092 IFS="$lt_save_ifs"
4093 else
4094 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4095 fi
4096 fi
4097
4098 LD="$lt_cv_path_LD"
4099 if test -n "$LD"; then
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4101 $as_echo "$LD" >&6; }
4102 else
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4104 $as_echo "no" >&6; }
4105 fi
4106 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4108 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4109 if ${lt_cv_prog_gnu_ld+:} false; then :
4110 $as_echo_n "(cached) " >&6
4111 else
4112 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4113 case `$LD -v 2>&1 </dev/null` in
4114 *GNU* | *'with BFD'*)
4115 lt_cv_prog_gnu_ld=yes
4116 ;;
4117 *)
4118 lt_cv_prog_gnu_ld=no
4119 ;;
4120 esac
4121 fi
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4123 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4124 with_gnu_ld=$lt_cv_prog_gnu_ld
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4135 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4136 if ${lt_cv_path_NM+:} false; then :
4137 $as_echo_n "(cached) " >&6
4138 else
4139 if test -n "$NM"; then
4140 # Let the user override the test.
4141 lt_cv_path_NM="$NM"
4142 else
4143 lt_nm_to_check="${ac_tool_prefix}nm"
4144 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4145 lt_nm_to_check="$lt_nm_to_check nm"
4146 fi
4147 for lt_tmp_nm in $lt_nm_to_check; do
4148 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4149 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4150 IFS="$lt_save_ifs"
4151 test -z "$ac_dir" && ac_dir=.
4152 tmp_nm="$ac_dir/$lt_tmp_nm"
4153 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4154 # Check to see if the nm accepts a BSD-compat flag.
4155 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4156 # nm: unknown option "B" ignored
4157 # Tru64's nm complains that /dev/null is an invalid object file
4158 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4159 */dev/null* | *'Invalid file or object type'*)
4160 lt_cv_path_NM="$tmp_nm -B"
4161 break
4162 ;;
4163 *)
4164 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4165 */dev/null*)
4166 lt_cv_path_NM="$tmp_nm -p"
4167 break
4168 ;;
4169 *)
4170 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4171 continue # so that we can try to find one that supports BSD flags
4172 ;;
4173 esac
4174 ;;
4175 esac
4176 fi
4177 done
4178 IFS="$lt_save_ifs"
4179 done
4180 : ${lt_cv_path_NM=no}
4181 fi
4182 fi
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4184 $as_echo "$lt_cv_path_NM" >&6; }
4185 if test "$lt_cv_path_NM" != "no"; then
4186 NM="$lt_cv_path_NM"
4187 else
4188 # Didn't find any BSD compatible name lister, look for dumpbin.
4189 if test -n "$DUMPBIN"; then :
4190 # Let the user override the test.
4191 else
4192 if test -n "$ac_tool_prefix"; then
4193 for ac_prog in dumpbin "link -dump"
4194 do
4195 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4196 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4198 $as_echo_n "checking for $ac_word... " >&6; }
4199 if ${ac_cv_prog_DUMPBIN+:} false; then :
4200 $as_echo_n "(cached) " >&6
4201 else
4202 if test -n "$DUMPBIN"; then
4203 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4204 else
4205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4206 for as_dir in $PATH
4207 do
4208 IFS=$as_save_IFS
4209 test -z "$as_dir" && as_dir=.
4210 for ac_exec_ext in '' $ac_executable_extensions; do
4211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4212 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4214 break 2
4215 fi
4216 done
4217 done
4218 IFS=$as_save_IFS
4219
4220 fi
4221 fi
4222 DUMPBIN=$ac_cv_prog_DUMPBIN
4223 if test -n "$DUMPBIN"; then
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4225 $as_echo "$DUMPBIN" >&6; }
4226 else
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4228 $as_echo "no" >&6; }
4229 fi
4230
4231
4232 test -n "$DUMPBIN" && break
4233 done
4234 fi
4235 if test -z "$DUMPBIN"; then
4236 ac_ct_DUMPBIN=$DUMPBIN
4237 for ac_prog in dumpbin "link -dump"
4238 do
4239 # Extract the first word of "$ac_prog", so it can be a program name with args.
4240 set dummy $ac_prog; ac_word=$2
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4242 $as_echo_n "checking for $ac_word... " >&6; }
4243 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4244 $as_echo_n "(cached) " >&6
4245 else
4246 if test -n "$ac_ct_DUMPBIN"; then
4247 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4248 else
4249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250 for as_dir in $PATH
4251 do
4252 IFS=$as_save_IFS
4253 test -z "$as_dir" && as_dir=.
4254 for ac_exec_ext in '' $ac_executable_extensions; do
4255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4256 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4258 break 2
4259 fi
4260 done
4261 done
4262 IFS=$as_save_IFS
4263
4264 fi
4265 fi
4266 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4267 if test -n "$ac_ct_DUMPBIN"; then
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4269 $as_echo "$ac_ct_DUMPBIN" >&6; }
4270 else
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4272 $as_echo "no" >&6; }
4273 fi
4274
4275
4276 test -n "$ac_ct_DUMPBIN" && break
4277 done
4278
4279 if test "x$ac_ct_DUMPBIN" = x; then
4280 DUMPBIN=":"
4281 else
4282 case $cross_compiling:$ac_tool_warned in
4283 yes:)
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4285 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4286 ac_tool_warned=yes ;;
4287 esac
4288 DUMPBIN=$ac_ct_DUMPBIN
4289 fi
4290 fi
4291
4292 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4293 *COFF*)
4294 DUMPBIN="$DUMPBIN -symbols"
4295 ;;
4296 *)
4297 DUMPBIN=:
4298 ;;
4299 esac
4300 fi
4301
4302 if test "$DUMPBIN" != ":"; then
4303 NM="$DUMPBIN"
4304 fi
4305 fi
4306 test -z "$NM" && NM=nm
4307
4308
4309
4310
4311
4312
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4314 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4315 if ${lt_cv_nm_interface+:} false; then :
4316 $as_echo_n "(cached) " >&6
4317 else
4318 lt_cv_nm_interface="BSD nm"
4319 echo "int some_variable = 0;" > conftest.$ac_ext
4320 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4321 (eval "$ac_compile" 2>conftest.err)
4322 cat conftest.err >&5
4323 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4324 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4325 cat conftest.err >&5
4326 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4327 cat conftest.out >&5
4328 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4329 lt_cv_nm_interface="MS dumpbin"
4330 fi
4331 rm -f conftest*
4332 fi
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4334 $as_echo "$lt_cv_nm_interface" >&6; }
4335
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4337 $as_echo_n "checking whether ln -s works... " >&6; }
4338 LN_S=$as_ln_s
4339 if test "$LN_S" = "ln -s"; then
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4341 $as_echo "yes" >&6; }
4342 else
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4344 $as_echo "no, using $LN_S" >&6; }
4345 fi
4346
4347 # find the maximum length of command line arguments
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4349 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4350 if ${lt_cv_sys_max_cmd_len+:} false; then :
4351 $as_echo_n "(cached) " >&6
4352 else
4353 i=0
4354 teststring="ABCD"
4355
4356 case $build_os in
4357 msdosdjgpp*)
4358 # On DJGPP, this test can blow up pretty badly due to problems in libc
4359 # (any single argument exceeding 2000 bytes causes a buffer overrun
4360 # during glob expansion). Even if it were fixed, the result of this
4361 # check would be larger than it should be.
4362 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4363 ;;
4364
4365 gnu*)
4366 # Under GNU Hurd, this test is not required because there is
4367 # no limit to the length of command line arguments.
4368 # Libtool will interpret -1 as no limit whatsoever
4369 lt_cv_sys_max_cmd_len=-1;
4370 ;;
4371
4372 cygwin* | mingw* | cegcc*)
4373 # On Win9x/ME, this test blows up -- it succeeds, but takes
4374 # about 5 minutes as the teststring grows exponentially.
4375 # Worse, since 9x/ME are not pre-emptively multitasking,
4376 # you end up with a "frozen" computer, even though with patience
4377 # the test eventually succeeds (with a max line length of 256k).
4378 # Instead, let's just punt: use the minimum linelength reported by
4379 # all of the supported platforms: 8192 (on NT/2K/XP).
4380 lt_cv_sys_max_cmd_len=8192;
4381 ;;
4382
4383 mint*)
4384 # On MiNT this can take a long time and run out of memory.
4385 lt_cv_sys_max_cmd_len=8192;
4386 ;;
4387
4388 amigaos*)
4389 # On AmigaOS with pdksh, this test takes hours, literally.
4390 # So we just punt and use a minimum line length of 8192.
4391 lt_cv_sys_max_cmd_len=8192;
4392 ;;
4393
4394 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4395 # This has been around since 386BSD, at least. Likely further.
4396 if test -x /sbin/sysctl; then
4397 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4398 elif test -x /usr/sbin/sysctl; then
4399 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4400 else
4401 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4402 fi
4403 # And add a safety zone
4404 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4405 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4406 ;;
4407
4408 interix*)
4409 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4410 lt_cv_sys_max_cmd_len=196608
4411 ;;
4412
4413 osf*)
4414 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4415 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4416 # nice to cause kernel panics so lets avoid the loop below.
4417 # First set a reasonable default.
4418 lt_cv_sys_max_cmd_len=16384
4419 #
4420 if test -x /sbin/sysconfig; then
4421 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4422 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4423 esac
4424 fi
4425 ;;
4426 sco3.2v5*)
4427 lt_cv_sys_max_cmd_len=102400
4428 ;;
4429 sysv5* | sco5v6* | sysv4.2uw2*)
4430 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4431 if test -n "$kargmax"; then
4432 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4433 else
4434 lt_cv_sys_max_cmd_len=32768
4435 fi
4436 ;;
4437 *)
4438 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4439 if test -n "$lt_cv_sys_max_cmd_len"; then
4440 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4441 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4442 else
4443 # Make teststring a little bigger before we do anything with it.
4444 # a 1K string should be a reasonable start.
4445 for i in 1 2 3 4 5 6 7 8 ; do
4446 teststring=$teststring$teststring
4447 done
4448 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4449 # If test is not a shell built-in, we'll probably end up computing a
4450 # maximum length that is only half of the actual maximum length, but
4451 # we can't tell.
4452 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4453 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4454 test $i != 17 # 1/2 MB should be enough
4455 do
4456 i=`expr $i + 1`
4457 teststring=$teststring$teststring
4458 done
4459 # Only check the string length outside the loop.
4460 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4461 teststring=
4462 # Add a significant safety factor because C++ compilers can tack on
4463 # massive amounts of additional arguments before passing them to the
4464 # linker. It appears as though 1/2 is a usable value.
4465 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4466 fi
4467 ;;
4468 esac
4469
4470 fi
4471
4472 if test -n $lt_cv_sys_max_cmd_len ; then
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4474 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4475 else
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4477 $as_echo "none" >&6; }
4478 fi
4479 max_cmd_len=$lt_cv_sys_max_cmd_len
4480
4481
4482
4483
4484
4485
4486 : ${CP="cp -f"}
4487 : ${MV="mv -f"}
4488 : ${RM="rm -f"}
4489
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4491 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4492 # Try some XSI features
4493 xsi_shell=no
4494 ( _lt_dummy="a/b/c"
4495 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4496 = c,a/b,, \
4497 && eval 'test $(( 1 + 1 )) -eq 2 \
4498 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4499 && xsi_shell=yes
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4501 $as_echo "$xsi_shell" >&6; }
4502
4503
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4505 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4506 lt_shell_append=no
4507 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4508 >/dev/null 2>&1 \
4509 && lt_shell_append=yes
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4511 $as_echo "$lt_shell_append" >&6; }
4512
4513
4514 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4515 lt_unset=unset
4516 else
4517 lt_unset=false
4518 fi
4519
4520
4521
4522
4523
4524 # test EBCDIC or ASCII
4525 case `echo X|tr X '\101'` in
4526 A) # ASCII based system
4527 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4528 lt_SP2NL='tr \040 \012'
4529 lt_NL2SP='tr \015\012 \040\040'
4530 ;;
4531 *) # EBCDIC based system
4532 lt_SP2NL='tr \100 \n'
4533 lt_NL2SP='tr \r\n \100\100'
4534 ;;
4535 esac
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4546 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4547 if ${lt_cv_ld_reload_flag+:} false; then :
4548 $as_echo_n "(cached) " >&6
4549 else
4550 lt_cv_ld_reload_flag='-r'
4551 fi
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4553 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4554 reload_flag=$lt_cv_ld_reload_flag
4555 case $reload_flag in
4556 "" | " "*) ;;
4557 *) reload_flag=" $reload_flag" ;;
4558 esac
4559 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4560 case $host_os in
4561 darwin*)
4562 if test "$GCC" = yes; then
4563 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4564 else
4565 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4566 fi
4567 ;;
4568 esac
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578 if test -n "$ac_tool_prefix"; then
4579 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4580 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4582 $as_echo_n "checking for $ac_word... " >&6; }
4583 if ${ac_cv_prog_OBJDUMP+:} false; then :
4584 $as_echo_n "(cached) " >&6
4585 else
4586 if test -n "$OBJDUMP"; then
4587 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4588 else
4589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4590 for as_dir in $PATH
4591 do
4592 IFS=$as_save_IFS
4593 test -z "$as_dir" && as_dir=.
4594 for ac_exec_ext in '' $ac_executable_extensions; do
4595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4596 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4598 break 2
4599 fi
4600 done
4601 done
4602 IFS=$as_save_IFS
4603
4604 fi
4605 fi
4606 OBJDUMP=$ac_cv_prog_OBJDUMP
4607 if test -n "$OBJDUMP"; then
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4609 $as_echo "$OBJDUMP" >&6; }
4610 else
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4612 $as_echo "no" >&6; }
4613 fi
4614
4615
4616 fi
4617 if test -z "$ac_cv_prog_OBJDUMP"; then
4618 ac_ct_OBJDUMP=$OBJDUMP
4619 # Extract the first word of "objdump", so it can be a program name with args.
4620 set dummy objdump; 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_ac_ct_OBJDUMP+:} false; then :
4624 $as_echo_n "(cached) " >&6
4625 else
4626 if test -n "$ac_ct_OBJDUMP"; then
4627 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # 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_ac_ct_OBJDUMP="objdump"
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 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4647 if test -n "$ac_ct_OBJDUMP"; then
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4649 $as_echo "$ac_ct_OBJDUMP" >&6; }
4650 else
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4652 $as_echo "no" >&6; }
4653 fi
4654
4655 if test "x$ac_ct_OBJDUMP" = x; then
4656 OBJDUMP="false"
4657 else
4658 case $cross_compiling:$ac_tool_warned in
4659 yes:)
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4661 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4662 ac_tool_warned=yes ;;
4663 esac
4664 OBJDUMP=$ac_ct_OBJDUMP
4665 fi
4666 else
4667 OBJDUMP="$ac_cv_prog_OBJDUMP"
4668 fi
4669
4670 test -z "$OBJDUMP" && OBJDUMP=objdump
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4681 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4682 if ${lt_cv_deplibs_check_method+:} false; then :
4683 $as_echo_n "(cached) " >&6
4684 else
4685 lt_cv_file_magic_cmd='$MAGIC_CMD'
4686 lt_cv_file_magic_test_file=
4687 lt_cv_deplibs_check_method='unknown'
4688 # Need to set the preceding variable on all platforms that support
4689 # interlibrary dependencies.
4690 # 'none' -- dependencies not supported.
4691 # `unknown' -- same as none, but documents that we really don't know.
4692 # 'pass_all' -- all dependencies passed with no checks.
4693 # 'test_compile' -- check by making test program.
4694 # 'file_magic [[regex]]' -- check by looking for files in library path
4695 # which responds to the $file_magic_cmd with a given extended regex.
4696 # If you have `file' or equivalent on your system and you're not sure
4697 # whether `pass_all' will *always* work, you probably want this one.
4698
4699 case $host_os in
4700 aix[4-9]*)
4701 lt_cv_deplibs_check_method=pass_all
4702 ;;
4703
4704 beos*)
4705 lt_cv_deplibs_check_method=pass_all
4706 ;;
4707
4708 bsdi[45]*)
4709 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4710 lt_cv_file_magic_cmd='/usr/bin/file -L'
4711 lt_cv_file_magic_test_file=/shlib/libc.so
4712 ;;
4713
4714 cygwin*)
4715 # func_win32_libid is a shell function defined in ltmain.sh
4716 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4717 lt_cv_file_magic_cmd='func_win32_libid'
4718 ;;
4719
4720 mingw* | pw32*)
4721 # Base MSYS/MinGW do not provide the 'file' command needed by
4722 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4723 # unless we find 'file', for example because we are cross-compiling.
4724 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4725 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4726 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4727 lt_cv_file_magic_cmd='func_win32_libid'
4728 else
4729 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4730 lt_cv_file_magic_cmd='$OBJDUMP -f'
4731 fi
4732 ;;
4733
4734 cegcc*)
4735 # use the weaker test based on 'objdump'. See mingw*.
4736 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4737 lt_cv_file_magic_cmd='$OBJDUMP -f'
4738 ;;
4739
4740 darwin* | rhapsody*)
4741 lt_cv_deplibs_check_method=pass_all
4742 ;;
4743
4744 freebsd* | dragonfly*)
4745 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4746 case $host_cpu in
4747 i*86 )
4748 # Not sure whether the presence of OpenBSD here was a mistake.
4749 # Let's accept both of them until this is cleared up.
4750 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4751 lt_cv_file_magic_cmd=/usr/bin/file
4752 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4753 ;;
4754 esac
4755 else
4756 lt_cv_deplibs_check_method=pass_all
4757 fi
4758 ;;
4759
4760 gnu*)
4761 lt_cv_deplibs_check_method=pass_all
4762 ;;
4763
4764 haiku*)
4765 lt_cv_deplibs_check_method=pass_all
4766 ;;
4767
4768 hpux10.20* | hpux11*)
4769 lt_cv_file_magic_cmd=/usr/bin/file
4770 case $host_cpu in
4771 ia64*)
4772 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4773 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4774 ;;
4775 hppa*64*)
4776 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]'
4777 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4778 ;;
4779 *)
4780 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4781 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4782 ;;
4783 esac
4784 ;;
4785
4786 interix[3-9]*)
4787 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4788 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4789 ;;
4790
4791 irix5* | irix6* | nonstopux*)
4792 case $LD in
4793 *-32|*"-32 ") libmagic=32-bit;;
4794 *-n32|*"-n32 ") libmagic=N32;;
4795 *-64|*"-64 ") libmagic=64-bit;;
4796 *) libmagic=never-match;;
4797 esac
4798 lt_cv_deplibs_check_method=pass_all
4799 ;;
4800
4801 # This must be Linux ELF.
4802 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4803 lt_cv_deplibs_check_method=pass_all
4804 ;;
4805
4806 netbsd*)
4807 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4808 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4809 else
4810 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4811 fi
4812 ;;
4813
4814 newos6*)
4815 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4816 lt_cv_file_magic_cmd=/usr/bin/file
4817 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4818 ;;
4819
4820 *nto* | *qnx*)
4821 lt_cv_deplibs_check_method=pass_all
4822 ;;
4823
4824 openbsd*)
4825 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4826 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4827 else
4828 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4829 fi
4830 ;;
4831
4832 osf3* | osf4* | osf5*)
4833 lt_cv_deplibs_check_method=pass_all
4834 ;;
4835
4836 rdos*)
4837 lt_cv_deplibs_check_method=pass_all
4838 ;;
4839
4840 solaris*)
4841 lt_cv_deplibs_check_method=pass_all
4842 ;;
4843
4844 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4845 lt_cv_deplibs_check_method=pass_all
4846 ;;
4847
4848 sysv4 | sysv4.3*)
4849 case $host_vendor in
4850 motorola)
4851 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]'
4852 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4853 ;;
4854 ncr)
4855 lt_cv_deplibs_check_method=pass_all
4856 ;;
4857 sequent)
4858 lt_cv_file_magic_cmd='/bin/file'
4859 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4860 ;;
4861 sni)
4862 lt_cv_file_magic_cmd='/bin/file'
4863 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4864 lt_cv_file_magic_test_file=/lib/libc.so
4865 ;;
4866 siemens)
4867 lt_cv_deplibs_check_method=pass_all
4868 ;;
4869 pc)
4870 lt_cv_deplibs_check_method=pass_all
4871 ;;
4872 esac
4873 ;;
4874
4875 tpf*)
4876 lt_cv_deplibs_check_method=pass_all
4877 ;;
4878 esac
4879
4880 fi
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4882 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4883 file_magic_cmd=$lt_cv_file_magic_cmd
4884 deplibs_check_method=$lt_cv_deplibs_check_method
4885 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898 plugin_option=
4899 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
4900 for plugin in $plugin_names; do
4901 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
4902 if test x$plugin_so = x$plugin; then
4903 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
4904 fi
4905 if test x$plugin_so != x$plugin; then
4906 plugin_option="--plugin $plugin_so"
4907 break
4908 fi
4909 done
4910
4911 if test -n "$ac_tool_prefix"; then
4912 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4913 set dummy ${ac_tool_prefix}ar; ac_word=$2
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4915 $as_echo_n "checking for $ac_word... " >&6; }
4916 if ${ac_cv_prog_AR+:} false; then :
4917 $as_echo_n "(cached) " >&6
4918 else
4919 if test -n "$AR"; then
4920 ac_cv_prog_AR="$AR" # Let the user override the test.
4921 else
4922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923 for as_dir in $PATH
4924 do
4925 IFS=$as_save_IFS
4926 test -z "$as_dir" && as_dir=.
4927 for ac_exec_ext in '' $ac_executable_extensions; do
4928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4929 ac_cv_prog_AR="${ac_tool_prefix}ar"
4930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4931 break 2
4932 fi
4933 done
4934 done
4935 IFS=$as_save_IFS
4936
4937 fi
4938 fi
4939 AR=$ac_cv_prog_AR
4940 if test -n "$AR"; then
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4942 $as_echo "$AR" >&6; }
4943 else
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4945 $as_echo "no" >&6; }
4946 fi
4947
4948
4949 fi
4950 if test -z "$ac_cv_prog_AR"; then
4951 ac_ct_AR=$AR
4952 # Extract the first word of "ar", so it can be a program name with args.
4953 set dummy ar; ac_word=$2
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4955 $as_echo_n "checking for $ac_word... " >&6; }
4956 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4957 $as_echo_n "(cached) " >&6
4958 else
4959 if test -n "$ac_ct_AR"; then
4960 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4961 else
4962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4963 for as_dir in $PATH
4964 do
4965 IFS=$as_save_IFS
4966 test -z "$as_dir" && as_dir=.
4967 for ac_exec_ext in '' $ac_executable_extensions; do
4968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4969 ac_cv_prog_ac_ct_AR="ar"
4970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4971 break 2
4972 fi
4973 done
4974 done
4975 IFS=$as_save_IFS
4976
4977 fi
4978 fi
4979 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4980 if test -n "$ac_ct_AR"; then
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4982 $as_echo "$ac_ct_AR" >&6; }
4983 else
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4985 $as_echo "no" >&6; }
4986 fi
4987
4988 if test "x$ac_ct_AR" = x; then
4989 AR="false"
4990 else
4991 case $cross_compiling:$ac_tool_warned in
4992 yes:)
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4994 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4995 ac_tool_warned=yes ;;
4996 esac
4997 AR=$ac_ct_AR
4998 fi
4999 else
5000 AR="$ac_cv_prog_AR"
5001 fi
5002
5003 test -z "$AR" && AR=ar
5004 if test -n "$plugin_option"; then
5005 if $AR --help 2>&1 | grep -q "\--plugin"; then
5006 touch conftest.c
5007 $AR $plugin_option rc conftest.a conftest.c
5008 if test "$?" != 0; then
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
5010 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
5011 else
5012 AR="$AR $plugin_option"
5013 fi
5014 rm -f conftest.*
5015 fi
5016 fi
5017 test -z "$AR_FLAGS" && AR_FLAGS=cru
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029 if test -n "$ac_tool_prefix"; then
5030 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5031 set dummy ${ac_tool_prefix}strip; ac_word=$2
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5033 $as_echo_n "checking for $ac_word... " >&6; }
5034 if ${ac_cv_prog_STRIP+:} false; then :
5035 $as_echo_n "(cached) " >&6
5036 else
5037 if test -n "$STRIP"; then
5038 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5039 else
5040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5041 for as_dir in $PATH
5042 do
5043 IFS=$as_save_IFS
5044 test -z "$as_dir" && as_dir=.
5045 for ac_exec_ext in '' $ac_executable_extensions; do
5046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5047 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5049 break 2
5050 fi
5051 done
5052 done
5053 IFS=$as_save_IFS
5054
5055 fi
5056 fi
5057 STRIP=$ac_cv_prog_STRIP
5058 if test -n "$STRIP"; then
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5060 $as_echo "$STRIP" >&6; }
5061 else
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5063 $as_echo "no" >&6; }
5064 fi
5065
5066
5067 fi
5068 if test -z "$ac_cv_prog_STRIP"; then
5069 ac_ct_STRIP=$STRIP
5070 # Extract the first word of "strip", so it can be a program name with args.
5071 set dummy strip; ac_word=$2
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5073 $as_echo_n "checking for $ac_word... " >&6; }
5074 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5075 $as_echo_n "(cached) " >&6
5076 else
5077 if test -n "$ac_ct_STRIP"; then
5078 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5079 else
5080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5081 for as_dir in $PATH
5082 do
5083 IFS=$as_save_IFS
5084 test -z "$as_dir" && as_dir=.
5085 for ac_exec_ext in '' $ac_executable_extensions; do
5086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5087 ac_cv_prog_ac_ct_STRIP="strip"
5088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5089 break 2
5090 fi
5091 done
5092 done
5093 IFS=$as_save_IFS
5094
5095 fi
5096 fi
5097 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5098 if test -n "$ac_ct_STRIP"; then
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5100 $as_echo "$ac_ct_STRIP" >&6; }
5101 else
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5103 $as_echo "no" >&6; }
5104 fi
5105
5106 if test "x$ac_ct_STRIP" = x; then
5107 STRIP=":"
5108 else
5109 case $cross_compiling:$ac_tool_warned in
5110 yes:)
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5112 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5113 ac_tool_warned=yes ;;
5114 esac
5115 STRIP=$ac_ct_STRIP
5116 fi
5117 else
5118 STRIP="$ac_cv_prog_STRIP"
5119 fi
5120
5121 test -z "$STRIP" && STRIP=:
5122
5123
5124
5125
5126
5127
5128 if test -n "$ac_tool_prefix"; then
5129 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5130 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5132 $as_echo_n "checking for $ac_word... " >&6; }
5133 if ${ac_cv_prog_RANLIB+:} false; then :
5134 $as_echo_n "(cached) " >&6
5135 else
5136 if test -n "$RANLIB"; then
5137 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5138 else
5139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140 for as_dir in $PATH
5141 do
5142 IFS=$as_save_IFS
5143 test -z "$as_dir" && as_dir=.
5144 for ac_exec_ext in '' $ac_executable_extensions; do
5145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5146 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5148 break 2
5149 fi
5150 done
5151 done
5152 IFS=$as_save_IFS
5153
5154 fi
5155 fi
5156 RANLIB=$ac_cv_prog_RANLIB
5157 if test -n "$RANLIB"; then
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5159 $as_echo "$RANLIB" >&6; }
5160 else
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5162 $as_echo "no" >&6; }
5163 fi
5164
5165
5166 fi
5167 if test -z "$ac_cv_prog_RANLIB"; then
5168 ac_ct_RANLIB=$RANLIB
5169 # Extract the first word of "ranlib", so it can be a program name with args.
5170 set dummy ranlib; ac_word=$2
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5172 $as_echo_n "checking for $ac_word... " >&6; }
5173 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5174 $as_echo_n "(cached) " >&6
5175 else
5176 if test -n "$ac_ct_RANLIB"; then
5177 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5178 else
5179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180 for as_dir in $PATH
5181 do
5182 IFS=$as_save_IFS
5183 test -z "$as_dir" && as_dir=.
5184 for ac_exec_ext in '' $ac_executable_extensions; do
5185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5186 ac_cv_prog_ac_ct_RANLIB="ranlib"
5187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5188 break 2
5189 fi
5190 done
5191 done
5192 IFS=$as_save_IFS
5193
5194 fi
5195 fi
5196 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5197 if test -n "$ac_ct_RANLIB"; then
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5199 $as_echo "$ac_ct_RANLIB" >&6; }
5200 else
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5202 $as_echo "no" >&6; }
5203 fi
5204
5205 if test "x$ac_ct_RANLIB" = x; then
5206 RANLIB=":"
5207 else
5208 case $cross_compiling:$ac_tool_warned in
5209 yes:)
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5212 ac_tool_warned=yes ;;
5213 esac
5214 RANLIB=$ac_ct_RANLIB
5215 fi
5216 else
5217 RANLIB="$ac_cv_prog_RANLIB"
5218 fi
5219
5220 test -z "$RANLIB" && RANLIB=:
5221 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
5222 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
5223 RANLIB="$RANLIB $plugin_option"
5224 fi
5225 fi
5226
5227
5228
5229
5230
5231
5232 # Determine commands to create old-style static archives.
5233 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5234 old_postinstall_cmds='chmod 644 $oldlib'
5235 old_postuninstall_cmds=
5236
5237 if test -n "$RANLIB"; then
5238 case $host_os in
5239 openbsd*)
5240 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5241 ;;
5242 *)
5243 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5244 ;;
5245 esac
5246 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5247 fi
5248
5249 case $host_os in
5250 darwin*)
5251 lock_old_archive_extraction=yes ;;
5252 *)
5253 lock_old_archive_extraction=no ;;
5254 esac
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276 for ac_prog in gawk mawk nawk awk
5277 do
5278 # Extract the first word of "$ac_prog", so it can be a program name with args.
5279 set dummy $ac_prog; ac_word=$2
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5281 $as_echo_n "checking for $ac_word... " >&6; }
5282 if ${ac_cv_prog_AWK+:} false; then :
5283 $as_echo_n "(cached) " >&6
5284 else
5285 if test -n "$AWK"; then
5286 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5287 else
5288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289 for as_dir in $PATH
5290 do
5291 IFS=$as_save_IFS
5292 test -z "$as_dir" && as_dir=.
5293 for ac_exec_ext in '' $ac_executable_extensions; do
5294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5295 ac_cv_prog_AWK="$ac_prog"
5296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5297 break 2
5298 fi
5299 done
5300 done
5301 IFS=$as_save_IFS
5302
5303 fi
5304 fi
5305 AWK=$ac_cv_prog_AWK
5306 if test -n "$AWK"; then
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5308 $as_echo "$AWK" >&6; }
5309 else
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5311 $as_echo "no" >&6; }
5312 fi
5313
5314
5315 test -n "$AWK" && break
5316 done
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336 # If no C compiler was specified, use CC.
5337 LTCC=${LTCC-"$CC"}
5338
5339 # If no C compiler flags were specified, use CFLAGS.
5340 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5341
5342 # Allow CC to be a program name with arguments.
5343 compiler=$CC
5344
5345
5346 # Check for command to grab the raw symbol name followed by C symbol from nm.
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5348 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5349 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5350 $as_echo_n "(cached) " >&6
5351 else
5352
5353 # These are sane defaults that work on at least a few old systems.
5354 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5355
5356 # Character class describing NM global symbol codes.
5357 symcode='[BCDEGRST]'
5358
5359 # Regexp to match symbols that can be accessed directly from C.
5360 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5361
5362 # Define system-specific variables.
5363 case $host_os in
5364 aix*)
5365 symcode='[BCDT]'
5366 ;;
5367 cygwin* | mingw* | pw32* | cegcc*)
5368 symcode='[ABCDGISTW]'
5369 ;;
5370 hpux*)
5371 if test "$host_cpu" = ia64; then
5372 symcode='[ABCDEGRST]'
5373 fi
5374 ;;
5375 irix* | nonstopux*)
5376 symcode='[BCDEGRST]'
5377 ;;
5378 osf*)
5379 symcode='[BCDEGQRST]'
5380 ;;
5381 solaris*)
5382 symcode='[BDRT]'
5383 ;;
5384 sco3.2v5*)
5385 symcode='[DT]'
5386 ;;
5387 sysv4.2uw2*)
5388 symcode='[DT]'
5389 ;;
5390 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5391 symcode='[ABDT]'
5392 ;;
5393 sysv4)
5394 symcode='[DFNSTU]'
5395 ;;
5396 esac
5397
5398 # If we're using GNU nm, then use its standard symbol codes.
5399 case `$NM -V 2>&1` in
5400 *GNU* | *'with BFD'*)
5401 symcode='[ABCDGIRSTW]' ;;
5402 esac
5403
5404 # Transform an extracted symbol line into a proper C declaration.
5405 # Some systems (esp. on ia64) link data and code symbols differently,
5406 # so use this general approach.
5407 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5408
5409 # Transform an extracted symbol line into symbol name and symbol address
5410 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5411 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'"
5412
5413 # Handle CRLF in mingw tool chain
5414 opt_cr=
5415 case $build_os in
5416 mingw*)
5417 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5418 ;;
5419 esac
5420
5421 # Try without a prefix underscore, then with it.
5422 for ac_symprfx in "" "_"; do
5423
5424 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5425 symxfrm="\\1 $ac_symprfx\\2 \\2"
5426
5427 # Write the raw and C identifiers.
5428 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5429 # Fake it for dumpbin and say T for any non-static function
5430 # and D for any global variable.
5431 # Also find C++ and __fastcall symbols from MSVC++,
5432 # which start with @ or ?.
5433 lt_cv_sys_global_symbol_pipe="$AWK '"\
5434 " {last_section=section; section=\$ 3};"\
5435 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5436 " \$ 0!~/External *\|/{next};"\
5437 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5438 " {if(hide[section]) next};"\
5439 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5440 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5441 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5442 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5443 " ' prfx=^$ac_symprfx"
5444 else
5445 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5446 fi
5447
5448 # Check to see that the pipe works correctly.
5449 pipe_works=no
5450
5451 rm -f conftest*
5452 cat > conftest.$ac_ext <<_LT_EOF
5453 #ifdef __cplusplus
5454 extern "C" {
5455 #endif
5456 char nm_test_var;
5457 void nm_test_func(void);
5458 void nm_test_func(void){}
5459 #ifdef __cplusplus
5460 }
5461 #endif
5462 int main(){nm_test_var='a';nm_test_func();return(0);}
5463 _LT_EOF
5464
5465 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5466 (eval $ac_compile) 2>&5
5467 ac_status=$?
5468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5469 test $ac_status = 0; }; then
5470 # Now try to grab the symbols.
5471 nlist=conftest.nm
5472 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5473 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5474 ac_status=$?
5475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5476 test $ac_status = 0; } && test -s "$nlist"; then
5477 # Try sorting and uniquifying the output.
5478 if sort "$nlist" | uniq > "$nlist"T; then
5479 mv -f "$nlist"T "$nlist"
5480 else
5481 rm -f "$nlist"T
5482 fi
5483
5484 # Make sure that we snagged all the symbols we need.
5485 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5486 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5487 cat <<_LT_EOF > conftest.$ac_ext
5488 #ifdef __cplusplus
5489 extern "C" {
5490 #endif
5491
5492 _LT_EOF
5493 # Now generate the symbol file.
5494 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5495
5496 cat <<_LT_EOF >> conftest.$ac_ext
5497
5498 /* The mapping between symbol names and symbols. */
5499 const struct {
5500 const char *name;
5501 void *address;
5502 }
5503 lt__PROGRAM__LTX_preloaded_symbols[] =
5504 {
5505 { "@PROGRAM@", (void *) 0 },
5506 _LT_EOF
5507 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5508 cat <<\_LT_EOF >> conftest.$ac_ext
5509 {0, (void *) 0}
5510 };
5511
5512 /* This works around a problem in FreeBSD linker */
5513 #ifdef FREEBSD_WORKAROUND
5514 static const void *lt_preloaded_setup() {
5515 return lt__PROGRAM__LTX_preloaded_symbols;
5516 }
5517 #endif
5518
5519 #ifdef __cplusplus
5520 }
5521 #endif
5522 _LT_EOF
5523 # Now try linking the two files.
5524 mv conftest.$ac_objext conftstm.$ac_objext
5525 lt_save_LIBS="$LIBS"
5526 lt_save_CFLAGS="$CFLAGS"
5527 LIBS="conftstm.$ac_objext"
5528 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5529 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5530 (eval $ac_link) 2>&5
5531 ac_status=$?
5532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5533 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5534 pipe_works=yes
5535 fi
5536 LIBS="$lt_save_LIBS"
5537 CFLAGS="$lt_save_CFLAGS"
5538 else
5539 echo "cannot find nm_test_func in $nlist" >&5
5540 fi
5541 else
5542 echo "cannot find nm_test_var in $nlist" >&5
5543 fi
5544 else
5545 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5546 fi
5547 else
5548 echo "$progname: failed program was:" >&5
5549 cat conftest.$ac_ext >&5
5550 fi
5551 rm -rf conftest* conftst*
5552
5553 # Do not use the global_symbol_pipe unless it works.
5554 if test "$pipe_works" = yes; then
5555 break
5556 else
5557 lt_cv_sys_global_symbol_pipe=
5558 fi
5559 done
5560
5561 fi
5562
5563 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5564 lt_cv_sys_global_symbol_to_cdecl=
5565 fi
5566 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5568 $as_echo "failed" >&6; }
5569 else
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5571 $as_echo "ok" >&6; }
5572 fi
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595 # Check whether --enable-libtool-lock was given.
5596 if test "${enable_libtool_lock+set}" = set; then :
5597 enableval=$enable_libtool_lock;
5598 fi
5599
5600 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5601
5602 # Some flags need to be propagated to the compiler or linker for good
5603 # libtool support.
5604 case $host in
5605 ia64-*-hpux*)
5606 # Find out which ABI we are using.
5607 echo 'int i;' > conftest.$ac_ext
5608 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5609 (eval $ac_compile) 2>&5
5610 ac_status=$?
5611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5612 test $ac_status = 0; }; then
5613 case `/usr/bin/file conftest.$ac_objext` in
5614 *ELF-32*)
5615 HPUX_IA64_MODE="32"
5616 ;;
5617 *ELF-64*)
5618 HPUX_IA64_MODE="64"
5619 ;;
5620 esac
5621 fi
5622 rm -rf conftest*
5623 ;;
5624 *-*-irix6*)
5625 # Find out which ABI we are using.
5626 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5627 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5628 (eval $ac_compile) 2>&5
5629 ac_status=$?
5630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5631 test $ac_status = 0; }; then
5632 if test "$lt_cv_prog_gnu_ld" = yes; then
5633 case `/usr/bin/file conftest.$ac_objext` in
5634 *32-bit*)
5635 LD="${LD-ld} -melf32bsmip"
5636 ;;
5637 *N32*)
5638 LD="${LD-ld} -melf32bmipn32"
5639 ;;
5640 *64-bit*)
5641 LD="${LD-ld} -melf64bmip"
5642 ;;
5643 esac
5644 else
5645 case `/usr/bin/file conftest.$ac_objext` in
5646 *32-bit*)
5647 LD="${LD-ld} -32"
5648 ;;
5649 *N32*)
5650 LD="${LD-ld} -n32"
5651 ;;
5652 *64-bit*)
5653 LD="${LD-ld} -64"
5654 ;;
5655 esac
5656 fi
5657 fi
5658 rm -rf conftest*
5659 ;;
5660
5661 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
5662 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5663 # Find out which ABI we are using.
5664 echo 'int i;' > conftest.$ac_ext
5665 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5666 (eval $ac_compile) 2>&5
5667 ac_status=$?
5668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5669 test $ac_status = 0; }; then
5670 case `/usr/bin/file conftest.o` in
5671 *32-bit*)
5672 case $host in
5673 x86_64-*kfreebsd*-gnu)
5674 LD="${LD-ld} -m elf_i386_fbsd"
5675 ;;
5676 x86_64-*linux*)
5677 case `/usr/bin/file conftest.o` in
5678 *x86-64*)
5679 LD="${LD-ld} -m elf32_x86_64"
5680 ;;
5681 *)
5682 LD="${LD-ld} -m elf_i386"
5683 ;;
5684 esac
5685 ;;
5686 powerpc64le-*linux*)
5687 LD="${LD-ld} -m elf32lppclinux"
5688 ;;
5689 powerpc64-*linux*)
5690 LD="${LD-ld} -m elf32ppclinux"
5691 ;;
5692 s390x-*linux*)
5693 LD="${LD-ld} -m elf_s390"
5694 ;;
5695 sparc64-*linux*)
5696 LD="${LD-ld} -m elf32_sparc"
5697 ;;
5698 esac
5699 ;;
5700 *64-bit*)
5701 case $host in
5702 x86_64-*kfreebsd*-gnu)
5703 LD="${LD-ld} -m elf_x86_64_fbsd"
5704 ;;
5705 x86_64-*linux*)
5706 LD="${LD-ld} -m elf_x86_64"
5707 ;;
5708 powerpcle-*linux*)
5709 LD="${LD-ld} -m elf64lppc"
5710 ;;
5711 powerpc-*linux*)
5712 LD="${LD-ld} -m elf64ppc"
5713 ;;
5714 s390*-*linux*|s390*-*tpf*)
5715 LD="${LD-ld} -m elf64_s390"
5716 ;;
5717 sparc*-*linux*)
5718 LD="${LD-ld} -m elf64_sparc"
5719 ;;
5720 esac
5721 ;;
5722 esac
5723 fi
5724 rm -rf conftest*
5725 ;;
5726
5727 *-*-sco3.2v5*)
5728 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5729 SAVE_CFLAGS="$CFLAGS"
5730 CFLAGS="$CFLAGS -belf"
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5732 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5733 if ${lt_cv_cc_needs_belf+:} false; then :
5734 $as_echo_n "(cached) " >&6
5735 else
5736 ac_ext=c
5737 ac_cpp='$CPP $CPPFLAGS'
5738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5741
5742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5743 /* end confdefs.h. */
5744
5745 int
5746 main ()
5747 {
5748
5749 ;
5750 return 0;
5751 }
5752 _ACEOF
5753 if ac_fn_c_try_link "$LINENO"; then :
5754 lt_cv_cc_needs_belf=yes
5755 else
5756 lt_cv_cc_needs_belf=no
5757 fi
5758 rm -f core conftest.err conftest.$ac_objext \
5759 conftest$ac_exeext conftest.$ac_ext
5760 ac_ext=c
5761 ac_cpp='$CPP $CPPFLAGS'
5762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5765
5766 fi
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5768 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5769 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5770 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5771 CFLAGS="$SAVE_CFLAGS"
5772 fi
5773 ;;
5774 sparc*-*solaris*)
5775 # Find out which ABI we are using.
5776 echo 'int i;' > conftest.$ac_ext
5777 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5778 (eval $ac_compile) 2>&5
5779 ac_status=$?
5780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5781 test $ac_status = 0; }; then
5782 case `/usr/bin/file conftest.o` in
5783 *64-bit*)
5784 case $lt_cv_prog_gnu_ld in
5785 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5786 *)
5787 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5788 LD="${LD-ld} -64"
5789 fi
5790 ;;
5791 esac
5792 ;;
5793 esac
5794 fi
5795 rm -rf conftest*
5796 ;;
5797 esac
5798
5799 need_locks="$enable_libtool_lock"
5800
5801
5802 case $host_os in
5803 rhapsody* | darwin*)
5804 if test -n "$ac_tool_prefix"; then
5805 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5806 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5808 $as_echo_n "checking for $ac_word... " >&6; }
5809 if ${ac_cv_prog_DSYMUTIL+:} false; then :
5810 $as_echo_n "(cached) " >&6
5811 else
5812 if test -n "$DSYMUTIL"; then
5813 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5814 else
5815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5816 for as_dir in $PATH
5817 do
5818 IFS=$as_save_IFS
5819 test -z "$as_dir" && as_dir=.
5820 for ac_exec_ext in '' $ac_executable_extensions; do
5821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5822 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5824 break 2
5825 fi
5826 done
5827 done
5828 IFS=$as_save_IFS
5829
5830 fi
5831 fi
5832 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5833 if test -n "$DSYMUTIL"; then
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5835 $as_echo "$DSYMUTIL" >&6; }
5836 else
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5838 $as_echo "no" >&6; }
5839 fi
5840
5841
5842 fi
5843 if test -z "$ac_cv_prog_DSYMUTIL"; then
5844 ac_ct_DSYMUTIL=$DSYMUTIL
5845 # Extract the first word of "dsymutil", so it can be a program name with args.
5846 set dummy dsymutil; ac_word=$2
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5848 $as_echo_n "checking for $ac_word... " >&6; }
5849 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
5850 $as_echo_n "(cached) " >&6
5851 else
5852 if test -n "$ac_ct_DSYMUTIL"; then
5853 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5854 else
5855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5856 for as_dir in $PATH
5857 do
5858 IFS=$as_save_IFS
5859 test -z "$as_dir" && as_dir=.
5860 for ac_exec_ext in '' $ac_executable_extensions; do
5861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5862 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5864 break 2
5865 fi
5866 done
5867 done
5868 IFS=$as_save_IFS
5869
5870 fi
5871 fi
5872 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5873 if test -n "$ac_ct_DSYMUTIL"; then
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5875 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5876 else
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5878 $as_echo "no" >&6; }
5879 fi
5880
5881 if test "x$ac_ct_DSYMUTIL" = x; then
5882 DSYMUTIL=":"
5883 else
5884 case $cross_compiling:$ac_tool_warned in
5885 yes:)
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5888 ac_tool_warned=yes ;;
5889 esac
5890 DSYMUTIL=$ac_ct_DSYMUTIL
5891 fi
5892 else
5893 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5894 fi
5895
5896 if test -n "$ac_tool_prefix"; then
5897 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5898 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5900 $as_echo_n "checking for $ac_word... " >&6; }
5901 if ${ac_cv_prog_NMEDIT+:} false; then :
5902 $as_echo_n "(cached) " >&6
5903 else
5904 if test -n "$NMEDIT"; then
5905 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5906 else
5907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5908 for as_dir in $PATH
5909 do
5910 IFS=$as_save_IFS
5911 test -z "$as_dir" && as_dir=.
5912 for ac_exec_ext in '' $ac_executable_extensions; do
5913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5914 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5916 break 2
5917 fi
5918 done
5919 done
5920 IFS=$as_save_IFS
5921
5922 fi
5923 fi
5924 NMEDIT=$ac_cv_prog_NMEDIT
5925 if test -n "$NMEDIT"; then
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5927 $as_echo "$NMEDIT" >&6; }
5928 else
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5930 $as_echo "no" >&6; }
5931 fi
5932
5933
5934 fi
5935 if test -z "$ac_cv_prog_NMEDIT"; then
5936 ac_ct_NMEDIT=$NMEDIT
5937 # Extract the first word of "nmedit", so it can be a program name with args.
5938 set dummy nmedit; ac_word=$2
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5940 $as_echo_n "checking for $ac_word... " >&6; }
5941 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
5942 $as_echo_n "(cached) " >&6
5943 else
5944 if test -n "$ac_ct_NMEDIT"; then
5945 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5946 else
5947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5948 for as_dir in $PATH
5949 do
5950 IFS=$as_save_IFS
5951 test -z "$as_dir" && as_dir=.
5952 for ac_exec_ext in '' $ac_executable_extensions; do
5953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5954 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5956 break 2
5957 fi
5958 done
5959 done
5960 IFS=$as_save_IFS
5961
5962 fi
5963 fi
5964 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5965 if test -n "$ac_ct_NMEDIT"; then
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5967 $as_echo "$ac_ct_NMEDIT" >&6; }
5968 else
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5970 $as_echo "no" >&6; }
5971 fi
5972
5973 if test "x$ac_ct_NMEDIT" = x; then
5974 NMEDIT=":"
5975 else
5976 case $cross_compiling:$ac_tool_warned in
5977 yes:)
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5980 ac_tool_warned=yes ;;
5981 esac
5982 NMEDIT=$ac_ct_NMEDIT
5983 fi
5984 else
5985 NMEDIT="$ac_cv_prog_NMEDIT"
5986 fi
5987
5988 if test -n "$ac_tool_prefix"; then
5989 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5990 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5992 $as_echo_n "checking for $ac_word... " >&6; }
5993 if ${ac_cv_prog_LIPO+:} false; then :
5994 $as_echo_n "(cached) " >&6
5995 else
5996 if test -n "$LIPO"; then
5997 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5998 else
5999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6000 for as_dir in $PATH
6001 do
6002 IFS=$as_save_IFS
6003 test -z "$as_dir" && as_dir=.
6004 for ac_exec_ext in '' $ac_executable_extensions; do
6005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6006 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6008 break 2
6009 fi
6010 done
6011 done
6012 IFS=$as_save_IFS
6013
6014 fi
6015 fi
6016 LIPO=$ac_cv_prog_LIPO
6017 if test -n "$LIPO"; then
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6019 $as_echo "$LIPO" >&6; }
6020 else
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6022 $as_echo "no" >&6; }
6023 fi
6024
6025
6026 fi
6027 if test -z "$ac_cv_prog_LIPO"; then
6028 ac_ct_LIPO=$LIPO
6029 # Extract the first word of "lipo", so it can be a program name with args.
6030 set dummy lipo; ac_word=$2
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6032 $as_echo_n "checking for $ac_word... " >&6; }
6033 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6034 $as_echo_n "(cached) " >&6
6035 else
6036 if test -n "$ac_ct_LIPO"; then
6037 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6038 else
6039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6040 for as_dir in $PATH
6041 do
6042 IFS=$as_save_IFS
6043 test -z "$as_dir" && as_dir=.
6044 for ac_exec_ext in '' $ac_executable_extensions; do
6045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6046 ac_cv_prog_ac_ct_LIPO="lipo"
6047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6048 break 2
6049 fi
6050 done
6051 done
6052 IFS=$as_save_IFS
6053
6054 fi
6055 fi
6056 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6057 if test -n "$ac_ct_LIPO"; then
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6059 $as_echo "$ac_ct_LIPO" >&6; }
6060 else
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6062 $as_echo "no" >&6; }
6063 fi
6064
6065 if test "x$ac_ct_LIPO" = x; then
6066 LIPO=":"
6067 else
6068 case $cross_compiling:$ac_tool_warned in
6069 yes:)
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6072 ac_tool_warned=yes ;;
6073 esac
6074 LIPO=$ac_ct_LIPO
6075 fi
6076 else
6077 LIPO="$ac_cv_prog_LIPO"
6078 fi
6079
6080 if test -n "$ac_tool_prefix"; then
6081 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6082 set dummy ${ac_tool_prefix}otool; ac_word=$2
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6084 $as_echo_n "checking for $ac_word... " >&6; }
6085 if ${ac_cv_prog_OTOOL+:} false; then :
6086 $as_echo_n "(cached) " >&6
6087 else
6088 if test -n "$OTOOL"; then
6089 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6090 else
6091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6092 for as_dir in $PATH
6093 do
6094 IFS=$as_save_IFS
6095 test -z "$as_dir" && as_dir=.
6096 for ac_exec_ext in '' $ac_executable_extensions; do
6097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6098 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6100 break 2
6101 fi
6102 done
6103 done
6104 IFS=$as_save_IFS
6105
6106 fi
6107 fi
6108 OTOOL=$ac_cv_prog_OTOOL
6109 if test -n "$OTOOL"; then
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6111 $as_echo "$OTOOL" >&6; }
6112 else
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6114 $as_echo "no" >&6; }
6115 fi
6116
6117
6118 fi
6119 if test -z "$ac_cv_prog_OTOOL"; then
6120 ac_ct_OTOOL=$OTOOL
6121 # Extract the first word of "otool", so it can be a program name with args.
6122 set dummy otool; ac_word=$2
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6124 $as_echo_n "checking for $ac_word... " >&6; }
6125 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6126 $as_echo_n "(cached) " >&6
6127 else
6128 if test -n "$ac_ct_OTOOL"; then
6129 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6130 else
6131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6132 for as_dir in $PATH
6133 do
6134 IFS=$as_save_IFS
6135 test -z "$as_dir" && as_dir=.
6136 for ac_exec_ext in '' $ac_executable_extensions; do
6137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6138 ac_cv_prog_ac_ct_OTOOL="otool"
6139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6140 break 2
6141 fi
6142 done
6143 done
6144 IFS=$as_save_IFS
6145
6146 fi
6147 fi
6148 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6149 if test -n "$ac_ct_OTOOL"; then
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6151 $as_echo "$ac_ct_OTOOL" >&6; }
6152 else
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6154 $as_echo "no" >&6; }
6155 fi
6156
6157 if test "x$ac_ct_OTOOL" = x; then
6158 OTOOL=":"
6159 else
6160 case $cross_compiling:$ac_tool_warned in
6161 yes:)
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6164 ac_tool_warned=yes ;;
6165 esac
6166 OTOOL=$ac_ct_OTOOL
6167 fi
6168 else
6169 OTOOL="$ac_cv_prog_OTOOL"
6170 fi
6171
6172 if test -n "$ac_tool_prefix"; then
6173 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6174 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6176 $as_echo_n "checking for $ac_word... " >&6; }
6177 if ${ac_cv_prog_OTOOL64+:} false; then :
6178 $as_echo_n "(cached) " >&6
6179 else
6180 if test -n "$OTOOL64"; then
6181 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6182 else
6183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6184 for as_dir in $PATH
6185 do
6186 IFS=$as_save_IFS
6187 test -z "$as_dir" && as_dir=.
6188 for ac_exec_ext in '' $ac_executable_extensions; do
6189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6190 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6192 break 2
6193 fi
6194 done
6195 done
6196 IFS=$as_save_IFS
6197
6198 fi
6199 fi
6200 OTOOL64=$ac_cv_prog_OTOOL64
6201 if test -n "$OTOOL64"; then
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6203 $as_echo "$OTOOL64" >&6; }
6204 else
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6206 $as_echo "no" >&6; }
6207 fi
6208
6209
6210 fi
6211 if test -z "$ac_cv_prog_OTOOL64"; then
6212 ac_ct_OTOOL64=$OTOOL64
6213 # Extract the first word of "otool64", so it can be a program name with args.
6214 set dummy otool64; ac_word=$2
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6216 $as_echo_n "checking for $ac_word... " >&6; }
6217 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6218 $as_echo_n "(cached) " >&6
6219 else
6220 if test -n "$ac_ct_OTOOL64"; then
6221 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6222 else
6223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6224 for as_dir in $PATH
6225 do
6226 IFS=$as_save_IFS
6227 test -z "$as_dir" && as_dir=.
6228 for ac_exec_ext in '' $ac_executable_extensions; do
6229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6230 ac_cv_prog_ac_ct_OTOOL64="otool64"
6231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6232 break 2
6233 fi
6234 done
6235 done
6236 IFS=$as_save_IFS
6237
6238 fi
6239 fi
6240 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6241 if test -n "$ac_ct_OTOOL64"; then
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6243 $as_echo "$ac_ct_OTOOL64" >&6; }
6244 else
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6246 $as_echo "no" >&6; }
6247 fi
6248
6249 if test "x$ac_ct_OTOOL64" = x; then
6250 OTOOL64=":"
6251 else
6252 case $cross_compiling:$ac_tool_warned in
6253 yes:)
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6256 ac_tool_warned=yes ;;
6257 esac
6258 OTOOL64=$ac_ct_OTOOL64
6259 fi
6260 else
6261 OTOOL64="$ac_cv_prog_OTOOL64"
6262 fi
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6291 $as_echo_n "checking for -single_module linker flag... " >&6; }
6292 if ${lt_cv_apple_cc_single_mod+:} false; then :
6293 $as_echo_n "(cached) " >&6
6294 else
6295 lt_cv_apple_cc_single_mod=no
6296 if test -z "${LT_MULTI_MODULE}"; then
6297 # By default we will add the -single_module flag. You can override
6298 # by either setting the environment variable LT_MULTI_MODULE
6299 # non-empty at configure time, or by adding -multi_module to the
6300 # link flags.
6301 rm -rf libconftest.dylib*
6302 echo "int foo(void){return 1;}" > conftest.c
6303 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6304 -dynamiclib -Wl,-single_module conftest.c" >&5
6305 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6306 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6307 _lt_result=$?
6308 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6309 lt_cv_apple_cc_single_mod=yes
6310 else
6311 cat conftest.err >&5
6312 fi
6313 rm -rf libconftest.dylib*
6314 rm -f conftest.*
6315 fi
6316 fi
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6318 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6320 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6321 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6322 $as_echo_n "(cached) " >&6
6323 else
6324 lt_cv_ld_exported_symbols_list=no
6325 save_LDFLAGS=$LDFLAGS
6326 echo "_main" > conftest.sym
6327 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6329 /* end confdefs.h. */
6330
6331 int
6332 main ()
6333 {
6334
6335 ;
6336 return 0;
6337 }
6338 _ACEOF
6339 if ac_fn_c_try_link "$LINENO"; then :
6340 lt_cv_ld_exported_symbols_list=yes
6341 else
6342 lt_cv_ld_exported_symbols_list=no
6343 fi
6344 rm -f core conftest.err conftest.$ac_objext \
6345 conftest$ac_exeext conftest.$ac_ext
6346 LDFLAGS="$save_LDFLAGS"
6347
6348 fi
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6350 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6352 $as_echo_n "checking for -force_load linker flag... " >&6; }
6353 if ${lt_cv_ld_force_load+:} false; then :
6354 $as_echo_n "(cached) " >&6
6355 else
6356 lt_cv_ld_force_load=no
6357 cat > conftest.c << _LT_EOF
6358 int forced_loaded() { return 2;}
6359 _LT_EOF
6360 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6361 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6362 echo "$AR cru libconftest.a conftest.o" >&5
6363 $AR cru libconftest.a conftest.o 2>&5
6364 cat > conftest.c << _LT_EOF
6365 int main() { return 0;}
6366 _LT_EOF
6367 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6368 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6369 _lt_result=$?
6370 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6371 lt_cv_ld_force_load=yes
6372 else
6373 cat conftest.err >&5
6374 fi
6375 rm -f conftest.err libconftest.a conftest conftest.c
6376 rm -rf conftest.dSYM
6377
6378 fi
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6380 $as_echo "$lt_cv_ld_force_load" >&6; }
6381 case $host_os in
6382 rhapsody* | darwin1.[012])
6383 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6384 darwin1.*)
6385 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6386 darwin*) # darwin 5.x on
6387 # if running on 10.5 or later, the deployment target defaults
6388 # to the OS version, if on x86, and 10.4, the deployment
6389 # target defaults to 10.4. Don't you love it?
6390 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6391 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6392 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6393 10.[012][,.]*)
6394 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6395 10.*)
6396 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6397 esac
6398 ;;
6399 esac
6400 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6401 _lt_dar_single_mod='$single_module'
6402 fi
6403 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6404 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6405 else
6406 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6407 fi
6408 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6409 _lt_dsymutil='~$DSYMUTIL $lib || :'
6410 else
6411 _lt_dsymutil=
6412 fi
6413 ;;
6414 esac
6415
6416 for ac_header in dlfcn.h
6417 do :
6418 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6419 "
6420 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6421 cat >>confdefs.h <<_ACEOF
6422 #define HAVE_DLFCN_H 1
6423 _ACEOF
6424
6425 fi
6426
6427 done
6428
6429
6430
6431
6432
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6434 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6435 if ${ac_cv_c_bigendian+:} false; then :
6436 $as_echo_n "(cached) " >&6
6437 else
6438 ac_cv_c_bigendian=unknown
6439 # See if we're dealing with a universal compiler.
6440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6441 /* end confdefs.h. */
6442 #ifndef __APPLE_CC__
6443 not a universal capable compiler
6444 #endif
6445 typedef int dummy;
6446
6447 _ACEOF
6448 if ac_fn_c_try_compile "$LINENO"; then :
6449
6450 # Check for potential -arch flags. It is not universal unless
6451 # there are at least two -arch flags with different values.
6452 ac_arch=
6453 ac_prev=
6454 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6455 if test -n "$ac_prev"; then
6456 case $ac_word in
6457 i?86 | x86_64 | ppc | ppc64)
6458 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6459 ac_arch=$ac_word
6460 else
6461 ac_cv_c_bigendian=universal
6462 break
6463 fi
6464 ;;
6465 esac
6466 ac_prev=
6467 elif test "x$ac_word" = "x-arch"; then
6468 ac_prev=arch
6469 fi
6470 done
6471 fi
6472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6473 if test $ac_cv_c_bigendian = unknown; then
6474 # See if sys/param.h defines the BYTE_ORDER macro.
6475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6476 /* end confdefs.h. */
6477 #include <sys/types.h>
6478 #include <sys/param.h>
6479
6480 int
6481 main ()
6482 {
6483 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6484 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6485 && LITTLE_ENDIAN)
6486 bogus endian macros
6487 #endif
6488
6489 ;
6490 return 0;
6491 }
6492 _ACEOF
6493 if ac_fn_c_try_compile "$LINENO"; then :
6494 # It does; now see whether it defined to BIG_ENDIAN or not.
6495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6496 /* end confdefs.h. */
6497 #include <sys/types.h>
6498 #include <sys/param.h>
6499
6500 int
6501 main ()
6502 {
6503 #if BYTE_ORDER != BIG_ENDIAN
6504 not big endian
6505 #endif
6506
6507 ;
6508 return 0;
6509 }
6510 _ACEOF
6511 if ac_fn_c_try_compile "$LINENO"; then :
6512 ac_cv_c_bigendian=yes
6513 else
6514 ac_cv_c_bigendian=no
6515 fi
6516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6517 fi
6518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6519 fi
6520 if test $ac_cv_c_bigendian = unknown; then
6521 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6523 /* end confdefs.h. */
6524 #include <limits.h>
6525
6526 int
6527 main ()
6528 {
6529 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6530 bogus endian macros
6531 #endif
6532
6533 ;
6534 return 0;
6535 }
6536 _ACEOF
6537 if ac_fn_c_try_compile "$LINENO"; then :
6538 # It does; now see whether it defined to _BIG_ENDIAN or not.
6539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6540 /* end confdefs.h. */
6541 #include <limits.h>
6542
6543 int
6544 main ()
6545 {
6546 #ifndef _BIG_ENDIAN
6547 not big endian
6548 #endif
6549
6550 ;
6551 return 0;
6552 }
6553 _ACEOF
6554 if ac_fn_c_try_compile "$LINENO"; then :
6555 ac_cv_c_bigendian=yes
6556 else
6557 ac_cv_c_bigendian=no
6558 fi
6559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6560 fi
6561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6562 fi
6563 if test $ac_cv_c_bigendian = unknown; then
6564 # Compile a test program.
6565 if test "$cross_compiling" = yes; then :
6566 # Try to guess by grepping values from an object file.
6567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6568 /* end confdefs.h. */
6569 short int ascii_mm[] =
6570 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6571 short int ascii_ii[] =
6572 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6573 int use_ascii (int i) {
6574 return ascii_mm[i] + ascii_ii[i];
6575 }
6576 short int ebcdic_ii[] =
6577 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6578 short int ebcdic_mm[] =
6579 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6580 int use_ebcdic (int i) {
6581 return ebcdic_mm[i] + ebcdic_ii[i];
6582 }
6583 extern int foo;
6584
6585 int
6586 main ()
6587 {
6588 return use_ascii (foo) == use_ebcdic (foo);
6589 ;
6590 return 0;
6591 }
6592 _ACEOF
6593 if ac_fn_c_try_compile "$LINENO"; then :
6594 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6595 ac_cv_c_bigendian=yes
6596 fi
6597 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6598 if test "$ac_cv_c_bigendian" = unknown; then
6599 ac_cv_c_bigendian=no
6600 else
6601 # finding both strings is unlikely to happen, but who knows?
6602 ac_cv_c_bigendian=unknown
6603 fi
6604 fi
6605 fi
6606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6607 else
6608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6609 /* end confdefs.h. */
6610 $ac_includes_default
6611 int
6612 main ()
6613 {
6614
6615 /* Are we little or big endian? From Harbison&Steele. */
6616 union
6617 {
6618 long int l;
6619 char c[sizeof (long int)];
6620 } u;
6621 u.l = 1;
6622 return u.c[sizeof (long int) - 1] == 1;
6623
6624 ;
6625 return 0;
6626 }
6627 _ACEOF
6628 if ac_fn_c_try_run "$LINENO"; then :
6629 ac_cv_c_bigendian=no
6630 else
6631 ac_cv_c_bigendian=yes
6632 fi
6633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6634 conftest.$ac_objext conftest.beam conftest.$ac_ext
6635 fi
6636
6637 fi
6638 fi
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6640 $as_echo "$ac_cv_c_bigendian" >&6; }
6641 case $ac_cv_c_bigendian in #(
6642 yes)
6643 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6644 ;; #(
6645 no)
6646 ;; #(
6647 universal)
6648
6649 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6650
6651 ;; #(
6652 *)
6653 as_fn_error $? "unknown endianness
6654 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6655 esac
6656
6657
6658
6659
6660 if test "x$cross_compiling" = "xno"; then
6661 : "${AR_FOR_BUILD:=\$(AR)}"
6662 : "${CC_FOR_BUILD:=\$(CC)}"
6663 : "${RANLIB_FOR_BUILD:=\$(RANLIB)}"
6664 : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}"
6665 : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}"
6666 else
6667 : "${AR_FOR_BUILD:=ar}"
6668 : "${CC_FOR_BUILD:=gcc}"
6669 : "${RANLIB_FOR_BUILD:=ranlib}"
6670 : "${CFLAGS_FOR_BUILD:=-g -O}"
6671 : "${LDLFAGS_FOR_BUILD:=}"
6672 fi
6673
6674
6675
6676
6677
6678
6679
6680 if test -n "$ac_tool_prefix"; then
6681 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6682 set dummy ${ac_tool_prefix}ar; ac_word=$2
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6684 $as_echo_n "checking for $ac_word... " >&6; }
6685 if ${ac_cv_prog_AR+:} false; then :
6686 $as_echo_n "(cached) " >&6
6687 else
6688 if test -n "$AR"; then
6689 ac_cv_prog_AR="$AR" # Let the user override the test.
6690 else
6691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6692 for as_dir in $PATH
6693 do
6694 IFS=$as_save_IFS
6695 test -z "$as_dir" && as_dir=.
6696 for ac_exec_ext in '' $ac_executable_extensions; do
6697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6698 ac_cv_prog_AR="${ac_tool_prefix}ar"
6699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6700 break 2
6701 fi
6702 done
6703 done
6704 IFS=$as_save_IFS
6705
6706 fi
6707 fi
6708 AR=$ac_cv_prog_AR
6709 if test -n "$AR"; then
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6711 $as_echo "$AR" >&6; }
6712 else
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6714 $as_echo "no" >&6; }
6715 fi
6716
6717
6718 fi
6719 if test -z "$ac_cv_prog_AR"; then
6720 ac_ct_AR=$AR
6721 # Extract the first word of "ar", so it can be a program name with args.
6722 set dummy ar; ac_word=$2
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6724 $as_echo_n "checking for $ac_word... " >&6; }
6725 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6726 $as_echo_n "(cached) " >&6
6727 else
6728 if test -n "$ac_ct_AR"; then
6729 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6730 else
6731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732 for as_dir in $PATH
6733 do
6734 IFS=$as_save_IFS
6735 test -z "$as_dir" && as_dir=.
6736 for ac_exec_ext in '' $ac_executable_extensions; do
6737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6738 ac_cv_prog_ac_ct_AR="ar"
6739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6740 break 2
6741 fi
6742 done
6743 done
6744 IFS=$as_save_IFS
6745
6746 fi
6747 fi
6748 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6749 if test -n "$ac_ct_AR"; then
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6751 $as_echo "$ac_ct_AR" >&6; }
6752 else
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6754 $as_echo "no" >&6; }
6755 fi
6756
6757 if test "x$ac_ct_AR" = x; then
6758 AR=""
6759 else
6760 case $cross_compiling:$ac_tool_warned in
6761 yes:)
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6763 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6764 ac_tool_warned=yes ;;
6765 esac
6766 AR=$ac_ct_AR
6767 fi
6768 else
6769 AR="$ac_cv_prog_AR"
6770 fi
6771
6772 if test -n "$ac_tool_prefix"; then
6773 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6774 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6776 $as_echo_n "checking for $ac_word... " >&6; }
6777 if ${ac_cv_prog_RANLIB+:} false; then :
6778 $as_echo_n "(cached) " >&6
6779 else
6780 if test -n "$RANLIB"; then
6781 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6782 else
6783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784 for as_dir in $PATH
6785 do
6786 IFS=$as_save_IFS
6787 test -z "$as_dir" && as_dir=.
6788 for ac_exec_ext in '' $ac_executable_extensions; do
6789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6790 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6792 break 2
6793 fi
6794 done
6795 done
6796 IFS=$as_save_IFS
6797
6798 fi
6799 fi
6800 RANLIB=$ac_cv_prog_RANLIB
6801 if test -n "$RANLIB"; then
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6803 $as_echo "$RANLIB" >&6; }
6804 else
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6806 $as_echo "no" >&6; }
6807 fi
6808
6809
6810 fi
6811 if test -z "$ac_cv_prog_RANLIB"; then
6812 ac_ct_RANLIB=$RANLIB
6813 # Extract the first word of "ranlib", so it can be a program name with args.
6814 set dummy ranlib; ac_word=$2
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6816 $as_echo_n "checking for $ac_word... " >&6; }
6817 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6818 $as_echo_n "(cached) " >&6
6819 else
6820 if test -n "$ac_ct_RANLIB"; then
6821 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6822 else
6823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6824 for as_dir in $PATH
6825 do
6826 IFS=$as_save_IFS
6827 test -z "$as_dir" && as_dir=.
6828 for ac_exec_ext in '' $ac_executable_extensions; do
6829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6830 ac_cv_prog_ac_ct_RANLIB="ranlib"
6831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6832 break 2
6833 fi
6834 done
6835 done
6836 IFS=$as_save_IFS
6837
6838 fi
6839 fi
6840 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6841 if test -n "$ac_ct_RANLIB"; then
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6843 $as_echo "$ac_ct_RANLIB" >&6; }
6844 else
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6846 $as_echo "no" >&6; }
6847 fi
6848
6849 if test "x$ac_ct_RANLIB" = x; then
6850 RANLIB=":"
6851 else
6852 case $cross_compiling:$ac_tool_warned in
6853 yes:)
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6855 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6856 ac_tool_warned=yes ;;
6857 esac
6858 RANLIB=$ac_ct_RANLIB
6859 fi
6860 else
6861 RANLIB="$ac_cv_prog_RANLIB"
6862 fi
6863
6864
6865 # Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using
6866 # AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands
6867 # is C99. So handle it ourselves.
6868 :
6869 C_DIALECT=
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5
6871 $as_echo_n "checking whether C11 is supported by default... " >&6; }
6872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6873 /* end confdefs.h. */
6874
6875 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
6876 # error "C11 support not found"
6877 #endif
6878
6879 _ACEOF
6880 if ac_fn_c_try_compile "$LINENO"; then :
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6882 $as_echo "yes" >&6; }
6883 else
6884
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6886 $as_echo "no" >&6; }
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5
6888 $as_echo_n "checking for -std=c11 support... " >&6; }
6889 ac_save_CC="$CC"
6890 CC="$CC -std=c11"
6891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6892 /* end confdefs.h. */
6893
6894 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
6895 # error "C11 support not found"
6896 #endif
6897
6898 _ACEOF
6899 if ac_fn_c_try_compile "$LINENO"; then :
6900
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6902 $as_echo "yes" >&6; }
6903 CC="$ac_save_CC"
6904 C_DIALECT="-std=c11"
6905
6906 else
6907 as_fn_error $? "C11 is required" "$LINENO" 5
6908 fi
6909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6910 fi
6911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6912
6913
6914 ac_config_headers="$ac_config_headers config.h:config.in"
6915
6916
6917 # Some of the common include files depend on bfd.h, and bfd.h checks
6918 # that config.h is included first by testing that the PACKAGE macro
6919 # is defined.
6920 PACKAGE=sim
6921
6922 cat >>confdefs.h <<_ACEOF
6923 #define PACKAGE "$PACKAGE"
6924 _ACEOF
6925
6926
6927
6928 # Dependency checking.
6929 ac_config_commands="$ac_config_commands depdir"
6930
6931
6932 depcc="$CC" am_compiler_list=
6933
6934 am_depcomp=$ac_aux_dir/depcomp
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6936 $as_echo_n "checking dependency style of $depcc... " >&6; }
6937 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6938 $as_echo_n "(cached) " >&6
6939 else
6940 if test -f "$am_depcomp"; then
6941 # We make a subdir and do the tests there. Otherwise we can end up
6942 # making bogus files that we don't know about and never remove. For
6943 # instance it was reported that on HP-UX the gcc test will end up
6944 # making a dummy file named `D' -- because `-MD' means `put the output
6945 # in D'.
6946 mkdir conftest.dir
6947 # Copy depcomp to subdir because otherwise we won't find it if we're
6948 # using a relative directory.
6949 cp "$am_depcomp" conftest.dir
6950 cd conftest.dir
6951 # We will build objects and dependencies in a subdirectory because
6952 # it helps to detect inapplicable dependency modes. For instance
6953 # both Tru64's cc and ICC support -MD to output dependencies as a
6954 # side effect of compilation, but ICC will put the dependencies in
6955 # the current directory while Tru64 will put them in the object
6956 # directory.
6957 mkdir sub
6958
6959 am_cv_CC_dependencies_compiler_type=none
6960 if test "$am_compiler_list" = ""; then
6961 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6962 fi
6963 for depmode in $am_compiler_list; do
6964 if test $depmode = none; then break; fi
6965
6966 $as_echo "$as_me:$LINENO: trying $depmode" >&5
6967 # Setup a source with many dependencies, because some compilers
6968 # like to wrap large dependency lists on column 80 (with \), and
6969 # we should not choose a depcomp mode which is confused by this.
6970 #
6971 # We need to recreate these files for each test, as the compiler may
6972 # overwrite some of them when testing with obscure command lines.
6973 # This happens at least with the AIX C compiler.
6974 : > sub/conftest.c
6975 for i in 1 2 3 4 5 6; do
6976 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6977 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6978 # Solaris 8's {/usr,}/bin/sh.
6979 touch sub/conftst$i.h
6980 done
6981 echo "include sub/conftest.Po" > confmf
6982
6983 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6984 # mode. It turns out that the SunPro C++ compiler does not properly
6985 # handle `-M -o', and we need to detect this.
6986 depcmd="depmode=$depmode \
6987 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6988 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6989 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
6990 echo "| $depcmd" | sed -e 's/ */ /g' >&5
6991 if env $depcmd > conftest.err 2>&1 &&
6992 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
6993 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
6994 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
6995 # icc doesn't choke on unknown options, it will just issue warnings
6996 # or remarks (even with -Werror). So we grep stderr for any message
6997 # that says an option was ignored or not supported.
6998 # When given -MP, icc 7.0 and 7.1 complain thusly:
6999 # icc: Command line warning: ignoring option '-M'; no argument required
7000 # The diagnosis changed in icc 8.0:
7001 # icc: Command line remark: option '-MP' not supported
7002 if (grep 'ignoring option' conftest.err ||
7003 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7004 am_cv_CC_dependencies_compiler_type=$depmode
7005 $as_echo "$as_me:$LINENO: success" >&5
7006 break
7007 fi
7008 fi
7009 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
7010 sed -e 's/^/| /' < conftest.err >&5
7011 done
7012
7013 cd ..
7014 rm -rf conftest.dir
7015 else
7016 am_cv_CC_dependencies_compiler_type=none
7017 fi
7018
7019 fi
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7021 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7022 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
7023 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
7024 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7025
7026 fi
7027
7028
7029 ALL_LINGUAS=
7030 # If we haven't got the data from the intl directory,
7031 # assume NLS is disabled.
7032 USE_NLS=no
7033 LIBINTL=
7034 LIBINTL_DEP=
7035 INCINTL=
7036 XGETTEXT=
7037 GMSGFMT=
7038 POSUB=
7039
7040 if test -f ../../intl/config.intl; then
7041 . ../../intl/config.intl
7042 fi
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7044 $as_echo_n "checking whether NLS is requested... " >&6; }
7045 if test x"$USE_NLS" != xyes; then
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7047 $as_echo "no" >&6; }
7048 else
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7050 $as_echo "yes" >&6; }
7051
7052 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
7053
7054
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
7056 $as_echo_n "checking for catalogs to be installed... " >&6; }
7057 # Look for .po and .gmo files in the source directory.
7058 CATALOGS=
7059 XLINGUAS=
7060 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
7061 # If there aren't any .gmo files the shell will give us the
7062 # literal string "../path/to/srcdir/po/*.gmo" which has to be
7063 # weeded out.
7064 case "$cat" in *\**)
7065 continue;;
7066 esac
7067 # The quadruple backslash is collapsed to a double backslash
7068 # by the backticks, then collapsed again by the double quotes,
7069 # leaving us with one backslash in the sed expression (right
7070 # before the dot that mustn't act as a wildcard).
7071 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
7072 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
7073 # The user is allowed to set LINGUAS to a list of languages to
7074 # install catalogs for. If it's empty that means "all of them."
7075 if test "x$LINGUAS" = x; then
7076 CATALOGS="$CATALOGS $cat"
7077 XLINGUAS="$XLINGUAS $lang"
7078 else
7079 case "$LINGUAS" in *$lang*)
7080 CATALOGS="$CATALOGS $cat"
7081 XLINGUAS="$XLINGUAS $lang"
7082 ;;
7083 esac
7084 fi
7085 done
7086 LINGUAS="$XLINGUAS"
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
7088 $as_echo "$LINGUAS" >&6; }
7089
7090
7091 DATADIRNAME=share
7092
7093 INSTOBJEXT=.mo
7094
7095 GENCAT=gencat
7096
7097 CATOBJEXT=.gmo
7098
7099 fi
7100
7101 # Check for socket libraries
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
7103 $as_echo_n "checking for bind in -lsocket... " >&6; }
7104 if ${ac_cv_lib_socket_bind+:} false; then :
7105 $as_echo_n "(cached) " >&6
7106 else
7107 ac_check_lib_save_LIBS=$LIBS
7108 LIBS="-lsocket $LIBS"
7109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7110 /* end confdefs.h. */
7111
7112 /* Override any GCC internal prototype to avoid an error.
7113 Use char because int might match the return type of a GCC
7114 builtin and then its argument prototype would still apply. */
7115 #ifdef __cplusplus
7116 extern "C"
7117 #endif
7118 char bind ();
7119 int
7120 main ()
7121 {
7122 return bind ();
7123 ;
7124 return 0;
7125 }
7126 _ACEOF
7127 if ac_fn_c_try_link "$LINENO"; then :
7128 ac_cv_lib_socket_bind=yes
7129 else
7130 ac_cv_lib_socket_bind=no
7131 fi
7132 rm -f core conftest.err conftest.$ac_objext \
7133 conftest$ac_exeext conftest.$ac_ext
7134 LIBS=$ac_check_lib_save_LIBS
7135 fi
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
7137 $as_echo "$ac_cv_lib_socket_bind" >&6; }
7138 if test "x$ac_cv_lib_socket_bind" = xyes; then :
7139 cat >>confdefs.h <<_ACEOF
7140 #define HAVE_LIBSOCKET 1
7141 _ACEOF
7142
7143 LIBS="-lsocket $LIBS"
7144
7145 fi
7146
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7148 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7149 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
7150 $as_echo_n "(cached) " >&6
7151 else
7152 ac_check_lib_save_LIBS=$LIBS
7153 LIBS="-lnsl $LIBS"
7154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7155 /* end confdefs.h. */
7156
7157 /* Override any GCC internal prototype to avoid an error.
7158 Use char because int might match the return type of a GCC
7159 builtin and then its argument prototype would still apply. */
7160 #ifdef __cplusplus
7161 extern "C"
7162 #endif
7163 char gethostbyname ();
7164 int
7165 main ()
7166 {
7167 return gethostbyname ();
7168 ;
7169 return 0;
7170 }
7171 _ACEOF
7172 if ac_fn_c_try_link "$LINENO"; then :
7173 ac_cv_lib_nsl_gethostbyname=yes
7174 else
7175 ac_cv_lib_nsl_gethostbyname=no
7176 fi
7177 rm -f core conftest.err conftest.$ac_objext \
7178 conftest$ac_exeext conftest.$ac_ext
7179 LIBS=$ac_check_lib_save_LIBS
7180 fi
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7182 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7183 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
7184 cat >>confdefs.h <<_ACEOF
7185 #define HAVE_LIBNSL 1
7186 _ACEOF
7187
7188 LIBS="-lnsl $LIBS"
7189
7190 fi
7191
7192
7193 # BFD conditionally uses zlib, so we must link it in if libbfd does, by
7194 # using the same condition.
7195
7196 # Use the system's zlib library.
7197 zlibdir="-L\$(top_builddir)/../zlib"
7198 zlibinc="-I\$(top_srcdir)/../zlib"
7199
7200 # Check whether --with-system-zlib was given.
7201 if test "${with_system_zlib+set}" = set; then :
7202 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
7203 zlibdir=
7204 zlibinc=
7205 fi
7206
7207 fi
7208
7209
7210
7211
7212
7213 # BFD uses libdl when when plugins enabled.
7214
7215 maybe_plugins=no
7216 for ac_header in dlfcn.h
7217 do :
7218 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7219 "
7220 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7221 cat >>confdefs.h <<_ACEOF
7222 #define HAVE_DLFCN_H 1
7223 _ACEOF
7224 maybe_plugins=yes
7225 fi
7226
7227 done
7228
7229 for ac_header in windows.h
7230 do :
7231 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
7232 "
7233 if test "x$ac_cv_header_windows_h" = xyes; then :
7234 cat >>confdefs.h <<_ACEOF
7235 #define HAVE_WINDOWS_H 1
7236 _ACEOF
7237 maybe_plugins=yes
7238 fi
7239
7240 done
7241
7242
7243 # Check whether --enable-plugins was given.
7244 if test "${enable_plugins+set}" = set; then :
7245 enableval=$enable_plugins; case "${enableval}" in
7246 no) plugins=no ;;
7247 *) plugins=yes
7248 if test "$maybe_plugins" != "yes" ; then
7249 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
7250 fi ;;
7251 esac
7252 else
7253 plugins=$maybe_plugins
7254
7255 fi
7256
7257 if test "$plugins" = "yes"; then
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
7259 $as_echo_n "checking for library containing dlsym... " >&6; }
7260 if ${ac_cv_search_dlsym+:} false; then :
7261 $as_echo_n "(cached) " >&6
7262 else
7263 ac_func_search_save_LIBS=$LIBS
7264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7265 /* end confdefs.h. */
7266
7267 /* Override any GCC internal prototype to avoid an error.
7268 Use char because int might match the return type of a GCC
7269 builtin and then its argument prototype would still apply. */
7270 #ifdef __cplusplus
7271 extern "C"
7272 #endif
7273 char dlsym ();
7274 int
7275 main ()
7276 {
7277 return dlsym ();
7278 ;
7279 return 0;
7280 }
7281 _ACEOF
7282 for ac_lib in '' dl; do
7283 if test -z "$ac_lib"; then
7284 ac_res="none required"
7285 else
7286 ac_res=-l$ac_lib
7287 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7288 fi
7289 if ac_fn_c_try_link "$LINENO"; then :
7290 ac_cv_search_dlsym=$ac_res
7291 fi
7292 rm -f core conftest.err conftest.$ac_objext \
7293 conftest$ac_exeext
7294 if ${ac_cv_search_dlsym+:} false; then :
7295 break
7296 fi
7297 done
7298 if ${ac_cv_search_dlsym+:} false; then :
7299
7300 else
7301 ac_cv_search_dlsym=no
7302 fi
7303 rm conftest.$ac_ext
7304 LIBS=$ac_func_search_save_LIBS
7305 fi
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
7307 $as_echo "$ac_cv_search_dlsym" >&6; }
7308 ac_res=$ac_cv_search_dlsym
7309 if test "$ac_res" != no; then :
7310 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7311
7312 fi
7313
7314 fi
7315
7316 if test "$plugins" = yes; then
7317 PLUGINS_TRUE=
7318 PLUGINS_FALSE='#'
7319 else
7320 PLUGINS_TRUE='#'
7321 PLUGINS_FALSE=
7322 fi
7323
7324
7325
7326
7327
7328 # Set options
7329 enable_dlopen=yes
7330
7331
7332
7333
7334 enable_win32_dll=no
7335
7336
7337 # Check whether --enable-shared was given.
7338 if test "${enable_shared+set}" = set; then :
7339 enableval=$enable_shared; p=${PACKAGE-default}
7340 case $enableval in
7341 yes) enable_shared=yes ;;
7342 no) enable_shared=no ;;
7343 *)
7344 enable_shared=no
7345 # Look at the argument we got. We use all the common list separators.
7346 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7347 for pkg in $enableval; do
7348 IFS="$lt_save_ifs"
7349 if test "X$pkg" = "X$p"; then
7350 enable_shared=yes
7351 fi
7352 done
7353 IFS="$lt_save_ifs"
7354 ;;
7355 esac
7356 else
7357 enable_shared=yes
7358 fi
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368 # Check whether --enable-static was given.
7369 if test "${enable_static+set}" = set; then :
7370 enableval=$enable_static; p=${PACKAGE-default}
7371 case $enableval in
7372 yes) enable_static=yes ;;
7373 no) enable_static=no ;;
7374 *)
7375 enable_static=no
7376 # Look at the argument we got. We use all the common list separators.
7377 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7378 for pkg in $enableval; do
7379 IFS="$lt_save_ifs"
7380 if test "X$pkg" = "X$p"; then
7381 enable_static=yes
7382 fi
7383 done
7384 IFS="$lt_save_ifs"
7385 ;;
7386 esac
7387 else
7388 enable_static=yes
7389 fi
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400 # Check whether --with-pic was given.
7401 if test "${with_pic+set}" = set; then :
7402 withval=$with_pic; pic_mode="$withval"
7403 else
7404 pic_mode=default
7405 fi
7406
7407
7408 test -z "$pic_mode" && pic_mode=default
7409
7410
7411
7412
7413
7414
7415
7416 # Check whether --enable-fast-install was given.
7417 if test "${enable_fast_install+set}" = set; then :
7418 enableval=$enable_fast_install; p=${PACKAGE-default}
7419 case $enableval in
7420 yes) enable_fast_install=yes ;;
7421 no) enable_fast_install=no ;;
7422 *)
7423 enable_fast_install=no
7424 # Look at the argument we got. We use all the common list separators.
7425 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7426 for pkg in $enableval; do
7427 IFS="$lt_save_ifs"
7428 if test "X$pkg" = "X$p"; then
7429 enable_fast_install=yes
7430 fi
7431 done
7432 IFS="$lt_save_ifs"
7433 ;;
7434 esac
7435 else
7436 enable_fast_install=yes
7437 fi
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449 # This can be used to rebuild libtool when needed
7450 LIBTOOL_DEPS="$ltmain"
7451
7452 # Always use our own libtool.
7453 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480 test -z "$LN_S" && LN_S="ln -s"
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495 if test -n "${ZSH_VERSION+set}" ; then
7496 setopt NO_GLOB_SUBST
7497 fi
7498
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7500 $as_echo_n "checking for objdir... " >&6; }
7501 if ${lt_cv_objdir+:} false; then :
7502 $as_echo_n "(cached) " >&6
7503 else
7504 rm -f .libs 2>/dev/null
7505 mkdir .libs 2>/dev/null
7506 if test -d .libs; then
7507 lt_cv_objdir=.libs
7508 else
7509 # MS-DOS does not allow filenames that begin with a dot.
7510 lt_cv_objdir=_libs
7511 fi
7512 rmdir .libs 2>/dev/null
7513 fi
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7515 $as_echo "$lt_cv_objdir" >&6; }
7516 objdir=$lt_cv_objdir
7517
7518
7519
7520
7521
7522 cat >>confdefs.h <<_ACEOF
7523 #define LT_OBJDIR "$lt_cv_objdir/"
7524 _ACEOF
7525
7526
7527
7528
7529 case $host_os in
7530 aix3*)
7531 # AIX sometimes has problems with the GCC collect2 program. For some
7532 # reason, if we set the COLLECT_NAMES environment variable, the problems
7533 # vanish in a puff of smoke.
7534 if test "X${COLLECT_NAMES+set}" != Xset; then
7535 COLLECT_NAMES=
7536 export COLLECT_NAMES
7537 fi
7538 ;;
7539 esac
7540
7541 # Global variables:
7542 ofile=libtool
7543 can_build_shared=yes
7544
7545 # All known linkers require a `.a' archive for static linking (except MSVC,
7546 # which needs '.lib').
7547 libext=a
7548
7549 with_gnu_ld="$lt_cv_prog_gnu_ld"
7550
7551 old_CC="$CC"
7552 old_CFLAGS="$CFLAGS"
7553
7554 # Set sane defaults for various variables
7555 test -z "$CC" && CC=cc
7556 test -z "$LTCC" && LTCC=$CC
7557 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7558 test -z "$LD" && LD=ld
7559 test -z "$ac_objext" && ac_objext=o
7560
7561 for cc_temp in $compiler""; do
7562 case $cc_temp in
7563 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7564 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7565 \-*) ;;
7566 *) break;;
7567 esac
7568 done
7569 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7570
7571
7572 # Only perform the check for file, if the check method requires it
7573 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7574 case $deplibs_check_method in
7575 file_magic*)
7576 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7578 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7579 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7580 $as_echo_n "(cached) " >&6
7581 else
7582 case $MAGIC_CMD in
7583 [\\/*] | ?:[\\/]*)
7584 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7585 ;;
7586 *)
7587 lt_save_MAGIC_CMD="$MAGIC_CMD"
7588 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7589 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7590 for ac_dir in $ac_dummy; do
7591 IFS="$lt_save_ifs"
7592 test -z "$ac_dir" && ac_dir=.
7593 if test -f $ac_dir/${ac_tool_prefix}file; then
7594 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7595 if test -n "$file_magic_test_file"; then
7596 case $deplibs_check_method in
7597 "file_magic "*)
7598 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7599 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7600 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7601 $EGREP "$file_magic_regex" > /dev/null; then
7602 :
7603 else
7604 cat <<_LT_EOF 1>&2
7605
7606 *** Warning: the command libtool uses to detect shared libraries,
7607 *** $file_magic_cmd, produces output that libtool cannot recognize.
7608 *** The result is that libtool may fail to recognize shared libraries
7609 *** as such. This will affect the creation of libtool libraries that
7610 *** depend on shared libraries, but programs linked with such libtool
7611 *** libraries will work regardless of this problem. Nevertheless, you
7612 *** may want to report the problem to your system manager and/or to
7613 *** bug-libtool@gnu.org
7614
7615 _LT_EOF
7616 fi ;;
7617 esac
7618 fi
7619 break
7620 fi
7621 done
7622 IFS="$lt_save_ifs"
7623 MAGIC_CMD="$lt_save_MAGIC_CMD"
7624 ;;
7625 esac
7626 fi
7627
7628 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7629 if test -n "$MAGIC_CMD"; then
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7631 $as_echo "$MAGIC_CMD" >&6; }
7632 else
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7634 $as_echo "no" >&6; }
7635 fi
7636
7637
7638
7639
7640
7641 if test -z "$lt_cv_path_MAGIC_CMD"; then
7642 if test -n "$ac_tool_prefix"; then
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7644 $as_echo_n "checking for file... " >&6; }
7645 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7646 $as_echo_n "(cached) " >&6
7647 else
7648 case $MAGIC_CMD in
7649 [\\/*] | ?:[\\/]*)
7650 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7651 ;;
7652 *)
7653 lt_save_MAGIC_CMD="$MAGIC_CMD"
7654 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7655 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7656 for ac_dir in $ac_dummy; do
7657 IFS="$lt_save_ifs"
7658 test -z "$ac_dir" && ac_dir=.
7659 if test -f $ac_dir/file; then
7660 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7661 if test -n "$file_magic_test_file"; then
7662 case $deplibs_check_method in
7663 "file_magic "*)
7664 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7665 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7666 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7667 $EGREP "$file_magic_regex" > /dev/null; then
7668 :
7669 else
7670 cat <<_LT_EOF 1>&2
7671
7672 *** Warning: the command libtool uses to detect shared libraries,
7673 *** $file_magic_cmd, produces output that libtool cannot recognize.
7674 *** The result is that libtool may fail to recognize shared libraries
7675 *** as such. This will affect the creation of libtool libraries that
7676 *** depend on shared libraries, but programs linked with such libtool
7677 *** libraries will work regardless of this problem. Nevertheless, you
7678 *** may want to report the problem to your system manager and/or to
7679 *** bug-libtool@gnu.org
7680
7681 _LT_EOF
7682 fi ;;
7683 esac
7684 fi
7685 break
7686 fi
7687 done
7688 IFS="$lt_save_ifs"
7689 MAGIC_CMD="$lt_save_MAGIC_CMD"
7690 ;;
7691 esac
7692 fi
7693
7694 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7695 if test -n "$MAGIC_CMD"; then
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7697 $as_echo "$MAGIC_CMD" >&6; }
7698 else
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7700 $as_echo "no" >&6; }
7701 fi
7702
7703
7704 else
7705 MAGIC_CMD=:
7706 fi
7707 fi
7708
7709 fi
7710 ;;
7711 esac
7712
7713 # Use C for the default configuration in the libtool script
7714
7715 lt_save_CC="$CC"
7716 ac_ext=c
7717 ac_cpp='$CPP $CPPFLAGS'
7718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7721
7722
7723 # Source file extension for C test sources.
7724 ac_ext=c
7725
7726 # Object file extension for compiled C test sources.
7727 objext=o
7728 objext=$objext
7729
7730 # Code to be used in simple compile tests
7731 lt_simple_compile_test_code="int some_variable = 0;"
7732
7733 # Code to be used in simple link tests
7734 lt_simple_link_test_code='int main(){return(0);}'
7735
7736
7737
7738
7739
7740
7741
7742 # If no C compiler was specified, use CC.
7743 LTCC=${LTCC-"$CC"}
7744
7745 # If no C compiler flags were specified, use CFLAGS.
7746 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7747
7748 # Allow CC to be a program name with arguments.
7749 compiler=$CC
7750
7751 # Save the default compiler, since it gets overwritten when the other
7752 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7753 compiler_DEFAULT=$CC
7754
7755 # save warnings/boilerplate of simple test code
7756 ac_outfile=conftest.$ac_objext
7757 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7758 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7759 _lt_compiler_boilerplate=`cat conftest.err`
7760 $RM conftest*
7761
7762 ac_outfile=conftest.$ac_objext
7763 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7764 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7765 _lt_linker_boilerplate=`cat conftest.err`
7766 $RM -r conftest*
7767
7768
7769 ## CAVEAT EMPTOR:
7770 ## There is no encapsulation within the following macros, do not change
7771 ## the running order or otherwise move them around unless you know exactly
7772 ## what you are doing...
7773 if test -n "$compiler"; then
7774
7775 lt_prog_compiler_no_builtin_flag=
7776
7777 if test "$GCC" = yes; then
7778 case $cc_basename in
7779 nvcc*)
7780 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7781 *)
7782 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7783 esac
7784
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7786 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7787 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7788 $as_echo_n "(cached) " >&6
7789 else
7790 lt_cv_prog_compiler_rtti_exceptions=no
7791 ac_outfile=conftest.$ac_objext
7792 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7793 lt_compiler_flag="-fno-rtti -fno-exceptions"
7794 # Insert the option either (1) after the last *FLAGS variable, or
7795 # (2) before a word containing "conftest.", or (3) at the end.
7796 # Note that $ac_compile itself does not contain backslashes and begins
7797 # with a dollar sign (not a hyphen), so the echo should work correctly.
7798 # The option is referenced via a variable to avoid confusing sed.
7799 lt_compile=`echo "$ac_compile" | $SED \
7800 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7801 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7802 -e 's:$: $lt_compiler_flag:'`
7803 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7804 (eval "$lt_compile" 2>conftest.err)
7805 ac_status=$?
7806 cat conftest.err >&5
7807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7808 if (exit $ac_status) && test -s "$ac_outfile"; then
7809 # The compiler can only warn and ignore the option if not recognized
7810 # So say no if there are warnings other than the usual output.
7811 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7812 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7813 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7814 lt_cv_prog_compiler_rtti_exceptions=yes
7815 fi
7816 fi
7817 $RM conftest*
7818
7819 fi
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7821 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7822
7823 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7824 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7825 else
7826 :
7827 fi
7828
7829 fi
7830
7831
7832
7833
7834
7835
7836 lt_prog_compiler_wl=
7837 lt_prog_compiler_pic=
7838 lt_prog_compiler_static=
7839
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7841 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7842
7843 if test "$GCC" = yes; then
7844 lt_prog_compiler_wl='-Wl,'
7845 lt_prog_compiler_static='-static'
7846
7847 case $host_os in
7848 aix*)
7849 # All AIX code is PIC.
7850 if test "$host_cpu" = ia64; then
7851 # AIX 5 now supports IA64 processor
7852 lt_prog_compiler_static='-Bstatic'
7853 fi
7854 lt_prog_compiler_pic='-fPIC'
7855 ;;
7856
7857 amigaos*)
7858 case $host_cpu in
7859 powerpc)
7860 # see comment about AmigaOS4 .so support
7861 lt_prog_compiler_pic='-fPIC'
7862 ;;
7863 m68k)
7864 # FIXME: we need at least 68020 code to build shared libraries, but
7865 # adding the `-m68020' flag to GCC prevents building anything better,
7866 # like `-m68040'.
7867 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7868 ;;
7869 esac
7870 ;;
7871
7872 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7873 # PIC is the default for these OSes.
7874 ;;
7875
7876 mingw* | cygwin* | pw32* | os2* | cegcc*)
7877 # This hack is so that the source file can tell whether it is being
7878 # built for inclusion in a dll (and should export symbols for example).
7879 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7880 # (--disable-auto-import) libraries
7881 lt_prog_compiler_pic='-DDLL_EXPORT'
7882 ;;
7883
7884 darwin* | rhapsody*)
7885 # PIC is the default on this platform
7886 # Common symbols not allowed in MH_DYLIB files
7887 lt_prog_compiler_pic='-fno-common'
7888 ;;
7889
7890 haiku*)
7891 # PIC is the default for Haiku.
7892 # The "-static" flag exists, but is broken.
7893 lt_prog_compiler_static=
7894 ;;
7895
7896 hpux*)
7897 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7898 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7899 # sets the default TLS model and affects inlining.
7900 case $host_cpu in
7901 hppa*64*)
7902 # +Z the default
7903 ;;
7904 *)
7905 lt_prog_compiler_pic='-fPIC'
7906 ;;
7907 esac
7908 ;;
7909
7910 interix[3-9]*)
7911 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7912 # Instead, we relocate shared libraries at runtime.
7913 ;;
7914
7915 msdosdjgpp*)
7916 # Just because we use GCC doesn't mean we suddenly get shared libraries
7917 # on systems that don't support them.
7918 lt_prog_compiler_can_build_shared=no
7919 enable_shared=no
7920 ;;
7921
7922 *nto* | *qnx*)
7923 # QNX uses GNU C++, but need to define -shared option too, otherwise
7924 # it will coredump.
7925 lt_prog_compiler_pic='-fPIC -shared'
7926 ;;
7927
7928 sysv4*MP*)
7929 if test -d /usr/nec; then
7930 lt_prog_compiler_pic=-Kconform_pic
7931 fi
7932 ;;
7933
7934 *)
7935 lt_prog_compiler_pic='-fPIC'
7936 ;;
7937 esac
7938
7939 case $cc_basename in
7940 nvcc*) # Cuda Compiler Driver 2.2
7941 lt_prog_compiler_wl='-Xlinker '
7942 lt_prog_compiler_pic='-Xcompiler -fPIC'
7943 ;;
7944 esac
7945 else
7946 # PORTME Check for flag to pass linker flags through the system compiler.
7947 case $host_os in
7948 aix*)
7949 lt_prog_compiler_wl='-Wl,'
7950 if test "$host_cpu" = ia64; then
7951 # AIX 5 now supports IA64 processor
7952 lt_prog_compiler_static='-Bstatic'
7953 else
7954 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7955 fi
7956 ;;
7957
7958 mingw* | cygwin* | pw32* | os2* | cegcc*)
7959 # This hack is so that the source file can tell whether it is being
7960 # built for inclusion in a dll (and should export symbols for example).
7961 lt_prog_compiler_pic='-DDLL_EXPORT'
7962 ;;
7963
7964 hpux9* | hpux10* | hpux11*)
7965 lt_prog_compiler_wl='-Wl,'
7966 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7967 # not for PA HP-UX.
7968 case $host_cpu in
7969 hppa*64*|ia64*)
7970 # +Z the default
7971 ;;
7972 *)
7973 lt_prog_compiler_pic='+Z'
7974 ;;
7975 esac
7976 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7977 lt_prog_compiler_static='${wl}-a ${wl}archive'
7978 ;;
7979
7980 irix5* | irix6* | nonstopux*)
7981 lt_prog_compiler_wl='-Wl,'
7982 # PIC (with -KPIC) is the default.
7983 lt_prog_compiler_static='-non_shared'
7984 ;;
7985
7986 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7987 case $cc_basename in
7988 # old Intel for x86_64 which still supported -KPIC.
7989 ecc*)
7990 lt_prog_compiler_wl='-Wl,'
7991 lt_prog_compiler_pic='-KPIC'
7992 lt_prog_compiler_static='-static'
7993 ;;
7994 # icc used to be incompatible with GCC.
7995 # ICC 10 doesn't accept -KPIC any more.
7996 icc* | ifort*)
7997 lt_prog_compiler_wl='-Wl,'
7998 lt_prog_compiler_pic='-fPIC'
7999 lt_prog_compiler_static='-static'
8000 ;;
8001 # Lahey Fortran 8.1.
8002 lf95*)
8003 lt_prog_compiler_wl='-Wl,'
8004 lt_prog_compiler_pic='--shared'
8005 lt_prog_compiler_static='--static'
8006 ;;
8007 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8008 # Portland Group compilers (*not* the Pentium gcc compiler,
8009 # which looks to be a dead project)
8010 lt_prog_compiler_wl='-Wl,'
8011 lt_prog_compiler_pic='-fpic'
8012 lt_prog_compiler_static='-Bstatic'
8013 ;;
8014 ccc*)
8015 lt_prog_compiler_wl='-Wl,'
8016 # All Alpha code is PIC.
8017 lt_prog_compiler_static='-non_shared'
8018 ;;
8019 xl* | bgxl* | bgf* | mpixl*)
8020 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8021 lt_prog_compiler_wl='-Wl,'
8022 lt_prog_compiler_pic='-qpic'
8023 lt_prog_compiler_static='-qstaticlink'
8024 ;;
8025 *)
8026 case `$CC -V 2>&1 | sed 5q` in
8027 *Sun\ F* | *Sun*Fortran*)
8028 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8029 lt_prog_compiler_pic='-KPIC'
8030 lt_prog_compiler_static='-Bstatic'
8031 lt_prog_compiler_wl=''
8032 ;;
8033 *Sun\ C*)
8034 # Sun C 5.9
8035 lt_prog_compiler_pic='-KPIC'
8036 lt_prog_compiler_static='-Bstatic'
8037 lt_prog_compiler_wl='-Wl,'
8038 ;;
8039 esac
8040 ;;
8041 esac
8042 ;;
8043
8044 newsos6)
8045 lt_prog_compiler_pic='-KPIC'
8046 lt_prog_compiler_static='-Bstatic'
8047 ;;
8048
8049 *nto* | *qnx*)
8050 # QNX uses GNU C++, but need to define -shared option too, otherwise
8051 # it will coredump.
8052 lt_prog_compiler_pic='-fPIC -shared'
8053 ;;
8054
8055 osf3* | osf4* | osf5*)
8056 lt_prog_compiler_wl='-Wl,'
8057 # All OSF/1 code is PIC.
8058 lt_prog_compiler_static='-non_shared'
8059 ;;
8060
8061 rdos*)
8062 lt_prog_compiler_static='-non_shared'
8063 ;;
8064
8065 solaris*)
8066 lt_prog_compiler_pic='-KPIC'
8067 lt_prog_compiler_static='-Bstatic'
8068 case $cc_basename in
8069 f77* | f90* | f95*)
8070 lt_prog_compiler_wl='-Qoption ld ';;
8071 *)
8072 lt_prog_compiler_wl='-Wl,';;
8073 esac
8074 ;;
8075
8076 sunos4*)
8077 lt_prog_compiler_wl='-Qoption ld '
8078 lt_prog_compiler_pic='-PIC'
8079 lt_prog_compiler_static='-Bstatic'
8080 ;;
8081
8082 sysv4 | sysv4.2uw2* | sysv4.3*)
8083 lt_prog_compiler_wl='-Wl,'
8084 lt_prog_compiler_pic='-KPIC'
8085 lt_prog_compiler_static='-Bstatic'
8086 ;;
8087
8088 sysv4*MP*)
8089 if test -d /usr/nec ;then
8090 lt_prog_compiler_pic='-Kconform_pic'
8091 lt_prog_compiler_static='-Bstatic'
8092 fi
8093 ;;
8094
8095 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8096 lt_prog_compiler_wl='-Wl,'
8097 lt_prog_compiler_pic='-KPIC'
8098 lt_prog_compiler_static='-Bstatic'
8099 ;;
8100
8101 unicos*)
8102 lt_prog_compiler_wl='-Wl,'
8103 lt_prog_compiler_can_build_shared=no
8104 ;;
8105
8106 uts4*)
8107 lt_prog_compiler_pic='-pic'
8108 lt_prog_compiler_static='-Bstatic'
8109 ;;
8110
8111 *)
8112 lt_prog_compiler_can_build_shared=no
8113 ;;
8114 esac
8115 fi
8116
8117 case $host_os in
8118 # For platforms which do not support PIC, -DPIC is meaningless:
8119 *djgpp*)
8120 lt_prog_compiler_pic=
8121 ;;
8122 *)
8123 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8124 ;;
8125 esac
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8127 $as_echo "$lt_prog_compiler_pic" >&6; }
8128
8129
8130
8131
8132
8133
8134 #
8135 # Check to make sure the PIC flag actually works.
8136 #
8137 if test -n "$lt_prog_compiler_pic"; then
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8139 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8140 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8141 $as_echo_n "(cached) " >&6
8142 else
8143 lt_cv_prog_compiler_pic_works=no
8144 ac_outfile=conftest.$ac_objext
8145 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8146 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8147 # Insert the option either (1) after the last *FLAGS variable, or
8148 # (2) before a word containing "conftest.", or (3) at the end.
8149 # Note that $ac_compile itself does not contain backslashes and begins
8150 # with a dollar sign (not a hyphen), so the echo should work correctly.
8151 # The option is referenced via a variable to avoid confusing sed.
8152 lt_compile=`echo "$ac_compile" | $SED \
8153 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8154 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8155 -e 's:$: $lt_compiler_flag:'`
8156 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8157 (eval "$lt_compile" 2>conftest.err)
8158 ac_status=$?
8159 cat conftest.err >&5
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 if (exit $ac_status) && test -s "$ac_outfile"; then
8162 # The compiler can only warn and ignore the option if not recognized
8163 # So say no if there are warnings other than the usual output.
8164 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8165 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8166 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8167 lt_cv_prog_compiler_pic_works=yes
8168 fi
8169 fi
8170 $RM conftest*
8171
8172 fi
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8174 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8175
8176 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8177 case $lt_prog_compiler_pic in
8178 "" | " "*) ;;
8179 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8180 esac
8181 else
8182 lt_prog_compiler_pic=
8183 lt_prog_compiler_can_build_shared=no
8184 fi
8185
8186 fi
8187
8188
8189
8190
8191
8192
8193 #
8194 # Check to make sure the static flag actually works.
8195 #
8196 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8198 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8199 if ${lt_cv_prog_compiler_static_works+:} false; then :
8200 $as_echo_n "(cached) " >&6
8201 else
8202 lt_cv_prog_compiler_static_works=no
8203 save_LDFLAGS="$LDFLAGS"
8204 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8205 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8206 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8207 # The linker can only warn and ignore the option if not recognized
8208 # So say no if there are warnings
8209 if test -s conftest.err; then
8210 # Append any errors to the config.log.
8211 cat conftest.err 1>&5
8212 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8213 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8214 if diff conftest.exp conftest.er2 >/dev/null; then
8215 lt_cv_prog_compiler_static_works=yes
8216 fi
8217 else
8218 lt_cv_prog_compiler_static_works=yes
8219 fi
8220 fi
8221 $RM -r conftest*
8222 LDFLAGS="$save_LDFLAGS"
8223
8224 fi
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8226 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8227
8228 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8229 :
8230 else
8231 lt_prog_compiler_static=
8232 fi
8233
8234
8235
8236
8237
8238
8239
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8241 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8242 if ${lt_cv_prog_compiler_c_o+:} false; then :
8243 $as_echo_n "(cached) " >&6
8244 else
8245 lt_cv_prog_compiler_c_o=no
8246 $RM -r conftest 2>/dev/null
8247 mkdir conftest
8248 cd conftest
8249 mkdir out
8250 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8251
8252 lt_compiler_flag="-o out/conftest2.$ac_objext"
8253 # Insert the option either (1) after the last *FLAGS variable, or
8254 # (2) before a word containing "conftest.", or (3) at the end.
8255 # Note that $ac_compile itself does not contain backslashes and begins
8256 # with a dollar sign (not a hyphen), so the echo should work correctly.
8257 lt_compile=`echo "$ac_compile" | $SED \
8258 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8259 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8260 -e 's:$: $lt_compiler_flag:'`
8261 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8262 (eval "$lt_compile" 2>out/conftest.err)
8263 ac_status=$?
8264 cat out/conftest.err >&5
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8267 then
8268 # The compiler can only warn and ignore the option if not recognized
8269 # So say no if there are warnings
8270 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8271 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8272 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8273 lt_cv_prog_compiler_c_o=yes
8274 fi
8275 fi
8276 chmod u+w . 2>&5
8277 $RM conftest*
8278 # SGI C++ compiler will create directory out/ii_files/ for
8279 # template instantiation
8280 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8281 $RM out/* && rmdir out
8282 cd ..
8283 $RM -r conftest
8284 $RM conftest*
8285
8286 fi
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8288 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8289
8290
8291
8292
8293
8294
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8296 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8297 if ${lt_cv_prog_compiler_c_o+:} false; then :
8298 $as_echo_n "(cached) " >&6
8299 else
8300 lt_cv_prog_compiler_c_o=no
8301 $RM -r conftest 2>/dev/null
8302 mkdir conftest
8303 cd conftest
8304 mkdir out
8305 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8306
8307 lt_compiler_flag="-o out/conftest2.$ac_objext"
8308 # Insert the option either (1) after the last *FLAGS variable, or
8309 # (2) before a word containing "conftest.", or (3) at the end.
8310 # Note that $ac_compile itself does not contain backslashes and begins
8311 # with a dollar sign (not a hyphen), so the echo should work correctly.
8312 lt_compile=`echo "$ac_compile" | $SED \
8313 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8314 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8315 -e 's:$: $lt_compiler_flag:'`
8316 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8317 (eval "$lt_compile" 2>out/conftest.err)
8318 ac_status=$?
8319 cat out/conftest.err >&5
8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8322 then
8323 # The compiler can only warn and ignore the option if not recognized
8324 # So say no if there are warnings
8325 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8326 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8327 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8328 lt_cv_prog_compiler_c_o=yes
8329 fi
8330 fi
8331 chmod u+w . 2>&5
8332 $RM conftest*
8333 # SGI C++ compiler will create directory out/ii_files/ for
8334 # template instantiation
8335 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8336 $RM out/* && rmdir out
8337 cd ..
8338 $RM -r conftest
8339 $RM conftest*
8340
8341 fi
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8343 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8344
8345
8346
8347
8348 hard_links="nottested"
8349 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8350 # do not overwrite the value of need_locks provided by the user
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8352 $as_echo_n "checking if we can lock with hard links... " >&6; }
8353 hard_links=yes
8354 $RM conftest*
8355 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8356 touch conftest.a
8357 ln conftest.a conftest.b 2>&5 || hard_links=no
8358 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8360 $as_echo "$hard_links" >&6; }
8361 if test "$hard_links" = no; then
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8363 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8364 need_locks=warn
8365 fi
8366 else
8367 need_locks=no
8368 fi
8369
8370
8371
8372
8373
8374
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8376 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8377
8378 runpath_var=
8379 allow_undefined_flag=
8380 always_export_symbols=no
8381 archive_cmds=
8382 archive_expsym_cmds=
8383 compiler_needs_object=no
8384 enable_shared_with_static_runtimes=no
8385 export_dynamic_flag_spec=
8386 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8387 hardcode_automatic=no
8388 hardcode_direct=no
8389 hardcode_direct_absolute=no
8390 hardcode_libdir_flag_spec=
8391 hardcode_libdir_flag_spec_ld=
8392 hardcode_libdir_separator=
8393 hardcode_minus_L=no
8394 hardcode_shlibpath_var=unsupported
8395 inherit_rpath=no
8396 link_all_deplibs=unknown
8397 module_cmds=
8398 module_expsym_cmds=
8399 old_archive_from_new_cmds=
8400 old_archive_from_expsyms_cmds=
8401 thread_safe_flag_spec=
8402 whole_archive_flag_spec=
8403 # include_expsyms should be a list of space-separated symbols to be *always*
8404 # included in the symbol list
8405 include_expsyms=
8406 # exclude_expsyms can be an extended regexp of symbols to exclude
8407 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8408 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8409 # as well as any symbol that contains `d'.
8410 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8411 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8412 # platforms (ab)use it in PIC code, but their linkers get confused if
8413 # the symbol is explicitly referenced. Since portable code cannot
8414 # rely on this symbol name, it's probably fine to never include it in
8415 # preloaded symbol tables.
8416 # Exclude shared library initialization/finalization symbols.
8417 extract_expsyms_cmds=
8418
8419 case $host_os in
8420 cygwin* | mingw* | pw32* | cegcc*)
8421 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8422 # When not using gcc, we currently assume that we are using
8423 # Microsoft Visual C++.
8424 if test "$GCC" != yes; then
8425 with_gnu_ld=no
8426 fi
8427 ;;
8428 interix*)
8429 # we just hope/assume this is gcc and not c89 (= MSVC++)
8430 with_gnu_ld=yes
8431 ;;
8432 openbsd*)
8433 with_gnu_ld=no
8434 ;;
8435 esac
8436
8437 ld_shlibs=yes
8438
8439 # On some targets, GNU ld is compatible enough with the native linker
8440 # that we're better off using the native interface for both.
8441 lt_use_gnu_ld_interface=no
8442 if test "$with_gnu_ld" = yes; then
8443 case $host_os in
8444 aix*)
8445 # The AIX port of GNU ld has always aspired to compatibility
8446 # with the native linker. However, as the warning in the GNU ld
8447 # block says, versions before 2.19.5* couldn't really create working
8448 # shared libraries, regardless of the interface used.
8449 case `$LD -v 2>&1` in
8450 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8451 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8452 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8453 *)
8454 lt_use_gnu_ld_interface=yes
8455 ;;
8456 esac
8457 ;;
8458 *)
8459 lt_use_gnu_ld_interface=yes
8460 ;;
8461 esac
8462 fi
8463
8464 if test "$lt_use_gnu_ld_interface" = yes; then
8465 # If archive_cmds runs LD, not CC, wlarc should be empty
8466 wlarc='${wl}'
8467
8468 # Set some defaults for GNU ld with shared library support. These
8469 # are reset later if shared libraries are not supported. Putting them
8470 # here allows them to be overridden if necessary.
8471 runpath_var=LD_RUN_PATH
8472 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8473 export_dynamic_flag_spec='${wl}--export-dynamic'
8474 # ancient GNU ld didn't support --whole-archive et. al.
8475 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8476 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8477 else
8478 whole_archive_flag_spec=
8479 fi
8480 supports_anon_versioning=no
8481 case `$LD -v 2>&1` in
8482 *GNU\ gold*) supports_anon_versioning=yes ;;
8483 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8484 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8485 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8486 *\ 2.11.*) ;; # other 2.11 versions
8487 *) supports_anon_versioning=yes ;;
8488 esac
8489
8490 # See if GNU ld supports shared libraries.
8491 case $host_os in
8492 aix[3-9]*)
8493 # On AIX/PPC, the GNU linker is very broken
8494 if test "$host_cpu" != ia64; then
8495 ld_shlibs=no
8496 cat <<_LT_EOF 1>&2
8497
8498 *** Warning: the GNU linker, at least up to release 2.19, is reported
8499 *** to be unable to reliably create shared libraries on AIX.
8500 *** Therefore, libtool is disabling shared libraries support. If you
8501 *** really care for shared libraries, you may want to install binutils
8502 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8503 *** You will then need to restart the configuration process.
8504
8505 _LT_EOF
8506 fi
8507 ;;
8508
8509 amigaos*)
8510 case $host_cpu in
8511 powerpc)
8512 # see comment about AmigaOS4 .so support
8513 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8514 archive_expsym_cmds=''
8515 ;;
8516 m68k)
8517 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)'
8518 hardcode_libdir_flag_spec='-L$libdir'
8519 hardcode_minus_L=yes
8520 ;;
8521 esac
8522 ;;
8523
8524 beos*)
8525 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8526 allow_undefined_flag=unsupported
8527 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8528 # support --undefined. This deserves some investigation. FIXME
8529 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8530 else
8531 ld_shlibs=no
8532 fi
8533 ;;
8534
8535 cygwin* | mingw* | pw32* | cegcc*)
8536 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8537 # as there is no search path for DLLs.
8538 hardcode_libdir_flag_spec='-L$libdir'
8539 export_dynamic_flag_spec='${wl}--export-all-symbols'
8540 allow_undefined_flag=unsupported
8541 always_export_symbols=no
8542 enable_shared_with_static_runtimes=yes
8543 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8544
8545 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8546 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8547 # If the export-symbols file already is a .def file (1st line
8548 # is EXPORTS), use it as is; otherwise, prepend...
8549 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8550 cp $export_symbols $output_objdir/$soname.def;
8551 else
8552 echo EXPORTS > $output_objdir/$soname.def;
8553 cat $export_symbols >> $output_objdir/$soname.def;
8554 fi~
8555 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8556 else
8557 ld_shlibs=no
8558 fi
8559 ;;
8560
8561 haiku*)
8562 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8563 link_all_deplibs=yes
8564 ;;
8565
8566 interix[3-9]*)
8567 hardcode_direct=no
8568 hardcode_shlibpath_var=no
8569 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8570 export_dynamic_flag_spec='${wl}-E'
8571 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8572 # Instead, shared libraries are loaded at an image base (0x10000000 by
8573 # default) and relocated if they conflict, which is a slow very memory
8574 # consuming and fragmenting process. To avoid this, we pick a random,
8575 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8576 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8577 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8578 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'
8579 ;;
8580
8581 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8582 tmp_diet=no
8583 if test "$host_os" = linux-dietlibc; then
8584 case $cc_basename in
8585 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8586 esac
8587 fi
8588 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8589 && test "$tmp_diet" = no
8590 then
8591 tmp_addflag=' $pic_flag'
8592 tmp_sharedflag='-shared'
8593 case $cc_basename,$host_cpu in
8594 pgcc*) # Portland Group C compiler
8595 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'
8596 tmp_addflag=' $pic_flag'
8597 ;;
8598 pgf77* | pgf90* | pgf95* | pgfortran*)
8599 # Portland Group f77 and f90 compilers
8600 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'
8601 tmp_addflag=' $pic_flag -Mnomain' ;;
8602 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8603 tmp_addflag=' -i_dynamic' ;;
8604 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8605 tmp_addflag=' -i_dynamic -nofor_main' ;;
8606 ifc* | ifort*) # Intel Fortran compiler
8607 tmp_addflag=' -nofor_main' ;;
8608 lf95*) # Lahey Fortran 8.1
8609 whole_archive_flag_spec=
8610 tmp_sharedflag='--shared' ;;
8611 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8612 tmp_sharedflag='-qmkshrobj'
8613 tmp_addflag= ;;
8614 nvcc*) # Cuda Compiler Driver 2.2
8615 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'
8616 compiler_needs_object=yes
8617 ;;
8618 esac
8619 case `$CC -V 2>&1 | sed 5q` in
8620 *Sun\ C*) # Sun C 5.9
8621 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'
8622 compiler_needs_object=yes
8623 tmp_sharedflag='-G' ;;
8624 *Sun\ F*) # Sun Fortran 8.3
8625 tmp_sharedflag='-G' ;;
8626 esac
8627 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8628
8629 if test "x$supports_anon_versioning" = xyes; then
8630 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8631 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8632 echo "local: *; };" >> $output_objdir/$libname.ver~
8633 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8634 fi
8635
8636 case $cc_basename in
8637 xlf* | bgf* | bgxlf* | mpixlf*)
8638 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8639 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8640 hardcode_libdir_flag_spec=
8641 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8642 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8643 if test "x$supports_anon_versioning" = xyes; then
8644 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8645 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8646 echo "local: *; };" >> $output_objdir/$libname.ver~
8647 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8648 fi
8649 ;;
8650 esac
8651 else
8652 ld_shlibs=no
8653 fi
8654 ;;
8655
8656 netbsd*)
8657 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8658 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8659 wlarc=
8660 else
8661 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8662 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8663 fi
8664 ;;
8665
8666 solaris*)
8667 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8668 ld_shlibs=no
8669 cat <<_LT_EOF 1>&2
8670
8671 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8672 *** create shared libraries on Solaris systems. Therefore, libtool
8673 *** is disabling shared libraries support. We urge you to upgrade GNU
8674 *** binutils to release 2.9.1 or newer. Another option is to modify
8675 *** your PATH or compiler configuration so that the native linker is
8676 *** used, and then restart.
8677
8678 _LT_EOF
8679 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8680 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8681 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8682 else
8683 ld_shlibs=no
8684 fi
8685 ;;
8686
8687 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8688 case `$LD -v 2>&1` in
8689 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8690 ld_shlibs=no
8691 cat <<_LT_EOF 1>&2
8692
8693 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8694 *** reliably create shared libraries on SCO systems. Therefore, libtool
8695 *** is disabling shared libraries support. We urge you to upgrade GNU
8696 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8697 *** your PATH or compiler configuration so that the native linker is
8698 *** used, and then restart.
8699
8700 _LT_EOF
8701 ;;
8702 *)
8703 # For security reasons, it is highly recommended that you always
8704 # use absolute paths for naming shared libraries, and exclude the
8705 # DT_RUNPATH tag from executables and libraries. But doing so
8706 # requires that you compile everything twice, which is a pain.
8707 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8708 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8709 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8710 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8711 else
8712 ld_shlibs=no
8713 fi
8714 ;;
8715 esac
8716 ;;
8717
8718 sunos4*)
8719 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8720 wlarc=
8721 hardcode_direct=yes
8722 hardcode_shlibpath_var=no
8723 ;;
8724
8725 *)
8726 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8727 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8728 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8729 else
8730 ld_shlibs=no
8731 fi
8732 ;;
8733 esac
8734
8735 if test "$ld_shlibs" = no; then
8736 runpath_var=
8737 hardcode_libdir_flag_spec=
8738 export_dynamic_flag_spec=
8739 whole_archive_flag_spec=
8740 fi
8741 else
8742 # PORTME fill in a description of your system's linker (not GNU ld)
8743 case $host_os in
8744 aix3*)
8745 allow_undefined_flag=unsupported
8746 always_export_symbols=yes
8747 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'
8748 # Note: this linker hardcodes the directories in LIBPATH if there
8749 # are no directories specified by -L.
8750 hardcode_minus_L=yes
8751 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8752 # Neither direct hardcoding nor static linking is supported with a
8753 # broken collect2.
8754 hardcode_direct=unsupported
8755 fi
8756 ;;
8757
8758 aix[4-9]*)
8759 if test "$host_cpu" = ia64; then
8760 # On IA64, the linker does run time linking by default, so we don't
8761 # have to do anything special.
8762 aix_use_runtimelinking=no
8763 exp_sym_flag='-Bexport'
8764 no_entry_flag=""
8765 else
8766 # If we're using GNU nm, then we don't want the "-C" option.
8767 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8768 # Also, AIX nm treats weak defined symbols like other global
8769 # defined symbols, whereas GNU nm marks them as "W".
8770 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8771 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'
8772 else
8773 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'
8774 fi
8775 aix_use_runtimelinking=no
8776
8777 # Test if we are trying to use run time linking or normal
8778 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8779 # need to do runtime linking.
8780 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8781 for ld_flag in $LDFLAGS; do
8782 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8783 aix_use_runtimelinking=yes
8784 break
8785 fi
8786 done
8787 ;;
8788 esac
8789
8790 exp_sym_flag='-bexport'
8791 no_entry_flag='-bnoentry'
8792 fi
8793
8794 # When large executables or shared objects are built, AIX ld can
8795 # have problems creating the table of contents. If linking a library
8796 # or program results in "error TOC overflow" add -mminimal-toc to
8797 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8798 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8799
8800 archive_cmds=''
8801 hardcode_direct=yes
8802 hardcode_direct_absolute=yes
8803 hardcode_libdir_separator=':'
8804 link_all_deplibs=yes
8805 file_list_spec='${wl}-f,'
8806
8807 if test "$GCC" = yes; then
8808 case $host_os in aix4.[012]|aix4.[012].*)
8809 # We only want to do this on AIX 4.2 and lower, the check
8810 # below for broken collect2 doesn't work under 4.3+
8811 collect2name=`${CC} -print-prog-name=collect2`
8812 if test -f "$collect2name" &&
8813 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8814 then
8815 # We have reworked collect2
8816 :
8817 else
8818 # We have old collect2
8819 hardcode_direct=unsupported
8820 # It fails to find uninstalled libraries when the uninstalled
8821 # path is not listed in the libpath. Setting hardcode_minus_L
8822 # to unsupported forces relinking
8823 hardcode_minus_L=yes
8824 hardcode_libdir_flag_spec='-L$libdir'
8825 hardcode_libdir_separator=
8826 fi
8827 ;;
8828 esac
8829 shared_flag='-shared'
8830 if test "$aix_use_runtimelinking" = yes; then
8831 shared_flag="$shared_flag "'${wl}-G'
8832 fi
8833 else
8834 # not using gcc
8835 if test "$host_cpu" = ia64; then
8836 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8837 # chokes on -Wl,-G. The following line is correct:
8838 shared_flag='-G'
8839 else
8840 if test "$aix_use_runtimelinking" = yes; then
8841 shared_flag='${wl}-G'
8842 else
8843 shared_flag='${wl}-bM:SRE'
8844 fi
8845 fi
8846 fi
8847
8848 export_dynamic_flag_spec='${wl}-bexpall'
8849 # It seems that -bexpall does not export symbols beginning with
8850 # underscore (_), so it is better to generate a list of symbols to export.
8851 always_export_symbols=yes
8852 if test "$aix_use_runtimelinking" = yes; then
8853 # Warning - without using the other runtime loading flags (-brtl),
8854 # -berok will link without error, but may produce a broken library.
8855 allow_undefined_flag='-berok'
8856 # Determine the default libpath from the value encoded in an
8857 # empty executable.
8858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8859 /* end confdefs.h. */
8860
8861 int
8862 main ()
8863 {
8864
8865 ;
8866 return 0;
8867 }
8868 _ACEOF
8869 if ac_fn_c_try_link "$LINENO"; then :
8870
8871 lt_aix_libpath_sed='
8872 /Import File Strings/,/^$/ {
8873 /^0/ {
8874 s/^0 *\(.*\)$/\1/
8875 p
8876 }
8877 }'
8878 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8879 # Check for a 64-bit object if we didn't find anything.
8880 if test -z "$aix_libpath"; then
8881 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8882 fi
8883 fi
8884 rm -f core conftest.err conftest.$ac_objext \
8885 conftest$ac_exeext conftest.$ac_ext
8886 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8887
8888 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8889 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"
8890 else
8891 if test "$host_cpu" = ia64; then
8892 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8893 allow_undefined_flag="-z nodefs"
8894 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"
8895 else
8896 # Determine the default libpath from the value encoded in an
8897 # empty executable.
8898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8899 /* end confdefs.h. */
8900
8901 int
8902 main ()
8903 {
8904
8905 ;
8906 return 0;
8907 }
8908 _ACEOF
8909 if ac_fn_c_try_link "$LINENO"; then :
8910
8911 lt_aix_libpath_sed='
8912 /Import File Strings/,/^$/ {
8913 /^0/ {
8914 s/^0 *\(.*\)$/\1/
8915 p
8916 }
8917 }'
8918 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8919 # Check for a 64-bit object if we didn't find anything.
8920 if test -z "$aix_libpath"; then
8921 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8922 fi
8923 fi
8924 rm -f core conftest.err conftest.$ac_objext \
8925 conftest$ac_exeext conftest.$ac_ext
8926 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8927
8928 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8929 # Warning - without using the other run time loading flags,
8930 # -berok will link without error, but may produce a broken library.
8931 no_undefined_flag=' ${wl}-bernotok'
8932 allow_undefined_flag=' ${wl}-berok'
8933 if test "$with_gnu_ld" = yes; then
8934 # We only use this code for GNU lds that support --whole-archive.
8935 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8936 else
8937 # Exported symbols can be pulled into shared objects from archives
8938 whole_archive_flag_spec='$convenience'
8939 fi
8940 archive_cmds_need_lc=yes
8941 # This is similar to how AIX traditionally builds its shared libraries.
8942 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'
8943 fi
8944 fi
8945 ;;
8946
8947 amigaos*)
8948 case $host_cpu in
8949 powerpc)
8950 # see comment about AmigaOS4 .so support
8951 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8952 archive_expsym_cmds=''
8953 ;;
8954 m68k)
8955 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)'
8956 hardcode_libdir_flag_spec='-L$libdir'
8957 hardcode_minus_L=yes
8958 ;;
8959 esac
8960 ;;
8961
8962 bsdi[45]*)
8963 export_dynamic_flag_spec=-rdynamic
8964 ;;
8965
8966 cygwin* | mingw* | pw32* | cegcc*)
8967 # When not using gcc, we currently assume that we are using
8968 # Microsoft Visual C++.
8969 # hardcode_libdir_flag_spec is actually meaningless, as there is
8970 # no search path for DLLs.
8971 hardcode_libdir_flag_spec=' '
8972 allow_undefined_flag=unsupported
8973 # Tell ltmain to make .lib files, not .a files.
8974 libext=lib
8975 # Tell ltmain to make .dll files, not .so files.
8976 shrext_cmds=".dll"
8977 # FIXME: Setting linknames here is a bad hack.
8978 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8979 # The linker will automatically build a .lib file if we build a DLL.
8980 old_archive_from_new_cmds='true'
8981 # FIXME: Should let the user specify the lib program.
8982 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8983 fix_srcfile_path='`cygpath -w "$srcfile"`'
8984 enable_shared_with_static_runtimes=yes
8985 ;;
8986
8987 darwin* | rhapsody*)
8988
8989
8990 archive_cmds_need_lc=no
8991 hardcode_direct=no
8992 hardcode_automatic=yes
8993 hardcode_shlibpath_var=unsupported
8994 if test "$lt_cv_ld_force_load" = "yes"; then
8995 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\"`'
8996 else
8997 whole_archive_flag_spec=''
8998 fi
8999 link_all_deplibs=yes
9000 allow_undefined_flag="$_lt_dar_allow_undefined"
9001 case $cc_basename in
9002 ifort*) _lt_dar_can_shared=yes ;;
9003 *) _lt_dar_can_shared=$GCC ;;
9004 esac
9005 if test "$_lt_dar_can_shared" = "yes"; then
9006 output_verbose_link_cmd=func_echo_all
9007 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9008 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9009 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}"
9010 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}"
9011
9012 else
9013 ld_shlibs=no
9014 fi
9015
9016 ;;
9017
9018 dgux*)
9019 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9020 hardcode_libdir_flag_spec='-L$libdir'
9021 hardcode_shlibpath_var=no
9022 ;;
9023
9024 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9025 # support. Future versions do this automatically, but an explicit c++rt0.o
9026 # does not break anything, and helps significantly (at the cost of a little
9027 # extra space).
9028 freebsd2.2*)
9029 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9030 hardcode_libdir_flag_spec='-R$libdir'
9031 hardcode_direct=yes
9032 hardcode_shlibpath_var=no
9033 ;;
9034
9035 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9036 freebsd2.*)
9037 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9038 hardcode_direct=yes
9039 hardcode_minus_L=yes
9040 hardcode_shlibpath_var=no
9041 ;;
9042
9043 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9044 freebsd* | dragonfly*)
9045 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9046 hardcode_libdir_flag_spec='-R$libdir'
9047 hardcode_direct=yes
9048 hardcode_shlibpath_var=no
9049 ;;
9050
9051 hpux9*)
9052 if test "$GCC" = yes; then
9053 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'
9054 else
9055 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'
9056 fi
9057 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9058 hardcode_libdir_separator=:
9059 hardcode_direct=yes
9060
9061 # hardcode_minus_L: Not really in the search PATH,
9062 # but as the default location of the library.
9063 hardcode_minus_L=yes
9064 export_dynamic_flag_spec='${wl}-E'
9065 ;;
9066
9067 hpux10*)
9068 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9069 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9070 else
9071 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9072 fi
9073 if test "$with_gnu_ld" = no; then
9074 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9075 hardcode_libdir_flag_spec_ld='+b $libdir'
9076 hardcode_libdir_separator=:
9077 hardcode_direct=yes
9078 hardcode_direct_absolute=yes
9079 export_dynamic_flag_spec='${wl}-E'
9080 # hardcode_minus_L: Not really in the search PATH,
9081 # but as the default location of the library.
9082 hardcode_minus_L=yes
9083 fi
9084 ;;
9085
9086 hpux11*)
9087 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9088 case $host_cpu in
9089 hppa*64*)
9090 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9091 ;;
9092 ia64*)
9093 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9094 ;;
9095 *)
9096 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9097 ;;
9098 esac
9099 else
9100 case $host_cpu in
9101 hppa*64*)
9102 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9103 ;;
9104 ia64*)
9105 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9106 ;;
9107 *)
9108
9109 # Older versions of the 11.00 compiler do not understand -b yet
9110 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9112 $as_echo_n "checking if $CC understands -b... " >&6; }
9113 if ${lt_cv_prog_compiler__b+:} false; then :
9114 $as_echo_n "(cached) " >&6
9115 else
9116 lt_cv_prog_compiler__b=no
9117 save_LDFLAGS="$LDFLAGS"
9118 LDFLAGS="$LDFLAGS -b"
9119 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9120 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9121 # The linker can only warn and ignore the option if not recognized
9122 # So say no if there are warnings
9123 if test -s conftest.err; then
9124 # Append any errors to the config.log.
9125 cat conftest.err 1>&5
9126 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9127 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9128 if diff conftest.exp conftest.er2 >/dev/null; then
9129 lt_cv_prog_compiler__b=yes
9130 fi
9131 else
9132 lt_cv_prog_compiler__b=yes
9133 fi
9134 fi
9135 $RM -r conftest*
9136 LDFLAGS="$save_LDFLAGS"
9137
9138 fi
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9140 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9141
9142 if test x"$lt_cv_prog_compiler__b" = xyes; then
9143 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9144 else
9145 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9146 fi
9147
9148 ;;
9149 esac
9150 fi
9151 if test "$with_gnu_ld" = no; then
9152 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9153 hardcode_libdir_separator=:
9154
9155 case $host_cpu in
9156 hppa*64*|ia64*)
9157 hardcode_direct=no
9158 hardcode_shlibpath_var=no
9159 ;;
9160 *)
9161 hardcode_direct=yes
9162 hardcode_direct_absolute=yes
9163 export_dynamic_flag_spec='${wl}-E'
9164
9165 # hardcode_minus_L: Not really in the search PATH,
9166 # but as the default location of the library.
9167 hardcode_minus_L=yes
9168 ;;
9169 esac
9170 fi
9171 ;;
9172
9173 irix5* | irix6* | nonstopux*)
9174 if test "$GCC" = yes; then
9175 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'
9176 # Try to use the -exported_symbol ld option, if it does not
9177 # work, assume that -exports_file does not work either and
9178 # implicitly export all symbols.
9179 save_LDFLAGS="$LDFLAGS"
9180 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9182 /* end confdefs.h. */
9183 int foo(void) {}
9184 _ACEOF
9185 if ac_fn_c_try_link "$LINENO"; then :
9186 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'
9187
9188 fi
9189 rm -f core conftest.err conftest.$ac_objext \
9190 conftest$ac_exeext conftest.$ac_ext
9191 LDFLAGS="$save_LDFLAGS"
9192 else
9193 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'
9194 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'
9195 fi
9196 archive_cmds_need_lc='no'
9197 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9198 hardcode_libdir_separator=:
9199 inherit_rpath=yes
9200 link_all_deplibs=yes
9201 ;;
9202
9203 netbsd*)
9204 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9205 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9206 else
9207 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9208 fi
9209 hardcode_libdir_flag_spec='-R$libdir'
9210 hardcode_direct=yes
9211 hardcode_shlibpath_var=no
9212 ;;
9213
9214 newsos6)
9215 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9216 hardcode_direct=yes
9217 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9218 hardcode_libdir_separator=:
9219 hardcode_shlibpath_var=no
9220 ;;
9221
9222 *nto* | *qnx*)
9223 ;;
9224
9225 openbsd*)
9226 if test -f /usr/libexec/ld.so; then
9227 hardcode_direct=yes
9228 hardcode_shlibpath_var=no
9229 hardcode_direct_absolute=yes
9230 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9231 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9232 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9233 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9234 export_dynamic_flag_spec='${wl}-E'
9235 else
9236 case $host_os in
9237 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9238 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9239 hardcode_libdir_flag_spec='-R$libdir'
9240 ;;
9241 *)
9242 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9243 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9244 ;;
9245 esac
9246 fi
9247 else
9248 ld_shlibs=no
9249 fi
9250 ;;
9251
9252 os2*)
9253 hardcode_libdir_flag_spec='-L$libdir'
9254 hardcode_minus_L=yes
9255 allow_undefined_flag=unsupported
9256 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'
9257 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9258 ;;
9259
9260 osf3*)
9261 if test "$GCC" = yes; then
9262 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9263 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'
9264 else
9265 allow_undefined_flag=' -expect_unresolved \*'
9266 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'
9267 fi
9268 archive_cmds_need_lc='no'
9269 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9270 hardcode_libdir_separator=:
9271 ;;
9272
9273 osf4* | osf5*) # as osf3* with the addition of -msym flag
9274 if test "$GCC" = yes; then
9275 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9276 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'
9277 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9278 else
9279 allow_undefined_flag=' -expect_unresolved \*'
9280 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'
9281 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~
9282 $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'
9283
9284 # Both c and cxx compiler support -rpath directly
9285 hardcode_libdir_flag_spec='-rpath $libdir'
9286 fi
9287 archive_cmds_need_lc='no'
9288 hardcode_libdir_separator=:
9289 ;;
9290
9291 solaris*)
9292 no_undefined_flag=' -z defs'
9293 if test "$GCC" = yes; then
9294 wlarc='${wl}'
9295 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9296 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9297 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9298 else
9299 case `$CC -V 2>&1` in
9300 *"Compilers 5.0"*)
9301 wlarc=''
9302 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9303 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9304 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9305 ;;
9306 *)
9307 wlarc='${wl}'
9308 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9309 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9310 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9311 ;;
9312 esac
9313 fi
9314 hardcode_libdir_flag_spec='-R$libdir'
9315 hardcode_shlibpath_var=no
9316 case $host_os in
9317 solaris2.[0-5] | solaris2.[0-5].*) ;;
9318 *)
9319 # The compiler driver will combine and reorder linker options,
9320 # but understands `-z linker_flag'. GCC discards it without `$wl',
9321 # but is careful enough not to reorder.
9322 # Supported since Solaris 2.6 (maybe 2.5.1?)
9323 if test "$GCC" = yes; then
9324 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9325 else
9326 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9327 fi
9328 ;;
9329 esac
9330 link_all_deplibs=yes
9331 ;;
9332
9333 sunos4*)
9334 if test "x$host_vendor" = xsequent; then
9335 # Use $CC to link under sequent, because it throws in some extra .o
9336 # files that make .init and .fini sections work.
9337 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9338 else
9339 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9340 fi
9341 hardcode_libdir_flag_spec='-L$libdir'
9342 hardcode_direct=yes
9343 hardcode_minus_L=yes
9344 hardcode_shlibpath_var=no
9345 ;;
9346
9347 sysv4)
9348 case $host_vendor in
9349 sni)
9350 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9351 hardcode_direct=yes # is this really true???
9352 ;;
9353 siemens)
9354 ## LD is ld it makes a PLAMLIB
9355 ## CC just makes a GrossModule.
9356 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9357 reload_cmds='$CC -r -o $output$reload_objs'
9358 hardcode_direct=no
9359 ;;
9360 motorola)
9361 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9362 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9363 ;;
9364 esac
9365 runpath_var='LD_RUN_PATH'
9366 hardcode_shlibpath_var=no
9367 ;;
9368
9369 sysv4.3*)
9370 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9371 hardcode_shlibpath_var=no
9372 export_dynamic_flag_spec='-Bexport'
9373 ;;
9374
9375 sysv4*MP*)
9376 if test -d /usr/nec; then
9377 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9378 hardcode_shlibpath_var=no
9379 runpath_var=LD_RUN_PATH
9380 hardcode_runpath_var=yes
9381 ld_shlibs=yes
9382 fi
9383 ;;
9384
9385 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9386 no_undefined_flag='${wl}-z,text'
9387 archive_cmds_need_lc=no
9388 hardcode_shlibpath_var=no
9389 runpath_var='LD_RUN_PATH'
9390
9391 if test "$GCC" = yes; then
9392 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9393 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9394 else
9395 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9396 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9397 fi
9398 ;;
9399
9400 sysv5* | sco3.2v5* | sco5v6*)
9401 # Note: We can NOT use -z defs as we might desire, because we do not
9402 # link with -lc, and that would cause any symbols used from libc to
9403 # always be unresolved, which means just about no library would
9404 # ever link correctly. If we're not using GNU ld we use -z text
9405 # though, which does catch some bad symbols but isn't as heavy-handed
9406 # as -z defs.
9407 no_undefined_flag='${wl}-z,text'
9408 allow_undefined_flag='${wl}-z,nodefs'
9409 archive_cmds_need_lc=no
9410 hardcode_shlibpath_var=no
9411 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9412 hardcode_libdir_separator=':'
9413 link_all_deplibs=yes
9414 export_dynamic_flag_spec='${wl}-Bexport'
9415 runpath_var='LD_RUN_PATH'
9416
9417 if test "$GCC" = yes; then
9418 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9419 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9420 else
9421 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9422 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9423 fi
9424 ;;
9425
9426 uts4*)
9427 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9428 hardcode_libdir_flag_spec='-L$libdir'
9429 hardcode_shlibpath_var=no
9430 ;;
9431
9432 *)
9433 ld_shlibs=no
9434 ;;
9435 esac
9436
9437 if test x$host_vendor = xsni; then
9438 case $host in
9439 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9440 export_dynamic_flag_spec='${wl}-Blargedynsym'
9441 ;;
9442 esac
9443 fi
9444 fi
9445
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9447 $as_echo "$ld_shlibs" >&6; }
9448 test "$ld_shlibs" = no && can_build_shared=no
9449
9450 with_gnu_ld=$with_gnu_ld
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466 #
9467 # Do we need to explicitly link libc?
9468 #
9469 case "x$archive_cmds_need_lc" in
9470 x|xyes)
9471 # Assume -lc should be added
9472 archive_cmds_need_lc=yes
9473
9474 if test "$enable_shared" = yes && test "$GCC" = yes; then
9475 case $archive_cmds in
9476 *'~'*)
9477 # FIXME: we may have to deal with multi-command sequences.
9478 ;;
9479 '$CC '*)
9480 # Test whether the compiler implicitly links with -lc since on some
9481 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9482 # to ld, don't add -lc before -lgcc.
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9484 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9485 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9486 $as_echo_n "(cached) " >&6
9487 else
9488 $RM conftest*
9489 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9490
9491 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9492 (eval $ac_compile) 2>&5
9493 ac_status=$?
9494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9495 test $ac_status = 0; } 2>conftest.err; then
9496 soname=conftest
9497 lib=conftest
9498 libobjs=conftest.$ac_objext
9499 deplibs=
9500 wl=$lt_prog_compiler_wl
9501 pic_flag=$lt_prog_compiler_pic
9502 compiler_flags=-v
9503 linker_flags=-v
9504 verstring=
9505 output_objdir=.
9506 libname=conftest
9507 lt_save_allow_undefined_flag=$allow_undefined_flag
9508 allow_undefined_flag=
9509 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9510 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9511 ac_status=$?
9512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9513 test $ac_status = 0; }
9514 then
9515 lt_cv_archive_cmds_need_lc=no
9516 else
9517 lt_cv_archive_cmds_need_lc=yes
9518 fi
9519 allow_undefined_flag=$lt_save_allow_undefined_flag
9520 else
9521 cat conftest.err 1>&5
9522 fi
9523 $RM conftest*
9524
9525 fi
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9527 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9528 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9529 ;;
9530 esac
9531 fi
9532 ;;
9533 esac
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9692 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9693
9694 if test "$GCC" = yes; then
9695 case $host_os in
9696 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9697 *) lt_awk_arg="/^libraries:/" ;;
9698 esac
9699 case $host_os in
9700 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9701 *) lt_sed_strip_eq="s,=/,/,g" ;;
9702 esac
9703 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9704 case $lt_search_path_spec in
9705 *\;*)
9706 # if the path contains ";" then we assume it to be the separator
9707 # otherwise default to the standard path separator (i.e. ":") - it is
9708 # assumed that no part of a normal pathname contains ";" but that should
9709 # okay in the real world where ";" in dirpaths is itself problematic.
9710 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9711 ;;
9712 *)
9713 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9714 ;;
9715 esac
9716 # Ok, now we have the path, separated by spaces, we can step through it
9717 # and add multilib dir if necessary.
9718 lt_tmp_lt_search_path_spec=
9719 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9720 for lt_sys_path in $lt_search_path_spec; do
9721 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9722 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9723 else
9724 test -d "$lt_sys_path" && \
9725 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9726 fi
9727 done
9728 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9729 BEGIN {RS=" "; FS="/|\n";} {
9730 lt_foo="";
9731 lt_count=0;
9732 for (lt_i = NF; lt_i > 0; lt_i--) {
9733 if ($lt_i != "" && $lt_i != ".") {
9734 if ($lt_i == "..") {
9735 lt_count++;
9736 } else {
9737 if (lt_count == 0) {
9738 lt_foo="/" $lt_i lt_foo;
9739 } else {
9740 lt_count--;
9741 }
9742 }
9743 }
9744 }
9745 if (lt_foo != "") { lt_freq[lt_foo]++; }
9746 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9747 }'`
9748 # AWK program above erroneously prepends '/' to C:/dos/paths
9749 # for these hosts.
9750 case $host_os in
9751 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9752 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9753 esac
9754 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9755 else
9756 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9757 fi
9758 library_names_spec=
9759 libname_spec='lib$name'
9760 soname_spec=
9761 shrext_cmds=".so"
9762 postinstall_cmds=
9763 postuninstall_cmds=
9764 finish_cmds=
9765 finish_eval=
9766 shlibpath_var=
9767 shlibpath_overrides_runpath=unknown
9768 version_type=none
9769 dynamic_linker="$host_os ld.so"
9770 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9771 need_lib_prefix=unknown
9772 hardcode_into_libs=no
9773
9774 # when you set need_version to no, make sure it does not cause -set_version
9775 # flags to be left without arguments
9776 need_version=unknown
9777
9778 case $host_os in
9779 aix3*)
9780 version_type=linux
9781 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9782 shlibpath_var=LIBPATH
9783
9784 # AIX 3 has no versioning support, so we append a major version to the name.
9785 soname_spec='${libname}${release}${shared_ext}$major'
9786 ;;
9787
9788 aix[4-9]*)
9789 version_type=linux
9790 need_lib_prefix=no
9791 need_version=no
9792 hardcode_into_libs=yes
9793 if test "$host_cpu" = ia64; then
9794 # AIX 5 supports IA64
9795 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9796 shlibpath_var=LD_LIBRARY_PATH
9797 else
9798 # With GCC up to 2.95.x, collect2 would create an import file
9799 # for dependence libraries. The import file would start with
9800 # the line `#! .'. This would cause the generated library to
9801 # depend on `.', always an invalid library. This was fixed in
9802 # development snapshots of GCC prior to 3.0.
9803 case $host_os in
9804 aix4 | aix4.[01] | aix4.[01].*)
9805 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9806 echo ' yes '
9807 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9808 :
9809 else
9810 can_build_shared=no
9811 fi
9812 ;;
9813 esac
9814 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9815 # soname into executable. Probably we can add versioning support to
9816 # collect2, so additional links can be useful in future.
9817 if test "$aix_use_runtimelinking" = yes; then
9818 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9819 # instead of lib<name>.a to let people know that these are not
9820 # typical AIX shared libraries.
9821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9822 else
9823 # We preserve .a as extension for shared libraries through AIX4.2
9824 # and later when we are not doing run time linking.
9825 library_names_spec='${libname}${release}.a $libname.a'
9826 soname_spec='${libname}${release}${shared_ext}$major'
9827 fi
9828 shlibpath_var=LIBPATH
9829 fi
9830 ;;
9831
9832 amigaos*)
9833 case $host_cpu in
9834 powerpc)
9835 # Since July 2007 AmigaOS4 officially supports .so libraries.
9836 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9838 ;;
9839 m68k)
9840 library_names_spec='$libname.ixlibrary $libname.a'
9841 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9842 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'
9843 ;;
9844 esac
9845 ;;
9846
9847 beos*)
9848 library_names_spec='${libname}${shared_ext}'
9849 dynamic_linker="$host_os ld.so"
9850 shlibpath_var=LIBRARY_PATH
9851 ;;
9852
9853 bsdi[45]*)
9854 version_type=linux
9855 need_version=no
9856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9857 soname_spec='${libname}${release}${shared_ext}$major'
9858 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9859 shlibpath_var=LD_LIBRARY_PATH
9860 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9861 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9862 # the default ld.so.conf also contains /usr/contrib/lib and
9863 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9864 # libtool to hard-code these into programs
9865 ;;
9866
9867 cygwin* | mingw* | pw32* | cegcc*)
9868 version_type=windows
9869 shrext_cmds=".dll"
9870 need_version=no
9871 need_lib_prefix=no
9872
9873 case $GCC,$host_os in
9874 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9875 library_names_spec='$libname.dll.a'
9876 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9877 postinstall_cmds='base_file=`basename \${file}`~
9878 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9879 dldir=$destdir/`dirname \$dlpath`~
9880 test -d \$dldir || mkdir -p \$dldir~
9881 $install_prog $dir/$dlname \$dldir/$dlname~
9882 chmod a+x \$dldir/$dlname~
9883 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9884 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9885 fi'
9886 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9887 dlpath=$dir/\$dldll~
9888 $RM \$dlpath'
9889 shlibpath_overrides_runpath=yes
9890
9891 case $host_os in
9892 cygwin*)
9893 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9894 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9895
9896 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9897 ;;
9898 mingw* | cegcc*)
9899 # MinGW DLLs use traditional 'lib' prefix
9900 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9901 ;;
9902 pw32*)
9903 # pw32 DLLs use 'pw' prefix rather than 'lib'
9904 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9905 ;;
9906 esac
9907 ;;
9908
9909 *)
9910 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9911 ;;
9912 esac
9913 dynamic_linker='Win32 ld.exe'
9914 # FIXME: first we should search . and the directory the executable is in
9915 shlibpath_var=PATH
9916 ;;
9917
9918 darwin* | rhapsody*)
9919 dynamic_linker="$host_os dyld"
9920 version_type=darwin
9921 need_lib_prefix=no
9922 need_version=no
9923 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9924 soname_spec='${libname}${release}${major}$shared_ext'
9925 shlibpath_overrides_runpath=yes
9926 shlibpath_var=DYLD_LIBRARY_PATH
9927 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9928
9929 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9930 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9931 ;;
9932
9933 dgux*)
9934 version_type=linux
9935 need_lib_prefix=no
9936 need_version=no
9937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9938 soname_spec='${libname}${release}${shared_ext}$major'
9939 shlibpath_var=LD_LIBRARY_PATH
9940 ;;
9941
9942 freebsd* | dragonfly*)
9943 # DragonFly does not have aout. When/if they implement a new
9944 # versioning mechanism, adjust this.
9945 if test -x /usr/bin/objformat; then
9946 objformat=`/usr/bin/objformat`
9947 else
9948 case $host_os in
9949 freebsd[23].*) objformat=aout ;;
9950 *) objformat=elf ;;
9951 esac
9952 fi
9953 version_type=freebsd-$objformat
9954 case $version_type in
9955 freebsd-elf*)
9956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9957 need_version=no
9958 need_lib_prefix=no
9959 ;;
9960 freebsd-*)
9961 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9962 need_version=yes
9963 ;;
9964 esac
9965 shlibpath_var=LD_LIBRARY_PATH
9966 case $host_os in
9967 freebsd2.*)
9968 shlibpath_overrides_runpath=yes
9969 ;;
9970 freebsd3.[01]* | freebsdelf3.[01]*)
9971 shlibpath_overrides_runpath=yes
9972 hardcode_into_libs=yes
9973 ;;
9974 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9975 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9976 shlibpath_overrides_runpath=no
9977 hardcode_into_libs=yes
9978 ;;
9979 *) # from 4.6 on, and DragonFly
9980 shlibpath_overrides_runpath=yes
9981 hardcode_into_libs=yes
9982 ;;
9983 esac
9984 ;;
9985
9986 haiku*)
9987 version_type=linux
9988 need_lib_prefix=no
9989 need_version=no
9990 dynamic_linker="$host_os runtime_loader"
9991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9992 soname_spec='${libname}${release}${shared_ext}$major'
9993 shlibpath_var=LIBRARY_PATH
9994 shlibpath_overrides_runpath=yes
9995 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9996 hardcode_into_libs=yes
9997 ;;
9998
9999 hpux9* | hpux10* | hpux11*)
10000 # Give a soname corresponding to the major version so that dld.sl refuses to
10001 # link against other versions.
10002 version_type=sunos
10003 need_lib_prefix=no
10004 need_version=no
10005 case $host_cpu in
10006 ia64*)
10007 shrext_cmds='.so'
10008 hardcode_into_libs=yes
10009 dynamic_linker="$host_os dld.so"
10010 shlibpath_var=LD_LIBRARY_PATH
10011 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10013 soname_spec='${libname}${release}${shared_ext}$major'
10014 if test "X$HPUX_IA64_MODE" = X32; then
10015 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10016 else
10017 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10018 fi
10019 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10020 ;;
10021 hppa*64*)
10022 shrext_cmds='.sl'
10023 hardcode_into_libs=yes
10024 dynamic_linker="$host_os dld.sl"
10025 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10026 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10028 soname_spec='${libname}${release}${shared_ext}$major'
10029 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10030 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10031 ;;
10032 *)
10033 shrext_cmds='.sl'
10034 dynamic_linker="$host_os dld.sl"
10035 shlibpath_var=SHLIB_PATH
10036 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10038 soname_spec='${libname}${release}${shared_ext}$major'
10039 ;;
10040 esac
10041 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10042 postinstall_cmds='chmod 555 $lib'
10043 # or fails outright, so override atomically:
10044 install_override_mode=555
10045 ;;
10046
10047 interix[3-9]*)
10048 version_type=linux
10049 need_lib_prefix=no
10050 need_version=no
10051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10052 soname_spec='${libname}${release}${shared_ext}$major'
10053 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10054 shlibpath_var=LD_LIBRARY_PATH
10055 shlibpath_overrides_runpath=no
10056 hardcode_into_libs=yes
10057 ;;
10058
10059 irix5* | irix6* | nonstopux*)
10060 case $host_os in
10061 nonstopux*) version_type=nonstopux ;;
10062 *)
10063 if test "$lt_cv_prog_gnu_ld" = yes; then
10064 version_type=linux
10065 else
10066 version_type=irix
10067 fi ;;
10068 esac
10069 need_lib_prefix=no
10070 need_version=no
10071 soname_spec='${libname}${release}${shared_ext}$major'
10072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10073 case $host_os in
10074 irix5* | nonstopux*)
10075 libsuff= shlibsuff=
10076 ;;
10077 *)
10078 case $LD in # libtool.m4 will add one of these switches to LD
10079 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10080 libsuff= shlibsuff= libmagic=32-bit;;
10081 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10082 libsuff=32 shlibsuff=N32 libmagic=N32;;
10083 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10084 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10085 *) libsuff= shlibsuff= libmagic=never-match;;
10086 esac
10087 ;;
10088 esac
10089 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10090 shlibpath_overrides_runpath=no
10091 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10092 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10093 hardcode_into_libs=yes
10094 ;;
10095
10096 # No shared lib support for Linux oldld, aout, or coff.
10097 linux*oldld* | linux*aout* | linux*coff*)
10098 dynamic_linker=no
10099 ;;
10100
10101 # This must be Linux ELF.
10102 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10103 version_type=linux
10104 need_lib_prefix=no
10105 need_version=no
10106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10107 soname_spec='${libname}${release}${shared_ext}$major'
10108 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10109 shlibpath_var=LD_LIBRARY_PATH
10110 shlibpath_overrides_runpath=no
10111
10112 # Some binutils ld are patched to set DT_RUNPATH
10113 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10114 $as_echo_n "(cached) " >&6
10115 else
10116 lt_cv_shlibpath_overrides_runpath=no
10117 save_LDFLAGS=$LDFLAGS
10118 save_libdir=$libdir
10119 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10120 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10122 /* end confdefs.h. */
10123
10124 int
10125 main ()
10126 {
10127
10128 ;
10129 return 0;
10130 }
10131 _ACEOF
10132 if ac_fn_c_try_link "$LINENO"; then :
10133 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10134 lt_cv_shlibpath_overrides_runpath=yes
10135 fi
10136 fi
10137 rm -f core conftest.err conftest.$ac_objext \
10138 conftest$ac_exeext conftest.$ac_ext
10139 LDFLAGS=$save_LDFLAGS
10140 libdir=$save_libdir
10141
10142 fi
10143
10144 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10145
10146 # This implies no fast_install, which is unacceptable.
10147 # Some rework will be needed to allow for fast_install
10148 # before this can be enabled.
10149 hardcode_into_libs=yes
10150
10151 # Append ld.so.conf contents to the search path
10152 if test -f /etc/ld.so.conf; then
10153 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' ' '`
10154 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10155 fi
10156
10157 # We used to test for /lib/ld.so.1 and disable shared libraries on
10158 # powerpc, because MkLinux only supported shared libraries with the
10159 # GNU dynamic linker. Since this was broken with cross compilers,
10160 # most powerpc-linux boxes support dynamic linking these days and
10161 # people can always --disable-shared, the test was removed, and we
10162 # assume the GNU/Linux dynamic linker is in use.
10163 dynamic_linker='GNU/Linux ld.so'
10164 ;;
10165
10166 netbsd*)
10167 version_type=sunos
10168 need_lib_prefix=no
10169 need_version=no
10170 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10172 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10173 dynamic_linker='NetBSD (a.out) ld.so'
10174 else
10175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10176 soname_spec='${libname}${release}${shared_ext}$major'
10177 dynamic_linker='NetBSD ld.elf_so'
10178 fi
10179 shlibpath_var=LD_LIBRARY_PATH
10180 shlibpath_overrides_runpath=yes
10181 hardcode_into_libs=yes
10182 ;;
10183
10184 newsos6)
10185 version_type=linux
10186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10187 shlibpath_var=LD_LIBRARY_PATH
10188 shlibpath_overrides_runpath=yes
10189 ;;
10190
10191 *nto* | *qnx*)
10192 version_type=qnx
10193 need_lib_prefix=no
10194 need_version=no
10195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10196 soname_spec='${libname}${release}${shared_ext}$major'
10197 shlibpath_var=LD_LIBRARY_PATH
10198 shlibpath_overrides_runpath=no
10199 hardcode_into_libs=yes
10200 dynamic_linker='ldqnx.so'
10201 ;;
10202
10203 openbsd*)
10204 version_type=sunos
10205 sys_lib_dlsearch_path_spec="/usr/lib"
10206 need_lib_prefix=no
10207 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10208 case $host_os in
10209 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10210 *) need_version=no ;;
10211 esac
10212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10213 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10214 shlibpath_var=LD_LIBRARY_PATH
10215 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10216 case $host_os in
10217 openbsd2.[89] | openbsd2.[89].*)
10218 shlibpath_overrides_runpath=no
10219 ;;
10220 *)
10221 shlibpath_overrides_runpath=yes
10222 ;;
10223 esac
10224 else
10225 shlibpath_overrides_runpath=yes
10226 fi
10227 ;;
10228
10229 os2*)
10230 libname_spec='$name'
10231 shrext_cmds=".dll"
10232 need_lib_prefix=no
10233 library_names_spec='$libname${shared_ext} $libname.a'
10234 dynamic_linker='OS/2 ld.exe'
10235 shlibpath_var=LIBPATH
10236 ;;
10237
10238 osf3* | osf4* | osf5*)
10239 version_type=osf
10240 need_lib_prefix=no
10241 need_version=no
10242 soname_spec='${libname}${release}${shared_ext}$major'
10243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10244 shlibpath_var=LD_LIBRARY_PATH
10245 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10246 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10247 ;;
10248
10249 rdos*)
10250 dynamic_linker=no
10251 ;;
10252
10253 solaris*)
10254 version_type=linux
10255 need_lib_prefix=no
10256 need_version=no
10257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10258 soname_spec='${libname}${release}${shared_ext}$major'
10259 shlibpath_var=LD_LIBRARY_PATH
10260 shlibpath_overrides_runpath=yes
10261 hardcode_into_libs=yes
10262 # ldd complains unless libraries are executable
10263 postinstall_cmds='chmod +x $lib'
10264 ;;
10265
10266 sunos4*)
10267 version_type=sunos
10268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10269 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10270 shlibpath_var=LD_LIBRARY_PATH
10271 shlibpath_overrides_runpath=yes
10272 if test "$with_gnu_ld" = yes; then
10273 need_lib_prefix=no
10274 fi
10275 need_version=yes
10276 ;;
10277
10278 sysv4 | sysv4.3*)
10279 version_type=linux
10280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10281 soname_spec='${libname}${release}${shared_ext}$major'
10282 shlibpath_var=LD_LIBRARY_PATH
10283 case $host_vendor in
10284 sni)
10285 shlibpath_overrides_runpath=no
10286 need_lib_prefix=no
10287 runpath_var=LD_RUN_PATH
10288 ;;
10289 siemens)
10290 need_lib_prefix=no
10291 ;;
10292 motorola)
10293 need_lib_prefix=no
10294 need_version=no
10295 shlibpath_overrides_runpath=no
10296 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10297 ;;
10298 esac
10299 ;;
10300
10301 sysv4*MP*)
10302 if test -d /usr/nec ;then
10303 version_type=linux
10304 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10305 soname_spec='$libname${shared_ext}.$major'
10306 shlibpath_var=LD_LIBRARY_PATH
10307 fi
10308 ;;
10309
10310 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10311 version_type=freebsd-elf
10312 need_lib_prefix=no
10313 need_version=no
10314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10315 soname_spec='${libname}${release}${shared_ext}$major'
10316 shlibpath_var=LD_LIBRARY_PATH
10317 shlibpath_overrides_runpath=yes
10318 hardcode_into_libs=yes
10319 if test "$with_gnu_ld" = yes; then
10320 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10321 else
10322 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10323 case $host_os in
10324 sco3.2v5*)
10325 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10326 ;;
10327 esac
10328 fi
10329 sys_lib_dlsearch_path_spec='/usr/lib'
10330 ;;
10331
10332 tpf*)
10333 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10334 version_type=linux
10335 need_lib_prefix=no
10336 need_version=no
10337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10338 shlibpath_var=LD_LIBRARY_PATH
10339 shlibpath_overrides_runpath=no
10340 hardcode_into_libs=yes
10341 ;;
10342
10343 uts4*)
10344 version_type=linux
10345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10346 soname_spec='${libname}${release}${shared_ext}$major'
10347 shlibpath_var=LD_LIBRARY_PATH
10348 ;;
10349
10350 *)
10351 dynamic_linker=no
10352 ;;
10353 esac
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10355 $as_echo "$dynamic_linker" >&6; }
10356 test "$dynamic_linker" = no && can_build_shared=no
10357
10358 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10359 if test "$GCC" = yes; then
10360 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10361 fi
10362
10363 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10364 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10365 fi
10366 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10367 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10368 fi
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10462 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10463 hardcode_action=
10464 if test -n "$hardcode_libdir_flag_spec" ||
10465 test -n "$runpath_var" ||
10466 test "X$hardcode_automatic" = "Xyes" ; then
10467
10468 # We can hardcode non-existent directories.
10469 if test "$hardcode_direct" != no &&
10470 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10471 # have to relink, otherwise we might link with an installed library
10472 # when we should be linking with a yet-to-be-installed one
10473 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10474 test "$hardcode_minus_L" != no; then
10475 # Linking always hardcodes the temporary library directory.
10476 hardcode_action=relink
10477 else
10478 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10479 hardcode_action=immediate
10480 fi
10481 else
10482 # We cannot hardcode anything, or else we can only hardcode existing
10483 # directories.
10484 hardcode_action=unsupported
10485 fi
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10487 $as_echo "$hardcode_action" >&6; }
10488
10489 if test "$hardcode_action" = relink ||
10490 test "$inherit_rpath" = yes; then
10491 # Fast installation is not supported
10492 enable_fast_install=no
10493 elif test "$shlibpath_overrides_runpath" = yes ||
10494 test "$enable_shared" = no; then
10495 # Fast installation is not necessary
10496 enable_fast_install=needless
10497 fi
10498
10499
10500
10501
10502
10503
10504 if test "x$enable_dlopen" != xyes; then
10505 enable_dlopen=unknown
10506 enable_dlopen_self=unknown
10507 enable_dlopen_self_static=unknown
10508 else
10509 lt_cv_dlopen=no
10510 lt_cv_dlopen_libs=
10511
10512 case $host_os in
10513 beos*)
10514 lt_cv_dlopen="load_add_on"
10515 lt_cv_dlopen_libs=
10516 lt_cv_dlopen_self=yes
10517 ;;
10518
10519 mingw* | pw32* | cegcc*)
10520 lt_cv_dlopen="LoadLibrary"
10521 lt_cv_dlopen_libs=
10522 ;;
10523
10524 cygwin*)
10525 lt_cv_dlopen="dlopen"
10526 lt_cv_dlopen_libs=
10527 ;;
10528
10529 darwin*)
10530 # if libdl is installed we need to link against it
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10532 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10533 if ${ac_cv_lib_dl_dlopen+:} false; then :
10534 $as_echo_n "(cached) " >&6
10535 else
10536 ac_check_lib_save_LIBS=$LIBS
10537 LIBS="-ldl $LIBS"
10538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10539 /* end confdefs.h. */
10540
10541 /* Override any GCC internal prototype to avoid an error.
10542 Use char because int might match the return type of a GCC
10543 builtin and then its argument prototype would still apply. */
10544 #ifdef __cplusplus
10545 extern "C"
10546 #endif
10547 char dlopen ();
10548 int
10549 main ()
10550 {
10551 return dlopen ();
10552 ;
10553 return 0;
10554 }
10555 _ACEOF
10556 if ac_fn_c_try_link "$LINENO"; then :
10557 ac_cv_lib_dl_dlopen=yes
10558 else
10559 ac_cv_lib_dl_dlopen=no
10560 fi
10561 rm -f core conftest.err conftest.$ac_objext \
10562 conftest$ac_exeext conftest.$ac_ext
10563 LIBS=$ac_check_lib_save_LIBS
10564 fi
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10566 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10567 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10568 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10569 else
10570
10571 lt_cv_dlopen="dyld"
10572 lt_cv_dlopen_libs=
10573 lt_cv_dlopen_self=yes
10574
10575 fi
10576
10577 ;;
10578
10579 *)
10580 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10581 if test "x$ac_cv_func_shl_load" = xyes; then :
10582 lt_cv_dlopen="shl_load"
10583 else
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10585 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10586 if ${ac_cv_lib_dld_shl_load+:} false; then :
10587 $as_echo_n "(cached) " >&6
10588 else
10589 ac_check_lib_save_LIBS=$LIBS
10590 LIBS="-ldld $LIBS"
10591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10592 /* end confdefs.h. */
10593
10594 /* Override any GCC internal prototype to avoid an error.
10595 Use char because int might match the return type of a GCC
10596 builtin and then its argument prototype would still apply. */
10597 #ifdef __cplusplus
10598 extern "C"
10599 #endif
10600 char shl_load ();
10601 int
10602 main ()
10603 {
10604 return shl_load ();
10605 ;
10606 return 0;
10607 }
10608 _ACEOF
10609 if ac_fn_c_try_link "$LINENO"; then :
10610 ac_cv_lib_dld_shl_load=yes
10611 else
10612 ac_cv_lib_dld_shl_load=no
10613 fi
10614 rm -f core conftest.err conftest.$ac_objext \
10615 conftest$ac_exeext conftest.$ac_ext
10616 LIBS=$ac_check_lib_save_LIBS
10617 fi
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10619 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10620 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10621 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10622 else
10623 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10624 if test "x$ac_cv_func_dlopen" = xyes; then :
10625 lt_cv_dlopen="dlopen"
10626 else
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10628 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10629 if ${ac_cv_lib_dl_dlopen+:} false; then :
10630 $as_echo_n "(cached) " >&6
10631 else
10632 ac_check_lib_save_LIBS=$LIBS
10633 LIBS="-ldl $LIBS"
10634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10635 /* end confdefs.h. */
10636
10637 /* Override any GCC internal prototype to avoid an error.
10638 Use char because int might match the return type of a GCC
10639 builtin and then its argument prototype would still apply. */
10640 #ifdef __cplusplus
10641 extern "C"
10642 #endif
10643 char dlopen ();
10644 int
10645 main ()
10646 {
10647 return dlopen ();
10648 ;
10649 return 0;
10650 }
10651 _ACEOF
10652 if ac_fn_c_try_link "$LINENO"; then :
10653 ac_cv_lib_dl_dlopen=yes
10654 else
10655 ac_cv_lib_dl_dlopen=no
10656 fi
10657 rm -f core conftest.err conftest.$ac_objext \
10658 conftest$ac_exeext conftest.$ac_ext
10659 LIBS=$ac_check_lib_save_LIBS
10660 fi
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10662 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10663 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10664 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10665 else
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10667 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10668 if ${ac_cv_lib_svld_dlopen+:} false; then :
10669 $as_echo_n "(cached) " >&6
10670 else
10671 ac_check_lib_save_LIBS=$LIBS
10672 LIBS="-lsvld $LIBS"
10673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10674 /* end confdefs.h. */
10675
10676 /* Override any GCC internal prototype to avoid an error.
10677 Use char because int might match the return type of a GCC
10678 builtin and then its argument prototype would still apply. */
10679 #ifdef __cplusplus
10680 extern "C"
10681 #endif
10682 char dlopen ();
10683 int
10684 main ()
10685 {
10686 return dlopen ();
10687 ;
10688 return 0;
10689 }
10690 _ACEOF
10691 if ac_fn_c_try_link "$LINENO"; then :
10692 ac_cv_lib_svld_dlopen=yes
10693 else
10694 ac_cv_lib_svld_dlopen=no
10695 fi
10696 rm -f core conftest.err conftest.$ac_objext \
10697 conftest$ac_exeext conftest.$ac_ext
10698 LIBS=$ac_check_lib_save_LIBS
10699 fi
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10701 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10702 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10703 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10704 else
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10706 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10707 if ${ac_cv_lib_dld_dld_link+:} false; then :
10708 $as_echo_n "(cached) " >&6
10709 else
10710 ac_check_lib_save_LIBS=$LIBS
10711 LIBS="-ldld $LIBS"
10712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10713 /* end confdefs.h. */
10714
10715 /* Override any GCC internal prototype to avoid an error.
10716 Use char because int might match the return type of a GCC
10717 builtin and then its argument prototype would still apply. */
10718 #ifdef __cplusplus
10719 extern "C"
10720 #endif
10721 char dld_link ();
10722 int
10723 main ()
10724 {
10725 return dld_link ();
10726 ;
10727 return 0;
10728 }
10729 _ACEOF
10730 if ac_fn_c_try_link "$LINENO"; then :
10731 ac_cv_lib_dld_dld_link=yes
10732 else
10733 ac_cv_lib_dld_dld_link=no
10734 fi
10735 rm -f core conftest.err conftest.$ac_objext \
10736 conftest$ac_exeext conftest.$ac_ext
10737 LIBS=$ac_check_lib_save_LIBS
10738 fi
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10740 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10741 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10742 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10743 fi
10744
10745
10746 fi
10747
10748
10749 fi
10750
10751
10752 fi
10753
10754
10755 fi
10756
10757
10758 fi
10759
10760 ;;
10761 esac
10762
10763 if test "x$lt_cv_dlopen" != xno; then
10764 enable_dlopen=yes
10765 else
10766 enable_dlopen=no
10767 fi
10768
10769 case $lt_cv_dlopen in
10770 dlopen)
10771 save_CPPFLAGS="$CPPFLAGS"
10772 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10773
10774 save_LDFLAGS="$LDFLAGS"
10775 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10776
10777 save_LIBS="$LIBS"
10778 LIBS="$lt_cv_dlopen_libs $LIBS"
10779
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10781 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10782 if ${lt_cv_dlopen_self+:} false; then :
10783 $as_echo_n "(cached) " >&6
10784 else
10785 if test "$cross_compiling" = yes; then :
10786 lt_cv_dlopen_self=cross
10787 else
10788 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10789 lt_status=$lt_dlunknown
10790 cat > conftest.$ac_ext <<_LT_EOF
10791 #line 10791 "configure"
10792 #include "confdefs.h"
10793
10794 #if HAVE_DLFCN_H
10795 #include <dlfcn.h>
10796 #endif
10797
10798 #include <stdio.h>
10799
10800 #ifdef RTLD_GLOBAL
10801 # define LT_DLGLOBAL RTLD_GLOBAL
10802 #else
10803 # ifdef DL_GLOBAL
10804 # define LT_DLGLOBAL DL_GLOBAL
10805 # else
10806 # define LT_DLGLOBAL 0
10807 # endif
10808 #endif
10809
10810 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10811 find out it does not work in some platform. */
10812 #ifndef LT_DLLAZY_OR_NOW
10813 # ifdef RTLD_LAZY
10814 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10815 # else
10816 # ifdef DL_LAZY
10817 # define LT_DLLAZY_OR_NOW DL_LAZY
10818 # else
10819 # ifdef RTLD_NOW
10820 # define LT_DLLAZY_OR_NOW RTLD_NOW
10821 # else
10822 # ifdef DL_NOW
10823 # define LT_DLLAZY_OR_NOW DL_NOW
10824 # else
10825 # define LT_DLLAZY_OR_NOW 0
10826 # endif
10827 # endif
10828 # endif
10829 # endif
10830 #endif
10831
10832 /* When -fvisbility=hidden is used, assume the code has been annotated
10833 correspondingly for the symbols needed. */
10834 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10835 void fnord () __attribute__((visibility("default")));
10836 #endif
10837
10838 void fnord () { int i=42; }
10839 int main ()
10840 {
10841 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10842 int status = $lt_dlunknown;
10843
10844 if (self)
10845 {
10846 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10847 else
10848 {
10849 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10850 else puts (dlerror ());
10851 }
10852 /* dlclose (self); */
10853 }
10854 else
10855 puts (dlerror ());
10856
10857 return status;
10858 }
10859 _LT_EOF
10860 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10861 (eval $ac_link) 2>&5
10862 ac_status=$?
10863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10864 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10865 (./conftest; exit; ) >&5 2>/dev/null
10866 lt_status=$?
10867 case x$lt_status in
10868 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10869 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10870 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10871 esac
10872 else :
10873 # compilation failed
10874 lt_cv_dlopen_self=no
10875 fi
10876 fi
10877 rm -fr conftest*
10878
10879
10880 fi
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10882 $as_echo "$lt_cv_dlopen_self" >&6; }
10883
10884 if test "x$lt_cv_dlopen_self" = xyes; then
10885 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10887 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10888 if ${lt_cv_dlopen_self_static+:} false; then :
10889 $as_echo_n "(cached) " >&6
10890 else
10891 if test "$cross_compiling" = yes; then :
10892 lt_cv_dlopen_self_static=cross
10893 else
10894 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10895 lt_status=$lt_dlunknown
10896 cat > conftest.$ac_ext <<_LT_EOF
10897 #line 10897 "configure"
10898 #include "confdefs.h"
10899
10900 #if HAVE_DLFCN_H
10901 #include <dlfcn.h>
10902 #endif
10903
10904 #include <stdio.h>
10905
10906 #ifdef RTLD_GLOBAL
10907 # define LT_DLGLOBAL RTLD_GLOBAL
10908 #else
10909 # ifdef DL_GLOBAL
10910 # define LT_DLGLOBAL DL_GLOBAL
10911 # else
10912 # define LT_DLGLOBAL 0
10913 # endif
10914 #endif
10915
10916 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10917 find out it does not work in some platform. */
10918 #ifndef LT_DLLAZY_OR_NOW
10919 # ifdef RTLD_LAZY
10920 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10921 # else
10922 # ifdef DL_LAZY
10923 # define LT_DLLAZY_OR_NOW DL_LAZY
10924 # else
10925 # ifdef RTLD_NOW
10926 # define LT_DLLAZY_OR_NOW RTLD_NOW
10927 # else
10928 # ifdef DL_NOW
10929 # define LT_DLLAZY_OR_NOW DL_NOW
10930 # else
10931 # define LT_DLLAZY_OR_NOW 0
10932 # endif
10933 # endif
10934 # endif
10935 # endif
10936 #endif
10937
10938 /* When -fvisbility=hidden is used, assume the code has been annotated
10939 correspondingly for the symbols needed. */
10940 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10941 void fnord () __attribute__((visibility("default")));
10942 #endif
10943
10944 void fnord () { int i=42; }
10945 int main ()
10946 {
10947 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10948 int status = $lt_dlunknown;
10949
10950 if (self)
10951 {
10952 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10953 else
10954 {
10955 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10956 else puts (dlerror ());
10957 }
10958 /* dlclose (self); */
10959 }
10960 else
10961 puts (dlerror ());
10962
10963 return status;
10964 }
10965 _LT_EOF
10966 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10967 (eval $ac_link) 2>&5
10968 ac_status=$?
10969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10970 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10971 (./conftest; exit; ) >&5 2>/dev/null
10972 lt_status=$?
10973 case x$lt_status in
10974 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10975 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10976 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10977 esac
10978 else :
10979 # compilation failed
10980 lt_cv_dlopen_self_static=no
10981 fi
10982 fi
10983 rm -fr conftest*
10984
10985
10986 fi
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10988 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10989 fi
10990
10991 CPPFLAGS="$save_CPPFLAGS"
10992 LDFLAGS="$save_LDFLAGS"
10993 LIBS="$save_LIBS"
10994 ;;
10995 esac
10996
10997 case $lt_cv_dlopen_self in
10998 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10999 *) enable_dlopen_self=unknown ;;
11000 esac
11001
11002 case $lt_cv_dlopen_self_static in
11003 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11004 *) enable_dlopen_self_static=unknown ;;
11005 esac
11006 fi
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024 striplib=
11025 old_striplib=
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11027 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11028 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11029 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11030 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11032 $as_echo "yes" >&6; }
11033 else
11034 # FIXME - insert some real tests, host_os isn't really good enough
11035 case $host_os in
11036 darwin*)
11037 if test -n "$STRIP" ; then
11038 striplib="$STRIP -x"
11039 old_striplib="$STRIP -S"
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11041 $as_echo "yes" >&6; }
11042 else
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11044 $as_echo "no" >&6; }
11045 fi
11046 ;;
11047 *)
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11049 $as_echo "no" >&6; }
11050 ;;
11051 esac
11052 fi
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065 # Report which library types will actually be built
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11067 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11069 $as_echo "$can_build_shared" >&6; }
11070
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11072 $as_echo_n "checking whether to build shared libraries... " >&6; }
11073 test "$can_build_shared" = "no" && enable_shared=no
11074
11075 # On AIX, shared libraries and static libraries use the same namespace, and
11076 # are all built from PIC.
11077 case $host_os in
11078 aix3*)
11079 test "$enable_shared" = yes && enable_static=no
11080 if test -n "$RANLIB"; then
11081 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11082 postinstall_cmds='$RANLIB $lib'
11083 fi
11084 ;;
11085
11086 aix[4-9]*)
11087 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11088 test "$enable_shared" = yes && enable_static=no
11089 fi
11090 ;;
11091 esac
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11093 $as_echo "$enable_shared" >&6; }
11094
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11096 $as_echo_n "checking whether to build static libraries... " >&6; }
11097 # Make sure either enable_shared or enable_static is yes.
11098 test "$enable_shared" = yes || enable_static=yes
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11100 $as_echo "$enable_static" >&6; }
11101
11102
11103
11104
11105 fi
11106 ac_ext=c
11107 ac_cpp='$CPP $CPPFLAGS'
11108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11111
11112 CC="$lt_save_CC"
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126 ac_config_commands="$ac_config_commands libtool"
11127
11128
11129
11130
11131 # Only expand once:
11132
11133
11134
11135
11136
11137
11138
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11140 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11141 # Check whether --enable-maintainer-mode was given.
11142 if test "${enable_maintainer_mode+set}" = set; then :
11143 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11144 else
11145 USE_MAINTAINER_MODE=no
11146 fi
11147
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11149 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11150 if test $USE_MAINTAINER_MODE = yes; then
11151 MAINTAINER_MODE_TRUE=
11152 MAINTAINER_MODE_FALSE='#'
11153 else
11154 MAINTAINER_MODE_TRUE='#'
11155 MAINTAINER_MODE_FALSE=
11156 fi
11157
11158 MAINT=$MAINTAINER_MODE_TRUE
11159
11160
11161
11162
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5
11164 $as_echo_n "checking for sim debug setting... " >&6; }
11165 sim_debug="0"
11166 # Check whether --enable-sim-debug was given.
11167 if test "${enable_sim_debug+set}" = set; then :
11168 enableval=$enable_sim_debug; case "${enableval}" in
11169 yes) sim_debug="7";;
11170 no) sim_debug="0";;
11171 *) sim_debug="($enableval)";;
11172 esac
11173 fi
11174 if test "$sim_debug" != "0"; then
11175
11176 cat >>confdefs.h <<_ACEOF
11177 #define DEBUG $sim_debug
11178 _ACEOF
11179
11180 fi
11181
11182 cat >>confdefs.h <<_ACEOF
11183 #define WITH_DEBUG $sim_debug
11184 _ACEOF
11185
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5
11187 $as_echo "$sim_debug" >&6; }
11188
11189
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
11191 $as_echo_n "checking for sim stdio debug behavior... " >&6; }
11192 sim_stdio="0"
11193 # Check whether --enable-sim-stdio was given.
11194 if test "${enable_sim_stdio+set}" = set; then :
11195 enableval=$enable_sim_stdio; case "${enableval}" in
11196 yes) sim_stdio="DO_USE_STDIO";;
11197 no) sim_stdio="DONT_USE_STDIO";;
11198 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
11199 esac
11200 fi
11201
11202 cat >>confdefs.h <<_ACEOF
11203 #define WITH_STDIO $sim_stdio
11204 _ACEOF
11205
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
11207 $as_echo "$sim_stdio" >&6; }
11208
11209
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
11211 $as_echo_n "checking for sim trace settings... " >&6; }
11212 sim_trace="~TRACE_debug"
11213 # Check whether --enable-sim-trace was given.
11214 if test "${enable_sim_trace+set}" = set; then :
11215 enableval=$enable_sim_trace; case "${enableval}" in
11216 yes) sim_trace="-1";;
11217 no) sim_trace="0";;
11218 [-0-9]*)
11219 sim_trace="'(${enableval})'";;
11220 [[:lower:]]*)
11221 sim_trace=""
11222 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
11223 if test x"$sim_trace" = x; then
11224 sim_trace="(TRACE_$x"
11225 else
11226 sim_trace="${sim_trace}|TRACE_$x"
11227 fi
11228 done
11229 sim_trace="$sim_trace)" ;;
11230 esac
11231 fi
11232
11233 cat >>confdefs.h <<_ACEOF
11234 #define WITH_TRACE $sim_trace
11235 _ACEOF
11236
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
11238 $as_echo "$sim_trace" >&6; }
11239
11240
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5
11242 $as_echo_n "checking for sim profile settings... " >&6; }
11243 profile="1"
11244 sim_profile="-1"
11245 # Check whether --enable-sim-profile was given.
11246 if test "${enable_sim_profile+set}" = set; then :
11247 enableval=$enable_sim_profile; case "${enableval}" in
11248 yes) profile="1" sim_profile="-1";;
11249 no) profile="0" sim_profile="0";;
11250 [-0-9]*)
11251 profile="(${enableval})" sim_profile="(${enableval})";;
11252 [a-z]*)
11253 profile="1"
11254 sim_profile=""
11255 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
11256 if test x"$sim_profile" = x; then
11257 sim_profile="(PROFILE_$x"
11258 else
11259 sim_profile="${sim_profile}|PROFILE_$x"
11260 fi
11261 done
11262 sim_profile="$sim_profile)" ;;
11263 esac
11264 fi
11265
11266 cat >>confdefs.h <<_ACEOF
11267 #define PROFILE $profile
11268 _ACEOF
11269
11270
11271 cat >>confdefs.h <<_ACEOF
11272 #define WITH_PROFILE $sim_profile
11273 _ACEOF
11274
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5
11276 $as_echo "$sim_profile" >&6; }
11277
11278
11279
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5
11281 $as_echo_n "checking default sim environment setting... " >&6; }
11282 sim_environment="ALL_ENVIRONMENT"
11283 # Check whether --enable-sim-environment was given.
11284 if test "${enable_sim_environment+set}" = set; then :
11285 enableval=$enable_sim_environment; case "${enableval}" in
11286 all | ALL) sim_environment="ALL_ENVIRONMENT";;
11287 user | USER) sim_environment="USER_ENVIRONMENT";;
11288 virtual | VIRTUAL) sim_environment="VIRTUAL_ENVIRONMENT";;
11289 operating | OPERATING) sim_environment="OPERATING_ENVIRONMENT";;
11290 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;;
11291 esac
11292 fi
11293
11294 cat >>confdefs.h <<_ACEOF
11295 #define WITH_ENVIRONMENT $sim_environment
11296 _ACEOF
11297
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5
11299 $as_echo "$sim_environment" >&6; }
11300
11301
11302 sim_inline="-DDEFAULT_INLINE=0"
11303 # Check whether --enable-sim-inline was given.
11304 if test "${enable_sim_inline+set}" = set; then :
11305 enableval=$enable_sim_inline; sim_inline=""
11306 case "$enableval" in
11307 no) sim_inline="-DDEFAULT_INLINE=0";;
11308 0) sim_inline="-DDEFAULT_INLINE=0";;
11309 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
11310 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
11311 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
11312 new_flag=""
11313 case "$x" in
11314 *_INLINE=*) new_flag="-D$x";;
11315 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
11316 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
11317 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
11318 esac
11319 if test x"$sim_inline" = x""; then
11320 sim_inline="$new_flag"
11321 else
11322 sim_inline="$sim_inline $new_flag"
11323 fi
11324 done;;
11325 esac
11326 if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
11327 echo "Setting inline flags = $sim_inline" 6>&1
11328 fi
11329 fi
11330
11331
11332
11333
11334 # Check whether --with-pkgversion was given.
11335 if test "${with_pkgversion+set}" = set; then :
11336 withval=$with_pkgversion; case "$withval" in
11337 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
11338 no) PKGVERSION= ;;
11339 *) PKGVERSION="($withval) " ;;
11340 esac
11341 else
11342 PKGVERSION="(SIM) "
11343
11344 fi
11345
11346
11347
11348
11349
11350 # Check whether --with-bugurl was given.
11351 if test "${with_bugurl+set}" = set; then :
11352 withval=$with_bugurl; case "$withval" in
11353 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
11354 no) BUGURL=
11355 ;;
11356 *) BUGURL="$withval"
11357 ;;
11358 esac
11359 else
11360 BUGURL="https://www.gnu.org/software/gdb/bugs/"
11361
11362 fi
11363
11364 case ${BUGURL} in
11365 "")
11366 REPORT_BUGS_TO=
11367 REPORT_BUGS_TEXI=
11368 ;;
11369 *)
11370 REPORT_BUGS_TO="<$BUGURL>"
11371 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
11372 ;;
11373 esac;
11374
11375
11376
11377
11378 cat >>confdefs.h <<_ACEOF
11379 #define PKGVERSION "$PKGVERSION"
11380 _ACEOF
11381
11382
11383 cat >>confdefs.h <<_ACEOF
11384 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
11385 _ACEOF
11386
11387
11388
11389
11390
11391
11392 wire_endian="LITTLE"
11393 default_endian=""
11394 # Check whether --enable-sim-endian was given.
11395 if test "${enable_sim_endian+set}" = set; then :
11396 enableval=$enable_sim_endian; case "${enableval}" in
11397 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_BIG";;
11398 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_LITTLE";;
11399 yes) if test x"$wire_endian" != x; then
11400 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_${wire_endian}"
11401 else
11402 if test x"$default_endian" != x; then
11403 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_${default_endian}"
11404 else
11405 echo "No hard-wired endian for target $target" 1>&6
11406 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_UNKNOWN"
11407 fi
11408 fi;;
11409 no) if test x"$default_endian" != x; then
11410 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_${default_endian}"
11411 else
11412 if test x"$wire_endian" != x; then
11413 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_${wire_endian}"
11414 else
11415 echo "No default endian for target $target" 1>&6
11416 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_UNKNOWN"
11417 fi
11418 fi;;
11419 *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian="";;
11420 esac
11421 if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
11422 echo "Setting endian flags = $sim_endian" 6>&1
11423 fi
11424 else
11425 if test x"$default_endian" != x; then
11426 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_${default_endian}"
11427 else
11428 if test x"$wire_endian" != x; then
11429 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_${wire_endian}"
11430 else
11431 sim_endian=
11432 fi
11433 fi
11434 fi
11435
11436 wire_alignment=""
11437 default_alignment="NONSTRICT_ALIGNMENT"
11438
11439 # Check whether --enable-sim-alignment was given.
11440 if test "${enable_sim_alignment+set}" = set; then :
11441 enableval=$enable_sim_alignment; case "${enableval}" in
11442 strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
11443 nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
11444 forced | FORCED) sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
11445 yes) if test x"$wire_alignment" != x; then
11446 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
11447 else
11448 if test x"$default_alignment" != x; then
11449 sim_alignment="-DWITH_ALIGNMENT=${default_alignment}"
11450 else
11451 echo "No hard-wired alignment for target $target" 1>&6
11452 sim_alignment="-DWITH_ALIGNMENT=0"
11453 fi
11454 fi;;
11455 no) if test x"$default_alignment" != x; then
11456 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
11457 else
11458 if test x"$wire_alignment" != x; then
11459 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
11460 else
11461 echo "No default alignment for target $target" 1>&6
11462 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0"
11463 fi
11464 fi;;
11465 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5; sim_alignment="";;
11466 esac
11467 if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
11468 echo "Setting alignment flags = $sim_alignment" 6>&1
11469 fi
11470 else
11471 if test x"$default_alignment" != x; then
11472 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
11473 else
11474 if test x"$wire_alignment" != x; then
11475 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
11476 else
11477 sim_alignment=
11478 fi
11479 fi
11480 fi
11481
11482
11483 default_sim_reserved_bits="1"
11484 # Check whether --enable-sim-reserved-bits was given.
11485 if test "${enable_sim_reserved_bits+set}" = set; then :
11486 enableval=$enable_sim_reserved_bits; case "${enableval}" in
11487 yes) sim_reserved_bits="-DWITH_RESERVED_BITS=1";;
11488 no) sim_reserved_bits="-DWITH_RESERVED_BITS=0";;
11489 *) as_fn_error $? "\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5; sim_reserved_bits="";;
11490 esac
11491 if test x"$silent" != x"yes" && test x"$sim_reserved_bits" != x""; then
11492 echo "Setting reserved flags = $sim_reserved_bits" 6>&1
11493 fi
11494 else
11495 sim_reserved_bits="-DWITH_RESERVED_BITS=${default_sim_reserved_bits}"
11496 fi
11497
11498 wire_word_bitsize="32"
11499 wire_word_msb="31"
11500 wire_address_bitsize=""
11501 wire_cell_bitsize=""
11502 # Check whether --enable-sim-bitsize was given.
11503 if test "${enable_sim_bitsize+set}" = set; then :
11504 enableval=$enable_sim_bitsize; sim_bitsize=
11505 case "${enableval}" in
11506 64,63 | 64,63,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
11507 32,31 | 32,31,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
11508 64,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
11509 32,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
11510 32) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
11511 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
11512 else
11513 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
11514 fi ;;
11515 64) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
11516 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
11517 else
11518 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
11519 fi ;;
11520 *) as_fn_error $? "\"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5 ;;
11521 esac
11522 # address bitsize
11523 tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9]*,*//"`
11524 case x"${tmp}" in
11525 x ) ;;
11526 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
11527 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
11528 * ) as_fn_error $? "\"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" "$LINENO" 5 ;;
11529 esac
11530 # cell bitsize
11531 tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9*]*,*[0-9]*,*//"`
11532 case x"${tmp}" in
11533 x ) ;;
11534 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
11535 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
11536 * ) as_fn_error $? "\"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" "$LINENO" 5 ;;
11537 esac
11538 if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
11539 echo "Setting bitsize flags = $sim_bitsize" 6>&1
11540 fi
11541 else
11542 sim_bitsize=""
11543 if test x"$wire_word_bitsize" != x; then
11544 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
11545 fi
11546 if test x"$wire_word_msb" != x; then
11547 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
11548 fi
11549 if test x"$wire_address_bitsize" != x; then
11550 sim_bitsize="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
11551 fi
11552 if test x"$wire_cell_bitsize" != x; then
11553 sim_bitsize="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
11554 fi
11555 fi
11556
11557
11558
11559 # Check whether --enable-werror was given.
11560 if test "${enable_werror+set}" = set; then :
11561 enableval=$enable_werror; case "${enableval}" in
11562 yes | y) ERROR_ON_WARNING="yes" ;;
11563 no | n) ERROR_ON_WARNING="no" ;;
11564 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
11565 esac
11566 fi
11567
11568
11569 # Enable -Werror by default when using gcc
11570 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11571 ERROR_ON_WARNING=yes
11572 fi
11573
11574 WERROR_CFLAGS=""
11575 if test "${ERROR_ON_WARNING}" = yes ; then
11576 WERROR_CFLAGS="-Werror"
11577 fi
11578
11579 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
11580 -Wpointer-sign \
11581 -Wno-unused -Wunused-value -Wunused-function \
11582 -Wno-switch -Wno-char-subscripts -Wmissing-prototypes
11583 -Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
11584 -Wold-style-declaration -Wold-style-definition"
11585
11586 # Enable -Wno-format by default when using gcc on mingw since many
11587 # GCC versions complain about %I64.
11588 case "${host}" in
11589 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
11590 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
11591 esac
11592
11593 # Check whether --enable-build-warnings was given.
11594 if test "${enable_build_warnings+set}" = set; then :
11595 enableval=$enable_build_warnings; case "${enableval}" in
11596 yes) ;;
11597 no) build_warnings="-w";;
11598 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11599 build_warnings="${build_warnings} ${t}";;
11600 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11601 build_warnings="${t} ${build_warnings}";;
11602 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11603 esac
11604 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
11605 echo "Setting compiler warning flags = $build_warnings" 6>&1
11606 fi
11607 fi
11608 # Check whether --enable-sim-build-warnings was given.
11609 if test "${enable_sim_build_warnings+set}" = set; then :
11610 enableval=$enable_sim_build_warnings; case "${enableval}" in
11611 yes) ;;
11612 no) build_warnings="-w";;
11613 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11614 build_warnings="${build_warnings} ${t}";;
11615 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11616 build_warnings="${t} ${build_warnings}";;
11617 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11618 esac
11619 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
11620 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
11621 fi
11622 fi
11623 WARN_CFLAGS=""
11624 if test "x${build_warnings}" != x -a "x$GCC" = xyes
11625 then
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
11627 $as_echo_n "checking compiler warning flags... " >&6; }
11628 # Separate out the -Werror flag as some files just cannot be
11629 # compiled with it enabled.
11630 for w in ${build_warnings}; do
11631 case $w in
11632 -Werr*) WERROR_CFLAGS=-Werror ;;
11633 *) # Check that GCC accepts it
11634 saved_CFLAGS="$CFLAGS"
11635 CFLAGS="$CFLAGS -Werror $w"
11636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11637 /* end confdefs.h. */
11638
11639 int
11640 main ()
11641 {
11642
11643 ;
11644 return 0;
11645 }
11646 _ACEOF
11647 if ac_fn_c_try_compile "$LINENO"; then :
11648 WARN_CFLAGS="${WARN_CFLAGS} $w"
11649 fi
11650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11651 CFLAGS="$saved_CFLAGS"
11652 esac
11653 done
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
11655 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
11656 fi
11657
11658
11659 hardware="cfi core pal glue "
11660 sim_hw_cflags="-DWITH_HW=1"
11661 sim_hw="$hardware"
11662 sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
11663
11664 # Check whether --enable-sim-hardware was given.
11665 if test "${enable_sim_hardware+set}" = set; then :
11666 enableval=$enable_sim_hardware;
11667 else
11668 enable_sim_hardware="yes"
11669 fi
11670
11671 case ${enable_sim_hardware} in
11672 yes|no) ;;
11673 ,*) hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
11674 *,) hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
11675 *) hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
11676 esac
11677
11678 if test "$enable_sim_hardware" = no; then
11679 sim_hw_objs=
11680 sim_hw_cflags="-DWITH_HW=0"
11681 sim_hw=
11682 else
11683 sim_hw_cflags="-DWITH_HW=1"
11684 # remove duplicates
11685 sim_hw=""
11686 sim_hw_objs="\$(SIM_COMMON_HW_OBJS)"
11687 for i in $hardware ; do
11688 case " $sim_hw " in
11689 *" $i "*) ;;
11690 *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";;
11691 esac
11692 done
11693 # mingw does not support sockser
11694 case ${host} in
11695 *mingw*) ;;
11696 *) # TODO: We don't add dv-sockser to sim_hw as it is not a "real" device
11697 # that you instatiate. Instead, other code will call into it directly.
11698 # At some point, we should convert it over.
11699 sim_hw_objs="$sim_hw_objs dv-sockser.o"
11700
11701 cat >>confdefs.h <<_ACEOF
11702 #define HAVE_DV_SOCKSER 1
11703 _ACEOF
11704
11705 ;;
11706 esac
11707 if test x"$silent" != x"yes"; then
11708 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
11709 fi
11710 case " $hardware " in
11711 *" cfi "*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log2 in -lm" >&5
11712 $as_echo_n "checking for log2 in -lm... " >&6; }
11713 if ${ac_cv_lib_m_log2+:} false; then :
11714 $as_echo_n "(cached) " >&6
11715 else
11716 ac_check_lib_save_LIBS=$LIBS
11717 LIBS="-lm $LIBS"
11718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11719 /* end confdefs.h. */
11720
11721 /* Override any GCC internal prototype to avoid an error.
11722 Use char because int might match the return type of a GCC
11723 builtin and then its argument prototype would still apply. */
11724 #ifdef __cplusplus
11725 extern "C"
11726 #endif
11727 char log2 ();
11728 int
11729 main ()
11730 {
11731 return log2 ();
11732 ;
11733 return 0;
11734 }
11735 _ACEOF
11736 if ac_fn_c_try_link "$LINENO"; then :
11737 ac_cv_lib_m_log2=yes
11738 else
11739 ac_cv_lib_m_log2=no
11740 fi
11741 rm -f core conftest.err conftest.$ac_objext \
11742 conftest$ac_exeext conftest.$ac_ext
11743 LIBS=$ac_check_lib_save_LIBS
11744 fi
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log2" >&5
11746 $as_echo "$ac_cv_lib_m_log2" >&6; }
11747 if test "x$ac_cv_lib_m_log2" = xyes; then :
11748 cat >>confdefs.h <<_ACEOF
11749 #define HAVE_LIBM 1
11750 _ACEOF
11751
11752 LIBS="-lm $LIBS"
11753
11754 fi
11755 ;;
11756 esac
11757 fi
11758
11759
11760 cgen_breaks=""
11761 if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
11762 cgen_breaks="break cgen_rtx_error";
11763 fi
11764
11765 ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
11766
11767 ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
11768
11769 ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
11770
11771 ac_config_commands="$ac_config_commands Makefile"
11772
11773 ac_config_commands="$ac_config_commands stamp-h"
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787 cat >confcache <<\_ACEOF
11788 # This file is a shell script that caches the results of configure
11789 # tests run on this system so they can be shared between configure
11790 # scripts and configure runs, see configure's option --config-cache.
11791 # It is not useful on other systems. If it contains results you don't
11792 # want to keep, you may remove or edit it.
11793 #
11794 # config.status only pays attention to the cache file if you give it
11795 # the --recheck option to rerun configure.
11796 #
11797 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11798 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11799 # following values.
11800
11801 _ACEOF
11802
11803 # The following way of writing the cache mishandles newlines in values,
11804 # but we know of no workaround that is simple, portable, and efficient.
11805 # So, we kill variables containing newlines.
11806 # Ultrix sh set writes to stderr and can't be redirected directly,
11807 # and sets the high bit in the cache file unless we assign to the vars.
11808 (
11809 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11810 eval ac_val=\$$ac_var
11811 case $ac_val in #(
11812 *${as_nl}*)
11813 case $ac_var in #(
11814 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11815 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11816 esac
11817 case $ac_var in #(
11818 _ | IFS | as_nl) ;; #(
11819 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11820 *) { eval $ac_var=; unset $ac_var;} ;;
11821 esac ;;
11822 esac
11823 done
11824
11825 (set) 2>&1 |
11826 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11827 *${as_nl}ac_space=\ *)
11828 # `set' does not quote correctly, so add quotes: double-quote
11829 # substitution turns \\\\ into \\, and sed turns \\ into \.
11830 sed -n \
11831 "s/'/'\\\\''/g;
11832 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11833 ;; #(
11834 *)
11835 # `set' quotes correctly as required by POSIX, so do not add quotes.
11836 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11837 ;;
11838 esac |
11839 sort
11840 ) |
11841 sed '
11842 /^ac_cv_env_/b end
11843 t clear
11844 :clear
11845 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11846 t end
11847 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11848 :end' >>confcache
11849 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11850 if test -w "$cache_file"; then
11851 if test "x$cache_file" != "x/dev/null"; then
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11853 $as_echo "$as_me: updating cache $cache_file" >&6;}
11854 if test ! -f "$cache_file" || test -h "$cache_file"; then
11855 cat confcache >"$cache_file"
11856 else
11857 case $cache_file in #(
11858 */* | ?:*)
11859 mv -f confcache "$cache_file"$$ &&
11860 mv -f "$cache_file"$$ "$cache_file" ;; #(
11861 *)
11862 mv -f confcache "$cache_file" ;;
11863 esac
11864 fi
11865 fi
11866 else
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11868 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11869 fi
11870 fi
11871 rm -f confcache
11872
11873 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11874 # Let make expand exec_prefix.
11875 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11876
11877 DEFS=-DHAVE_CONFIG_H
11878
11879 ac_libobjs=
11880 ac_ltlibobjs=
11881 U=
11882 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11883 # 1. Remove the extension, and $U if already installed.
11884 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11885 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11886 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11887 # will be set to the directory where LIBOBJS objects are built.
11888 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11889 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11890 done
11891 LIBOBJS=$ac_libobjs
11892
11893 LTLIBOBJS=$ac_ltlibobjs
11894
11895
11896
11897 if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
11898 as_fn_error $? "conditional \"PLUGINS\" was never defined.
11899 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11900 fi
11901 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11902 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11903 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11904 fi
11905
11906 : "${CONFIG_STATUS=./config.status}"
11907 ac_write_fail=0
11908 ac_clean_files_save=$ac_clean_files
11909 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11911 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11912 as_write_fail=0
11913 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11914 #! $SHELL
11915 # Generated by $as_me.
11916 # Run this file to recreate the current configuration.
11917 # Compiler output produced by configure, useful for debugging
11918 # configure, is in config.log if it exists.
11919
11920 debug=false
11921 ac_cs_recheck=false
11922 ac_cs_silent=false
11923
11924 SHELL=\${CONFIG_SHELL-$SHELL}
11925 export SHELL
11926 _ASEOF
11927 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11928 ## -------------------- ##
11929 ## M4sh Initialization. ##
11930 ## -------------------- ##
11931
11932 # Be more Bourne compatible
11933 DUALCASE=1; export DUALCASE # for MKS sh
11934 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11935 emulate sh
11936 NULLCMD=:
11937 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11938 # is contrary to our usage. Disable this feature.
11939 alias -g '${1+"$@"}'='"$@"'
11940 setopt NO_GLOB_SUBST
11941 else
11942 case `(set -o) 2>/dev/null` in #(
11943 *posix*) :
11944 set -o posix ;; #(
11945 *) :
11946 ;;
11947 esac
11948 fi
11949
11950
11951 as_nl='
11952 '
11953 export as_nl
11954 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11955 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11956 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11957 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11958 # Prefer a ksh shell builtin over an external printf program on Solaris,
11959 # but without wasting forks for bash or zsh.
11960 if test -z "$BASH_VERSION$ZSH_VERSION" \
11961 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11962 as_echo='print -r --'
11963 as_echo_n='print -rn --'
11964 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11965 as_echo='printf %s\n'
11966 as_echo_n='printf %s'
11967 else
11968 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11969 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11970 as_echo_n='/usr/ucb/echo -n'
11971 else
11972 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11973 as_echo_n_body='eval
11974 arg=$1;
11975 case $arg in #(
11976 *"$as_nl"*)
11977 expr "X$arg" : "X\\(.*\\)$as_nl";
11978 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11979 esac;
11980 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11981 '
11982 export as_echo_n_body
11983 as_echo_n='sh -c $as_echo_n_body as_echo'
11984 fi
11985 export as_echo_body
11986 as_echo='sh -c $as_echo_body as_echo'
11987 fi
11988
11989 # The user is always right.
11990 if test "${PATH_SEPARATOR+set}" != set; then
11991 PATH_SEPARATOR=:
11992 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11993 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11994 PATH_SEPARATOR=';'
11995 }
11996 fi
11997
11998
11999 # IFS
12000 # We need space, tab and new line, in precisely that order. Quoting is
12001 # there to prevent editors from complaining about space-tab.
12002 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12003 # splitting by setting IFS to empty value.)
12004 IFS=" "" $as_nl"
12005
12006 # Find who we are. Look in the path if we contain no directory separator.
12007 as_myself=
12008 case $0 in #((
12009 *[\\/]* ) as_myself=$0 ;;
12010 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12011 for as_dir in $PATH
12012 do
12013 IFS=$as_save_IFS
12014 test -z "$as_dir" && as_dir=.
12015 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12016 done
12017 IFS=$as_save_IFS
12018
12019 ;;
12020 esac
12021 # We did not find ourselves, most probably we were run as `sh COMMAND'
12022 # in which case we are not to be found in the path.
12023 if test "x$as_myself" = x; then
12024 as_myself=$0
12025 fi
12026 if test ! -f "$as_myself"; then
12027 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12028 exit 1
12029 fi
12030
12031 # Unset variables that we do not need and which cause bugs (e.g. in
12032 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12033 # suppresses any "Segmentation fault" message there. '((' could
12034 # trigger a bug in pdksh 5.2.14.
12035 for as_var in BASH_ENV ENV MAIL MAILPATH
12036 do eval test x\${$as_var+set} = xset \
12037 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12038 done
12039 PS1='$ '
12040 PS2='> '
12041 PS4='+ '
12042
12043 # NLS nuisances.
12044 LC_ALL=C
12045 export LC_ALL
12046 LANGUAGE=C
12047 export LANGUAGE
12048
12049 # CDPATH.
12050 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12051
12052
12053 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12054 # ----------------------------------------
12055 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12056 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12057 # script with STATUS, using 1 if that was 0.
12058 as_fn_error ()
12059 {
12060 as_status=$1; test $as_status -eq 0 && as_status=1
12061 if test "$4"; then
12062 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12063 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12064 fi
12065 $as_echo "$as_me: error: $2" >&2
12066 as_fn_exit $as_status
12067 } # as_fn_error
12068
12069
12070 # as_fn_set_status STATUS
12071 # -----------------------
12072 # Set $? to STATUS, without forking.
12073 as_fn_set_status ()
12074 {
12075 return $1
12076 } # as_fn_set_status
12077
12078 # as_fn_exit STATUS
12079 # -----------------
12080 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12081 as_fn_exit ()
12082 {
12083 set +e
12084 as_fn_set_status $1
12085 exit $1
12086 } # as_fn_exit
12087
12088 # as_fn_unset VAR
12089 # ---------------
12090 # Portably unset VAR.
12091 as_fn_unset ()
12092 {
12093 { eval $1=; unset $1;}
12094 }
12095 as_unset=as_fn_unset
12096 # as_fn_append VAR VALUE
12097 # ----------------------
12098 # Append the text in VALUE to the end of the definition contained in VAR. Take
12099 # advantage of any shell optimizations that allow amortized linear growth over
12100 # repeated appends, instead of the typical quadratic growth present in naive
12101 # implementations.
12102 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12103 eval 'as_fn_append ()
12104 {
12105 eval $1+=\$2
12106 }'
12107 else
12108 as_fn_append ()
12109 {
12110 eval $1=\$$1\$2
12111 }
12112 fi # as_fn_append
12113
12114 # as_fn_arith ARG...
12115 # ------------------
12116 # Perform arithmetic evaluation on the ARGs, and store the result in the
12117 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12118 # must be portable across $(()) and expr.
12119 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12120 eval 'as_fn_arith ()
12121 {
12122 as_val=$(( $* ))
12123 }'
12124 else
12125 as_fn_arith ()
12126 {
12127 as_val=`expr "$@" || test $? -eq 1`
12128 }
12129 fi # as_fn_arith
12130
12131
12132 if expr a : '\(a\)' >/dev/null 2>&1 &&
12133 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12134 as_expr=expr
12135 else
12136 as_expr=false
12137 fi
12138
12139 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12140 as_basename=basename
12141 else
12142 as_basename=false
12143 fi
12144
12145 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12146 as_dirname=dirname
12147 else
12148 as_dirname=false
12149 fi
12150
12151 as_me=`$as_basename -- "$0" ||
12152 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12153 X"$0" : 'X\(//\)$' \| \
12154 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12155 $as_echo X/"$0" |
12156 sed '/^.*\/\([^/][^/]*\)\/*$/{
12157 s//\1/
12158 q
12159 }
12160 /^X\/\(\/\/\)$/{
12161 s//\1/
12162 q
12163 }
12164 /^X\/\(\/\).*/{
12165 s//\1/
12166 q
12167 }
12168 s/.*/./; q'`
12169
12170 # Avoid depending upon Character Ranges.
12171 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12172 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12173 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12174 as_cr_digits='0123456789'
12175 as_cr_alnum=$as_cr_Letters$as_cr_digits
12176
12177 ECHO_C= ECHO_N= ECHO_T=
12178 case `echo -n x` in #(((((
12179 -n*)
12180 case `echo 'xy\c'` in
12181 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12182 xy) ECHO_C='\c';;
12183 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12184 ECHO_T=' ';;
12185 esac;;
12186 *)
12187 ECHO_N='-n';;
12188 esac
12189
12190 rm -f conf$$ conf$$.exe conf$$.file
12191 if test -d conf$$.dir; then
12192 rm -f conf$$.dir/conf$$.file
12193 else
12194 rm -f conf$$.dir
12195 mkdir conf$$.dir 2>/dev/null
12196 fi
12197 if (echo >conf$$.file) 2>/dev/null; then
12198 if ln -s conf$$.file conf$$ 2>/dev/null; then
12199 as_ln_s='ln -s'
12200 # ... but there are two gotchas:
12201 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12202 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12203 # In both cases, we have to default to `cp -pR'.
12204 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12205 as_ln_s='cp -pR'
12206 elif ln conf$$.file conf$$ 2>/dev/null; then
12207 as_ln_s=ln
12208 else
12209 as_ln_s='cp -pR'
12210 fi
12211 else
12212 as_ln_s='cp -pR'
12213 fi
12214 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12215 rmdir conf$$.dir 2>/dev/null
12216
12217
12218 # as_fn_mkdir_p
12219 # -------------
12220 # Create "$as_dir" as a directory, including parents if necessary.
12221 as_fn_mkdir_p ()
12222 {
12223
12224 case $as_dir in #(
12225 -*) as_dir=./$as_dir;;
12226 esac
12227 test -d "$as_dir" || eval $as_mkdir_p || {
12228 as_dirs=
12229 while :; do
12230 case $as_dir in #(
12231 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12232 *) as_qdir=$as_dir;;
12233 esac
12234 as_dirs="'$as_qdir' $as_dirs"
12235 as_dir=`$as_dirname -- "$as_dir" ||
12236 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12237 X"$as_dir" : 'X\(//\)[^/]' \| \
12238 X"$as_dir" : 'X\(//\)$' \| \
12239 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12240 $as_echo X"$as_dir" |
12241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12242 s//\1/
12243 q
12244 }
12245 /^X\(\/\/\)[^/].*/{
12246 s//\1/
12247 q
12248 }
12249 /^X\(\/\/\)$/{
12250 s//\1/
12251 q
12252 }
12253 /^X\(\/\).*/{
12254 s//\1/
12255 q
12256 }
12257 s/.*/./; q'`
12258 test -d "$as_dir" && break
12259 done
12260 test -z "$as_dirs" || eval "mkdir $as_dirs"
12261 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12262
12263
12264 } # as_fn_mkdir_p
12265 if mkdir -p . 2>/dev/null; then
12266 as_mkdir_p='mkdir -p "$as_dir"'
12267 else
12268 test -d ./-p && rmdir ./-p
12269 as_mkdir_p=false
12270 fi
12271
12272
12273 # as_fn_executable_p FILE
12274 # -----------------------
12275 # Test if FILE is an executable regular file.
12276 as_fn_executable_p ()
12277 {
12278 test -f "$1" && test -x "$1"
12279 } # as_fn_executable_p
12280 as_test_x='test -x'
12281 as_executable_p=as_fn_executable_p
12282
12283 # Sed expression to map a string onto a valid CPP name.
12284 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12285
12286 # Sed expression to map a string onto a valid variable name.
12287 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12288
12289
12290 exec 6>&1
12291 ## ----------------------------------- ##
12292 ## Main body of $CONFIG_STATUS script. ##
12293 ## ----------------------------------- ##
12294 _ASEOF
12295 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12296
12297 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12298 # Save the log message, to keep $0 and so on meaningful, and to
12299 # report actual input values of CONFIG_FILES etc. instead of their
12300 # values after options handling.
12301 ac_log="
12302 This file was extended by $as_me, which was
12303 generated by GNU Autoconf 2.69. Invocation command line was
12304
12305 CONFIG_FILES = $CONFIG_FILES
12306 CONFIG_HEADERS = $CONFIG_HEADERS
12307 CONFIG_LINKS = $CONFIG_LINKS
12308 CONFIG_COMMANDS = $CONFIG_COMMANDS
12309 $ $0 $@
12310
12311 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12312 "
12313
12314 _ACEOF
12315
12316 case $ac_config_files in *"
12317 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12318 esac
12319
12320 case $ac_config_headers in *"
12321 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12322 esac
12323
12324
12325 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12326 # Files that config.status was made for.
12327 config_files="$ac_config_files"
12328 config_headers="$ac_config_headers"
12329 config_commands="$ac_config_commands"
12330
12331 _ACEOF
12332
12333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12334 ac_cs_usage="\
12335 \`$as_me' instantiates files and other configuration actions
12336 from templates according to the current configuration. Unless the files
12337 and actions are specified as TAGs, all are instantiated by default.
12338
12339 Usage: $0 [OPTION]... [TAG]...
12340
12341 -h, --help print this help, then exit
12342 -V, --version print version number and configuration settings, then exit
12343 --config print configuration, then exit
12344 -q, --quiet, --silent
12345 do not print progress messages
12346 -d, --debug don't remove temporary files
12347 --recheck update $as_me by reconfiguring in the same conditions
12348 --file=FILE[:TEMPLATE]
12349 instantiate the configuration file FILE
12350 --header=FILE[:TEMPLATE]
12351 instantiate the configuration header FILE
12352
12353 Configuration files:
12354 $config_files
12355
12356 Configuration headers:
12357 $config_headers
12358
12359 Configuration commands:
12360 $config_commands
12361
12362 Report bugs to the package provider."
12363
12364 _ACEOF
12365 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12366 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12367 ac_cs_version="\\
12368 config.status
12369 configured by $0, generated by GNU Autoconf 2.69,
12370 with options \\"\$ac_cs_config\\"
12371
12372 Copyright (C) 2012 Free Software Foundation, Inc.
12373 This config.status script is free software; the Free Software Foundation
12374 gives unlimited permission to copy, distribute and modify it."
12375
12376 ac_pwd='$ac_pwd'
12377 srcdir='$srcdir'
12378 INSTALL='$INSTALL'
12379 AWK='$AWK'
12380 test -n "\$AWK" || AWK=awk
12381 _ACEOF
12382
12383 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12384 # The default lists apply if the user does not specify any file.
12385 ac_need_defaults=:
12386 while test $# != 0
12387 do
12388 case $1 in
12389 --*=?*)
12390 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12391 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12392 ac_shift=:
12393 ;;
12394 --*=)
12395 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12396 ac_optarg=
12397 ac_shift=:
12398 ;;
12399 *)
12400 ac_option=$1
12401 ac_optarg=$2
12402 ac_shift=shift
12403 ;;
12404 esac
12405
12406 case $ac_option in
12407 # Handling of the options.
12408 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12409 ac_cs_recheck=: ;;
12410 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12411 $as_echo "$ac_cs_version"; exit ;;
12412 --config | --confi | --conf | --con | --co | --c )
12413 $as_echo "$ac_cs_config"; exit ;;
12414 --debug | --debu | --deb | --de | --d | -d )
12415 debug=: ;;
12416 --file | --fil | --fi | --f )
12417 $ac_shift
12418 case $ac_optarg in
12419 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12420 '') as_fn_error $? "missing file argument" ;;
12421 esac
12422 as_fn_append CONFIG_FILES " '$ac_optarg'"
12423 ac_need_defaults=false;;
12424 --header | --heade | --head | --hea )
12425 $ac_shift
12426 case $ac_optarg in
12427 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12428 esac
12429 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12430 ac_need_defaults=false;;
12431 --he | --h)
12432 # Conflict between --help and --header
12433 as_fn_error $? "ambiguous option: \`$1'
12434 Try \`$0 --help' for more information.";;
12435 --help | --hel | -h )
12436 $as_echo "$ac_cs_usage"; exit ;;
12437 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12438 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12439 ac_cs_silent=: ;;
12440
12441 # This is an error.
12442 -*) as_fn_error $? "unrecognized option: \`$1'
12443 Try \`$0 --help' for more information." ;;
12444
12445 *) as_fn_append ac_config_targets " $1"
12446 ac_need_defaults=false ;;
12447
12448 esac
12449 shift
12450 done
12451
12452 ac_configure_extra_args=
12453
12454 if $ac_cs_silent; then
12455 exec 6>/dev/null
12456 ac_configure_extra_args="$ac_configure_extra_args --silent"
12457 fi
12458
12459 _ACEOF
12460 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12461 if \$ac_cs_recheck; then
12462 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12463 shift
12464 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12465 CONFIG_SHELL='$SHELL'
12466 export CONFIG_SHELL
12467 exec "\$@"
12468 fi
12469
12470 _ACEOF
12471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12472 exec 5>>config.log
12473 {
12474 echo
12475 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12476 ## Running $as_me. ##
12477 _ASBOX
12478 $as_echo "$ac_log"
12479 } >&5
12480
12481 _ACEOF
12482 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12483 #
12484 # INIT-COMMANDS
12485 #
12486 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
12487
12488
12489 # The HP-UX ksh and POSIX shell print the target directory to stdout
12490 # if CDPATH is set.
12491 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12492
12493 sed_quote_subst='$sed_quote_subst'
12494 double_quote_subst='$double_quote_subst'
12495 delay_variable_subst='$delay_variable_subst'
12496 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12497 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12498 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12499 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12500 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12501 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12502 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12503 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12504 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12505 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12506 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12507 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12508 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12509 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12510 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12511 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12512 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12513 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12514 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12515 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12516 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12517 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12518 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12519 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12520 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12521 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12522 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12523 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12524 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12525 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12526 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12527 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12528 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12529 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12530 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12531 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12532 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12533 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12534 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12535 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12536 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12537 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12538 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12539 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12540 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12541 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12542 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12543 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12544 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"`'
12545 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12546 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12547 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12548 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12549 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12550 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12551 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12552 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12553 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12554 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12555 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12556 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12557 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12558 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12559 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12560 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12561 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12562 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12563 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12564 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12565 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12566 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12567 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12568 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12569 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12570 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12571 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12572 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12573 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12574 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12575 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12576 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12577 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12578 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12579 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12580 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12581 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12582 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12583 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12584 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12585 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12586 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12587 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12588 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12589 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12590 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12591 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12592 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12593 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12594 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12595 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12596 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12597 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12598 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12599 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12600 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12601 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12602 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12603 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12604 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12605 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12606 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12607 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12608 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12609 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12610 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12611 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12612 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12613 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12614 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12615 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12616
12617 LTCC='$LTCC'
12618 LTCFLAGS='$LTCFLAGS'
12619 compiler='$compiler_DEFAULT'
12620
12621 # A function that is used when there is no print builtin or printf.
12622 func_fallback_echo ()
12623 {
12624 eval 'cat <<_LTECHO_EOF
12625 \$1
12626 _LTECHO_EOF'
12627 }
12628
12629 # Quote evaled strings.
12630 for var in SHELL \
12631 ECHO \
12632 SED \
12633 GREP \
12634 EGREP \
12635 FGREP \
12636 LD \
12637 NM \
12638 LN_S \
12639 lt_SP2NL \
12640 lt_NL2SP \
12641 reload_flag \
12642 OBJDUMP \
12643 deplibs_check_method \
12644 file_magic_cmd \
12645 AR \
12646 AR_FLAGS \
12647 STRIP \
12648 RANLIB \
12649 CC \
12650 CFLAGS \
12651 compiler \
12652 lt_cv_sys_global_symbol_pipe \
12653 lt_cv_sys_global_symbol_to_cdecl \
12654 lt_cv_sys_global_symbol_to_c_name_address \
12655 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12656 lt_prog_compiler_no_builtin_flag \
12657 lt_prog_compiler_wl \
12658 lt_prog_compiler_pic \
12659 lt_prog_compiler_static \
12660 lt_cv_prog_compiler_c_o \
12661 need_locks \
12662 DSYMUTIL \
12663 NMEDIT \
12664 LIPO \
12665 OTOOL \
12666 OTOOL64 \
12667 shrext_cmds \
12668 export_dynamic_flag_spec \
12669 whole_archive_flag_spec \
12670 compiler_needs_object \
12671 with_gnu_ld \
12672 allow_undefined_flag \
12673 no_undefined_flag \
12674 hardcode_libdir_flag_spec \
12675 hardcode_libdir_flag_spec_ld \
12676 hardcode_libdir_separator \
12677 fix_srcfile_path \
12678 exclude_expsyms \
12679 include_expsyms \
12680 file_list_spec \
12681 variables_saved_for_relink \
12682 libname_spec \
12683 library_names_spec \
12684 soname_spec \
12685 install_override_mode \
12686 finish_eval \
12687 old_striplib \
12688 striplib; do
12689 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12690 *[\\\\\\\`\\"\\\$]*)
12691 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12692 ;;
12693 *)
12694 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12695 ;;
12696 esac
12697 done
12698
12699 # Double-quote double-evaled strings.
12700 for var in reload_cmds \
12701 old_postinstall_cmds \
12702 old_postuninstall_cmds \
12703 old_archive_cmds \
12704 extract_expsyms_cmds \
12705 old_archive_from_new_cmds \
12706 old_archive_from_expsyms_cmds \
12707 archive_cmds \
12708 archive_expsym_cmds \
12709 module_cmds \
12710 module_expsym_cmds \
12711 export_symbols_cmds \
12712 prelink_cmds \
12713 postinstall_cmds \
12714 postuninstall_cmds \
12715 finish_cmds \
12716 sys_lib_search_path_spec \
12717 sys_lib_dlsearch_path_spec; do
12718 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12719 *[\\\\\\\`\\"\\\$]*)
12720 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12721 ;;
12722 *)
12723 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12724 ;;
12725 esac
12726 done
12727
12728 ac_aux_dir='$ac_aux_dir'
12729 xsi_shell='$xsi_shell'
12730 lt_shell_append='$lt_shell_append'
12731
12732 # See if we are running on zsh, and set the options which allow our
12733 # commands through without removal of \ escapes INIT.
12734 if test -n "\${ZSH_VERSION+set}" ; then
12735 setopt NO_GLOB_SUBST
12736 fi
12737
12738
12739 PACKAGE='$PACKAGE'
12740 VERSION='$VERSION'
12741 TIMESTAMP='$TIMESTAMP'
12742 RM='$RM'
12743 ofile='$ofile'
12744
12745
12746
12747
12748 _ACEOF
12749
12750 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12751
12752 # Handling of arguments.
12753 for ac_config_target in $ac_config_targets
12754 do
12755 case $ac_config_target in
12756 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
12757 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
12758 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12759 "Makefile.sim") CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
12760 "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
12761 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
12762 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
12763 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
12764
12765 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12766 esac
12767 done
12768
12769
12770 # If the user did not use the arguments to specify the items to instantiate,
12771 # then the envvar interface is used. Set only those that are not.
12772 # We use the long form for the default assignment because of an extremely
12773 # bizarre bug on SunOS 4.1.3.
12774 if $ac_need_defaults; then
12775 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12776 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12777 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12778 fi
12779
12780 # Have a temporary directory for convenience. Make it in the build tree
12781 # simply because there is no reason against having it here, and in addition,
12782 # creating and moving files from /tmp can sometimes cause problems.
12783 # Hook for its removal unless debugging.
12784 # Note that there is a small window in which the directory will not be cleaned:
12785 # after its creation but before its name has been assigned to `$tmp'.
12786 $debug ||
12787 {
12788 tmp= ac_tmp=
12789 trap 'exit_status=$?
12790 : "${ac_tmp:=$tmp}"
12791 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12792 ' 0
12793 trap 'as_fn_exit 1' 1 2 13 15
12794 }
12795 # Create a (secure) tmp directory for tmp files.
12796
12797 {
12798 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12799 test -d "$tmp"
12800 } ||
12801 {
12802 tmp=./conf$$-$RANDOM
12803 (umask 077 && mkdir "$tmp")
12804 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12805 ac_tmp=$tmp
12806
12807 # Set up the scripts for CONFIG_FILES section.
12808 # No need to generate them if there are no CONFIG_FILES.
12809 # This happens for instance with `./config.status config.h'.
12810 if test -n "$CONFIG_FILES"; then
12811
12812
12813 ac_cr=`echo X | tr X '\015'`
12814 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12815 # But we know of no other shell where ac_cr would be empty at this
12816 # point, so we can use a bashism as a fallback.
12817 if test "x$ac_cr" = x; then
12818 eval ac_cr=\$\'\\r\'
12819 fi
12820 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12821 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12822 ac_cs_awk_cr='\\r'
12823 else
12824 ac_cs_awk_cr=$ac_cr
12825 fi
12826
12827 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12828 _ACEOF
12829
12830
12831 {
12832 echo "cat >conf$$subs.awk <<_ACEOF" &&
12833 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12834 echo "_ACEOF"
12835 } >conf$$subs.sh ||
12836 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12837 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12838 ac_delim='%!_!# '
12839 for ac_last_try in false false false false false :; do
12840 . ./conf$$subs.sh ||
12841 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12842
12843 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12844 if test $ac_delim_n = $ac_delim_num; then
12845 break
12846 elif $ac_last_try; then
12847 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12848 else
12849 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12850 fi
12851 done
12852 rm -f conf$$subs.sh
12853
12854 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12855 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12856 _ACEOF
12857 sed -n '
12858 h
12859 s/^/S["/; s/!.*/"]=/
12860 p
12861 g
12862 s/^[^!]*!//
12863 :repl
12864 t repl
12865 s/'"$ac_delim"'$//
12866 t delim
12867 :nl
12868 h
12869 s/\(.\{148\}\)..*/\1/
12870 t more1
12871 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12872 p
12873 n
12874 b repl
12875 :more1
12876 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12877 p
12878 g
12879 s/.\{148\}//
12880 t nl
12881 :delim
12882 h
12883 s/\(.\{148\}\)..*/\1/
12884 t more2
12885 s/["\\]/\\&/g; s/^/"/; s/$/"/
12886 p
12887 b
12888 :more2
12889 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12890 p
12891 g
12892 s/.\{148\}//
12893 t delim
12894 ' <conf$$subs.awk | sed '
12895 /^[^""]/{
12896 N
12897 s/\n//
12898 }
12899 ' >>$CONFIG_STATUS || ac_write_fail=1
12900 rm -f conf$$subs.awk
12901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12902 _ACAWK
12903 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12904 for (key in S) S_is_set[key] = 1
12905 FS = "\a"
12906
12907 }
12908 {
12909 line = $ 0
12910 nfields = split(line, field, "@")
12911 substed = 0
12912 len = length(field[1])
12913 for (i = 2; i < nfields; i++) {
12914 key = field[i]
12915 keylen = length(key)
12916 if (S_is_set[key]) {
12917 value = S[key]
12918 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12919 len += length(value) + length(field[++i])
12920 substed = 1
12921 } else
12922 len += 1 + keylen
12923 }
12924
12925 print line
12926 }
12927
12928 _ACAWK
12929 _ACEOF
12930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12931 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12932 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12933 else
12934 cat
12935 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12936 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12937 _ACEOF
12938
12939 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12940 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12941 # trailing colons and then remove the whole line if VPATH becomes empty
12942 # (actually we leave an empty line to preserve line numbers).
12943 if test "x$srcdir" = x.; then
12944 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12945 h
12946 s///
12947 s/^/:/
12948 s/[ ]*$/:/
12949 s/:\$(srcdir):/:/g
12950 s/:\${srcdir}:/:/g
12951 s/:@srcdir@:/:/g
12952 s/^:*//
12953 s/:*$//
12954 x
12955 s/\(=[ ]*\).*/\1/
12956 G
12957 s/\n//
12958 s/^[^=]*=[ ]*$//
12959 }'
12960 fi
12961
12962 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12963 fi # test -n "$CONFIG_FILES"
12964
12965 # Set up the scripts for CONFIG_HEADERS section.
12966 # No need to generate them if there are no CONFIG_HEADERS.
12967 # This happens for instance with `./config.status Makefile'.
12968 if test -n "$CONFIG_HEADERS"; then
12969 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12970 BEGIN {
12971 _ACEOF
12972
12973 # Transform confdefs.h into an awk script `defines.awk', embedded as
12974 # here-document in config.status, that substitutes the proper values into
12975 # config.h.in to produce config.h.
12976
12977 # Create a delimiter string that does not exist in confdefs.h, to ease
12978 # handling of long lines.
12979 ac_delim='%!_!# '
12980 for ac_last_try in false false :; do
12981 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12982 if test -z "$ac_tt"; then
12983 break
12984 elif $ac_last_try; then
12985 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12986 else
12987 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12988 fi
12989 done
12990
12991 # For the awk script, D is an array of macro values keyed by name,
12992 # likewise P contains macro parameters if any. Preserve backslash
12993 # newline sequences.
12994
12995 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12996 sed -n '
12997 s/.\{148\}/&'"$ac_delim"'/g
12998 t rset
12999 :rset
13000 s/^[ ]*#[ ]*define[ ][ ]*/ /
13001 t def
13002 d
13003 :def
13004 s/\\$//
13005 t bsnl
13006 s/["\\]/\\&/g
13007 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13008 D["\1"]=" \3"/p
13009 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13010 d
13011 :bsnl
13012 s/["\\]/\\&/g
13013 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13014 D["\1"]=" \3\\\\\\n"\\/p
13015 t cont
13016 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13017 t cont
13018 d
13019 :cont
13020 n
13021 s/.\{148\}/&'"$ac_delim"'/g
13022 t clear
13023 :clear
13024 s/\\$//
13025 t bsnlc
13026 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13027 d
13028 :bsnlc
13029 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13030 b cont
13031 ' <confdefs.h | sed '
13032 s/'"$ac_delim"'/"\\\
13033 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13034
13035 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13036 for (key in D) D_is_set[key] = 1
13037 FS = "\a"
13038 }
13039 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13040 line = \$ 0
13041 split(line, arg, " ")
13042 if (arg[1] == "#") {
13043 defundef = arg[2]
13044 mac1 = arg[3]
13045 } else {
13046 defundef = substr(arg[1], 2)
13047 mac1 = arg[2]
13048 }
13049 split(mac1, mac2, "(") #)
13050 macro = mac2[1]
13051 prefix = substr(line, 1, index(line, defundef) - 1)
13052 if (D_is_set[macro]) {
13053 # Preserve the white space surrounding the "#".
13054 print prefix "define", macro P[macro] D[macro]
13055 next
13056 } else {
13057 # Replace #undef with comments. This is necessary, for example,
13058 # in the case of _POSIX_SOURCE, which is predefined and required
13059 # on some systems where configure will not decide to define it.
13060 if (defundef == "undef") {
13061 print "/*", prefix defundef, macro, "*/"
13062 next
13063 }
13064 }
13065 }
13066 { print }
13067 _ACAWK
13068 _ACEOF
13069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13070 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13071 fi # test -n "$CONFIG_HEADERS"
13072
13073
13074 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13075 shift
13076 for ac_tag
13077 do
13078 case $ac_tag in
13079 :[FHLC]) ac_mode=$ac_tag; continue;;
13080 esac
13081 case $ac_mode$ac_tag in
13082 :[FHL]*:*);;
13083 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13084 :[FH]-) ac_tag=-:-;;
13085 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13086 esac
13087 ac_save_IFS=$IFS
13088 IFS=:
13089 set x $ac_tag
13090 IFS=$ac_save_IFS
13091 shift
13092 ac_file=$1
13093 shift
13094
13095 case $ac_mode in
13096 :L) ac_source=$1;;
13097 :[FH])
13098 ac_file_inputs=
13099 for ac_f
13100 do
13101 case $ac_f in
13102 -) ac_f="$ac_tmp/stdin";;
13103 *) # Look for the file first in the build tree, then in the source tree
13104 # (if the path is not absolute). The absolute path cannot be DOS-style,
13105 # because $ac_f cannot contain `:'.
13106 test -f "$ac_f" ||
13107 case $ac_f in
13108 [\\/$]*) false;;
13109 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13110 esac ||
13111 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13112 esac
13113 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13114 as_fn_append ac_file_inputs " '$ac_f'"
13115 done
13116
13117 # Let's still pretend it is `configure' which instantiates (i.e., don't
13118 # use $as_me), people would be surprised to read:
13119 # /* config.h. Generated by config.status. */
13120 configure_input='Generated from '`
13121 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13122 `' by configure.'
13123 if test x"$ac_file" != x-; then
13124 configure_input="$ac_file. $configure_input"
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13126 $as_echo "$as_me: creating $ac_file" >&6;}
13127 fi
13128 # Neutralize special characters interpreted by sed in replacement strings.
13129 case $configure_input in #(
13130 *\&* | *\|* | *\\* )
13131 ac_sed_conf_input=`$as_echo "$configure_input" |
13132 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13133 *) ac_sed_conf_input=$configure_input;;
13134 esac
13135
13136 case $ac_tag in
13137 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13138 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13139 esac
13140 ;;
13141 esac
13142
13143 ac_dir=`$as_dirname -- "$ac_file" ||
13144 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13145 X"$ac_file" : 'X\(//\)[^/]' \| \
13146 X"$ac_file" : 'X\(//\)$' \| \
13147 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13148 $as_echo X"$ac_file" |
13149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13150 s//\1/
13151 q
13152 }
13153 /^X\(\/\/\)[^/].*/{
13154 s//\1/
13155 q
13156 }
13157 /^X\(\/\/\)$/{
13158 s//\1/
13159 q
13160 }
13161 /^X\(\/\).*/{
13162 s//\1/
13163 q
13164 }
13165 s/.*/./; q'`
13166 as_dir="$ac_dir"; as_fn_mkdir_p
13167 ac_builddir=.
13168
13169 case "$ac_dir" in
13170 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13171 *)
13172 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13173 # A ".." for each directory in $ac_dir_suffix.
13174 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13175 case $ac_top_builddir_sub in
13176 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13177 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13178 esac ;;
13179 esac
13180 ac_abs_top_builddir=$ac_pwd
13181 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13182 # for backward compatibility:
13183 ac_top_builddir=$ac_top_build_prefix
13184
13185 case $srcdir in
13186 .) # We are building in place.
13187 ac_srcdir=.
13188 ac_top_srcdir=$ac_top_builddir_sub
13189 ac_abs_top_srcdir=$ac_pwd ;;
13190 [\\/]* | ?:[\\/]* ) # Absolute name.
13191 ac_srcdir=$srcdir$ac_dir_suffix;
13192 ac_top_srcdir=$srcdir
13193 ac_abs_top_srcdir=$srcdir ;;
13194 *) # Relative name.
13195 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13196 ac_top_srcdir=$ac_top_build_prefix$srcdir
13197 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13198 esac
13199 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13200
13201
13202 case $ac_mode in
13203 :F)
13204 #
13205 # CONFIG_FILE
13206 #
13207
13208 case $INSTALL in
13209 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13210 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13211 esac
13212 _ACEOF
13213
13214 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13215 # If the template does not know about datarootdir, expand it.
13216 # FIXME: This hack should be removed a few years after 2.60.
13217 ac_datarootdir_hack=; ac_datarootdir_seen=
13218 ac_sed_dataroot='
13219 /datarootdir/ {
13220 p
13221 q
13222 }
13223 /@datadir@/p
13224 /@docdir@/p
13225 /@infodir@/p
13226 /@localedir@/p
13227 /@mandir@/p'
13228 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13229 *datarootdir*) ac_datarootdir_seen=yes;;
13230 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13232 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13233 _ACEOF
13234 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13235 ac_datarootdir_hack='
13236 s&@datadir@&$datadir&g
13237 s&@docdir@&$docdir&g
13238 s&@infodir@&$infodir&g
13239 s&@localedir@&$localedir&g
13240 s&@mandir@&$mandir&g
13241 s&\\\${datarootdir}&$datarootdir&g' ;;
13242 esac
13243 _ACEOF
13244
13245 # Neutralize VPATH when `$srcdir' = `.'.
13246 # Shell code in configure.ac might set extrasub.
13247 # FIXME: do we really want to maintain this feature?
13248 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13249 ac_sed_extra="$ac_vpsub
13250 $extrasub
13251 _ACEOF
13252 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13253 :t
13254 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13255 s|@configure_input@|$ac_sed_conf_input|;t t
13256 s&@top_builddir@&$ac_top_builddir_sub&;t t
13257 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13258 s&@srcdir@&$ac_srcdir&;t t
13259 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13260 s&@top_srcdir@&$ac_top_srcdir&;t t
13261 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13262 s&@builddir@&$ac_builddir&;t t
13263 s&@abs_builddir@&$ac_abs_builddir&;t t
13264 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13265 s&@INSTALL@&$ac_INSTALL&;t t
13266 $ac_datarootdir_hack
13267 "
13268 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13269 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13270
13271 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13272 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13273 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13274 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13276 which seems to be undefined. Please make sure it is defined" >&5
13277 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13278 which seems to be undefined. Please make sure it is defined" >&2;}
13279
13280 rm -f "$ac_tmp/stdin"
13281 case $ac_file in
13282 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13283 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13284 esac \
13285 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13286 ;;
13287 :H)
13288 #
13289 # CONFIG_HEADER
13290 #
13291 if test x"$ac_file" != x-; then
13292 {
13293 $as_echo "/* $configure_input */" \
13294 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13295 } >"$ac_tmp/config.h" \
13296 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13297 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13299 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13300 else
13301 rm -f "$ac_file"
13302 mv "$ac_tmp/config.h" "$ac_file" \
13303 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13304 fi
13305 else
13306 $as_echo "/* $configure_input */" \
13307 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13308 || as_fn_error $? "could not create -" "$LINENO" 5
13309 fi
13310 ;;
13311
13312 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13313 $as_echo "$as_me: executing $ac_file commands" >&6;}
13314 ;;
13315 esac
13316
13317
13318 case $ac_file$ac_mode in
13319 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
13320 "libtool":C)
13321
13322 # See if we are running on zsh, and set the options which allow our
13323 # commands through without removal of \ escapes.
13324 if test -n "${ZSH_VERSION+set}" ; then
13325 setopt NO_GLOB_SUBST
13326 fi
13327
13328 cfgfile="${ofile}T"
13329 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13330 $RM "$cfgfile"
13331
13332 cat <<_LT_EOF >> "$cfgfile"
13333 #! $SHELL
13334
13335 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13336 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13337 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13338 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13339 #
13340 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13341 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
13342 # Written by Gordon Matzigkeit, 1996
13343 #
13344 # This file is part of GNU Libtool.
13345 #
13346 # GNU Libtool is free software; you can redistribute it and/or
13347 # modify it under the terms of the GNU General Public License as
13348 # published by the Free Software Foundation; either version 2 of
13349 # the License, or (at your option) any later version.
13350 #
13351 # As a special exception to the GNU General Public License,
13352 # if you distribute this file as part of a program or library that
13353 # is built using GNU Libtool, you may include this file under the
13354 # same distribution terms that you use for the rest of that program.
13355 #
13356 # GNU Libtool is distributed in the hope that it will be useful,
13357 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13358 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13359 # GNU General Public License for more details.
13360 #
13361 # You should have received a copy of the GNU General Public License
13362 # along with GNU Libtool; see the file COPYING. If not, a copy
13363 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13364 # obtained by writing to the Free Software Foundation, Inc.,
13365 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13366
13367
13368 # The names of the tagged configurations supported by this script.
13369 available_tags=""
13370
13371 # ### BEGIN LIBTOOL CONFIG
13372
13373 # Which release of libtool.m4 was used?
13374 macro_version=$macro_version
13375 macro_revision=$macro_revision
13376
13377 # Whether or not to build shared libraries.
13378 build_libtool_libs=$enable_shared
13379
13380 # Whether or not to build static libraries.
13381 build_old_libs=$enable_static
13382
13383 # What type of objects to build.
13384 pic_mode=$pic_mode
13385
13386 # Whether or not to optimize for fast installation.
13387 fast_install=$enable_fast_install
13388
13389 # Shell to use when invoking shell scripts.
13390 SHELL=$lt_SHELL
13391
13392 # An echo program that protects backslashes.
13393 ECHO=$lt_ECHO
13394
13395 # The host system.
13396 host_alias=$host_alias
13397 host=$host
13398 host_os=$host_os
13399
13400 # The build system.
13401 build_alias=$build_alias
13402 build=$build
13403 build_os=$build_os
13404
13405 # A sed program that does not truncate output.
13406 SED=$lt_SED
13407
13408 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13409 Xsed="\$SED -e 1s/^X//"
13410
13411 # A grep program that handles long lines.
13412 GREP=$lt_GREP
13413
13414 # An ERE matcher.
13415 EGREP=$lt_EGREP
13416
13417 # A literal string matcher.
13418 FGREP=$lt_FGREP
13419
13420 # A BSD- or MS-compatible name lister.
13421 NM=$lt_NM
13422
13423 # Whether we need soft or hard links.
13424 LN_S=$lt_LN_S
13425
13426 # What is the maximum length of a command?
13427 max_cmd_len=$max_cmd_len
13428
13429 # Object file suffix (normally "o").
13430 objext=$ac_objext
13431
13432 # Executable file suffix (normally "").
13433 exeext=$exeext
13434
13435 # whether the shell understands "unset".
13436 lt_unset=$lt_unset
13437
13438 # turn spaces into newlines.
13439 SP2NL=$lt_lt_SP2NL
13440
13441 # turn newlines into spaces.
13442 NL2SP=$lt_lt_NL2SP
13443
13444 # An object symbol dumper.
13445 OBJDUMP=$lt_OBJDUMP
13446
13447 # Method to check whether dependent libraries are shared objects.
13448 deplibs_check_method=$lt_deplibs_check_method
13449
13450 # Command to use when deplibs_check_method == "file_magic".
13451 file_magic_cmd=$lt_file_magic_cmd
13452
13453 # The archiver.
13454 AR=$lt_AR
13455 AR_FLAGS=$lt_AR_FLAGS
13456
13457 # A symbol stripping program.
13458 STRIP=$lt_STRIP
13459
13460 # Commands used to install an old-style archive.
13461 RANLIB=$lt_RANLIB
13462 old_postinstall_cmds=$lt_old_postinstall_cmds
13463 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13464
13465 # Whether to use a lock for old archive extraction.
13466 lock_old_archive_extraction=$lock_old_archive_extraction
13467
13468 # A C compiler.
13469 LTCC=$lt_CC
13470
13471 # LTCC compiler flags.
13472 LTCFLAGS=$lt_CFLAGS
13473
13474 # Take the output of nm and produce a listing of raw symbols and C names.
13475 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13476
13477 # Transform the output of nm in a proper C declaration.
13478 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13479
13480 # Transform the output of nm in a C name address pair.
13481 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13482
13483 # Transform the output of nm in a C name address pair when lib prefix is needed.
13484 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13485
13486 # The name of the directory that contains temporary libtool files.
13487 objdir=$objdir
13488
13489 # Used to examine libraries when file_magic_cmd begins with "file".
13490 MAGIC_CMD=$MAGIC_CMD
13491
13492 # Must we lock files when doing compilation?
13493 need_locks=$lt_need_locks
13494
13495 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13496 DSYMUTIL=$lt_DSYMUTIL
13497
13498 # Tool to change global to local symbols on Mac OS X.
13499 NMEDIT=$lt_NMEDIT
13500
13501 # Tool to manipulate fat objects and archives on Mac OS X.
13502 LIPO=$lt_LIPO
13503
13504 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13505 OTOOL=$lt_OTOOL
13506
13507 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13508 OTOOL64=$lt_OTOOL64
13509
13510 # Old archive suffix (normally "a").
13511 libext=$libext
13512
13513 # Shared library suffix (normally ".so").
13514 shrext_cmds=$lt_shrext_cmds
13515
13516 # The commands to extract the exported symbol list from a shared archive.
13517 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13518
13519 # Variables whose values should be saved in libtool wrapper scripts and
13520 # restored at link time.
13521 variables_saved_for_relink=$lt_variables_saved_for_relink
13522
13523 # Do we need the "lib" prefix for modules?
13524 need_lib_prefix=$need_lib_prefix
13525
13526 # Do we need a version for libraries?
13527 need_version=$need_version
13528
13529 # Library versioning type.
13530 version_type=$version_type
13531
13532 # Shared library runtime path variable.
13533 runpath_var=$runpath_var
13534
13535 # Shared library path variable.
13536 shlibpath_var=$shlibpath_var
13537
13538 # Is shlibpath searched before the hard-coded library search path?
13539 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13540
13541 # Format of library name prefix.
13542 libname_spec=$lt_libname_spec
13543
13544 # List of archive names. First name is the real one, the rest are links.
13545 # The last name is the one that the linker finds with -lNAME
13546 library_names_spec=$lt_library_names_spec
13547
13548 # The coded name of the library, if different from the real name.
13549 soname_spec=$lt_soname_spec
13550
13551 # Permission mode override for installation of shared libraries.
13552 install_override_mode=$lt_install_override_mode
13553
13554 # Command to use after installation of a shared archive.
13555 postinstall_cmds=$lt_postinstall_cmds
13556
13557 # Command to use after uninstallation of a shared archive.
13558 postuninstall_cmds=$lt_postuninstall_cmds
13559
13560 # Commands used to finish a libtool library installation in a directory.
13561 finish_cmds=$lt_finish_cmds
13562
13563 # As "finish_cmds", except a single script fragment to be evaled but
13564 # not shown.
13565 finish_eval=$lt_finish_eval
13566
13567 # Whether we should hardcode library paths into libraries.
13568 hardcode_into_libs=$hardcode_into_libs
13569
13570 # Compile-time system search path for libraries.
13571 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13572
13573 # Run-time system search path for libraries.
13574 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13575
13576 # Whether dlopen is supported.
13577 dlopen_support=$enable_dlopen
13578
13579 # Whether dlopen of programs is supported.
13580 dlopen_self=$enable_dlopen_self
13581
13582 # Whether dlopen of statically linked programs is supported.
13583 dlopen_self_static=$enable_dlopen_self_static
13584
13585 # Commands to strip libraries.
13586 old_striplib=$lt_old_striplib
13587 striplib=$lt_striplib
13588
13589
13590 # The linker used to build libraries.
13591 LD=$lt_LD
13592
13593 # How to create reloadable object files.
13594 reload_flag=$lt_reload_flag
13595 reload_cmds=$lt_reload_cmds
13596
13597 # Commands used to build an old-style archive.
13598 old_archive_cmds=$lt_old_archive_cmds
13599
13600 # A language specific compiler.
13601 CC=$lt_compiler
13602
13603 # Is the compiler the GNU compiler?
13604 with_gcc=$GCC
13605
13606 # Compiler flag to turn off builtin functions.
13607 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13608
13609 # How to pass a linker flag through the compiler.
13610 wl=$lt_lt_prog_compiler_wl
13611
13612 # Additional compiler flags for building library objects.
13613 pic_flag=$lt_lt_prog_compiler_pic
13614
13615 # Compiler flag to prevent dynamic linking.
13616 link_static_flag=$lt_lt_prog_compiler_static
13617
13618 # Does compiler simultaneously support -c and -o options?
13619 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13620
13621 # Whether or not to add -lc for building shared libraries.
13622 build_libtool_need_lc=$archive_cmds_need_lc
13623
13624 # Whether or not to disallow shared libs when runtime libs are static.
13625 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13626
13627 # Compiler flag to allow reflexive dlopens.
13628 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13629
13630 # Compiler flag to generate shared objects directly from archives.
13631 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13632
13633 # Whether the compiler copes with passing no objects directly.
13634 compiler_needs_object=$lt_compiler_needs_object
13635
13636 # Create an old-style archive from a shared archive.
13637 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13638
13639 # Create a temporary old-style archive to link instead of a shared archive.
13640 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13641
13642 # Commands used to build a shared archive.
13643 archive_cmds=$lt_archive_cmds
13644 archive_expsym_cmds=$lt_archive_expsym_cmds
13645
13646 # Commands used to build a loadable module if different from building
13647 # a shared archive.
13648 module_cmds=$lt_module_cmds
13649 module_expsym_cmds=$lt_module_expsym_cmds
13650
13651 # Whether we are building with GNU ld or not.
13652 with_gnu_ld=$lt_with_gnu_ld
13653
13654 # Flag that allows shared libraries with undefined symbols to be built.
13655 allow_undefined_flag=$lt_allow_undefined_flag
13656
13657 # Flag that enforces no undefined symbols.
13658 no_undefined_flag=$lt_no_undefined_flag
13659
13660 # Flag to hardcode \$libdir into a binary during linking.
13661 # This must work even if \$libdir does not exist
13662 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13663
13664 # If ld is used when linking, flag to hardcode \$libdir into a binary
13665 # during linking. This must work even if \$libdir does not exist.
13666 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13667
13668 # Whether we need a single "-rpath" flag with a separated argument.
13669 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13670
13671 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13672 # DIR into the resulting binary.
13673 hardcode_direct=$hardcode_direct
13674
13675 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13676 # DIR into the resulting binary and the resulting library dependency is
13677 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13678 # library is relocated.
13679 hardcode_direct_absolute=$hardcode_direct_absolute
13680
13681 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13682 # into the resulting binary.
13683 hardcode_minus_L=$hardcode_minus_L
13684
13685 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13686 # into the resulting binary.
13687 hardcode_shlibpath_var=$hardcode_shlibpath_var
13688
13689 # Set to "yes" if building a shared library automatically hardcodes DIR
13690 # into the library and all subsequent libraries and executables linked
13691 # against it.
13692 hardcode_automatic=$hardcode_automatic
13693
13694 # Set to yes if linker adds runtime paths of dependent libraries
13695 # to runtime path list.
13696 inherit_rpath=$inherit_rpath
13697
13698 # Whether libtool must link a program against all its dependency libraries.
13699 link_all_deplibs=$link_all_deplibs
13700
13701 # Fix the shell variable \$srcfile for the compiler.
13702 fix_srcfile_path=$lt_fix_srcfile_path
13703
13704 # Set to "yes" if exported symbols are required.
13705 always_export_symbols=$always_export_symbols
13706
13707 # The commands to list exported symbols.
13708 export_symbols_cmds=$lt_export_symbols_cmds
13709
13710 # Symbols that should not be listed in the preloaded symbols.
13711 exclude_expsyms=$lt_exclude_expsyms
13712
13713 # Symbols that must always be exported.
13714 include_expsyms=$lt_include_expsyms
13715
13716 # Commands necessary for linking programs (against libraries) with templates.
13717 prelink_cmds=$lt_prelink_cmds
13718
13719 # Specify filename containing input files.
13720 file_list_spec=$lt_file_list_spec
13721
13722 # How to hardcode a shared library path into an executable.
13723 hardcode_action=$hardcode_action
13724
13725 # ### END LIBTOOL CONFIG
13726
13727 _LT_EOF
13728
13729 case $host_os in
13730 aix3*)
13731 cat <<\_LT_EOF >> "$cfgfile"
13732 # AIX sometimes has problems with the GCC collect2 program. For some
13733 # reason, if we set the COLLECT_NAMES environment variable, the problems
13734 # vanish in a puff of smoke.
13735 if test "X${COLLECT_NAMES+set}" != Xset; then
13736 COLLECT_NAMES=
13737 export COLLECT_NAMES
13738 fi
13739 _LT_EOF
13740 ;;
13741 esac
13742
13743
13744 ltmain="$ac_aux_dir/ltmain.sh"
13745
13746
13747 # We use sed instead of cat because bash on DJGPP gets confused if
13748 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13749 # text mode, it properly converts lines to CR/LF. This bash problem
13750 # is reportedly fixed, but why not run on old versions too?
13751 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13752 || (rm -f "$cfgfile"; exit 1)
13753
13754 case $xsi_shell in
13755 yes)
13756 cat << \_LT_EOF >> "$cfgfile"
13757
13758 # func_dirname file append nondir_replacement
13759 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13760 # otherwise set result to NONDIR_REPLACEMENT.
13761 func_dirname ()
13762 {
13763 case ${1} in
13764 */*) func_dirname_result="${1%/*}${2}" ;;
13765 * ) func_dirname_result="${3}" ;;
13766 esac
13767 }
13768
13769 # func_basename file
13770 func_basename ()
13771 {
13772 func_basename_result="${1##*/}"
13773 }
13774
13775 # func_dirname_and_basename file append nondir_replacement
13776 # perform func_basename and func_dirname in a single function
13777 # call:
13778 # dirname: Compute the dirname of FILE. If nonempty,
13779 # add APPEND to the result, otherwise set result
13780 # to NONDIR_REPLACEMENT.
13781 # value returned in "$func_dirname_result"
13782 # basename: Compute filename of FILE.
13783 # value retuned in "$func_basename_result"
13784 # Implementation must be kept synchronized with func_dirname
13785 # and func_basename. For efficiency, we do not delegate to
13786 # those functions but instead duplicate the functionality here.
13787 func_dirname_and_basename ()
13788 {
13789 case ${1} in
13790 */*) func_dirname_result="${1%/*}${2}" ;;
13791 * ) func_dirname_result="${3}" ;;
13792 esac
13793 func_basename_result="${1##*/}"
13794 }
13795
13796 # func_stripname prefix suffix name
13797 # strip PREFIX and SUFFIX off of NAME.
13798 # PREFIX and SUFFIX must not contain globbing or regex special
13799 # characters, hashes, percent signs, but SUFFIX may contain a leading
13800 # dot (in which case that matches only a dot).
13801 func_stripname ()
13802 {
13803 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13804 # positional parameters, so assign one to ordinary parameter first.
13805 func_stripname_result=${3}
13806 func_stripname_result=${func_stripname_result#"${1}"}
13807 func_stripname_result=${func_stripname_result%"${2}"}
13808 }
13809
13810 # func_opt_split
13811 func_opt_split ()
13812 {
13813 func_opt_split_opt=${1%%=*}
13814 func_opt_split_arg=${1#*=}
13815 }
13816
13817 # func_lo2o object
13818 func_lo2o ()
13819 {
13820 case ${1} in
13821 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13822 *) func_lo2o_result=${1} ;;
13823 esac
13824 }
13825
13826 # func_xform libobj-or-source
13827 func_xform ()
13828 {
13829 func_xform_result=${1%.*}.lo
13830 }
13831
13832 # func_arith arithmetic-term...
13833 func_arith ()
13834 {
13835 func_arith_result=$(( $* ))
13836 }
13837
13838 # func_len string
13839 # STRING may not start with a hyphen.
13840 func_len ()
13841 {
13842 func_len_result=${#1}
13843 }
13844
13845 _LT_EOF
13846 ;;
13847 *) # Bourne compatible functions.
13848 cat << \_LT_EOF >> "$cfgfile"
13849
13850 # func_dirname file append nondir_replacement
13851 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13852 # otherwise set result to NONDIR_REPLACEMENT.
13853 func_dirname ()
13854 {
13855 # Extract subdirectory from the argument.
13856 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13857 if test "X$func_dirname_result" = "X${1}"; then
13858 func_dirname_result="${3}"
13859 else
13860 func_dirname_result="$func_dirname_result${2}"
13861 fi
13862 }
13863
13864 # func_basename file
13865 func_basename ()
13866 {
13867 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13868 }
13869
13870
13871 # func_stripname prefix suffix name
13872 # strip PREFIX and SUFFIX off of NAME.
13873 # PREFIX and SUFFIX must not contain globbing or regex special
13874 # characters, hashes, percent signs, but SUFFIX may contain a leading
13875 # dot (in which case that matches only a dot).
13876 # func_strip_suffix prefix name
13877 func_stripname ()
13878 {
13879 case ${2} in
13880 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13881 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13882 esac
13883 }
13884
13885 # sed scripts:
13886 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13887 my_sed_long_arg='1s/^-[^=]*=//'
13888
13889 # func_opt_split
13890 func_opt_split ()
13891 {
13892 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13893 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13894 }
13895
13896 # func_lo2o object
13897 func_lo2o ()
13898 {
13899 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13900 }
13901
13902 # func_xform libobj-or-source
13903 func_xform ()
13904 {
13905 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13906 }
13907
13908 # func_arith arithmetic-term...
13909 func_arith ()
13910 {
13911 func_arith_result=`expr "$@"`
13912 }
13913
13914 # func_len string
13915 # STRING may not start with a hyphen.
13916 func_len ()
13917 {
13918 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13919 }
13920
13921 _LT_EOF
13922 esac
13923
13924 case $lt_shell_append in
13925 yes)
13926 cat << \_LT_EOF >> "$cfgfile"
13927
13928 # func_append var value
13929 # Append VALUE to the end of shell variable VAR.
13930 func_append ()
13931 {
13932 eval "$1+=\$2"
13933 }
13934 _LT_EOF
13935 ;;
13936 *)
13937 cat << \_LT_EOF >> "$cfgfile"
13938
13939 # func_append var value
13940 # Append VALUE to the end of shell variable VAR.
13941 func_append ()
13942 {
13943 eval "$1=\$$1\$2"
13944 }
13945
13946 _LT_EOF
13947 ;;
13948 esac
13949
13950
13951 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13952 || (rm -f "$cfgfile"; exit 1)
13953
13954 mv -f "$cfgfile" "$ofile" ||
13955 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13956 chmod +x "$ofile"
13957
13958 ;;
13959 "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
13960 rm -f Makesim1.tmp Makesim2.tmp Makefile
13961 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
13962 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
13963 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
13964 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
13965 <Makefile.sim >Makefile
13966 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
13967 ;;
13968 "stamp-h":C) echo > stamp-h ;;
13969
13970 esac
13971 done # for ac_tag
13972
13973
13974 as_fn_exit 0
13975 _ACEOF
13976 ac_clean_files=$ac_clean_files_save
13977
13978 test $ac_write_fail = 0 ||
13979 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13980
13981
13982 # configure is writing to config.log, and then calls config.status.
13983 # config.status does its own redirection, appending to config.log.
13984 # Unfortunately, on DOS this fails, as config.log is still kept open
13985 # by configure, so config.status won't be able to write to it; its
13986 # output is simply discarded. So we exec the FD to /dev/null,
13987 # effectively closing config.log, so it can be properly (re)opened and
13988 # appended to by config.status. When coming back to configure, we
13989 # need to make the FD available again.
13990 if test "$no_create" != yes; then
13991 ac_cs_success=:
13992 ac_config_status_args=
13993 test "$silent" = yes &&
13994 ac_config_status_args="$ac_config_status_args --quiet"
13995 exec 5>/dev/null
13996 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13997 exec 5>>config.log
13998 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13999 # would make configure fail if this is the last instruction.
14000 $ac_cs_success || as_fn_exit 1
14001 fi
14002 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14004 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14005 fi
14006
14007