bfin: remove inline keyword
[xenomai-head.git] / configure
blob39eaac7c3f289ed5aefafc12cd19aef599407c52
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Xenomai 2.6.5.
5 # Report bugs to <xenomai@xenomai.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
176 esac
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192 else
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: xenomai@xenomai.org about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
283 exit 1
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
301 { eval $1=; unset $1;}
303 as_unset=as_fn_unset
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
310 return $1
311 } # as_fn_set_status
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
354 /^X\(\/\/\)$/{
355 s//\1/
358 /^X\(\/\).*/{
359 s//\1/
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
369 } # as_fn_mkdir_p
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
387 eval $1+=\$2
389 else
390 as_fn_append ()
392 eval $1=\$$1\$2
394 fi # as_fn_append
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
404 as_val=$(( $* ))
406 else
407 as_fn_arith ()
409 as_val=`expr "$@" || test $? -eq 1`
411 fi # as_fn_arith
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
458 /^X\/\(\/\/\)$/{
459 s//\1/
462 /^X\/\(\/\).*/{
463 s//\1/
466 s/.*/./; q'`
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
489 :lineno
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
521 ECHO_N='-n';;
522 esac
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
545 else
546 as_ln_s='cp -pR'
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
579 # Initializations.
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
590 # Identity of this package.
591 PACKAGE_NAME='Xenomai'
592 PACKAGE_TARNAME='xenomai'
593 PACKAGE_VERSION='2.6.5'
594 PACKAGE_STRING='Xenomai 2.6.5'
595 PACKAGE_BUGREPORT='xenomai@xenomai.org'
596 PACKAGE_URL=''
598 ac_unique_file="src/skins/native/task.c"
599 ac_default_prefix=/usr/xenomai
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 # include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 # include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 XENO_POSIX_WRAPPERS
641 CONFIG_STATUS_DEPENDENCIES
642 XENO_TEST_DIR
643 XENO_DLOPEN_CONSTRAINT
644 XENO_USER_APP_LDFLAGS
645 XENO_USER_APP_CFLAGS
646 XENO_USER_LDFLAGS
647 XENO_USER_CFLAGS
648 XENO_LIB_LDFLAGS
649 XENO_LIB_CFLAGS
650 XENO_HOST_STRING
651 XENO_BUILD_STRING
652 XENO_TARGET_ARCH
653 LATEX_MODE
654 LATEX_BATCHMODE
655 DOXYGEN_SHOW_INCLUDE_FILES
656 CONFIG_XENO_FAST_WRAP_FALSE
657 CONFIG_XENO_FAST_WRAP_TRUE
658 LD_FILE_OPTION
659 CONFIG_XENO_ASCIIDOC_FALSE
660 CONFIG_XENO_ASCIIDOC_TRUE
661 CONFIG_XENO_DOC_DOX_FALSE
662 CONFIG_XENO_DOC_DOX_TRUE
663 CONFIG_XENO_SHARED_FALSE
664 CONFIG_XENO_SHARED_TRUE
665 CONFIG_XENO_FASTSYNCH_FALSE
666 CONFIG_XENO_FASTSYNCH_TRUE
669 ASCIIDOC
670 DOXYGEN_HAVE_DOT
671 DOXYGEN
672 XENO_MAYBE_DOCDIR
673 OTOOL64
674 OTOOL
675 LIPO
676 NMEDIT
677 DSYMUTIL
678 MANIFEST_TOOL
679 RANLIB
680 ac_ct_AR
682 DLLTOOL
683 OBJDUMP
684 LN_S
686 ac_ct_DUMPBIN
687 DUMPBIN
689 FGREP
690 EGREP
691 GREP
693 LIBTOOL
694 XENO_TARGET_ARCH_X86_FALSE
695 XENO_TARGET_ARCH_X86_TRUE
696 LEXLIB
697 LEX_OUTPUT_ROOT
699 am__fastdepCCAS_FALSE
700 am__fastdepCCAS_TRUE
701 CCASDEPMODE
702 CCASFLAGS
703 CCAS
704 MAINT
705 MAINTAINER_MODE_FALSE
706 MAINTAINER_MODE_TRUE
707 am__fastdepCC_FALSE
708 am__fastdepCC_TRUE
709 CCDEPMODE
710 am__nodep
711 AMDEPBACKSLASH
712 AMDEP_FALSE
713 AMDEP_TRUE
714 am__quote
715 am__include
716 DEPDIR
717 am__untar
718 am__tar
719 AMTAR
720 am__leading_dot
721 SET_MAKE
723 mkdir_p
724 MKDIR_P
725 INSTALL_STRIP_PROGRAM
726 STRIP
727 install_sh
728 MAKEINFO
729 AUTOHEADER
730 AUTOMAKE
731 AUTOCONF
732 ACLOCAL
733 VERSION
734 PACKAGE
735 CYGPATH_W
736 am__isrc
737 CPPFLAGS_FOR_BUILD
738 CFLAGS_FOR_BUILD
739 BUILD_OBJEXT
740 BUILD_EXEEXT
741 CPP_FOR_BUILD
742 ac_ct_CC_FOR_BUILD
743 CC_FOR_BUILD
744 target_os
745 target_vendor
746 target_cpu
747 target
749 OBJEXT
750 EXEEXT
751 ac_ct_CC
752 CPPFLAGS
753 LDFLAGS
754 CFLAGS
756 INSTALL_DATA
757 INSTALL_SCRIPT
758 INSTALL_PROGRAM
759 host_os
760 host_vendor
761 host_cpu
762 host
763 build_os
764 build_vendor
765 build_cpu
766 build
767 target_alias
768 host_alias
769 build_alias
770 LIBS
771 ECHO_T
772 ECHO_N
773 ECHO_C
774 DEFS
775 mandir
776 localedir
777 libdir
778 psdir
779 pdfdir
780 dvidir
781 htmldir
782 infodir
783 docdir
784 oldincludedir
785 includedir
786 localstatedir
787 sharedstatedir
788 sysconfdir
789 datadir
790 datarootdir
791 libexecdir
792 sbindir
793 bindir
794 program_transform_name
795 prefix
796 exec_prefix
797 PACKAGE_URL
798 PACKAGE_BUGREPORT
799 PACKAGE_STRING
800 PACKAGE_VERSION
801 PACKAGE_TARNAME
802 PACKAGE_NAME
803 PATH_SEPARATOR
804 SHELL'
805 ac_subst_files=''
806 ac_user_opts='
807 enable_option_checking
808 with_cc
809 enable_dependency_tracking
810 enable_maintainer_mode
811 enable_shared
812 enable_static
813 with_pic
814 enable_fast_install
815 with_gnu_ld
816 with_sysroot
817 enable_libtool_lock
818 enable_debug
819 with_atomic_ops
820 enable_smp
821 enable_x86_sep
822 enable_x86_tsc
823 enable_arm_tsc
824 enable_arm_quirks
825 enable_doc_install
826 enable_dox_doc
827 enable_verbose_latex
828 enable_asciidoc
829 with___thread
830 with_testdir
831 enable_fortify
833 ac_precious_vars='build_alias
834 host_alias
835 target_alias
837 CFLAGS
838 LDFLAGS
839 LIBS
840 CPPFLAGS
842 CCAS
843 CCASFLAGS'
846 # Initialize some variables set by options.
847 ac_init_help=
848 ac_init_version=false
849 ac_unrecognized_opts=
850 ac_unrecognized_sep=
851 # The variables have the same names as the options, with
852 # dashes changed to underlines.
853 cache_file=/dev/null
854 exec_prefix=NONE
855 no_create=
856 no_recursion=
857 prefix=NONE
858 program_prefix=NONE
859 program_suffix=NONE
860 program_transform_name=s,x,x,
861 silent=
862 site=
863 srcdir=
864 verbose=
865 x_includes=NONE
866 x_libraries=NONE
868 # Installation directory options.
869 # These are left unexpanded so users can "make install exec_prefix=/foo"
870 # and all the variables that are supposed to be based on exec_prefix
871 # by default will actually change.
872 # Use braces instead of parens because sh, perl, etc. also accept them.
873 # (The list follows the same order as the GNU Coding Standards.)
874 bindir='${exec_prefix}/bin'
875 sbindir='${exec_prefix}/sbin'
876 libexecdir='${exec_prefix}/libexec'
877 datarootdir='${prefix}/share'
878 datadir='${datarootdir}'
879 sysconfdir='${prefix}/etc'
880 sharedstatedir='${prefix}/com'
881 localstatedir='${prefix}/var'
882 includedir='${prefix}/include'
883 oldincludedir='/usr/include'
884 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
885 infodir='${datarootdir}/info'
886 htmldir='${docdir}'
887 dvidir='${docdir}'
888 pdfdir='${docdir}'
889 psdir='${docdir}'
890 libdir='${exec_prefix}/lib'
891 localedir='${datarootdir}/locale'
892 mandir='${datarootdir}/man'
894 ac_prev=
895 ac_dashdash=
896 for ac_option
898 # If the previous option needs an argument, assign it.
899 if test -n "$ac_prev"; then
900 eval $ac_prev=\$ac_option
901 ac_prev=
902 continue
905 case $ac_option in
906 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
907 *=) ac_optarg= ;;
908 *) ac_optarg=yes ;;
909 esac
911 # Accept the important Cygnus configure options, so we can diagnose typos.
913 case $ac_dashdash$ac_option in
915 ac_dashdash=yes ;;
917 -bindir | --bindir | --bindi | --bind | --bin | --bi)
918 ac_prev=bindir ;;
919 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
920 bindir=$ac_optarg ;;
922 -build | --build | --buil | --bui | --bu)
923 ac_prev=build_alias ;;
924 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
925 build_alias=$ac_optarg ;;
927 -cache-file | --cache-file | --cache-fil | --cache-fi \
928 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
929 ac_prev=cache_file ;;
930 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
931 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
932 cache_file=$ac_optarg ;;
934 --config-cache | -C)
935 cache_file=config.cache ;;
937 -datadir | --datadir | --datadi | --datad)
938 ac_prev=datadir ;;
939 -datadir=* | --datadir=* | --datadi=* | --datad=*)
940 datadir=$ac_optarg ;;
942 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
943 | --dataroo | --dataro | --datar)
944 ac_prev=datarootdir ;;
945 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
946 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
947 datarootdir=$ac_optarg ;;
949 -disable-* | --disable-*)
950 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
951 # Reject names that are not valid shell variable names.
952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953 as_fn_error $? "invalid feature name: $ac_useropt"
954 ac_useropt_orig=$ac_useropt
955 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956 case $ac_user_opts in
958 "enable_$ac_useropt"
959 "*) ;;
960 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
961 ac_unrecognized_sep=', ';;
962 esac
963 eval enable_$ac_useropt=no ;;
965 -docdir | --docdir | --docdi | --doc | --do)
966 ac_prev=docdir ;;
967 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
968 docdir=$ac_optarg ;;
970 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
971 ac_prev=dvidir ;;
972 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
973 dvidir=$ac_optarg ;;
975 -enable-* | --enable-*)
976 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
977 # Reject names that are not valid shell variable names.
978 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
979 as_fn_error $? "invalid feature name: $ac_useropt"
980 ac_useropt_orig=$ac_useropt
981 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
982 case $ac_user_opts in
984 "enable_$ac_useropt"
985 "*) ;;
986 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
987 ac_unrecognized_sep=', ';;
988 esac
989 eval enable_$ac_useropt=\$ac_optarg ;;
991 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
992 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
993 | --exec | --exe | --ex)
994 ac_prev=exec_prefix ;;
995 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
996 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
997 | --exec=* | --exe=* | --ex=*)
998 exec_prefix=$ac_optarg ;;
1000 -gas | --gas | --ga | --g)
1001 # Obsolete; use --with-gas.
1002 with_gas=yes ;;
1004 -help | --help | --hel | --he | -h)
1005 ac_init_help=long ;;
1006 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1007 ac_init_help=recursive ;;
1008 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1009 ac_init_help=short ;;
1011 -host | --host | --hos | --ho)
1012 ac_prev=host_alias ;;
1013 -host=* | --host=* | --hos=* | --ho=*)
1014 host_alias=$ac_optarg ;;
1016 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1017 ac_prev=htmldir ;;
1018 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1019 | --ht=*)
1020 htmldir=$ac_optarg ;;
1022 -includedir | --includedir | --includedi | --included | --include \
1023 | --includ | --inclu | --incl | --inc)
1024 ac_prev=includedir ;;
1025 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1026 | --includ=* | --inclu=* | --incl=* | --inc=*)
1027 includedir=$ac_optarg ;;
1029 -infodir | --infodir | --infodi | --infod | --info | --inf)
1030 ac_prev=infodir ;;
1031 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1032 infodir=$ac_optarg ;;
1034 -libdir | --libdir | --libdi | --libd)
1035 ac_prev=libdir ;;
1036 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1037 libdir=$ac_optarg ;;
1039 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1040 | --libexe | --libex | --libe)
1041 ac_prev=libexecdir ;;
1042 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1043 | --libexe=* | --libex=* | --libe=*)
1044 libexecdir=$ac_optarg ;;
1046 -localedir | --localedir | --localedi | --localed | --locale)
1047 ac_prev=localedir ;;
1048 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1049 localedir=$ac_optarg ;;
1051 -localstatedir | --localstatedir | --localstatedi | --localstated \
1052 | --localstate | --localstat | --localsta | --localst | --locals)
1053 ac_prev=localstatedir ;;
1054 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1055 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1056 localstatedir=$ac_optarg ;;
1058 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1059 ac_prev=mandir ;;
1060 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1061 mandir=$ac_optarg ;;
1063 -nfp | --nfp | --nf)
1064 # Obsolete; use --without-fp.
1065 with_fp=no ;;
1067 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1068 | --no-cr | --no-c | -n)
1069 no_create=yes ;;
1071 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1072 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1073 no_recursion=yes ;;
1075 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1076 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1077 | --oldin | --oldi | --old | --ol | --o)
1078 ac_prev=oldincludedir ;;
1079 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1080 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1081 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1082 oldincludedir=$ac_optarg ;;
1084 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1085 ac_prev=prefix ;;
1086 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1087 prefix=$ac_optarg ;;
1089 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1090 | --program-pre | --program-pr | --program-p)
1091 ac_prev=program_prefix ;;
1092 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1093 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1094 program_prefix=$ac_optarg ;;
1096 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1097 | --program-suf | --program-su | --program-s)
1098 ac_prev=program_suffix ;;
1099 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1100 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1101 program_suffix=$ac_optarg ;;
1103 -program-transform-name | --program-transform-name \
1104 | --program-transform-nam | --program-transform-na \
1105 | --program-transform-n | --program-transform- \
1106 | --program-transform | --program-transfor \
1107 | --program-transfo | --program-transf \
1108 | --program-trans | --program-tran \
1109 | --progr-tra | --program-tr | --program-t)
1110 ac_prev=program_transform_name ;;
1111 -program-transform-name=* | --program-transform-name=* \
1112 | --program-transform-nam=* | --program-transform-na=* \
1113 | --program-transform-n=* | --program-transform-=* \
1114 | --program-transform=* | --program-transfor=* \
1115 | --program-transfo=* | --program-transf=* \
1116 | --program-trans=* | --program-tran=* \
1117 | --progr-tra=* | --program-tr=* | --program-t=*)
1118 program_transform_name=$ac_optarg ;;
1120 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1121 ac_prev=pdfdir ;;
1122 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1123 pdfdir=$ac_optarg ;;
1125 -psdir | --psdir | --psdi | --psd | --ps)
1126 ac_prev=psdir ;;
1127 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1128 psdir=$ac_optarg ;;
1130 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1131 | -silent | --silent | --silen | --sile | --sil)
1132 silent=yes ;;
1134 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1135 ac_prev=sbindir ;;
1136 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1137 | --sbi=* | --sb=*)
1138 sbindir=$ac_optarg ;;
1140 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1141 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1142 | --sharedst | --shareds | --shared | --share | --shar \
1143 | --sha | --sh)
1144 ac_prev=sharedstatedir ;;
1145 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1146 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1147 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1148 | --sha=* | --sh=*)
1149 sharedstatedir=$ac_optarg ;;
1151 -site | --site | --sit)
1152 ac_prev=site ;;
1153 -site=* | --site=* | --sit=*)
1154 site=$ac_optarg ;;
1156 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1157 ac_prev=srcdir ;;
1158 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1159 srcdir=$ac_optarg ;;
1161 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1162 | --syscon | --sysco | --sysc | --sys | --sy)
1163 ac_prev=sysconfdir ;;
1164 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1165 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1166 sysconfdir=$ac_optarg ;;
1168 -target | --target | --targe | --targ | --tar | --ta | --t)
1169 ac_prev=target_alias ;;
1170 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1171 target_alias=$ac_optarg ;;
1173 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1174 verbose=yes ;;
1176 -version | --version | --versio | --versi | --vers | -V)
1177 ac_init_version=: ;;
1179 -with-* | --with-*)
1180 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1181 # Reject names that are not valid shell variable names.
1182 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183 as_fn_error $? "invalid package name: $ac_useropt"
1184 ac_useropt_orig=$ac_useropt
1185 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186 case $ac_user_opts in
1188 "with_$ac_useropt"
1189 "*) ;;
1190 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1191 ac_unrecognized_sep=', ';;
1192 esac
1193 eval with_$ac_useropt=\$ac_optarg ;;
1195 -without-* | --without-*)
1196 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1197 # Reject names that are not valid shell variable names.
1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199 as_fn_error $? "invalid package name: $ac_useropt"
1200 ac_useropt_orig=$ac_useropt
1201 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202 case $ac_user_opts in
1204 "with_$ac_useropt"
1205 "*) ;;
1206 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1207 ac_unrecognized_sep=', ';;
1208 esac
1209 eval with_$ac_useropt=no ;;
1211 --x)
1212 # Obsolete; use --with-x.
1213 with_x=yes ;;
1215 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1216 | --x-incl | --x-inc | --x-in | --x-i)
1217 ac_prev=x_includes ;;
1218 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1219 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1220 x_includes=$ac_optarg ;;
1222 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1223 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1224 ac_prev=x_libraries ;;
1225 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1226 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1227 x_libraries=$ac_optarg ;;
1229 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1230 Try \`$0 --help' for more information"
1233 *=*)
1234 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1235 # Reject names that are not valid shell variable names.
1236 case $ac_envvar in #(
1237 '' | [0-9]* | *[!_$as_cr_alnum]* )
1238 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1239 esac
1240 eval $ac_envvar=\$ac_optarg
1241 export $ac_envvar ;;
1244 # FIXME: should be removed in autoconf 3.0.
1245 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1246 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1247 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1248 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1251 esac
1252 done
1254 if test -n "$ac_prev"; then
1255 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1256 as_fn_error $? "missing argument to $ac_option"
1259 if test -n "$ac_unrecognized_opts"; then
1260 case $enable_option_checking in
1261 no) ;;
1262 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1263 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1264 esac
1267 # Check all directory arguments for consistency.
1268 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1269 datadir sysconfdir sharedstatedir localstatedir includedir \
1270 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1271 libdir localedir mandir
1273 eval ac_val=\$$ac_var
1274 # Remove trailing slashes.
1275 case $ac_val in
1276 */ )
1277 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1278 eval $ac_var=\$ac_val;;
1279 esac
1280 # Be sure to have absolute directory names.
1281 case $ac_val in
1282 [\\/$]* | ?:[\\/]* ) continue;;
1283 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1284 esac
1285 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1286 done
1288 # There might be people who depend on the old broken behavior: `$host'
1289 # used to hold the argument of --host etc.
1290 # FIXME: To remove some day.
1291 build=$build_alias
1292 host=$host_alias
1293 target=$target_alias
1295 # FIXME: To remove some day.
1296 if test "x$host_alias" != x; then
1297 if test "x$build_alias" = x; then
1298 cross_compiling=maybe
1299 elif test "x$build_alias" != "x$host_alias"; then
1300 cross_compiling=yes
1304 ac_tool_prefix=
1305 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1307 test "$silent" = yes && exec 6>/dev/null
1310 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1311 ac_ls_di=`ls -di .` &&
1312 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1313 as_fn_error $? "working directory cannot be determined"
1314 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1315 as_fn_error $? "pwd does not report name of working directory"
1318 # Find the source files, if location was not specified.
1319 if test -z "$srcdir"; then
1320 ac_srcdir_defaulted=yes
1321 # Try the directory containing this script, then the parent directory.
1322 ac_confdir=`$as_dirname -- "$as_myself" ||
1323 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1324 X"$as_myself" : 'X\(//\)[^/]' \| \
1325 X"$as_myself" : 'X\(//\)$' \| \
1326 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1327 $as_echo X"$as_myself" |
1328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1329 s//\1/
1332 /^X\(\/\/\)[^/].*/{
1333 s//\1/
1336 /^X\(\/\/\)$/{
1337 s//\1/
1340 /^X\(\/\).*/{
1341 s//\1/
1344 s/.*/./; q'`
1345 srcdir=$ac_confdir
1346 if test ! -r "$srcdir/$ac_unique_file"; then
1347 srcdir=..
1349 else
1350 ac_srcdir_defaulted=no
1352 if test ! -r "$srcdir/$ac_unique_file"; then
1353 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1354 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1356 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1357 ac_abs_confdir=`(
1358 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1359 pwd)`
1360 # When building in place, set srcdir=.
1361 if test "$ac_abs_confdir" = "$ac_pwd"; then
1362 srcdir=.
1364 # Remove unnecessary trailing slashes from srcdir.
1365 # Double slashes in file names in object file debugging info
1366 # mess up M-x gdb in Emacs.
1367 case $srcdir in
1368 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1369 esac
1370 for ac_var in $ac_precious_vars; do
1371 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1372 eval ac_env_${ac_var}_value=\$${ac_var}
1373 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1374 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1375 done
1378 # Report the --help message.
1380 if test "$ac_init_help" = "long"; then
1381 # Omit some internal or obsolete options to make the list less imposing.
1382 # This message is too long to be a string in the A/UX 3.1 sh.
1383 cat <<_ACEOF
1384 \`configure' configures Xenomai 2.6.5 to adapt to many kinds of systems.
1386 Usage: $0 [OPTION]... [VAR=VALUE]...
1388 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1389 VAR=VALUE. See below for descriptions of some of the useful variables.
1391 Defaults for the options are specified in brackets.
1393 Configuration:
1394 -h, --help display this help and exit
1395 --help=short display options specific to this package
1396 --help=recursive display the short help of all the included packages
1397 -V, --version display version information and exit
1398 -q, --quiet, --silent do not print \`checking ...' messages
1399 --cache-file=FILE cache test results in FILE [disabled]
1400 -C, --config-cache alias for \`--cache-file=config.cache'
1401 -n, --no-create do not create output files
1402 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1404 Installation directories:
1405 --prefix=PREFIX install architecture-independent files in PREFIX
1406 [$ac_default_prefix]
1407 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1408 [PREFIX]
1410 By default, \`make install' will install all the files in
1411 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1412 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1413 for instance \`--prefix=\$HOME'.
1415 For better control, use the options below.
1417 Fine tuning of the installation directories:
1418 --bindir=DIR user executables [EPREFIX/bin]
1419 --sbindir=DIR system admin executables [EPREFIX/sbin]
1420 --libexecdir=DIR program executables [EPREFIX/libexec]
1421 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1422 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1423 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1424 --libdir=DIR object code libraries [EPREFIX/lib]
1425 --includedir=DIR C header files [PREFIX/include]
1426 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1427 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1428 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1429 --infodir=DIR info documentation [DATAROOTDIR/info]
1430 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1431 --mandir=DIR man documentation [DATAROOTDIR/man]
1432 --docdir=DIR documentation root [DATAROOTDIR/doc/xenomai]
1433 --htmldir=DIR html documentation [DOCDIR]
1434 --dvidir=DIR dvi documentation [DOCDIR]
1435 --pdfdir=DIR pdf documentation [DOCDIR]
1436 --psdir=DIR ps documentation [DOCDIR]
1437 _ACEOF
1439 cat <<\_ACEOF
1441 Program names:
1442 --program-prefix=PREFIX prepend PREFIX to installed program names
1443 --program-suffix=SUFFIX append SUFFIX to installed program names
1444 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1446 System types:
1447 --build=BUILD configure for building on BUILD [guessed]
1448 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1449 --target=TARGET configure for building compilers for TARGET [HOST]
1450 _ACEOF
1453 if test -n "$ac_init_help"; then
1454 case $ac_init_help in
1455 short | recursive ) echo "Configuration of Xenomai 2.6.5:";;
1456 esac
1457 cat <<\_ACEOF
1459 Optional Features:
1460 --disable-option-checking ignore unrecognized --enable/--with options
1461 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1462 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1463 --disable-dependency-tracking speeds up one-time build
1464 --enable-dependency-tracking do not reject slow dependency extractors
1465 --enable-maintainer-mode enable make rules and dependencies not useful
1466 (and sometimes confusing) to the casual installer
1467 --enable-shared[=PKGS] build shared libraries [default=no]
1468 --enable-static[=PKGS] build static libraries [default=yes]
1469 --enable-fast-install[=PKGS]
1470 optimize for fast installation [default=yes]
1471 --disable-libtool-lock avoid locking (might break parallel builds)
1472 --enable-debug Enable debug symbols in programs [default=no]
1473 --enable-smp Enable SMP support [default=yes on x86, Power, ARM]
1474 --enable-x86-sep Enable x86 SEP instructions for issuing syscalls
1475 [default=yes]
1476 --enable-x86-tsc Enable x86 TSC for timings [default=yes]
1477 --enable-arm-tsc You only need this option if you get the following
1478 message when starting an application: Xenomai:
1479 incompatible feature set (userland requires
1480 "kuser_tsc ...", kernel provides "...",
1481 missing="kuser_tsc"). In that case, this option
1482 allows to select the machine for which a user-space
1483 tsc emulation should be generated. Valid machines
1484 are at91, kuser, imx, ixp4xx, omap, orion, pxa,
1485 s3c24x, sa1100. [default=kuser]
1486 --enable-arm-quirks Enable quirks for specific systems. Currently
1487 supported quirks are for sa1100 and xscale3.
1488 [default=no]
1489 --disable-doc-install Do not install documentation [default=no]
1490 --enable-dox-doc Build Doxygen documentation [default=no]
1491 --enable-verbose-latex Uses LaTeX non-stop mode [default=no]
1492 --enable-asciidoc Build Asciidoc documentation [default=no]
1493 --enable-fortify Enable support for applications compiled with
1494 _FORTIFY_SOURCE
1496 Optional Packages:
1497 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1498 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1499 --with-cc=compiler use specific C compiler
1500 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1501 both]
1502 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1503 --with-sysroot=DIR Search for dependent libraries within DIR
1504 (or the compiler's sysroot if not specified).
1505 --with-atomic-ops Select implementation of atomic ops
1506 [default=builtins on ARM, ad-hoc otherwise]
1507 --with-__thread use optimized TLS features (x86 only), disabling the
1508 ability to use dlopen on Xenomai skin libraries
1509 --with-testdir=<test-binaries-dir>
1510 location for test binaries (defaults to $bindir)
1512 Some influential environment variables:
1513 CC C compiler command
1514 CFLAGS C compiler flags
1515 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1516 nonstandard directory <lib dir>
1517 LIBS libraries to pass to the linker, e.g. -l<library>
1518 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1519 you have headers in a nonstandard directory <include dir>
1520 CPP C preprocessor
1521 CCAS assembler compiler command (defaults to CC)
1522 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1524 Use these variables to override the choices made by `configure' or to help
1525 it to find libraries and programs with nonstandard names/locations.
1527 Report bugs to <xenomai@xenomai.org>.
1528 _ACEOF
1529 ac_status=$?
1532 if test "$ac_init_help" = "recursive"; then
1533 # If there are subdirs, report their specific --help.
1534 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1535 test -d "$ac_dir" ||
1536 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1537 continue
1538 ac_builddir=.
1540 case "$ac_dir" in
1541 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1543 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1544 # A ".." for each directory in $ac_dir_suffix.
1545 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1546 case $ac_top_builddir_sub in
1547 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1549 esac ;;
1550 esac
1551 ac_abs_top_builddir=$ac_pwd
1552 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1553 # for backward compatibility:
1554 ac_top_builddir=$ac_top_build_prefix
1556 case $srcdir in
1557 .) # We are building in place.
1558 ac_srcdir=.
1559 ac_top_srcdir=$ac_top_builddir_sub
1560 ac_abs_top_srcdir=$ac_pwd ;;
1561 [\\/]* | ?:[\\/]* ) # Absolute name.
1562 ac_srcdir=$srcdir$ac_dir_suffix;
1563 ac_top_srcdir=$srcdir
1564 ac_abs_top_srcdir=$srcdir ;;
1565 *) # Relative name.
1566 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1567 ac_top_srcdir=$ac_top_build_prefix$srcdir
1568 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1569 esac
1570 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1572 cd "$ac_dir" || { ac_status=$?; continue; }
1573 # Check for guested configure.
1574 if test -f "$ac_srcdir/configure.gnu"; then
1575 echo &&
1576 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1577 elif test -f "$ac_srcdir/configure"; then
1578 echo &&
1579 $SHELL "$ac_srcdir/configure" --help=recursive
1580 else
1581 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1582 fi || ac_status=$?
1583 cd "$ac_pwd" || { ac_status=$?; break; }
1584 done
1587 test -n "$ac_init_help" && exit $ac_status
1588 if $ac_init_version; then
1589 cat <<\_ACEOF
1590 Xenomai configure 2.6.5
1591 generated by GNU Autoconf 2.69
1593 Copyright (C) 2012 Free Software Foundation, Inc.
1594 This configure script is free software; the Free Software Foundation
1595 gives unlimited permission to copy, distribute and modify it.
1596 _ACEOF
1597 exit
1600 ## ------------------------ ##
1601 ## Autoconf initialization. ##
1602 ## ------------------------ ##
1604 # ac_fn_c_try_compile LINENO
1605 # --------------------------
1606 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1607 ac_fn_c_try_compile ()
1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610 rm -f conftest.$ac_objext
1611 if { { ac_try="$ac_compile"
1612 case "(($ac_try" in
1613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1614 *) ac_try_echo=$ac_try;;
1615 esac
1616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617 $as_echo "$ac_try_echo"; } >&5
1618 (eval "$ac_compile") 2>conftest.err
1619 ac_status=$?
1620 if test -s conftest.err; then
1621 grep -v '^ *+' conftest.err >conftest.er1
1622 cat conftest.er1 >&5
1623 mv -f conftest.er1 conftest.err
1625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626 test $ac_status = 0; } && {
1627 test -z "$ac_c_werror_flag" ||
1628 test ! -s conftest.err
1629 } && test -s conftest.$ac_objext; then :
1630 ac_retval=0
1631 else
1632 $as_echo "$as_me: failed program was:" >&5
1633 sed 's/^/| /' conftest.$ac_ext >&5
1635 ac_retval=1
1637 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1638 as_fn_set_status $ac_retval
1640 } # ac_fn_c_try_compile
1642 # ac_fn_c_try_cpp LINENO
1643 # ----------------------
1644 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1645 ac_fn_c_try_cpp ()
1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648 if { { ac_try="$ac_cpp conftest.$ac_ext"
1649 case "(($ac_try" in
1650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651 *) ac_try_echo=$ac_try;;
1652 esac
1653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654 $as_echo "$ac_try_echo"; } >&5
1655 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1656 ac_status=$?
1657 if test -s conftest.err; then
1658 grep -v '^ *+' conftest.err >conftest.er1
1659 cat conftest.er1 >&5
1660 mv -f conftest.er1 conftest.err
1662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663 test $ac_status = 0; } > conftest.i && {
1664 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1665 test ! -s conftest.err
1666 }; then :
1667 ac_retval=0
1668 else
1669 $as_echo "$as_me: failed program was:" >&5
1670 sed 's/^/| /' conftest.$ac_ext >&5
1672 ac_retval=1
1674 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1675 as_fn_set_status $ac_retval
1677 } # ac_fn_c_try_cpp
1679 # ac_fn_c_try_link LINENO
1680 # -----------------------
1681 # Try to link conftest.$ac_ext, and return whether this succeeded.
1682 ac_fn_c_try_link ()
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 rm -f conftest.$ac_objext conftest$ac_exeext
1686 if { { ac_try="$ac_link"
1687 case "(($ac_try" in
1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689 *) ac_try_echo=$ac_try;;
1690 esac
1691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692 $as_echo "$ac_try_echo"; } >&5
1693 (eval "$ac_link") 2>conftest.err
1694 ac_status=$?
1695 if test -s conftest.err; then
1696 grep -v '^ *+' conftest.err >conftest.er1
1697 cat conftest.er1 >&5
1698 mv -f conftest.er1 conftest.err
1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701 test $ac_status = 0; } && {
1702 test -z "$ac_c_werror_flag" ||
1703 test ! -s conftest.err
1704 } && test -s conftest$ac_exeext && {
1705 test "$cross_compiling" = yes ||
1706 test -x conftest$ac_exeext
1707 }; then :
1708 ac_retval=0
1709 else
1710 $as_echo "$as_me: failed program was:" >&5
1711 sed 's/^/| /' conftest.$ac_ext >&5
1713 ac_retval=1
1715 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1716 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1717 # interfere with the next link command; also delete a directory that is
1718 # left behind by Apple's compiler. We do this before executing the actions.
1719 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721 as_fn_set_status $ac_retval
1723 } # ac_fn_c_try_link
1725 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1726 # -------------------------------------------------------
1727 # Tests whether HEADER exists and can be compiled using the include files in
1728 # INCLUDES, setting the cache variable VAR accordingly.
1729 ac_fn_c_check_header_compile ()
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1733 $as_echo_n "checking for $2... " >&6; }
1734 if eval \${$3+:} false; then :
1735 $as_echo_n "(cached) " >&6
1736 else
1737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1738 /* end confdefs.h. */
1740 #include <$2>
1741 _ACEOF
1742 if ac_fn_c_try_compile "$LINENO"; then :
1743 eval "$3=yes"
1744 else
1745 eval "$3=no"
1747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1749 eval ac_res=\$$3
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1751 $as_echo "$ac_res" >&6; }
1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754 } # ac_fn_c_check_header_compile
1756 # ac_fn_c_try_run LINENO
1757 # ----------------------
1758 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1759 # that executables *can* be run.
1760 ac_fn_c_try_run ()
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763 if { { ac_try="$ac_link"
1764 case "(($ac_try" in
1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766 *) ac_try_echo=$ac_try;;
1767 esac
1768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769 $as_echo "$ac_try_echo"; } >&5
1770 (eval "$ac_link") 2>&5
1771 ac_status=$?
1772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1774 { { case "(($ac_try" in
1775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1776 *) ac_try_echo=$ac_try;;
1777 esac
1778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779 $as_echo "$ac_try_echo"; } >&5
1780 (eval "$ac_try") 2>&5
1781 ac_status=$?
1782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783 test $ac_status = 0; }; }; then :
1784 ac_retval=0
1785 else
1786 $as_echo "$as_me: program exited with status $ac_status" >&5
1787 $as_echo "$as_me: failed program was:" >&5
1788 sed 's/^/| /' conftest.$ac_ext >&5
1790 ac_retval=$ac_status
1792 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794 as_fn_set_status $ac_retval
1796 } # ac_fn_c_try_run
1798 # ac_fn_c_check_func LINENO FUNC VAR
1799 # ----------------------------------
1800 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1801 ac_fn_c_check_func ()
1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1805 $as_echo_n "checking for $2... " >&6; }
1806 if eval \${$3+:} false; then :
1807 $as_echo_n "(cached) " >&6
1808 else
1809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810 /* end confdefs.h. */
1811 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1813 #define $2 innocuous_$2
1815 /* System header to define __stub macros and hopefully few prototypes,
1816 which can conflict with char $2 (); below.
1817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1818 <limits.h> exists even on freestanding compilers. */
1820 #ifdef __STDC__
1821 # include <limits.h>
1822 #else
1823 # include <assert.h>
1824 #endif
1826 #undef $2
1828 /* Override any GCC internal prototype to avoid an error.
1829 Use char because int might match the return type of a GCC
1830 builtin and then its argument prototype would still apply. */
1831 #ifdef __cplusplus
1832 extern "C"
1833 #endif
1834 char $2 ();
1835 /* The GNU C library defines this for functions which it implements
1836 to always fail with ENOSYS. Some functions are actually named
1837 something starting with __ and the normal name is an alias. */
1838 #if defined __stub_$2 || defined __stub___$2
1839 choke me
1840 #endif
1843 main ()
1845 return $2 ();
1847 return 0;
1849 _ACEOF
1850 if ac_fn_c_try_link "$LINENO"; then :
1851 eval "$3=yes"
1852 else
1853 eval "$3=no"
1855 rm -f core conftest.err conftest.$ac_objext \
1856 conftest$ac_exeext conftest.$ac_ext
1858 eval ac_res=\$$3
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1860 $as_echo "$ac_res" >&6; }
1861 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1863 } # ac_fn_c_check_func
1865 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1866 # -------------------------------------------------------
1867 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1868 # the include files in INCLUDES and setting the cache variable VAR
1869 # accordingly.
1870 ac_fn_c_check_header_mongrel ()
1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873 if eval \${$3+:} false; then :
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1875 $as_echo_n "checking for $2... " >&6; }
1876 if eval \${$3+:} false; then :
1877 $as_echo_n "(cached) " >&6
1879 eval ac_res=\$$3
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1881 $as_echo "$ac_res" >&6; }
1882 else
1883 # Is the header compilable?
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1885 $as_echo_n "checking $2 usability... " >&6; }
1886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887 /* end confdefs.h. */
1889 #include <$2>
1890 _ACEOF
1891 if ac_fn_c_try_compile "$LINENO"; then :
1892 ac_header_compiler=yes
1893 else
1894 ac_header_compiler=no
1896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1898 $as_echo "$ac_header_compiler" >&6; }
1900 # Is the header present?
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1902 $as_echo_n "checking $2 presence... " >&6; }
1903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h. */
1905 #include <$2>
1906 _ACEOF
1907 if ac_fn_c_try_cpp "$LINENO"; then :
1908 ac_header_preproc=yes
1909 else
1910 ac_header_preproc=no
1912 rm -f conftest.err conftest.i conftest.$ac_ext
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1914 $as_echo "$ac_header_preproc" >&6; }
1916 # So? What about this header?
1917 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1918 yes:no: )
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1920 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1922 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1924 no:yes:* )
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1926 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1928 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1930 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1932 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1934 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1935 ( $as_echo "## ---------------------------------- ##
1936 ## Report this to xenomai@xenomai.org ##
1937 ## ---------------------------------- ##"
1938 ) | sed "s/^/$as_me: WARNING: /" >&2
1940 esac
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1942 $as_echo_n "checking for $2... " >&6; }
1943 if eval \${$3+:} false; then :
1944 $as_echo_n "(cached) " >&6
1945 else
1946 eval "$3=\$ac_header_compiler"
1948 eval ac_res=\$$3
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1950 $as_echo "$ac_res" >&6; }
1952 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1954 } # ac_fn_c_check_header_mongrel
1955 cat >config.log <<_ACEOF
1956 This file contains any messages produced by compilers while
1957 running configure, to aid debugging if configure makes a mistake.
1959 It was created by Xenomai $as_me 2.6.5, which was
1960 generated by GNU Autoconf 2.69. Invocation command line was
1962 $ $0 $@
1964 _ACEOF
1965 exec 5>>config.log
1967 cat <<_ASUNAME
1968 ## --------- ##
1969 ## Platform. ##
1970 ## --------- ##
1972 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1973 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1974 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1975 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1976 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1978 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1979 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1981 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1982 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1983 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1984 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1985 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1986 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1987 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1989 _ASUNAME
1991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992 for as_dir in $PATH
1994 IFS=$as_save_IFS
1995 test -z "$as_dir" && as_dir=.
1996 $as_echo "PATH: $as_dir"
1997 done
1998 IFS=$as_save_IFS
2000 } >&5
2002 cat >&5 <<_ACEOF
2005 ## ----------- ##
2006 ## Core tests. ##
2007 ## ----------- ##
2009 _ACEOF
2012 # Keep a trace of the command line.
2013 # Strip out --no-create and --no-recursion so they do not pile up.
2014 # Strip out --silent because we don't want to record it for future runs.
2015 # Also quote any args containing shell meta-characters.
2016 # Make two passes to allow for proper duplicate-argument suppression.
2017 ac_configure_args=
2018 ac_configure_args0=
2019 ac_configure_args1=
2020 ac_must_keep_next=false
2021 for ac_pass in 1 2
2023 for ac_arg
2025 case $ac_arg in
2026 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2027 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2028 | -silent | --silent | --silen | --sile | --sil)
2029 continue ;;
2030 *\'*)
2031 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2032 esac
2033 case $ac_pass in
2034 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2036 as_fn_append ac_configure_args1 " '$ac_arg'"
2037 if test $ac_must_keep_next = true; then
2038 ac_must_keep_next=false # Got value, back to normal.
2039 else
2040 case $ac_arg in
2041 *=* | --config-cache | -C | -disable-* | --disable-* \
2042 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2043 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2044 | -with-* | --with-* | -without-* | --without-* | --x)
2045 case "$ac_configure_args0 " in
2046 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2047 esac
2049 -* ) ac_must_keep_next=true ;;
2050 esac
2052 as_fn_append ac_configure_args " '$ac_arg'"
2054 esac
2055 done
2056 done
2057 { ac_configure_args0=; unset ac_configure_args0;}
2058 { ac_configure_args1=; unset ac_configure_args1;}
2060 # When interrupted or exit'd, cleanup temporary files, and complete
2061 # config.log. We remove comments because anyway the quotes in there
2062 # would cause problems or look ugly.
2063 # WARNING: Use '\'' to represent an apostrophe within the trap.
2064 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2065 trap 'exit_status=$?
2066 # Save into config.log some information that might help in debugging.
2068 echo
2070 $as_echo "## ---------------- ##
2071 ## Cache variables. ##
2072 ## ---------------- ##"
2073 echo
2074 # The following way of writing the cache mishandles newlines in values,
2076 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2077 eval ac_val=\$$ac_var
2078 case $ac_val in #(
2079 *${as_nl}*)
2080 case $ac_var in #(
2081 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2082 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2083 esac
2084 case $ac_var in #(
2085 _ | IFS | as_nl) ;; #(
2086 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2087 *) { eval $ac_var=; unset $ac_var;} ;;
2088 esac ;;
2089 esac
2090 done
2091 (set) 2>&1 |
2092 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2093 *${as_nl}ac_space=\ *)
2094 sed -n \
2095 "s/'\''/'\''\\\\'\'''\''/g;
2096 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2097 ;; #(
2099 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2101 esac |
2102 sort
2104 echo
2106 $as_echo "## ----------------- ##
2107 ## Output variables. ##
2108 ## ----------------- ##"
2109 echo
2110 for ac_var in $ac_subst_vars
2112 eval ac_val=\$$ac_var
2113 case $ac_val in
2114 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2115 esac
2116 $as_echo "$ac_var='\''$ac_val'\''"
2117 done | sort
2118 echo
2120 if test -n "$ac_subst_files"; then
2121 $as_echo "## ------------------- ##
2122 ## File substitutions. ##
2123 ## ------------------- ##"
2124 echo
2125 for ac_var in $ac_subst_files
2127 eval ac_val=\$$ac_var
2128 case $ac_val in
2129 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2130 esac
2131 $as_echo "$ac_var='\''$ac_val'\''"
2132 done | sort
2133 echo
2136 if test -s confdefs.h; then
2137 $as_echo "## ----------- ##
2138 ## confdefs.h. ##
2139 ## ----------- ##"
2140 echo
2141 cat confdefs.h
2142 echo
2144 test "$ac_signal" != 0 &&
2145 $as_echo "$as_me: caught signal $ac_signal"
2146 $as_echo "$as_me: exit $exit_status"
2147 } >&5
2148 rm -f core *.core core.conftest.* &&
2149 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2150 exit $exit_status
2152 for ac_signal in 1 2 13 15; do
2153 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2154 done
2155 ac_signal=0
2157 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2158 rm -f -r conftest* confdefs.h
2160 $as_echo "/* confdefs.h */" > confdefs.h
2162 # Predefined preprocessor variables.
2164 cat >>confdefs.h <<_ACEOF
2165 #define PACKAGE_NAME "$PACKAGE_NAME"
2166 _ACEOF
2168 cat >>confdefs.h <<_ACEOF
2169 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2170 _ACEOF
2172 cat >>confdefs.h <<_ACEOF
2173 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2174 _ACEOF
2176 cat >>confdefs.h <<_ACEOF
2177 #define PACKAGE_STRING "$PACKAGE_STRING"
2178 _ACEOF
2180 cat >>confdefs.h <<_ACEOF
2181 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2182 _ACEOF
2184 cat >>confdefs.h <<_ACEOF
2185 #define PACKAGE_URL "$PACKAGE_URL"
2186 _ACEOF
2189 # Let the site file select an alternate cache file if it wants to.
2190 # Prefer an explicitly selected file to automatically selected ones.
2191 ac_site_file1=NONE
2192 ac_site_file2=NONE
2193 if test -n "$CONFIG_SITE"; then
2194 # We do not want a PATH search for config.site.
2195 case $CONFIG_SITE in #((
2196 -*) ac_site_file1=./$CONFIG_SITE;;
2197 */*) ac_site_file1=$CONFIG_SITE;;
2198 *) ac_site_file1=./$CONFIG_SITE;;
2199 esac
2200 elif test "x$prefix" != xNONE; then
2201 ac_site_file1=$prefix/share/config.site
2202 ac_site_file2=$prefix/etc/config.site
2203 else
2204 ac_site_file1=$ac_default_prefix/share/config.site
2205 ac_site_file2=$ac_default_prefix/etc/config.site
2207 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2209 test "x$ac_site_file" = xNONE && continue
2210 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2212 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2213 sed 's/^/| /' "$ac_site_file" >&5
2214 . "$ac_site_file" \
2215 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2217 as_fn_error $? "failed to load site script $ac_site_file
2218 See \`config.log' for more details" "$LINENO" 5; }
2220 done
2222 if test -r "$cache_file"; then
2223 # Some versions of bash will fail to source /dev/null (special files
2224 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2225 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2227 $as_echo "$as_me: loading cache $cache_file" >&6;}
2228 case $cache_file in
2229 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2230 *) . "./$cache_file";;
2231 esac
2233 else
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2235 $as_echo "$as_me: creating cache $cache_file" >&6;}
2236 >$cache_file
2239 # Check that the precious variables saved in the cache have kept the same
2240 # value.
2241 ac_cache_corrupted=false
2242 for ac_var in $ac_precious_vars; do
2243 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2244 eval ac_new_set=\$ac_env_${ac_var}_set
2245 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2246 eval ac_new_val=\$ac_env_${ac_var}_value
2247 case $ac_old_set,$ac_new_set in
2248 set,)
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2250 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2251 ac_cache_corrupted=: ;;
2252 ,set)
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2254 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2255 ac_cache_corrupted=: ;;
2256 ,);;
2258 if test "x$ac_old_val" != "x$ac_new_val"; then
2259 # differences in whitespace do not lead to failure.
2260 ac_old_val_w=`echo x $ac_old_val`
2261 ac_new_val_w=`echo x $ac_new_val`
2262 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2264 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2265 ac_cache_corrupted=:
2266 else
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2268 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2269 eval $ac_var=\$ac_old_val
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2272 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2274 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2275 fi;;
2276 esac
2277 # Pass precious variables to config.status.
2278 if test "$ac_new_set" = set; then
2279 case $ac_new_val in
2280 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2281 *) ac_arg=$ac_var=$ac_new_val ;;
2282 esac
2283 case " $ac_configure_args " in
2284 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2285 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2286 esac
2288 done
2289 if $ac_cache_corrupted; then
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2293 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2294 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2296 ## -------------------- ##
2297 ## Main body of script. ##
2298 ## -------------------- ##
2300 ac_ext=c
2301 ac_cpp='$CPP $CPPFLAGS'
2302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2308 CONFIG_XENO_VERSION_MAJOR=`expr $PACKAGE_VERSION : '\([0-9]*\)'`
2309 CONFIG_XENO_VERSION_MINOR=`expr $PACKAGE_VERSION : '[0-9]*\.\([0-9]*\)'`
2310 CONFIG_XENO_REVISION_LEVEL=`expr $PACKAGE_VERSION : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
2311 test "x$CONFIG_XENO_REVISION_LEVEL" = "x" && CONFIG_XENO_REVISION_LEVEL=0
2313 if test "x$CFLAGS" = "x"; then
2314 XENO_EMPTY_CFLAGS=true
2315 else
2316 XENO_EMPTY_CFLAGS=false
2319 if eval test $includedir = /usr/include; then
2320 as_fn_error $? "Using /usr/include as includedir is not supported. Please change your --prefix or specify another --includedir" "$LINENO" 5
2323 ac_config_headers="$ac_config_headers src/include/xeno_config.h"
2325 ac_aux_dir=
2326 for ac_dir in config "$srcdir"/config; do
2327 if test -f "$ac_dir/install-sh"; then
2328 ac_aux_dir=$ac_dir
2329 ac_install_sh="$ac_aux_dir/install-sh -c"
2330 break
2331 elif test -f "$ac_dir/install.sh"; then
2332 ac_aux_dir=$ac_dir
2333 ac_install_sh="$ac_aux_dir/install.sh -c"
2334 break
2335 elif test -f "$ac_dir/shtool"; then
2336 ac_aux_dir=$ac_dir
2337 ac_install_sh="$ac_aux_dir/shtool install -c"
2338 break
2340 done
2341 if test -z "$ac_aux_dir"; then
2342 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2345 # These three variables are undocumented and unsupported,
2346 # and are intended to be withdrawn in a future Autoconf release.
2347 # They can cause serious problems if a builder's source tree is in a directory
2348 # whose full name contains unusual characters.
2349 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2350 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2351 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2357 # Make sure we can run config.sub.
2358 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2359 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2362 $as_echo_n "checking build system type... " >&6; }
2363 if ${ac_cv_build+:} false; then :
2364 $as_echo_n "(cached) " >&6
2365 else
2366 ac_build_alias=$build_alias
2367 test "x$ac_build_alias" = x &&
2368 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2369 test "x$ac_build_alias" = x &&
2370 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2371 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2372 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2376 $as_echo "$ac_cv_build" >&6; }
2377 case $ac_cv_build in
2378 *-*-*) ;;
2379 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2380 esac
2381 build=$ac_cv_build
2382 ac_save_IFS=$IFS; IFS='-'
2383 set x $ac_cv_build
2384 shift
2385 build_cpu=$1
2386 build_vendor=$2
2387 shift; shift
2388 # Remember, the first character of IFS is used to create $*,
2389 # except with old shells:
2390 build_os=$*
2391 IFS=$ac_save_IFS
2392 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2396 $as_echo_n "checking host system type... " >&6; }
2397 if ${ac_cv_host+:} false; then :
2398 $as_echo_n "(cached) " >&6
2399 else
2400 if test "x$host_alias" = x; then
2401 ac_cv_host=$ac_cv_build
2402 else
2403 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2404 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2409 $as_echo "$ac_cv_host" >&6; }
2410 case $ac_cv_host in
2411 *-*-*) ;;
2412 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2413 esac
2414 host=$ac_cv_host
2415 ac_save_IFS=$IFS; IFS='-'
2416 set x $ac_cv_host
2417 shift
2418 host_cpu=$1
2419 host_vendor=$2
2420 shift; shift
2421 # Remember, the first character of IFS is used to create $*,
2422 # except with old shells:
2423 host_os=$*
2424 IFS=$ac_save_IFS
2425 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2428 # Find a good install program. We prefer a C program (faster),
2429 # so one script is as good as another. But avoid the broken or
2430 # incompatible versions:
2431 # SysV /etc/install, /usr/sbin/install
2432 # SunOS /usr/etc/install
2433 # IRIX /sbin/install
2434 # AIX /bin/install
2435 # AmigaOS /C/install, which installs bootblocks on floppy discs
2436 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2437 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2438 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2439 # OS/2's system install, which has a completely different semantic
2440 # ./install, which can be erroneously created by make from ./install.sh.
2441 # Reject install programs that cannot install multiple files.
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2443 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2444 if test -z "$INSTALL"; then
2445 if ${ac_cv_path_install+:} false; then :
2446 $as_echo_n "(cached) " >&6
2447 else
2448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449 for as_dir in $PATH
2451 IFS=$as_save_IFS
2452 test -z "$as_dir" && as_dir=.
2453 # Account for people who put trailing slashes in PATH elements.
2454 case $as_dir/ in #((
2455 ./ | .// | /[cC]/* | \
2456 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2457 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2458 /usr/ucb/* ) ;;
2460 # OSF1 and SCO ODT 3.0 have their own names for install.
2461 # Don't use installbsd from OSF since it installs stuff as root
2462 # by default.
2463 for ac_prog in ginstall scoinst install; do
2464 for ac_exec_ext in '' $ac_executable_extensions; do
2465 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2466 if test $ac_prog = install &&
2467 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2468 # AIX install. It has an incompatible calling convention.
2470 elif test $ac_prog = install &&
2471 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2472 # program-specific install script used by HP pwplus--don't use.
2474 else
2475 rm -rf conftest.one conftest.two conftest.dir
2476 echo one > conftest.one
2477 echo two > conftest.two
2478 mkdir conftest.dir
2479 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2480 test -s conftest.one && test -s conftest.two &&
2481 test -s conftest.dir/conftest.one &&
2482 test -s conftest.dir/conftest.two
2483 then
2484 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2485 break 3
2489 done
2490 done
2492 esac
2494 done
2495 IFS=$as_save_IFS
2497 rm -rf conftest.one conftest.two conftest.dir
2500 if test "${ac_cv_path_install+set}" = set; then
2501 INSTALL=$ac_cv_path_install
2502 else
2503 # As a last resort, use the slow shell script. Don't cache a
2504 # value for INSTALL within a source directory, because that will
2505 # break other packages using the cache if that directory is
2506 # removed, or if the value is a relative name.
2507 INSTALL=$ac_install_sh
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2511 $as_echo "$INSTALL" >&6; }
2513 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2514 # It thinks the first close brace ends the variable substitution.
2515 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2517 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2519 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2523 # Check whether --with-cc was given.
2524 if test "${with_cc+set}" = set; then :
2525 withval=$with_cc;
2526 case "$withval" in
2527 "" | y | ye | yes | n | no)
2528 as_fn_error $? "You must supply an argument to --with-cc." "$LINENO" 5
2530 esac
2531 CC="$withval"
2535 ac_ext=c
2536 ac_cpp='$CPP $CPPFLAGS'
2537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2540 if test -n "$ac_tool_prefix"; then
2541 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2542 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2544 $as_echo_n "checking for $ac_word... " >&6; }
2545 if ${ac_cv_prog_CC+:} false; then :
2546 $as_echo_n "(cached) " >&6
2547 else
2548 if test -n "$CC"; then
2549 ac_cv_prog_CC="$CC" # Let the user override the test.
2550 else
2551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2552 for as_dir in $PATH
2554 IFS=$as_save_IFS
2555 test -z "$as_dir" && as_dir=.
2556 for ac_exec_ext in '' $ac_executable_extensions; do
2557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2558 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2560 break 2
2562 done
2563 done
2564 IFS=$as_save_IFS
2568 CC=$ac_cv_prog_CC
2569 if test -n "$CC"; then
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2571 $as_echo "$CC" >&6; }
2572 else
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2574 $as_echo "no" >&6; }
2579 if test -z "$ac_cv_prog_CC"; then
2580 ac_ct_CC=$CC
2581 # Extract the first word of "gcc", so it can be a program name with args.
2582 set dummy gcc; ac_word=$2
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2584 $as_echo_n "checking for $ac_word... " >&6; }
2585 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2586 $as_echo_n "(cached) " >&6
2587 else
2588 if test -n "$ac_ct_CC"; then
2589 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2590 else
2591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2592 for as_dir in $PATH
2594 IFS=$as_save_IFS
2595 test -z "$as_dir" && as_dir=.
2596 for ac_exec_ext in '' $ac_executable_extensions; do
2597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2598 ac_cv_prog_ac_ct_CC="gcc"
2599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2600 break 2
2602 done
2603 done
2604 IFS=$as_save_IFS
2608 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2609 if test -n "$ac_ct_CC"; then
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2611 $as_echo "$ac_ct_CC" >&6; }
2612 else
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2614 $as_echo "no" >&6; }
2617 if test "x$ac_ct_CC" = x; then
2618 CC=""
2619 else
2620 case $cross_compiling:$ac_tool_warned in
2621 yes:)
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2624 ac_tool_warned=yes ;;
2625 esac
2626 CC=$ac_ct_CC
2628 else
2629 CC="$ac_cv_prog_CC"
2632 if test -z "$CC"; then
2633 if test -n "$ac_tool_prefix"; then
2634 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2635 set dummy ${ac_tool_prefix}cc; ac_word=$2
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2637 $as_echo_n "checking for $ac_word... " >&6; }
2638 if ${ac_cv_prog_CC+:} false; then :
2639 $as_echo_n "(cached) " >&6
2640 else
2641 if test -n "$CC"; then
2642 ac_cv_prog_CC="$CC" # Let the user override the test.
2643 else
2644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645 for as_dir in $PATH
2647 IFS=$as_save_IFS
2648 test -z "$as_dir" && as_dir=.
2649 for ac_exec_ext in '' $ac_executable_extensions; do
2650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2651 ac_cv_prog_CC="${ac_tool_prefix}cc"
2652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2653 break 2
2655 done
2656 done
2657 IFS=$as_save_IFS
2661 CC=$ac_cv_prog_CC
2662 if test -n "$CC"; then
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2664 $as_echo "$CC" >&6; }
2665 else
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2667 $as_echo "no" >&6; }
2673 if test -z "$CC"; then
2674 # Extract the first word of "cc", so it can be a program name with args.
2675 set dummy cc; ac_word=$2
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2677 $as_echo_n "checking for $ac_word... " >&6; }
2678 if ${ac_cv_prog_CC+:} false; then :
2679 $as_echo_n "(cached) " >&6
2680 else
2681 if test -n "$CC"; then
2682 ac_cv_prog_CC="$CC" # Let the user override the test.
2683 else
2684 ac_prog_rejected=no
2685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686 for as_dir in $PATH
2688 IFS=$as_save_IFS
2689 test -z "$as_dir" && as_dir=.
2690 for ac_exec_ext in '' $ac_executable_extensions; do
2691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2692 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2693 ac_prog_rejected=yes
2694 continue
2696 ac_cv_prog_CC="cc"
2697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2698 break 2
2700 done
2701 done
2702 IFS=$as_save_IFS
2704 if test $ac_prog_rejected = yes; then
2705 # We found a bogon in the path, so make sure we never use it.
2706 set dummy $ac_cv_prog_CC
2707 shift
2708 if test $# != 0; then
2709 # We chose a different compiler from the bogus one.
2710 # However, it has the same basename, so the bogon will be chosen
2711 # first if we set CC to just the basename; use the full file name.
2712 shift
2713 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2718 CC=$ac_cv_prog_CC
2719 if test -n "$CC"; then
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2721 $as_echo "$CC" >&6; }
2722 else
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2724 $as_echo "no" >&6; }
2729 if test -z "$CC"; then
2730 if test -n "$ac_tool_prefix"; then
2731 for ac_prog in cl.exe
2733 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2734 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2736 $as_echo_n "checking for $ac_word... " >&6; }
2737 if ${ac_cv_prog_CC+:} false; then :
2738 $as_echo_n "(cached) " >&6
2739 else
2740 if test -n "$CC"; then
2741 ac_cv_prog_CC="$CC" # Let the user override the test.
2742 else
2743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744 for as_dir in $PATH
2746 IFS=$as_save_IFS
2747 test -z "$as_dir" && as_dir=.
2748 for ac_exec_ext in '' $ac_executable_extensions; do
2749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2750 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2752 break 2
2754 done
2755 done
2756 IFS=$as_save_IFS
2760 CC=$ac_cv_prog_CC
2761 if test -n "$CC"; then
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2763 $as_echo "$CC" >&6; }
2764 else
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2766 $as_echo "no" >&6; }
2770 test -n "$CC" && break
2771 done
2773 if test -z "$CC"; then
2774 ac_ct_CC=$CC
2775 for ac_prog in cl.exe
2777 # Extract the first word of "$ac_prog", so it can be a program name with args.
2778 set dummy $ac_prog; ac_word=$2
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2780 $as_echo_n "checking for $ac_word... " >&6; }
2781 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2782 $as_echo_n "(cached) " >&6
2783 else
2784 if test -n "$ac_ct_CC"; then
2785 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2786 else
2787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788 for as_dir in $PATH
2790 IFS=$as_save_IFS
2791 test -z "$as_dir" && as_dir=.
2792 for ac_exec_ext in '' $ac_executable_extensions; do
2793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2794 ac_cv_prog_ac_ct_CC="$ac_prog"
2795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2796 break 2
2798 done
2799 done
2800 IFS=$as_save_IFS
2804 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2805 if test -n "$ac_ct_CC"; then
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2807 $as_echo "$ac_ct_CC" >&6; }
2808 else
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2810 $as_echo "no" >&6; }
2814 test -n "$ac_ct_CC" && break
2815 done
2817 if test "x$ac_ct_CC" = x; then
2818 CC=""
2819 else
2820 case $cross_compiling:$ac_tool_warned in
2821 yes:)
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2823 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2824 ac_tool_warned=yes ;;
2825 esac
2826 CC=$ac_ct_CC
2833 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2835 as_fn_error $? "no acceptable C compiler found in \$PATH
2836 See \`config.log' for more details" "$LINENO" 5; }
2838 # Provide some information about the compiler.
2839 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2840 set X $ac_compile
2841 ac_compiler=$2
2842 for ac_option in --version -v -V -qversion; do
2843 { { ac_try="$ac_compiler $ac_option >&5"
2844 case "(($ac_try" in
2845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2846 *) ac_try_echo=$ac_try;;
2847 esac
2848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2849 $as_echo "$ac_try_echo"; } >&5
2850 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2851 ac_status=$?
2852 if test -s conftest.err; then
2853 sed '10a\
2854 ... rest of stderr output deleted ...
2855 10q' conftest.err >conftest.er1
2856 cat conftest.er1 >&5
2858 rm -f conftest.er1 conftest.err
2859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2860 test $ac_status = 0; }
2861 done
2863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2864 /* end confdefs.h. */
2867 main ()
2871 return 0;
2873 _ACEOF
2874 ac_clean_files_save=$ac_clean_files
2875 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2876 # Try to create an executable without -o first, disregard a.out.
2877 # It will help us diagnose broken compilers, and finding out an intuition
2878 # of exeext.
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2880 $as_echo_n "checking whether the C compiler works... " >&6; }
2881 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2883 # The possible output files:
2884 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2886 ac_rmfiles=
2887 for ac_file in $ac_files
2889 case $ac_file in
2890 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2891 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2892 esac
2893 done
2894 rm -f $ac_rmfiles
2896 if { { ac_try="$ac_link_default"
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_link_default") 2>&5
2904 ac_status=$?
2905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2906 test $ac_status = 0; }; then :
2907 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2908 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2909 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2910 # so that the user can short-circuit this test for compilers unknown to
2911 # Autoconf.
2912 for ac_file in $ac_files ''
2914 test -f "$ac_file" || continue
2915 case $ac_file in
2916 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2918 [ab].out )
2919 # We found the default executable, but exeext='' is most
2920 # certainly right.
2921 break;;
2922 *.* )
2923 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2924 then :; else
2925 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2927 # We set ac_cv_exeext here because the later test for it is not
2928 # safe: cross compilers may not add the suffix if given an `-o'
2929 # argument, so we may need to know it at that point already.
2930 # Even if this section looks crufty: it has the advantage of
2931 # actually working.
2932 break;;
2934 break;;
2935 esac
2936 done
2937 test "$ac_cv_exeext" = no && ac_cv_exeext=
2939 else
2940 ac_file=''
2942 if test -z "$ac_file"; then :
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2944 $as_echo "no" >&6; }
2945 $as_echo "$as_me: failed program was:" >&5
2946 sed 's/^/| /' conftest.$ac_ext >&5
2948 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2949 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2950 as_fn_error 77 "C compiler cannot create executables
2951 See \`config.log' for more details" "$LINENO" 5; }
2952 else
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2954 $as_echo "yes" >&6; }
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2957 $as_echo_n "checking for C compiler default output file name... " >&6; }
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2959 $as_echo "$ac_file" >&6; }
2960 ac_exeext=$ac_cv_exeext
2962 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2963 ac_clean_files=$ac_clean_files_save
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2965 $as_echo_n "checking for suffix of executables... " >&6; }
2966 if { { ac_try="$ac_link"
2967 case "(($ac_try" in
2968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969 *) ac_try_echo=$ac_try;;
2970 esac
2971 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2972 $as_echo "$ac_try_echo"; } >&5
2973 (eval "$ac_link") 2>&5
2974 ac_status=$?
2975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2976 test $ac_status = 0; }; then :
2977 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2978 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2979 # work properly (i.e., refer to `conftest.exe'), while it won't with
2980 # `rm'.
2981 for ac_file in conftest.exe conftest conftest.*; do
2982 test -f "$ac_file" || continue
2983 case $ac_file in
2984 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2985 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2986 break;;
2987 * ) break;;
2988 esac
2989 done
2990 else
2991 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2992 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2993 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2994 See \`config.log' for more details" "$LINENO" 5; }
2996 rm -f conftest conftest$ac_cv_exeext
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2998 $as_echo "$ac_cv_exeext" >&6; }
3000 rm -f conftest.$ac_ext
3001 EXEEXT=$ac_cv_exeext
3002 ac_exeext=$EXEEXT
3003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3004 /* end confdefs.h. */
3005 #include <stdio.h>
3007 main ()
3009 FILE *f = fopen ("conftest.out", "w");
3010 return ferror (f) || fclose (f) != 0;
3013 return 0;
3015 _ACEOF
3016 ac_clean_files="$ac_clean_files conftest.out"
3017 # Check that the compiler produces executables we can run. If not, either
3018 # the compiler is broken, or we cross compile.
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3020 $as_echo_n "checking whether we are cross compiling... " >&6; }
3021 if test "$cross_compiling" != yes; then
3022 { { ac_try="$ac_link"
3023 case "(($ac_try" in
3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025 *) ac_try_echo=$ac_try;;
3026 esac
3027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3028 $as_echo "$ac_try_echo"; } >&5
3029 (eval "$ac_link") 2>&5
3030 ac_status=$?
3031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3032 test $ac_status = 0; }
3033 if { ac_try='./conftest$ac_cv_exeext'
3034 { { case "(($ac_try" in
3035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036 *) ac_try_echo=$ac_try;;
3037 esac
3038 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3039 $as_echo "$ac_try_echo"; } >&5
3040 (eval "$ac_try") 2>&5
3041 ac_status=$?
3042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3043 test $ac_status = 0; }; }; then
3044 cross_compiling=no
3045 else
3046 if test "$cross_compiling" = maybe; then
3047 cross_compiling=yes
3048 else
3049 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3050 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3051 as_fn_error $? "cannot run C compiled programs.
3052 If you meant to cross compile, use \`--host'.
3053 See \`config.log' for more details" "$LINENO" 5; }
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3058 $as_echo "$cross_compiling" >&6; }
3060 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3061 ac_clean_files=$ac_clean_files_save
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3063 $as_echo_n "checking for suffix of object files... " >&6; }
3064 if ${ac_cv_objext+:} false; then :
3065 $as_echo_n "(cached) " >&6
3066 else
3067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3068 /* end confdefs.h. */
3071 main ()
3075 return 0;
3077 _ACEOF
3078 rm -f conftest.o conftest.obj
3079 if { { ac_try="$ac_compile"
3080 case "(($ac_try" in
3081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082 *) ac_try_echo=$ac_try;;
3083 esac
3084 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3085 $as_echo "$ac_try_echo"; } >&5
3086 (eval "$ac_compile") 2>&5
3087 ac_status=$?
3088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3089 test $ac_status = 0; }; then :
3090 for ac_file in conftest.o conftest.obj conftest.*; do
3091 test -f "$ac_file" || continue;
3092 case $ac_file in
3093 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3094 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3095 break;;
3096 esac
3097 done
3098 else
3099 $as_echo "$as_me: failed program was:" >&5
3100 sed 's/^/| /' conftest.$ac_ext >&5
3102 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3103 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3104 as_fn_error $? "cannot compute suffix of object files: cannot compile
3105 See \`config.log' for more details" "$LINENO" 5; }
3107 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3110 $as_echo "$ac_cv_objext" >&6; }
3111 OBJEXT=$ac_cv_objext
3112 ac_objext=$OBJEXT
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3114 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3115 if ${ac_cv_c_compiler_gnu+:} false; then :
3116 $as_echo_n "(cached) " >&6
3117 else
3118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3119 /* end confdefs.h. */
3122 main ()
3124 #ifndef __GNUC__
3125 choke me
3126 #endif
3129 return 0;
3131 _ACEOF
3132 if ac_fn_c_try_compile "$LINENO"; then :
3133 ac_compiler_gnu=yes
3134 else
3135 ac_compiler_gnu=no
3137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3138 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3142 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3143 if test $ac_compiler_gnu = yes; then
3144 GCC=yes
3145 else
3146 GCC=
3148 ac_test_CFLAGS=${CFLAGS+set}
3149 ac_save_CFLAGS=$CFLAGS
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3151 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3152 if ${ac_cv_prog_cc_g+:} false; then :
3153 $as_echo_n "(cached) " >&6
3154 else
3155 ac_save_c_werror_flag=$ac_c_werror_flag
3156 ac_c_werror_flag=yes
3157 ac_cv_prog_cc_g=no
3158 CFLAGS="-g"
3159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3160 /* end confdefs.h. */
3163 main ()
3167 return 0;
3169 _ACEOF
3170 if ac_fn_c_try_compile "$LINENO"; then :
3171 ac_cv_prog_cc_g=yes
3172 else
3173 CFLAGS=""
3174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3175 /* end confdefs.h. */
3178 main ()
3182 return 0;
3184 _ACEOF
3185 if ac_fn_c_try_compile "$LINENO"; then :
3187 else
3188 ac_c_werror_flag=$ac_save_c_werror_flag
3189 CFLAGS="-g"
3190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3191 /* end confdefs.h. */
3194 main ()
3198 return 0;
3200 _ACEOF
3201 if ac_fn_c_try_compile "$LINENO"; then :
3202 ac_cv_prog_cc_g=yes
3204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3209 ac_c_werror_flag=$ac_save_c_werror_flag
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3212 $as_echo "$ac_cv_prog_cc_g" >&6; }
3213 if test "$ac_test_CFLAGS" = set; then
3214 CFLAGS=$ac_save_CFLAGS
3215 elif test $ac_cv_prog_cc_g = yes; then
3216 if test "$GCC" = yes; then
3217 CFLAGS="-g -O2"
3218 else
3219 CFLAGS="-g"
3221 else
3222 if test "$GCC" = yes; then
3223 CFLAGS="-O2"
3224 else
3225 CFLAGS=
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3229 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3230 if ${ac_cv_prog_cc_c89+:} false; then :
3231 $as_echo_n "(cached) " >&6
3232 else
3233 ac_cv_prog_cc_c89=no
3234 ac_save_CC=$CC
3235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3236 /* end confdefs.h. */
3237 #include <stdarg.h>
3238 #include <stdio.h>
3239 struct stat;
3240 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3241 struct buf { int x; };
3242 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3243 static char *e (p, i)
3244 char **p;
3245 int i;
3247 return p[i];
3249 static char *f (char * (*g) (char **, int), char **p, ...)
3251 char *s;
3252 va_list v;
3253 va_start (v,p);
3254 s = g (p, va_arg (v,int));
3255 va_end (v);
3256 return s;
3259 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3260 function prototypes and stuff, but not '\xHH' hex character constants.
3261 These don't provoke an error unfortunately, instead are silently treated
3262 as 'x'. The following induces an error, until -std is added to get
3263 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3264 array size at least. It's necessary to write '\x00'==0 to get something
3265 that's true only with -std. */
3266 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3268 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3269 inside strings and character constants. */
3270 #define FOO(x) 'x'
3271 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3273 int test (int i, double x);
3274 struct s1 {int (*f) (int a);};
3275 struct s2 {int (*f) (double a);};
3276 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3277 int argc;
3278 char **argv;
3280 main ()
3282 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3284 return 0;
3286 _ACEOF
3287 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3288 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3290 CC="$ac_save_CC $ac_arg"
3291 if ac_fn_c_try_compile "$LINENO"; then :
3292 ac_cv_prog_cc_c89=$ac_arg
3294 rm -f core conftest.err conftest.$ac_objext
3295 test "x$ac_cv_prog_cc_c89" != "xno" && break
3296 done
3297 rm -f conftest.$ac_ext
3298 CC=$ac_save_CC
3301 # AC_CACHE_VAL
3302 case "x$ac_cv_prog_cc_c89" in
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3305 $as_echo "none needed" >&6; } ;;
3306 xno)
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3308 $as_echo "unsupported" >&6; } ;;
3310 CC="$CC $ac_cv_prog_cc_c89"
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3312 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3313 esac
3314 if test "x$ac_cv_prog_cc_c89" != xno; then :
3318 ac_ext=c
3319 ac_cpp='$CPP $CPPFLAGS'
3320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3325 # Do not let autoconf set the default value of CFLAGS
3326 if $XENO_EMPTY_CFLAGS; then
3327 CFLAGS=""
3330 ac_ext=c
3331 ac_cpp='$CPP $CPPFLAGS'
3332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3336 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3337 # On Suns, sometimes $CPP names a directory.
3338 if test -n "$CPP" && test -d "$CPP"; then
3339 CPP=
3341 if test -z "$CPP"; then
3342 if ${ac_cv_prog_CPP+:} false; then :
3343 $as_echo_n "(cached) " >&6
3344 else
3345 # Double quotes because CPP needs to be expanded
3346 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3348 ac_preproc_ok=false
3349 for ac_c_preproc_warn_flag in '' yes
3351 # Use a header file that comes with gcc, so configuring glibc
3352 # with a fresh cross-compiler works.
3353 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3354 # <limits.h> exists even on freestanding compilers.
3355 # On the NeXT, cc -E runs the code through the compiler's parser,
3356 # not just through cpp. "Syntax error" is here to catch this case.
3357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3358 /* end confdefs.h. */
3359 #ifdef __STDC__
3360 # include <limits.h>
3361 #else
3362 # include <assert.h>
3363 #endif
3364 Syntax error
3365 _ACEOF
3366 if ac_fn_c_try_cpp "$LINENO"; then :
3368 else
3369 # Broken: fails on valid input.
3370 continue
3372 rm -f conftest.err conftest.i conftest.$ac_ext
3374 # OK, works on sane cases. Now check whether nonexistent headers
3375 # can be detected and how.
3376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3377 /* end confdefs.h. */
3378 #include <ac_nonexistent.h>
3379 _ACEOF
3380 if ac_fn_c_try_cpp "$LINENO"; then :
3381 # Broken: success on invalid input.
3382 continue
3383 else
3384 # Passes both tests.
3385 ac_preproc_ok=:
3386 break
3388 rm -f conftest.err conftest.i conftest.$ac_ext
3390 done
3391 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3392 rm -f conftest.i conftest.err conftest.$ac_ext
3393 if $ac_preproc_ok; then :
3394 break
3397 done
3398 ac_cv_prog_CPP=$CPP
3401 CPP=$ac_cv_prog_CPP
3402 else
3403 ac_cv_prog_CPP=$CPP
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3406 $as_echo "$CPP" >&6; }
3407 ac_preproc_ok=false
3408 for ac_c_preproc_warn_flag in '' yes
3410 # Use a header file that comes with gcc, so configuring glibc
3411 # with a fresh cross-compiler works.
3412 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3413 # <limits.h> exists even on freestanding compilers.
3414 # On the NeXT, cc -E runs the code through the compiler's parser,
3415 # not just through cpp. "Syntax error" is here to catch this case.
3416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3417 /* end confdefs.h. */
3418 #ifdef __STDC__
3419 # include <limits.h>
3420 #else
3421 # include <assert.h>
3422 #endif
3423 Syntax error
3424 _ACEOF
3425 if ac_fn_c_try_cpp "$LINENO"; then :
3427 else
3428 # Broken: fails on valid input.
3429 continue
3431 rm -f conftest.err conftest.i conftest.$ac_ext
3433 # OK, works on sane cases. Now check whether nonexistent headers
3434 # can be detected and how.
3435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3436 /* end confdefs.h. */
3437 #include <ac_nonexistent.h>
3438 _ACEOF
3439 if ac_fn_c_try_cpp "$LINENO"; then :
3440 # Broken: success on invalid input.
3441 continue
3442 else
3443 # Passes both tests.
3444 ac_preproc_ok=:
3445 break
3447 rm -f conftest.err conftest.i conftest.$ac_ext
3449 done
3450 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3451 rm -f conftest.i conftest.err conftest.$ac_ext
3452 if $ac_preproc_ok; then :
3454 else
3455 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3456 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3457 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3458 See \`config.log' for more details" "$LINENO" 5; }
3461 ac_ext=c
3462 ac_cpp='$CPP $CPPFLAGS'
3463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3469 $as_echo_n "checking target system type... " >&6; }
3470 if ${ac_cv_target+:} false; then :
3471 $as_echo_n "(cached) " >&6
3472 else
3473 if test "x$target_alias" = x; then
3474 ac_cv_target=$ac_cv_host
3475 else
3476 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3477 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3482 $as_echo "$ac_cv_target" >&6; }
3483 case $ac_cv_target in
3484 *-*-*) ;;
3485 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3486 esac
3487 target=$ac_cv_target
3488 ac_save_IFS=$IFS; IFS='-'
3489 set x $ac_cv_target
3490 shift
3491 target_cpu=$1
3492 target_vendor=$2
3493 shift; shift
3494 # Remember, the first character of IFS is used to create $*,
3495 # except with old shells:
3496 target_os=$*
3497 IFS=$ac_save_IFS
3498 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3501 # The aliases save the names the user supplied, while $host etc.
3502 # will get canonicalized.
3503 test -n "$target_alias" &&
3504 test "$program_prefix$program_suffix$program_transform_name" = \
3505 NONENONEs,x,x, &&
3506 program_prefix=${target_alias}-
3511 ac_ext=c
3512 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
3513 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
3514 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
3515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3516 if test -n "$ac_tool_prefix"; then
3517 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3518 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3520 $as_echo_n "checking for $ac_word... " >&6; }
3521 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
3522 $as_echo_n "(cached) " >&6
3523 else
3524 if test -n "$CC_FOR_BUILD"; then
3525 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
3526 else
3527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3528 for as_dir in $PATH
3530 IFS=$as_save_IFS
3531 test -z "$as_dir" && as_dir=.
3532 for ac_exec_ext in '' $ac_executable_extensions; do
3533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3534 ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}gcc"
3535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3536 break 2
3538 done
3539 done
3540 IFS=$as_save_IFS
3544 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
3545 if test -n "$CC_FOR_BUILD"; then
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
3547 $as_echo "$CC_FOR_BUILD" >&6; }
3548 else
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3550 $as_echo "no" >&6; }
3555 if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
3556 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
3557 # Extract the first word of "gcc", so it can be a program name with args.
3558 set dummy gcc; ac_word=$2
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3560 $as_echo_n "checking for $ac_word... " >&6; }
3561 if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
3562 $as_echo_n "(cached) " >&6
3563 else
3564 if test -n "$ac_ct_CC_FOR_BUILD"; then
3565 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
3566 else
3567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3568 for as_dir in $PATH
3570 IFS=$as_save_IFS
3571 test -z "$as_dir" && as_dir=.
3572 for ac_exec_ext in '' $ac_executable_extensions; do
3573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3574 ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
3575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3576 break 2
3578 done
3579 done
3580 IFS=$as_save_IFS
3584 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
3585 if test -n "$ac_ct_CC_FOR_BUILD"; then
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
3587 $as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
3588 else
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3590 $as_echo "no" >&6; }
3593 if test "x$ac_ct_CC_FOR_BUILD" = x; then
3594 CC_FOR_BUILD=""
3595 else
3596 case $#:$ac_tool_warned in
3597 yes:)
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
3599 $as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
3600 ac_tool_warned=yes ;;
3601 esac
3602 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
3604 else
3605 CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
3608 if test -z "$CC_FOR_BUILD"; then
3609 if test -n "$ac_tool_prefix"; then
3610 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3611 set dummy ${ac_tool_prefix}cc; ac_word=$2
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3613 $as_echo_n "checking for $ac_word... " >&6; }
3614 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
3615 $as_echo_n "(cached) " >&6
3616 else
3617 if test -n "$CC_FOR_BUILD"; then
3618 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
3619 else
3620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3621 for as_dir in $PATH
3623 IFS=$as_save_IFS
3624 test -z "$as_dir" && as_dir=.
3625 for ac_exec_ext in '' $ac_executable_extensions; do
3626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3627 ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}cc"
3628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3629 break 2
3631 done
3632 done
3633 IFS=$as_save_IFS
3637 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
3638 if test -n "$CC_FOR_BUILD"; then
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
3640 $as_echo "$CC_FOR_BUILD" >&6; }
3641 else
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3643 $as_echo "no" >&6; }
3649 if test -z "$CC_FOR_BUILD"; then
3650 # Extract the first word of "cc", so it can be a program name with args.
3651 set dummy cc; ac_word=$2
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3653 $as_echo_n "checking for $ac_word... " >&6; }
3654 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
3655 $as_echo_n "(cached) " >&6
3656 else
3657 if test -n "$CC_FOR_BUILD"; then
3658 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
3659 else
3660 ac_prog_rejected=no
3661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662 for as_dir in $PATH
3664 IFS=$as_save_IFS
3665 test -z "$as_dir" && as_dir=.
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3668 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3669 ac_prog_rejected=yes
3670 continue
3672 ac_cv_prog_CC_FOR_BUILD="cc"
3673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3674 break 2
3676 done
3677 done
3678 IFS=$as_save_IFS
3680 if test $ac_prog_rejected = yes; then
3681 # We found a bogon in the path, so make sure we never use it.
3682 set dummy $ac_cv_prog_CC_FOR_BUILD
3683 shift
3684 if test $# != 0; then
3685 # We chose a different compiler from the bogus one.
3686 # However, it has the same basename, so the bogon will be chosen
3687 # first if we set CC_FOR_BUILD to just the basename; use the full file name.
3688 shift
3689 ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
3694 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
3695 if test -n "$CC_FOR_BUILD"; then
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
3697 $as_echo "$CC_FOR_BUILD" >&6; }
3698 else
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3700 $as_echo "no" >&6; }
3705 if test -z "$CC_FOR_BUILD"; then
3706 if test -n "$ac_tool_prefix"; then
3707 for ac_prog in cl.exe
3709 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3710 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3712 $as_echo_n "checking for $ac_word... " >&6; }
3713 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
3714 $as_echo_n "(cached) " >&6
3715 else
3716 if test -n "$CC_FOR_BUILD"; then
3717 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
3718 else
3719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3720 for as_dir in $PATH
3722 IFS=$as_save_IFS
3723 test -z "$as_dir" && as_dir=.
3724 for ac_exec_ext in '' $ac_executable_extensions; do
3725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3726 ac_cv_prog_CC_FOR_BUILD="$ac_tool_prefix$ac_prog"
3727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3728 break 2
3730 done
3731 done
3732 IFS=$as_save_IFS
3736 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
3737 if test -n "$CC_FOR_BUILD"; then
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
3739 $as_echo "$CC_FOR_BUILD" >&6; }
3740 else
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3742 $as_echo "no" >&6; }
3746 test -n "$CC_FOR_BUILD" && break
3747 done
3749 if test -z "$CC_FOR_BUILD"; then
3750 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
3751 for ac_prog in cl.exe
3753 # Extract the first word of "$ac_prog", so it can be a program name with args.
3754 set dummy $ac_prog; ac_word=$2
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3756 $as_echo_n "checking for $ac_word... " >&6; }
3757 if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
3758 $as_echo_n "(cached) " >&6
3759 else
3760 if test -n "$ac_ct_CC_FOR_BUILD"; then
3761 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
3762 else
3763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3764 for as_dir in $PATH
3766 IFS=$as_save_IFS
3767 test -z "$as_dir" && as_dir=.
3768 for ac_exec_ext in '' $ac_executable_extensions; do
3769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3770 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
3771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3772 break 2
3774 done
3775 done
3776 IFS=$as_save_IFS
3780 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
3781 if test -n "$ac_ct_CC_FOR_BUILD"; then
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
3783 $as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
3784 else
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3786 $as_echo "no" >&6; }
3790 test -n "$ac_ct_CC_FOR_BUILD" && break
3791 done
3793 if test "x$ac_ct_CC_FOR_BUILD" = x; then
3794 CC_FOR_BUILD=""
3795 else
3796 case $#:$ac_tool_warned in
3797 yes:)
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
3799 $as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
3800 ac_tool_warned=yes ;;
3801 esac
3802 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
3809 test -z "$CC_FOR_BUILD" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3810 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3811 as_fn_error $? "no acceptable C compiler found in \$PATH
3812 See \`config.log' for more details" "$LINENO" 5; }
3814 # Provide some information about the compiler.
3815 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3816 set X $ac_build_compile
3817 ac_compiler=$2
3818 for ac_option in --version -v -V -qversion; do
3819 { { ac_try="$ac_compiler $ac_option >&5"
3820 case "(($ac_try" in
3821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3822 *) ac_try_echo=$ac_try;;
3823 esac
3824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3825 $as_echo "$ac_try_echo"; } >&5
3826 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3827 ac_status=$?
3828 if test -s conftest.err; then
3829 sed '10a\
3830 ... rest of stderr output deleted ...
3831 10q' conftest.err >conftest.er1
3832 cat conftest.er1 >&5
3834 rm -f conftest.er1 conftest.err
3835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3836 test $ac_status = 0; }
3837 done
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3840 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3841 if ${ac_cv_c_compiler_gnu+:} false; then :
3842 $as_echo_n "(cached) " >&6
3843 else
3844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3845 /* end confdefs.h. */
3848 main ()
3850 #ifndef __GNUC__
3851 choke me
3852 #endif
3855 return 0;
3857 _ACEOF
3858 if ac_fn_c_try_compile "$LINENO"; then :
3859 ac_compiler_gnu=yes
3860 else
3861 ac_compiler_gnu=no
3863 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
3864 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3868 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3869 if test $ac_compiler_gnu = yes; then
3870 GCC=yes
3871 else
3872 GCC=
3874 ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
3875 ac_save_CFLAGS=$CFLAGS_FOR_BUILD
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD accepts -g" >&5
3877 $as_echo_n "checking whether $CC_FOR_BUILD accepts -g... " >&6; }
3878 if ${ac_cv_build_prog_cc_g+:} false; then :
3879 $as_echo_n "(cached) " >&6
3880 else
3881 ac_save_c_werror_flag=$ac_c_werror_flag
3882 ac_c_werror_flag=yes
3883 ac_cv_build_prog_cc_g=no
3884 CFLAGS_FOR_BUILD="-g"
3885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3886 /* end confdefs.h. */
3889 main ()
3893 return 0;
3895 _ACEOF
3896 if ac_fn_c_try_compile "$LINENO"; then :
3897 ac_cv_build_prog_cc_g=yes
3898 else
3899 CFLAGS_FOR_BUILD=""
3900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3901 /* end confdefs.h. */
3904 main ()
3908 return 0;
3910 _ACEOF
3911 if ac_fn_c_try_compile "$LINENO"; then :
3913 else
3914 ac_c_werror_flag=$ac_save_c_werror_flag
3915 CFLAGS_FOR_BUILD="-g"
3916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3917 /* end confdefs.h. */
3920 main ()
3924 return 0;
3926 _ACEOF
3927 if ac_fn_c_try_compile "$LINENO"; then :
3928 ac_cv_build_prog_cc_g=yes
3930 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
3932 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
3934 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
3935 ac_c_werror_flag=$ac_save_c_werror_flag
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_g" >&5
3938 $as_echo "$ac_cv_build_prog_cc_g" >&6; }
3939 if test "$ac_test_CFLAGS" = set; then
3940 CFLAGS_FOR_BUILD=$ac_save_CFLAGS
3941 elif test $ac_cv_build_prog_cc_g = yes; then
3942 if test "$GCC" = yes; then
3943 CFLAGS_FOR_BUILD="-g -O2"
3944 else
3945 CFLAGS_FOR_BUILD="-g"
3947 else
3948 if test "$GCC" = yes; then
3949 CFLAGS_FOR_BUILD="-O2"
3950 else
3951 CFLAGS_FOR_BUILD=
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
3955 $as_echo_n "checking for $CC_FOR_BUILD option to accept ISO C89... " >&6; }
3956 if ${ac_cv_prog_cc_c89+:} false; then :
3957 $as_echo_n "(cached) " >&6
3958 else
3959 ac_cv_prog_cc_c89=no
3960 ac_save_CC=$CC_FOR_BUILD
3961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3962 /* end confdefs.h. */
3963 #include <stdarg.h>
3964 #include <stdio.h>
3965 struct stat;
3966 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3967 struct buf { int x; };
3968 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3969 static char *e (p, i)
3970 char **p;
3971 int i;
3973 return p[i];
3975 static char *f (char * (*g) (char **, int), char **p, ...)
3977 char *s;
3978 va_list v;
3979 va_start (v,p);
3980 s = g (p, va_arg (v,int));
3981 va_end (v);
3982 return s;
3985 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3986 function prototypes and stuff, but not '\xHH' hex character constants.
3987 These don't provoke an error unfortunately, instead are silently treated
3988 as 'x'. The following induces an error, until -std is added to get
3989 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3990 array size at least. It's necessary to write '\x00'==0 to get something
3991 that's true only with -std. */
3992 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3994 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3995 inside strings and character constants. */
3996 #define FOO(x) 'x'
3997 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3999 int test (int i, double x);
4000 struct s1 {int (*f) (int a);};
4001 struct s2 {int (*f) (double a);};
4002 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4003 int argc;
4004 char **argv;
4006 main ()
4008 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4010 return 0;
4012 _ACEOF
4013 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4014 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4016 CC_FOR_BUILD="$ac_save_CC $ac_arg"
4017 if ac_fn_c_try_compile "$LINENO"; then :
4018 ac_cv_prog_cc_c89=$ac_arg
4020 rm -f core conftest.err conftest.$ac_build_objext
4021 test "x$ac_cv_prog_cc_c89" != "xno" && break
4022 done
4023 rm -f conftest.$ac_ext
4024 CC_FOR_BUILD=$ac_save_CC
4027 # AC_CACHE_VAL
4028 case "x$ac_cv_prog_cc_c89" in
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4031 $as_echo "none needed" >&6; } ;;
4032 xno)
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4034 $as_echo "unsupported" >&6; } ;;
4036 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_prog_cc_c89"
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4038 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4039 esac
4040 if test "x$ac_cv_prog_cc_c89" != xno; then :
4044 ac_ext=c
4045 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
4046 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
4047 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
4048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4050 ac_ext=c
4051 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
4052 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
4053 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
4054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4056 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4057 # On Suns, sometimes $CPP names a directory.
4058 if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
4059 CPP_FOR_BUILD=
4061 if test -z "$CPP_FOR_BUILD"; then
4062 if ${ac_cv_build_prog_CPP+:} false; then :
4063 $as_echo_n "(cached) " >&6
4064 else
4065 # Double quotes because CPP needs to be expanded
4066 for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
4068 ac_preproc_ok=false
4069 for ac_c_preproc_warn_flag in '' yes
4071 # Use a header file that comes with gcc, so configuring glibc
4072 # with a fresh cross-compiler works.
4073 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4074 # <limits.h> exists even on freestanding compilers.
4075 # On the NeXT, cc -E runs the code through the compiler's parser,
4076 # not just through cpp. "Syntax error" is here to catch this case.
4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h. */
4079 #ifdef __STDC__
4080 # include <limits.h>
4081 #else
4082 # include <assert.h>
4083 #endif
4084 Syntax error
4085 _ACEOF
4086 if ac_fn_c_try_cpp "$LINENO"; then :
4088 else
4089 # Broken: fails on valid input.
4090 continue
4092 rm -f conftest.err conftest.i conftest.$ac_ext
4094 # OK, works on sane cases. Now check whether nonexistent headers
4095 # can be detected and how.
4096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097 /* end confdefs.h. */
4098 #include <ac_nonexistent.h>
4099 _ACEOF
4100 if ac_fn_c_try_cpp "$LINENO"; then :
4101 # Broken: success on invalid input.
4102 continue
4103 else
4104 # Passes both tests.
4105 ac_preproc_ok=:
4106 break
4108 rm -f conftest.err conftest.i conftest.$ac_ext
4110 done
4111 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4112 rm -f conftest.i conftest.err conftest.$ac_ext
4113 if $ac_preproc_ok; then :
4114 break
4117 done
4118 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
4121 CPP_FOR_BUILD=$ac_cv_build_prog_CPP
4122 else
4123 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5
4126 $as_echo "$CPP_FOR_BUILD" >&6; }
4127 ac_preproc_ok=false
4128 for ac_c_preproc_warn_flag in '' yes
4130 # Use a header file that comes with gcc, so configuring glibc
4131 # with a fresh cross-compiler works.
4132 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4133 # <limits.h> exists even on freestanding compilers.
4134 # On the NeXT, cc -E runs the code through the compiler's parser,
4135 # not just through cpp. "Syntax error" is here to catch this case.
4136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4137 /* end confdefs.h. */
4138 #ifdef __STDC__
4139 # include <limits.h>
4140 #else
4141 # include <assert.h>
4142 #endif
4143 Syntax error
4144 _ACEOF
4145 if ac_fn_c_try_cpp "$LINENO"; then :
4147 else
4148 # Broken: fails on valid input.
4149 continue
4151 rm -f conftest.err conftest.i conftest.$ac_ext
4153 # OK, works on sane cases. Now check whether nonexistent headers
4154 # can be detected and how.
4155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4156 /* end confdefs.h. */
4157 #include <ac_nonexistent.h>
4158 _ACEOF
4159 if ac_fn_c_try_cpp "$LINENO"; then :
4160 # Broken: success on invalid input.
4161 continue
4162 else
4163 # Passes both tests.
4164 ac_preproc_ok=:
4165 break
4167 rm -f conftest.err conftest.i conftest.$ac_ext
4169 done
4170 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4171 rm -f conftest.i conftest.err conftest.$ac_ext
4172 if $ac_preproc_ok; then :
4174 else
4175 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4176 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4177 as_fn_error $? "C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
4178 See \`config.log' for more details" "$LINENO" 5; }
4181 ac_ext=c
4182 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
4183 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
4184 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
4185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4190 BUILD_EXEEXT=$ac_build_exeext
4191 BUILD_OBJEXT=$ac_build_objext
4195 cat >>confdefs.h <<_ACEOF
4196 #define CONFIG_XENO_BUILD_STRING "$build"
4197 _ACEOF
4199 XENO_BUILD_STRING="$build"
4201 cat >>confdefs.h <<_ACEOF
4202 #define CONFIG_XENO_HOST_STRING "$host"
4203 _ACEOF
4205 XENO_HOST_STRING="$host"
4207 cat >>confdefs.h <<_ACEOF
4208 #define CONFIG_XENO_COMPILER "`$CC -v 2>&1 | tail -n 1`"
4209 _ACEOF
4212 am__api_version='1.11'
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4215 $as_echo_n "checking whether build environment is sane... " >&6; }
4216 # Just in case
4217 sleep 1
4218 echo timestamp > conftest.file
4219 # Reject unsafe characters in $srcdir or the absolute working directory
4220 # name. Accept space and tab only in the latter.
4221 am_lf='
4223 case `pwd` in
4224 *[\\\"\#\$\&\'\`$am_lf]*)
4225 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4226 esac
4227 case $srcdir in
4228 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4229 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4230 esac
4232 # Do `set' in a subshell so we don't clobber the current shell's
4233 # arguments. Must try -L first in case configure is actually a
4234 # symlink; some systems play weird games with the mod time of symlinks
4235 # (eg FreeBSD returns the mod time of the symlink's containing
4236 # directory).
4237 if (
4238 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4239 if test "$*" = "X"; then
4240 # -L didn't work.
4241 set X `ls -t "$srcdir/configure" conftest.file`
4243 rm -f conftest.file
4244 if test "$*" != "X $srcdir/configure conftest.file" \
4245 && test "$*" != "X conftest.file $srcdir/configure"; then
4247 # If neither matched, then we have a broken ls. This can happen
4248 # if, for instance, CONFIG_SHELL is bash and it inherits a
4249 # broken ls alias from the environment. This has actually
4250 # happened. Such a system could not be considered "sane".
4251 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4252 alias in your environment" "$LINENO" 5
4255 test "$2" = conftest.file
4257 then
4258 # Ok.
4260 else
4261 as_fn_error $? "newly created file is older than distributed files!
4262 Check your system clock" "$LINENO" 5
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4265 $as_echo "yes" >&6; }
4266 test "$program_prefix" != NONE &&
4267 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4268 # Use a double $ so make ignores it.
4269 test "$program_suffix" != NONE &&
4270 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4271 # Double any \ or $.
4272 # By default was `s,x,x', remove it if useless.
4273 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4274 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4276 # expand $ac_aux_dir to an absolute path
4277 am_aux_dir=`cd $ac_aux_dir && pwd`
4279 if test x"${MISSING+set}" != xset; then
4280 case $am_aux_dir in
4281 *\ * | *\ *)
4282 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4284 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4285 esac
4287 # Use eval to expand $SHELL
4288 if eval "$MISSING --run true"; then
4289 am_missing_run="$MISSING --run "
4290 else
4291 am_missing_run=
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4293 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4296 if test x"${install_sh}" != xset; then
4297 case $am_aux_dir in
4298 *\ * | *\ *)
4299 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4301 install_sh="\${SHELL} $am_aux_dir/install-sh"
4302 esac
4305 # Installed binaries are usually stripped using `strip' when the user
4306 # run `make install-strip'. However `strip' might not be the right
4307 # tool to use in cross-compilation environments, therefore Automake
4308 # will honor the `STRIP' environment variable to overrule this program.
4309 if test "$cross_compiling" != no; then
4310 if test -n "$ac_tool_prefix"; then
4311 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4312 set dummy ${ac_tool_prefix}strip; ac_word=$2
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4314 $as_echo_n "checking for $ac_word... " >&6; }
4315 if ${ac_cv_prog_STRIP+:} false; then :
4316 $as_echo_n "(cached) " >&6
4317 else
4318 if test -n "$STRIP"; then
4319 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4320 else
4321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322 for as_dir in $PATH
4324 IFS=$as_save_IFS
4325 test -z "$as_dir" && as_dir=.
4326 for ac_exec_ext in '' $ac_executable_extensions; do
4327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4328 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4330 break 2
4332 done
4333 done
4334 IFS=$as_save_IFS
4338 STRIP=$ac_cv_prog_STRIP
4339 if test -n "$STRIP"; then
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4341 $as_echo "$STRIP" >&6; }
4342 else
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4344 $as_echo "no" >&6; }
4349 if test -z "$ac_cv_prog_STRIP"; then
4350 ac_ct_STRIP=$STRIP
4351 # Extract the first word of "strip", so it can be a program name with args.
4352 set dummy strip; ac_word=$2
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4354 $as_echo_n "checking for $ac_word... " >&6; }
4355 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4356 $as_echo_n "(cached) " >&6
4357 else
4358 if test -n "$ac_ct_STRIP"; then
4359 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4360 else
4361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4362 for as_dir in $PATH
4364 IFS=$as_save_IFS
4365 test -z "$as_dir" && as_dir=.
4366 for ac_exec_ext in '' $ac_executable_extensions; do
4367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4368 ac_cv_prog_ac_ct_STRIP="strip"
4369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4370 break 2
4372 done
4373 done
4374 IFS=$as_save_IFS
4378 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4379 if test -n "$ac_ct_STRIP"; then
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4381 $as_echo "$ac_ct_STRIP" >&6; }
4382 else
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4384 $as_echo "no" >&6; }
4387 if test "x$ac_ct_STRIP" = x; then
4388 STRIP=":"
4389 else
4390 case $cross_compiling:$ac_tool_warned in
4391 yes:)
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4393 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4394 ac_tool_warned=yes ;;
4395 esac
4396 STRIP=$ac_ct_STRIP
4398 else
4399 STRIP="$ac_cv_prog_STRIP"
4403 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4406 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4407 if test -z "$MKDIR_P"; then
4408 if ${ac_cv_path_mkdir+:} false; then :
4409 $as_echo_n "(cached) " >&6
4410 else
4411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4414 IFS=$as_save_IFS
4415 test -z "$as_dir" && as_dir=.
4416 for ac_prog in mkdir gmkdir; do
4417 for ac_exec_ext in '' $ac_executable_extensions; do
4418 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4419 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4420 'mkdir (GNU coreutils) '* | \
4421 'mkdir (coreutils) '* | \
4422 'mkdir (fileutils) '4.1*)
4423 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4424 break 3;;
4425 esac
4426 done
4427 done
4428 done
4429 IFS=$as_save_IFS
4433 test -d ./--version && rmdir ./--version
4434 if test "${ac_cv_path_mkdir+set}" = set; then
4435 MKDIR_P="$ac_cv_path_mkdir -p"
4436 else
4437 # As a last resort, use the slow shell script. Don't cache a
4438 # value for MKDIR_P within a source directory, because that will
4439 # break other packages using the cache if that directory is
4440 # removed, or if the value is a relative name.
4441 MKDIR_P="$ac_install_sh -d"
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4445 $as_echo "$MKDIR_P" >&6; }
4447 mkdir_p="$MKDIR_P"
4448 case $mkdir_p in
4449 [\\/$]* | ?:[\\/]*) ;;
4450 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4451 esac
4453 for ac_prog in gawk mawk nawk awk
4455 # Extract the first word of "$ac_prog", so it can be a program name with args.
4456 set dummy $ac_prog; ac_word=$2
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4458 $as_echo_n "checking for $ac_word... " >&6; }
4459 if ${ac_cv_prog_AWK+:} false; then :
4460 $as_echo_n "(cached) " >&6
4461 else
4462 if test -n "$AWK"; then
4463 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4464 else
4465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466 for as_dir in $PATH
4468 IFS=$as_save_IFS
4469 test -z "$as_dir" && as_dir=.
4470 for ac_exec_ext in '' $ac_executable_extensions; do
4471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4472 ac_cv_prog_AWK="$ac_prog"
4473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4474 break 2
4476 done
4477 done
4478 IFS=$as_save_IFS
4482 AWK=$ac_cv_prog_AWK
4483 if test -n "$AWK"; then
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4485 $as_echo "$AWK" >&6; }
4486 else
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4488 $as_echo "no" >&6; }
4492 test -n "$AWK" && break
4493 done
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4496 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4497 set x ${MAKE-make}
4498 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4499 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4500 $as_echo_n "(cached) " >&6
4501 else
4502 cat >conftest.make <<\_ACEOF
4503 SHELL = /bin/sh
4504 all:
4505 @echo '@@@%%%=$(MAKE)=@@@%%%'
4506 _ACEOF
4507 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4508 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4509 *@@@%%%=?*=@@@%%%*)
4510 eval ac_cv_prog_make_${ac_make}_set=yes;;
4512 eval ac_cv_prog_make_${ac_make}_set=no;;
4513 esac
4514 rm -f conftest.make
4516 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4518 $as_echo "yes" >&6; }
4519 SET_MAKE=
4520 else
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4522 $as_echo "no" >&6; }
4523 SET_MAKE="MAKE=${MAKE-make}"
4526 rm -rf .tst 2>/dev/null
4527 mkdir .tst 2>/dev/null
4528 if test -d .tst; then
4529 am__leading_dot=.
4530 else
4531 am__leading_dot=_
4533 rmdir .tst 2>/dev/null
4535 DEPDIR="${am__leading_dot}deps"
4537 ac_config_commands="$ac_config_commands depfiles"
4540 am_make=${MAKE-make}
4541 cat > confinc << 'END'
4542 am__doit:
4543 @echo this is the am__doit target
4544 .PHONY: am__doit
4546 # If we don't find an include directive, just comment out the code.
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4548 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4549 am__include="#"
4550 am__quote=
4551 _am_result=none
4552 # First try GNU make style include.
4553 echo "include confinc" > confmf
4554 # Ignore all kinds of additional output from `make'.
4555 case `$am_make -s -f confmf 2> /dev/null` in #(
4556 *the\ am__doit\ target*)
4557 am__include=include
4558 am__quote=
4559 _am_result=GNU
4561 esac
4562 # Now try BSD make style include.
4563 if test "$am__include" = "#"; then
4564 echo '.include "confinc"' > confmf
4565 case `$am_make -s -f confmf 2> /dev/null` in #(
4566 *the\ am__doit\ target*)
4567 am__include=.include
4568 am__quote="\""
4569 _am_result=BSD
4571 esac
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4576 $as_echo "$_am_result" >&6; }
4577 rm -f confinc confmf
4579 # Check whether --enable-dependency-tracking was given.
4580 if test "${enable_dependency_tracking+set}" = set; then :
4581 enableval=$enable_dependency_tracking;
4584 if test "x$enable_dependency_tracking" != xno; then
4585 am_depcomp="$ac_aux_dir/depcomp"
4586 AMDEPBACKSLASH='\'
4587 am__nodep='_no'
4589 if test "x$enable_dependency_tracking" != xno; then
4590 AMDEP_TRUE=
4591 AMDEP_FALSE='#'
4592 else
4593 AMDEP_TRUE='#'
4594 AMDEP_FALSE=
4598 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4599 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4600 # is not polluted with repeated "-I."
4601 am__isrc=' -I$(srcdir)'
4602 # test to see if srcdir already configured
4603 if test -f $srcdir/config.status; then
4604 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4608 # test whether we have cygpath
4609 if test -z "$CYGPATH_W"; then
4610 if (cygpath --version) >/dev/null 2>/dev/null; then
4611 CYGPATH_W='cygpath -w'
4612 else
4613 CYGPATH_W=echo
4618 # Define the identity of the package.
4619 PACKAGE='xenomai'
4620 VERSION='2.6.5'
4623 cat >>confdefs.h <<_ACEOF
4624 #define PACKAGE "$PACKAGE"
4625 _ACEOF
4628 cat >>confdefs.h <<_ACEOF
4629 #define VERSION "$VERSION"
4630 _ACEOF
4632 # Some tools Automake needs.
4634 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4637 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4640 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4643 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4646 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4648 # We need awk for the "check" target. The system "awk" is bad on
4649 # some platforms.
4650 # Always define AMTAR for backward compatibility. Yes, it's still used
4651 # in the wild :-( We should find a proper way to deprecate it ...
4652 AMTAR='$${TAR-tar}'
4654 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4659 depcc="$CC" am_compiler_list=
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4662 $as_echo_n "checking dependency style of $depcc... " >&6; }
4663 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4664 $as_echo_n "(cached) " >&6
4665 else
4666 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4667 # We make a subdir and do the tests there. Otherwise we can end up
4668 # making bogus files that we don't know about and never remove. For
4669 # instance it was reported that on HP-UX the gcc test will end up
4670 # making a dummy file named `D' -- because `-MD' means `put the output
4671 # in D'.
4672 rm -rf conftest.dir
4673 mkdir conftest.dir
4674 # Copy depcomp to subdir because otherwise we won't find it if we're
4675 # using a relative directory.
4676 cp "$am_depcomp" conftest.dir
4677 cd conftest.dir
4678 # We will build objects and dependencies in a subdirectory because
4679 # it helps to detect inapplicable dependency modes. For instance
4680 # both Tru64's cc and ICC support -MD to output dependencies as a
4681 # side effect of compilation, but ICC will put the dependencies in
4682 # the current directory while Tru64 will put them in the object
4683 # directory.
4684 mkdir sub
4686 am_cv_CC_dependencies_compiler_type=none
4687 if test "$am_compiler_list" = ""; then
4688 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4690 am__universal=false
4691 case " $depcc " in #(
4692 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4693 esac
4695 for depmode in $am_compiler_list; do
4696 # Setup a source with many dependencies, because some compilers
4697 # like to wrap large dependency lists on column 80 (with \), and
4698 # we should not choose a depcomp mode which is confused by this.
4700 # We need to recreate these files for each test, as the compiler may
4701 # overwrite some of them when testing with obscure command lines.
4702 # This happens at least with the AIX C compiler.
4703 : > sub/conftest.c
4704 for i in 1 2 3 4 5 6; do
4705 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4706 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4707 # Solaris 8's {/usr,}/bin/sh.
4708 touch sub/conftst$i.h
4709 done
4710 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4712 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4713 # mode. It turns out that the SunPro C++ compiler does not properly
4714 # handle `-M -o', and we need to detect this. Also, some Intel
4715 # versions had trouble with output in subdirs
4716 am__obj=sub/conftest.${OBJEXT-o}
4717 am__minus_obj="-o $am__obj"
4718 case $depmode in
4719 gcc)
4720 # This depmode causes a compiler race in universal mode.
4721 test "$am__universal" = false || continue
4723 nosideeffect)
4724 # after this tag, mechanisms are not by side-effect, so they'll
4725 # only be used when explicitly requested
4726 if test "x$enable_dependency_tracking" = xyes; then
4727 continue
4728 else
4729 break
4732 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4733 # This compiler won't grok `-c -o', but also, the minuso test has
4734 # not run yet. These depmodes are late enough in the game, and
4735 # so weak that their functioning should not be impacted.
4736 am__obj=conftest.${OBJEXT-o}
4737 am__minus_obj=
4739 none) break ;;
4740 esac
4741 if depmode=$depmode \
4742 source=sub/conftest.c object=$am__obj \
4743 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4744 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4745 >/dev/null 2>conftest.err &&
4746 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4747 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4748 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4749 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4750 # icc doesn't choke on unknown options, it will just issue warnings
4751 # or remarks (even with -Werror). So we grep stderr for any message
4752 # that says an option was ignored or not supported.
4753 # When given -MP, icc 7.0 and 7.1 complain thusly:
4754 # icc: Command line warning: ignoring option '-M'; no argument required
4755 # The diagnosis changed in icc 8.0:
4756 # icc: Command line remark: option '-MP' not supported
4757 if (grep 'ignoring option' conftest.err ||
4758 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4759 am_cv_CC_dependencies_compiler_type=$depmode
4760 break
4763 done
4765 cd ..
4766 rm -rf conftest.dir
4767 else
4768 am_cv_CC_dependencies_compiler_type=none
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4773 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4774 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4777 test "x$enable_dependency_tracking" != xno \
4778 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4779 am__fastdepCC_TRUE=
4780 am__fastdepCC_FALSE='#'
4781 else
4782 am__fastdepCC_TRUE='#'
4783 am__fastdepCC_FALSE=
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4790 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4791 # Check whether --enable-maintainer-mode was given.
4792 if test "${enable_maintainer_mode+set}" = set; then :
4793 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4794 else
4795 USE_MAINTAINER_MODE=no
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4799 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4800 if test $USE_MAINTAINER_MODE = yes; then
4801 MAINTAINER_MODE_TRUE=
4802 MAINTAINER_MODE_FALSE='#'
4803 else
4804 MAINTAINER_MODE_TRUE='#'
4805 MAINTAINER_MODE_FALSE=
4808 MAINT=$MAINTAINER_MODE_TRUE
4811 # By default we simply use the C compiler to build assembly code.
4813 test "${CCAS+set}" = set || CCAS=$CC
4814 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4818 depcc="$CCAS" am_compiler_list=
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4821 $as_echo_n "checking dependency style of $depcc... " >&6; }
4822 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4823 $as_echo_n "(cached) " >&6
4824 else
4825 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4826 # We make a subdir and do the tests there. Otherwise we can end up
4827 # making bogus files that we don't know about and never remove. For
4828 # instance it was reported that on HP-UX the gcc test will end up
4829 # making a dummy file named `D' -- because `-MD' means `put the output
4830 # in D'.
4831 rm -rf conftest.dir
4832 mkdir conftest.dir
4833 # Copy depcomp to subdir because otherwise we won't find it if we're
4834 # using a relative directory.
4835 cp "$am_depcomp" conftest.dir
4836 cd conftest.dir
4837 # We will build objects and dependencies in a subdirectory because
4838 # it helps to detect inapplicable dependency modes. For instance
4839 # both Tru64's cc and ICC support -MD to output dependencies as a
4840 # side effect of compilation, but ICC will put the dependencies in
4841 # the current directory while Tru64 will put them in the object
4842 # directory.
4843 mkdir sub
4845 am_cv_CCAS_dependencies_compiler_type=none
4846 if test "$am_compiler_list" = ""; then
4847 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4849 am__universal=false
4852 for depmode in $am_compiler_list; do
4853 # Setup a source with many dependencies, because some compilers
4854 # like to wrap large dependency lists on column 80 (with \), and
4855 # we should not choose a depcomp mode which is confused by this.
4857 # We need to recreate these files for each test, as the compiler may
4858 # overwrite some of them when testing with obscure command lines.
4859 # This happens at least with the AIX C compiler.
4860 : > sub/conftest.c
4861 for i in 1 2 3 4 5 6; do
4862 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4863 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4864 # Solaris 8's {/usr,}/bin/sh.
4865 touch sub/conftst$i.h
4866 done
4867 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4869 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4870 # mode. It turns out that the SunPro C++ compiler does not properly
4871 # handle `-M -o', and we need to detect this. Also, some Intel
4872 # versions had trouble with output in subdirs
4873 am__obj=sub/conftest.${OBJEXT-o}
4874 am__minus_obj="-o $am__obj"
4875 case $depmode in
4876 gcc)
4877 # This depmode causes a compiler race in universal mode.
4878 test "$am__universal" = false || continue
4880 nosideeffect)
4881 # after this tag, mechanisms are not by side-effect, so they'll
4882 # only be used when explicitly requested
4883 if test "x$enable_dependency_tracking" = xyes; then
4884 continue
4885 else
4886 break
4889 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4890 # This compiler won't grok `-c -o', but also, the minuso test has
4891 # not run yet. These depmodes are late enough in the game, and
4892 # so weak that their functioning should not be impacted.
4893 am__obj=conftest.${OBJEXT-o}
4894 am__minus_obj=
4896 none) break ;;
4897 esac
4898 if depmode=$depmode \
4899 source=sub/conftest.c object=$am__obj \
4900 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4901 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4902 >/dev/null 2>conftest.err &&
4903 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4904 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4905 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4906 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4907 # icc doesn't choke on unknown options, it will just issue warnings
4908 # or remarks (even with -Werror). So we grep stderr for any message
4909 # that says an option was ignored or not supported.
4910 # When given -MP, icc 7.0 and 7.1 complain thusly:
4911 # icc: Command line warning: ignoring option '-M'; no argument required
4912 # The diagnosis changed in icc 8.0:
4913 # icc: Command line remark: option '-MP' not supported
4914 if (grep 'ignoring option' conftest.err ||
4915 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4916 am_cv_CCAS_dependencies_compiler_type=$depmode
4917 break
4920 done
4922 cd ..
4923 rm -rf conftest.dir
4924 else
4925 am_cv_CCAS_dependencies_compiler_type=none
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4930 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4931 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4934 test "x$enable_dependency_tracking" != xno \
4935 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4936 am__fastdepCCAS_TRUE=
4937 am__fastdepCCAS_FALSE='#'
4938 else
4939 am__fastdepCCAS_TRUE='#'
4940 am__fastdepCCAS_FALSE=
4945 for ac_prog in flex lex
4947 # Extract the first word of "$ac_prog", so it can be a program name with args.
4948 set dummy $ac_prog; ac_word=$2
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4950 $as_echo_n "checking for $ac_word... " >&6; }
4951 if ${ac_cv_prog_LEX+:} false; then :
4952 $as_echo_n "(cached) " >&6
4953 else
4954 if test -n "$LEX"; then
4955 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4956 else
4957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958 for as_dir in $PATH
4960 IFS=$as_save_IFS
4961 test -z "$as_dir" && as_dir=.
4962 for ac_exec_ext in '' $ac_executable_extensions; do
4963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4964 ac_cv_prog_LEX="$ac_prog"
4965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4966 break 2
4968 done
4969 done
4970 IFS=$as_save_IFS
4974 LEX=$ac_cv_prog_LEX
4975 if test -n "$LEX"; then
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4977 $as_echo "$LEX" >&6; }
4978 else
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4980 $as_echo "no" >&6; }
4984 test -n "$LEX" && break
4985 done
4986 test -n "$LEX" || LEX=":"
4988 if test "x$LEX" != "x:"; then
4989 cat >conftest.l <<_ACEOF
4991 a { ECHO; }
4992 b { REJECT; }
4993 c { yymore (); }
4994 d { yyless (1); }
4995 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
4996 yyless ((input () != 0)); }
4997 f { unput (yytext[0]); }
4998 . { BEGIN INITIAL; }
5000 #ifdef YYTEXT_POINTER
5001 extern char *yytext;
5002 #endif
5004 main (void)
5006 return ! yylex () + ! yywrap ();
5008 _ACEOF
5009 { { ac_try="$LEX conftest.l"
5010 case "(($ac_try" in
5011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5012 *) ac_try_echo=$ac_try;;
5013 esac
5014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5015 $as_echo "$ac_try_echo"; } >&5
5016 (eval "$LEX conftest.l") 2>&5
5017 ac_status=$?
5018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5019 test $ac_status = 0; }
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
5021 $as_echo_n "checking lex output file root... " >&6; }
5022 if ${ac_cv_prog_lex_root+:} false; then :
5023 $as_echo_n "(cached) " >&6
5024 else
5026 if test -f lex.yy.c; then
5027 ac_cv_prog_lex_root=lex.yy
5028 elif test -f lexyy.c; then
5029 ac_cv_prog_lex_root=lexyy
5030 else
5031 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
5035 $as_echo "$ac_cv_prog_lex_root" >&6; }
5036 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5038 if test -z "${LEXLIB+set}"; then
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
5040 $as_echo_n "checking lex library... " >&6; }
5041 if ${ac_cv_lib_lex+:} false; then :
5042 $as_echo_n "(cached) " >&6
5043 else
5045 ac_save_LIBS=$LIBS
5046 ac_cv_lib_lex='none needed'
5047 for ac_lib in '' -lfl -ll; do
5048 LIBS="$ac_lib $ac_save_LIBS"
5049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5050 /* end confdefs.h. */
5051 `cat $LEX_OUTPUT_ROOT.c`
5052 _ACEOF
5053 if ac_fn_c_try_link "$LINENO"; then :
5054 ac_cv_lib_lex=$ac_lib
5056 rm -f core conftest.err conftest.$ac_objext \
5057 conftest$ac_exeext conftest.$ac_ext
5058 test "$ac_cv_lib_lex" != 'none needed' && break
5059 done
5060 LIBS=$ac_save_LIBS
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
5064 $as_echo "$ac_cv_lib_lex" >&6; }
5065 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
5070 $as_echo_n "checking whether yytext is a pointer... " >&6; }
5071 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
5072 $as_echo_n "(cached) " >&6
5073 else
5074 # POSIX says lex can declare yytext either as a pointer or an array; the
5075 # default is implementation-dependent. Figure out which it is, since
5076 # not all implementations provide the %pointer and %array declarations.
5077 ac_cv_prog_lex_yytext_pointer=no
5078 ac_save_LIBS=$LIBS
5079 LIBS="$LEXLIB $ac_save_LIBS"
5080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5081 /* end confdefs.h. */
5083 #define YYTEXT_POINTER 1
5084 `cat $LEX_OUTPUT_ROOT.c`
5085 _ACEOF
5086 if ac_fn_c_try_link "$LINENO"; then :
5087 ac_cv_prog_lex_yytext_pointer=yes
5089 rm -f core conftest.err conftest.$ac_objext \
5090 conftest$ac_exeext conftest.$ac_ext
5091 LIBS=$ac_save_LIBS
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
5095 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
5096 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5098 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
5101 rm -f conftest.l $LEX_OUTPUT_ROOT.c
5104 if test "$LEX" = :; then
5105 LEX=${am_missing_run}flex
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target architecture" >&5
5109 $as_echo_n "checking for target architecture... " >&6; }
5111 CONFIG_XENO_FASTSYNCH=
5113 if test x$host_alias = x; then
5114 build_for=$host
5115 else
5116 build_for=$host_alias
5119 case "$build_for" in
5120 i*86*-*)
5121 XENO_TARGET_ARCH=x86
5122 CONFIG_XENO_FASTSYNCH=y
5123 CONFIG_XENO_DEFAULT_PERIOD=100000
5125 ppc-*)
5126 XENO_TARGET_ARCH=powerpc
5127 CONFIG_XENO_FASTSYNCH=y
5128 CONFIG_XENO_DEFAULT_PERIOD=100000
5130 powerpc-*|powerpc64-*|ppc64-*)
5131 XENO_TARGET_ARCH=powerpc
5132 CONFIG_XENO_FASTSYNCH=y
5133 CONFIG_XENO_DEFAULT_PERIOD=100000
5135 bfin-*|bfinnommu-*|blackfin-*)
5136 XENO_TARGET_ARCH=blackfin
5137 CONFIG_XENO_DEFAULT_PERIOD=100000
5139 arm*-*)
5140 XENO_TARGET_ARCH=arm
5141 CONFIG_XENO_DEFAULT_PERIOD=1000000
5142 # We set CONFIG_XENO_FASTSYNCH in asm/features.h, when we know
5143 # what architecture we are running
5145 x86_64-*|amd64-*)
5146 XENO_TARGET_ARCH=x86
5147 CONFIG_XENO_FASTSYNCH=y
5148 CONFIG_XENO_DEFAULT_PERIOD=100000
5150 nios2-*)
5151 XENO_TARGET_ARCH=nios2
5152 CONFIG_XENO_DEFAULT_PERIOD=10000000
5154 sh-*|sh4-*)
5155 XENO_TARGET_ARCH=sh
5156 CONFIG_XENO_DEFAULT_PERIOD=100000
5158 *) echo ""
5159 echo "*******************************************"
5160 echo "Still unsupported target: $build_for -- Sorry."
5161 echo "*******************************************"
5162 echo ""
5163 exit 1;;
5164 esac
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XENO_TARGET_ARCH" >&5
5167 $as_echo "$XENO_TARGET_ARCH" >&6; }
5168 if test $XENO_TARGET_ARCH = x86; then
5169 XENO_TARGET_ARCH_X86_TRUE=
5170 XENO_TARGET_ARCH_X86_FALSE='#'
5171 else
5172 XENO_TARGET_ARCH_X86_TRUE='#'
5173 XENO_TARGET_ARCH_X86_FALSE=
5177 case "$XENO_TARGET_ARCH" in
5178 nios2)
5179 # Check whether --enable-shared was given.
5180 if test "${enable_shared+set}" = set; then :
5181 enableval=$enable_shared; p=${PACKAGE-default}
5182 case $enableval in
5183 yes) enable_shared=yes ;;
5184 no) enable_shared=no ;;
5186 enable_shared=no
5187 # Look at the argument we got. We use all the common list separators.
5188 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5189 for pkg in $enableval; do
5190 IFS="$lt_save_ifs"
5191 if test "X$pkg" = "X$p"; then
5192 enable_shared=yes
5194 done
5195 IFS="$lt_save_ifs"
5197 esac
5198 else
5199 enable_shared=no
5212 # Check whether --enable-shared was given.
5213 if test "${enable_shared+set}" = set; then :
5214 enableval=$enable_shared; p=${PACKAGE-default}
5215 case $enableval in
5216 yes) enable_shared=yes ;;
5217 no) enable_shared=no ;;
5219 enable_shared=no
5220 # Look at the argument we got. We use all the common list separators.
5221 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5222 for pkg in $enableval; do
5223 IFS="$lt_save_ifs"
5224 if test "X$pkg" = "X$p"; then
5225 enable_shared=yes
5227 done
5228 IFS="$lt_save_ifs"
5230 esac
5231 else
5232 enable_shared=yes
5241 esac
5242 case `pwd` in
5243 *\ * | *\ *)
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5245 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5246 esac
5250 macro_version='2.4.2'
5251 macro_revision='1.3337'
5265 ltmain="$ac_aux_dir/ltmain.sh"
5267 # Backslashify metacharacters that are still active within
5268 # double-quoted strings.
5269 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5271 # Same as above, but do not quote variable references.
5272 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5274 # Sed substitution to delay expansion of an escaped shell variable in a
5275 # double_quote_subst'ed string.
5276 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5278 # Sed substitution to delay expansion of an escaped single quote.
5279 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5281 # Sed substitution to avoid accidental globbing in evaled expressions
5282 no_glob_subst='s/\*/\\\*/g'
5284 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5285 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5286 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5289 $as_echo_n "checking how to print strings... " >&6; }
5290 # Test print first, because it will be a builtin if present.
5291 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5292 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5293 ECHO='print -r --'
5294 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5295 ECHO='printf %s\n'
5296 else
5297 # Use this function as a fallback that always works.
5298 func_fallback_echo ()
5300 eval 'cat <<_LTECHO_EOF
5302 _LTECHO_EOF'
5304 ECHO='func_fallback_echo'
5307 # func_echo_all arg...
5308 # Invoke $ECHO with all args, space-separated.
5309 func_echo_all ()
5311 $ECHO ""
5314 case "$ECHO" in
5315 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5316 $as_echo "printf" >&6; } ;;
5317 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5318 $as_echo "print -r" >&6; } ;;
5319 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5320 $as_echo "cat" >&6; } ;;
5321 esac
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5337 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5338 if ${ac_cv_path_SED+:} false; then :
5339 $as_echo_n "(cached) " >&6
5340 else
5341 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5342 for ac_i in 1 2 3 4 5 6 7; do
5343 ac_script="$ac_script$as_nl$ac_script"
5344 done
5345 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5346 { ac_script=; unset ac_script;}
5347 if test -z "$SED"; then
5348 ac_path_SED_found=false
5349 # Loop through the user's path and test for each of PROGNAME-LIST
5350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5351 for as_dir in $PATH
5353 IFS=$as_save_IFS
5354 test -z "$as_dir" && as_dir=.
5355 for ac_prog in sed gsed; do
5356 for ac_exec_ext in '' $ac_executable_extensions; do
5357 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5358 as_fn_executable_p "$ac_path_SED" || continue
5359 # Check for GNU ac_path_SED and select it if it is found.
5360 # Check for GNU $ac_path_SED
5361 case `"$ac_path_SED" --version 2>&1` in
5362 *GNU*)
5363 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5365 ac_count=0
5366 $as_echo_n 0123456789 >"conftest.in"
5367 while :
5369 cat "conftest.in" "conftest.in" >"conftest.tmp"
5370 mv "conftest.tmp" "conftest.in"
5371 cp "conftest.in" "conftest.nl"
5372 $as_echo '' >> "conftest.nl"
5373 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5374 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5375 as_fn_arith $ac_count + 1 && ac_count=$as_val
5376 if test $ac_count -gt ${ac_path_SED_max-0}; then
5377 # Best one so far, save it but keep looking for a better one
5378 ac_cv_path_SED="$ac_path_SED"
5379 ac_path_SED_max=$ac_count
5381 # 10*(2^10) chars as input seems more than enough
5382 test $ac_count -gt 10 && break
5383 done
5384 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5385 esac
5387 $ac_path_SED_found && break 3
5388 done
5389 done
5390 done
5391 IFS=$as_save_IFS
5392 if test -z "$ac_cv_path_SED"; then
5393 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5395 else
5396 ac_cv_path_SED=$SED
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5401 $as_echo "$ac_cv_path_SED" >&6; }
5402 SED="$ac_cv_path_SED"
5403 rm -f conftest.sed
5405 test -z "$SED" && SED=sed
5406 Xsed="$SED -e 1s/^X//"
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5419 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5420 if ${ac_cv_path_GREP+:} false; then :
5421 $as_echo_n "(cached) " >&6
5422 else
5423 if test -z "$GREP"; then
5424 ac_path_GREP_found=false
5425 # Loop through the user's path and test for each of PROGNAME-LIST
5426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5427 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5429 IFS=$as_save_IFS
5430 test -z "$as_dir" && as_dir=.
5431 for ac_prog in grep ggrep; do
5432 for ac_exec_ext in '' $ac_executable_extensions; do
5433 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5434 as_fn_executable_p "$ac_path_GREP" || continue
5435 # Check for GNU ac_path_GREP and select it if it is found.
5436 # Check for GNU $ac_path_GREP
5437 case `"$ac_path_GREP" --version 2>&1` in
5438 *GNU*)
5439 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5441 ac_count=0
5442 $as_echo_n 0123456789 >"conftest.in"
5443 while :
5445 cat "conftest.in" "conftest.in" >"conftest.tmp"
5446 mv "conftest.tmp" "conftest.in"
5447 cp "conftest.in" "conftest.nl"
5448 $as_echo 'GREP' >> "conftest.nl"
5449 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5450 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5451 as_fn_arith $ac_count + 1 && ac_count=$as_val
5452 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5453 # Best one so far, save it but keep looking for a better one
5454 ac_cv_path_GREP="$ac_path_GREP"
5455 ac_path_GREP_max=$ac_count
5457 # 10*(2^10) chars as input seems more than enough
5458 test $ac_count -gt 10 && break
5459 done
5460 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5461 esac
5463 $ac_path_GREP_found && break 3
5464 done
5465 done
5466 done
5467 IFS=$as_save_IFS
5468 if test -z "$ac_cv_path_GREP"; then
5469 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5471 else
5472 ac_cv_path_GREP=$GREP
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5477 $as_echo "$ac_cv_path_GREP" >&6; }
5478 GREP="$ac_cv_path_GREP"
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5482 $as_echo_n "checking for egrep... " >&6; }
5483 if ${ac_cv_path_EGREP+:} false; then :
5484 $as_echo_n "(cached) " >&6
5485 else
5486 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5487 then ac_cv_path_EGREP="$GREP -E"
5488 else
5489 if test -z "$EGREP"; then
5490 ac_path_EGREP_found=false
5491 # Loop through the user's path and test for each of PROGNAME-LIST
5492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5493 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5495 IFS=$as_save_IFS
5496 test -z "$as_dir" && as_dir=.
5497 for ac_prog in egrep; do
5498 for ac_exec_ext in '' $ac_executable_extensions; do
5499 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5500 as_fn_executable_p "$ac_path_EGREP" || continue
5501 # Check for GNU ac_path_EGREP and select it if it is found.
5502 # Check for GNU $ac_path_EGREP
5503 case `"$ac_path_EGREP" --version 2>&1` in
5504 *GNU*)
5505 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5507 ac_count=0
5508 $as_echo_n 0123456789 >"conftest.in"
5509 while :
5511 cat "conftest.in" "conftest.in" >"conftest.tmp"
5512 mv "conftest.tmp" "conftest.in"
5513 cp "conftest.in" "conftest.nl"
5514 $as_echo 'EGREP' >> "conftest.nl"
5515 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5516 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5517 as_fn_arith $ac_count + 1 && ac_count=$as_val
5518 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5519 # Best one so far, save it but keep looking for a better one
5520 ac_cv_path_EGREP="$ac_path_EGREP"
5521 ac_path_EGREP_max=$ac_count
5523 # 10*(2^10) chars as input seems more than enough
5524 test $ac_count -gt 10 && break
5525 done
5526 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5527 esac
5529 $ac_path_EGREP_found && break 3
5530 done
5531 done
5532 done
5533 IFS=$as_save_IFS
5534 if test -z "$ac_cv_path_EGREP"; then
5535 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5537 else
5538 ac_cv_path_EGREP=$EGREP
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5544 $as_echo "$ac_cv_path_EGREP" >&6; }
5545 EGREP="$ac_cv_path_EGREP"
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5549 $as_echo_n "checking for fgrep... " >&6; }
5550 if ${ac_cv_path_FGREP+:} false; then :
5551 $as_echo_n "(cached) " >&6
5552 else
5553 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5554 then ac_cv_path_FGREP="$GREP -F"
5555 else
5556 if test -z "$FGREP"; then
5557 ac_path_FGREP_found=false
5558 # Loop through the user's path and test for each of PROGNAME-LIST
5559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5560 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5562 IFS=$as_save_IFS
5563 test -z "$as_dir" && as_dir=.
5564 for ac_prog in fgrep; do
5565 for ac_exec_ext in '' $ac_executable_extensions; do
5566 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5567 as_fn_executable_p "$ac_path_FGREP" || continue
5568 # Check for GNU ac_path_FGREP and select it if it is found.
5569 # Check for GNU $ac_path_FGREP
5570 case `"$ac_path_FGREP" --version 2>&1` in
5571 *GNU*)
5572 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5574 ac_count=0
5575 $as_echo_n 0123456789 >"conftest.in"
5576 while :
5578 cat "conftest.in" "conftest.in" >"conftest.tmp"
5579 mv "conftest.tmp" "conftest.in"
5580 cp "conftest.in" "conftest.nl"
5581 $as_echo 'FGREP' >> "conftest.nl"
5582 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5583 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5584 as_fn_arith $ac_count + 1 && ac_count=$as_val
5585 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5586 # Best one so far, save it but keep looking for a better one
5587 ac_cv_path_FGREP="$ac_path_FGREP"
5588 ac_path_FGREP_max=$ac_count
5590 # 10*(2^10) chars as input seems more than enough
5591 test $ac_count -gt 10 && break
5592 done
5593 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5594 esac
5596 $ac_path_FGREP_found && break 3
5597 done
5598 done
5599 done
5600 IFS=$as_save_IFS
5601 if test -z "$ac_cv_path_FGREP"; then
5602 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5604 else
5605 ac_cv_path_FGREP=$FGREP
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5611 $as_echo "$ac_cv_path_FGREP" >&6; }
5612 FGREP="$ac_cv_path_FGREP"
5615 test -z "$GREP" && GREP=grep
5635 # Check whether --with-gnu-ld was given.
5636 if test "${with_gnu_ld+set}" = set; then :
5637 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5638 else
5639 with_gnu_ld=no
5642 ac_prog=ld
5643 if test "$GCC" = yes; then
5644 # Check if gcc -print-prog-name=ld gives a path.
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5646 $as_echo_n "checking for ld used by $CC... " >&6; }
5647 case $host in
5648 *-*-mingw*)
5649 # gcc leaves a trailing carriage return which upsets mingw
5650 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5652 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5653 esac
5654 case $ac_prog in
5655 # Accept absolute paths.
5656 [\\/]* | ?:[\\/]*)
5657 re_direlt='/[^/][^/]*/\.\./'
5658 # Canonicalize the pathname of ld
5659 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5660 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5661 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5662 done
5663 test -z "$LD" && LD="$ac_prog"
5666 # If it fails, then pretend we aren't using GCC.
5667 ac_prog=ld
5670 # If it is relative, then search for the first ld in PATH.
5671 with_gnu_ld=unknown
5673 esac
5674 elif test "$with_gnu_ld" = yes; then
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5676 $as_echo_n "checking for GNU ld... " >&6; }
5677 else
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5679 $as_echo_n "checking for non-GNU ld... " >&6; }
5681 if ${lt_cv_path_LD+:} false; then :
5682 $as_echo_n "(cached) " >&6
5683 else
5684 if test -z "$LD"; then
5685 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5686 for ac_dir in $PATH; do
5687 IFS="$lt_save_ifs"
5688 test -z "$ac_dir" && ac_dir=.
5689 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5690 lt_cv_path_LD="$ac_dir/$ac_prog"
5691 # Check to see if the program is GNU ld. I'd rather use --version,
5692 # but apparently some variants of GNU ld only accept -v.
5693 # Break only if it was the GNU/non-GNU ld that we prefer.
5694 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5695 *GNU* | *'with BFD'*)
5696 test "$with_gnu_ld" != no && break
5699 test "$with_gnu_ld" != yes && break
5701 esac
5703 done
5704 IFS="$lt_save_ifs"
5705 else
5706 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5710 LD="$lt_cv_path_LD"
5711 if test -n "$LD"; then
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5713 $as_echo "$LD" >&6; }
5714 else
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5716 $as_echo "no" >&6; }
5718 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5720 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5721 if ${lt_cv_prog_gnu_ld+:} false; then :
5722 $as_echo_n "(cached) " >&6
5723 else
5724 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5725 case `$LD -v 2>&1 </dev/null` in
5726 *GNU* | *'with BFD'*)
5727 lt_cv_prog_gnu_ld=yes
5730 lt_cv_prog_gnu_ld=no
5732 esac
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5735 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5736 with_gnu_ld=$lt_cv_prog_gnu_ld
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5747 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5748 if ${lt_cv_path_NM+:} false; then :
5749 $as_echo_n "(cached) " >&6
5750 else
5751 if test -n "$NM"; then
5752 # Let the user override the test.
5753 lt_cv_path_NM="$NM"
5754 else
5755 lt_nm_to_check="${ac_tool_prefix}nm"
5756 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5757 lt_nm_to_check="$lt_nm_to_check nm"
5759 for lt_tmp_nm in $lt_nm_to_check; do
5760 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5761 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5762 IFS="$lt_save_ifs"
5763 test -z "$ac_dir" && ac_dir=.
5764 tmp_nm="$ac_dir/$lt_tmp_nm"
5765 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5766 # Check to see if the nm accepts a BSD-compat flag.
5767 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5768 # nm: unknown option "B" ignored
5769 # Tru64's nm complains that /dev/null is an invalid object file
5770 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5771 */dev/null* | *'Invalid file or object type'*)
5772 lt_cv_path_NM="$tmp_nm -B"
5773 break
5776 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5777 */dev/null*)
5778 lt_cv_path_NM="$tmp_nm -p"
5779 break
5782 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5783 continue # so that we can try to find one that supports BSD flags
5785 esac
5787 esac
5789 done
5790 IFS="$lt_save_ifs"
5791 done
5792 : ${lt_cv_path_NM=no}
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5796 $as_echo "$lt_cv_path_NM" >&6; }
5797 if test "$lt_cv_path_NM" != "no"; then
5798 NM="$lt_cv_path_NM"
5799 else
5800 # Didn't find any BSD compatible name lister, look for dumpbin.
5801 if test -n "$DUMPBIN"; then :
5802 # Let the user override the test.
5803 else
5804 if test -n "$ac_tool_prefix"; then
5805 for ac_prog in dumpbin "link -dump"
5807 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5808 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5810 $as_echo_n "checking for $ac_word... " >&6; }
5811 if ${ac_cv_prog_DUMPBIN+:} false; then :
5812 $as_echo_n "(cached) " >&6
5813 else
5814 if test -n "$DUMPBIN"; then
5815 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5816 else
5817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818 for as_dir in $PATH
5820 IFS=$as_save_IFS
5821 test -z "$as_dir" && as_dir=.
5822 for ac_exec_ext in '' $ac_executable_extensions; do
5823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5824 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5826 break 2
5828 done
5829 done
5830 IFS=$as_save_IFS
5834 DUMPBIN=$ac_cv_prog_DUMPBIN
5835 if test -n "$DUMPBIN"; then
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5837 $as_echo "$DUMPBIN" >&6; }
5838 else
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5840 $as_echo "no" >&6; }
5844 test -n "$DUMPBIN" && break
5845 done
5847 if test -z "$DUMPBIN"; then
5848 ac_ct_DUMPBIN=$DUMPBIN
5849 for ac_prog in dumpbin "link -dump"
5851 # Extract the first word of "$ac_prog", so it can be a program name with args.
5852 set dummy $ac_prog; ac_word=$2
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5854 $as_echo_n "checking for $ac_word... " >&6; }
5855 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5856 $as_echo_n "(cached) " >&6
5857 else
5858 if test -n "$ac_ct_DUMPBIN"; then
5859 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5860 else
5861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862 for as_dir in $PATH
5864 IFS=$as_save_IFS
5865 test -z "$as_dir" && as_dir=.
5866 for ac_exec_ext in '' $ac_executable_extensions; do
5867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5868 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5870 break 2
5872 done
5873 done
5874 IFS=$as_save_IFS
5878 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5879 if test -n "$ac_ct_DUMPBIN"; then
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5881 $as_echo "$ac_ct_DUMPBIN" >&6; }
5882 else
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5884 $as_echo "no" >&6; }
5888 test -n "$ac_ct_DUMPBIN" && break
5889 done
5891 if test "x$ac_ct_DUMPBIN" = x; then
5892 DUMPBIN=":"
5893 else
5894 case $cross_compiling:$ac_tool_warned in
5895 yes:)
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5897 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5898 ac_tool_warned=yes ;;
5899 esac
5900 DUMPBIN=$ac_ct_DUMPBIN
5904 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5905 *COFF*)
5906 DUMPBIN="$DUMPBIN -symbols"
5909 DUMPBIN=:
5911 esac
5914 if test "$DUMPBIN" != ":"; then
5915 NM="$DUMPBIN"
5918 test -z "$NM" && NM=nm
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5926 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5927 if ${lt_cv_nm_interface+:} false; then :
5928 $as_echo_n "(cached) " >&6
5929 else
5930 lt_cv_nm_interface="BSD nm"
5931 echo "int some_variable = 0;" > conftest.$ac_ext
5932 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5933 (eval "$ac_compile" 2>conftest.err)
5934 cat conftest.err >&5
5935 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5936 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5937 cat conftest.err >&5
5938 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5939 cat conftest.out >&5
5940 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5941 lt_cv_nm_interface="MS dumpbin"
5943 rm -f conftest*
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5946 $as_echo "$lt_cv_nm_interface" >&6; }
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5949 $as_echo_n "checking whether ln -s works... " >&6; }
5950 LN_S=$as_ln_s
5951 if test "$LN_S" = "ln -s"; then
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5953 $as_echo "yes" >&6; }
5954 else
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5956 $as_echo "no, using $LN_S" >&6; }
5959 # find the maximum length of command line arguments
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5961 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5962 if ${lt_cv_sys_max_cmd_len+:} false; then :
5963 $as_echo_n "(cached) " >&6
5964 else
5966 teststring="ABCD"
5968 case $build_os in
5969 msdosdjgpp*)
5970 # On DJGPP, this test can blow up pretty badly due to problems in libc
5971 # (any single argument exceeding 2000 bytes causes a buffer overrun
5972 # during glob expansion). Even if it were fixed, the result of this
5973 # check would be larger than it should be.
5974 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5977 gnu*)
5978 # Under GNU Hurd, this test is not required because there is
5979 # no limit to the length of command line arguments.
5980 # Libtool will interpret -1 as no limit whatsoever
5981 lt_cv_sys_max_cmd_len=-1;
5984 cygwin* | mingw* | cegcc*)
5985 # On Win9x/ME, this test blows up -- it succeeds, but takes
5986 # about 5 minutes as the teststring grows exponentially.
5987 # Worse, since 9x/ME are not pre-emptively multitasking,
5988 # you end up with a "frozen" computer, even though with patience
5989 # the test eventually succeeds (with a max line length of 256k).
5990 # Instead, let's just punt: use the minimum linelength reported by
5991 # all of the supported platforms: 8192 (on NT/2K/XP).
5992 lt_cv_sys_max_cmd_len=8192;
5995 mint*)
5996 # On MiNT this can take a long time and run out of memory.
5997 lt_cv_sys_max_cmd_len=8192;
6000 amigaos*)
6001 # On AmigaOS with pdksh, this test takes hours, literally.
6002 # So we just punt and use a minimum line length of 8192.
6003 lt_cv_sys_max_cmd_len=8192;
6006 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6007 # This has been around since 386BSD, at least. Likely further.
6008 if test -x /sbin/sysctl; then
6009 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6010 elif test -x /usr/sbin/sysctl; then
6011 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6012 else
6013 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6015 # And add a safety zone
6016 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6017 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6020 interix*)
6021 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6022 lt_cv_sys_max_cmd_len=196608
6025 os2*)
6026 # The test takes a long time on OS/2.
6027 lt_cv_sys_max_cmd_len=8192
6030 osf*)
6031 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6032 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6033 # nice to cause kernel panics so lets avoid the loop below.
6034 # First set a reasonable default.
6035 lt_cv_sys_max_cmd_len=16384
6037 if test -x /sbin/sysconfig; then
6038 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6039 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6040 esac
6043 sco3.2v5*)
6044 lt_cv_sys_max_cmd_len=102400
6046 sysv5* | sco5v6* | sysv4.2uw2*)
6047 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6048 if test -n "$kargmax"; then
6049 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6050 else
6051 lt_cv_sys_max_cmd_len=32768
6055 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6056 if test -n "$lt_cv_sys_max_cmd_len"; then
6057 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6058 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6059 else
6060 # Make teststring a little bigger before we do anything with it.
6061 # a 1K string should be a reasonable start.
6062 for i in 1 2 3 4 5 6 7 8 ; do
6063 teststring=$teststring$teststring
6064 done
6065 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6066 # If test is not a shell built-in, we'll probably end up computing a
6067 # maximum length that is only half of the actual maximum length, but
6068 # we can't tell.
6069 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6070 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6071 test $i != 17 # 1/2 MB should be enough
6073 i=`expr $i + 1`
6074 teststring=$teststring$teststring
6075 done
6076 # Only check the string length outside the loop.
6077 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6078 teststring=
6079 # Add a significant safety factor because C++ compilers can tack on
6080 # massive amounts of additional arguments before passing them to the
6081 # linker. It appears as though 1/2 is a usable value.
6082 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6085 esac
6089 if test -n $lt_cv_sys_max_cmd_len ; then
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6091 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6092 else
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6094 $as_echo "none" >&6; }
6096 max_cmd_len=$lt_cv_sys_max_cmd_len
6103 : ${CP="cp -f"}
6104 : ${MV="mv -f"}
6105 : ${RM="rm -f"}
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6108 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6109 # Try some XSI features
6110 xsi_shell=no
6111 ( _lt_dummy="a/b/c"
6112 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6113 = c,a/b,b/c, \
6114 && eval 'test $(( 1 + 1 )) -eq 2 \
6115 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6116 && xsi_shell=yes
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6118 $as_echo "$xsi_shell" >&6; }
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6122 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6123 lt_shell_append=no
6124 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6125 >/dev/null 2>&1 \
6126 && lt_shell_append=yes
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6128 $as_echo "$lt_shell_append" >&6; }
6131 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6132 lt_unset=unset
6133 else
6134 lt_unset=false
6141 # test EBCDIC or ASCII
6142 case `echo X|tr X '\101'` in
6143 A) # ASCII based system
6144 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6145 lt_SP2NL='tr \040 \012'
6146 lt_NL2SP='tr \015\012 \040\040'
6148 *) # EBCDIC based system
6149 lt_SP2NL='tr \100 \n'
6150 lt_NL2SP='tr \r\n \100\100'
6152 esac
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6163 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6164 if ${lt_cv_to_host_file_cmd+:} false; then :
6165 $as_echo_n "(cached) " >&6
6166 else
6167 case $host in
6168 *-*-mingw* )
6169 case $build in
6170 *-*-mingw* ) # actually msys
6171 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6173 *-*-cygwin* )
6174 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6176 * ) # otherwise, assume *nix
6177 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6179 esac
6181 *-*-cygwin* )
6182 case $build in
6183 *-*-mingw* ) # actually msys
6184 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6186 *-*-cygwin* )
6187 lt_cv_to_host_file_cmd=func_convert_file_noop
6189 * ) # otherwise, assume *nix
6190 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6192 esac
6194 * ) # unhandled hosts (and "normal" native builds)
6195 lt_cv_to_host_file_cmd=func_convert_file_noop
6197 esac
6201 to_host_file_cmd=$lt_cv_to_host_file_cmd
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6203 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6210 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6211 if ${lt_cv_to_tool_file_cmd+:} false; then :
6212 $as_echo_n "(cached) " >&6
6213 else
6214 #assume ordinary cross tools, or native build.
6215 lt_cv_to_tool_file_cmd=func_convert_file_noop
6216 case $host in
6217 *-*-mingw* )
6218 case $build in
6219 *-*-mingw* ) # actually msys
6220 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6222 esac
6224 esac
6228 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6230 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6237 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6238 if ${lt_cv_ld_reload_flag+:} false; then :
6239 $as_echo_n "(cached) " >&6
6240 else
6241 lt_cv_ld_reload_flag='-r'
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6244 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6245 reload_flag=$lt_cv_ld_reload_flag
6246 case $reload_flag in
6247 "" | " "*) ;;
6248 *) reload_flag=" $reload_flag" ;;
6249 esac
6250 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6251 case $host_os in
6252 cygwin* | mingw* | pw32* | cegcc*)
6253 if test "$GCC" != yes; then
6254 reload_cmds=false
6257 darwin*)
6258 if test "$GCC" = yes; then
6259 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6260 else
6261 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6264 esac
6274 if test -n "$ac_tool_prefix"; then
6275 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6276 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6278 $as_echo_n "checking for $ac_word... " >&6; }
6279 if ${ac_cv_prog_OBJDUMP+:} false; then :
6280 $as_echo_n "(cached) " >&6
6281 else
6282 if test -n "$OBJDUMP"; then
6283 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6284 else
6285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6286 for as_dir in $PATH
6288 IFS=$as_save_IFS
6289 test -z "$as_dir" && as_dir=.
6290 for ac_exec_ext in '' $ac_executable_extensions; do
6291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6292 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6294 break 2
6296 done
6297 done
6298 IFS=$as_save_IFS
6302 OBJDUMP=$ac_cv_prog_OBJDUMP
6303 if test -n "$OBJDUMP"; then
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6305 $as_echo "$OBJDUMP" >&6; }
6306 else
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6308 $as_echo "no" >&6; }
6313 if test -z "$ac_cv_prog_OBJDUMP"; then
6314 ac_ct_OBJDUMP=$OBJDUMP
6315 # Extract the first word of "objdump", so it can be a program name with args.
6316 set dummy objdump; ac_word=$2
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6318 $as_echo_n "checking for $ac_word... " >&6; }
6319 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6320 $as_echo_n "(cached) " >&6
6321 else
6322 if test -n "$ac_ct_OBJDUMP"; then
6323 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6324 else
6325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6326 for as_dir in $PATH
6328 IFS=$as_save_IFS
6329 test -z "$as_dir" && as_dir=.
6330 for ac_exec_ext in '' $ac_executable_extensions; do
6331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6332 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6334 break 2
6336 done
6337 done
6338 IFS=$as_save_IFS
6342 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6343 if test -n "$ac_ct_OBJDUMP"; then
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6345 $as_echo "$ac_ct_OBJDUMP" >&6; }
6346 else
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6348 $as_echo "no" >&6; }
6351 if test "x$ac_ct_OBJDUMP" = x; then
6352 OBJDUMP="false"
6353 else
6354 case $cross_compiling:$ac_tool_warned in
6355 yes:)
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6357 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6358 ac_tool_warned=yes ;;
6359 esac
6360 OBJDUMP=$ac_ct_OBJDUMP
6362 else
6363 OBJDUMP="$ac_cv_prog_OBJDUMP"
6366 test -z "$OBJDUMP" && OBJDUMP=objdump
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6377 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6378 if ${lt_cv_deplibs_check_method+:} false; then :
6379 $as_echo_n "(cached) " >&6
6380 else
6381 lt_cv_file_magic_cmd='$MAGIC_CMD'
6382 lt_cv_file_magic_test_file=
6383 lt_cv_deplibs_check_method='unknown'
6384 # Need to set the preceding variable on all platforms that support
6385 # interlibrary dependencies.
6386 # 'none' -- dependencies not supported.
6387 # `unknown' -- same as none, but documents that we really don't know.
6388 # 'pass_all' -- all dependencies passed with no checks.
6389 # 'test_compile' -- check by making test program.
6390 # 'file_magic [[regex]]' -- check by looking for files in library path
6391 # which responds to the $file_magic_cmd with a given extended regex.
6392 # If you have `file' or equivalent on your system and you're not sure
6393 # whether `pass_all' will *always* work, you probably want this one.
6395 case $host_os in
6396 aix[4-9]*)
6397 lt_cv_deplibs_check_method=pass_all
6400 beos*)
6401 lt_cv_deplibs_check_method=pass_all
6404 bsdi[45]*)
6405 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6406 lt_cv_file_magic_cmd='/usr/bin/file -L'
6407 lt_cv_file_magic_test_file=/shlib/libc.so
6410 cygwin*)
6411 # func_win32_libid is a shell function defined in ltmain.sh
6412 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6413 lt_cv_file_magic_cmd='func_win32_libid'
6416 mingw* | pw32*)
6417 # Base MSYS/MinGW do not provide the 'file' command needed by
6418 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6419 # unless we find 'file', for example because we are cross-compiling.
6420 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6421 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6422 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6423 lt_cv_file_magic_cmd='func_win32_libid'
6424 else
6425 # Keep this pattern in sync with the one in func_win32_libid.
6426 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6427 lt_cv_file_magic_cmd='$OBJDUMP -f'
6431 cegcc*)
6432 # use the weaker test based on 'objdump'. See mingw*.
6433 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6434 lt_cv_file_magic_cmd='$OBJDUMP -f'
6437 darwin* | rhapsody*)
6438 lt_cv_deplibs_check_method=pass_all
6441 freebsd* | dragonfly*)
6442 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6443 case $host_cpu in
6444 i*86 )
6445 # Not sure whether the presence of OpenBSD here was a mistake.
6446 # Let's accept both of them until this is cleared up.
6447 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6448 lt_cv_file_magic_cmd=/usr/bin/file
6449 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6451 esac
6452 else
6453 lt_cv_deplibs_check_method=pass_all
6457 gnu*)
6458 lt_cv_deplibs_check_method=pass_all
6461 haiku*)
6462 lt_cv_deplibs_check_method=pass_all
6465 hpux10.20* | hpux11*)
6466 lt_cv_file_magic_cmd=/usr/bin/file
6467 case $host_cpu in
6468 ia64*)
6469 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6470 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6472 hppa*64*)
6473 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]'
6474 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6477 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6478 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6480 esac
6483 interix[3-9]*)
6484 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6485 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6488 irix5* | irix6* | nonstopux*)
6489 case $LD in
6490 *-32|*"-32 ") libmagic=32-bit;;
6491 *-n32|*"-n32 ") libmagic=N32;;
6492 *-64|*"-64 ") libmagic=64-bit;;
6493 *) libmagic=never-match;;
6494 esac
6495 lt_cv_deplibs_check_method=pass_all
6498 # This must be glibc/ELF.
6499 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6500 lt_cv_deplibs_check_method=pass_all
6503 netbsd*)
6504 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6505 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6506 else
6507 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6511 newos6*)
6512 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6513 lt_cv_file_magic_cmd=/usr/bin/file
6514 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6517 *nto* | *qnx*)
6518 lt_cv_deplibs_check_method=pass_all
6521 openbsd*)
6522 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6523 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6524 else
6525 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6529 osf3* | osf4* | osf5*)
6530 lt_cv_deplibs_check_method=pass_all
6533 rdos*)
6534 lt_cv_deplibs_check_method=pass_all
6537 solaris*)
6538 lt_cv_deplibs_check_method=pass_all
6541 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6542 lt_cv_deplibs_check_method=pass_all
6545 sysv4 | sysv4.3*)
6546 case $host_vendor in
6547 motorola)
6548 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]'
6549 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6551 ncr)
6552 lt_cv_deplibs_check_method=pass_all
6554 sequent)
6555 lt_cv_file_magic_cmd='/bin/file'
6556 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6558 sni)
6559 lt_cv_file_magic_cmd='/bin/file'
6560 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6561 lt_cv_file_magic_test_file=/lib/libc.so
6563 siemens)
6564 lt_cv_deplibs_check_method=pass_all
6567 lt_cv_deplibs_check_method=pass_all
6569 esac
6572 tpf*)
6573 lt_cv_deplibs_check_method=pass_all
6575 esac
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6579 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6581 file_magic_glob=
6582 want_nocaseglob=no
6583 if test "$build" = "$host"; then
6584 case $host_os in
6585 mingw* | pw32*)
6586 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6587 want_nocaseglob=yes
6588 else
6589 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6592 esac
6595 file_magic_cmd=$lt_cv_file_magic_cmd
6596 deplibs_check_method=$lt_cv_deplibs_check_method
6597 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6620 if test -n "$ac_tool_prefix"; then
6621 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6622 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6624 $as_echo_n "checking for $ac_word... " >&6; }
6625 if ${ac_cv_prog_DLLTOOL+:} false; then :
6626 $as_echo_n "(cached) " >&6
6627 else
6628 if test -n "$DLLTOOL"; then
6629 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6630 else
6631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632 for as_dir in $PATH
6634 IFS=$as_save_IFS
6635 test -z "$as_dir" && as_dir=.
6636 for ac_exec_ext in '' $ac_executable_extensions; do
6637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6638 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6640 break 2
6642 done
6643 done
6644 IFS=$as_save_IFS
6648 DLLTOOL=$ac_cv_prog_DLLTOOL
6649 if test -n "$DLLTOOL"; then
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6651 $as_echo "$DLLTOOL" >&6; }
6652 else
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6654 $as_echo "no" >&6; }
6659 if test -z "$ac_cv_prog_DLLTOOL"; then
6660 ac_ct_DLLTOOL=$DLLTOOL
6661 # Extract the first word of "dlltool", so it can be a program name with args.
6662 set dummy dlltool; ac_word=$2
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6664 $as_echo_n "checking for $ac_word... " >&6; }
6665 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6666 $as_echo_n "(cached) " >&6
6667 else
6668 if test -n "$ac_ct_DLLTOOL"; then
6669 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6670 else
6671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6672 for as_dir in $PATH
6674 IFS=$as_save_IFS
6675 test -z "$as_dir" && as_dir=.
6676 for ac_exec_ext in '' $ac_executable_extensions; do
6677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6678 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6680 break 2
6682 done
6683 done
6684 IFS=$as_save_IFS
6688 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6689 if test -n "$ac_ct_DLLTOOL"; then
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6691 $as_echo "$ac_ct_DLLTOOL" >&6; }
6692 else
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6694 $as_echo "no" >&6; }
6697 if test "x$ac_ct_DLLTOOL" = x; then
6698 DLLTOOL="false"
6699 else
6700 case $cross_compiling:$ac_tool_warned in
6701 yes:)
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6703 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6704 ac_tool_warned=yes ;;
6705 esac
6706 DLLTOOL=$ac_ct_DLLTOOL
6708 else
6709 DLLTOOL="$ac_cv_prog_DLLTOOL"
6712 test -z "$DLLTOOL" && DLLTOOL=dlltool
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6724 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6725 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6726 $as_echo_n "(cached) " >&6
6727 else
6728 lt_cv_sharedlib_from_linklib_cmd='unknown'
6730 case $host_os in
6731 cygwin* | mingw* | pw32* | cegcc*)
6732 # two different shell functions defined in ltmain.sh
6733 # decide which to use based on capabilities of $DLLTOOL
6734 case `$DLLTOOL --help 2>&1` in
6735 *--identify-strict*)
6736 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6739 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6741 esac
6744 # fallback: assume linklib IS sharedlib
6745 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6747 esac
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6751 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6752 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6753 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6761 if test -n "$ac_tool_prefix"; then
6762 for ac_prog in ar
6764 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6765 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6767 $as_echo_n "checking for $ac_word... " >&6; }
6768 if ${ac_cv_prog_AR+:} false; then :
6769 $as_echo_n "(cached) " >&6
6770 else
6771 if test -n "$AR"; then
6772 ac_cv_prog_AR="$AR" # Let the user override the test.
6773 else
6774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775 for as_dir in $PATH
6777 IFS=$as_save_IFS
6778 test -z "$as_dir" && as_dir=.
6779 for ac_exec_ext in '' $ac_executable_extensions; do
6780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6781 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6783 break 2
6785 done
6786 done
6787 IFS=$as_save_IFS
6791 AR=$ac_cv_prog_AR
6792 if test -n "$AR"; then
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6794 $as_echo "$AR" >&6; }
6795 else
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6797 $as_echo "no" >&6; }
6801 test -n "$AR" && break
6802 done
6804 if test -z "$AR"; then
6805 ac_ct_AR=$AR
6806 for ac_prog in ar
6808 # Extract the first word of "$ac_prog", so it can be a program name with args.
6809 set dummy $ac_prog; ac_word=$2
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6811 $as_echo_n "checking for $ac_word... " >&6; }
6812 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6813 $as_echo_n "(cached) " >&6
6814 else
6815 if test -n "$ac_ct_AR"; then
6816 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6817 else
6818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819 for as_dir in $PATH
6821 IFS=$as_save_IFS
6822 test -z "$as_dir" && as_dir=.
6823 for ac_exec_ext in '' $ac_executable_extensions; do
6824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6825 ac_cv_prog_ac_ct_AR="$ac_prog"
6826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6827 break 2
6829 done
6830 done
6831 IFS=$as_save_IFS
6835 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6836 if test -n "$ac_ct_AR"; then
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6838 $as_echo "$ac_ct_AR" >&6; }
6839 else
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6841 $as_echo "no" >&6; }
6845 test -n "$ac_ct_AR" && break
6846 done
6848 if test "x$ac_ct_AR" = x; then
6849 AR="false"
6850 else
6851 case $cross_compiling:$ac_tool_warned in
6852 yes:)
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6854 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6855 ac_tool_warned=yes ;;
6856 esac
6857 AR=$ac_ct_AR
6861 : ${AR=ar}
6862 : ${AR_FLAGS=cru}
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6875 $as_echo_n "checking for archiver @FILE support... " >&6; }
6876 if ${lt_cv_ar_at_file+:} false; then :
6877 $as_echo_n "(cached) " >&6
6878 else
6879 lt_cv_ar_at_file=no
6880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6881 /* end confdefs.h. */
6884 main ()
6888 return 0;
6890 _ACEOF
6891 if ac_fn_c_try_compile "$LINENO"; then :
6892 echo conftest.$ac_objext > conftest.lst
6893 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6894 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6895 (eval $lt_ar_try) 2>&5
6896 ac_status=$?
6897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6898 test $ac_status = 0; }
6899 if test "$ac_status" -eq 0; then
6900 # Ensure the archiver fails upon bogus file names.
6901 rm -f conftest.$ac_objext libconftest.a
6902 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6903 (eval $lt_ar_try) 2>&5
6904 ac_status=$?
6905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6906 test $ac_status = 0; }
6907 if test "$ac_status" -ne 0; then
6908 lt_cv_ar_at_file=@
6911 rm -f conftest.* libconftest.a
6914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6918 $as_echo "$lt_cv_ar_at_file" >&6; }
6920 if test "x$lt_cv_ar_at_file" = xno; then
6921 archiver_list_spec=
6922 else
6923 archiver_list_spec=$lt_cv_ar_at_file
6932 if test -n "$ac_tool_prefix"; then
6933 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6934 set dummy ${ac_tool_prefix}strip; ac_word=$2
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6936 $as_echo_n "checking for $ac_word... " >&6; }
6937 if ${ac_cv_prog_STRIP+:} false; then :
6938 $as_echo_n "(cached) " >&6
6939 else
6940 if test -n "$STRIP"; then
6941 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6942 else
6943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6944 for as_dir in $PATH
6946 IFS=$as_save_IFS
6947 test -z "$as_dir" && as_dir=.
6948 for ac_exec_ext in '' $ac_executable_extensions; do
6949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6950 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6952 break 2
6954 done
6955 done
6956 IFS=$as_save_IFS
6960 STRIP=$ac_cv_prog_STRIP
6961 if test -n "$STRIP"; then
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6963 $as_echo "$STRIP" >&6; }
6964 else
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6966 $as_echo "no" >&6; }
6971 if test -z "$ac_cv_prog_STRIP"; then
6972 ac_ct_STRIP=$STRIP
6973 # Extract the first word of "strip", so it can be a program name with args.
6974 set dummy strip; ac_word=$2
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6976 $as_echo_n "checking for $ac_word... " >&6; }
6977 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6978 $as_echo_n "(cached) " >&6
6979 else
6980 if test -n "$ac_ct_STRIP"; then
6981 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6982 else
6983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6984 for as_dir in $PATH
6986 IFS=$as_save_IFS
6987 test -z "$as_dir" && as_dir=.
6988 for ac_exec_ext in '' $ac_executable_extensions; do
6989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6990 ac_cv_prog_ac_ct_STRIP="strip"
6991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6992 break 2
6994 done
6995 done
6996 IFS=$as_save_IFS
7000 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7001 if test -n "$ac_ct_STRIP"; then
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7003 $as_echo "$ac_ct_STRIP" >&6; }
7004 else
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7006 $as_echo "no" >&6; }
7009 if test "x$ac_ct_STRIP" = x; then
7010 STRIP=":"
7011 else
7012 case $cross_compiling:$ac_tool_warned in
7013 yes:)
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7015 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7016 ac_tool_warned=yes ;;
7017 esac
7018 STRIP=$ac_ct_STRIP
7020 else
7021 STRIP="$ac_cv_prog_STRIP"
7024 test -z "$STRIP" && STRIP=:
7031 if test -n "$ac_tool_prefix"; then
7032 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7033 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7035 $as_echo_n "checking for $ac_word... " >&6; }
7036 if ${ac_cv_prog_RANLIB+:} false; then :
7037 $as_echo_n "(cached) " >&6
7038 else
7039 if test -n "$RANLIB"; then
7040 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7041 else
7042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043 for as_dir in $PATH
7045 IFS=$as_save_IFS
7046 test -z "$as_dir" && as_dir=.
7047 for ac_exec_ext in '' $ac_executable_extensions; do
7048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7049 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7051 break 2
7053 done
7054 done
7055 IFS=$as_save_IFS
7059 RANLIB=$ac_cv_prog_RANLIB
7060 if test -n "$RANLIB"; then
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7062 $as_echo "$RANLIB" >&6; }
7063 else
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7065 $as_echo "no" >&6; }
7070 if test -z "$ac_cv_prog_RANLIB"; then
7071 ac_ct_RANLIB=$RANLIB
7072 # Extract the first word of "ranlib", so it can be a program name with args.
7073 set dummy ranlib; ac_word=$2
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7075 $as_echo_n "checking for $ac_word... " >&6; }
7076 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7077 $as_echo_n "(cached) " >&6
7078 else
7079 if test -n "$ac_ct_RANLIB"; then
7080 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7081 else
7082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083 for as_dir in $PATH
7085 IFS=$as_save_IFS
7086 test -z "$as_dir" && as_dir=.
7087 for ac_exec_ext in '' $ac_executable_extensions; do
7088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7089 ac_cv_prog_ac_ct_RANLIB="ranlib"
7090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7091 break 2
7093 done
7094 done
7095 IFS=$as_save_IFS
7099 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7100 if test -n "$ac_ct_RANLIB"; then
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7102 $as_echo "$ac_ct_RANLIB" >&6; }
7103 else
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7105 $as_echo "no" >&6; }
7108 if test "x$ac_ct_RANLIB" = x; then
7109 RANLIB=":"
7110 else
7111 case $cross_compiling:$ac_tool_warned in
7112 yes:)
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7114 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7115 ac_tool_warned=yes ;;
7116 esac
7117 RANLIB=$ac_ct_RANLIB
7119 else
7120 RANLIB="$ac_cv_prog_RANLIB"
7123 test -z "$RANLIB" && RANLIB=:
7130 # Determine commands to create old-style static archives.
7131 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7132 old_postinstall_cmds='chmod 644 $oldlib'
7133 old_postuninstall_cmds=
7135 if test -n "$RANLIB"; then
7136 case $host_os in
7137 openbsd*)
7138 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7141 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7143 esac
7144 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7147 case $host_os in
7148 darwin*)
7149 lock_old_archive_extraction=yes ;;
7151 lock_old_archive_extraction=no ;;
7152 esac
7192 # If no C compiler was specified, use CC.
7193 LTCC=${LTCC-"$CC"}
7195 # If no C compiler flags were specified, use CFLAGS.
7196 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7198 # Allow CC to be a program name with arguments.
7199 compiler=$CC
7202 # Check for command to grab the raw symbol name followed by C symbol from nm.
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7204 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7205 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7206 $as_echo_n "(cached) " >&6
7207 else
7209 # These are sane defaults that work on at least a few old systems.
7210 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7212 # Character class describing NM global symbol codes.
7213 symcode='[BCDEGRST]'
7215 # Regexp to match symbols that can be accessed directly from C.
7216 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7218 # Define system-specific variables.
7219 case $host_os in
7220 aix*)
7221 symcode='[BCDT]'
7223 cygwin* | mingw* | pw32* | cegcc*)
7224 symcode='[ABCDGISTW]'
7226 hpux*)
7227 if test "$host_cpu" = ia64; then
7228 symcode='[ABCDEGRST]'
7231 irix* | nonstopux*)
7232 symcode='[BCDEGRST]'
7234 osf*)
7235 symcode='[BCDEGQRST]'
7237 solaris*)
7238 symcode='[BDRT]'
7240 sco3.2v5*)
7241 symcode='[DT]'
7243 sysv4.2uw2*)
7244 symcode='[DT]'
7246 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7247 symcode='[ABDT]'
7249 sysv4)
7250 symcode='[DFNSTU]'
7252 esac
7254 # If we're using GNU nm, then use its standard symbol codes.
7255 case `$NM -V 2>&1` in
7256 *GNU* | *'with BFD'*)
7257 symcode='[ABCDGIRSTW]' ;;
7258 esac
7260 # Transform an extracted symbol line into a proper C declaration.
7261 # Some systems (esp. on ia64) link data and code symbols differently,
7262 # so use this general approach.
7263 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7265 # Transform an extracted symbol line into symbol name and symbol address
7266 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7267 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'"
7269 # Handle CRLF in mingw tool chain
7270 opt_cr=
7271 case $build_os in
7272 mingw*)
7273 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7275 esac
7277 # Try without a prefix underscore, then with it.
7278 for ac_symprfx in "" "_"; do
7280 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7281 symxfrm="\\1 $ac_symprfx\\2 \\2"
7283 # Write the raw and C identifiers.
7284 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7285 # Fake it for dumpbin and say T for any non-static function
7286 # and D for any global variable.
7287 # Also find C++ and __fastcall symbols from MSVC++,
7288 # which start with @ or ?.
7289 lt_cv_sys_global_symbol_pipe="$AWK '"\
7290 " {last_section=section; section=\$ 3};"\
7291 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7292 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7293 " \$ 0!~/External *\|/{next};"\
7294 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7295 " {if(hide[section]) next};"\
7296 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7297 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7298 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7299 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7300 " ' prfx=^$ac_symprfx"
7301 else
7302 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7304 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7306 # Check to see that the pipe works correctly.
7307 pipe_works=no
7309 rm -f conftest*
7310 cat > conftest.$ac_ext <<_LT_EOF
7311 #ifdef __cplusplus
7312 extern "C" {
7313 #endif
7314 char nm_test_var;
7315 void nm_test_func(void);
7316 void nm_test_func(void){}
7317 #ifdef __cplusplus
7319 #endif
7320 int main(){nm_test_var='a';nm_test_func();return(0);}
7321 _LT_EOF
7323 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7324 (eval $ac_compile) 2>&5
7325 ac_status=$?
7326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7327 test $ac_status = 0; }; then
7328 # Now try to grab the symbols.
7329 nlist=conftest.nm
7330 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7331 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7332 ac_status=$?
7333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7334 test $ac_status = 0; } && test -s "$nlist"; then
7335 # Try sorting and uniquifying the output.
7336 if sort "$nlist" | uniq > "$nlist"T; then
7337 mv -f "$nlist"T "$nlist"
7338 else
7339 rm -f "$nlist"T
7342 # Make sure that we snagged all the symbols we need.
7343 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7344 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7345 cat <<_LT_EOF > conftest.$ac_ext
7346 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7347 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7348 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7349 relocations are performed -- see ld's documentation on pseudo-relocs. */
7350 # define LT_DLSYM_CONST
7351 #elif defined(__osf__)
7352 /* This system does not cope well with relocations in const data. */
7353 # define LT_DLSYM_CONST
7354 #else
7355 # define LT_DLSYM_CONST const
7356 #endif
7358 #ifdef __cplusplus
7359 extern "C" {
7360 #endif
7362 _LT_EOF
7363 # Now generate the symbol file.
7364 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7366 cat <<_LT_EOF >> conftest.$ac_ext
7368 /* The mapping between symbol names and symbols. */
7369 LT_DLSYM_CONST struct {
7370 const char *name;
7371 void *address;
7373 lt__PROGRAM__LTX_preloaded_symbols[] =
7375 { "@PROGRAM@", (void *) 0 },
7376 _LT_EOF
7377 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7378 cat <<\_LT_EOF >> conftest.$ac_ext
7379 {0, (void *) 0}
7382 /* This works around a problem in FreeBSD linker */
7383 #ifdef FREEBSD_WORKAROUND
7384 static const void *lt_preloaded_setup() {
7385 return lt__PROGRAM__LTX_preloaded_symbols;
7387 #endif
7389 #ifdef __cplusplus
7391 #endif
7392 _LT_EOF
7393 # Now try linking the two files.
7394 mv conftest.$ac_objext conftstm.$ac_objext
7395 lt_globsym_save_LIBS=$LIBS
7396 lt_globsym_save_CFLAGS=$CFLAGS
7397 LIBS="conftstm.$ac_objext"
7398 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7399 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7400 (eval $ac_link) 2>&5
7401 ac_status=$?
7402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7403 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7404 pipe_works=yes
7406 LIBS=$lt_globsym_save_LIBS
7407 CFLAGS=$lt_globsym_save_CFLAGS
7408 else
7409 echo "cannot find nm_test_func in $nlist" >&5
7411 else
7412 echo "cannot find nm_test_var in $nlist" >&5
7414 else
7415 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7417 else
7418 echo "$progname: failed program was:" >&5
7419 cat conftest.$ac_ext >&5
7421 rm -rf conftest* conftst*
7423 # Do not use the global_symbol_pipe unless it works.
7424 if test "$pipe_works" = yes; then
7425 break
7426 else
7427 lt_cv_sys_global_symbol_pipe=
7429 done
7433 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7434 lt_cv_sys_global_symbol_to_cdecl=
7436 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7438 $as_echo "failed" >&6; }
7439 else
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7441 $as_echo "ok" >&6; }
7444 # Response file support.
7445 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7446 nm_file_list_spec='@'
7447 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7448 nm_file_list_spec='@'
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7478 $as_echo_n "checking for sysroot... " >&6; }
7480 # Check whether --with-sysroot was given.
7481 if test "${with_sysroot+set}" = set; then :
7482 withval=$with_sysroot;
7483 else
7484 with_sysroot=no
7488 lt_sysroot=
7489 case ${with_sysroot} in #(
7490 yes)
7491 if test "$GCC" = yes; then
7492 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7494 ;; #(
7496 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7497 ;; #(
7498 no|'')
7499 ;; #(
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7502 $as_echo "${with_sysroot}" >&6; }
7503 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7505 esac
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7508 $as_echo "${lt_sysroot:-no}" >&6; }
7514 # Check whether --enable-libtool-lock was given.
7515 if test "${enable_libtool_lock+set}" = set; then :
7516 enableval=$enable_libtool_lock;
7519 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7521 # Some flags need to be propagated to the compiler or linker for good
7522 # libtool support.
7523 case $host in
7524 ia64-*-hpux*)
7525 # Find out which ABI we are using.
7526 echo 'int i;' > conftest.$ac_ext
7527 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7528 (eval $ac_compile) 2>&5
7529 ac_status=$?
7530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7531 test $ac_status = 0; }; then
7532 case `/usr/bin/file conftest.$ac_objext` in
7533 *ELF-32*)
7534 HPUX_IA64_MODE="32"
7536 *ELF-64*)
7537 HPUX_IA64_MODE="64"
7539 esac
7541 rm -rf conftest*
7543 *-*-irix6*)
7544 # Find out which ABI we are using.
7545 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7546 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7547 (eval $ac_compile) 2>&5
7548 ac_status=$?
7549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7550 test $ac_status = 0; }; then
7551 if test "$lt_cv_prog_gnu_ld" = yes; then
7552 case `/usr/bin/file conftest.$ac_objext` in
7553 *32-bit*)
7554 LD="${LD-ld} -melf32bsmip"
7556 *N32*)
7557 LD="${LD-ld} -melf32bmipn32"
7559 *64-bit*)
7560 LD="${LD-ld} -melf64bmip"
7562 esac
7563 else
7564 case `/usr/bin/file conftest.$ac_objext` in
7565 *32-bit*)
7566 LD="${LD-ld} -32"
7568 *N32*)
7569 LD="${LD-ld} -n32"
7571 *64-bit*)
7572 LD="${LD-ld} -64"
7574 esac
7577 rm -rf conftest*
7580 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7581 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7582 # Find out which ABI we are using.
7583 echo 'int i;' > conftest.$ac_ext
7584 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7585 (eval $ac_compile) 2>&5
7586 ac_status=$?
7587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7588 test $ac_status = 0; }; then
7589 case `/usr/bin/file conftest.o` in
7590 *32-bit*)
7591 case $host in
7592 x86_64-*kfreebsd*-gnu)
7593 LD="${LD-ld} -m elf_i386_fbsd"
7595 x86_64-*linux*)
7596 LD="${LD-ld} -m elf_i386"
7598 ppc64-*linux*|powerpc64-*linux*)
7599 LD="${LD-ld} -m elf32ppclinux"
7601 s390x-*linux*)
7602 LD="${LD-ld} -m elf_s390"
7604 sparc64-*linux*)
7605 LD="${LD-ld} -m elf32_sparc"
7607 esac
7609 *64-bit*)
7610 case $host in
7611 x86_64-*kfreebsd*-gnu)
7612 LD="${LD-ld} -m elf_x86_64_fbsd"
7614 x86_64-*linux*)
7615 LD="${LD-ld} -m elf_x86_64"
7617 ppc*-*linux*|powerpc*-*linux*)
7618 LD="${LD-ld} -m elf64ppc"
7620 s390*-*linux*|s390*-*tpf*)
7621 LD="${LD-ld} -m elf64_s390"
7623 sparc*-*linux*)
7624 LD="${LD-ld} -m elf64_sparc"
7626 esac
7628 esac
7630 rm -rf conftest*
7633 *-*-sco3.2v5*)
7634 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7635 SAVE_CFLAGS="$CFLAGS"
7636 CFLAGS="$CFLAGS -belf"
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7638 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7639 if ${lt_cv_cc_needs_belf+:} false; then :
7640 $as_echo_n "(cached) " >&6
7641 else
7642 ac_ext=c
7643 ac_cpp='$CPP $CPPFLAGS'
7644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7649 /* end confdefs.h. */
7652 main ()
7656 return 0;
7658 _ACEOF
7659 if ac_fn_c_try_link "$LINENO"; then :
7660 lt_cv_cc_needs_belf=yes
7661 else
7662 lt_cv_cc_needs_belf=no
7664 rm -f core conftest.err conftest.$ac_objext \
7665 conftest$ac_exeext conftest.$ac_ext
7666 ac_ext=c
7667 ac_cpp='$CPP $CPPFLAGS'
7668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7674 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7675 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7676 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7677 CFLAGS="$SAVE_CFLAGS"
7680 *-*solaris*)
7681 # Find out which ABI we are using.
7682 echo 'int i;' > conftest.$ac_ext
7683 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7684 (eval $ac_compile) 2>&5
7685 ac_status=$?
7686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7687 test $ac_status = 0; }; then
7688 case `/usr/bin/file conftest.o` in
7689 *64-bit*)
7690 case $lt_cv_prog_gnu_ld in
7691 yes*)
7692 case $host in
7693 i?86-*-solaris*)
7694 LD="${LD-ld} -m elf_x86_64"
7696 sparc*-*-solaris*)
7697 LD="${LD-ld} -m elf64_sparc"
7699 esac
7700 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7701 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7702 LD="${LD-ld}_sol2"
7706 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7707 LD="${LD-ld} -64"
7710 esac
7712 esac
7714 rm -rf conftest*
7716 esac
7718 need_locks="$enable_libtool_lock"
7720 if test -n "$ac_tool_prefix"; then
7721 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7722 set dummy ${ac_tool_prefix}mt; ac_word=$2
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7724 $as_echo_n "checking for $ac_word... " >&6; }
7725 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7726 $as_echo_n "(cached) " >&6
7727 else
7728 if test -n "$MANIFEST_TOOL"; then
7729 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7730 else
7731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7732 for as_dir in $PATH
7734 IFS=$as_save_IFS
7735 test -z "$as_dir" && as_dir=.
7736 for ac_exec_ext in '' $ac_executable_extensions; do
7737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7738 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7740 break 2
7742 done
7743 done
7744 IFS=$as_save_IFS
7748 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7749 if test -n "$MANIFEST_TOOL"; then
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7751 $as_echo "$MANIFEST_TOOL" >&6; }
7752 else
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7754 $as_echo "no" >&6; }
7759 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7760 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7761 # Extract the first word of "mt", so it can be a program name with args.
7762 set dummy mt; ac_word=$2
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7764 $as_echo_n "checking for $ac_word... " >&6; }
7765 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7766 $as_echo_n "(cached) " >&6
7767 else
7768 if test -n "$ac_ct_MANIFEST_TOOL"; then
7769 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7770 else
7771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7772 for as_dir in $PATH
7774 IFS=$as_save_IFS
7775 test -z "$as_dir" && as_dir=.
7776 for ac_exec_ext in '' $ac_executable_extensions; do
7777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7778 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7780 break 2
7782 done
7783 done
7784 IFS=$as_save_IFS
7788 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7789 if test -n "$ac_ct_MANIFEST_TOOL"; then
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7791 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7792 else
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7794 $as_echo "no" >&6; }
7797 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7798 MANIFEST_TOOL=":"
7799 else
7800 case $cross_compiling:$ac_tool_warned in
7801 yes:)
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7803 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7804 ac_tool_warned=yes ;;
7805 esac
7806 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7808 else
7809 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7812 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7814 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7815 if ${lt_cv_path_mainfest_tool+:} false; then :
7816 $as_echo_n "(cached) " >&6
7817 else
7818 lt_cv_path_mainfest_tool=no
7819 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7820 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7821 cat conftest.err >&5
7822 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7823 lt_cv_path_mainfest_tool=yes
7825 rm -f conftest*
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7828 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7829 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7830 MANIFEST_TOOL=:
7838 case $host_os in
7839 rhapsody* | darwin*)
7840 if test -n "$ac_tool_prefix"; then
7841 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7842 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7844 $as_echo_n "checking for $ac_word... " >&6; }
7845 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7846 $as_echo_n "(cached) " >&6
7847 else
7848 if test -n "$DSYMUTIL"; then
7849 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7850 else
7851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852 for as_dir in $PATH
7854 IFS=$as_save_IFS
7855 test -z "$as_dir" && as_dir=.
7856 for ac_exec_ext in '' $ac_executable_extensions; do
7857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7858 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7860 break 2
7862 done
7863 done
7864 IFS=$as_save_IFS
7868 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7869 if test -n "$DSYMUTIL"; then
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7871 $as_echo "$DSYMUTIL" >&6; }
7872 else
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7874 $as_echo "no" >&6; }
7879 if test -z "$ac_cv_prog_DSYMUTIL"; then
7880 ac_ct_DSYMUTIL=$DSYMUTIL
7881 # Extract the first word of "dsymutil", so it can be a program name with args.
7882 set dummy dsymutil; ac_word=$2
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7884 $as_echo_n "checking for $ac_word... " >&6; }
7885 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7886 $as_echo_n "(cached) " >&6
7887 else
7888 if test -n "$ac_ct_DSYMUTIL"; then
7889 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7890 else
7891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7892 for as_dir in $PATH
7894 IFS=$as_save_IFS
7895 test -z "$as_dir" && as_dir=.
7896 for ac_exec_ext in '' $ac_executable_extensions; do
7897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7898 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7900 break 2
7902 done
7903 done
7904 IFS=$as_save_IFS
7908 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7909 if test -n "$ac_ct_DSYMUTIL"; then
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7911 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7912 else
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7914 $as_echo "no" >&6; }
7917 if test "x$ac_ct_DSYMUTIL" = x; then
7918 DSYMUTIL=":"
7919 else
7920 case $cross_compiling:$ac_tool_warned in
7921 yes:)
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7923 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7924 ac_tool_warned=yes ;;
7925 esac
7926 DSYMUTIL=$ac_ct_DSYMUTIL
7928 else
7929 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7932 if test -n "$ac_tool_prefix"; then
7933 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7934 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7936 $as_echo_n "checking for $ac_word... " >&6; }
7937 if ${ac_cv_prog_NMEDIT+:} false; then :
7938 $as_echo_n "(cached) " >&6
7939 else
7940 if test -n "$NMEDIT"; then
7941 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7942 else
7943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7944 for as_dir in $PATH
7946 IFS=$as_save_IFS
7947 test -z "$as_dir" && as_dir=.
7948 for ac_exec_ext in '' $ac_executable_extensions; do
7949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7950 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7952 break 2
7954 done
7955 done
7956 IFS=$as_save_IFS
7960 NMEDIT=$ac_cv_prog_NMEDIT
7961 if test -n "$NMEDIT"; then
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7963 $as_echo "$NMEDIT" >&6; }
7964 else
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7966 $as_echo "no" >&6; }
7971 if test -z "$ac_cv_prog_NMEDIT"; then
7972 ac_ct_NMEDIT=$NMEDIT
7973 # Extract the first word of "nmedit", so it can be a program name with args.
7974 set dummy nmedit; ac_word=$2
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7976 $as_echo_n "checking for $ac_word... " >&6; }
7977 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7978 $as_echo_n "(cached) " >&6
7979 else
7980 if test -n "$ac_ct_NMEDIT"; then
7981 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7982 else
7983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7984 for as_dir in $PATH
7986 IFS=$as_save_IFS
7987 test -z "$as_dir" && as_dir=.
7988 for ac_exec_ext in '' $ac_executable_extensions; do
7989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7990 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7992 break 2
7994 done
7995 done
7996 IFS=$as_save_IFS
8000 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8001 if test -n "$ac_ct_NMEDIT"; then
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8003 $as_echo "$ac_ct_NMEDIT" >&6; }
8004 else
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8006 $as_echo "no" >&6; }
8009 if test "x$ac_ct_NMEDIT" = x; then
8010 NMEDIT=":"
8011 else
8012 case $cross_compiling:$ac_tool_warned in
8013 yes:)
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8015 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8016 ac_tool_warned=yes ;;
8017 esac
8018 NMEDIT=$ac_ct_NMEDIT
8020 else
8021 NMEDIT="$ac_cv_prog_NMEDIT"
8024 if test -n "$ac_tool_prefix"; then
8025 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8026 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8028 $as_echo_n "checking for $ac_word... " >&6; }
8029 if ${ac_cv_prog_LIPO+:} false; then :
8030 $as_echo_n "(cached) " >&6
8031 else
8032 if test -n "$LIPO"; then
8033 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8034 else
8035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8036 for as_dir in $PATH
8038 IFS=$as_save_IFS
8039 test -z "$as_dir" && as_dir=.
8040 for ac_exec_ext in '' $ac_executable_extensions; do
8041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8042 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8044 break 2
8046 done
8047 done
8048 IFS=$as_save_IFS
8052 LIPO=$ac_cv_prog_LIPO
8053 if test -n "$LIPO"; then
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8055 $as_echo "$LIPO" >&6; }
8056 else
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8058 $as_echo "no" >&6; }
8063 if test -z "$ac_cv_prog_LIPO"; then
8064 ac_ct_LIPO=$LIPO
8065 # Extract the first word of "lipo", so it can be a program name with args.
8066 set dummy lipo; ac_word=$2
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8068 $as_echo_n "checking for $ac_word... " >&6; }
8069 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8070 $as_echo_n "(cached) " >&6
8071 else
8072 if test -n "$ac_ct_LIPO"; then
8073 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8074 else
8075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8076 for as_dir in $PATH
8078 IFS=$as_save_IFS
8079 test -z "$as_dir" && as_dir=.
8080 for ac_exec_ext in '' $ac_executable_extensions; do
8081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8082 ac_cv_prog_ac_ct_LIPO="lipo"
8083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8084 break 2
8086 done
8087 done
8088 IFS=$as_save_IFS
8092 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8093 if test -n "$ac_ct_LIPO"; then
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8095 $as_echo "$ac_ct_LIPO" >&6; }
8096 else
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8098 $as_echo "no" >&6; }
8101 if test "x$ac_ct_LIPO" = x; then
8102 LIPO=":"
8103 else
8104 case $cross_compiling:$ac_tool_warned in
8105 yes:)
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8108 ac_tool_warned=yes ;;
8109 esac
8110 LIPO=$ac_ct_LIPO
8112 else
8113 LIPO="$ac_cv_prog_LIPO"
8116 if test -n "$ac_tool_prefix"; then
8117 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8118 set dummy ${ac_tool_prefix}otool; ac_word=$2
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8120 $as_echo_n "checking for $ac_word... " >&6; }
8121 if ${ac_cv_prog_OTOOL+:} false; then :
8122 $as_echo_n "(cached) " >&6
8123 else
8124 if test -n "$OTOOL"; then
8125 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8126 else
8127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8128 for as_dir in $PATH
8130 IFS=$as_save_IFS
8131 test -z "$as_dir" && as_dir=.
8132 for ac_exec_ext in '' $ac_executable_extensions; do
8133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8134 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8136 break 2
8138 done
8139 done
8140 IFS=$as_save_IFS
8144 OTOOL=$ac_cv_prog_OTOOL
8145 if test -n "$OTOOL"; then
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8147 $as_echo "$OTOOL" >&6; }
8148 else
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8150 $as_echo "no" >&6; }
8155 if test -z "$ac_cv_prog_OTOOL"; then
8156 ac_ct_OTOOL=$OTOOL
8157 # Extract the first word of "otool", so it can be a program name with args.
8158 set dummy otool; ac_word=$2
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8160 $as_echo_n "checking for $ac_word... " >&6; }
8161 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8162 $as_echo_n "(cached) " >&6
8163 else
8164 if test -n "$ac_ct_OTOOL"; then
8165 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8166 else
8167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8168 for as_dir in $PATH
8170 IFS=$as_save_IFS
8171 test -z "$as_dir" && as_dir=.
8172 for ac_exec_ext in '' $ac_executable_extensions; do
8173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8174 ac_cv_prog_ac_ct_OTOOL="otool"
8175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8176 break 2
8178 done
8179 done
8180 IFS=$as_save_IFS
8184 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8185 if test -n "$ac_ct_OTOOL"; then
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8187 $as_echo "$ac_ct_OTOOL" >&6; }
8188 else
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8190 $as_echo "no" >&6; }
8193 if test "x$ac_ct_OTOOL" = x; then
8194 OTOOL=":"
8195 else
8196 case $cross_compiling:$ac_tool_warned in
8197 yes:)
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8200 ac_tool_warned=yes ;;
8201 esac
8202 OTOOL=$ac_ct_OTOOL
8204 else
8205 OTOOL="$ac_cv_prog_OTOOL"
8208 if test -n "$ac_tool_prefix"; then
8209 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8210 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8212 $as_echo_n "checking for $ac_word... " >&6; }
8213 if ${ac_cv_prog_OTOOL64+:} false; then :
8214 $as_echo_n "(cached) " >&6
8215 else
8216 if test -n "$OTOOL64"; then
8217 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8218 else
8219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8220 for as_dir in $PATH
8222 IFS=$as_save_IFS
8223 test -z "$as_dir" && as_dir=.
8224 for ac_exec_ext in '' $ac_executable_extensions; do
8225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8226 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8228 break 2
8230 done
8231 done
8232 IFS=$as_save_IFS
8236 OTOOL64=$ac_cv_prog_OTOOL64
8237 if test -n "$OTOOL64"; then
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8239 $as_echo "$OTOOL64" >&6; }
8240 else
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8242 $as_echo "no" >&6; }
8247 if test -z "$ac_cv_prog_OTOOL64"; then
8248 ac_ct_OTOOL64=$OTOOL64
8249 # Extract the first word of "otool64", so it can be a program name with args.
8250 set dummy otool64; ac_word=$2
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8252 $as_echo_n "checking for $ac_word... " >&6; }
8253 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8254 $as_echo_n "(cached) " >&6
8255 else
8256 if test -n "$ac_ct_OTOOL64"; then
8257 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8258 else
8259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8260 for as_dir in $PATH
8262 IFS=$as_save_IFS
8263 test -z "$as_dir" && as_dir=.
8264 for ac_exec_ext in '' $ac_executable_extensions; do
8265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8266 ac_cv_prog_ac_ct_OTOOL64="otool64"
8267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8268 break 2
8270 done
8271 done
8272 IFS=$as_save_IFS
8276 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8277 if test -n "$ac_ct_OTOOL64"; then
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8279 $as_echo "$ac_ct_OTOOL64" >&6; }
8280 else
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8282 $as_echo "no" >&6; }
8285 if test "x$ac_ct_OTOOL64" = x; then
8286 OTOOL64=":"
8287 else
8288 case $cross_compiling:$ac_tool_warned in
8289 yes:)
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8291 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8292 ac_tool_warned=yes ;;
8293 esac
8294 OTOOL64=$ac_ct_OTOOL64
8296 else
8297 OTOOL64="$ac_cv_prog_OTOOL64"
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8327 $as_echo_n "checking for -single_module linker flag... " >&6; }
8328 if ${lt_cv_apple_cc_single_mod+:} false; then :
8329 $as_echo_n "(cached) " >&6
8330 else
8331 lt_cv_apple_cc_single_mod=no
8332 if test -z "${LT_MULTI_MODULE}"; then
8333 # By default we will add the -single_module flag. You can override
8334 # by either setting the environment variable LT_MULTI_MODULE
8335 # non-empty at configure time, or by adding -multi_module to the
8336 # link flags.
8337 rm -rf libconftest.dylib*
8338 echo "int foo(void){return 1;}" > conftest.c
8339 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8340 -dynamiclib -Wl,-single_module conftest.c" >&5
8341 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8342 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8343 _lt_result=$?
8344 # If there is a non-empty error log, and "single_module"
8345 # appears in it, assume the flag caused a linker warning
8346 if test -s conftest.err && $GREP single_module conftest.err; then
8347 cat conftest.err >&5
8348 # Otherwise, if the output was created with a 0 exit code from
8349 # the compiler, it worked.
8350 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8351 lt_cv_apple_cc_single_mod=yes
8352 else
8353 cat conftest.err >&5
8355 rm -rf libconftest.dylib*
8356 rm -f conftest.*
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8360 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8363 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8364 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8365 $as_echo_n "(cached) " >&6
8366 else
8367 lt_cv_ld_exported_symbols_list=no
8368 save_LDFLAGS=$LDFLAGS
8369 echo "_main" > conftest.sym
8370 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8372 /* end confdefs.h. */
8375 main ()
8379 return 0;
8381 _ACEOF
8382 if ac_fn_c_try_link "$LINENO"; then :
8383 lt_cv_ld_exported_symbols_list=yes
8384 else
8385 lt_cv_ld_exported_symbols_list=no
8387 rm -f core conftest.err conftest.$ac_objext \
8388 conftest$ac_exeext conftest.$ac_ext
8389 LDFLAGS="$save_LDFLAGS"
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8393 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8396 $as_echo_n "checking for -force_load linker flag... " >&6; }
8397 if ${lt_cv_ld_force_load+:} false; then :
8398 $as_echo_n "(cached) " >&6
8399 else
8400 lt_cv_ld_force_load=no
8401 cat > conftest.c << _LT_EOF
8402 int forced_loaded() { return 2;}
8403 _LT_EOF
8404 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8405 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8406 echo "$AR cru libconftest.a conftest.o" >&5
8407 $AR cru libconftest.a conftest.o 2>&5
8408 echo "$RANLIB libconftest.a" >&5
8409 $RANLIB libconftest.a 2>&5
8410 cat > conftest.c << _LT_EOF
8411 int main() { return 0;}
8412 _LT_EOF
8413 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8414 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8415 _lt_result=$?
8416 if test -s conftest.err && $GREP force_load conftest.err; then
8417 cat conftest.err >&5
8418 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8419 lt_cv_ld_force_load=yes
8420 else
8421 cat conftest.err >&5
8423 rm -f conftest.err libconftest.a conftest conftest.c
8424 rm -rf conftest.dSYM
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8428 $as_echo "$lt_cv_ld_force_load" >&6; }
8429 case $host_os in
8430 rhapsody* | darwin1.[012])
8431 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8432 darwin1.*)
8433 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8434 darwin*) # darwin 5.x on
8435 # if running on 10.5 or later, the deployment target defaults
8436 # to the OS version, if on x86, and 10.4, the deployment
8437 # target defaults to 10.4. Don't you love it?
8438 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8439 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8440 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8441 10.[012]*)
8442 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8443 10.*)
8444 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8445 esac
8447 esac
8448 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8449 _lt_dar_single_mod='$single_module'
8451 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8452 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8453 else
8454 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8456 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8457 _lt_dsymutil='~$DSYMUTIL $lib || :'
8458 else
8459 _lt_dsymutil=
8462 esac
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8466 $as_echo_n "checking for ANSI C header files... " >&6; }
8467 if ${ac_cv_header_stdc+:} false; then :
8468 $as_echo_n "(cached) " >&6
8469 else
8470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8471 /* end confdefs.h. */
8472 #include <stdlib.h>
8473 #include <stdarg.h>
8474 #include <string.h>
8475 #include <float.h>
8478 main ()
8482 return 0;
8484 _ACEOF
8485 if ac_fn_c_try_compile "$LINENO"; then :
8486 ac_cv_header_stdc=yes
8487 else
8488 ac_cv_header_stdc=no
8490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8492 if test $ac_cv_header_stdc = yes; then
8493 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8495 /* end confdefs.h. */
8496 #include <string.h>
8498 _ACEOF
8499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8500 $EGREP "memchr" >/dev/null 2>&1; then :
8502 else
8503 ac_cv_header_stdc=no
8505 rm -f conftest*
8509 if test $ac_cv_header_stdc = yes; then
8510 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8512 /* end confdefs.h. */
8513 #include <stdlib.h>
8515 _ACEOF
8516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8517 $EGREP "free" >/dev/null 2>&1; then :
8519 else
8520 ac_cv_header_stdc=no
8522 rm -f conftest*
8526 if test $ac_cv_header_stdc = yes; then
8527 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8528 if test "$cross_compiling" = yes; then :
8530 else
8531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8532 /* end confdefs.h. */
8533 #include <ctype.h>
8534 #include <stdlib.h>
8535 #if ((' ' & 0x0FF) == 0x020)
8536 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8537 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8538 #else
8539 # define ISLOWER(c) \
8540 (('a' <= (c) && (c) <= 'i') \
8541 || ('j' <= (c) && (c) <= 'r') \
8542 || ('s' <= (c) && (c) <= 'z'))
8543 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8544 #endif
8546 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8548 main ()
8550 int i;
8551 for (i = 0; i < 256; i++)
8552 if (XOR (islower (i), ISLOWER (i))
8553 || toupper (i) != TOUPPER (i))
8554 return 2;
8555 return 0;
8557 _ACEOF
8558 if ac_fn_c_try_run "$LINENO"; then :
8560 else
8561 ac_cv_header_stdc=no
8563 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8564 conftest.$ac_objext conftest.beam conftest.$ac_ext
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8570 $as_echo "$ac_cv_header_stdc" >&6; }
8571 if test $ac_cv_header_stdc = yes; then
8573 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8577 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8578 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8579 inttypes.h stdint.h unistd.h
8580 do :
8581 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8582 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8584 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8585 cat >>confdefs.h <<_ACEOF
8586 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8587 _ACEOF
8591 done
8594 for ac_header in dlfcn.h
8595 do :
8596 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8598 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8599 cat >>confdefs.h <<_ACEOF
8600 #define HAVE_DLFCN_H 1
8601 _ACEOF
8605 done
8611 # Set options
8615 enable_dlopen=no
8618 enable_win32_dll=no
8622 # Check whether --enable-static was given.
8623 if test "${enable_static+set}" = set; then :
8624 enableval=$enable_static; p=${PACKAGE-default}
8625 case $enableval in
8626 yes) enable_static=yes ;;
8627 no) enable_static=no ;;
8629 enable_static=no
8630 # Look at the argument we got. We use all the common list separators.
8631 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8632 for pkg in $enableval; do
8633 IFS="$lt_save_ifs"
8634 if test "X$pkg" = "X$p"; then
8635 enable_static=yes
8637 done
8638 IFS="$lt_save_ifs"
8640 esac
8641 else
8642 enable_static=yes
8654 # Check whether --with-pic was given.
8655 if test "${with_pic+set}" = set; then :
8656 withval=$with_pic; lt_p=${PACKAGE-default}
8657 case $withval in
8658 yes|no) pic_mode=$withval ;;
8660 pic_mode=default
8661 # Look at the argument we got. We use all the common list separators.
8662 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8663 for lt_pkg in $withval; do
8664 IFS="$lt_save_ifs"
8665 if test "X$lt_pkg" = "X$lt_p"; then
8666 pic_mode=yes
8668 done
8669 IFS="$lt_save_ifs"
8671 esac
8672 else
8673 pic_mode=default
8677 test -z "$pic_mode" && pic_mode=default
8685 # Check whether --enable-fast-install was given.
8686 if test "${enable_fast_install+set}" = set; then :
8687 enableval=$enable_fast_install; p=${PACKAGE-default}
8688 case $enableval in
8689 yes) enable_fast_install=yes ;;
8690 no) enable_fast_install=no ;;
8692 enable_fast_install=no
8693 # Look at the argument we got. We use all the common list separators.
8694 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8695 for pkg in $enableval; do
8696 IFS="$lt_save_ifs"
8697 if test "X$pkg" = "X$p"; then
8698 enable_fast_install=yes
8700 done
8701 IFS="$lt_save_ifs"
8703 esac
8704 else
8705 enable_fast_install=yes
8718 # This can be used to rebuild libtool when needed
8719 LIBTOOL_DEPS="$ltmain"
8721 # Always use our own libtool.
8722 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8753 test -z "$LN_S" && LN_S="ln -s"
8768 if test -n "${ZSH_VERSION+set}" ; then
8769 setopt NO_GLOB_SUBST
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8773 $as_echo_n "checking for objdir... " >&6; }
8774 if ${lt_cv_objdir+:} false; then :
8775 $as_echo_n "(cached) " >&6
8776 else
8777 rm -f .libs 2>/dev/null
8778 mkdir .libs 2>/dev/null
8779 if test -d .libs; then
8780 lt_cv_objdir=.libs
8781 else
8782 # MS-DOS does not allow filenames that begin with a dot.
8783 lt_cv_objdir=_libs
8785 rmdir .libs 2>/dev/null
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8788 $as_echo "$lt_cv_objdir" >&6; }
8789 objdir=$lt_cv_objdir
8795 cat >>confdefs.h <<_ACEOF
8796 #define LT_OBJDIR "$lt_cv_objdir/"
8797 _ACEOF
8802 case $host_os in
8803 aix3*)
8804 # AIX sometimes has problems with the GCC collect2 program. For some
8805 # reason, if we set the COLLECT_NAMES environment variable, the problems
8806 # vanish in a puff of smoke.
8807 if test "X${COLLECT_NAMES+set}" != Xset; then
8808 COLLECT_NAMES=
8809 export COLLECT_NAMES
8812 esac
8814 # Global variables:
8815 ofile=libtool
8816 can_build_shared=yes
8818 # All known linkers require a `.a' archive for static linking (except MSVC,
8819 # which needs '.lib').
8820 libext=a
8822 with_gnu_ld="$lt_cv_prog_gnu_ld"
8824 old_CC="$CC"
8825 old_CFLAGS="$CFLAGS"
8827 # Set sane defaults for various variables
8828 test -z "$CC" && CC=cc
8829 test -z "$LTCC" && LTCC=$CC
8830 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8831 test -z "$LD" && LD=ld
8832 test -z "$ac_objext" && ac_objext=o
8834 for cc_temp in $compiler""; do
8835 case $cc_temp in
8836 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8837 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8838 \-*) ;;
8839 *) break;;
8840 esac
8841 done
8842 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8845 # Only perform the check for file, if the check method requires it
8846 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8847 case $deplibs_check_method in
8848 file_magic*)
8849 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8851 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8852 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8853 $as_echo_n "(cached) " >&6
8854 else
8855 case $MAGIC_CMD in
8856 [\\/*] | ?:[\\/]*)
8857 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8860 lt_save_MAGIC_CMD="$MAGIC_CMD"
8861 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8862 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8863 for ac_dir in $ac_dummy; do
8864 IFS="$lt_save_ifs"
8865 test -z "$ac_dir" && ac_dir=.
8866 if test -f $ac_dir/${ac_tool_prefix}file; then
8867 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8868 if test -n "$file_magic_test_file"; then
8869 case $deplibs_check_method in
8870 "file_magic "*)
8871 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8872 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8873 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8874 $EGREP "$file_magic_regex" > /dev/null; then
8876 else
8877 cat <<_LT_EOF 1>&2
8879 *** Warning: the command libtool uses to detect shared libraries,
8880 *** $file_magic_cmd, produces output that libtool cannot recognize.
8881 *** The result is that libtool may fail to recognize shared libraries
8882 *** as such. This will affect the creation of libtool libraries that
8883 *** depend on shared libraries, but programs linked with such libtool
8884 *** libraries will work regardless of this problem. Nevertheless, you
8885 *** may want to report the problem to your system manager and/or to
8886 *** bug-libtool@gnu.org
8888 _LT_EOF
8889 fi ;;
8890 esac
8892 break
8894 done
8895 IFS="$lt_save_ifs"
8896 MAGIC_CMD="$lt_save_MAGIC_CMD"
8898 esac
8901 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8902 if test -n "$MAGIC_CMD"; then
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8904 $as_echo "$MAGIC_CMD" >&6; }
8905 else
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8907 $as_echo "no" >&6; }
8914 if test -z "$lt_cv_path_MAGIC_CMD"; then
8915 if test -n "$ac_tool_prefix"; then
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8917 $as_echo_n "checking for file... " >&6; }
8918 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8919 $as_echo_n "(cached) " >&6
8920 else
8921 case $MAGIC_CMD in
8922 [\\/*] | ?:[\\/]*)
8923 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8926 lt_save_MAGIC_CMD="$MAGIC_CMD"
8927 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8928 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8929 for ac_dir in $ac_dummy; do
8930 IFS="$lt_save_ifs"
8931 test -z "$ac_dir" && ac_dir=.
8932 if test -f $ac_dir/file; then
8933 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8934 if test -n "$file_magic_test_file"; then
8935 case $deplibs_check_method in
8936 "file_magic "*)
8937 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8938 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8939 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8940 $EGREP "$file_magic_regex" > /dev/null; then
8942 else
8943 cat <<_LT_EOF 1>&2
8945 *** Warning: the command libtool uses to detect shared libraries,
8946 *** $file_magic_cmd, produces output that libtool cannot recognize.
8947 *** The result is that libtool may fail to recognize shared libraries
8948 *** as such. This will affect the creation of libtool libraries that
8949 *** depend on shared libraries, but programs linked with such libtool
8950 *** libraries will work regardless of this problem. Nevertheless, you
8951 *** may want to report the problem to your system manager and/or to
8952 *** bug-libtool@gnu.org
8954 _LT_EOF
8955 fi ;;
8956 esac
8958 break
8960 done
8961 IFS="$lt_save_ifs"
8962 MAGIC_CMD="$lt_save_MAGIC_CMD"
8964 esac
8967 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8968 if test -n "$MAGIC_CMD"; then
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8970 $as_echo "$MAGIC_CMD" >&6; }
8971 else
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8973 $as_echo "no" >&6; }
8977 else
8978 MAGIC_CMD=:
8984 esac
8986 # Use C for the default configuration in the libtool script
8988 lt_save_CC="$CC"
8989 ac_ext=c
8990 ac_cpp='$CPP $CPPFLAGS'
8991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8996 # Source file extension for C test sources.
8997 ac_ext=c
8999 # Object file extension for compiled C test sources.
9000 objext=o
9001 objext=$objext
9003 # Code to be used in simple compile tests
9004 lt_simple_compile_test_code="int some_variable = 0;"
9006 # Code to be used in simple link tests
9007 lt_simple_link_test_code='int main(){return(0);}'
9015 # If no C compiler was specified, use CC.
9016 LTCC=${LTCC-"$CC"}
9018 # If no C compiler flags were specified, use CFLAGS.
9019 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9021 # Allow CC to be a program name with arguments.
9022 compiler=$CC
9024 # Save the default compiler, since it gets overwritten when the other
9025 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9026 compiler_DEFAULT=$CC
9028 # save warnings/boilerplate of simple test code
9029 ac_outfile=conftest.$ac_objext
9030 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9031 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9032 _lt_compiler_boilerplate=`cat conftest.err`
9033 $RM conftest*
9035 ac_outfile=conftest.$ac_objext
9036 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9037 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9038 _lt_linker_boilerplate=`cat conftest.err`
9039 $RM -r conftest*
9042 ## CAVEAT EMPTOR:
9043 ## There is no encapsulation within the following macros, do not change
9044 ## the running order or otherwise move them around unless you know exactly
9045 ## what you are doing...
9046 if test -n "$compiler"; then
9048 lt_prog_compiler_no_builtin_flag=
9050 if test "$GCC" = yes; then
9051 case $cc_basename in
9052 nvcc*)
9053 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9055 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9056 esac
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9059 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9060 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9061 $as_echo_n "(cached) " >&6
9062 else
9063 lt_cv_prog_compiler_rtti_exceptions=no
9064 ac_outfile=conftest.$ac_objext
9065 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9066 lt_compiler_flag="-fno-rtti -fno-exceptions"
9067 # Insert the option either (1) after the last *FLAGS variable, or
9068 # (2) before a word containing "conftest.", or (3) at the end.
9069 # Note that $ac_compile itself does not contain backslashes and begins
9070 # with a dollar sign (not a hyphen), so the echo should work correctly.
9071 # The option is referenced via a variable to avoid confusing sed.
9072 lt_compile=`echo "$ac_compile" | $SED \
9073 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9074 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9075 -e 's:$: $lt_compiler_flag:'`
9076 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9077 (eval "$lt_compile" 2>conftest.err)
9078 ac_status=$?
9079 cat conftest.err >&5
9080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081 if (exit $ac_status) && test -s "$ac_outfile"; then
9082 # The compiler can only warn and ignore the option if not recognized
9083 # So say no if there are warnings other than the usual output.
9084 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9085 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9086 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9087 lt_cv_prog_compiler_rtti_exceptions=yes
9090 $RM conftest*
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9094 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9096 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9097 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9098 else
9109 lt_prog_compiler_wl=
9110 lt_prog_compiler_pic=
9111 lt_prog_compiler_static=
9114 if test "$GCC" = yes; then
9115 lt_prog_compiler_wl='-Wl,'
9116 lt_prog_compiler_static='-static'
9118 case $host_os in
9119 aix*)
9120 # All AIX code is PIC.
9121 if test "$host_cpu" = ia64; then
9122 # AIX 5 now supports IA64 processor
9123 lt_prog_compiler_static='-Bstatic'
9127 amigaos*)
9128 case $host_cpu in
9129 powerpc)
9130 # see comment about AmigaOS4 .so support
9131 lt_prog_compiler_pic='-fPIC'
9133 m68k)
9134 # FIXME: we need at least 68020 code to build shared libraries, but
9135 # adding the `-m68020' flag to GCC prevents building anything better,
9136 # like `-m68040'.
9137 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9139 esac
9142 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9143 # PIC is the default for these OSes.
9146 mingw* | cygwin* | pw32* | os2* | cegcc*)
9147 # This hack is so that the source file can tell whether it is being
9148 # built for inclusion in a dll (and should export symbols for example).
9149 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9150 # (--disable-auto-import) libraries
9151 lt_prog_compiler_pic='-DDLL_EXPORT'
9154 darwin* | rhapsody*)
9155 # PIC is the default on this platform
9156 # Common symbols not allowed in MH_DYLIB files
9157 lt_prog_compiler_pic='-fno-common'
9160 haiku*)
9161 # PIC is the default for Haiku.
9162 # The "-static" flag exists, but is broken.
9163 lt_prog_compiler_static=
9166 hpux*)
9167 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9168 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9169 # sets the default TLS model and affects inlining.
9170 case $host_cpu in
9171 hppa*64*)
9172 # +Z the default
9175 lt_prog_compiler_pic='-fPIC'
9177 esac
9180 interix[3-9]*)
9181 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9182 # Instead, we relocate shared libraries at runtime.
9185 msdosdjgpp*)
9186 # Just because we use GCC doesn't mean we suddenly get shared libraries
9187 # on systems that don't support them.
9188 lt_prog_compiler_can_build_shared=no
9189 enable_shared=no
9192 *nto* | *qnx*)
9193 # QNX uses GNU C++, but need to define -shared option too, otherwise
9194 # it will coredump.
9195 lt_prog_compiler_pic='-fPIC -shared'
9198 sysv4*MP*)
9199 if test -d /usr/nec; then
9200 lt_prog_compiler_pic=-Kconform_pic
9205 lt_prog_compiler_pic='-fPIC'
9207 esac
9209 case $cc_basename in
9210 nvcc*) # Cuda Compiler Driver 2.2
9211 lt_prog_compiler_wl='-Xlinker '
9212 if test -n "$lt_prog_compiler_pic"; then
9213 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9216 esac
9217 else
9218 # PORTME Check for flag to pass linker flags through the system compiler.
9219 case $host_os in
9220 aix*)
9221 lt_prog_compiler_wl='-Wl,'
9222 if test "$host_cpu" = ia64; then
9223 # AIX 5 now supports IA64 processor
9224 lt_prog_compiler_static='-Bstatic'
9225 else
9226 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9230 mingw* | cygwin* | pw32* | os2* | cegcc*)
9231 # This hack is so that the source file can tell whether it is being
9232 # built for inclusion in a dll (and should export symbols for example).
9233 lt_prog_compiler_pic='-DDLL_EXPORT'
9236 hpux9* | hpux10* | hpux11*)
9237 lt_prog_compiler_wl='-Wl,'
9238 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9239 # not for PA HP-UX.
9240 case $host_cpu in
9241 hppa*64*|ia64*)
9242 # +Z the default
9245 lt_prog_compiler_pic='+Z'
9247 esac
9248 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9249 lt_prog_compiler_static='${wl}-a ${wl}archive'
9252 irix5* | irix6* | nonstopux*)
9253 lt_prog_compiler_wl='-Wl,'
9254 # PIC (with -KPIC) is the default.
9255 lt_prog_compiler_static='-non_shared'
9258 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9259 case $cc_basename in
9260 # old Intel for x86_64 which still supported -KPIC.
9261 ecc*)
9262 lt_prog_compiler_wl='-Wl,'
9263 lt_prog_compiler_pic='-KPIC'
9264 lt_prog_compiler_static='-static'
9266 # icc used to be incompatible with GCC.
9267 # ICC 10 doesn't accept -KPIC any more.
9268 icc* | ifort*)
9269 lt_prog_compiler_wl='-Wl,'
9270 lt_prog_compiler_pic='-fPIC'
9271 lt_prog_compiler_static='-static'
9273 # Lahey Fortran 8.1.
9274 lf95*)
9275 lt_prog_compiler_wl='-Wl,'
9276 lt_prog_compiler_pic='--shared'
9277 lt_prog_compiler_static='--static'
9279 nagfor*)
9280 # NAG Fortran compiler
9281 lt_prog_compiler_wl='-Wl,-Wl,,'
9282 lt_prog_compiler_pic='-PIC'
9283 lt_prog_compiler_static='-Bstatic'
9285 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9286 # Portland Group compilers (*not* the Pentium gcc compiler,
9287 # which looks to be a dead project)
9288 lt_prog_compiler_wl='-Wl,'
9289 lt_prog_compiler_pic='-fpic'
9290 lt_prog_compiler_static='-Bstatic'
9292 ccc*)
9293 lt_prog_compiler_wl='-Wl,'
9294 # All Alpha code is PIC.
9295 lt_prog_compiler_static='-non_shared'
9297 xl* | bgxl* | bgf* | mpixl*)
9298 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9299 lt_prog_compiler_wl='-Wl,'
9300 lt_prog_compiler_pic='-qpic'
9301 lt_prog_compiler_static='-qstaticlink'
9304 case `$CC -V 2>&1 | sed 5q` in
9305 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9306 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9307 lt_prog_compiler_pic='-KPIC'
9308 lt_prog_compiler_static='-Bstatic'
9309 lt_prog_compiler_wl=''
9311 *Sun\ F* | *Sun*Fortran*)
9312 lt_prog_compiler_pic='-KPIC'
9313 lt_prog_compiler_static='-Bstatic'
9314 lt_prog_compiler_wl='-Qoption ld '
9316 *Sun\ C*)
9317 # Sun C 5.9
9318 lt_prog_compiler_pic='-KPIC'
9319 lt_prog_compiler_static='-Bstatic'
9320 lt_prog_compiler_wl='-Wl,'
9322 *Intel*\ [CF]*Compiler*)
9323 lt_prog_compiler_wl='-Wl,'
9324 lt_prog_compiler_pic='-fPIC'
9325 lt_prog_compiler_static='-static'
9327 *Portland\ Group*)
9328 lt_prog_compiler_wl='-Wl,'
9329 lt_prog_compiler_pic='-fpic'
9330 lt_prog_compiler_static='-Bstatic'
9332 esac
9334 esac
9337 newsos6)
9338 lt_prog_compiler_pic='-KPIC'
9339 lt_prog_compiler_static='-Bstatic'
9342 *nto* | *qnx*)
9343 # QNX uses GNU C++, but need to define -shared option too, otherwise
9344 # it will coredump.
9345 lt_prog_compiler_pic='-fPIC -shared'
9348 osf3* | osf4* | osf5*)
9349 lt_prog_compiler_wl='-Wl,'
9350 # All OSF/1 code is PIC.
9351 lt_prog_compiler_static='-non_shared'
9354 rdos*)
9355 lt_prog_compiler_static='-non_shared'
9358 solaris*)
9359 lt_prog_compiler_pic='-KPIC'
9360 lt_prog_compiler_static='-Bstatic'
9361 case $cc_basename in
9362 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9363 lt_prog_compiler_wl='-Qoption ld ';;
9365 lt_prog_compiler_wl='-Wl,';;
9366 esac
9369 sunos4*)
9370 lt_prog_compiler_wl='-Qoption ld '
9371 lt_prog_compiler_pic='-PIC'
9372 lt_prog_compiler_static='-Bstatic'
9375 sysv4 | sysv4.2uw2* | sysv4.3*)
9376 lt_prog_compiler_wl='-Wl,'
9377 lt_prog_compiler_pic='-KPIC'
9378 lt_prog_compiler_static='-Bstatic'
9381 sysv4*MP*)
9382 if test -d /usr/nec ;then
9383 lt_prog_compiler_pic='-Kconform_pic'
9384 lt_prog_compiler_static='-Bstatic'
9388 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9389 lt_prog_compiler_wl='-Wl,'
9390 lt_prog_compiler_pic='-KPIC'
9391 lt_prog_compiler_static='-Bstatic'
9394 unicos*)
9395 lt_prog_compiler_wl='-Wl,'
9396 lt_prog_compiler_can_build_shared=no
9399 uts4*)
9400 lt_prog_compiler_pic='-pic'
9401 lt_prog_compiler_static='-Bstatic'
9405 lt_prog_compiler_can_build_shared=no
9407 esac
9410 case $host_os in
9411 # For platforms which do not support PIC, -DPIC is meaningless:
9412 *djgpp*)
9413 lt_prog_compiler_pic=
9416 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9418 esac
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9421 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9422 if ${lt_cv_prog_compiler_pic+:} false; then :
9423 $as_echo_n "(cached) " >&6
9424 else
9425 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9428 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9429 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9432 # Check to make sure the PIC flag actually works.
9434 if test -n "$lt_prog_compiler_pic"; then
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9436 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9437 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9438 $as_echo_n "(cached) " >&6
9439 else
9440 lt_cv_prog_compiler_pic_works=no
9441 ac_outfile=conftest.$ac_objext
9442 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9443 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9444 # Insert the option either (1) after the last *FLAGS variable, or
9445 # (2) before a word containing "conftest.", or (3) at the end.
9446 # Note that $ac_compile itself does not contain backslashes and begins
9447 # with a dollar sign (not a hyphen), so the echo should work correctly.
9448 # The option is referenced via a variable to avoid confusing sed.
9449 lt_compile=`echo "$ac_compile" | $SED \
9450 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9451 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9452 -e 's:$: $lt_compiler_flag:'`
9453 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9454 (eval "$lt_compile" 2>conftest.err)
9455 ac_status=$?
9456 cat conftest.err >&5
9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 if (exit $ac_status) && test -s "$ac_outfile"; then
9459 # The compiler can only warn and ignore the option if not recognized
9460 # So say no if there are warnings other than the usual output.
9461 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9462 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9463 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9464 lt_cv_prog_compiler_pic_works=yes
9467 $RM conftest*
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9471 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9473 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9474 case $lt_prog_compiler_pic in
9475 "" | " "*) ;;
9476 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9477 esac
9478 else
9479 lt_prog_compiler_pic=
9480 lt_prog_compiler_can_build_shared=no
9496 # Check to make sure the static flag actually works.
9498 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9500 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9501 if ${lt_cv_prog_compiler_static_works+:} false; then :
9502 $as_echo_n "(cached) " >&6
9503 else
9504 lt_cv_prog_compiler_static_works=no
9505 save_LDFLAGS="$LDFLAGS"
9506 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9507 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9508 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9509 # The linker can only warn and ignore the option if not recognized
9510 # So say no if there are warnings
9511 if test -s conftest.err; then
9512 # Append any errors to the config.log.
9513 cat conftest.err 1>&5
9514 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9515 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9516 if diff conftest.exp conftest.er2 >/dev/null; then
9517 lt_cv_prog_compiler_static_works=yes
9519 else
9520 lt_cv_prog_compiler_static_works=yes
9523 $RM -r conftest*
9524 LDFLAGS="$save_LDFLAGS"
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9528 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9530 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9532 else
9533 lt_prog_compiler_static=
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9543 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9544 if ${lt_cv_prog_compiler_c_o+:} false; then :
9545 $as_echo_n "(cached) " >&6
9546 else
9547 lt_cv_prog_compiler_c_o=no
9548 $RM -r conftest 2>/dev/null
9549 mkdir conftest
9550 cd conftest
9551 mkdir out
9552 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9554 lt_compiler_flag="-o out/conftest2.$ac_objext"
9555 # Insert the option either (1) after the last *FLAGS variable, or
9556 # (2) before a word containing "conftest.", or (3) at the end.
9557 # Note that $ac_compile itself does not contain backslashes and begins
9558 # with a dollar sign (not a hyphen), so the echo should work correctly.
9559 lt_compile=`echo "$ac_compile" | $SED \
9560 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9561 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9562 -e 's:$: $lt_compiler_flag:'`
9563 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9564 (eval "$lt_compile" 2>out/conftest.err)
9565 ac_status=$?
9566 cat out/conftest.err >&5
9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9569 then
9570 # The compiler can only warn and ignore the option if not recognized
9571 # So say no if there are warnings
9572 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9573 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9574 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9575 lt_cv_prog_compiler_c_o=yes
9578 chmod u+w . 2>&5
9579 $RM conftest*
9580 # SGI C++ compiler will create directory out/ii_files/ for
9581 # template instantiation
9582 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9583 $RM out/* && rmdir out
9584 cd ..
9585 $RM -r conftest
9586 $RM conftest*
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9590 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9598 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9599 if ${lt_cv_prog_compiler_c_o+:} false; then :
9600 $as_echo_n "(cached) " >&6
9601 else
9602 lt_cv_prog_compiler_c_o=no
9603 $RM -r conftest 2>/dev/null
9604 mkdir conftest
9605 cd conftest
9606 mkdir out
9607 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9609 lt_compiler_flag="-o out/conftest2.$ac_objext"
9610 # Insert the option either (1) after the last *FLAGS variable, or
9611 # (2) before a word containing "conftest.", or (3) at the end.
9612 # Note that $ac_compile itself does not contain backslashes and begins
9613 # with a dollar sign (not a hyphen), so the echo should work correctly.
9614 lt_compile=`echo "$ac_compile" | $SED \
9615 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9616 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9617 -e 's:$: $lt_compiler_flag:'`
9618 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9619 (eval "$lt_compile" 2>out/conftest.err)
9620 ac_status=$?
9621 cat out/conftest.err >&5
9622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9624 then
9625 # The compiler can only warn and ignore the option if not recognized
9626 # So say no if there are warnings
9627 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9628 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9629 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9630 lt_cv_prog_compiler_c_o=yes
9633 chmod u+w . 2>&5
9634 $RM conftest*
9635 # SGI C++ compiler will create directory out/ii_files/ for
9636 # template instantiation
9637 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9638 $RM out/* && rmdir out
9639 cd ..
9640 $RM -r conftest
9641 $RM conftest*
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9645 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9650 hard_links="nottested"
9651 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9652 # do not overwrite the value of need_locks provided by the user
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9654 $as_echo_n "checking if we can lock with hard links... " >&6; }
9655 hard_links=yes
9656 $RM conftest*
9657 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9658 touch conftest.a
9659 ln conftest.a conftest.b 2>&5 || hard_links=no
9660 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9662 $as_echo "$hard_links" >&6; }
9663 if test "$hard_links" = no; then
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9665 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9666 need_locks=warn
9668 else
9669 need_locks=no
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9678 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9680 runpath_var=
9681 allow_undefined_flag=
9682 always_export_symbols=no
9683 archive_cmds=
9684 archive_expsym_cmds=
9685 compiler_needs_object=no
9686 enable_shared_with_static_runtimes=no
9687 export_dynamic_flag_spec=
9688 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9689 hardcode_automatic=no
9690 hardcode_direct=no
9691 hardcode_direct_absolute=no
9692 hardcode_libdir_flag_spec=
9693 hardcode_libdir_separator=
9694 hardcode_minus_L=no
9695 hardcode_shlibpath_var=unsupported
9696 inherit_rpath=no
9697 link_all_deplibs=unknown
9698 module_cmds=
9699 module_expsym_cmds=
9700 old_archive_from_new_cmds=
9701 old_archive_from_expsyms_cmds=
9702 thread_safe_flag_spec=
9703 whole_archive_flag_spec=
9704 # include_expsyms should be a list of space-separated symbols to be *always*
9705 # included in the symbol list
9706 include_expsyms=
9707 # exclude_expsyms can be an extended regexp of symbols to exclude
9708 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9709 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9710 # as well as any symbol that contains `d'.
9711 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9712 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9713 # platforms (ab)use it in PIC code, but their linkers get confused if
9714 # the symbol is explicitly referenced. Since portable code cannot
9715 # rely on this symbol name, it's probably fine to never include it in
9716 # preloaded symbol tables.
9717 # Exclude shared library initialization/finalization symbols.
9718 extract_expsyms_cmds=
9720 case $host_os in
9721 cygwin* | mingw* | pw32* | cegcc*)
9722 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9723 # When not using gcc, we currently assume that we are using
9724 # Microsoft Visual C++.
9725 if test "$GCC" != yes; then
9726 with_gnu_ld=no
9729 interix*)
9730 # we just hope/assume this is gcc and not c89 (= MSVC++)
9731 with_gnu_ld=yes
9733 openbsd*)
9734 with_gnu_ld=no
9736 esac
9738 ld_shlibs=yes
9740 # On some targets, GNU ld is compatible enough with the native linker
9741 # that we're better off using the native interface for both.
9742 lt_use_gnu_ld_interface=no
9743 if test "$with_gnu_ld" = yes; then
9744 case $host_os in
9745 aix*)
9746 # The AIX port of GNU ld has always aspired to compatibility
9747 # with the native linker. However, as the warning in the GNU ld
9748 # block says, versions before 2.19.5* couldn't really create working
9749 # shared libraries, regardless of the interface used.
9750 case `$LD -v 2>&1` in
9751 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9752 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9753 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9755 lt_use_gnu_ld_interface=yes
9757 esac
9760 lt_use_gnu_ld_interface=yes
9762 esac
9765 if test "$lt_use_gnu_ld_interface" = yes; then
9766 # If archive_cmds runs LD, not CC, wlarc should be empty
9767 wlarc='${wl}'
9769 # Set some defaults for GNU ld with shared library support. These
9770 # are reset later if shared libraries are not supported. Putting them
9771 # here allows them to be overridden if necessary.
9772 runpath_var=LD_RUN_PATH
9773 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9774 export_dynamic_flag_spec='${wl}--export-dynamic'
9775 # ancient GNU ld didn't support --whole-archive et. al.
9776 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9777 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9778 else
9779 whole_archive_flag_spec=
9781 supports_anon_versioning=no
9782 case `$LD -v 2>&1` in
9783 *GNU\ gold*) supports_anon_versioning=yes ;;
9784 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9785 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9786 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9787 *\ 2.11.*) ;; # other 2.11 versions
9788 *) supports_anon_versioning=yes ;;
9789 esac
9791 # See if GNU ld supports shared libraries.
9792 case $host_os in
9793 aix[3-9]*)
9794 # On AIX/PPC, the GNU linker is very broken
9795 if test "$host_cpu" != ia64; then
9796 ld_shlibs=no
9797 cat <<_LT_EOF 1>&2
9799 *** Warning: the GNU linker, at least up to release 2.19, is reported
9800 *** to be unable to reliably create shared libraries on AIX.
9801 *** Therefore, libtool is disabling shared libraries support. If you
9802 *** really care for shared libraries, you may want to install binutils
9803 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9804 *** You will then need to restart the configuration process.
9806 _LT_EOF
9810 amigaos*)
9811 case $host_cpu in
9812 powerpc)
9813 # see comment about AmigaOS4 .so support
9814 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9815 archive_expsym_cmds=''
9817 m68k)
9818 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)'
9819 hardcode_libdir_flag_spec='-L$libdir'
9820 hardcode_minus_L=yes
9822 esac
9825 beos*)
9826 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9827 allow_undefined_flag=unsupported
9828 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9829 # support --undefined. This deserves some investigation. FIXME
9830 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9831 else
9832 ld_shlibs=no
9836 cygwin* | mingw* | pw32* | cegcc*)
9837 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9838 # as there is no search path for DLLs.
9839 hardcode_libdir_flag_spec='-L$libdir'
9840 export_dynamic_flag_spec='${wl}--export-all-symbols'
9841 allow_undefined_flag=unsupported
9842 always_export_symbols=no
9843 enable_shared_with_static_runtimes=yes
9844 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9845 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9847 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9848 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9849 # If the export-symbols file already is a .def file (1st line
9850 # is EXPORTS), use it as is; otherwise, prepend...
9851 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9852 cp $export_symbols $output_objdir/$soname.def;
9853 else
9854 echo EXPORTS > $output_objdir/$soname.def;
9855 cat $export_symbols >> $output_objdir/$soname.def;
9857 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9858 else
9859 ld_shlibs=no
9863 haiku*)
9864 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9865 link_all_deplibs=yes
9868 interix[3-9]*)
9869 hardcode_direct=no
9870 hardcode_shlibpath_var=no
9871 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9872 export_dynamic_flag_spec='${wl}-E'
9873 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9874 # Instead, shared libraries are loaded at an image base (0x10000000 by
9875 # default) and relocated if they conflict, which is a slow very memory
9876 # consuming and fragmenting process. To avoid this, we pick a random,
9877 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9878 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9879 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9880 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'
9883 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9884 tmp_diet=no
9885 if test "$host_os" = linux-dietlibc; then
9886 case $cc_basename in
9887 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9888 esac
9890 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9891 && test "$tmp_diet" = no
9892 then
9893 tmp_addflag=' $pic_flag'
9894 tmp_sharedflag='-shared'
9895 case $cc_basename,$host_cpu in
9896 pgcc*) # Portland Group C compiler
9897 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'
9898 tmp_addflag=' $pic_flag'
9900 pgf77* | pgf90* | pgf95* | pgfortran*)
9901 # Portland Group f77 and f90 compilers
9902 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'
9903 tmp_addflag=' $pic_flag -Mnomain' ;;
9904 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9905 tmp_addflag=' -i_dynamic' ;;
9906 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9907 tmp_addflag=' -i_dynamic -nofor_main' ;;
9908 ifc* | ifort*) # Intel Fortran compiler
9909 tmp_addflag=' -nofor_main' ;;
9910 lf95*) # Lahey Fortran 8.1
9911 whole_archive_flag_spec=
9912 tmp_sharedflag='--shared' ;;
9913 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9914 tmp_sharedflag='-qmkshrobj'
9915 tmp_addflag= ;;
9916 nvcc*) # Cuda Compiler Driver 2.2
9917 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'
9918 compiler_needs_object=yes
9920 esac
9921 case `$CC -V 2>&1 | sed 5q` in
9922 *Sun\ C*) # Sun C 5.9
9923 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'
9924 compiler_needs_object=yes
9925 tmp_sharedflag='-G' ;;
9926 *Sun\ F*) # Sun Fortran 8.3
9927 tmp_sharedflag='-G' ;;
9928 esac
9929 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9931 if test "x$supports_anon_versioning" = xyes; then
9932 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9933 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9934 echo "local: *; };" >> $output_objdir/$libname.ver~
9935 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9938 case $cc_basename in
9939 xlf* | bgf* | bgxlf* | mpixlf*)
9940 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9941 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9942 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9943 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9944 if test "x$supports_anon_versioning" = xyes; then
9945 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9946 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9947 echo "local: *; };" >> $output_objdir/$libname.ver~
9948 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9951 esac
9952 else
9953 ld_shlibs=no
9957 netbsd*)
9958 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9959 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9960 wlarc=
9961 else
9962 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9963 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9967 solaris*)
9968 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9969 ld_shlibs=no
9970 cat <<_LT_EOF 1>&2
9972 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9973 *** create shared libraries on Solaris systems. Therefore, libtool
9974 *** is disabling shared libraries support. We urge you to upgrade GNU
9975 *** binutils to release 2.9.1 or newer. Another option is to modify
9976 *** your PATH or compiler configuration so that the native linker is
9977 *** used, and then restart.
9979 _LT_EOF
9980 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9981 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9982 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9983 else
9984 ld_shlibs=no
9988 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9989 case `$LD -v 2>&1` in
9990 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9991 ld_shlibs=no
9992 cat <<_LT_EOF 1>&2
9994 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9995 *** reliably create shared libraries on SCO systems. Therefore, libtool
9996 *** is disabling shared libraries support. We urge you to upgrade GNU
9997 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9998 *** your PATH or compiler configuration so that the native linker is
9999 *** used, and then restart.
10001 _LT_EOF
10004 # For security reasons, it is highly recommended that you always
10005 # use absolute paths for naming shared libraries, and exclude the
10006 # DT_RUNPATH tag from executables and libraries. But doing so
10007 # requires that you compile everything twice, which is a pain.
10008 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10009 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10010 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10011 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10012 else
10013 ld_shlibs=no
10016 esac
10019 sunos4*)
10020 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10021 wlarc=
10022 hardcode_direct=yes
10023 hardcode_shlibpath_var=no
10027 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10028 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10029 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10030 else
10031 ld_shlibs=no
10034 esac
10036 if test "$ld_shlibs" = no; then
10037 runpath_var=
10038 hardcode_libdir_flag_spec=
10039 export_dynamic_flag_spec=
10040 whole_archive_flag_spec=
10042 else
10043 # PORTME fill in a description of your system's linker (not GNU ld)
10044 case $host_os in
10045 aix3*)
10046 allow_undefined_flag=unsupported
10047 always_export_symbols=yes
10048 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'
10049 # Note: this linker hardcodes the directories in LIBPATH if there
10050 # are no directories specified by -L.
10051 hardcode_minus_L=yes
10052 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10053 # Neither direct hardcoding nor static linking is supported with a
10054 # broken collect2.
10055 hardcode_direct=unsupported
10059 aix[4-9]*)
10060 if test "$host_cpu" = ia64; then
10061 # On IA64, the linker does run time linking by default, so we don't
10062 # have to do anything special.
10063 aix_use_runtimelinking=no
10064 exp_sym_flag='-Bexport'
10065 no_entry_flag=""
10066 else
10067 # If we're using GNU nm, then we don't want the "-C" option.
10068 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10069 # Also, AIX nm treats weak defined symbols like other global
10070 # defined symbols, whereas GNU nm marks them as "W".
10071 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10072 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'
10073 else
10074 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10076 aix_use_runtimelinking=no
10078 # Test if we are trying to use run time linking or normal
10079 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10080 # need to do runtime linking.
10081 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10082 for ld_flag in $LDFLAGS; do
10083 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10084 aix_use_runtimelinking=yes
10085 break
10087 done
10089 esac
10091 exp_sym_flag='-bexport'
10092 no_entry_flag='-bnoentry'
10095 # When large executables or shared objects are built, AIX ld can
10096 # have problems creating the table of contents. If linking a library
10097 # or program results in "error TOC overflow" add -mminimal-toc to
10098 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10099 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10101 archive_cmds=''
10102 hardcode_direct=yes
10103 hardcode_direct_absolute=yes
10104 hardcode_libdir_separator=':'
10105 link_all_deplibs=yes
10106 file_list_spec='${wl}-f,'
10108 if test "$GCC" = yes; then
10109 case $host_os in aix4.[012]|aix4.[012].*)
10110 # We only want to do this on AIX 4.2 and lower, the check
10111 # below for broken collect2 doesn't work under 4.3+
10112 collect2name=`${CC} -print-prog-name=collect2`
10113 if test -f "$collect2name" &&
10114 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10115 then
10116 # We have reworked collect2
10118 else
10119 # We have old collect2
10120 hardcode_direct=unsupported
10121 # It fails to find uninstalled libraries when the uninstalled
10122 # path is not listed in the libpath. Setting hardcode_minus_L
10123 # to unsupported forces relinking
10124 hardcode_minus_L=yes
10125 hardcode_libdir_flag_spec='-L$libdir'
10126 hardcode_libdir_separator=
10129 esac
10130 shared_flag='-shared'
10131 if test "$aix_use_runtimelinking" = yes; then
10132 shared_flag="$shared_flag "'${wl}-G'
10134 else
10135 # not using gcc
10136 if test "$host_cpu" = ia64; then
10137 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10138 # chokes on -Wl,-G. The following line is correct:
10139 shared_flag='-G'
10140 else
10141 if test "$aix_use_runtimelinking" = yes; then
10142 shared_flag='${wl}-G'
10143 else
10144 shared_flag='${wl}-bM:SRE'
10149 export_dynamic_flag_spec='${wl}-bexpall'
10150 # It seems that -bexpall does not export symbols beginning with
10151 # underscore (_), so it is better to generate a list of symbols to export.
10152 always_export_symbols=yes
10153 if test "$aix_use_runtimelinking" = yes; then
10154 # Warning - without using the other runtime loading flags (-brtl),
10155 # -berok will link without error, but may produce a broken library.
10156 allow_undefined_flag='-berok'
10157 # Determine the default libpath from the value encoded in an
10158 # empty executable.
10159 if test "${lt_cv_aix_libpath+set}" = set; then
10160 aix_libpath=$lt_cv_aix_libpath
10161 else
10162 if ${lt_cv_aix_libpath_+:} false; then :
10163 $as_echo_n "(cached) " >&6
10164 else
10165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10166 /* end confdefs.h. */
10169 main ()
10173 return 0;
10175 _ACEOF
10176 if ac_fn_c_try_link "$LINENO"; then :
10178 lt_aix_libpath_sed='
10179 /Import File Strings/,/^$/ {
10180 /^0/ {
10181 s/^0 *\([^ ]*\) *$/\1/
10185 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10186 # Check for a 64-bit object if we didn't find anything.
10187 if test -z "$lt_cv_aix_libpath_"; then
10188 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10191 rm -f core conftest.err conftest.$ac_objext \
10192 conftest$ac_exeext conftest.$ac_ext
10193 if test -z "$lt_cv_aix_libpath_"; then
10194 lt_cv_aix_libpath_="/usr/lib:/lib"
10199 aix_libpath=$lt_cv_aix_libpath_
10202 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10203 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"
10204 else
10205 if test "$host_cpu" = ia64; then
10206 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10207 allow_undefined_flag="-z nodefs"
10208 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"
10209 else
10210 # Determine the default libpath from the value encoded in an
10211 # empty executable.
10212 if test "${lt_cv_aix_libpath+set}" = set; then
10213 aix_libpath=$lt_cv_aix_libpath
10214 else
10215 if ${lt_cv_aix_libpath_+:} false; then :
10216 $as_echo_n "(cached) " >&6
10217 else
10218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10219 /* end confdefs.h. */
10222 main ()
10226 return 0;
10228 _ACEOF
10229 if ac_fn_c_try_link "$LINENO"; then :
10231 lt_aix_libpath_sed='
10232 /Import File Strings/,/^$/ {
10233 /^0/ {
10234 s/^0 *\([^ ]*\) *$/\1/
10238 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10239 # Check for a 64-bit object if we didn't find anything.
10240 if test -z "$lt_cv_aix_libpath_"; then
10241 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10244 rm -f core conftest.err conftest.$ac_objext \
10245 conftest$ac_exeext conftest.$ac_ext
10246 if test -z "$lt_cv_aix_libpath_"; then
10247 lt_cv_aix_libpath_="/usr/lib:/lib"
10252 aix_libpath=$lt_cv_aix_libpath_
10255 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10256 # Warning - without using the other run time loading flags,
10257 # -berok will link without error, but may produce a broken library.
10258 no_undefined_flag=' ${wl}-bernotok'
10259 allow_undefined_flag=' ${wl}-berok'
10260 if test "$with_gnu_ld" = yes; then
10261 # We only use this code for GNU lds that support --whole-archive.
10262 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10263 else
10264 # Exported symbols can be pulled into shared objects from archives
10265 whole_archive_flag_spec='$convenience'
10267 archive_cmds_need_lc=yes
10268 # This is similar to how AIX traditionally builds its shared libraries.
10269 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'
10274 amigaos*)
10275 case $host_cpu in
10276 powerpc)
10277 # see comment about AmigaOS4 .so support
10278 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10279 archive_expsym_cmds=''
10281 m68k)
10282 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)'
10283 hardcode_libdir_flag_spec='-L$libdir'
10284 hardcode_minus_L=yes
10286 esac
10289 bsdi[45]*)
10290 export_dynamic_flag_spec=-rdynamic
10293 cygwin* | mingw* | pw32* | cegcc*)
10294 # When not using gcc, we currently assume that we are using
10295 # Microsoft Visual C++.
10296 # hardcode_libdir_flag_spec is actually meaningless, as there is
10297 # no search path for DLLs.
10298 case $cc_basename in
10299 cl*)
10300 # Native MSVC
10301 hardcode_libdir_flag_spec=' '
10302 allow_undefined_flag=unsupported
10303 always_export_symbols=yes
10304 file_list_spec='@'
10305 # Tell ltmain to make .lib files, not .a files.
10306 libext=lib
10307 # Tell ltmain to make .dll files, not .so files.
10308 shrext_cmds=".dll"
10309 # FIXME: Setting linknames here is a bad hack.
10310 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10311 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10312 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10313 else
10314 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10316 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10317 linknames='
10318 # The linker will not automatically build a static lib if we build a DLL.
10319 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10320 enable_shared_with_static_runtimes=yes
10321 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10322 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10323 # Don't use ranlib
10324 old_postinstall_cmds='chmod 644 $oldlib'
10325 postlink_cmds='lt_outputfile="@OUTPUT@"~
10326 lt_tool_outputfile="@TOOL_OUTPUT@"~
10327 case $lt_outputfile in
10328 *.exe|*.EXE) ;;
10330 lt_outputfile="$lt_outputfile.exe"
10331 lt_tool_outputfile="$lt_tool_outputfile.exe"
10333 esac~
10334 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10335 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10336 $RM "$lt_outputfile.manifest";
10340 # Assume MSVC wrapper
10341 hardcode_libdir_flag_spec=' '
10342 allow_undefined_flag=unsupported
10343 # Tell ltmain to make .lib files, not .a files.
10344 libext=lib
10345 # Tell ltmain to make .dll files, not .so files.
10346 shrext_cmds=".dll"
10347 # FIXME: Setting linknames here is a bad hack.
10348 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10349 # The linker will automatically build a .lib file if we build a DLL.
10350 old_archive_from_new_cmds='true'
10351 # FIXME: Should let the user specify the lib program.
10352 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10353 enable_shared_with_static_runtimes=yes
10355 esac
10358 darwin* | rhapsody*)
10361 archive_cmds_need_lc=no
10362 hardcode_direct=no
10363 hardcode_automatic=yes
10364 hardcode_shlibpath_var=unsupported
10365 if test "$lt_cv_ld_force_load" = "yes"; then
10366 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\"`'
10368 else
10369 whole_archive_flag_spec=''
10371 link_all_deplibs=yes
10372 allow_undefined_flag="$_lt_dar_allow_undefined"
10373 case $cc_basename in
10374 ifort*) _lt_dar_can_shared=yes ;;
10375 *) _lt_dar_can_shared=$GCC ;;
10376 esac
10377 if test "$_lt_dar_can_shared" = "yes"; then
10378 output_verbose_link_cmd=func_echo_all
10379 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10380 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10381 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}"
10382 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}"
10384 else
10385 ld_shlibs=no
10390 dgux*)
10391 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10392 hardcode_libdir_flag_spec='-L$libdir'
10393 hardcode_shlibpath_var=no
10396 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10397 # support. Future versions do this automatically, but an explicit c++rt0.o
10398 # does not break anything, and helps significantly (at the cost of a little
10399 # extra space).
10400 freebsd2.2*)
10401 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10402 hardcode_libdir_flag_spec='-R$libdir'
10403 hardcode_direct=yes
10404 hardcode_shlibpath_var=no
10407 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10408 freebsd2.*)
10409 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10410 hardcode_direct=yes
10411 hardcode_minus_L=yes
10412 hardcode_shlibpath_var=no
10415 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10416 freebsd* | dragonfly*)
10417 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10418 hardcode_libdir_flag_spec='-R$libdir'
10419 hardcode_direct=yes
10420 hardcode_shlibpath_var=no
10423 hpux9*)
10424 if test "$GCC" = yes; then
10425 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10426 else
10427 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'
10429 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10430 hardcode_libdir_separator=:
10431 hardcode_direct=yes
10433 # hardcode_minus_L: Not really in the search PATH,
10434 # but as the default location of the library.
10435 hardcode_minus_L=yes
10436 export_dynamic_flag_spec='${wl}-E'
10439 hpux10*)
10440 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10441 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10442 else
10443 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10445 if test "$with_gnu_ld" = no; then
10446 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10447 hardcode_libdir_separator=:
10448 hardcode_direct=yes
10449 hardcode_direct_absolute=yes
10450 export_dynamic_flag_spec='${wl}-E'
10451 # hardcode_minus_L: Not really in the search PATH,
10452 # but as the default location of the library.
10453 hardcode_minus_L=yes
10457 hpux11*)
10458 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10459 case $host_cpu in
10460 hppa*64*)
10461 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10463 ia64*)
10464 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10467 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10469 esac
10470 else
10471 case $host_cpu in
10472 hppa*64*)
10473 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10475 ia64*)
10476 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10480 # Older versions of the 11.00 compiler do not understand -b yet
10481 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10483 $as_echo_n "checking if $CC understands -b... " >&6; }
10484 if ${lt_cv_prog_compiler__b+:} false; then :
10485 $as_echo_n "(cached) " >&6
10486 else
10487 lt_cv_prog_compiler__b=no
10488 save_LDFLAGS="$LDFLAGS"
10489 LDFLAGS="$LDFLAGS -b"
10490 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10491 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10492 # The linker can only warn and ignore the option if not recognized
10493 # So say no if there are warnings
10494 if test -s conftest.err; then
10495 # Append any errors to the config.log.
10496 cat conftest.err 1>&5
10497 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10498 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10499 if diff conftest.exp conftest.er2 >/dev/null; then
10500 lt_cv_prog_compiler__b=yes
10502 else
10503 lt_cv_prog_compiler__b=yes
10506 $RM -r conftest*
10507 LDFLAGS="$save_LDFLAGS"
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10511 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10513 if test x"$lt_cv_prog_compiler__b" = xyes; then
10514 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10515 else
10516 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10520 esac
10522 if test "$with_gnu_ld" = no; then
10523 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10524 hardcode_libdir_separator=:
10526 case $host_cpu in
10527 hppa*64*|ia64*)
10528 hardcode_direct=no
10529 hardcode_shlibpath_var=no
10532 hardcode_direct=yes
10533 hardcode_direct_absolute=yes
10534 export_dynamic_flag_spec='${wl}-E'
10536 # hardcode_minus_L: Not really in the search PATH,
10537 # but as the default location of the library.
10538 hardcode_minus_L=yes
10540 esac
10544 irix5* | irix6* | nonstopux*)
10545 if test "$GCC" = yes; then
10546 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10547 # Try to use the -exported_symbol ld option, if it does not
10548 # work, assume that -exports_file does not work either and
10549 # implicitly export all symbols.
10550 # This should be the same for all languages, so no per-tag cache variable.
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10552 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10553 if ${lt_cv_irix_exported_symbol+:} false; then :
10554 $as_echo_n "(cached) " >&6
10555 else
10556 save_LDFLAGS="$LDFLAGS"
10557 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10559 /* end confdefs.h. */
10560 int foo (void) { return 0; }
10561 _ACEOF
10562 if ac_fn_c_try_link "$LINENO"; then :
10563 lt_cv_irix_exported_symbol=yes
10564 else
10565 lt_cv_irix_exported_symbol=no
10567 rm -f core conftest.err conftest.$ac_objext \
10568 conftest$ac_exeext conftest.$ac_ext
10569 LDFLAGS="$save_LDFLAGS"
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10572 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10573 if test "$lt_cv_irix_exported_symbol" = yes; then
10574 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10576 else
10577 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'
10578 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'
10580 archive_cmds_need_lc='no'
10581 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10582 hardcode_libdir_separator=:
10583 inherit_rpath=yes
10584 link_all_deplibs=yes
10587 netbsd*)
10588 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10589 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10590 else
10591 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10593 hardcode_libdir_flag_spec='-R$libdir'
10594 hardcode_direct=yes
10595 hardcode_shlibpath_var=no
10598 newsos6)
10599 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10600 hardcode_direct=yes
10601 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10602 hardcode_libdir_separator=:
10603 hardcode_shlibpath_var=no
10606 *nto* | *qnx*)
10609 openbsd*)
10610 if test -f /usr/libexec/ld.so; then
10611 hardcode_direct=yes
10612 hardcode_shlibpath_var=no
10613 hardcode_direct_absolute=yes
10614 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10615 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10616 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10617 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10618 export_dynamic_flag_spec='${wl}-E'
10619 else
10620 case $host_os in
10621 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10622 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10623 hardcode_libdir_flag_spec='-R$libdir'
10626 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10627 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10629 esac
10631 else
10632 ld_shlibs=no
10636 os2*)
10637 hardcode_libdir_flag_spec='-L$libdir'
10638 hardcode_minus_L=yes
10639 allow_undefined_flag=unsupported
10640 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'
10641 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10644 osf3*)
10645 if test "$GCC" = yes; then
10646 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10647 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'
10648 else
10649 allow_undefined_flag=' -expect_unresolved \*'
10650 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'
10652 archive_cmds_need_lc='no'
10653 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10654 hardcode_libdir_separator=:
10657 osf4* | osf5*) # as osf3* with the addition of -msym flag
10658 if test "$GCC" = yes; then
10659 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10660 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10661 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10662 else
10663 allow_undefined_flag=' -expect_unresolved \*'
10664 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'
10665 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~
10666 $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'
10668 # Both c and cxx compiler support -rpath directly
10669 hardcode_libdir_flag_spec='-rpath $libdir'
10671 archive_cmds_need_lc='no'
10672 hardcode_libdir_separator=:
10675 solaris*)
10676 no_undefined_flag=' -z defs'
10677 if test "$GCC" = yes; then
10678 wlarc='${wl}'
10679 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10680 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10681 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10682 else
10683 case `$CC -V 2>&1` in
10684 *"Compilers 5.0"*)
10685 wlarc=''
10686 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10687 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10688 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10691 wlarc='${wl}'
10692 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10693 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10694 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10696 esac
10698 hardcode_libdir_flag_spec='-R$libdir'
10699 hardcode_shlibpath_var=no
10700 case $host_os in
10701 solaris2.[0-5] | solaris2.[0-5].*) ;;
10703 # The compiler driver will combine and reorder linker options,
10704 # but understands `-z linker_flag'. GCC discards it without `$wl',
10705 # but is careful enough not to reorder.
10706 # Supported since Solaris 2.6 (maybe 2.5.1?)
10707 if test "$GCC" = yes; then
10708 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10709 else
10710 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10713 esac
10714 link_all_deplibs=yes
10717 sunos4*)
10718 if test "x$host_vendor" = xsequent; then
10719 # Use $CC to link under sequent, because it throws in some extra .o
10720 # files that make .init and .fini sections work.
10721 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10722 else
10723 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10725 hardcode_libdir_flag_spec='-L$libdir'
10726 hardcode_direct=yes
10727 hardcode_minus_L=yes
10728 hardcode_shlibpath_var=no
10731 sysv4)
10732 case $host_vendor in
10733 sni)
10734 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10735 hardcode_direct=yes # is this really true???
10737 siemens)
10738 ## LD is ld it makes a PLAMLIB
10739 ## CC just makes a GrossModule.
10740 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10741 reload_cmds='$CC -r -o $output$reload_objs'
10742 hardcode_direct=no
10744 motorola)
10745 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10746 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10748 esac
10749 runpath_var='LD_RUN_PATH'
10750 hardcode_shlibpath_var=no
10753 sysv4.3*)
10754 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10755 hardcode_shlibpath_var=no
10756 export_dynamic_flag_spec='-Bexport'
10759 sysv4*MP*)
10760 if test -d /usr/nec; then
10761 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10762 hardcode_shlibpath_var=no
10763 runpath_var=LD_RUN_PATH
10764 hardcode_runpath_var=yes
10765 ld_shlibs=yes
10769 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10770 no_undefined_flag='${wl}-z,text'
10771 archive_cmds_need_lc=no
10772 hardcode_shlibpath_var=no
10773 runpath_var='LD_RUN_PATH'
10775 if test "$GCC" = yes; then
10776 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10777 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10778 else
10779 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10780 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10784 sysv5* | sco3.2v5* | sco5v6*)
10785 # Note: We can NOT use -z defs as we might desire, because we do not
10786 # link with -lc, and that would cause any symbols used from libc to
10787 # always be unresolved, which means just about no library would
10788 # ever link correctly. If we're not using GNU ld we use -z text
10789 # though, which does catch some bad symbols but isn't as heavy-handed
10790 # as -z defs.
10791 no_undefined_flag='${wl}-z,text'
10792 allow_undefined_flag='${wl}-z,nodefs'
10793 archive_cmds_need_lc=no
10794 hardcode_shlibpath_var=no
10795 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10796 hardcode_libdir_separator=':'
10797 link_all_deplibs=yes
10798 export_dynamic_flag_spec='${wl}-Bexport'
10799 runpath_var='LD_RUN_PATH'
10801 if test "$GCC" = yes; then
10802 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10803 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10804 else
10805 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10806 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10810 uts4*)
10811 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10812 hardcode_libdir_flag_spec='-L$libdir'
10813 hardcode_shlibpath_var=no
10817 ld_shlibs=no
10819 esac
10821 if test x$host_vendor = xsni; then
10822 case $host in
10823 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10824 export_dynamic_flag_spec='${wl}-Blargedynsym'
10826 esac
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10831 $as_echo "$ld_shlibs" >&6; }
10832 test "$ld_shlibs" = no && can_build_shared=no
10834 with_gnu_ld=$with_gnu_ld
10851 # Do we need to explicitly link libc?
10853 case "x$archive_cmds_need_lc" in
10854 x|xyes)
10855 # Assume -lc should be added
10856 archive_cmds_need_lc=yes
10858 if test "$enable_shared" = yes && test "$GCC" = yes; then
10859 case $archive_cmds in
10860 *'~'*)
10861 # FIXME: we may have to deal with multi-command sequences.
10863 '$CC '*)
10864 # Test whether the compiler implicitly links with -lc since on some
10865 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10866 # to ld, don't add -lc before -lgcc.
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10868 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10869 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10870 $as_echo_n "(cached) " >&6
10871 else
10872 $RM conftest*
10873 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10875 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10876 (eval $ac_compile) 2>&5
10877 ac_status=$?
10878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10879 test $ac_status = 0; } 2>conftest.err; then
10880 soname=conftest
10881 lib=conftest
10882 libobjs=conftest.$ac_objext
10883 deplibs=
10884 wl=$lt_prog_compiler_wl
10885 pic_flag=$lt_prog_compiler_pic
10886 compiler_flags=-v
10887 linker_flags=-v
10888 verstring=
10889 output_objdir=.
10890 libname=conftest
10891 lt_save_allow_undefined_flag=$allow_undefined_flag
10892 allow_undefined_flag=
10893 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10894 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10895 ac_status=$?
10896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10897 test $ac_status = 0; }
10898 then
10899 lt_cv_archive_cmds_need_lc=no
10900 else
10901 lt_cv_archive_cmds_need_lc=yes
10903 allow_undefined_flag=$lt_save_allow_undefined_flag
10904 else
10905 cat conftest.err 1>&5
10907 $RM conftest*
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10911 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10912 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10914 esac
10917 esac
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11071 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11073 if test "$GCC" = yes; then
11074 case $host_os in
11075 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11076 *) lt_awk_arg="/^libraries:/" ;;
11077 esac
11078 case $host_os in
11079 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11080 *) lt_sed_strip_eq="s,=/,/,g" ;;
11081 esac
11082 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11083 case $lt_search_path_spec in
11084 *\;*)
11085 # if the path contains ";" then we assume it to be the separator
11086 # otherwise default to the standard path separator (i.e. ":") - it is
11087 # assumed that no part of a normal pathname contains ";" but that should
11088 # okay in the real world where ";" in dirpaths is itself problematic.
11089 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11092 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11094 esac
11095 # Ok, now we have the path, separated by spaces, we can step through it
11096 # and add multilib dir if necessary.
11097 lt_tmp_lt_search_path_spec=
11098 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11099 for lt_sys_path in $lt_search_path_spec; do
11100 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11101 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11102 else
11103 test -d "$lt_sys_path" && \
11104 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11106 done
11107 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11108 BEGIN {RS=" "; FS="/|\n";} {
11109 lt_foo="";
11110 lt_count=0;
11111 for (lt_i = NF; lt_i > 0; lt_i--) {
11112 if ($lt_i != "" && $lt_i != ".") {
11113 if ($lt_i == "..") {
11114 lt_count++;
11115 } else {
11116 if (lt_count == 0) {
11117 lt_foo="/" $lt_i lt_foo;
11118 } else {
11119 lt_count--;
11124 if (lt_foo != "") { lt_freq[lt_foo]++; }
11125 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11127 # AWK program above erroneously prepends '/' to C:/dos/paths
11128 # for these hosts.
11129 case $host_os in
11130 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11131 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11132 esac
11133 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11134 else
11135 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11137 library_names_spec=
11138 libname_spec='lib$name'
11139 soname_spec=
11140 shrext_cmds=".so"
11141 postinstall_cmds=
11142 postuninstall_cmds=
11143 finish_cmds=
11144 finish_eval=
11145 shlibpath_var=
11146 shlibpath_overrides_runpath=unknown
11147 version_type=none
11148 dynamic_linker="$host_os ld.so"
11149 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11150 need_lib_prefix=unknown
11151 hardcode_into_libs=no
11153 # when you set need_version to no, make sure it does not cause -set_version
11154 # flags to be left without arguments
11155 need_version=unknown
11157 case $host_os in
11158 aix3*)
11159 version_type=linux # correct to gnu/linux during the next big refactor
11160 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11161 shlibpath_var=LIBPATH
11163 # AIX 3 has no versioning support, so we append a major version to the name.
11164 soname_spec='${libname}${release}${shared_ext}$major'
11167 aix[4-9]*)
11168 version_type=linux # correct to gnu/linux during the next big refactor
11169 need_lib_prefix=no
11170 need_version=no
11171 hardcode_into_libs=yes
11172 if test "$host_cpu" = ia64; then
11173 # AIX 5 supports IA64
11174 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11175 shlibpath_var=LD_LIBRARY_PATH
11176 else
11177 # With GCC up to 2.95.x, collect2 would create an import file
11178 # for dependence libraries. The import file would start with
11179 # the line `#! .'. This would cause the generated library to
11180 # depend on `.', always an invalid library. This was fixed in
11181 # development snapshots of GCC prior to 3.0.
11182 case $host_os in
11183 aix4 | aix4.[01] | aix4.[01].*)
11184 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11185 echo ' yes '
11186 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11188 else
11189 can_build_shared=no
11192 esac
11193 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11194 # soname into executable. Probably we can add versioning support to
11195 # collect2, so additional links can be useful in future.
11196 if test "$aix_use_runtimelinking" = yes; then
11197 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11198 # instead of lib<name>.a to let people know that these are not
11199 # typical AIX shared libraries.
11200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11201 else
11202 # We preserve .a as extension for shared libraries through AIX4.2
11203 # and later when we are not doing run time linking.
11204 library_names_spec='${libname}${release}.a $libname.a'
11205 soname_spec='${libname}${release}${shared_ext}$major'
11207 shlibpath_var=LIBPATH
11211 amigaos*)
11212 case $host_cpu in
11213 powerpc)
11214 # Since July 2007 AmigaOS4 officially supports .so libraries.
11215 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11218 m68k)
11219 library_names_spec='$libname.ixlibrary $libname.a'
11220 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11221 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'
11223 esac
11226 beos*)
11227 library_names_spec='${libname}${shared_ext}'
11228 dynamic_linker="$host_os ld.so"
11229 shlibpath_var=LIBRARY_PATH
11232 bsdi[45]*)
11233 version_type=linux # correct to gnu/linux during the next big refactor
11234 need_version=no
11235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11236 soname_spec='${libname}${release}${shared_ext}$major'
11237 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11238 shlibpath_var=LD_LIBRARY_PATH
11239 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11240 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11241 # the default ld.so.conf also contains /usr/contrib/lib and
11242 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11243 # libtool to hard-code these into programs
11246 cygwin* | mingw* | pw32* | cegcc*)
11247 version_type=windows
11248 shrext_cmds=".dll"
11249 need_version=no
11250 need_lib_prefix=no
11252 case $GCC,$cc_basename in
11253 yes,*)
11254 # gcc
11255 library_names_spec='$libname.dll.a'
11256 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11257 postinstall_cmds='base_file=`basename \${file}`~
11258 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11259 dldir=$destdir/`dirname \$dlpath`~
11260 test -d \$dldir || mkdir -p \$dldir~
11261 $install_prog $dir/$dlname \$dldir/$dlname~
11262 chmod a+x \$dldir/$dlname~
11263 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11264 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11266 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11267 dlpath=$dir/\$dldll~
11268 $RM \$dlpath'
11269 shlibpath_overrides_runpath=yes
11271 case $host_os in
11272 cygwin*)
11273 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11274 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11276 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11278 mingw* | cegcc*)
11279 # MinGW DLLs use traditional 'lib' prefix
11280 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11282 pw32*)
11283 # pw32 DLLs use 'pw' prefix rather than 'lib'
11284 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11286 esac
11287 dynamic_linker='Win32 ld.exe'
11290 *,cl*)
11291 # Native MSVC
11292 libname_spec='$name'
11293 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11294 library_names_spec='${libname}.dll.lib'
11296 case $build_os in
11297 mingw*)
11298 sys_lib_search_path_spec=
11299 lt_save_ifs=$IFS
11300 IFS=';'
11301 for lt_path in $LIB
11303 IFS=$lt_save_ifs
11304 # Let DOS variable expansion print the short 8.3 style file name.
11305 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11306 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11307 done
11308 IFS=$lt_save_ifs
11309 # Convert to MSYS style.
11310 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11312 cygwin*)
11313 # Convert to unix form, then to dos form, then back to unix form
11314 # but this time dos style (no spaces!) so that the unix form looks
11315 # like /cygdrive/c/PROGRA~1:/cygdr...
11316 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11317 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11318 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11321 sys_lib_search_path_spec="$LIB"
11322 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11323 # It is most probably a Windows format PATH.
11324 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11325 else
11326 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11328 # FIXME: find the short name or the path components, as spaces are
11329 # common. (e.g. "Program Files" -> "PROGRA~1")
11331 esac
11333 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11334 postinstall_cmds='base_file=`basename \${file}`~
11335 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11336 dldir=$destdir/`dirname \$dlpath`~
11337 test -d \$dldir || mkdir -p \$dldir~
11338 $install_prog $dir/$dlname \$dldir/$dlname'
11339 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11340 dlpath=$dir/\$dldll~
11341 $RM \$dlpath'
11342 shlibpath_overrides_runpath=yes
11343 dynamic_linker='Win32 link.exe'
11347 # Assume MSVC wrapper
11348 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11349 dynamic_linker='Win32 ld.exe'
11351 esac
11352 # FIXME: first we should search . and the directory the executable is in
11353 shlibpath_var=PATH
11356 darwin* | rhapsody*)
11357 dynamic_linker="$host_os dyld"
11358 version_type=darwin
11359 need_lib_prefix=no
11360 need_version=no
11361 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11362 soname_spec='${libname}${release}${major}$shared_ext'
11363 shlibpath_overrides_runpath=yes
11364 shlibpath_var=DYLD_LIBRARY_PATH
11365 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11367 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11368 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11371 dgux*)
11372 version_type=linux # correct to gnu/linux during the next big refactor
11373 need_lib_prefix=no
11374 need_version=no
11375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11376 soname_spec='${libname}${release}${shared_ext}$major'
11377 shlibpath_var=LD_LIBRARY_PATH
11380 freebsd* | dragonfly*)
11381 # DragonFly does not have aout. When/if they implement a new
11382 # versioning mechanism, adjust this.
11383 if test -x /usr/bin/objformat; then
11384 objformat=`/usr/bin/objformat`
11385 else
11386 case $host_os in
11387 freebsd[23].*) objformat=aout ;;
11388 *) objformat=elf ;;
11389 esac
11391 version_type=freebsd-$objformat
11392 case $version_type in
11393 freebsd-elf*)
11394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11395 need_version=no
11396 need_lib_prefix=no
11398 freebsd-*)
11399 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11400 need_version=yes
11402 esac
11403 shlibpath_var=LD_LIBRARY_PATH
11404 case $host_os in
11405 freebsd2.*)
11406 shlibpath_overrides_runpath=yes
11408 freebsd3.[01]* | freebsdelf3.[01]*)
11409 shlibpath_overrides_runpath=yes
11410 hardcode_into_libs=yes
11412 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11413 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11414 shlibpath_overrides_runpath=no
11415 hardcode_into_libs=yes
11417 *) # from 4.6 on, and DragonFly
11418 shlibpath_overrides_runpath=yes
11419 hardcode_into_libs=yes
11421 esac
11424 gnu*)
11425 version_type=linux # correct to gnu/linux during the next big refactor
11426 need_lib_prefix=no
11427 need_version=no
11428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11429 soname_spec='${libname}${release}${shared_ext}$major'
11430 shlibpath_var=LD_LIBRARY_PATH
11431 shlibpath_overrides_runpath=no
11432 hardcode_into_libs=yes
11435 haiku*)
11436 version_type=linux # correct to gnu/linux during the next big refactor
11437 need_lib_prefix=no
11438 need_version=no
11439 dynamic_linker="$host_os runtime_loader"
11440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11441 soname_spec='${libname}${release}${shared_ext}$major'
11442 shlibpath_var=LIBRARY_PATH
11443 shlibpath_overrides_runpath=yes
11444 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11445 hardcode_into_libs=yes
11448 hpux9* | hpux10* | hpux11*)
11449 # Give a soname corresponding to the major version so that dld.sl refuses to
11450 # link against other versions.
11451 version_type=sunos
11452 need_lib_prefix=no
11453 need_version=no
11454 case $host_cpu in
11455 ia64*)
11456 shrext_cmds='.so'
11457 hardcode_into_libs=yes
11458 dynamic_linker="$host_os dld.so"
11459 shlibpath_var=LD_LIBRARY_PATH
11460 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11462 soname_spec='${libname}${release}${shared_ext}$major'
11463 if test "X$HPUX_IA64_MODE" = X32; then
11464 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11465 else
11466 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11468 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11470 hppa*64*)
11471 shrext_cmds='.sl'
11472 hardcode_into_libs=yes
11473 dynamic_linker="$host_os dld.sl"
11474 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11475 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11477 soname_spec='${libname}${release}${shared_ext}$major'
11478 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11479 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11482 shrext_cmds='.sl'
11483 dynamic_linker="$host_os dld.sl"
11484 shlibpath_var=SHLIB_PATH
11485 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11487 soname_spec='${libname}${release}${shared_ext}$major'
11489 esac
11490 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11491 postinstall_cmds='chmod 555 $lib'
11492 # or fails outright, so override atomically:
11493 install_override_mode=555
11496 interix[3-9]*)
11497 version_type=linux # correct to gnu/linux during the next big refactor
11498 need_lib_prefix=no
11499 need_version=no
11500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11501 soname_spec='${libname}${release}${shared_ext}$major'
11502 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11503 shlibpath_var=LD_LIBRARY_PATH
11504 shlibpath_overrides_runpath=no
11505 hardcode_into_libs=yes
11508 irix5* | irix6* | nonstopux*)
11509 case $host_os in
11510 nonstopux*) version_type=nonstopux ;;
11512 if test "$lt_cv_prog_gnu_ld" = yes; then
11513 version_type=linux # correct to gnu/linux during the next big refactor
11514 else
11515 version_type=irix
11516 fi ;;
11517 esac
11518 need_lib_prefix=no
11519 need_version=no
11520 soname_spec='${libname}${release}${shared_ext}$major'
11521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11522 case $host_os in
11523 irix5* | nonstopux*)
11524 libsuff= shlibsuff=
11527 case $LD in # libtool.m4 will add one of these switches to LD
11528 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11529 libsuff= shlibsuff= libmagic=32-bit;;
11530 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11531 libsuff=32 shlibsuff=N32 libmagic=N32;;
11532 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11533 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11534 *) libsuff= shlibsuff= libmagic=never-match;;
11535 esac
11537 esac
11538 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11539 shlibpath_overrides_runpath=no
11540 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11541 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11542 hardcode_into_libs=yes
11545 # No shared lib support for Linux oldld, aout, or coff.
11546 linux*oldld* | linux*aout* | linux*coff*)
11547 dynamic_linker=no
11550 # This must be glibc/ELF.
11551 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11552 version_type=linux # correct to gnu/linux during the next big refactor
11553 need_lib_prefix=no
11554 need_version=no
11555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11556 soname_spec='${libname}${release}${shared_ext}$major'
11557 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11558 shlibpath_var=LD_LIBRARY_PATH
11559 shlibpath_overrides_runpath=no
11561 # Some binutils ld are patched to set DT_RUNPATH
11562 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11563 $as_echo_n "(cached) " >&6
11564 else
11565 lt_cv_shlibpath_overrides_runpath=no
11566 save_LDFLAGS=$LDFLAGS
11567 save_libdir=$libdir
11568 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11569 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11571 /* end confdefs.h. */
11574 main ()
11578 return 0;
11580 _ACEOF
11581 if ac_fn_c_try_link "$LINENO"; then :
11582 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11583 lt_cv_shlibpath_overrides_runpath=yes
11586 rm -f core conftest.err conftest.$ac_objext \
11587 conftest$ac_exeext conftest.$ac_ext
11588 LDFLAGS=$save_LDFLAGS
11589 libdir=$save_libdir
11593 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11595 # This implies no fast_install, which is unacceptable.
11596 # Some rework will be needed to allow for fast_install
11597 # before this can be enabled.
11598 hardcode_into_libs=yes
11600 # Append ld.so.conf contents to the search path
11601 if test -f /etc/ld.so.conf; then
11602 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' ' '`
11603 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11606 # We used to test for /lib/ld.so.1 and disable shared libraries on
11607 # powerpc, because MkLinux only supported shared libraries with the
11608 # GNU dynamic linker. Since this was broken with cross compilers,
11609 # most powerpc-linux boxes support dynamic linking these days and
11610 # people can always --disable-shared, the test was removed, and we
11611 # assume the GNU/Linux dynamic linker is in use.
11612 dynamic_linker='GNU/Linux ld.so'
11615 netbsd*)
11616 version_type=sunos
11617 need_lib_prefix=no
11618 need_version=no
11619 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11621 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11622 dynamic_linker='NetBSD (a.out) ld.so'
11623 else
11624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11625 soname_spec='${libname}${release}${shared_ext}$major'
11626 dynamic_linker='NetBSD ld.elf_so'
11628 shlibpath_var=LD_LIBRARY_PATH
11629 shlibpath_overrides_runpath=yes
11630 hardcode_into_libs=yes
11633 newsos6)
11634 version_type=linux # correct to gnu/linux during the next big refactor
11635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11636 shlibpath_var=LD_LIBRARY_PATH
11637 shlibpath_overrides_runpath=yes
11640 *nto* | *qnx*)
11641 version_type=qnx
11642 need_lib_prefix=no
11643 need_version=no
11644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11645 soname_spec='${libname}${release}${shared_ext}$major'
11646 shlibpath_var=LD_LIBRARY_PATH
11647 shlibpath_overrides_runpath=no
11648 hardcode_into_libs=yes
11649 dynamic_linker='ldqnx.so'
11652 openbsd*)
11653 version_type=sunos
11654 sys_lib_dlsearch_path_spec="/usr/lib"
11655 need_lib_prefix=no
11656 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11657 case $host_os in
11658 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11659 *) need_version=no ;;
11660 esac
11661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11662 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11663 shlibpath_var=LD_LIBRARY_PATH
11664 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11665 case $host_os in
11666 openbsd2.[89] | openbsd2.[89].*)
11667 shlibpath_overrides_runpath=no
11670 shlibpath_overrides_runpath=yes
11672 esac
11673 else
11674 shlibpath_overrides_runpath=yes
11678 os2*)
11679 libname_spec='$name'
11680 shrext_cmds=".dll"
11681 need_lib_prefix=no
11682 library_names_spec='$libname${shared_ext} $libname.a'
11683 dynamic_linker='OS/2 ld.exe'
11684 shlibpath_var=LIBPATH
11687 osf3* | osf4* | osf5*)
11688 version_type=osf
11689 need_lib_prefix=no
11690 need_version=no
11691 soname_spec='${libname}${release}${shared_ext}$major'
11692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11693 shlibpath_var=LD_LIBRARY_PATH
11694 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11695 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11698 rdos*)
11699 dynamic_linker=no
11702 solaris*)
11703 version_type=linux # correct to gnu/linux during the next big refactor
11704 need_lib_prefix=no
11705 need_version=no
11706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11707 soname_spec='${libname}${release}${shared_ext}$major'
11708 shlibpath_var=LD_LIBRARY_PATH
11709 shlibpath_overrides_runpath=yes
11710 hardcode_into_libs=yes
11711 # ldd complains unless libraries are executable
11712 postinstall_cmds='chmod +x $lib'
11715 sunos4*)
11716 version_type=sunos
11717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11718 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11719 shlibpath_var=LD_LIBRARY_PATH
11720 shlibpath_overrides_runpath=yes
11721 if test "$with_gnu_ld" = yes; then
11722 need_lib_prefix=no
11724 need_version=yes
11727 sysv4 | sysv4.3*)
11728 version_type=linux # correct to gnu/linux during the next big refactor
11729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11730 soname_spec='${libname}${release}${shared_ext}$major'
11731 shlibpath_var=LD_LIBRARY_PATH
11732 case $host_vendor in
11733 sni)
11734 shlibpath_overrides_runpath=no
11735 need_lib_prefix=no
11736 runpath_var=LD_RUN_PATH
11738 siemens)
11739 need_lib_prefix=no
11741 motorola)
11742 need_lib_prefix=no
11743 need_version=no
11744 shlibpath_overrides_runpath=no
11745 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11747 esac
11750 sysv4*MP*)
11751 if test -d /usr/nec ;then
11752 version_type=linux # correct to gnu/linux during the next big refactor
11753 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11754 soname_spec='$libname${shared_ext}.$major'
11755 shlibpath_var=LD_LIBRARY_PATH
11759 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11760 version_type=freebsd-elf
11761 need_lib_prefix=no
11762 need_version=no
11763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11764 soname_spec='${libname}${release}${shared_ext}$major'
11765 shlibpath_var=LD_LIBRARY_PATH
11766 shlibpath_overrides_runpath=yes
11767 hardcode_into_libs=yes
11768 if test "$with_gnu_ld" = yes; then
11769 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11770 else
11771 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11772 case $host_os in
11773 sco3.2v5*)
11774 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11776 esac
11778 sys_lib_dlsearch_path_spec='/usr/lib'
11781 tpf*)
11782 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11783 version_type=linux # correct to gnu/linux during the next big refactor
11784 need_lib_prefix=no
11785 need_version=no
11786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11787 shlibpath_var=LD_LIBRARY_PATH
11788 shlibpath_overrides_runpath=no
11789 hardcode_into_libs=yes
11792 uts4*)
11793 version_type=linux # correct to gnu/linux during the next big refactor
11794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11795 soname_spec='${libname}${release}${shared_ext}$major'
11796 shlibpath_var=LD_LIBRARY_PATH
11800 dynamic_linker=no
11802 esac
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11804 $as_echo "$dynamic_linker" >&6; }
11805 test "$dynamic_linker" = no && can_build_shared=no
11807 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11808 if test "$GCC" = yes; then
11809 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11812 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11813 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11815 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11816 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11911 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11912 hardcode_action=
11913 if test -n "$hardcode_libdir_flag_spec" ||
11914 test -n "$runpath_var" ||
11915 test "X$hardcode_automatic" = "Xyes" ; then
11917 # We can hardcode non-existent directories.
11918 if test "$hardcode_direct" != no &&
11919 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11920 # have to relink, otherwise we might link with an installed library
11921 # when we should be linking with a yet-to-be-installed one
11922 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11923 test "$hardcode_minus_L" != no; then
11924 # Linking always hardcodes the temporary library directory.
11925 hardcode_action=relink
11926 else
11927 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11928 hardcode_action=immediate
11930 else
11931 # We cannot hardcode anything, or else we can only hardcode existing
11932 # directories.
11933 hardcode_action=unsupported
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11936 $as_echo "$hardcode_action" >&6; }
11938 if test "$hardcode_action" = relink ||
11939 test "$inherit_rpath" = yes; then
11940 # Fast installation is not supported
11941 enable_fast_install=no
11942 elif test "$shlibpath_overrides_runpath" = yes ||
11943 test "$enable_shared" = no; then
11944 # Fast installation is not necessary
11945 enable_fast_install=needless
11953 if test "x$enable_dlopen" != xyes; then
11954 enable_dlopen=unknown
11955 enable_dlopen_self=unknown
11956 enable_dlopen_self_static=unknown
11957 else
11958 lt_cv_dlopen=no
11959 lt_cv_dlopen_libs=
11961 case $host_os in
11962 beos*)
11963 lt_cv_dlopen="load_add_on"
11964 lt_cv_dlopen_libs=
11965 lt_cv_dlopen_self=yes
11968 mingw* | pw32* | cegcc*)
11969 lt_cv_dlopen="LoadLibrary"
11970 lt_cv_dlopen_libs=
11973 cygwin*)
11974 lt_cv_dlopen="dlopen"
11975 lt_cv_dlopen_libs=
11978 darwin*)
11979 # if libdl is installed we need to link against it
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11981 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11982 if ${ac_cv_lib_dl_dlopen+:} false; then :
11983 $as_echo_n "(cached) " >&6
11984 else
11985 ac_check_lib_save_LIBS=$LIBS
11986 LIBS="-ldl $LIBS"
11987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11988 /* end confdefs.h. */
11990 /* Override any GCC internal prototype to avoid an error.
11991 Use char because int might match the return type of a GCC
11992 builtin and then its argument prototype would still apply. */
11993 #ifdef __cplusplus
11994 extern "C"
11995 #endif
11996 char dlopen ();
11998 main ()
12000 return dlopen ();
12002 return 0;
12004 _ACEOF
12005 if ac_fn_c_try_link "$LINENO"; then :
12006 ac_cv_lib_dl_dlopen=yes
12007 else
12008 ac_cv_lib_dl_dlopen=no
12010 rm -f core conftest.err conftest.$ac_objext \
12011 conftest$ac_exeext conftest.$ac_ext
12012 LIBS=$ac_check_lib_save_LIBS
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12015 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12016 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12017 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12018 else
12020 lt_cv_dlopen="dyld"
12021 lt_cv_dlopen_libs=
12022 lt_cv_dlopen_self=yes
12029 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12030 if test "x$ac_cv_func_shl_load" = xyes; then :
12031 lt_cv_dlopen="shl_load"
12032 else
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12034 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12035 if ${ac_cv_lib_dld_shl_load+:} false; then :
12036 $as_echo_n "(cached) " >&6
12037 else
12038 ac_check_lib_save_LIBS=$LIBS
12039 LIBS="-ldld $LIBS"
12040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12041 /* end confdefs.h. */
12043 /* Override any GCC internal prototype to avoid an error.
12044 Use char because int might match the return type of a GCC
12045 builtin and then its argument prototype would still apply. */
12046 #ifdef __cplusplus
12047 extern "C"
12048 #endif
12049 char shl_load ();
12051 main ()
12053 return shl_load ();
12055 return 0;
12057 _ACEOF
12058 if ac_fn_c_try_link "$LINENO"; then :
12059 ac_cv_lib_dld_shl_load=yes
12060 else
12061 ac_cv_lib_dld_shl_load=no
12063 rm -f core conftest.err conftest.$ac_objext \
12064 conftest$ac_exeext conftest.$ac_ext
12065 LIBS=$ac_check_lib_save_LIBS
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12068 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12069 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12070 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12071 else
12072 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12073 if test "x$ac_cv_func_dlopen" = xyes; then :
12074 lt_cv_dlopen="dlopen"
12075 else
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12077 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12078 if ${ac_cv_lib_dl_dlopen+:} false; then :
12079 $as_echo_n "(cached) " >&6
12080 else
12081 ac_check_lib_save_LIBS=$LIBS
12082 LIBS="-ldl $LIBS"
12083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12084 /* end confdefs.h. */
12086 /* Override any GCC internal prototype to avoid an error.
12087 Use char because int might match the return type of a GCC
12088 builtin and then its argument prototype would still apply. */
12089 #ifdef __cplusplus
12090 extern "C"
12091 #endif
12092 char dlopen ();
12094 main ()
12096 return dlopen ();
12098 return 0;
12100 _ACEOF
12101 if ac_fn_c_try_link "$LINENO"; then :
12102 ac_cv_lib_dl_dlopen=yes
12103 else
12104 ac_cv_lib_dl_dlopen=no
12106 rm -f core conftest.err conftest.$ac_objext \
12107 conftest$ac_exeext conftest.$ac_ext
12108 LIBS=$ac_check_lib_save_LIBS
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12111 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12112 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12113 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12114 else
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12116 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12117 if ${ac_cv_lib_svld_dlopen+:} false; then :
12118 $as_echo_n "(cached) " >&6
12119 else
12120 ac_check_lib_save_LIBS=$LIBS
12121 LIBS="-lsvld $LIBS"
12122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12123 /* end confdefs.h. */
12125 /* Override any GCC internal prototype to avoid an error.
12126 Use char because int might match the return type of a GCC
12127 builtin and then its argument prototype would still apply. */
12128 #ifdef __cplusplus
12129 extern "C"
12130 #endif
12131 char dlopen ();
12133 main ()
12135 return dlopen ();
12137 return 0;
12139 _ACEOF
12140 if ac_fn_c_try_link "$LINENO"; then :
12141 ac_cv_lib_svld_dlopen=yes
12142 else
12143 ac_cv_lib_svld_dlopen=no
12145 rm -f core conftest.err conftest.$ac_objext \
12146 conftest$ac_exeext conftest.$ac_ext
12147 LIBS=$ac_check_lib_save_LIBS
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12150 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12151 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12152 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12153 else
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12155 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12156 if ${ac_cv_lib_dld_dld_link+:} false; then :
12157 $as_echo_n "(cached) " >&6
12158 else
12159 ac_check_lib_save_LIBS=$LIBS
12160 LIBS="-ldld $LIBS"
12161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12162 /* end confdefs.h. */
12164 /* Override any GCC internal prototype to avoid an error.
12165 Use char because int might match the return type of a GCC
12166 builtin and then its argument prototype would still apply. */
12167 #ifdef __cplusplus
12168 extern "C"
12169 #endif
12170 char dld_link ();
12172 main ()
12174 return dld_link ();
12176 return 0;
12178 _ACEOF
12179 if ac_fn_c_try_link "$LINENO"; then :
12180 ac_cv_lib_dld_dld_link=yes
12181 else
12182 ac_cv_lib_dld_dld_link=no
12184 rm -f core conftest.err conftest.$ac_objext \
12185 conftest$ac_exeext conftest.$ac_ext
12186 LIBS=$ac_check_lib_save_LIBS
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12189 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12190 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12191 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12210 esac
12212 if test "x$lt_cv_dlopen" != xno; then
12213 enable_dlopen=yes
12214 else
12215 enable_dlopen=no
12218 case $lt_cv_dlopen in
12219 dlopen)
12220 save_CPPFLAGS="$CPPFLAGS"
12221 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12223 save_LDFLAGS="$LDFLAGS"
12224 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12226 save_LIBS="$LIBS"
12227 LIBS="$lt_cv_dlopen_libs $LIBS"
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12230 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12231 if ${lt_cv_dlopen_self+:} false; then :
12232 $as_echo_n "(cached) " >&6
12233 else
12234 if test "$cross_compiling" = yes; then :
12235 lt_cv_dlopen_self=cross
12236 else
12237 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12238 lt_status=$lt_dlunknown
12239 cat > conftest.$ac_ext <<_LT_EOF
12240 #line $LINENO "configure"
12241 #include "confdefs.h"
12243 #if HAVE_DLFCN_H
12244 #include <dlfcn.h>
12245 #endif
12247 #include <stdio.h>
12249 #ifdef RTLD_GLOBAL
12250 # define LT_DLGLOBAL RTLD_GLOBAL
12251 #else
12252 # ifdef DL_GLOBAL
12253 # define LT_DLGLOBAL DL_GLOBAL
12254 # else
12255 # define LT_DLGLOBAL 0
12256 # endif
12257 #endif
12259 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12260 find out it does not work in some platform. */
12261 #ifndef LT_DLLAZY_OR_NOW
12262 # ifdef RTLD_LAZY
12263 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12264 # else
12265 # ifdef DL_LAZY
12266 # define LT_DLLAZY_OR_NOW DL_LAZY
12267 # else
12268 # ifdef RTLD_NOW
12269 # define LT_DLLAZY_OR_NOW RTLD_NOW
12270 # else
12271 # ifdef DL_NOW
12272 # define LT_DLLAZY_OR_NOW DL_NOW
12273 # else
12274 # define LT_DLLAZY_OR_NOW 0
12275 # endif
12276 # endif
12277 # endif
12278 # endif
12279 #endif
12281 /* When -fvisbility=hidden is used, assume the code has been annotated
12282 correspondingly for the symbols needed. */
12283 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12284 int fnord () __attribute__((visibility("default")));
12285 #endif
12287 int fnord () { return 42; }
12288 int main ()
12290 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12291 int status = $lt_dlunknown;
12293 if (self)
12295 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12296 else
12298 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12299 else puts (dlerror ());
12301 /* dlclose (self); */
12303 else
12304 puts (dlerror ());
12306 return status;
12308 _LT_EOF
12309 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12310 (eval $ac_link) 2>&5
12311 ac_status=$?
12312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12313 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12314 (./conftest; exit; ) >&5 2>/dev/null
12315 lt_status=$?
12316 case x$lt_status in
12317 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12318 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12319 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12320 esac
12321 else :
12322 # compilation failed
12323 lt_cv_dlopen_self=no
12326 rm -fr conftest*
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12331 $as_echo "$lt_cv_dlopen_self" >&6; }
12333 if test "x$lt_cv_dlopen_self" = xyes; then
12334 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12336 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12337 if ${lt_cv_dlopen_self_static+:} false; then :
12338 $as_echo_n "(cached) " >&6
12339 else
12340 if test "$cross_compiling" = yes; then :
12341 lt_cv_dlopen_self_static=cross
12342 else
12343 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12344 lt_status=$lt_dlunknown
12345 cat > conftest.$ac_ext <<_LT_EOF
12346 #line $LINENO "configure"
12347 #include "confdefs.h"
12349 #if HAVE_DLFCN_H
12350 #include <dlfcn.h>
12351 #endif
12353 #include <stdio.h>
12355 #ifdef RTLD_GLOBAL
12356 # define LT_DLGLOBAL RTLD_GLOBAL
12357 #else
12358 # ifdef DL_GLOBAL
12359 # define LT_DLGLOBAL DL_GLOBAL
12360 # else
12361 # define LT_DLGLOBAL 0
12362 # endif
12363 #endif
12365 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12366 find out it does not work in some platform. */
12367 #ifndef LT_DLLAZY_OR_NOW
12368 # ifdef RTLD_LAZY
12369 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12370 # else
12371 # ifdef DL_LAZY
12372 # define LT_DLLAZY_OR_NOW DL_LAZY
12373 # else
12374 # ifdef RTLD_NOW
12375 # define LT_DLLAZY_OR_NOW RTLD_NOW
12376 # else
12377 # ifdef DL_NOW
12378 # define LT_DLLAZY_OR_NOW DL_NOW
12379 # else
12380 # define LT_DLLAZY_OR_NOW 0
12381 # endif
12382 # endif
12383 # endif
12384 # endif
12385 #endif
12387 /* When -fvisbility=hidden is used, assume the code has been annotated
12388 correspondingly for the symbols needed. */
12389 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12390 int fnord () __attribute__((visibility("default")));
12391 #endif
12393 int fnord () { return 42; }
12394 int main ()
12396 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12397 int status = $lt_dlunknown;
12399 if (self)
12401 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12402 else
12404 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12405 else puts (dlerror ());
12407 /* dlclose (self); */
12409 else
12410 puts (dlerror ());
12412 return status;
12414 _LT_EOF
12415 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12416 (eval $ac_link) 2>&5
12417 ac_status=$?
12418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12419 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12420 (./conftest; exit; ) >&5 2>/dev/null
12421 lt_status=$?
12422 case x$lt_status in
12423 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12424 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12425 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12426 esac
12427 else :
12428 # compilation failed
12429 lt_cv_dlopen_self_static=no
12432 rm -fr conftest*
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12437 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12440 CPPFLAGS="$save_CPPFLAGS"
12441 LDFLAGS="$save_LDFLAGS"
12442 LIBS="$save_LIBS"
12444 esac
12446 case $lt_cv_dlopen_self in
12447 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12448 *) enable_dlopen_self=unknown ;;
12449 esac
12451 case $lt_cv_dlopen_self_static in
12452 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12453 *) enable_dlopen_self_static=unknown ;;
12454 esac
12473 striplib=
12474 old_striplib=
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12476 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12477 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12478 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12479 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12481 $as_echo "yes" >&6; }
12482 else
12483 # FIXME - insert some real tests, host_os isn't really good enough
12484 case $host_os in
12485 darwin*)
12486 if test -n "$STRIP" ; then
12487 striplib="$STRIP -x"
12488 old_striplib="$STRIP -S"
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12490 $as_echo "yes" >&6; }
12491 else
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12493 $as_echo "no" >&6; }
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12498 $as_echo "no" >&6; }
12500 esac
12514 # Report which library types will actually be built
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12516 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12518 $as_echo "$can_build_shared" >&6; }
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12521 $as_echo_n "checking whether to build shared libraries... " >&6; }
12522 test "$can_build_shared" = "no" && enable_shared=no
12524 # On AIX, shared libraries and static libraries use the same namespace, and
12525 # are all built from PIC.
12526 case $host_os in
12527 aix3*)
12528 test "$enable_shared" = yes && enable_static=no
12529 if test -n "$RANLIB"; then
12530 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12531 postinstall_cmds='$RANLIB $lib'
12535 aix[4-9]*)
12536 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12537 test "$enable_shared" = yes && enable_static=no
12540 esac
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12542 $as_echo "$enable_shared" >&6; }
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12545 $as_echo_n "checking whether to build static libraries... " >&6; }
12546 # Make sure either enable_shared or enable_static is yes.
12547 test "$enable_shared" = yes || enable_static=yes
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12549 $as_echo "$enable_static" >&6; }
12555 ac_ext=c
12556 ac_cpp='$CPP $CPPFLAGS'
12557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12561 CC="$lt_save_CC"
12577 ac_config_commands="$ac_config_commands libtool"
12582 # Only expand once:
12588 debug_symbols=
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for debug symbols" >&5
12590 $as_echo_n "checking for debug symbols... " >&6; }
12591 # Check whether --enable-debug was given.
12592 if test "${enable_debug+set}" = set; then :
12593 enableval=$enable_debug; case "$enableval" in
12594 y | yes) debug_symbols=y ;;
12595 *) unset debug_symbols ;;
12596 esac
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${debug_symbols:-no}" >&5
12600 $as_echo "${debug_symbols:-no}" >&6; }
12603 case $XENO_TARGET_ARCH in
12604 arm)
12605 atomic_ops=builtins ;;
12607 atomic_ops=ad-hoc ;;
12608 esac
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic operation support" >&5
12610 $as_echo_n "checking for atomic operation support... " >&6; }
12612 # Check whether --with-atomic-ops was given.
12613 if test "${with_atomic_ops+set}" = set; then :
12614 withval=$with_atomic_ops; case "$withval" in
12615 y | yes | built*)
12616 atomic_ops=builtins
12618 ad-hoc|adhoc)
12619 atomic_ops=ad-hoc
12622 as_fn_error $? "invalid switch \"$withval\" for atomic-ops (builtins/ad-hoc)" "$LINENO" 5
12624 esac
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${atomic_ops}" >&5
12628 $as_echo "${atomic_ops}" >&6; }
12631 case $XENO_TARGET_ARCH in
12632 x86|powerpc|arm)
12633 CONFIG_SMP=y ;;
12635 unset CONFIG_SMP ;;
12636 esac
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SMP support" >&5
12638 $as_echo_n "checking for SMP support... " >&6; }
12639 # Check whether --enable-smp was given.
12640 if test "${enable_smp+set}" = set; then :
12641 enableval=$enable_smp; case "$enableval" in
12642 y | yes) CONFIG_SMP=y ;;
12643 *) unset CONFIG_SMP ;;
12644 esac
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CONFIG_SMP:-no}" >&5
12648 $as_echo "${CONFIG_SMP:-no}" >&6; }
12651 CONFIG_XENO_X86_SEP=y
12652 CONFIG_X86_TSC=y
12654 if test $XENO_TARGET_ARCH = x86; then
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 SEP instructions in syscalls" >&5
12656 $as_echo_n "checking for x86 SEP instructions in syscalls... " >&6; }
12657 # Check whether --enable-x86-sep was given.
12658 if test "${enable_x86_sep+set}" = set; then :
12659 enableval=$enable_x86_sep; case "$enableval" in
12660 y | yes) CONFIG_XENO_X86_SEP=y ;;
12661 *) unset CONFIG_XENO_X86_SEP ;;
12662 esac
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CONFIG_XENO_X86_SEP:-no}" >&5
12666 $as_echo "${CONFIG_XENO_X86_SEP:-no}" >&6; }
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 TSC support" >&5
12669 $as_echo_n "checking for x86 TSC support... " >&6; }
12670 # Check whether --enable-x86-tsc was given.
12671 if test "${enable_x86_tsc+set}" = set; then :
12672 enableval=$enable_x86_tsc; case "$enableval" in
12673 y | yes) CONFIG_X86_TSC=y ;;
12674 *) unset CONFIG_X86_TSC ;;
12675 esac
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CONFIG_X86_TSC:-no}" >&5
12679 $as_echo "${CONFIG_X86_TSC:-no}" >&6; }
12683 if test $XENO_TARGET_ARCH = arm ; then
12685 unset CONFIG_XENO_ARM_SA1100
12686 unset CONFIG_XENO_CPU_XSC3
12687 CONFIG_XENO_ARM_TSC_TYPE=__XN_TSC_TYPE_KUSER
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM tsc type" >&5
12690 $as_echo_n "checking for ARM tsc type... " >&6; }
12691 # Check whether --enable-arm-tsc was given.
12692 if test "${enable_arm_tsc+set}" = set; then :
12693 enableval=$enable_arm_tsc; case "$enableval" in
12694 at91*) CONFIG_XENO_ARM_TSC_TYPE=__XN_TSC_TYPE_FREERUNNING_FAST_WRAP;;
12696 integrator) unset tsc_type;;
12698 ixp4xx) CONFIG_XENO_ARM_TSC_TYPE=__XN_TSC_TYPE_FREERUNNING;;
12700 imx*|mx*) CONFIG_XENO_ARM_TSC_TYPE=__XN_TSC_TYPE_FREERUNNING;;
12702 generic|kuser) CONFIG_XENO_ARM_TSC_TYPE=__XN_TSC_TYPE_KUSER;;
12704 omap*) CONFIG_XENO_ARM_TSC_TYPE=__XN_TSC_TYPE_FREERUNNING;;
12706 orion) CONFIG_XENO_ARM_TSC_TYPE=__XN_TSC_TYPE_FREERUNNING_COUNTDOWN;;
12708 pxa*) CONFIG_XENO_CPU_XSC3=y
12709 CONFIG_XENO_ARM_TSC_TYPE=__XN_TSC_TYPE_FREERUNNING;;
12711 s3c24*) CONFIG_XENO_ARM_TSC_TYPE=__XN_TSC_TYPE_DECREMENTER;;
12713 sa1100) CONFIG_XENO_ARM_SA1100=y
12714 CONFIG_XENO_ARM_TSC_TYPE=__XN_TSC_TYPE_FREERUNNING;;
12716 n | no) unset CONFIG_XENO_ARM_TSC_TYPE;;
12718 *)as_fn_error $? "Invalid SOC selected: \"$enableval\"" "$LINENO" 5;;
12719 esac
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_arm_tsc:-kuser}" >&5
12723 $as_echo "${enable_arm_tsc:-kuser}" >&6; }
12725 # Check whether --enable-arm-quirks was given.
12726 if test "${enable_arm_quirks+set}" = set; then :
12727 enableval=$enable_arm_quirks; case "$enableval" in
12728 sa1100) CONFIG_XENO_ARM_SA1100=y;;
12729 xscale3) CONFIG_XENO_CPU_XSC3=y;;
12730 *)as_fn_error $? "Invalid SOC selected: \"$enableval\"" "$LINENO" 5;;
12731 esac
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM SA1100 architecture" >&5
12736 $as_echo_n "checking for ARM SA1100 architecture... " >&6; }
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CONFIG_XENO_ARM_SA1100:-no}" >&5
12738 $as_echo "${CONFIG_XENO_ARM_SA1100:-no}" >&6; }
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM Xscale3 architecture" >&5
12741 $as_echo_n "checking for ARM Xscale3 architecture... " >&6; }
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CONFIG_XENO_CPU_XSC3:-no}" >&5
12743 $as_echo "${CONFIG_XENO_CPU_XSC3:-no}" >&6; }
12747 if test x"$docdir" = x; then
12748 docdir=$datadir/doc/$PACKAGE-$VERSION
12752 if test \! -d $srcdir/doc ; then
12753 unset XENO_MAYBE_DOCDIR
12754 else
12755 XENO_MAYBE_DOCDIR=doc
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether installing documentation" >&5
12757 $as_echo_n "checking whether installing documentation... " >&6; }
12758 # Check whether --enable-doc-install was given.
12759 if test "${enable_doc_install+set}" = set; then :
12760 enableval=$enable_doc_install; case "$enableval" in
12761 y | yes);;
12762 *) unset XENO_MAYBE_DOCDIR;;
12763 esac
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${XENO_MAYBE_DOCDIR:-no}" >&5
12767 $as_echo "${XENO_MAYBE_DOCDIR:-no}" >&6; }
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Doxygen documentation" >&5
12772 $as_echo_n "checking for Doxygen documentation... " >&6; }
12773 # Check whether --enable-dox-doc was given.
12774 if test "${enable_dox_doc+set}" = set; then :
12775 enableval=$enable_dox_doc; case "$enableval" in
12776 y | yes) CONFIG_XENO_DOC_DOX=y ;;
12777 *) unset CONFIG_XENO_DOC_DOX ;;
12778 esac
12782 if test \! -d $srcdir/doc ; then
12783 if test x$CONFIG_XENO_DOC_DOX = xy ;
12784 then
12785 as_fn_error $? "documentation tree is missing." "$LINENO" 5
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present" >&5
12788 $as_echo "not present" >&6; }
12789 else
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CONFIG_XENO_DOC_DOX:-no}" >&5
12791 $as_echo "${CONFIG_XENO_DOC_DOX:-no}" >&6; }
12794 # Extract the first word of "doxygen", so it can be a program name with args.
12795 set dummy doxygen; ac_word=$2
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12797 $as_echo_n "checking for $ac_word... " >&6; }
12798 if ${ac_cv_prog_DOXYGEN+:} false; then :
12799 $as_echo_n "(cached) " >&6
12800 else
12801 if test -n "$DOXYGEN"; then
12802 ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
12803 else
12804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12805 for as_dir in $PATH
12807 IFS=$as_save_IFS
12808 test -z "$as_dir" && as_dir=.
12809 for ac_exec_ext in '' $ac_executable_extensions; do
12810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12811 ac_cv_prog_DOXYGEN="doxygen"
12812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12813 break 2
12815 done
12816 done
12817 IFS=$as_save_IFS
12821 DOXYGEN=$ac_cv_prog_DOXYGEN
12822 if test -n "$DOXYGEN"; then
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
12824 $as_echo "$DOXYGEN" >&6; }
12825 else
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12827 $as_echo "no" >&6; }
12832 if test x${CONFIG_XENO_DOC_DOX} = xy -a x"$DOXYGEN" = x ; then
12833 as_fn_error $? "Missing the Doxygen tools to generate the documentation." "$LINENO" 5
12836 # Extract the first word of "dot", so it can be a program name with args.
12837 set dummy dot; ac_word=$2
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12839 $as_echo_n "checking for $ac_word... " >&6; }
12840 if ${ac_cv_prog_DOXYGEN_HAVE_DOT+:} false; then :
12841 $as_echo_n "(cached) " >&6
12842 else
12843 if test -n "$DOXYGEN_HAVE_DOT"; then
12844 ac_cv_prog_DOXYGEN_HAVE_DOT="$DOXYGEN_HAVE_DOT" # Let the user override the test.
12845 else
12846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12847 for as_dir in $PATH
12849 IFS=$as_save_IFS
12850 test -z "$as_dir" && as_dir=.
12851 for ac_exec_ext in '' $ac_executable_extensions; do
12852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12853 ac_cv_prog_DOXYGEN_HAVE_DOT="YES"
12854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12855 break 2
12857 done
12858 done
12859 IFS=$as_save_IFS
12861 test -z "$ac_cv_prog_DOXYGEN_HAVE_DOT" && ac_cv_prog_DOXYGEN_HAVE_DOT="NO"
12864 DOXYGEN_HAVE_DOT=$ac_cv_prog_DOXYGEN_HAVE_DOT
12865 if test -n "$DOXYGEN_HAVE_DOT"; then
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN_HAVE_DOT" >&5
12867 $as_echo "$DOXYGEN_HAVE_DOT" >&6; }
12868 else
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12870 $as_echo "no" >&6; }
12874 if test x"$DOXYGEN_HAVE_DOT" = xYES ; then
12875 DOXYGEN_SHOW_INCLUDE_FILES=NO
12876 else
12877 DOXYGEN_SHOW_INCLUDE_FILES=YES
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether using LaTeX non-stop mode" >&5
12881 $as_echo_n "checking whether using LaTeX non-stop mode... " >&6; }
12882 # Check whether --enable-verbose-latex was given.
12883 if test "${enable_verbose_latex+set}" = set; then :
12884 enableval=$enable_verbose_latex; case "$enableval" in
12885 y | yes) CONFIG_XENO_DOC_LATEX_NONSTOP=y ;;
12886 *) unset CONFIG_XENO_DOC_LATEX_NONSTOP ;;
12887 esac
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CONFIG_XENO_DOC_LATEX_NONSTOP:-no}" >&5
12891 $as_echo "${CONFIG_XENO_DOC_LATEX_NONSTOP:-no}" >&6; }
12893 if test x${CONFIG_XENO_DOC_LATEX_NONSTOP} = xy; then
12894 LATEX_BATCHMODE=NO
12895 LATEX_MODE=nonstopmode
12896 else
12897 LATEX_BATCHMODE=YES
12898 LATEX_MODE=batchmode
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asciidoc documentation" >&5
12902 $as_echo_n "checking for asciidoc documentation... " >&6; }
12903 # Check whether --enable-asciidoc was given.
12904 if test "${enable_asciidoc+set}" = set; then :
12905 enableval=$enable_asciidoc; case "$enableval" in
12906 y | yes) CONFIG_XENO_ASCIIDOC=y ;;
12907 *) unset CONFIG_XENO_ASCIIDOC ;;
12908 esac
12912 if test \! -d $srcdir/doc ; then
12913 if test x$CONFIG_XENO_ASCIIDOC = xy ;
12914 then
12915 as_fn_error $? "documentation tree is missing." "$LINENO" 5
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present" >&5
12918 $as_echo "not present" >&6; }
12919 else
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CONFIG_XENO_ASCIIDOC:-no}" >&5
12921 $as_echo "${CONFIG_XENO_ASCIIDOC:-no}" >&6; }
12924 # Extract the first word of "asciidoc", so it can be a program name with args.
12925 set dummy asciidoc; ac_word=$2
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12927 $as_echo_n "checking for $ac_word... " >&6; }
12928 if ${ac_cv_prog_ASCIIDOC+:} false; then :
12929 $as_echo_n "(cached) " >&6
12930 else
12931 if test -n "$ASCIIDOC"; then
12932 ac_cv_prog_ASCIIDOC="$ASCIIDOC" # Let the user override the test.
12933 else
12934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12935 for as_dir in $PATH
12937 IFS=$as_save_IFS
12938 test -z "$as_dir" && as_dir=.
12939 for ac_exec_ext in '' $ac_executable_extensions; do
12940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12941 ac_cv_prog_ASCIIDOC="asciidoc"
12942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12943 break 2
12945 done
12946 done
12947 IFS=$as_save_IFS
12951 ASCIIDOC=$ac_cv_prog_ASCIIDOC
12952 if test -n "$ASCIIDOC"; then
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5
12954 $as_echo "$ASCIIDOC" >&6; }
12955 else
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12957 $as_echo "no" >&6; }
12961 if test x${CONFIG_XENO_ASCIIDOC} = xy -a x"$ASCIIDOC" = x ; then
12962 as_fn_error $? "Missing the asciidoc tool to generate the documentation." "$LINENO" 5
12964 # Extract the first word of "a2x", so it can be a program name with args.
12965 set dummy a2x; ac_word=$2
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12967 $as_echo_n "checking for $ac_word... " >&6; }
12968 if ${ac_cv_prog_A2X+:} false; then :
12969 $as_echo_n "(cached) " >&6
12970 else
12971 if test -n "$A2X"; then
12972 ac_cv_prog_A2X="$A2X" # Let the user override the test.
12973 else
12974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12975 for as_dir in $PATH
12977 IFS=$as_save_IFS
12978 test -z "$as_dir" && as_dir=.
12979 for ac_exec_ext in '' $ac_executable_extensions; do
12980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12981 ac_cv_prog_A2X="a2x"
12982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12983 break 2
12985 done
12986 done
12987 IFS=$as_save_IFS
12991 A2X=$ac_cv_prog_A2X
12992 if test -n "$A2X"; then
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $A2X" >&5
12994 $as_echo "$A2X" >&6; }
12995 else
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12997 $as_echo "no" >&6; }
13001 if test x${CONFIG_XENO_ASCIIDOC} = xy -a x"$A2X" = x ; then
13002 as_fn_error $? "Missing the a2x tool to generate the documentation." "$LINENO" 5
13004 # Extract the first word of "w3m", so it can be a program name with args.
13005 set dummy w3m; ac_word=$2
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13007 $as_echo_n "checking for $ac_word... " >&6; }
13008 if ${ac_cv_prog_W3M+:} false; then :
13009 $as_echo_n "(cached) " >&6
13010 else
13011 if test -n "$W3M"; then
13012 ac_cv_prog_W3M="$W3M" # Let the user override the test.
13013 else
13014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13015 for as_dir in $PATH
13017 IFS=$as_save_IFS
13018 test -z "$as_dir" && as_dir=.
13019 for ac_exec_ext in '' $ac_executable_extensions; do
13020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13021 ac_cv_prog_W3M="w3m"
13022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13023 break 2
13025 done
13026 done
13027 IFS=$as_save_IFS
13031 W3M=$ac_cv_prog_W3M
13032 if test -n "$W3M"; then
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $W3M" >&5
13034 $as_echo "$W3M" >&6; }
13035 else
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13037 $as_echo "no" >&6; }
13041 if test x${CONFIG_XENO_ASCIIDOC} = xy -a x"$W3M" = x ; then
13042 as_fn_error $? "Missing the w3m tool to generate the documentation." "$LINENO" 5
13047 for ac_header in mqueue.h
13048 do :
13049 ac_fn_c_check_header_mongrel "$LINENO" "mqueue.h" "ac_cv_header_mqueue_h" "$ac_includes_default"
13050 if test "x$ac_cv_header_mqueue_h" = xyes; then :
13051 cat >>confdefs.h <<_ACEOF
13052 #define HAVE_MQUEUE_H 1
13053 _ACEOF
13057 done
13060 save_LIBS="$LIBS"
13061 LIBS="$LIBS -lrt -lpthread"
13062 for ac_func in shm_open shm_unlink open64 mmap64 ftruncate64 pthread_mutexattr_setprotocol pthread_condattr_setclock pthread_spin_lock fork
13063 do :
13064 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13065 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13066 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13067 cat >>confdefs.h <<_ACEOF
13068 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13069 _ACEOF
13072 done
13074 LIBS="$save_LIBS"
13078 cat >>confdefs.h <<_ACEOF
13079 #define CONFIG_XENO_VERSION_MAJOR $CONFIG_XENO_VERSION_MAJOR
13080 _ACEOF
13083 cat >>confdefs.h <<_ACEOF
13084 #define CONFIG_XENO_VERSION_MINOR $CONFIG_XENO_VERSION_MINOR
13085 _ACEOF
13088 cat >>confdefs.h <<_ACEOF
13089 #define CONFIG_XENO_REVISION_LEVEL $CONFIG_XENO_REVISION_LEVEL
13090 _ACEOF
13093 cat >>confdefs.h <<_ACEOF
13094 #define CONFIG_XENO_HAVE_MQUEUE_H $HAVE_MQUEUE_H
13095 _ACEOF
13098 cat >>confdefs.h <<_ACEOF
13099 #define CONFIG_XENO_HAVE_PTHREAD_MUTEXATTR_SETPROTOCOL $HAVE_PTHREAD_MUTEXATTR_SETPROTOCOL
13100 _ACEOF
13103 cat >>confdefs.h <<_ACEOF
13104 #define CONFIG_XENO_HAVE_PTHREAD_CONDATTR_SETCLOCK $HAVE_PTHREAD_CONDATTR_SETCLOCK
13105 _ACEOF
13109 test x$CONFIG_XENO_X86_SEP = xy &&
13110 $as_echo "#define CONFIG_XENO_X86_SEP 1" >>confdefs.h
13112 test x$CONFIG_SMP = xy &&
13113 $as_echo "#define CONFIG_SMP 1" >>confdefs.h
13115 test x$CONFIG_XENO_FASTSYNCH = xy &&
13116 $as_echo "#define CONFIG_XENO_FASTSYNCH 1" >>confdefs.h
13118 if test "$CONFIG_XENO_FASTSYNCH" = y; then
13119 CONFIG_XENO_FASTSYNCH_TRUE=
13120 CONFIG_XENO_FASTSYNCH_FALSE='#'
13121 else
13122 CONFIG_XENO_FASTSYNCH_TRUE='#'
13123 CONFIG_XENO_FASTSYNCH_FALSE=
13126 test x$ac_cv_func_fork = xyes &&
13127 $as_echo "#define CONFIG_MMU 1" >>confdefs.h
13130 test x$atomic_ops = xbuiltins &&
13131 $as_echo "#define CONFIG_XENO_ATOMIC_BUILTINS 1" >>confdefs.h
13134 test x$CONFIG_X86_TSC = xy &&
13135 $as_echo "#define CONFIG_X86_TSC 1" >>confdefs.h
13138 test x$CONFIG_XENO_ARM_SA1100 = xy &&
13139 $as_echo "#define CONFIG_XENO_ARM_SA1100 1" >>confdefs.h
13141 test x$CONFIG_XENO_CPU_XSC3 = xy &&
13142 $as_echo "#define CONFIG_XENO_CPU_XSC3 1" >>confdefs.h
13144 test $CONFIG_XENO_ARM_TSC_TYPE &&
13145 cat >>confdefs.h <<_ACEOF
13146 #define CONFIG_XENO_ARM_TSC_TYPE $CONFIG_XENO_ARM_TSC_TYPE
13147 _ACEOF
13149 if test "$enable_shared" = 'yes'; then
13150 CONFIG_XENO_SHARED_TRUE=
13151 CONFIG_XENO_SHARED_FALSE='#'
13152 else
13153 CONFIG_XENO_SHARED_TRUE='#'
13154 CONFIG_XENO_SHARED_FALSE=
13158 # Default sampling period (ns) used in various tests
13160 cat >>confdefs.h <<_ACEOF
13161 #define CONFIG_XENO_DEFAULT_PERIOD $CONFIG_XENO_DEFAULT_PERIOD
13162 _ACEOF
13170 if test "$CONFIG_XENO_DOC_DOX" = y; then
13171 CONFIG_XENO_DOC_DOX_TRUE=
13172 CONFIG_XENO_DOC_DOX_FALSE='#'
13173 else
13174 CONFIG_XENO_DOC_DOX_TRUE='#'
13175 CONFIG_XENO_DOC_DOX_FALSE=
13179 if test "$CONFIG_XENO_ASCIIDOC" = y; then
13180 CONFIG_XENO_ASCIIDOC_TRUE=
13181 CONFIG_XENO_ASCIIDOC_FALSE='#'
13182 else
13183 CONFIG_XENO_ASCIIDOC_TRUE='#'
13184 CONFIG_XENO_ASCIIDOC_FALSE=
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
13189 $as_echo_n "checking for sched_setaffinity... " >&6; }
13190 if ${ac_cv_sched_setaffinity+:} false; then :
13191 $as_echo_n "(cached) " >&6
13192 else
13193 save_CFLAGS="$CFLAGS"
13194 CFLAGS="-Wimplicit-function-declaration -Werror -D_GNU_SOURCE"
13195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13196 /* end confdefs.h. */
13197 #include <sched.h>
13199 main ()
13201 cpu_set_t cpu_set; sched_setaffinity(0, sizeof(cpu_set), &cpu_set);
13203 return 0;
13205 _ACEOF
13206 if ac_fn_c_try_link "$LINENO"; then :
13207 ac_cv_sched_setaffinity=new
13208 else
13209 ac_cv_sched_setaffinity=bad
13211 rm -f core conftest.err conftest.$ac_objext \
13212 conftest$ac_exeext conftest.$ac_ext
13213 if test $ac_cv_sched_setaffinity = bad ; then
13214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13215 /* end confdefs.h. */
13216 #include <sched.h>
13218 main ()
13220 cpu_set_t cpu_set; sched_setaffinity(0, &cpu_set);
13222 return 0;
13224 _ACEOF
13225 if ac_fn_c_try_link "$LINENO"; then :
13226 ac_cv_sched_setaffinity=old
13227 else
13228 ac_cv_sched_setaffinity=no
13230 rm -f core conftest.err conftest.$ac_objext \
13231 conftest$ac_exeext conftest.$ac_ext
13233 if test $ac_cv_sched_setaffinity = old ; then
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: old" >&5
13235 $as_echo "old" >&6; }
13237 $as_echo "#define HAVE_OLD_SETAFFINITY 1" >>confdefs.h
13239 elif test $ac_cv_sched_setaffinity = new ; then
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13241 $as_echo "ok" >&6; }
13243 $as_echo "#define HAVE_RECENT_SETAFFINITY 1" >>confdefs.h
13245 else
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13247 $as_echo "no" >&6; }
13249 CFLAGS="$save_CFLAGS"
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for specific GCC switches" >&5
13254 $as_echo_n "checking for specific GCC switches... " >&6; }
13255 if ${ac_cv_gcc_wnoalias+:} false; then :
13256 $as_echo_n "(cached) " >&6
13257 else
13259 ac_ext=c
13260 ac_cpp='$CPP $CPPFLAGS'
13261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13265 save_CFLAGS="$CFLAGS"
13266 CFLAGS="-Wno-strict-aliasing -Werror"
13267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13268 /* end confdefs.h. */
13271 main ()
13273 return 0;
13275 return 0;
13277 _ACEOF
13278 if ac_fn_c_try_compile "$LINENO"; then :
13279 ac_cv_gcc_wnoalias=yes
13280 else
13281 ac_cv_gcc_wnoalias=no
13283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13284 CFLAGS="$save_CFLAGS"
13285 ac_ext=c
13286 ac_cpp='$CPP $CPPFLAGS'
13287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13293 if [ $ac_cv_gcc_wnoalias = no ]; then
13294 gcc_w_noalias=
13295 else
13296 gcc_w_noalias="-Wno-strict-aliasing"
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13299 $as_echo "done" >&6; }
13301 XENO_USER_APP_CFLAGS="-D_GNU_SOURCE -D_REENTRANT"
13302 XENO_USER_APP_LDFLAGS=
13304 XENO_USER_CFLAGS="$XENO_USER_APP_CFLAGS -Wall -Werror-implicit-function-declaration -pipe"
13305 XENO_USER_LDFLAGS="$XENO_USER_APP_LDFLAGS"
13307 if test x$debug_symbols = xy; then
13308 XENO_USER_CFLAGS="-g $XENO_USER_CFLAGS"
13309 else
13310 XENO_USER_CFLAGS="-O2 $XENO_USER_CFLAGS"
13313 XENO_USER_CFLAGS="$XENO_USER_CFLAGS -D__XENO__ -D__IN_XENO__ -Wstrict-prototypes"
13315 case $XENO_TARGET_ARCH in
13316 x86)
13317 XENO_USER_CFLAGS="$XENO_USER_CFLAGS -fstrict-aliasing $gcc_w_noalias"
13319 powerpc)
13321 blackfin|nios2)
13322 # Produce libraries in FDPIC format.
13324 arm)
13326 esac
13328 XENO_LIB_CFLAGS="$XENO_USER_CFLAGS"
13329 XENO_LIB_LDFLAGS="$XENO_USER_LDFLAGS"
13331 case "$build_for" in
13332 arm*-*)
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether using r7 causes errors" >&5
13334 $as_echo_n "checking whether using r7 causes errors... " >&6; }
13335 if ${ac_cv_r7_error+:} false; then :
13336 $as_echo_n "(cached) " >&6
13337 else
13338 cat > conftest.c <<\EOF
13339 int foo(void) {
13340 register unsigned x __asm__("r7");
13341 __asm__("mov %0,#0\n\t": "=r"(x));
13342 return x;
13345 if { ac_try='${CC-cc} $CPPFLAGS $CFLAGS $XENO_USER_CFLAGS -c conftest.c >&5'
13346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13347 (eval $ac_try) 2>&5
13348 ac_status=$?
13349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13350 test $ac_status = 0; }; }; then
13351 ac_cv_r7_error=no
13352 else
13353 ac_cv_r7_error=yes
13355 rm -f conftest*
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_r7_error" >&5
13358 $as_echo "$ac_cv_r7_error" >&6; }
13359 if test x"$ac_cv_r7_error" = xyes; then
13360 XENO_USER_CFLAGS="-fomit-frame-pointer $XENO_USER_CFLAGS"
13361 XENO_LIB_CFLAGS="-fomit-frame-pointer $XENO_LIB_CFLAGS"
13364 i*86*-*)
13365 XENO_LIB_CFLAGS="$XENO_LIB_CFLAGS -fno-omit-frame-pointer"
13367 esac
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports @file" >&5
13370 $as_echo_n "checking whether ld supports @file... " >&6; }
13371 if ${ac_cv_ld_file_option+:} false; then :
13372 $as_echo_n "(cached) " >&6
13373 else
13375 ac_ext=c
13376 ac_cpp='$CPP $CPPFLAGS'
13377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13381 save_LDFLAGS="$LDFLAGS"
13382 LDFLAGS="-Wl,@/dev/null"
13383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13384 /* end confdefs.h. */
13385 main(){}
13386 _ACEOF
13387 if ac_fn_c_try_link "$LINENO"; then :
13388 ac_cv_ld_file_option=yes
13389 else
13390 ac_cv_ld_file_option=no
13392 rm -f core conftest.err conftest.$ac_objext \
13393 conftest$ac_exeext conftest.$ac_ext
13394 LDFLAGS="$save_LDFLAGS"
13395 ac_ext=c
13396 ac_cpp='$CPP $CPPFLAGS'
13397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13403 if [ $ac_cv_ld_file_option = yes ]; then
13404 XENO_POSIX_WRAPPERS="-Wl,@`cd $srcdir && pwd`/src/skins/posix/posix.wrappers"
13405 else
13406 XENO_POSIX_WRAPPERS=`while read wrap_option symbol ; do \
13407 echo -n "-Wl,$wrap_option,$symbol " ; \
13408 done < $srcdir/src/skins/posix/posix.wrappers`
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_ld_file_option:-no}" >&5
13411 $as_echo "${ac_cv_ld_file_option:-no}" >&6; }
13412 LD_FILE_OPTION=$ac_cv_ld_file_option
13414 if test "$LD_FILE_OPTION" = "yes"; then
13415 CONFIG_XENO_FAST_WRAP_TRUE=
13416 CONFIG_XENO_FAST_WRAP_FALSE='#'
13417 else
13418 CONFIG_XENO_FAST_WRAP_TRUE='#'
13419 CONFIG_XENO_FAST_WRAP_FALSE=
13423 XENO_DLOPEN_CONSTRAINT=
13424 use__thread=no
13427 # Check whether --with-__thread was given.
13428 if test "${with___thread+set}" = set; then :
13429 withval=$with___thread; use__thread=$withval
13433 if test "x$use__thread" = xyes; then
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread" >&5
13435 $as_echo_n "checking for __thread... " >&6; }
13436 if ${libc_cv_gcc___thread+:} false; then :
13437 $as_echo_n "(cached) " >&6
13438 else
13439 cat > conftest.c <<\EOF
13440 __thread int a __attribute__ ((tls_model ("initial-exec"))) = 42;
13442 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c -Werror conftest.c >&5'
13443 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13444 (eval $ac_try) 2>&5
13445 ac_status=$?
13446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13447 test $ac_status = 0; }; }; then
13448 libc_cv_gcc___thread=yes
13449 else
13450 libc_cv_gcc___thread=no
13452 rm -f conftest*
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc___thread" >&5
13455 $as_echo "$libc_cv_gcc___thread" >&6; }
13456 if test "$libc_cv_gcc___thread" = yes; then
13458 $as_echo "#define HAVE___THREAD 1" >>confdefs.h
13460 XENO_DLOPEN_CONSTRAINT="-Wl,-z -Wl,nodlopen"
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking location for test binaries" >&5
13465 $as_echo_n "checking location for test binaries... " >&6; }
13467 # Check whether --with-testdir was given.
13468 if test "${with_testdir+set}" = set; then :
13469 withval=$with_testdir;
13470 case "$withval" in
13471 "" | y | ye | yes | n | no)
13472 as_fn_error $? "You must supply an argument to --with-testdir." "$LINENO" 5
13474 esac
13475 XENO_TEST_DIR="$withval"
13477 else
13478 XENO_TEST_DIR=$bindir
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XENO_TEST_DIR" >&5
13482 $as_echo "$XENO_TEST_DIR" >&6; }
13484 unset want_fortify
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fortify support" >&5
13486 $as_echo_n "checking for fortify support... " >&6; }
13487 # Check whether --enable-fortify was given.
13488 if test "${enable_fortify+set}" = set; then :
13489 enableval=$enable_fortify; case "$enableval" in
13490 y | yes) want_fortify=yes;;
13491 *) want_fortify=no;;
13492 esac
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_fortify:-autodetect}" >&5
13496 $as_echo "${want_fortify:-autodetect}" >&6; }
13497 if test x"$want_fortify" != xno; then
13498 ac_fn_c_check_func "$LINENO" "__vfprintf_chk" "ac_cv_func___vfprintf_chk"
13499 if test "x$ac_cv_func___vfprintf_chk" = xyes; then :
13501 $as_echo "#define CONFIG_XENO_FORTIFY 1" >>confdefs.h
13503 else
13504 if test x"$want_fortify" = "xyes"; then
13505 as_fn_error $? "Fortify support enabled but not available" "$LINENO" 5
13529 CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/src/skins/posix/posix.wrappers'
13533 base=asm-$XENO_TARGET_ARCH
13534 ac_config_links="$ac_config_links src/include/asm/xenomai:$srcdir/include/$base"
13536 base=asm-generic
13537 ac_config_links="$ac_config_links src/include/$base/xenomai:$srcdir/include/$base"
13540 ac_config_files="$ac_config_files Makefile config/Makefile scripts/Makefile scripts/xeno-config scripts/xeno src/Makefile src/skins/Makefile src/skins/common/Makefile src/skins/posix/Makefile src/skins/native/Makefile src/skins/native/libxenomai_native.pc src/skins/vxworks/Makefile src/skins/vxworks/libxenomai_vxworks.pc src/skins/psos+/Makefile src/skins/psos+/libxenomai_psos+.pc src/skins/vrtx/Makefile src/skins/vrtx/libxenomai_vrtx.pc src/skins/rtdm/Makefile src/skins/rtdm/libxenomai_rtdm.pc src/skins/uitron/Makefile src/skins/uitron/libxenomai_uitron.pc src/drvlib/Makefile src/drvlib/analogy/Makefile src/include/Makefile src/testsuite/Makefile src/testsuite/latency/Makefile src/testsuite/cyclic/Makefile src/testsuite/switchtest/Makefile src/testsuite/irqbench/Makefile src/testsuite/clocktest/Makefile src/testsuite/klatency/Makefile src/testsuite/unit/Makefile src/testsuite/xeno-test/Makefile src/testsuite/regression/Makefile src/testsuite/regression/native/Makefile src/testsuite/regression/posix/Makefile src/testsuite/regression/native+posix/Makefile src/utils/Makefile src/utils/can/Makefile src/utils/analogy/Makefile src/utils/ps/Makefile include/Makefile include/asm-generic/Makefile include/asm-generic/bits/Makefile include/asm-blackfin/Makefile include/asm-blackfin/bits/Makefile include/asm-x86/Makefile include/asm-x86/bits/Makefile include/asm-powerpc/Makefile include/asm-powerpc/bits/Makefile include/asm-arm/Makefile include/asm-arm/bits/Makefile include/asm-nios2/Makefile include/asm-nios2/bits/Makefile include/asm-sh/Makefile include/asm-sh/bits/Makefile include/asm-sim/Makefile include/asm-sim/bits/Makefile include/native/Makefile include/nucleus/Makefile include/posix/Makefile include/posix/sys/Makefile include/psos+/Makefile include/rtdm/Makefile include/analogy/Makefile include/uitron/Makefile include/vrtx/Makefile include/vxworks/Makefile"
13543 if test x"$LD_FILE_OPTION" = x"yes" ; then
13544 ac_config_files="$ac_config_files src/skins/posix/libxenomai_posix.pc"
13548 if test \! x$XENO_MAYBE_DOCDIR = x ; then
13549 ac_config_files="$ac_config_files doc/Makefile doc/txt/Makefile doc/man/Makefile doc/doxygen/Makefile doc/doxygen/Doxyfile-common doc/doxygen/Doxyfile doc/doxygen/Doxyfile-native doc/doxygen/Doxyfile-nucleus doc/doxygen/Doxyfile-posix doc/doxygen/Doxyfile-rtdm doc/asciidoc/Makefile"
13553 cat >confcache <<\_ACEOF
13554 # This file is a shell script that caches the results of configure
13555 # tests run on this system so they can be shared between configure
13556 # scripts and configure runs, see configure's option --config-cache.
13557 # It is not useful on other systems. If it contains results you don't
13558 # want to keep, you may remove or edit it.
13560 # config.status only pays attention to the cache file if you give it
13561 # the --recheck option to rerun configure.
13563 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13564 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13565 # following values.
13567 _ACEOF
13569 # The following way of writing the cache mishandles newlines in values,
13570 # but we know of no workaround that is simple, portable, and efficient.
13571 # So, we kill variables containing newlines.
13572 # Ultrix sh set writes to stderr and can't be redirected directly,
13573 # and sets the high bit in the cache file unless we assign to the vars.
13575 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13576 eval ac_val=\$$ac_var
13577 case $ac_val in #(
13578 *${as_nl}*)
13579 case $ac_var in #(
13580 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13581 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13582 esac
13583 case $ac_var in #(
13584 _ | IFS | as_nl) ;; #(
13585 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13586 *) { eval $ac_var=; unset $ac_var;} ;;
13587 esac ;;
13588 esac
13589 done
13591 (set) 2>&1 |
13592 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13593 *${as_nl}ac_space=\ *)
13594 # `set' does not quote correctly, so add quotes: double-quote
13595 # substitution turns \\\\ into \\, and sed turns \\ into \.
13596 sed -n \
13597 "s/'/'\\\\''/g;
13598 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13599 ;; #(
13601 # `set' quotes correctly as required by POSIX, so do not add quotes.
13602 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13604 esac |
13605 sort
13607 sed '
13608 /^ac_cv_env_/b end
13609 t clear
13610 :clear
13611 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13612 t end
13613 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13614 :end' >>confcache
13615 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13616 if test -w "$cache_file"; then
13617 if test "x$cache_file" != "x/dev/null"; then
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13619 $as_echo "$as_me: updating cache $cache_file" >&6;}
13620 if test ! -f "$cache_file" || test -h "$cache_file"; then
13621 cat confcache >"$cache_file"
13622 else
13623 case $cache_file in #(
13624 */* | ?:*)
13625 mv -f confcache "$cache_file"$$ &&
13626 mv -f "$cache_file"$$ "$cache_file" ;; #(
13628 mv -f confcache "$cache_file" ;;
13629 esac
13632 else
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13634 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13637 rm -f confcache
13639 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13640 # Let make expand exec_prefix.
13641 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13643 DEFS=-DHAVE_CONFIG_H
13645 ac_libobjs=
13646 ac_ltlibobjs=
13648 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13649 # 1. Remove the extension, and $U if already installed.
13650 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13651 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13652 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13653 # will be set to the directory where LIBOBJS objects are built.
13654 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13655 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13656 done
13657 LIBOBJS=$ac_libobjs
13659 LTLIBOBJS=$ac_ltlibobjs
13662 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13663 as_fn_error $? "conditional \"AMDEP\" was never defined.
13664 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13666 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13667 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13668 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13670 if test -n "$EXEEXT"; then
13671 am__EXEEXT_TRUE=
13672 am__EXEEXT_FALSE='#'
13673 else
13674 am__EXEEXT_TRUE='#'
13675 am__EXEEXT_FALSE=
13678 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13679 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13680 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13682 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
13683 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
13684 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13686 if test -z "${XENO_TARGET_ARCH_X86_TRUE}" && test -z "${XENO_TARGET_ARCH_X86_FALSE}"; then
13687 as_fn_error $? "conditional \"XENO_TARGET_ARCH_X86\" was never defined.
13688 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13690 if test -z "${CONFIG_XENO_FASTSYNCH_TRUE}" && test -z "${CONFIG_XENO_FASTSYNCH_FALSE}"; then
13691 as_fn_error $? "conditional \"CONFIG_XENO_FASTSYNCH\" was never defined.
13692 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13694 if test -z "${CONFIG_XENO_SHARED_TRUE}" && test -z "${CONFIG_XENO_SHARED_FALSE}"; then
13695 as_fn_error $? "conditional \"CONFIG_XENO_SHARED\" was never defined.
13696 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13698 if test -z "${CONFIG_XENO_DOC_DOX_TRUE}" && test -z "${CONFIG_XENO_DOC_DOX_FALSE}"; then
13699 as_fn_error $? "conditional \"CONFIG_XENO_DOC_DOX\" was never defined.
13700 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13702 if test -z "${CONFIG_XENO_ASCIIDOC_TRUE}" && test -z "${CONFIG_XENO_ASCIIDOC_FALSE}"; then
13703 as_fn_error $? "conditional \"CONFIG_XENO_ASCIIDOC\" was never defined.
13704 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13706 if test -z "${CONFIG_XENO_FAST_WRAP_TRUE}" && test -z "${CONFIG_XENO_FAST_WRAP_FALSE}"; then
13707 as_fn_error $? "conditional \"CONFIG_XENO_FAST_WRAP\" was never defined.
13708 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13711 : "${CONFIG_STATUS=./config.status}"
13712 ac_write_fail=0
13713 ac_clean_files_save=$ac_clean_files
13714 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13716 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13717 as_write_fail=0
13718 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13719 #! $SHELL
13720 # Generated by $as_me.
13721 # Run this file to recreate the current configuration.
13722 # Compiler output produced by configure, useful for debugging
13723 # configure, is in config.log if it exists.
13725 debug=false
13726 ac_cs_recheck=false
13727 ac_cs_silent=false
13729 SHELL=\${CONFIG_SHELL-$SHELL}
13730 export SHELL
13731 _ASEOF
13732 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13733 ## -------------------- ##
13734 ## M4sh Initialization. ##
13735 ## -------------------- ##
13737 # Be more Bourne compatible
13738 DUALCASE=1; export DUALCASE # for MKS sh
13739 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13740 emulate sh
13741 NULLCMD=:
13742 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13743 # is contrary to our usage. Disable this feature.
13744 alias -g '${1+"$@"}'='"$@"'
13745 setopt NO_GLOB_SUBST
13746 else
13747 case `(set -o) 2>/dev/null` in #(
13748 *posix*) :
13749 set -o posix ;; #(
13750 *) :
13752 esac
13756 as_nl='
13758 export as_nl
13759 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13760 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13761 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13762 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13763 # Prefer a ksh shell builtin over an external printf program on Solaris,
13764 # but without wasting forks for bash or zsh.
13765 if test -z "$BASH_VERSION$ZSH_VERSION" \
13766 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13767 as_echo='print -r --'
13768 as_echo_n='print -rn --'
13769 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13770 as_echo='printf %s\n'
13771 as_echo_n='printf %s'
13772 else
13773 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13774 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13775 as_echo_n='/usr/ucb/echo -n'
13776 else
13777 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13778 as_echo_n_body='eval
13779 arg=$1;
13780 case $arg in #(
13781 *"$as_nl"*)
13782 expr "X$arg" : "X\\(.*\\)$as_nl";
13783 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13784 esac;
13785 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13787 export as_echo_n_body
13788 as_echo_n='sh -c $as_echo_n_body as_echo'
13790 export as_echo_body
13791 as_echo='sh -c $as_echo_body as_echo'
13794 # The user is always right.
13795 if test "${PATH_SEPARATOR+set}" != set; then
13796 PATH_SEPARATOR=:
13797 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13798 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13799 PATH_SEPARATOR=';'
13804 # IFS
13805 # We need space, tab and new line, in precisely that order. Quoting is
13806 # there to prevent editors from complaining about space-tab.
13807 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13808 # splitting by setting IFS to empty value.)
13809 IFS=" "" $as_nl"
13811 # Find who we are. Look in the path if we contain no directory separator.
13812 as_myself=
13813 case $0 in #((
13814 *[\\/]* ) as_myself=$0 ;;
13815 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13816 for as_dir in $PATH
13818 IFS=$as_save_IFS
13819 test -z "$as_dir" && as_dir=.
13820 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13821 done
13822 IFS=$as_save_IFS
13825 esac
13826 # We did not find ourselves, most probably we were run as `sh COMMAND'
13827 # in which case we are not to be found in the path.
13828 if test "x$as_myself" = x; then
13829 as_myself=$0
13831 if test ! -f "$as_myself"; then
13832 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13833 exit 1
13836 # Unset variables that we do not need and which cause bugs (e.g. in
13837 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13838 # suppresses any "Segmentation fault" message there. '((' could
13839 # trigger a bug in pdksh 5.2.14.
13840 for as_var in BASH_ENV ENV MAIL MAILPATH
13841 do eval test x\${$as_var+set} = xset \
13842 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13843 done
13844 PS1='$ '
13845 PS2='> '
13846 PS4='+ '
13848 # NLS nuisances.
13849 LC_ALL=C
13850 export LC_ALL
13851 LANGUAGE=C
13852 export LANGUAGE
13854 # CDPATH.
13855 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13858 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13859 # ----------------------------------------
13860 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13861 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13862 # script with STATUS, using 1 if that was 0.
13863 as_fn_error ()
13865 as_status=$1; test $as_status -eq 0 && as_status=1
13866 if test "$4"; then
13867 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13868 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13870 $as_echo "$as_me: error: $2" >&2
13871 as_fn_exit $as_status
13872 } # as_fn_error
13875 # as_fn_set_status STATUS
13876 # -----------------------
13877 # Set $? to STATUS, without forking.
13878 as_fn_set_status ()
13880 return $1
13881 } # as_fn_set_status
13883 # as_fn_exit STATUS
13884 # -----------------
13885 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13886 as_fn_exit ()
13888 set +e
13889 as_fn_set_status $1
13890 exit $1
13891 } # as_fn_exit
13893 # as_fn_unset VAR
13894 # ---------------
13895 # Portably unset VAR.
13896 as_fn_unset ()
13898 { eval $1=; unset $1;}
13900 as_unset=as_fn_unset
13901 # as_fn_append VAR VALUE
13902 # ----------------------
13903 # Append the text in VALUE to the end of the definition contained in VAR. Take
13904 # advantage of any shell optimizations that allow amortized linear growth over
13905 # repeated appends, instead of the typical quadratic growth present in naive
13906 # implementations.
13907 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13908 eval 'as_fn_append ()
13910 eval $1+=\$2
13912 else
13913 as_fn_append ()
13915 eval $1=\$$1\$2
13917 fi # as_fn_append
13919 # as_fn_arith ARG...
13920 # ------------------
13921 # Perform arithmetic evaluation on the ARGs, and store the result in the
13922 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13923 # must be portable across $(()) and expr.
13924 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13925 eval 'as_fn_arith ()
13927 as_val=$(( $* ))
13929 else
13930 as_fn_arith ()
13932 as_val=`expr "$@" || test $? -eq 1`
13934 fi # as_fn_arith
13937 if expr a : '\(a\)' >/dev/null 2>&1 &&
13938 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13939 as_expr=expr
13940 else
13941 as_expr=false
13944 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13945 as_basename=basename
13946 else
13947 as_basename=false
13950 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13951 as_dirname=dirname
13952 else
13953 as_dirname=false
13956 as_me=`$as_basename -- "$0" ||
13957 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13958 X"$0" : 'X\(//\)$' \| \
13959 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13960 $as_echo X/"$0" |
13961 sed '/^.*\/\([^/][^/]*\)\/*$/{
13962 s//\1/
13965 /^X\/\(\/\/\)$/{
13966 s//\1/
13969 /^X\/\(\/\).*/{
13970 s//\1/
13973 s/.*/./; q'`
13975 # Avoid depending upon Character Ranges.
13976 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13977 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13978 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13979 as_cr_digits='0123456789'
13980 as_cr_alnum=$as_cr_Letters$as_cr_digits
13982 ECHO_C= ECHO_N= ECHO_T=
13983 case `echo -n x` in #(((((
13984 -n*)
13985 case `echo 'xy\c'` in
13986 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13987 xy) ECHO_C='\c';;
13988 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13989 ECHO_T=' ';;
13990 esac;;
13992 ECHO_N='-n';;
13993 esac
13995 rm -f conf$$ conf$$.exe conf$$.file
13996 if test -d conf$$.dir; then
13997 rm -f conf$$.dir/conf$$.file
13998 else
13999 rm -f conf$$.dir
14000 mkdir conf$$.dir 2>/dev/null
14002 if (echo >conf$$.file) 2>/dev/null; then
14003 if ln -s conf$$.file conf$$ 2>/dev/null; then
14004 as_ln_s='ln -s'
14005 # ... but there are two gotchas:
14006 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14007 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14008 # In both cases, we have to default to `cp -pR'.
14009 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14010 as_ln_s='cp -pR'
14011 elif ln conf$$.file conf$$ 2>/dev/null; then
14012 as_ln_s=ln
14013 else
14014 as_ln_s='cp -pR'
14016 else
14017 as_ln_s='cp -pR'
14019 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14020 rmdir conf$$.dir 2>/dev/null
14023 # as_fn_mkdir_p
14024 # -------------
14025 # Create "$as_dir" as a directory, including parents if necessary.
14026 as_fn_mkdir_p ()
14029 case $as_dir in #(
14030 -*) as_dir=./$as_dir;;
14031 esac
14032 test -d "$as_dir" || eval $as_mkdir_p || {
14033 as_dirs=
14034 while :; do
14035 case $as_dir in #(
14036 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14037 *) as_qdir=$as_dir;;
14038 esac
14039 as_dirs="'$as_qdir' $as_dirs"
14040 as_dir=`$as_dirname -- "$as_dir" ||
14041 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14042 X"$as_dir" : 'X\(//\)[^/]' \| \
14043 X"$as_dir" : 'X\(//\)$' \| \
14044 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14045 $as_echo X"$as_dir" |
14046 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14047 s//\1/
14050 /^X\(\/\/\)[^/].*/{
14051 s//\1/
14054 /^X\(\/\/\)$/{
14055 s//\1/
14058 /^X\(\/\).*/{
14059 s//\1/
14062 s/.*/./; q'`
14063 test -d "$as_dir" && break
14064 done
14065 test -z "$as_dirs" || eval "mkdir $as_dirs"
14066 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14069 } # as_fn_mkdir_p
14070 if mkdir -p . 2>/dev/null; then
14071 as_mkdir_p='mkdir -p "$as_dir"'
14072 else
14073 test -d ./-p && rmdir ./-p
14074 as_mkdir_p=false
14078 # as_fn_executable_p FILE
14079 # -----------------------
14080 # Test if FILE is an executable regular file.
14081 as_fn_executable_p ()
14083 test -f "$1" && test -x "$1"
14084 } # as_fn_executable_p
14085 as_test_x='test -x'
14086 as_executable_p=as_fn_executable_p
14088 # Sed expression to map a string onto a valid CPP name.
14089 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14091 # Sed expression to map a string onto a valid variable name.
14092 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14095 exec 6>&1
14096 ## ----------------------------------- ##
14097 ## Main body of $CONFIG_STATUS script. ##
14098 ## ----------------------------------- ##
14099 _ASEOF
14100 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14103 # Save the log message, to keep $0 and so on meaningful, and to
14104 # report actual input values of CONFIG_FILES etc. instead of their
14105 # values after options handling.
14106 ac_log="
14107 This file was extended by Xenomai $as_me 2.6.5, which was
14108 generated by GNU Autoconf 2.69. Invocation command line was
14110 CONFIG_FILES = $CONFIG_FILES
14111 CONFIG_HEADERS = $CONFIG_HEADERS
14112 CONFIG_LINKS = $CONFIG_LINKS
14113 CONFIG_COMMANDS = $CONFIG_COMMANDS
14114 $ $0 $@
14116 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14119 _ACEOF
14121 case $ac_config_files in *"
14122 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14123 esac
14125 case $ac_config_headers in *"
14126 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14127 esac
14130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14131 # Files that config.status was made for.
14132 config_files="$ac_config_files"
14133 config_headers="$ac_config_headers"
14134 config_links="$ac_config_links"
14135 config_commands="$ac_config_commands"
14137 _ACEOF
14139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14140 ac_cs_usage="\
14141 \`$as_me' instantiates files and other configuration actions
14142 from templates according to the current configuration. Unless the files
14143 and actions are specified as TAGs, all are instantiated by default.
14145 Usage: $0 [OPTION]... [TAG]...
14147 -h, --help print this help, then exit
14148 -V, --version print version number and configuration settings, then exit
14149 --config print configuration, then exit
14150 -q, --quiet, --silent
14151 do not print progress messages
14152 -d, --debug don't remove temporary files
14153 --recheck update $as_me by reconfiguring in the same conditions
14154 --file=FILE[:TEMPLATE]
14155 instantiate the configuration file FILE
14156 --header=FILE[:TEMPLATE]
14157 instantiate the configuration header FILE
14159 Configuration files:
14160 $config_files
14162 Configuration headers:
14163 $config_headers
14165 Configuration links:
14166 $config_links
14168 Configuration commands:
14169 $config_commands
14171 Report bugs to <xenomai@xenomai.org>."
14173 _ACEOF
14174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14175 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14176 ac_cs_version="\\
14177 Xenomai config.status 2.6.5
14178 configured by $0, generated by GNU Autoconf 2.69,
14179 with options \\"\$ac_cs_config\\"
14181 Copyright (C) 2012 Free Software Foundation, Inc.
14182 This config.status script is free software; the Free Software Foundation
14183 gives unlimited permission to copy, distribute and modify it."
14185 ac_pwd='$ac_pwd'
14186 srcdir='$srcdir'
14187 INSTALL='$INSTALL'
14188 MKDIR_P='$MKDIR_P'
14189 AWK='$AWK'
14190 test -n "\$AWK" || AWK=awk
14191 _ACEOF
14193 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14194 # The default lists apply if the user does not specify any file.
14195 ac_need_defaults=:
14196 while test $# != 0
14198 case $1 in
14199 --*=?*)
14200 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14201 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14202 ac_shift=:
14204 --*=)
14205 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14206 ac_optarg=
14207 ac_shift=:
14210 ac_option=$1
14211 ac_optarg=$2
14212 ac_shift=shift
14214 esac
14216 case $ac_option in
14217 # Handling of the options.
14218 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14219 ac_cs_recheck=: ;;
14220 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14221 $as_echo "$ac_cs_version"; exit ;;
14222 --config | --confi | --conf | --con | --co | --c )
14223 $as_echo "$ac_cs_config"; exit ;;
14224 --debug | --debu | --deb | --de | --d | -d )
14225 debug=: ;;
14226 --file | --fil | --fi | --f )
14227 $ac_shift
14228 case $ac_optarg in
14229 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14230 '') as_fn_error $? "missing file argument" ;;
14231 esac
14232 as_fn_append CONFIG_FILES " '$ac_optarg'"
14233 ac_need_defaults=false;;
14234 --header | --heade | --head | --hea )
14235 $ac_shift
14236 case $ac_optarg in
14237 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14238 esac
14239 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14240 ac_need_defaults=false;;
14241 --he | --h)
14242 # Conflict between --help and --header
14243 as_fn_error $? "ambiguous option: \`$1'
14244 Try \`$0 --help' for more information.";;
14245 --help | --hel | -h )
14246 $as_echo "$ac_cs_usage"; exit ;;
14247 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14248 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14249 ac_cs_silent=: ;;
14251 # This is an error.
14252 -*) as_fn_error $? "unrecognized option: \`$1'
14253 Try \`$0 --help' for more information." ;;
14255 *) as_fn_append ac_config_targets " $1"
14256 ac_need_defaults=false ;;
14258 esac
14259 shift
14260 done
14262 ac_configure_extra_args=
14264 if $ac_cs_silent; then
14265 exec 6>/dev/null
14266 ac_configure_extra_args="$ac_configure_extra_args --silent"
14269 _ACEOF
14270 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14271 if \$ac_cs_recheck; then
14272 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14273 shift
14274 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14275 CONFIG_SHELL='$SHELL'
14276 export CONFIG_SHELL
14277 exec "\$@"
14280 _ACEOF
14281 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14282 exec 5>>config.log
14284 echo
14285 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14286 ## Running $as_me. ##
14287 _ASBOX
14288 $as_echo "$ac_log"
14289 } >&5
14291 _ACEOF
14292 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14294 # INIT-COMMANDS
14296 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14299 # The HP-UX ksh and POSIX shell print the target directory to stdout
14300 # if CDPATH is set.
14301 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14303 sed_quote_subst='$sed_quote_subst'
14304 double_quote_subst='$double_quote_subst'
14305 delay_variable_subst='$delay_variable_subst'
14306 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14307 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14308 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14309 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14310 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14311 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14312 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14313 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14314 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14315 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14316 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14317 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14318 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14319 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14320 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14321 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14322 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14323 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14324 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14325 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14326 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14327 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14328 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14329 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14330 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14331 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14332 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14333 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14334 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14335 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14336 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14337 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14338 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14339 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14340 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14341 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14342 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14343 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14344 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14345 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14346 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14347 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14348 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14349 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14350 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14351 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14352 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14353 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14354 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14355 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14356 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14357 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14358 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14359 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14360 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14361 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14362 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"`'
14363 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14364 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14365 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14366 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14367 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14368 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14369 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14370 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14371 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14372 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14373 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14374 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14375 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14376 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14377 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14378 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14379 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14380 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14381 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14382 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14383 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14384 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14385 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14386 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14387 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14388 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14389 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14390 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14391 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14392 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14393 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14394 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14395 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14396 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14397 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14398 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14399 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14400 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14401 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14402 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14403 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14404 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14405 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14406 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14407 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14408 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14409 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14410 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14411 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14412 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14413 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14414 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14415 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14416 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14417 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14418 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14419 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14420 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14421 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14422 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14423 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14424 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14425 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14426 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14427 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14428 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14429 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14430 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14431 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14432 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14433 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14434 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14435 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14437 LTCC='$LTCC'
14438 LTCFLAGS='$LTCFLAGS'
14439 compiler='$compiler_DEFAULT'
14441 # A function that is used when there is no print builtin or printf.
14442 func_fallback_echo ()
14444 eval 'cat <<_LTECHO_EOF
14446 _LTECHO_EOF'
14449 # Quote evaled strings.
14450 for var in SHELL \
14451 ECHO \
14452 PATH_SEPARATOR \
14453 SED \
14454 GREP \
14455 EGREP \
14456 FGREP \
14457 LD \
14458 NM \
14459 LN_S \
14460 lt_SP2NL \
14461 lt_NL2SP \
14462 reload_flag \
14463 OBJDUMP \
14464 deplibs_check_method \
14465 file_magic_cmd \
14466 file_magic_glob \
14467 want_nocaseglob \
14468 DLLTOOL \
14469 sharedlib_from_linklib_cmd \
14470 AR \
14471 AR_FLAGS \
14472 archiver_list_spec \
14473 STRIP \
14474 RANLIB \
14475 CC \
14476 CFLAGS \
14477 compiler \
14478 lt_cv_sys_global_symbol_pipe \
14479 lt_cv_sys_global_symbol_to_cdecl \
14480 lt_cv_sys_global_symbol_to_c_name_address \
14481 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14482 nm_file_list_spec \
14483 lt_prog_compiler_no_builtin_flag \
14484 lt_prog_compiler_pic \
14485 lt_prog_compiler_wl \
14486 lt_prog_compiler_static \
14487 lt_cv_prog_compiler_c_o \
14488 need_locks \
14489 MANIFEST_TOOL \
14490 DSYMUTIL \
14491 NMEDIT \
14492 LIPO \
14493 OTOOL \
14494 OTOOL64 \
14495 shrext_cmds \
14496 export_dynamic_flag_spec \
14497 whole_archive_flag_spec \
14498 compiler_needs_object \
14499 with_gnu_ld \
14500 allow_undefined_flag \
14501 no_undefined_flag \
14502 hardcode_libdir_flag_spec \
14503 hardcode_libdir_separator \
14504 exclude_expsyms \
14505 include_expsyms \
14506 file_list_spec \
14507 variables_saved_for_relink \
14508 libname_spec \
14509 library_names_spec \
14510 soname_spec \
14511 install_override_mode \
14512 finish_eval \
14513 old_striplib \
14514 striplib; do
14515 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14516 *[\\\\\\\`\\"\\\$]*)
14517 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14520 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14522 esac
14523 done
14525 # Double-quote double-evaled strings.
14526 for var in reload_cmds \
14527 old_postinstall_cmds \
14528 old_postuninstall_cmds \
14529 old_archive_cmds \
14530 extract_expsyms_cmds \
14531 old_archive_from_new_cmds \
14532 old_archive_from_expsyms_cmds \
14533 archive_cmds \
14534 archive_expsym_cmds \
14535 module_cmds \
14536 module_expsym_cmds \
14537 export_symbols_cmds \
14538 prelink_cmds \
14539 postlink_cmds \
14540 postinstall_cmds \
14541 postuninstall_cmds \
14542 finish_cmds \
14543 sys_lib_search_path_spec \
14544 sys_lib_dlsearch_path_spec; do
14545 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14546 *[\\\\\\\`\\"\\\$]*)
14547 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14550 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14552 esac
14553 done
14555 ac_aux_dir='$ac_aux_dir'
14556 xsi_shell='$xsi_shell'
14557 lt_shell_append='$lt_shell_append'
14559 # See if we are running on zsh, and set the options which allow our
14560 # commands through without removal of \ escapes INIT.
14561 if test -n "\${ZSH_VERSION+set}" ; then
14562 setopt NO_GLOB_SUBST
14566 PACKAGE='$PACKAGE'
14567 VERSION='$VERSION'
14568 TIMESTAMP='$TIMESTAMP'
14569 RM='$RM'
14570 ofile='$ofile'
14575 _ACEOF
14577 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14579 # Handling of arguments.
14580 for ac_config_target in $ac_config_targets
14582 case $ac_config_target in
14583 "src/include/xeno_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/xeno_config.h" ;;
14584 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14585 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14586 "src/include/asm/xenomai") CONFIG_LINKS="$CONFIG_LINKS src/include/asm/xenomai:$srcdir/include/$base" ;;
14587 "src/include/$base/xenomai") CONFIG_LINKS="$CONFIG_LINKS src/include/$base/xenomai:$srcdir/include/$base" ;;
14588 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14589 "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
14590 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
14591 "scripts/xeno-config") CONFIG_FILES="$CONFIG_FILES scripts/xeno-config" ;;
14592 "scripts/xeno") CONFIG_FILES="$CONFIG_FILES scripts/xeno" ;;
14593 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14594 "src/skins/Makefile") CONFIG_FILES="$CONFIG_FILES src/skins/Makefile" ;;
14595 "src/skins/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/skins/common/Makefile" ;;
14596 "src/skins/posix/Makefile") CONFIG_FILES="$CONFIG_FILES src/skins/posix/Makefile" ;;
14597 "src/skins/native/Makefile") CONFIG_FILES="$CONFIG_FILES src/skins/native/Makefile" ;;
14598 "src/skins/native/libxenomai_native.pc") CONFIG_FILES="$CONFIG_FILES src/skins/native/libxenomai_native.pc" ;;
14599 "src/skins/vxworks/Makefile") CONFIG_FILES="$CONFIG_FILES src/skins/vxworks/Makefile" ;;
14600 "src/skins/vxworks/libxenomai_vxworks.pc") CONFIG_FILES="$CONFIG_FILES src/skins/vxworks/libxenomai_vxworks.pc" ;;
14601 "src/skins/psos+/Makefile") CONFIG_FILES="$CONFIG_FILES src/skins/psos+/Makefile" ;;
14602 "src/skins/psos+/libxenomai_psos+.pc") CONFIG_FILES="$CONFIG_FILES src/skins/psos+/libxenomai_psos+.pc" ;;
14603 "src/skins/vrtx/Makefile") CONFIG_FILES="$CONFIG_FILES src/skins/vrtx/Makefile" ;;
14604 "src/skins/vrtx/libxenomai_vrtx.pc") CONFIG_FILES="$CONFIG_FILES src/skins/vrtx/libxenomai_vrtx.pc" ;;
14605 "src/skins/rtdm/Makefile") CONFIG_FILES="$CONFIG_FILES src/skins/rtdm/Makefile" ;;
14606 "src/skins/rtdm/libxenomai_rtdm.pc") CONFIG_FILES="$CONFIG_FILES src/skins/rtdm/libxenomai_rtdm.pc" ;;
14607 "src/skins/uitron/Makefile") CONFIG_FILES="$CONFIG_FILES src/skins/uitron/Makefile" ;;
14608 "src/skins/uitron/libxenomai_uitron.pc") CONFIG_FILES="$CONFIG_FILES src/skins/uitron/libxenomai_uitron.pc" ;;
14609 "src/drvlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/drvlib/Makefile" ;;
14610 "src/drvlib/analogy/Makefile") CONFIG_FILES="$CONFIG_FILES src/drvlib/analogy/Makefile" ;;
14611 "src/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
14612 "src/testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES src/testsuite/Makefile" ;;
14613 "src/testsuite/latency/Makefile") CONFIG_FILES="$CONFIG_FILES src/testsuite/latency/Makefile" ;;
14614 "src/testsuite/cyclic/Makefile") CONFIG_FILES="$CONFIG_FILES src/testsuite/cyclic/Makefile" ;;
14615 "src/testsuite/switchtest/Makefile") CONFIG_FILES="$CONFIG_FILES src/testsuite/switchtest/Makefile" ;;
14616 "src/testsuite/irqbench/Makefile") CONFIG_FILES="$CONFIG_FILES src/testsuite/irqbench/Makefile" ;;
14617 "src/testsuite/clocktest/Makefile") CONFIG_FILES="$CONFIG_FILES src/testsuite/clocktest/Makefile" ;;
14618 "src/testsuite/klatency/Makefile") CONFIG_FILES="$CONFIG_FILES src/testsuite/klatency/Makefile" ;;
14619 "src/testsuite/unit/Makefile") CONFIG_FILES="$CONFIG_FILES src/testsuite/unit/Makefile" ;;
14620 "src/testsuite/xeno-test/Makefile") CONFIG_FILES="$CONFIG_FILES src/testsuite/xeno-test/Makefile" ;;
14621 "src/testsuite/regression/Makefile") CONFIG_FILES="$CONFIG_FILES src/testsuite/regression/Makefile" ;;
14622 "src/testsuite/regression/native/Makefile") CONFIG_FILES="$CONFIG_FILES src/testsuite/regression/native/Makefile" ;;
14623 "src/testsuite/regression/posix/Makefile") CONFIG_FILES="$CONFIG_FILES src/testsuite/regression/posix/Makefile" ;;
14624 "src/testsuite/regression/native+posix/Makefile") CONFIG_FILES="$CONFIG_FILES src/testsuite/regression/native+posix/Makefile" ;;
14625 "src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
14626 "src/utils/can/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/can/Makefile" ;;
14627 "src/utils/analogy/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/analogy/Makefile" ;;
14628 "src/utils/ps/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/ps/Makefile" ;;
14629 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14630 "include/asm-generic/Makefile") CONFIG_FILES="$CONFIG_FILES include/asm-generic/Makefile" ;;
14631 "include/asm-generic/bits/Makefile") CONFIG_FILES="$CONFIG_FILES include/asm-generic/bits/Makefile" ;;
14632 "include/asm-blackfin/Makefile") CONFIG_FILES="$CONFIG_FILES include/asm-blackfin/Makefile" ;;
14633 "include/asm-blackfin/bits/Makefile") CONFIG_FILES="$CONFIG_FILES include/asm-blackfin/bits/Makefile" ;;
14634 "include/asm-x86/Makefile") CONFIG_FILES="$CONFIG_FILES include/asm-x86/Makefile" ;;
14635 "include/asm-x86/bits/Makefile") CONFIG_FILES="$CONFIG_FILES include/asm-x86/bits/Makefile" ;;
14636 "include/asm-powerpc/Makefile") CONFIG_FILES="$CONFIG_FILES include/asm-powerpc/Makefile" ;;
14637 "include/asm-powerpc/bits/Makefile") CONFIG_FILES="$CONFIG_FILES include/asm-powerpc/bits/Makefile" ;;
14638 "include/asm-arm/Makefile") CONFIG_FILES="$CONFIG_FILES include/asm-arm/Makefile" ;;
14639 "include/asm-arm/bits/Makefile") CONFIG_FILES="$CONFIG_FILES include/asm-arm/bits/Makefile" ;;
14640 "include/asm-nios2/Makefile") CONFIG_FILES="$CONFIG_FILES include/asm-nios2/Makefile" ;;
14641 "include/asm-nios2/bits/Makefile") CONFIG_FILES="$CONFIG_FILES include/asm-nios2/bits/Makefile" ;;
14642 "include/asm-sh/Makefile") CONFIG_FILES="$CONFIG_FILES include/asm-sh/Makefile" ;;
14643 "include/asm-sh/bits/Makefile") CONFIG_FILES="$CONFIG_FILES include/asm-sh/bits/Makefile" ;;
14644 "include/asm-sim/Makefile") CONFIG_FILES="$CONFIG_FILES include/asm-sim/Makefile" ;;
14645 "include/asm-sim/bits/Makefile") CONFIG_FILES="$CONFIG_FILES include/asm-sim/bits/Makefile" ;;
14646 "include/native/Makefile") CONFIG_FILES="$CONFIG_FILES include/native/Makefile" ;;
14647 "include/nucleus/Makefile") CONFIG_FILES="$CONFIG_FILES include/nucleus/Makefile" ;;
14648 "include/posix/Makefile") CONFIG_FILES="$CONFIG_FILES include/posix/Makefile" ;;
14649 "include/posix/sys/Makefile") CONFIG_FILES="$CONFIG_FILES include/posix/sys/Makefile" ;;
14650 "include/psos+/Makefile") CONFIG_FILES="$CONFIG_FILES include/psos+/Makefile" ;;
14651 "include/rtdm/Makefile") CONFIG_FILES="$CONFIG_FILES include/rtdm/Makefile" ;;
14652 "include/analogy/Makefile") CONFIG_FILES="$CONFIG_FILES include/analogy/Makefile" ;;
14653 "include/uitron/Makefile") CONFIG_FILES="$CONFIG_FILES include/uitron/Makefile" ;;
14654 "include/vrtx/Makefile") CONFIG_FILES="$CONFIG_FILES include/vrtx/Makefile" ;;
14655 "include/vxworks/Makefile") CONFIG_FILES="$CONFIG_FILES include/vxworks/Makefile" ;;
14656 "src/skins/posix/libxenomai_posix.pc") CONFIG_FILES="$CONFIG_FILES src/skins/posix/libxenomai_posix.pc" ;;
14657 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14658 "doc/txt/Makefile") CONFIG_FILES="$CONFIG_FILES doc/txt/Makefile" ;;
14659 "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;;
14660 "doc/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Makefile" ;;
14661 "doc/doxygen/Doxyfile-common") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Doxyfile-common" ;;
14662 "doc/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Doxyfile" ;;
14663 "doc/doxygen/Doxyfile-native") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Doxyfile-native" ;;
14664 "doc/doxygen/Doxyfile-nucleus") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Doxyfile-nucleus" ;;
14665 "doc/doxygen/Doxyfile-posix") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Doxyfile-posix" ;;
14666 "doc/doxygen/Doxyfile-rtdm") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Doxyfile-rtdm" ;;
14667 "doc/asciidoc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/asciidoc/Makefile" ;;
14669 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14670 esac
14671 done
14674 # If the user did not use the arguments to specify the items to instantiate,
14675 # then the envvar interface is used. Set only those that are not.
14676 # We use the long form for the default assignment because of an extremely
14677 # bizarre bug on SunOS 4.1.3.
14678 if $ac_need_defaults; then
14679 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14680 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14681 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
14682 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14685 # Have a temporary directory for convenience. Make it in the build tree
14686 # simply because there is no reason against having it here, and in addition,
14687 # creating and moving files from /tmp can sometimes cause problems.
14688 # Hook for its removal unless debugging.
14689 # Note that there is a small window in which the directory will not be cleaned:
14690 # after its creation but before its name has been assigned to `$tmp'.
14691 $debug ||
14693 tmp= ac_tmp=
14694 trap 'exit_status=$?
14695 : "${ac_tmp:=$tmp}"
14696 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14698 trap 'as_fn_exit 1' 1 2 13 15
14700 # Create a (secure) tmp directory for tmp files.
14703 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14704 test -d "$tmp"
14705 } ||
14707 tmp=./conf$$-$RANDOM
14708 (umask 077 && mkdir "$tmp")
14709 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14710 ac_tmp=$tmp
14712 # Set up the scripts for CONFIG_FILES section.
14713 # No need to generate them if there are no CONFIG_FILES.
14714 # This happens for instance with `./config.status config.h'.
14715 if test -n "$CONFIG_FILES"; then
14718 ac_cr=`echo X | tr X '\015'`
14719 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14720 # But we know of no other shell where ac_cr would be empty at this
14721 # point, so we can use a bashism as a fallback.
14722 if test "x$ac_cr" = x; then
14723 eval ac_cr=\$\'\\r\'
14725 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14726 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14727 ac_cs_awk_cr='\\r'
14728 else
14729 ac_cs_awk_cr=$ac_cr
14732 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14733 _ACEOF
14737 echo "cat >conf$$subs.awk <<_ACEOF" &&
14738 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14739 echo "_ACEOF"
14740 } >conf$$subs.sh ||
14741 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14742 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14743 ac_delim='%!_!# '
14744 for ac_last_try in false false false false false :; do
14745 . ./conf$$subs.sh ||
14746 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14748 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14749 if test $ac_delim_n = $ac_delim_num; then
14750 break
14751 elif $ac_last_try; then
14752 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14753 else
14754 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14756 done
14757 rm -f conf$$subs.sh
14759 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14760 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14761 _ACEOF
14762 sed -n '
14764 s/^/S["/; s/!.*/"]=/
14767 s/^[^!]*!//
14768 :repl
14769 t repl
14770 s/'"$ac_delim"'$//
14771 t delim
14774 s/\(.\{148\}\)..*/\1/
14775 t more1
14776 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14779 b repl
14780 :more1
14781 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14784 s/.\{148\}//
14785 t nl
14786 :delim
14788 s/\(.\{148\}\)..*/\1/
14789 t more2
14790 s/["\\]/\\&/g; s/^/"/; s/$/"/
14793 :more2
14794 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14797 s/.\{148\}//
14798 t delim
14799 ' <conf$$subs.awk | sed '
14800 /^[^""]/{
14802 s/\n//
14804 ' >>$CONFIG_STATUS || ac_write_fail=1
14805 rm -f conf$$subs.awk
14806 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14807 _ACAWK
14808 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14809 for (key in S) S_is_set[key] = 1
14810 FS = "\a"
14814 line = $ 0
14815 nfields = split(line, field, "@")
14816 substed = 0
14817 len = length(field[1])
14818 for (i = 2; i < nfields; i++) {
14819 key = field[i]
14820 keylen = length(key)
14821 if (S_is_set[key]) {
14822 value = S[key]
14823 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14824 len += length(value) + length(field[++i])
14825 substed = 1
14826 } else
14827 len += 1 + keylen
14830 print line
14833 _ACAWK
14834 _ACEOF
14835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14836 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14837 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14838 else
14840 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14841 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14842 _ACEOF
14844 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14845 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14846 # trailing colons and then remove the whole line if VPATH becomes empty
14847 # (actually we leave an empty line to preserve line numbers).
14848 if test "x$srcdir" = x.; then
14849 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14851 s///
14852 s/^/:/
14853 s/[ ]*$/:/
14854 s/:\$(srcdir):/:/g
14855 s/:\${srcdir}:/:/g
14856 s/:@srcdir@:/:/g
14857 s/^:*//
14858 s/:*$//
14860 s/\(=[ ]*\).*/\1/
14862 s/\n//
14863 s/^[^=]*=[ ]*$//
14867 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14868 fi # test -n "$CONFIG_FILES"
14870 # Set up the scripts for CONFIG_HEADERS section.
14871 # No need to generate them if there are no CONFIG_HEADERS.
14872 # This happens for instance with `./config.status Makefile'.
14873 if test -n "$CONFIG_HEADERS"; then
14874 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14875 BEGIN {
14876 _ACEOF
14878 # Transform confdefs.h into an awk script `defines.awk', embedded as
14879 # here-document in config.status, that substitutes the proper values into
14880 # config.h.in to produce config.h.
14882 # Create a delimiter string that does not exist in confdefs.h, to ease
14883 # handling of long lines.
14884 ac_delim='%!_!# '
14885 for ac_last_try in false false :; do
14886 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14887 if test -z "$ac_tt"; then
14888 break
14889 elif $ac_last_try; then
14890 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14891 else
14892 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14894 done
14896 # For the awk script, D is an array of macro values keyed by name,
14897 # likewise P contains macro parameters if any. Preserve backslash
14898 # newline sequences.
14900 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14901 sed -n '
14902 s/.\{148\}/&'"$ac_delim"'/g
14903 t rset
14904 :rset
14905 s/^[ ]*#[ ]*define[ ][ ]*/ /
14906 t def
14908 :def
14909 s/\\$//
14910 t bsnl
14911 s/["\\]/\\&/g
14912 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14913 D["\1"]=" \3"/p
14914 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14916 :bsnl
14917 s/["\\]/\\&/g
14918 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14919 D["\1"]=" \3\\\\\\n"\\/p
14920 t cont
14921 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14922 t cont
14924 :cont
14926 s/.\{148\}/&'"$ac_delim"'/g
14927 t clear
14928 :clear
14929 s/\\$//
14930 t bsnlc
14931 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14933 :bsnlc
14934 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14935 b cont
14936 ' <confdefs.h | sed '
14937 s/'"$ac_delim"'/"\\\
14938 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14940 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14941 for (key in D) D_is_set[key] = 1
14942 FS = "\a"
14944 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14945 line = \$ 0
14946 split(line, arg, " ")
14947 if (arg[1] == "#") {
14948 defundef = arg[2]
14949 mac1 = arg[3]
14950 } else {
14951 defundef = substr(arg[1], 2)
14952 mac1 = arg[2]
14954 split(mac1, mac2, "(") #)
14955 macro = mac2[1]
14956 prefix = substr(line, 1, index(line, defundef) - 1)
14957 if (D_is_set[macro]) {
14958 # Preserve the white space surrounding the "#".
14959 print prefix "define", macro P[macro] D[macro]
14960 next
14961 } else {
14962 # Replace #undef with comments. This is necessary, for example,
14963 # in the case of _POSIX_SOURCE, which is predefined and required
14964 # on some systems where configure will not decide to define it.
14965 if (defundef == "undef") {
14966 print "/*", prefix defundef, macro, "*/"
14967 next
14971 { print }
14972 _ACAWK
14973 _ACEOF
14974 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14975 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14976 fi # test -n "$CONFIG_HEADERS"
14979 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
14980 shift
14981 for ac_tag
14983 case $ac_tag in
14984 :[FHLC]) ac_mode=$ac_tag; continue;;
14985 esac
14986 case $ac_mode$ac_tag in
14987 :[FHL]*:*);;
14988 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14989 :[FH]-) ac_tag=-:-;;
14990 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14991 esac
14992 ac_save_IFS=$IFS
14993 IFS=:
14994 set x $ac_tag
14995 IFS=$ac_save_IFS
14996 shift
14997 ac_file=$1
14998 shift
15000 case $ac_mode in
15001 :L) ac_source=$1;;
15002 :[FH])
15003 ac_file_inputs=
15004 for ac_f
15006 case $ac_f in
15007 -) ac_f="$ac_tmp/stdin";;
15008 *) # Look for the file first in the build tree, then in the source tree
15009 # (if the path is not absolute). The absolute path cannot be DOS-style,
15010 # because $ac_f cannot contain `:'.
15011 test -f "$ac_f" ||
15012 case $ac_f in
15013 [\\/$]*) false;;
15014 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15015 esac ||
15016 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15017 esac
15018 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15019 as_fn_append ac_file_inputs " '$ac_f'"
15020 done
15022 # Let's still pretend it is `configure' which instantiates (i.e., don't
15023 # use $as_me), people would be surprised to read:
15024 # /* config.h. Generated by config.status. */
15025 configure_input='Generated from '`
15026 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15027 `' by configure.'
15028 if test x"$ac_file" != x-; then
15029 configure_input="$ac_file. $configure_input"
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15031 $as_echo "$as_me: creating $ac_file" >&6;}
15033 # Neutralize special characters interpreted by sed in replacement strings.
15034 case $configure_input in #(
15035 *\&* | *\|* | *\\* )
15036 ac_sed_conf_input=`$as_echo "$configure_input" |
15037 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15038 *) ac_sed_conf_input=$configure_input;;
15039 esac
15041 case $ac_tag in
15042 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15043 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15044 esac
15046 esac
15048 ac_dir=`$as_dirname -- "$ac_file" ||
15049 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15050 X"$ac_file" : 'X\(//\)[^/]' \| \
15051 X"$ac_file" : 'X\(//\)$' \| \
15052 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15053 $as_echo X"$ac_file" |
15054 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15055 s//\1/
15058 /^X\(\/\/\)[^/].*/{
15059 s//\1/
15062 /^X\(\/\/\)$/{
15063 s//\1/
15066 /^X\(\/\).*/{
15067 s//\1/
15070 s/.*/./; q'`
15071 as_dir="$ac_dir"; as_fn_mkdir_p
15072 ac_builddir=.
15074 case "$ac_dir" in
15075 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15077 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15078 # A ".." for each directory in $ac_dir_suffix.
15079 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15080 case $ac_top_builddir_sub in
15081 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15082 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15083 esac ;;
15084 esac
15085 ac_abs_top_builddir=$ac_pwd
15086 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15087 # for backward compatibility:
15088 ac_top_builddir=$ac_top_build_prefix
15090 case $srcdir in
15091 .) # We are building in place.
15092 ac_srcdir=.
15093 ac_top_srcdir=$ac_top_builddir_sub
15094 ac_abs_top_srcdir=$ac_pwd ;;
15095 [\\/]* | ?:[\\/]* ) # Absolute name.
15096 ac_srcdir=$srcdir$ac_dir_suffix;
15097 ac_top_srcdir=$srcdir
15098 ac_abs_top_srcdir=$srcdir ;;
15099 *) # Relative name.
15100 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15101 ac_top_srcdir=$ac_top_build_prefix$srcdir
15102 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15103 esac
15104 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15107 case $ac_mode in
15110 # CONFIG_FILE
15113 case $INSTALL in
15114 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15115 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15116 esac
15117 ac_MKDIR_P=$MKDIR_P
15118 case $MKDIR_P in
15119 [\\/$]* | ?:[\\/]* ) ;;
15120 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15121 esac
15122 _ACEOF
15124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15125 # If the template does not know about datarootdir, expand it.
15126 # FIXME: This hack should be removed a few years after 2.60.
15127 ac_datarootdir_hack=; ac_datarootdir_seen=
15128 ac_sed_dataroot='
15129 /datarootdir/ {
15133 /@datadir@/p
15134 /@docdir@/p
15135 /@infodir@/p
15136 /@localedir@/p
15137 /@mandir@/p'
15138 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15139 *datarootdir*) ac_datarootdir_seen=yes;;
15140 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15142 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15143 _ACEOF
15144 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15145 ac_datarootdir_hack='
15146 s&@datadir@&$datadir&g
15147 s&@docdir@&$docdir&g
15148 s&@infodir@&$infodir&g
15149 s&@localedir@&$localedir&g
15150 s&@mandir@&$mandir&g
15151 s&\\\${datarootdir}&$datarootdir&g' ;;
15152 esac
15153 _ACEOF
15155 # Neutralize VPATH when `$srcdir' = `.'.
15156 # Shell code in configure.ac might set extrasub.
15157 # FIXME: do we really want to maintain this feature?
15158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15159 ac_sed_extra="$ac_vpsub
15160 $extrasub
15161 _ACEOF
15162 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15164 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15165 s|@configure_input@|$ac_sed_conf_input|;t t
15166 s&@top_builddir@&$ac_top_builddir_sub&;t t
15167 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15168 s&@srcdir@&$ac_srcdir&;t t
15169 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15170 s&@top_srcdir@&$ac_top_srcdir&;t t
15171 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15172 s&@builddir@&$ac_builddir&;t t
15173 s&@abs_builddir@&$ac_abs_builddir&;t t
15174 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15175 s&@INSTALL@&$ac_INSTALL&;t t
15176 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15177 $ac_datarootdir_hack
15179 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15180 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15182 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15183 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15184 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15185 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15187 which seems to be undefined. Please make sure it is defined" >&5
15188 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15189 which seems to be undefined. Please make sure it is defined" >&2;}
15191 rm -f "$ac_tmp/stdin"
15192 case $ac_file in
15193 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15194 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15195 esac \
15196 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15200 # CONFIG_HEADER
15202 if test x"$ac_file" != x-; then
15204 $as_echo "/* $configure_input */" \
15205 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15206 } >"$ac_tmp/config.h" \
15207 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15208 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15210 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15211 else
15212 rm -f "$ac_file"
15213 mv "$ac_tmp/config.h" "$ac_file" \
15214 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15216 else
15217 $as_echo "/* $configure_input */" \
15218 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15219 || as_fn_error $? "could not create -" "$LINENO" 5
15221 # Compute "$ac_file"'s index in $config_headers.
15222 _am_arg="$ac_file"
15223 _am_stamp_count=1
15224 for _am_header in $config_headers :; do
15225 case $_am_header in
15226 $_am_arg | $_am_arg:* )
15227 break ;;
15229 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15230 esac
15231 done
15232 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15233 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15234 X"$_am_arg" : 'X\(//\)[^/]' \| \
15235 X"$_am_arg" : 'X\(//\)$' \| \
15236 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15237 $as_echo X"$_am_arg" |
15238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15239 s//\1/
15242 /^X\(\/\/\)[^/].*/{
15243 s//\1/
15246 /^X\(\/\/\)$/{
15247 s//\1/
15250 /^X\(\/\).*/{
15251 s//\1/
15254 s/.*/./; q'`/stamp-h$_am_stamp_count
15258 # CONFIG_LINK
15261 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
15263 else
15264 # Prefer the file from the source tree if names are identical.
15265 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
15266 ac_source=$srcdir/$ac_source
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
15270 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
15272 if test ! -r "$ac_source"; then
15273 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
15275 rm -f "$ac_file"
15277 # Try a relative symlink, then a hard link, then a copy.
15278 case $ac_source in
15279 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
15280 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
15281 esac
15282 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
15283 ln "$ac_source" "$ac_file" 2>/dev/null ||
15284 cp -p "$ac_source" "$ac_file" ||
15285 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
15288 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15289 $as_echo "$as_me: executing $ac_file commands" >&6;}
15291 esac
15294 case $ac_file$ac_mode in
15295 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15296 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15297 # are listed without --file. Let's play safe and only enable the eval
15298 # if we detect the quoting.
15299 case $CONFIG_FILES in
15300 *\'*) eval set x "$CONFIG_FILES" ;;
15301 *) set x $CONFIG_FILES ;;
15302 esac
15303 shift
15304 for mf
15306 # Strip MF so we end up with the name of the file.
15307 mf=`echo "$mf" | sed -e 's/:.*$//'`
15308 # Check whether this is an Automake generated Makefile or not.
15309 # We used to match only the files named `Makefile.in', but
15310 # some people rename them; so instead we look at the file content.
15311 # Grep'ing the first line is not enough: some people post-process
15312 # each Makefile.in and add a new line on top of each file to say so.
15313 # Grep'ing the whole file is not good either: AIX grep has a line
15314 # limit of 2048, but all sed's we know have understand at least 4000.
15315 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15316 dirpart=`$as_dirname -- "$mf" ||
15317 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15318 X"$mf" : 'X\(//\)[^/]' \| \
15319 X"$mf" : 'X\(//\)$' \| \
15320 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15321 $as_echo X"$mf" |
15322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15323 s//\1/
15326 /^X\(\/\/\)[^/].*/{
15327 s//\1/
15330 /^X\(\/\/\)$/{
15331 s//\1/
15334 /^X\(\/\).*/{
15335 s//\1/
15338 s/.*/./; q'`
15339 else
15340 continue
15342 # Extract the definition of DEPDIR, am__include, and am__quote
15343 # from the Makefile without running `make'.
15344 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15345 test -z "$DEPDIR" && continue
15346 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15347 test -z "am__include" && continue
15348 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15349 # When using ansi2knr, U may be empty or an underscore; expand it
15350 U=`sed -n 's/^U = //p' < "$mf"`
15351 # Find all dependency output files, they are included files with
15352 # $(DEPDIR) in their names. We invoke sed twice because it is the
15353 # simplest approach to changing $(DEPDIR) to its actual value in the
15354 # expansion.
15355 for file in `sed -n "
15356 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15357 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15358 # Make sure the directory exists.
15359 test -f "$dirpart/$file" && continue
15360 fdir=`$as_dirname -- "$file" ||
15361 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15362 X"$file" : 'X\(//\)[^/]' \| \
15363 X"$file" : 'X\(//\)$' \| \
15364 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15365 $as_echo X"$file" |
15366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15367 s//\1/
15370 /^X\(\/\/\)[^/].*/{
15371 s//\1/
15374 /^X\(\/\/\)$/{
15375 s//\1/
15378 /^X\(\/\).*/{
15379 s//\1/
15382 s/.*/./; q'`
15383 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15384 # echo "creating $dirpart/$file"
15385 echo '# dummy' > "$dirpart/$file"
15386 done
15387 done
15390 "libtool":C)
15392 # See if we are running on zsh, and set the options which allow our
15393 # commands through without removal of \ escapes.
15394 if test -n "${ZSH_VERSION+set}" ; then
15395 setopt NO_GLOB_SUBST
15398 cfgfile="${ofile}T"
15399 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15400 $RM "$cfgfile"
15402 cat <<_LT_EOF >> "$cfgfile"
15403 #! $SHELL
15405 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15406 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15407 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15408 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15410 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15411 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15412 # Foundation, Inc.
15413 # Written by Gordon Matzigkeit, 1996
15415 # This file is part of GNU Libtool.
15417 # GNU Libtool is free software; you can redistribute it and/or
15418 # modify it under the terms of the GNU General Public License as
15419 # published by the Free Software Foundation; either version 2 of
15420 # the License, or (at your option) any later version.
15422 # As a special exception to the GNU General Public License,
15423 # if you distribute this file as part of a program or library that
15424 # is built using GNU Libtool, you may include this file under the
15425 # same distribution terms that you use for the rest of that program.
15427 # GNU Libtool is distributed in the hope that it will be useful,
15428 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15429 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15430 # GNU General Public License for more details.
15432 # You should have received a copy of the GNU General Public License
15433 # along with GNU Libtool; see the file COPYING. If not, a copy
15434 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15435 # obtained by writing to the Free Software Foundation, Inc.,
15436 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15439 # The names of the tagged configurations supported by this script.
15440 available_tags=""
15442 # ### BEGIN LIBTOOL CONFIG
15444 # Whether or not to build shared libraries.
15445 build_libtool_libs=$enable_shared
15447 # Which release of libtool.m4 was used?
15448 macro_version=$macro_version
15449 macro_revision=$macro_revision
15451 # Whether or not to build static libraries.
15452 build_old_libs=$enable_static
15454 # What type of objects to build.
15455 pic_mode=$pic_mode
15457 # Whether or not to optimize for fast installation.
15458 fast_install=$enable_fast_install
15460 # Shell to use when invoking shell scripts.
15461 SHELL=$lt_SHELL
15463 # An echo program that protects backslashes.
15464 ECHO=$lt_ECHO
15466 # The PATH separator for the build system.
15467 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15469 # The host system.
15470 host_alias=$host_alias
15471 host=$host
15472 host_os=$host_os
15474 # The build system.
15475 build_alias=$build_alias
15476 build=$build
15477 build_os=$build_os
15479 # A sed program that does not truncate output.
15480 SED=$lt_SED
15482 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15483 Xsed="\$SED -e 1s/^X//"
15485 # A grep program that handles long lines.
15486 GREP=$lt_GREP
15488 # An ERE matcher.
15489 EGREP=$lt_EGREP
15491 # A literal string matcher.
15492 FGREP=$lt_FGREP
15494 # A BSD- or MS-compatible name lister.
15495 NM=$lt_NM
15497 # Whether we need soft or hard links.
15498 LN_S=$lt_LN_S
15500 # What is the maximum length of a command?
15501 max_cmd_len=$max_cmd_len
15503 # Object file suffix (normally "o").
15504 objext=$ac_objext
15506 # Executable file suffix (normally "").
15507 exeext=$exeext
15509 # whether the shell understands "unset".
15510 lt_unset=$lt_unset
15512 # turn spaces into newlines.
15513 SP2NL=$lt_lt_SP2NL
15515 # turn newlines into spaces.
15516 NL2SP=$lt_lt_NL2SP
15518 # convert \$build file names to \$host format.
15519 to_host_file_cmd=$lt_cv_to_host_file_cmd
15521 # convert \$build files to toolchain format.
15522 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15524 # An object symbol dumper.
15525 OBJDUMP=$lt_OBJDUMP
15527 # Method to check whether dependent libraries are shared objects.
15528 deplibs_check_method=$lt_deplibs_check_method
15530 # Command to use when deplibs_check_method = "file_magic".
15531 file_magic_cmd=$lt_file_magic_cmd
15533 # How to find potential files when deplibs_check_method = "file_magic".
15534 file_magic_glob=$lt_file_magic_glob
15536 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15537 want_nocaseglob=$lt_want_nocaseglob
15539 # DLL creation program.
15540 DLLTOOL=$lt_DLLTOOL
15542 # Command to associate shared and link libraries.
15543 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15545 # The archiver.
15546 AR=$lt_AR
15548 # Flags to create an archive.
15549 AR_FLAGS=$lt_AR_FLAGS
15551 # How to feed a file listing to the archiver.
15552 archiver_list_spec=$lt_archiver_list_spec
15554 # A symbol stripping program.
15555 STRIP=$lt_STRIP
15557 # Commands used to install an old-style archive.
15558 RANLIB=$lt_RANLIB
15559 old_postinstall_cmds=$lt_old_postinstall_cmds
15560 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15562 # Whether to use a lock for old archive extraction.
15563 lock_old_archive_extraction=$lock_old_archive_extraction
15565 # A C compiler.
15566 LTCC=$lt_CC
15568 # LTCC compiler flags.
15569 LTCFLAGS=$lt_CFLAGS
15571 # Take the output of nm and produce a listing of raw symbols and C names.
15572 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15574 # Transform the output of nm in a proper C declaration.
15575 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15577 # Transform the output of nm in a C name address pair.
15578 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15580 # Transform the output of nm in a C name address pair when lib prefix is needed.
15581 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15583 # Specify filename containing input files for \$NM.
15584 nm_file_list_spec=$lt_nm_file_list_spec
15586 # The root where to search for dependent libraries,and in which our libraries should be installed.
15587 lt_sysroot=$lt_sysroot
15589 # The name of the directory that contains temporary libtool files.
15590 objdir=$objdir
15592 # Used to examine libraries when file_magic_cmd begins with "file".
15593 MAGIC_CMD=$MAGIC_CMD
15595 # Must we lock files when doing compilation?
15596 need_locks=$lt_need_locks
15598 # Manifest tool.
15599 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15601 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15602 DSYMUTIL=$lt_DSYMUTIL
15604 # Tool to change global to local symbols on Mac OS X.
15605 NMEDIT=$lt_NMEDIT
15607 # Tool to manipulate fat objects and archives on Mac OS X.
15608 LIPO=$lt_LIPO
15610 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15611 OTOOL=$lt_OTOOL
15613 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15614 OTOOL64=$lt_OTOOL64
15616 # Old archive suffix (normally "a").
15617 libext=$libext
15619 # Shared library suffix (normally ".so").
15620 shrext_cmds=$lt_shrext_cmds
15622 # The commands to extract the exported symbol list from a shared archive.
15623 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15625 # Variables whose values should be saved in libtool wrapper scripts and
15626 # restored at link time.
15627 variables_saved_for_relink=$lt_variables_saved_for_relink
15629 # Do we need the "lib" prefix for modules?
15630 need_lib_prefix=$need_lib_prefix
15632 # Do we need a version for libraries?
15633 need_version=$need_version
15635 # Library versioning type.
15636 version_type=$version_type
15638 # Shared library runtime path variable.
15639 runpath_var=$runpath_var
15641 # Shared library path variable.
15642 shlibpath_var=$shlibpath_var
15644 # Is shlibpath searched before the hard-coded library search path?
15645 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15647 # Format of library name prefix.
15648 libname_spec=$lt_libname_spec
15650 # List of archive names. First name is the real one, the rest are links.
15651 # The last name is the one that the linker finds with -lNAME
15652 library_names_spec=$lt_library_names_spec
15654 # The coded name of the library, if different from the real name.
15655 soname_spec=$lt_soname_spec
15657 # Permission mode override for installation of shared libraries.
15658 install_override_mode=$lt_install_override_mode
15660 # Command to use after installation of a shared archive.
15661 postinstall_cmds=$lt_postinstall_cmds
15663 # Command to use after uninstallation of a shared archive.
15664 postuninstall_cmds=$lt_postuninstall_cmds
15666 # Commands used to finish a libtool library installation in a directory.
15667 finish_cmds=$lt_finish_cmds
15669 # As "finish_cmds", except a single script fragment to be evaled but
15670 # not shown.
15671 finish_eval=$lt_finish_eval
15673 # Whether we should hardcode library paths into libraries.
15674 hardcode_into_libs=$hardcode_into_libs
15676 # Compile-time system search path for libraries.
15677 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15679 # Run-time system search path for libraries.
15680 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15682 # Whether dlopen is supported.
15683 dlopen_support=$enable_dlopen
15685 # Whether dlopen of programs is supported.
15686 dlopen_self=$enable_dlopen_self
15688 # Whether dlopen of statically linked programs is supported.
15689 dlopen_self_static=$enable_dlopen_self_static
15691 # Commands to strip libraries.
15692 old_striplib=$lt_old_striplib
15693 striplib=$lt_striplib
15696 # The linker used to build libraries.
15697 LD=$lt_LD
15699 # How to create reloadable object files.
15700 reload_flag=$lt_reload_flag
15701 reload_cmds=$lt_reload_cmds
15703 # Commands used to build an old-style archive.
15704 old_archive_cmds=$lt_old_archive_cmds
15706 # A language specific compiler.
15707 CC=$lt_compiler
15709 # Is the compiler the GNU compiler?
15710 with_gcc=$GCC
15712 # Compiler flag to turn off builtin functions.
15713 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15715 # Additional compiler flags for building library objects.
15716 pic_flag=$lt_lt_prog_compiler_pic
15718 # How to pass a linker flag through the compiler.
15719 wl=$lt_lt_prog_compiler_wl
15721 # Compiler flag to prevent dynamic linking.
15722 link_static_flag=$lt_lt_prog_compiler_static
15724 # Does compiler simultaneously support -c and -o options?
15725 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15727 # Whether or not to add -lc for building shared libraries.
15728 build_libtool_need_lc=$archive_cmds_need_lc
15730 # Whether or not to disallow shared libs when runtime libs are static.
15731 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15733 # Compiler flag to allow reflexive dlopens.
15734 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15736 # Compiler flag to generate shared objects directly from archives.
15737 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15739 # Whether the compiler copes with passing no objects directly.
15740 compiler_needs_object=$lt_compiler_needs_object
15742 # Create an old-style archive from a shared archive.
15743 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15745 # Create a temporary old-style archive to link instead of a shared archive.
15746 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15748 # Commands used to build a shared archive.
15749 archive_cmds=$lt_archive_cmds
15750 archive_expsym_cmds=$lt_archive_expsym_cmds
15752 # Commands used to build a loadable module if different from building
15753 # a shared archive.
15754 module_cmds=$lt_module_cmds
15755 module_expsym_cmds=$lt_module_expsym_cmds
15757 # Whether we are building with GNU ld or not.
15758 with_gnu_ld=$lt_with_gnu_ld
15760 # Flag that allows shared libraries with undefined symbols to be built.
15761 allow_undefined_flag=$lt_allow_undefined_flag
15763 # Flag that enforces no undefined symbols.
15764 no_undefined_flag=$lt_no_undefined_flag
15766 # Flag to hardcode \$libdir into a binary during linking.
15767 # This must work even if \$libdir does not exist
15768 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15770 # Whether we need a single "-rpath" flag with a separated argument.
15771 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15773 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15774 # DIR into the resulting binary.
15775 hardcode_direct=$hardcode_direct
15777 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15778 # DIR into the resulting binary and the resulting library dependency is
15779 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15780 # library is relocated.
15781 hardcode_direct_absolute=$hardcode_direct_absolute
15783 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15784 # into the resulting binary.
15785 hardcode_minus_L=$hardcode_minus_L
15787 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15788 # into the resulting binary.
15789 hardcode_shlibpath_var=$hardcode_shlibpath_var
15791 # Set to "yes" if building a shared library automatically hardcodes DIR
15792 # into the library and all subsequent libraries and executables linked
15793 # against it.
15794 hardcode_automatic=$hardcode_automatic
15796 # Set to yes if linker adds runtime paths of dependent libraries
15797 # to runtime path list.
15798 inherit_rpath=$inherit_rpath
15800 # Whether libtool must link a program against all its dependency libraries.
15801 link_all_deplibs=$link_all_deplibs
15803 # Set to "yes" if exported symbols are required.
15804 always_export_symbols=$always_export_symbols
15806 # The commands to list exported symbols.
15807 export_symbols_cmds=$lt_export_symbols_cmds
15809 # Symbols that should not be listed in the preloaded symbols.
15810 exclude_expsyms=$lt_exclude_expsyms
15812 # Symbols that must always be exported.
15813 include_expsyms=$lt_include_expsyms
15815 # Commands necessary for linking programs (against libraries) with templates.
15816 prelink_cmds=$lt_prelink_cmds
15818 # Commands necessary for finishing linking programs.
15819 postlink_cmds=$lt_postlink_cmds
15821 # Specify filename containing input files.
15822 file_list_spec=$lt_file_list_spec
15824 # How to hardcode a shared library path into an executable.
15825 hardcode_action=$hardcode_action
15827 # ### END LIBTOOL CONFIG
15829 _LT_EOF
15831 case $host_os in
15832 aix3*)
15833 cat <<\_LT_EOF >> "$cfgfile"
15834 # AIX sometimes has problems with the GCC collect2 program. For some
15835 # reason, if we set the COLLECT_NAMES environment variable, the problems
15836 # vanish in a puff of smoke.
15837 if test "X${COLLECT_NAMES+set}" != Xset; then
15838 COLLECT_NAMES=
15839 export COLLECT_NAMES
15841 _LT_EOF
15843 esac
15846 ltmain="$ac_aux_dir/ltmain.sh"
15849 # We use sed instead of cat because bash on DJGPP gets confused if
15850 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15851 # text mode, it properly converts lines to CR/LF. This bash problem
15852 # is reportedly fixed, but why not run on old versions too?
15853 sed '$q' "$ltmain" >> "$cfgfile" \
15854 || (rm -f "$cfgfile"; exit 1)
15856 if test x"$xsi_shell" = xyes; then
15857 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15858 func_dirname ()\
15860 \ case ${1} in\
15861 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15862 \ * ) func_dirname_result="${3}" ;;\
15863 \ esac\
15864 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15865 && mv -f "$cfgfile.tmp" "$cfgfile" \
15866 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15867 test 0 -eq $? || _lt_function_replace_fail=:
15870 sed -e '/^func_basename ()$/,/^} # func_basename /c\
15871 func_basename ()\
15873 \ func_basename_result="${1##*/}"\
15874 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15875 && mv -f "$cfgfile.tmp" "$cfgfile" \
15876 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15877 test 0 -eq $? || _lt_function_replace_fail=:
15880 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15881 func_dirname_and_basename ()\
15883 \ case ${1} in\
15884 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15885 \ * ) func_dirname_result="${3}" ;;\
15886 \ esac\
15887 \ func_basename_result="${1##*/}"\
15888 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15889 && mv -f "$cfgfile.tmp" "$cfgfile" \
15890 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15891 test 0 -eq $? || _lt_function_replace_fail=:
15894 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15895 func_stripname ()\
15897 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15898 \ # positional parameters, so assign one to ordinary parameter first.\
15899 \ func_stripname_result=${3}\
15900 \ func_stripname_result=${func_stripname_result#"${1}"}\
15901 \ func_stripname_result=${func_stripname_result%"${2}"}\
15902 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15903 && mv -f "$cfgfile.tmp" "$cfgfile" \
15904 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15905 test 0 -eq $? || _lt_function_replace_fail=:
15908 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15909 func_split_long_opt ()\
15911 \ func_split_long_opt_name=${1%%=*}\
15912 \ func_split_long_opt_arg=${1#*=}\
15913 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15914 && mv -f "$cfgfile.tmp" "$cfgfile" \
15915 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15916 test 0 -eq $? || _lt_function_replace_fail=:
15919 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15920 func_split_short_opt ()\
15922 \ func_split_short_opt_arg=${1#??}\
15923 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15924 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15925 && mv -f "$cfgfile.tmp" "$cfgfile" \
15926 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15927 test 0 -eq $? || _lt_function_replace_fail=:
15930 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15931 func_lo2o ()\
15933 \ case ${1} in\
15934 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15935 \ *) func_lo2o_result=${1} ;;\
15936 \ esac\
15937 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15938 && mv -f "$cfgfile.tmp" "$cfgfile" \
15939 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15940 test 0 -eq $? || _lt_function_replace_fail=:
15943 sed -e '/^func_xform ()$/,/^} # func_xform /c\
15944 func_xform ()\
15946 func_xform_result=${1%.*}.lo\
15947 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15948 && mv -f "$cfgfile.tmp" "$cfgfile" \
15949 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15950 test 0 -eq $? || _lt_function_replace_fail=:
15953 sed -e '/^func_arith ()$/,/^} # func_arith /c\
15954 func_arith ()\
15956 func_arith_result=$(( $* ))\
15957 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15958 && mv -f "$cfgfile.tmp" "$cfgfile" \
15959 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15960 test 0 -eq $? || _lt_function_replace_fail=:
15963 sed -e '/^func_len ()$/,/^} # func_len /c\
15964 func_len ()\
15966 func_len_result=${#1}\
15967 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15968 && mv -f "$cfgfile.tmp" "$cfgfile" \
15969 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15970 test 0 -eq $? || _lt_function_replace_fail=:
15974 if test x"$lt_shell_append" = xyes; then
15975 sed -e '/^func_append ()$/,/^} # func_append /c\
15976 func_append ()\
15978 eval "${1}+=\\${2}"\
15979 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15980 && mv -f "$cfgfile.tmp" "$cfgfile" \
15981 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15982 test 0 -eq $? || _lt_function_replace_fail=:
15985 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15986 func_append_quoted ()\
15988 \ func_quote_for_eval "${2}"\
15989 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15990 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15991 && mv -f "$cfgfile.tmp" "$cfgfile" \
15992 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15993 test 0 -eq $? || _lt_function_replace_fail=:
15996 # Save a `func_append' function call where possible by direct use of '+='
15997 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15998 && mv -f "$cfgfile.tmp" "$cfgfile" \
15999 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16000 test 0 -eq $? || _lt_function_replace_fail=:
16001 else
16002 # Save a `func_append' function call even when '+=' is not available
16003 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16004 && mv -f "$cfgfile.tmp" "$cfgfile" \
16005 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16006 test 0 -eq $? || _lt_function_replace_fail=:
16009 if test x"$_lt_function_replace_fail" = x":"; then
16010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16011 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16015 mv -f "$cfgfile" "$ofile" ||
16016 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16017 chmod +x "$ofile"
16021 esac
16022 done # for ac_tag
16025 as_fn_exit 0
16026 _ACEOF
16027 ac_clean_files=$ac_clean_files_save
16029 test $ac_write_fail = 0 ||
16030 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16033 # configure is writing to config.log, and then calls config.status.
16034 # config.status does its own redirection, appending to config.log.
16035 # Unfortunately, on DOS this fails, as config.log is still kept open
16036 # by configure, so config.status won't be able to write to it; its
16037 # output is simply discarded. So we exec the FD to /dev/null,
16038 # effectively closing config.log, so it can be properly (re)opened and
16039 # appended to by config.status. When coming back to configure, we
16040 # need to make the FD available again.
16041 if test "$no_create" != yes; then
16042 ac_cs_success=:
16043 ac_config_status_args=
16044 test "$silent" = yes &&
16045 ac_config_status_args="$ac_config_status_args --quiet"
16046 exec 5>/dev/null
16047 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16048 exec 5>>config.log
16049 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16050 # would make configure fail if this is the last instruction.
16051 $ac_cs_success || as_fn_exit 1
16053 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16055 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}