testsuite: add options separator to xeno-regression-test
[xenomai-head.git] / configure
blob2cce73c3c08dbab4d17ab1cd1130a2cdc3e53e4b
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for Xenomai 2.5.94.
5 # Report bugs to <xenomai-help@gna.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
34 esac
38 as_nl='
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
93 # Find who we are. Look in the path if we contain no directory separator.
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146 else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
152 esac
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 else
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179 else
180 as_have_required=no
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184 else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
204 done;;
205 esac
206 as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: xenomai-help@gna.org about your system, including any
235 $0: error possibly output before this message. Then install
236 $0: a modern shell, or manually run the script under such a
237 $0: shell if you do have one."
239 exit 1
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
257 { eval $1=; unset $1;}
259 as_unset=as_fn_unset
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
266 return $1
267 } # as_fn_set_status
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
274 set +e
275 as_fn_set_status $1
276 exit $1
277 } # as_fn_exit
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
310 /^X\(\/\/\)$/{
311 s//\1/
314 /^X\(\/\).*/{
315 s//\1/
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
335 eval $1+=\$2
337 else
338 as_fn_append ()
340 eval $1=\$$1\$2
342 fi # as_fn_append
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
352 as_val=$(( $* ))
354 else
355 as_fn_arith ()
357 as_val=`expr "$@" || test $? -eq 1`
359 fi # as_fn_arith
362 # as_fn_error STATUS ERROR [LINENO LOG_FD]
363 # ----------------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with STATUS, using 1 if that was 0.
367 as_fn_error ()
369 as_status=$1; test $as_status -eq 0 && as_status=1
370 if test "$4"; then
371 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
374 $as_echo "$as_me: error: $2" >&2
375 as_fn_exit $as_status
376 } # as_fn_error
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381 else
382 as_expr=false
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387 else
388 as_basename=false
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393 else
394 as_dirname=false
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
403 s//\1/
406 /^X\/\(\/\/\)$/{
407 s//\1/
410 /^X\/\(\/\).*/{
411 s//\1/
414 s/.*/./; q'`
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
429 sed -n '
431 /[$]LINENO/=
432 ' <$as_myself |
433 sed '
434 s/[$]LINENO.*/&-/
435 t lineno
437 :lineno
439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 t loop
442 s/-\n.*//
443 ' >$as_me.lineno &&
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
451 # Exit status is that of the last command.
452 exit
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
463 esac;;
465 ECHO_N='-n';;
466 esac
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471 else
472 rm -f conf$$.dir
473 mkdir conf$$.dir 2>/dev/null
475 if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 as_ln_s='ln -s'
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 as_ln_s='cp -p'
484 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln
486 else
487 as_ln_s='cp -p'
489 else
490 as_ln_s='cp -p'
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
497 else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
502 if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
504 else
505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
513 test -d "$1/.";
514 else
515 case $1 in #(
516 -*)set "./$1";;
517 esac;
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
523 as_executable_p=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533 # Check that we are running under the correct shell.
534 SHELL=${CONFIG_SHELL-/bin/sh}
536 case X$lt_ECHO in
537 X*--fallback-echo)
538 # Remove one level of quotation (which was required for Make).
539 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
541 esac
543 ECHO=${lt_ECHO-echo}
544 if test "X$1" = X--no-reexec; then
545 # Discard the --no-reexec flag, and continue.
546 shift
547 elif test "X$1" = X--fallback-echo; then
548 # Avoid inline document here, it may be left over
550 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551 # Yippee, $ECHO works!
553 else
554 # Restart under the correct shell.
555 exec $SHELL "$0" --no-reexec ${1+"$@"}
558 if test "X$1" = X--fallback-echo; then
559 # used as fallback echo
560 shift
561 cat <<_LT_EOF
563 _LT_EOF
564 exit 0
567 # The HP-UX ksh and POSIX shell print the target directory to stdout
568 # if CDPATH is set.
569 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
571 if test -z "$lt_ECHO"; then
572 if test "X${echo_test_string+set}" != Xset; then
573 # find a string as large as possible, as long as the shell can cope with it
574 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578 then
579 break
581 done
584 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586 test "X$echo_testing_string" = "X$echo_test_string"; then
588 else
589 # The Solaris, AIX, and Digital Unix default echo programs unquote
590 # backslashes. This makes it impossible to quote backslashes using
591 # echo "$something" | sed 's/\\/\\\\/g'
593 # So, first we look for a working echo in the user's PATH.
595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596 for dir in $PATH /usr/ucb; do
597 IFS="$lt_save_ifs"
598 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601 test "X$echo_testing_string" = "X$echo_test_string"; then
602 ECHO="$dir/echo"
603 break
605 done
606 IFS="$lt_save_ifs"
608 if test "X$ECHO" = Xecho; then
609 # We didn't find a better echo, so look for alternatives.
610 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612 test "X$echo_testing_string" = "X$echo_test_string"; then
613 # This shell has a builtin print -r that does the trick.
614 ECHO='print -r'
615 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616 test "X$CONFIG_SHELL" != X/bin/ksh; then
617 # If we have ksh, try running configure again with it.
618 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619 export ORIGINAL_CONFIG_SHELL
620 CONFIG_SHELL=/bin/ksh
621 export CONFIG_SHELL
622 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623 else
624 # Try using printf.
625 ECHO='printf %s\n'
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
629 # Cool, printf works
631 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632 test "X$echo_testing_string" = 'X\t' &&
633 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636 export CONFIG_SHELL
637 SHELL="$CONFIG_SHELL"
638 export SHELL
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
640 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641 test "X$echo_testing_string" = 'X\t' &&
642 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$CONFIG_SHELL $0 --fallback-echo"
645 else
646 # maybe with a smaller string...
647 prev=:
649 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651 then
652 break
654 prev="$cmd"
655 done
657 if test "$prev" != 'sed 50q "$0"'; then
658 echo_test_string=`eval $prev`
659 export echo_test_string
660 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661 else
662 # Oops. We lost completely, so just stick with echo.
663 ECHO=echo
671 # Copy echo and quote the copy suitably for passing to libtool from
672 # the Makefile, instead of quoting the original, which is used later.
673 lt_ECHO=$ECHO
674 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
681 test -n "$DJDIR" || exec 7<&0 </dev/null
682 exec 6>&1
684 # Name of the host.
685 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
686 # so uname gets run too.
687 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
690 # Initializations.
692 ac_default_prefix=/usr/local
693 ac_clean_files=
694 ac_config_libobj_dir=.
695 LIBOBJS=
696 cross_compiling=no
697 subdirs=
698 MFLAGS=
699 MAKEFLAGS=
701 # Identity of this package.
702 PACKAGE_NAME='Xenomai'
703 PACKAGE_TARNAME='xenomai'
704 PACKAGE_VERSION='2.5.94'
705 PACKAGE_STRING='Xenomai 2.5.94'
706 PACKAGE_BUGREPORT='xenomai-help@gna.org'
707 PACKAGE_URL=''
709 ac_unique_file="src/skins/native/task.c"
710 ac_default_prefix=/usr/xenomai
711 # Factoring default headers for most tests.
712 ac_includes_default="\
713 #include <stdio.h>
714 #ifdef HAVE_SYS_TYPES_H
715 # include <sys/types.h>
716 #endif
717 #ifdef HAVE_SYS_STAT_H
718 # include <sys/stat.h>
719 #endif
720 #ifdef STDC_HEADERS
721 # include <stdlib.h>
722 # include <stddef.h>
723 #else
724 # ifdef HAVE_STDLIB_H
725 # include <stdlib.h>
726 # endif
727 #endif
728 #ifdef HAVE_STRING_H
729 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
730 # include <memory.h>
731 # endif
732 # include <string.h>
733 #endif
734 #ifdef HAVE_STRINGS_H
735 # include <strings.h>
736 #endif
737 #ifdef HAVE_INTTYPES_H
738 # include <inttypes.h>
739 #endif
740 #ifdef HAVE_STDINT_H
741 # include <stdint.h>
742 #endif
743 #ifdef HAVE_UNISTD_H
744 # include <unistd.h>
745 #endif"
747 ac_subst_vars='am__EXEEXT_FALSE
748 am__EXEEXT_TRUE
749 LTLIBOBJS
750 LIBOBJS
751 XENO_POSIX_WRAPPERS
752 CONFIG_STATUS_DEPENDENCIES
753 XENO_TEST_DIR
754 XENO_DLOPEN_CONSTRAINT
755 XENO_USER_APP_LDFLAGS
756 XENO_USER_APP_CFLAGS
757 XENO_USER_LDFLAGS
758 XENO_USER_CFLAGS
759 XENO_HOST_STRING
760 XENO_BUILD_STRING
761 XENO_TARGET_ARCH
762 LATEX_MODE
763 LATEX_BATCHMODE
764 DOXYGEN_SHOW_INCLUDE_FILES
765 CONFIG_XENO_FAST_WRAP_FALSE
766 CONFIG_XENO_FAST_WRAP_TRUE
767 LD_FILE_OPTION
768 CONFIG_XENO_DOC_DOX_FALSE
769 CONFIG_XENO_DOC_DOX_TRUE
770 CONFIG_XENO_SHARED_FALSE
771 CONFIG_XENO_SHARED_TRUE
772 CONFIG_XENO_FASTSYNCH_FALSE
773 CONFIG_XENO_FASTSYNCH_TRUE
774 DBX_ABS_SRCDIR_FALSE
775 DBX_ABS_SRCDIR_TRUE
776 DBX_XSL_ROOT
777 DBX_ROOT
778 DBX_MAYBE_NONET
779 DBX_FOP
780 DBX_XSLTPROC
781 DBX_LINT
782 DBX_GEN_DOC_ROOT
783 DBX_DOC_FALSE
784 DBX_DOC_TRUE
785 DBX_DOC_ROOT
786 DOXYGEN_HAVE_DOT
787 DOXYGEN
788 XENO_MAYBE_DOCDIR
789 OTOOL64
790 OTOOL
791 LIPO
792 NMEDIT
793 DSYMUTIL
794 lt_ECHO
795 RANLIB
797 LN_S
799 ac_ct_DUMPBIN
800 DUMPBIN
802 FGREP
803 EGREP
804 GREP
806 LIBTOOL
807 XENO_TARGET_ARCH_X86_FALSE
808 XENO_TARGET_ARCH_X86_TRUE
809 LEXLIB
810 LEX_OUTPUT_ROOT
812 am__fastdepCCAS_FALSE
813 am__fastdepCCAS_TRUE
814 CCASDEPMODE
815 CCASFLAGS
816 CCAS
817 MAINT
818 MAINTAINER_MODE_FALSE
819 MAINTAINER_MODE_TRUE
820 am__fastdepCC_FALSE
821 am__fastdepCC_TRUE
822 CCDEPMODE
823 AMDEPBACKSLASH
824 AMDEP_FALSE
825 AMDEP_TRUE
826 am__quote
827 am__include
828 DEPDIR
829 am__untar
830 am__tar
831 AMTAR
832 am__leading_dot
833 SET_MAKE
835 mkdir_p
836 MKDIR_P
837 INSTALL_STRIP_PROGRAM
838 STRIP
839 install_sh
840 MAKEINFO
841 AUTOHEADER
842 AUTOMAKE
843 AUTOCONF
844 ACLOCAL
845 VERSION
846 PACKAGE
847 CYGPATH_W
848 am__isrc
849 CPPFLAGS_FOR_BUILD
850 CFLAGS_FOR_BUILD
851 BUILD_OBJEXT
852 BUILD_EXEEXT
853 CPP_FOR_BUILD
854 ac_ct_CC_FOR_BUILD
855 CC_FOR_BUILD
856 target_os
857 target_vendor
858 target_cpu
859 target
861 OBJEXT
862 EXEEXT
863 ac_ct_CC
864 CPPFLAGS
865 LDFLAGS
866 CFLAGS
868 INSTALL_DATA
869 INSTALL_SCRIPT
870 INSTALL_PROGRAM
871 host_os
872 host_vendor
873 host_cpu
874 host
875 build_os
876 build_vendor
877 build_cpu
878 build
879 target_alias
880 host_alias
881 build_alias
882 LIBS
883 ECHO_T
884 ECHO_N
885 ECHO_C
886 DEFS
887 mandir
888 localedir
889 libdir
890 psdir
891 pdfdir
892 dvidir
893 htmldir
894 infodir
895 docdir
896 oldincludedir
897 includedir
898 localstatedir
899 sharedstatedir
900 sysconfdir
901 datadir
902 datarootdir
903 libexecdir
904 sbindir
905 bindir
906 program_transform_name
907 prefix
908 exec_prefix
909 PACKAGE_URL
910 PACKAGE_BUGREPORT
911 PACKAGE_STRING
912 PACKAGE_VERSION
913 PACKAGE_TARNAME
914 PACKAGE_NAME
915 PATH_SEPARATOR
916 SHELL'
917 ac_subst_files=''
918 ac_user_opts='
919 enable_option_checking
920 with_cc
921 enable_dependency_tracking
922 enable_maintainer_mode
923 enable_shared
924 enable_static
925 with_pic
926 enable_fast_install
927 with_gnu_ld
928 enable_libtool_lock
929 enable_debug
930 enable_smp
931 enable_x86_sep
932 enable_x86_tsc
933 enable_arm_tsc
934 enable_arm_quirks
935 enable_doc_install
936 enable_dox_doc
937 enable_dbx
938 enable_dbx_network
939 with_dbx_root
940 with_docbook_xsl_root
941 enable_verbose_latex
942 enable_posix_auto_mlockall
943 enable_psos_auto_mlockall
944 enable_uitron_auto_mlockall
945 enable_dlopen_skins
946 with___thread
947 with_testdir
949 ac_precious_vars='build_alias
950 host_alias
951 target_alias
953 CFLAGS
954 LDFLAGS
955 LIBS
956 CPPFLAGS
958 CCAS
959 CCASFLAGS'
962 # Initialize some variables set by options.
963 ac_init_help=
964 ac_init_version=false
965 ac_unrecognized_opts=
966 ac_unrecognized_sep=
967 # The variables have the same names as the options, with
968 # dashes changed to underlines.
969 cache_file=/dev/null
970 exec_prefix=NONE
971 no_create=
972 no_recursion=
973 prefix=NONE
974 program_prefix=NONE
975 program_suffix=NONE
976 program_transform_name=s,x,x,
977 silent=
978 site=
979 srcdir=
980 verbose=
981 x_includes=NONE
982 x_libraries=NONE
984 # Installation directory options.
985 # These are left unexpanded so users can "make install exec_prefix=/foo"
986 # and all the variables that are supposed to be based on exec_prefix
987 # by default will actually change.
988 # Use braces instead of parens because sh, perl, etc. also accept them.
989 # (The list follows the same order as the GNU Coding Standards.)
990 bindir='${exec_prefix}/bin'
991 sbindir='${exec_prefix}/sbin'
992 libexecdir='${exec_prefix}/libexec'
993 datarootdir='${prefix}/share'
994 datadir='${datarootdir}'
995 sysconfdir='${prefix}/etc'
996 sharedstatedir='${prefix}/com'
997 localstatedir='${prefix}/var'
998 includedir='${prefix}/include'
999 oldincludedir='/usr/include'
1000 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1001 infodir='${datarootdir}/info'
1002 htmldir='${docdir}'
1003 dvidir='${docdir}'
1004 pdfdir='${docdir}'
1005 psdir='${docdir}'
1006 libdir='${exec_prefix}/lib'
1007 localedir='${datarootdir}/locale'
1008 mandir='${datarootdir}/man'
1010 ac_prev=
1011 ac_dashdash=
1012 for ac_option
1014 # If the previous option needs an argument, assign it.
1015 if test -n "$ac_prev"; then
1016 eval $ac_prev=\$ac_option
1017 ac_prev=
1018 continue
1021 case $ac_option in
1022 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1023 *=) ac_optarg= ;;
1024 *) ac_optarg=yes ;;
1025 esac
1027 # Accept the important Cygnus configure options, so we can diagnose typos.
1029 case $ac_dashdash$ac_option in
1031 ac_dashdash=yes ;;
1033 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1034 ac_prev=bindir ;;
1035 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1036 bindir=$ac_optarg ;;
1038 -build | --build | --buil | --bui | --bu)
1039 ac_prev=build_alias ;;
1040 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1041 build_alias=$ac_optarg ;;
1043 -cache-file | --cache-file | --cache-fil | --cache-fi \
1044 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1045 ac_prev=cache_file ;;
1046 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1047 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1048 cache_file=$ac_optarg ;;
1050 --config-cache | -C)
1051 cache_file=config.cache ;;
1053 -datadir | --datadir | --datadi | --datad)
1054 ac_prev=datadir ;;
1055 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1056 datadir=$ac_optarg ;;
1058 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1059 | --dataroo | --dataro | --datar)
1060 ac_prev=datarootdir ;;
1061 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1062 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1063 datarootdir=$ac_optarg ;;
1065 -disable-* | --disable-*)
1066 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1067 # Reject names that are not valid shell variable names.
1068 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1069 as_fn_error $? "invalid feature name: $ac_useropt"
1070 ac_useropt_orig=$ac_useropt
1071 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1072 case $ac_user_opts in
1074 "enable_$ac_useropt"
1075 "*) ;;
1076 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1077 ac_unrecognized_sep=', ';;
1078 esac
1079 eval enable_$ac_useropt=no ;;
1081 -docdir | --docdir | --docdi | --doc | --do)
1082 ac_prev=docdir ;;
1083 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1084 docdir=$ac_optarg ;;
1086 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1087 ac_prev=dvidir ;;
1088 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1089 dvidir=$ac_optarg ;;
1091 -enable-* | --enable-*)
1092 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1093 # Reject names that are not valid shell variable names.
1094 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1095 as_fn_error $? "invalid feature name: $ac_useropt"
1096 ac_useropt_orig=$ac_useropt
1097 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098 case $ac_user_opts in
1100 "enable_$ac_useropt"
1101 "*) ;;
1102 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1103 ac_unrecognized_sep=', ';;
1104 esac
1105 eval enable_$ac_useropt=\$ac_optarg ;;
1107 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1108 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1109 | --exec | --exe | --ex)
1110 ac_prev=exec_prefix ;;
1111 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1112 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1113 | --exec=* | --exe=* | --ex=*)
1114 exec_prefix=$ac_optarg ;;
1116 -gas | --gas | --ga | --g)
1117 # Obsolete; use --with-gas.
1118 with_gas=yes ;;
1120 -help | --help | --hel | --he | -h)
1121 ac_init_help=long ;;
1122 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1123 ac_init_help=recursive ;;
1124 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1125 ac_init_help=short ;;
1127 -host | --host | --hos | --ho)
1128 ac_prev=host_alias ;;
1129 -host=* | --host=* | --hos=* | --ho=*)
1130 host_alias=$ac_optarg ;;
1132 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1133 ac_prev=htmldir ;;
1134 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1135 | --ht=*)
1136 htmldir=$ac_optarg ;;
1138 -includedir | --includedir | --includedi | --included | --include \
1139 | --includ | --inclu | --incl | --inc)
1140 ac_prev=includedir ;;
1141 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1142 | --includ=* | --inclu=* | --incl=* | --inc=*)
1143 includedir=$ac_optarg ;;
1145 -infodir | --infodir | --infodi | --infod | --info | --inf)
1146 ac_prev=infodir ;;
1147 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1148 infodir=$ac_optarg ;;
1150 -libdir | --libdir | --libdi | --libd)
1151 ac_prev=libdir ;;
1152 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1153 libdir=$ac_optarg ;;
1155 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1156 | --libexe | --libex | --libe)
1157 ac_prev=libexecdir ;;
1158 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1159 | --libexe=* | --libex=* | --libe=*)
1160 libexecdir=$ac_optarg ;;
1162 -localedir | --localedir | --localedi | --localed | --locale)
1163 ac_prev=localedir ;;
1164 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1165 localedir=$ac_optarg ;;
1167 -localstatedir | --localstatedir | --localstatedi | --localstated \
1168 | --localstate | --localstat | --localsta | --localst | --locals)
1169 ac_prev=localstatedir ;;
1170 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1171 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1172 localstatedir=$ac_optarg ;;
1174 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1175 ac_prev=mandir ;;
1176 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1177 mandir=$ac_optarg ;;
1179 -nfp | --nfp | --nf)
1180 # Obsolete; use --without-fp.
1181 with_fp=no ;;
1183 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1184 | --no-cr | --no-c | -n)
1185 no_create=yes ;;
1187 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1188 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1189 no_recursion=yes ;;
1191 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1192 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1193 | --oldin | --oldi | --old | --ol | --o)
1194 ac_prev=oldincludedir ;;
1195 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1196 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1197 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1198 oldincludedir=$ac_optarg ;;
1200 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1201 ac_prev=prefix ;;
1202 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1203 prefix=$ac_optarg ;;
1205 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1206 | --program-pre | --program-pr | --program-p)
1207 ac_prev=program_prefix ;;
1208 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1209 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1210 program_prefix=$ac_optarg ;;
1212 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1213 | --program-suf | --program-su | --program-s)
1214 ac_prev=program_suffix ;;
1215 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1216 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1217 program_suffix=$ac_optarg ;;
1219 -program-transform-name | --program-transform-name \
1220 | --program-transform-nam | --program-transform-na \
1221 | --program-transform-n | --program-transform- \
1222 | --program-transform | --program-transfor \
1223 | --program-transfo | --program-transf \
1224 | --program-trans | --program-tran \
1225 | --progr-tra | --program-tr | --program-t)
1226 ac_prev=program_transform_name ;;
1227 -program-transform-name=* | --program-transform-name=* \
1228 | --program-transform-nam=* | --program-transform-na=* \
1229 | --program-transform-n=* | --program-transform-=* \
1230 | --program-transform=* | --program-transfor=* \
1231 | --program-transfo=* | --program-transf=* \
1232 | --program-trans=* | --program-tran=* \
1233 | --progr-tra=* | --program-tr=* | --program-t=*)
1234 program_transform_name=$ac_optarg ;;
1236 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1237 ac_prev=pdfdir ;;
1238 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1239 pdfdir=$ac_optarg ;;
1241 -psdir | --psdir | --psdi | --psd | --ps)
1242 ac_prev=psdir ;;
1243 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1244 psdir=$ac_optarg ;;
1246 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1247 | -silent | --silent | --silen | --sile | --sil)
1248 silent=yes ;;
1250 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1251 ac_prev=sbindir ;;
1252 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1253 | --sbi=* | --sb=*)
1254 sbindir=$ac_optarg ;;
1256 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1257 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1258 | --sharedst | --shareds | --shared | --share | --shar \
1259 | --sha | --sh)
1260 ac_prev=sharedstatedir ;;
1261 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1262 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1263 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1264 | --sha=* | --sh=*)
1265 sharedstatedir=$ac_optarg ;;
1267 -site | --site | --sit)
1268 ac_prev=site ;;
1269 -site=* | --site=* | --sit=*)
1270 site=$ac_optarg ;;
1272 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1273 ac_prev=srcdir ;;
1274 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1275 srcdir=$ac_optarg ;;
1277 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1278 | --syscon | --sysco | --sysc | --sys | --sy)
1279 ac_prev=sysconfdir ;;
1280 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1281 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1282 sysconfdir=$ac_optarg ;;
1284 -target | --target | --targe | --targ | --tar | --ta | --t)
1285 ac_prev=target_alias ;;
1286 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1287 target_alias=$ac_optarg ;;
1289 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1290 verbose=yes ;;
1292 -version | --version | --versio | --versi | --vers | -V)
1293 ac_init_version=: ;;
1295 -with-* | --with-*)
1296 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1297 # Reject names that are not valid shell variable names.
1298 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1299 as_fn_error $? "invalid package name: $ac_useropt"
1300 ac_useropt_orig=$ac_useropt
1301 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1302 case $ac_user_opts in
1304 "with_$ac_useropt"
1305 "*) ;;
1306 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1307 ac_unrecognized_sep=', ';;
1308 esac
1309 eval with_$ac_useropt=\$ac_optarg ;;
1311 -without-* | --without-*)
1312 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1313 # Reject names that are not valid shell variable names.
1314 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1315 as_fn_error $? "invalid package name: $ac_useropt"
1316 ac_useropt_orig=$ac_useropt
1317 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1318 case $ac_user_opts in
1320 "with_$ac_useropt"
1321 "*) ;;
1322 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1323 ac_unrecognized_sep=', ';;
1324 esac
1325 eval with_$ac_useropt=no ;;
1327 --x)
1328 # Obsolete; use --with-x.
1329 with_x=yes ;;
1331 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1332 | --x-incl | --x-inc | --x-in | --x-i)
1333 ac_prev=x_includes ;;
1334 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1335 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1336 x_includes=$ac_optarg ;;
1338 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1339 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1340 ac_prev=x_libraries ;;
1341 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1342 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1343 x_libraries=$ac_optarg ;;
1345 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1346 Try \`$0 --help' for more information"
1349 *=*)
1350 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1351 # Reject names that are not valid shell variable names.
1352 case $ac_envvar in #(
1353 '' | [0-9]* | *[!_$as_cr_alnum]* )
1354 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1355 esac
1356 eval $ac_envvar=\$ac_optarg
1357 export $ac_envvar ;;
1360 # FIXME: should be removed in autoconf 3.0.
1361 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1362 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1363 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1364 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1367 esac
1368 done
1370 if test -n "$ac_prev"; then
1371 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1372 as_fn_error $? "missing argument to $ac_option"
1375 if test -n "$ac_unrecognized_opts"; then
1376 case $enable_option_checking in
1377 no) ;;
1378 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1379 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1380 esac
1383 # Check all directory arguments for consistency.
1384 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1385 datadir sysconfdir sharedstatedir localstatedir includedir \
1386 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1387 libdir localedir mandir
1389 eval ac_val=\$$ac_var
1390 # Remove trailing slashes.
1391 case $ac_val in
1392 */ )
1393 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1394 eval $ac_var=\$ac_val;;
1395 esac
1396 # Be sure to have absolute directory names.
1397 case $ac_val in
1398 [\\/$]* | ?:[\\/]* ) continue;;
1399 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1400 esac
1401 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1402 done
1404 # There might be people who depend on the old broken behavior: `$host'
1405 # used to hold the argument of --host etc.
1406 # FIXME: To remove some day.
1407 build=$build_alias
1408 host=$host_alias
1409 target=$target_alias
1411 # FIXME: To remove some day.
1412 if test "x$host_alias" != x; then
1413 if test "x$build_alias" = x; then
1414 cross_compiling=maybe
1415 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1416 If a cross compiler is detected then cross compile mode will be used" >&2
1417 elif test "x$build_alias" != "x$host_alias"; then
1418 cross_compiling=yes
1422 ac_tool_prefix=
1423 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1425 test "$silent" = yes && exec 6>/dev/null
1428 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1429 ac_ls_di=`ls -di .` &&
1430 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1431 as_fn_error $? "working directory cannot be determined"
1432 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1433 as_fn_error $? "pwd does not report name of working directory"
1436 # Find the source files, if location was not specified.
1437 if test -z "$srcdir"; then
1438 ac_srcdir_defaulted=yes
1439 # Try the directory containing this script, then the parent directory.
1440 ac_confdir=`$as_dirname -- "$as_myself" ||
1441 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1442 X"$as_myself" : 'X\(//\)[^/]' \| \
1443 X"$as_myself" : 'X\(//\)$' \| \
1444 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1445 $as_echo X"$as_myself" |
1446 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1447 s//\1/
1450 /^X\(\/\/\)[^/].*/{
1451 s//\1/
1454 /^X\(\/\/\)$/{
1455 s//\1/
1458 /^X\(\/\).*/{
1459 s//\1/
1462 s/.*/./; q'`
1463 srcdir=$ac_confdir
1464 if test ! -r "$srcdir/$ac_unique_file"; then
1465 srcdir=..
1467 else
1468 ac_srcdir_defaulted=no
1470 if test ! -r "$srcdir/$ac_unique_file"; then
1471 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1472 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1474 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1475 ac_abs_confdir=`(
1476 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1477 pwd)`
1478 # When building in place, set srcdir=.
1479 if test "$ac_abs_confdir" = "$ac_pwd"; then
1480 srcdir=.
1482 # Remove unnecessary trailing slashes from srcdir.
1483 # Double slashes in file names in object file debugging info
1484 # mess up M-x gdb in Emacs.
1485 case $srcdir in
1486 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1487 esac
1488 for ac_var in $ac_precious_vars; do
1489 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1490 eval ac_env_${ac_var}_value=\$${ac_var}
1491 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1492 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1493 done
1496 # Report the --help message.
1498 if test "$ac_init_help" = "long"; then
1499 # Omit some internal or obsolete options to make the list less imposing.
1500 # This message is too long to be a string in the A/UX 3.1 sh.
1501 cat <<_ACEOF
1502 \`configure' configures Xenomai 2.5.94 to adapt to many kinds of systems.
1504 Usage: $0 [OPTION]... [VAR=VALUE]...
1506 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1507 VAR=VALUE. See below for descriptions of some of the useful variables.
1509 Defaults for the options are specified in brackets.
1511 Configuration:
1512 -h, --help display this help and exit
1513 --help=short display options specific to this package
1514 --help=recursive display the short help of all the included packages
1515 -V, --version display version information and exit
1516 -q, --quiet, --silent do not print \`checking ...' messages
1517 --cache-file=FILE cache test results in FILE [disabled]
1518 -C, --config-cache alias for \`--cache-file=config.cache'
1519 -n, --no-create do not create output files
1520 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1522 Installation directories:
1523 --prefix=PREFIX install architecture-independent files in PREFIX
1524 [$ac_default_prefix]
1525 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1526 [PREFIX]
1528 By default, \`make install' will install all the files in
1529 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1530 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1531 for instance \`--prefix=\$HOME'.
1533 For better control, use the options below.
1535 Fine tuning of the installation directories:
1536 --bindir=DIR user executables [EPREFIX/bin]
1537 --sbindir=DIR system admin executables [EPREFIX/sbin]
1538 --libexecdir=DIR program executables [EPREFIX/libexec]
1539 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1540 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1541 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1542 --libdir=DIR object code libraries [EPREFIX/lib]
1543 --includedir=DIR C header files [PREFIX/include]
1544 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1545 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1546 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1547 --infodir=DIR info documentation [DATAROOTDIR/info]
1548 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1549 --mandir=DIR man documentation [DATAROOTDIR/man]
1550 --docdir=DIR documentation root [DATAROOTDIR/doc/xenomai]
1551 --htmldir=DIR html documentation [DOCDIR]
1552 --dvidir=DIR dvi documentation [DOCDIR]
1553 --pdfdir=DIR pdf documentation [DOCDIR]
1554 --psdir=DIR ps documentation [DOCDIR]
1555 _ACEOF
1557 cat <<\_ACEOF
1559 Program names:
1560 --program-prefix=PREFIX prepend PREFIX to installed program names
1561 --program-suffix=SUFFIX append SUFFIX to installed program names
1562 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1564 System types:
1565 --build=BUILD configure for building on BUILD [guessed]
1566 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1567 --target=TARGET configure for building compilers for TARGET [HOST]
1568 _ACEOF
1571 if test -n "$ac_init_help"; then
1572 case $ac_init_help in
1573 short | recursive ) echo "Configuration of Xenomai 2.5.94:";;
1574 esac
1575 cat <<\_ACEOF
1577 Optional Features:
1578 --disable-option-checking ignore unrecognized --enable/--with options
1579 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1580 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1581 --disable-dependency-tracking speeds up one-time build
1582 --enable-dependency-tracking do not reject slow dependency extractors
1583 --enable-maintainer-mode enable make rules and dependencies not useful
1584 (and sometimes confusing) to the casual installer
1585 --enable-shared[=PKGS] build shared libraries [default=no]
1586 --enable-static[=PKGS] build static libraries [default=yes]
1587 --enable-fast-install[=PKGS]
1588 optimize for fast installation [default=yes]
1589 --disable-libtool-lock avoid locking (might break parallel builds)
1590 --enable-debug Enable debug symbols in programs
1591 --enable-smp Enable SMP support
1592 --enable-x86-sep Enable x86 SEP instructions for issuing syscalls
1593 --enable-x86-tsc Enable x86 TSC for timings
1594 --enable-arm-tsc You only need this option if you get the following
1595 message when starting an application: Xenomai:
1596 incompatible feature set (userland requires
1597 "kuser_tsc ...", kernel provides "...",
1598 missing="kuser_tsc"). In that case, this option
1599 allows to select the machine for which a user-space
1600 tsc emulation should be generated. Valid machines
1601 are at91, kuser, imx, ixp4xx, omap, orion, pxa,
1602 s3c24x, sa1100.
1603 --enable-arm-quirks Enable quirks for specific systems. Currently
1604 supported quirks are for sa1100 and xscale3.
1605 --disable-doc-install Do not install documentation
1606 --enable-dox-doc Build Doxygen documentation
1607 --enable-dbx Build Docbook XML documentation.
1608 --enable-dbx-network Try to access Docbook DTD and XSL stylesheets
1609 through network (default is to die if local
1610 installation can not be found by configure).
1611 --enable-verbose-latex Uses LaTeX non-stop mode
1612 --enable-posix-auto-mlockall
1613 Enable Xenomai POSIX skin library to automatically
1614 call mlockall at startup. This option is mainly
1615 useful for running third-parties programs such as
1616 the Open Posix Testsuite unmodified with Xenomai
1617 POSIX skin
1618 --enable-psos-auto-mlockall
1619 Enable the Xenomai pSOS skin library to
1620 automatically call mlockall at process startup.
1621 Unless this option is switched on, the application
1622 will have to lock its memory explicitly while
1623 initializing.
1624 --enable-uitron-auto-mlockall
1625 Enable the Xenomai uITRON skin library to
1626 automatically call mlockall at process startup.
1627 Unless this option is switched on, the application
1628 will have to lock its memory explicitly while
1629 initializing.
1630 --enable-dlopen-skins Disable TLS features and automatic main thread
1631 mapping by the POSIX skin to allows dlopen'ing
1632 Xenomai libs.
1634 Optional Packages:
1635 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1636 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1637 --with-cc=compiler use specific C compiler
1638 --with-pic try to use only PIC/non-PIC objects [default=use
1639 both]
1640 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1641 --with-dbx-root specify the Docbook XML root (that is, the directory
1642 where docbookx.dtd should be found). Default is to
1643 use well-known locations (or network if
1644 --enable-dbx-network was passed).
1645 --with-dbx-xsl-root specify the Docbook XML XSL stylesheet root. Default
1646 is to use well-known locations (or network if
1647 --enable-dbx-network was passed)
1648 --without-__thread do not use TLS features
1649 --with-testdir=<test-binaries-dir>
1650 location for test binaries (defaults to $bindir)
1652 Some influential environment variables:
1653 CC C compiler command
1654 CFLAGS C compiler flags
1655 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1656 nonstandard directory <lib dir>
1657 LIBS libraries to pass to the linker, e.g. -l<library>
1658 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1659 you have headers in a nonstandard directory <include dir>
1660 CPP C preprocessor
1661 CCAS assembler compiler command (defaults to CC)
1662 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1664 Use these variables to override the choices made by `configure' or to help
1665 it to find libraries and programs with nonstandard names/locations.
1667 Report bugs to <xenomai-help@gna.org>.
1668 _ACEOF
1669 ac_status=$?
1672 if test "$ac_init_help" = "recursive"; then
1673 # If there are subdirs, report their specific --help.
1674 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1675 test -d "$ac_dir" ||
1676 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1677 continue
1678 ac_builddir=.
1680 case "$ac_dir" in
1681 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1683 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1684 # A ".." for each directory in $ac_dir_suffix.
1685 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1686 case $ac_top_builddir_sub in
1687 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1688 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1689 esac ;;
1690 esac
1691 ac_abs_top_builddir=$ac_pwd
1692 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1693 # for backward compatibility:
1694 ac_top_builddir=$ac_top_build_prefix
1696 case $srcdir in
1697 .) # We are building in place.
1698 ac_srcdir=.
1699 ac_top_srcdir=$ac_top_builddir_sub
1700 ac_abs_top_srcdir=$ac_pwd ;;
1701 [\\/]* | ?:[\\/]* ) # Absolute name.
1702 ac_srcdir=$srcdir$ac_dir_suffix;
1703 ac_top_srcdir=$srcdir
1704 ac_abs_top_srcdir=$srcdir ;;
1705 *) # Relative name.
1706 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1707 ac_top_srcdir=$ac_top_build_prefix$srcdir
1708 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1709 esac
1710 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1712 cd "$ac_dir" || { ac_status=$?; continue; }
1713 # Check for guested configure.
1714 if test -f "$ac_srcdir/configure.gnu"; then
1715 echo &&
1716 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1717 elif test -f "$ac_srcdir/configure"; then
1718 echo &&
1719 $SHELL "$ac_srcdir/configure" --help=recursive
1720 else
1721 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1722 fi || ac_status=$?
1723 cd "$ac_pwd" || { ac_status=$?; break; }
1724 done
1727 test -n "$ac_init_help" && exit $ac_status
1728 if $ac_init_version; then
1729 cat <<\_ACEOF
1730 Xenomai configure 2.5.94
1731 generated by GNU Autoconf 2.67
1733 Copyright (C) 2010 Free Software Foundation, Inc.
1734 This configure script is free software; the Free Software Foundation
1735 gives unlimited permission to copy, distribute and modify it.
1736 _ACEOF
1737 exit
1740 ## ------------------------ ##
1741 ## Autoconf initialization. ##
1742 ## ------------------------ ##
1744 # ac_fn_c_try_compile LINENO
1745 # --------------------------
1746 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1747 ac_fn_c_try_compile ()
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 rm -f conftest.$ac_objext
1751 if { { ac_try="$ac_compile"
1752 case "(($ac_try" in
1753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754 *) ac_try_echo=$ac_try;;
1755 esac
1756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757 $as_echo "$ac_try_echo"; } >&5
1758 (eval "$ac_compile") 2>conftest.err
1759 ac_status=$?
1760 if test -s conftest.err; then
1761 grep -v '^ *+' conftest.err >conftest.er1
1762 cat conftest.er1 >&5
1763 mv -f conftest.er1 conftest.err
1765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1766 test $ac_status = 0; } && {
1767 test -z "$ac_c_werror_flag" ||
1768 test ! -s conftest.err
1769 } && test -s conftest.$ac_objext; then :
1770 ac_retval=0
1771 else
1772 $as_echo "$as_me: failed program was:" >&5
1773 sed 's/^/| /' conftest.$ac_ext >&5
1775 ac_retval=1
1777 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1778 as_fn_set_status $ac_retval
1780 } # ac_fn_c_try_compile
1782 # ac_fn_c_try_cpp LINENO
1783 # ----------------------
1784 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1785 ac_fn_c_try_cpp ()
1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788 if { { ac_try="$ac_cpp conftest.$ac_ext"
1789 case "(($ac_try" in
1790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791 *) ac_try_echo=$ac_try;;
1792 esac
1793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794 $as_echo "$ac_try_echo"; } >&5
1795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1796 ac_status=$?
1797 if test -s conftest.err; then
1798 grep -v '^ *+' conftest.err >conftest.er1
1799 cat conftest.er1 >&5
1800 mv -f conftest.er1 conftest.err
1802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803 test $ac_status = 0; } > conftest.i && {
1804 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1805 test ! -s conftest.err
1806 }; then :
1807 ac_retval=0
1808 else
1809 $as_echo "$as_me: failed program was:" >&5
1810 sed 's/^/| /' conftest.$ac_ext >&5
1812 ac_retval=1
1814 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1815 as_fn_set_status $ac_retval
1817 } # ac_fn_c_try_cpp
1819 # ac_fn_c_try_link LINENO
1820 # -----------------------
1821 # Try to link conftest.$ac_ext, and return whether this succeeded.
1822 ac_fn_c_try_link ()
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 rm -f conftest.$ac_objext conftest$ac_exeext
1826 if { { ac_try="$ac_link"
1827 case "(($ac_try" in
1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829 *) ac_try_echo=$ac_try;;
1830 esac
1831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832 $as_echo "$ac_try_echo"; } >&5
1833 (eval "$ac_link") 2>conftest.err
1834 ac_status=$?
1835 if test -s conftest.err; then
1836 grep -v '^ *+' conftest.err >conftest.er1
1837 cat conftest.er1 >&5
1838 mv -f conftest.er1 conftest.err
1840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841 test $ac_status = 0; } && {
1842 test -z "$ac_c_werror_flag" ||
1843 test ! -s conftest.err
1844 } && test -s conftest$ac_exeext && {
1845 test "$cross_compiling" = yes ||
1846 $as_test_x conftest$ac_exeext
1847 }; then :
1848 ac_retval=0
1849 else
1850 $as_echo "$as_me: failed program was:" >&5
1851 sed 's/^/| /' conftest.$ac_ext >&5
1853 ac_retval=1
1855 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1856 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1857 # interfere with the next link command; also delete a directory that is
1858 # left behind by Apple's compiler. We do this before executing the actions.
1859 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1860 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1861 as_fn_set_status $ac_retval
1863 } # ac_fn_c_try_link
1865 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1866 # -------------------------------------------------------
1867 # Tests whether HEADER exists and can be compiled using the include files in
1868 # INCLUDES, setting the cache variable VAR accordingly.
1869 ac_fn_c_check_header_compile ()
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1873 $as_echo_n "checking for $2... " >&6; }
1874 if eval "test \"\${$3+set}\"" = set; then :
1875 $as_echo_n "(cached) " >&6
1876 else
1877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1878 /* end confdefs.h. */
1880 #include <$2>
1881 _ACEOF
1882 if ac_fn_c_try_compile "$LINENO"; then :
1883 eval "$3=yes"
1884 else
1885 eval "$3=no"
1887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1889 eval ac_res=\$$3
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891 $as_echo "$ac_res" >&6; }
1892 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1894 } # ac_fn_c_check_header_compile
1896 # ac_fn_c_try_run LINENO
1897 # ----------------------
1898 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1899 # that executables *can* be run.
1900 ac_fn_c_try_run ()
1902 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903 if { { ac_try="$ac_link"
1904 case "(($ac_try" in
1905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1906 *) ac_try_echo=$ac_try;;
1907 esac
1908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1909 $as_echo "$ac_try_echo"; } >&5
1910 (eval "$ac_link") 2>&5
1911 ac_status=$?
1912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1913 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1914 { { case "(($ac_try" in
1915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1916 *) ac_try_echo=$ac_try;;
1917 esac
1918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1919 $as_echo "$ac_try_echo"; } >&5
1920 (eval "$ac_try") 2>&5
1921 ac_status=$?
1922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1923 test $ac_status = 0; }; }; then :
1924 ac_retval=0
1925 else
1926 $as_echo "$as_me: program exited with status $ac_status" >&5
1927 $as_echo "$as_me: failed program was:" >&5
1928 sed 's/^/| /' conftest.$ac_ext >&5
1930 ac_retval=$ac_status
1932 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1933 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1934 as_fn_set_status $ac_retval
1936 } # ac_fn_c_try_run
1938 # ac_fn_c_check_func LINENO FUNC VAR
1939 # ----------------------------------
1940 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1941 ac_fn_c_check_func ()
1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1945 $as_echo_n "checking for $2... " >&6; }
1946 if eval "test \"\${$3+set}\"" = set; then :
1947 $as_echo_n "(cached) " >&6
1948 else
1949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h. */
1951 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1953 #define $2 innocuous_$2
1955 /* System header to define __stub macros and hopefully few prototypes,
1956 which can conflict with char $2 (); below.
1957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1958 <limits.h> exists even on freestanding compilers. */
1960 #ifdef __STDC__
1961 # include <limits.h>
1962 #else
1963 # include <assert.h>
1964 #endif
1966 #undef $2
1968 /* Override any GCC internal prototype to avoid an error.
1969 Use char because int might match the return type of a GCC
1970 builtin and then its argument prototype would still apply. */
1971 #ifdef __cplusplus
1972 extern "C"
1973 #endif
1974 char $2 ();
1975 /* The GNU C library defines this for functions which it implements
1976 to always fail with ENOSYS. Some functions are actually named
1977 something starting with __ and the normal name is an alias. */
1978 #if defined __stub_$2 || defined __stub___$2
1979 choke me
1980 #endif
1983 main ()
1985 return $2 ();
1987 return 0;
1989 _ACEOF
1990 if ac_fn_c_try_link "$LINENO"; then :
1991 eval "$3=yes"
1992 else
1993 eval "$3=no"
1995 rm -f core conftest.err conftest.$ac_objext \
1996 conftest$ac_exeext conftest.$ac_ext
1998 eval ac_res=\$$3
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2000 $as_echo "$ac_res" >&6; }
2001 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2003 } # ac_fn_c_check_func
2005 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2006 # -------------------------------------------------------
2007 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2008 # the include files in INCLUDES and setting the cache variable VAR
2009 # accordingly.
2010 ac_fn_c_check_header_mongrel ()
2012 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2013 if eval "test \"\${$3+set}\"" = set; then :
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2015 $as_echo_n "checking for $2... " >&6; }
2016 if eval "test \"\${$3+set}\"" = set; then :
2017 $as_echo_n "(cached) " >&6
2019 eval ac_res=\$$3
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2021 $as_echo "$ac_res" >&6; }
2022 else
2023 # Is the header compilable?
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2025 $as_echo_n "checking $2 usability... " >&6; }
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h. */
2029 #include <$2>
2030 _ACEOF
2031 if ac_fn_c_try_compile "$LINENO"; then :
2032 ac_header_compiler=yes
2033 else
2034 ac_header_compiler=no
2036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2038 $as_echo "$ac_header_compiler" >&6; }
2040 # Is the header present?
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2042 $as_echo_n "checking $2 presence... " >&6; }
2043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044 /* end confdefs.h. */
2045 #include <$2>
2046 _ACEOF
2047 if ac_fn_c_try_cpp "$LINENO"; then :
2048 ac_header_preproc=yes
2049 else
2050 ac_header_preproc=no
2052 rm -f conftest.err conftest.i conftest.$ac_ext
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2054 $as_echo "$ac_header_preproc" >&6; }
2056 # So? What about this header?
2057 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2058 yes:no: )
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2060 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2062 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2064 no:yes:* )
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2066 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2068 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2070 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2072 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2074 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2075 ( $as_echo "## ----------------------------------- ##
2076 ## Report this to xenomai-help@gna.org ##
2077 ## ----------------------------------- ##"
2078 ) | sed "s/^/$as_me: WARNING: /" >&2
2080 esac
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2082 $as_echo_n "checking for $2... " >&6; }
2083 if eval "test \"\${$3+set}\"" = set; then :
2084 $as_echo_n "(cached) " >&6
2085 else
2086 eval "$3=\$ac_header_compiler"
2088 eval ac_res=\$$3
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2090 $as_echo "$ac_res" >&6; }
2092 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2094 } # ac_fn_c_check_header_mongrel
2095 cat >config.log <<_ACEOF
2096 This file contains any messages produced by compilers while
2097 running configure, to aid debugging if configure makes a mistake.
2099 It was created by Xenomai $as_me 2.5.94, which was
2100 generated by GNU Autoconf 2.67. Invocation command line was
2102 $ $0 $@
2104 _ACEOF
2105 exec 5>>config.log
2107 cat <<_ASUNAME
2108 ## --------- ##
2109 ## Platform. ##
2110 ## --------- ##
2112 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2113 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2114 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2115 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2116 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2118 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2119 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2121 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2122 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2123 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2124 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2125 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2126 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2127 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2129 _ASUNAME
2131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2132 for as_dir in $PATH
2134 IFS=$as_save_IFS
2135 test -z "$as_dir" && as_dir=.
2136 $as_echo "PATH: $as_dir"
2137 done
2138 IFS=$as_save_IFS
2140 } >&5
2142 cat >&5 <<_ACEOF
2145 ## ----------- ##
2146 ## Core tests. ##
2147 ## ----------- ##
2149 _ACEOF
2152 # Keep a trace of the command line.
2153 # Strip out --no-create and --no-recursion so they do not pile up.
2154 # Strip out --silent because we don't want to record it for future runs.
2155 # Also quote any args containing shell meta-characters.
2156 # Make two passes to allow for proper duplicate-argument suppression.
2157 ac_configure_args=
2158 ac_configure_args0=
2159 ac_configure_args1=
2160 ac_must_keep_next=false
2161 for ac_pass in 1 2
2163 for ac_arg
2165 case $ac_arg in
2166 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2167 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2168 | -silent | --silent | --silen | --sile | --sil)
2169 continue ;;
2170 *\'*)
2171 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2172 esac
2173 case $ac_pass in
2174 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2176 as_fn_append ac_configure_args1 " '$ac_arg'"
2177 if test $ac_must_keep_next = true; then
2178 ac_must_keep_next=false # Got value, back to normal.
2179 else
2180 case $ac_arg in
2181 *=* | --config-cache | -C | -disable-* | --disable-* \
2182 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2183 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2184 | -with-* | --with-* | -without-* | --without-* | --x)
2185 case "$ac_configure_args0 " in
2186 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2187 esac
2189 -* ) ac_must_keep_next=true ;;
2190 esac
2192 as_fn_append ac_configure_args " '$ac_arg'"
2194 esac
2195 done
2196 done
2197 { ac_configure_args0=; unset ac_configure_args0;}
2198 { ac_configure_args1=; unset ac_configure_args1;}
2200 # When interrupted or exit'd, cleanup temporary files, and complete
2201 # config.log. We remove comments because anyway the quotes in there
2202 # would cause problems or look ugly.
2203 # WARNING: Use '\'' to represent an apostrophe within the trap.
2204 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2205 trap 'exit_status=$?
2206 # Save into config.log some information that might help in debugging.
2208 echo
2210 $as_echo "## ---------------- ##
2211 ## Cache variables. ##
2212 ## ---------------- ##"
2213 echo
2214 # The following way of writing the cache mishandles newlines in values,
2216 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2217 eval ac_val=\$$ac_var
2218 case $ac_val in #(
2219 *${as_nl}*)
2220 case $ac_var in #(
2221 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2222 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2223 esac
2224 case $ac_var in #(
2225 _ | IFS | as_nl) ;; #(
2226 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2227 *) { eval $ac_var=; unset $ac_var;} ;;
2228 esac ;;
2229 esac
2230 done
2231 (set) 2>&1 |
2232 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2233 *${as_nl}ac_space=\ *)
2234 sed -n \
2235 "s/'\''/'\''\\\\'\'''\''/g;
2236 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2237 ;; #(
2239 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2241 esac |
2242 sort
2244 echo
2246 $as_echo "## ----------------- ##
2247 ## Output variables. ##
2248 ## ----------------- ##"
2249 echo
2250 for ac_var in $ac_subst_vars
2252 eval ac_val=\$$ac_var
2253 case $ac_val in
2254 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2255 esac
2256 $as_echo "$ac_var='\''$ac_val'\''"
2257 done | sort
2258 echo
2260 if test -n "$ac_subst_files"; then
2261 $as_echo "## ------------------- ##
2262 ## File substitutions. ##
2263 ## ------------------- ##"
2264 echo
2265 for ac_var in $ac_subst_files
2267 eval ac_val=\$$ac_var
2268 case $ac_val in
2269 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2270 esac
2271 $as_echo "$ac_var='\''$ac_val'\''"
2272 done | sort
2273 echo
2276 if test -s confdefs.h; then
2277 $as_echo "## ----------- ##
2278 ## confdefs.h. ##
2279 ## ----------- ##"
2280 echo
2281 cat confdefs.h
2282 echo
2284 test "$ac_signal" != 0 &&
2285 $as_echo "$as_me: caught signal $ac_signal"
2286 $as_echo "$as_me: exit $exit_status"
2287 } >&5
2288 rm -f core *.core core.conftest.* &&
2289 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2290 exit $exit_status
2292 for ac_signal in 1 2 13 15; do
2293 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2294 done
2295 ac_signal=0
2297 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2298 rm -f -r conftest* confdefs.h
2300 $as_echo "/* confdefs.h */" > confdefs.h
2302 # Predefined preprocessor variables.
2304 cat >>confdefs.h <<_ACEOF
2305 #define PACKAGE_NAME "$PACKAGE_NAME"
2306 _ACEOF
2308 cat >>confdefs.h <<_ACEOF
2309 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2310 _ACEOF
2312 cat >>confdefs.h <<_ACEOF
2313 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2314 _ACEOF
2316 cat >>confdefs.h <<_ACEOF
2317 #define PACKAGE_STRING "$PACKAGE_STRING"
2318 _ACEOF
2320 cat >>confdefs.h <<_ACEOF
2321 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2322 _ACEOF
2324 cat >>confdefs.h <<_ACEOF
2325 #define PACKAGE_URL "$PACKAGE_URL"
2326 _ACEOF
2329 # Let the site file select an alternate cache file if it wants to.
2330 # Prefer an explicitly selected file to automatically selected ones.
2331 ac_site_file1=NONE
2332 ac_site_file2=NONE
2333 if test -n "$CONFIG_SITE"; then
2334 # We do not want a PATH search for config.site.
2335 case $CONFIG_SITE in #((
2336 -*) ac_site_file1=./$CONFIG_SITE;;
2337 */*) ac_site_file1=$CONFIG_SITE;;
2338 *) ac_site_file1=./$CONFIG_SITE;;
2339 esac
2340 elif test "x$prefix" != xNONE; then
2341 ac_site_file1=$prefix/share/config.site
2342 ac_site_file2=$prefix/etc/config.site
2343 else
2344 ac_site_file1=$ac_default_prefix/share/config.site
2345 ac_site_file2=$ac_default_prefix/etc/config.site
2347 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2349 test "x$ac_site_file" = xNONE && continue
2350 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2352 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2353 sed 's/^/| /' "$ac_site_file" >&5
2354 . "$ac_site_file" \
2355 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2356 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2357 as_fn_error $? "failed to load site script $ac_site_file
2358 See \`config.log' for more details" "$LINENO" 5 ; }
2360 done
2362 if test -r "$cache_file"; then
2363 # Some versions of bash will fail to source /dev/null (special files
2364 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2365 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2367 $as_echo "$as_me: loading cache $cache_file" >&6;}
2368 case $cache_file in
2369 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2370 *) . "./$cache_file";;
2371 esac
2373 else
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2375 $as_echo "$as_me: creating cache $cache_file" >&6;}
2376 >$cache_file
2379 # Check that the precious variables saved in the cache have kept the same
2380 # value.
2381 ac_cache_corrupted=false
2382 for ac_var in $ac_precious_vars; do
2383 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2384 eval ac_new_set=\$ac_env_${ac_var}_set
2385 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2386 eval ac_new_val=\$ac_env_${ac_var}_value
2387 case $ac_old_set,$ac_new_set in
2388 set,)
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2390 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2391 ac_cache_corrupted=: ;;
2392 ,set)
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2394 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2395 ac_cache_corrupted=: ;;
2396 ,);;
2398 if test "x$ac_old_val" != "x$ac_new_val"; then
2399 # differences in whitespace do not lead to failure.
2400 ac_old_val_w=`echo x $ac_old_val`
2401 ac_new_val_w=`echo x $ac_new_val`
2402 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2404 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2405 ac_cache_corrupted=:
2406 else
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2408 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2409 eval $ac_var=\$ac_old_val
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2412 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2414 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2415 fi;;
2416 esac
2417 # Pass precious variables to config.status.
2418 if test "$ac_new_set" = set; then
2419 case $ac_new_val in
2420 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2421 *) ac_arg=$ac_var=$ac_new_val ;;
2422 esac
2423 case " $ac_configure_args " in
2424 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2425 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2426 esac
2428 done
2429 if $ac_cache_corrupted; then
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2433 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2434 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2436 ## -------------------- ##
2437 ## Main body of script. ##
2438 ## -------------------- ##
2440 ac_ext=c
2441 ac_cpp='$CPP $CPPFLAGS'
2442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2448 CONFIG_XENO_VERSION_MAJOR=`expr $PACKAGE_VERSION : '\([0-9]*\)'`
2449 CONFIG_XENO_VERSION_MINOR=`expr $PACKAGE_VERSION : '[0-9]*\.\([0-9]*\)'`
2450 CONFIG_XENO_REVISION_LEVEL=`expr $PACKAGE_VERSION : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
2451 test "x$CONFIG_XENO_REVISION_LEVEL" = "x" && CONFIG_XENO_REVISION_LEVEL=0
2453 if test "x$CFLAGS" = "x"; then
2454 XENO_EMPTY_CFLAGS=true
2455 else
2456 XENO_EMPTY_CFLAGS=false
2459 if eval test $includedir = /usr/include; then
2460 as_fn_error $? "Using /usr/include as includedir is not supported. Please change your --prefix or specify another --includedir" "$LINENO" 5
2463 ac_config_headers="$ac_config_headers src/include/xeno_config.h"
2465 ac_aux_dir=
2466 for ac_dir in config "$srcdir"/config; do
2467 if test -f "$ac_dir/install-sh"; then
2468 ac_aux_dir=$ac_dir
2469 ac_install_sh="$ac_aux_dir/install-sh -c"
2470 break
2471 elif test -f "$ac_dir/install.sh"; then
2472 ac_aux_dir=$ac_dir
2473 ac_install_sh="$ac_aux_dir/install.sh -c"
2474 break
2475 elif test -f "$ac_dir/shtool"; then
2476 ac_aux_dir=$ac_dir
2477 ac_install_sh="$ac_aux_dir/shtool install -c"
2478 break
2480 done
2481 if test -z "$ac_aux_dir"; then
2482 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2485 # These three variables are undocumented and unsupported,
2486 # and are intended to be withdrawn in a future Autoconf release.
2487 # They can cause serious problems if a builder's source tree is in a directory
2488 # whose full name contains unusual characters.
2489 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2490 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2491 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2496 # Make sure we can run config.sub.
2497 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2498 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2501 $as_echo_n "checking build system type... " >&6; }
2502 if test "${ac_cv_build+set}" = set; then :
2503 $as_echo_n "(cached) " >&6
2504 else
2505 ac_build_alias=$build_alias
2506 test "x$ac_build_alias" = x &&
2507 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2508 test "x$ac_build_alias" = x &&
2509 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2510 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2511 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2515 $as_echo "$ac_cv_build" >&6; }
2516 case $ac_cv_build in
2517 *-*-*) ;;
2518 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2519 esac
2520 build=$ac_cv_build
2521 ac_save_IFS=$IFS; IFS='-'
2522 set x $ac_cv_build
2523 shift
2524 build_cpu=$1
2525 build_vendor=$2
2526 shift; shift
2527 # Remember, the first character of IFS is used to create $*,
2528 # except with old shells:
2529 build_os=$*
2530 IFS=$ac_save_IFS
2531 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2535 $as_echo_n "checking host system type... " >&6; }
2536 if test "${ac_cv_host+set}" = set; then :
2537 $as_echo_n "(cached) " >&6
2538 else
2539 if test "x$host_alias" = x; then
2540 ac_cv_host=$ac_cv_build
2541 else
2542 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2543 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2548 $as_echo "$ac_cv_host" >&6; }
2549 case $ac_cv_host in
2550 *-*-*) ;;
2551 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2552 esac
2553 host=$ac_cv_host
2554 ac_save_IFS=$IFS; IFS='-'
2555 set x $ac_cv_host
2556 shift
2557 host_cpu=$1
2558 host_vendor=$2
2559 shift; shift
2560 # Remember, the first character of IFS is used to create $*,
2561 # except with old shells:
2562 host_os=$*
2563 IFS=$ac_save_IFS
2564 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2567 # Find a good install program. We prefer a C program (faster),
2568 # so one script is as good as another. But avoid the broken or
2569 # incompatible versions:
2570 # SysV /etc/install, /usr/sbin/install
2571 # SunOS /usr/etc/install
2572 # IRIX /sbin/install
2573 # AIX /bin/install
2574 # AmigaOS /C/install, which installs bootblocks on floppy discs
2575 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2576 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2577 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2578 # OS/2's system install, which has a completely different semantic
2579 # ./install, which can be erroneously created by make from ./install.sh.
2580 # Reject install programs that cannot install multiple files.
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2582 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2583 if test -z "$INSTALL"; then
2584 if test "${ac_cv_path_install+set}" = set; then :
2585 $as_echo_n "(cached) " >&6
2586 else
2587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588 for as_dir in $PATH
2590 IFS=$as_save_IFS
2591 test -z "$as_dir" && as_dir=.
2592 # Account for people who put trailing slashes in PATH elements.
2593 case $as_dir/ in #((
2594 ./ | .// | /[cC]/* | \
2595 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2596 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2597 /usr/ucb/* ) ;;
2599 # OSF1 and SCO ODT 3.0 have their own names for install.
2600 # Don't use installbsd from OSF since it installs stuff as root
2601 # by default.
2602 for ac_prog in ginstall scoinst install; do
2603 for ac_exec_ext in '' $ac_executable_extensions; do
2604 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2605 if test $ac_prog = install &&
2606 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2607 # AIX install. It has an incompatible calling convention.
2609 elif test $ac_prog = install &&
2610 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2611 # program-specific install script used by HP pwplus--don't use.
2613 else
2614 rm -rf conftest.one conftest.two conftest.dir
2615 echo one > conftest.one
2616 echo two > conftest.two
2617 mkdir conftest.dir
2618 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2619 test -s conftest.one && test -s conftest.two &&
2620 test -s conftest.dir/conftest.one &&
2621 test -s conftest.dir/conftest.two
2622 then
2623 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2624 break 3
2628 done
2629 done
2631 esac
2633 done
2634 IFS=$as_save_IFS
2636 rm -rf conftest.one conftest.two conftest.dir
2639 if test "${ac_cv_path_install+set}" = set; then
2640 INSTALL=$ac_cv_path_install
2641 else
2642 # As a last resort, use the slow shell script. Don't cache a
2643 # value for INSTALL within a source directory, because that will
2644 # break other packages using the cache if that directory is
2645 # removed, or if the value is a relative name.
2646 INSTALL=$ac_install_sh
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2650 $as_echo "$INSTALL" >&6; }
2652 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2653 # It thinks the first close brace ends the variable substitution.
2654 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2656 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2658 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2662 # Check whether --with-cc was given.
2663 if test "${with_cc+set}" = set; then :
2664 withval=$with_cc;
2665 case "$withval" in
2666 "" | y | ye | yes | n | no)
2667 as_fn_error $? "You must supply an argument to --with-cc." "$LINENO" 5
2669 esac
2670 CC="$withval"
2674 ac_ext=c
2675 ac_cpp='$CPP $CPPFLAGS'
2676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2679 if test -n "$ac_tool_prefix"; then
2680 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2681 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2683 $as_echo_n "checking for $ac_word... " >&6; }
2684 if test "${ac_cv_prog_CC+set}" = set; then :
2685 $as_echo_n "(cached) " >&6
2686 else
2687 if test -n "$CC"; then
2688 ac_cv_prog_CC="$CC" # Let the user override the test.
2689 else
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 for as_dir in $PATH
2693 IFS=$as_save_IFS
2694 test -z "$as_dir" && as_dir=.
2695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2697 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2699 break 2
2701 done
2702 done
2703 IFS=$as_save_IFS
2707 CC=$ac_cv_prog_CC
2708 if test -n "$CC"; then
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2710 $as_echo "$CC" >&6; }
2711 else
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2713 $as_echo "no" >&6; }
2718 if test -z "$ac_cv_prog_CC"; then
2719 ac_ct_CC=$CC
2720 # Extract the first word of "gcc", so it can be a program name with args.
2721 set dummy gcc; ac_word=$2
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2723 $as_echo_n "checking for $ac_word... " >&6; }
2724 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2725 $as_echo_n "(cached) " >&6
2726 else
2727 if test -n "$ac_ct_CC"; then
2728 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2729 else
2730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731 for as_dir in $PATH
2733 IFS=$as_save_IFS
2734 test -z "$as_dir" && as_dir=.
2735 for ac_exec_ext in '' $ac_executable_extensions; do
2736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2737 ac_cv_prog_ac_ct_CC="gcc"
2738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2739 break 2
2741 done
2742 done
2743 IFS=$as_save_IFS
2747 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2748 if test -n "$ac_ct_CC"; then
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2750 $as_echo "$ac_ct_CC" >&6; }
2751 else
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2753 $as_echo "no" >&6; }
2756 if test "x$ac_ct_CC" = x; then
2757 CC=""
2758 else
2759 case $cross_compiling:$ac_tool_warned in
2760 yes:)
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2763 ac_tool_warned=yes ;;
2764 esac
2765 CC=$ac_ct_CC
2767 else
2768 CC="$ac_cv_prog_CC"
2771 if test -z "$CC"; then
2772 if test -n "$ac_tool_prefix"; then
2773 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2774 set dummy ${ac_tool_prefix}cc; ac_word=$2
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2776 $as_echo_n "checking for $ac_word... " >&6; }
2777 if test "${ac_cv_prog_CC+set}" = set; then :
2778 $as_echo_n "(cached) " >&6
2779 else
2780 if test -n "$CC"; then
2781 ac_cv_prog_CC="$CC" # Let the user override the test.
2782 else
2783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784 for as_dir in $PATH
2786 IFS=$as_save_IFS
2787 test -z "$as_dir" && as_dir=.
2788 for ac_exec_ext in '' $ac_executable_extensions; do
2789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2790 ac_cv_prog_CC="${ac_tool_prefix}cc"
2791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2792 break 2
2794 done
2795 done
2796 IFS=$as_save_IFS
2800 CC=$ac_cv_prog_CC
2801 if test -n "$CC"; then
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2803 $as_echo "$CC" >&6; }
2804 else
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2806 $as_echo "no" >&6; }
2812 if test -z "$CC"; then
2813 # Extract the first word of "cc", so it can be a program name with args.
2814 set dummy cc; ac_word=$2
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2816 $as_echo_n "checking for $ac_word... " >&6; }
2817 if test "${ac_cv_prog_CC+set}" = set; then :
2818 $as_echo_n "(cached) " >&6
2819 else
2820 if test -n "$CC"; then
2821 ac_cv_prog_CC="$CC" # Let the user override the test.
2822 else
2823 ac_prog_rejected=no
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 for as_dir in $PATH
2827 IFS=$as_save_IFS
2828 test -z "$as_dir" && as_dir=.
2829 for ac_exec_ext in '' $ac_executable_extensions; do
2830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2831 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2832 ac_prog_rejected=yes
2833 continue
2835 ac_cv_prog_CC="cc"
2836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 break 2
2839 done
2840 done
2841 IFS=$as_save_IFS
2843 if test $ac_prog_rejected = yes; then
2844 # We found a bogon in the path, so make sure we never use it.
2845 set dummy $ac_cv_prog_CC
2846 shift
2847 if test $# != 0; then
2848 # We chose a different compiler from the bogus one.
2849 # However, it has the same basename, so the bogon will be chosen
2850 # first if we set CC to just the basename; use the full file name.
2851 shift
2852 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2857 CC=$ac_cv_prog_CC
2858 if test -n "$CC"; then
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2860 $as_echo "$CC" >&6; }
2861 else
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2863 $as_echo "no" >&6; }
2868 if test -z "$CC"; then
2869 if test -n "$ac_tool_prefix"; then
2870 for ac_prog in cl.exe
2872 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2873 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2875 $as_echo_n "checking for $ac_word... " >&6; }
2876 if test "${ac_cv_prog_CC+set}" = set; then :
2877 $as_echo_n "(cached) " >&6
2878 else
2879 if test -n "$CC"; then
2880 ac_cv_prog_CC="$CC" # Let the user override the test.
2881 else
2882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883 for as_dir in $PATH
2885 IFS=$as_save_IFS
2886 test -z "$as_dir" && as_dir=.
2887 for ac_exec_ext in '' $ac_executable_extensions; do
2888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2889 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2891 break 2
2893 done
2894 done
2895 IFS=$as_save_IFS
2899 CC=$ac_cv_prog_CC
2900 if test -n "$CC"; then
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2902 $as_echo "$CC" >&6; }
2903 else
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2905 $as_echo "no" >&6; }
2909 test -n "$CC" && break
2910 done
2912 if test -z "$CC"; then
2913 ac_ct_CC=$CC
2914 for ac_prog in cl.exe
2916 # Extract the first word of "$ac_prog", so it can be a program name with args.
2917 set dummy $ac_prog; ac_word=$2
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2919 $as_echo_n "checking for $ac_word... " >&6; }
2920 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2921 $as_echo_n "(cached) " >&6
2922 else
2923 if test -n "$ac_ct_CC"; then
2924 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2925 else
2926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927 for as_dir in $PATH
2929 IFS=$as_save_IFS
2930 test -z "$as_dir" && as_dir=.
2931 for ac_exec_ext in '' $ac_executable_extensions; do
2932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2933 ac_cv_prog_ac_ct_CC="$ac_prog"
2934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2935 break 2
2937 done
2938 done
2939 IFS=$as_save_IFS
2943 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2944 if test -n "$ac_ct_CC"; then
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2946 $as_echo "$ac_ct_CC" >&6; }
2947 else
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2949 $as_echo "no" >&6; }
2953 test -n "$ac_ct_CC" && break
2954 done
2956 if test "x$ac_ct_CC" = x; then
2957 CC=""
2958 else
2959 case $cross_compiling:$ac_tool_warned in
2960 yes:)
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2963 ac_tool_warned=yes ;;
2964 esac
2965 CC=$ac_ct_CC
2972 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2974 as_fn_error $? "no acceptable C compiler found in \$PATH
2975 See \`config.log' for more details" "$LINENO" 5 ; }
2977 # Provide some information about the compiler.
2978 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2979 set X $ac_compile
2980 ac_compiler=$2
2981 for ac_option in --version -v -V -qversion; do
2982 { { ac_try="$ac_compiler $ac_option >&5"
2983 case "(($ac_try" in
2984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985 *) ac_try_echo=$ac_try;;
2986 esac
2987 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2988 $as_echo "$ac_try_echo"; } >&5
2989 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2990 ac_status=$?
2991 if test -s conftest.err; then
2992 sed '10a\
2993 ... rest of stderr output deleted ...
2994 10q' conftest.err >conftest.er1
2995 cat conftest.er1 >&5
2997 rm -f conftest.er1 conftest.err
2998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2999 test $ac_status = 0; }
3000 done
3002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3003 /* end confdefs.h. */
3006 main ()
3010 return 0;
3012 _ACEOF
3013 ac_clean_files_save=$ac_clean_files
3014 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3015 # Try to create an executable without -o first, disregard a.out.
3016 # It will help us diagnose broken compilers, and finding out an intuition
3017 # of exeext.
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3019 $as_echo_n "checking whether the C compiler works... " >&6; }
3020 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3022 # The possible output files:
3023 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3025 ac_rmfiles=
3026 for ac_file in $ac_files
3028 case $ac_file in
3029 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3030 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3031 esac
3032 done
3033 rm -f $ac_rmfiles
3035 if { { ac_try="$ac_link_default"
3036 case "(($ac_try" in
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3039 esac
3040 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3041 $as_echo "$ac_try_echo"; } >&5
3042 (eval "$ac_link_default") 2>&5
3043 ac_status=$?
3044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3045 test $ac_status = 0; }; then :
3046 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3047 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3048 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3049 # so that the user can short-circuit this test for compilers unknown to
3050 # Autoconf.
3051 for ac_file in $ac_files ''
3053 test -f "$ac_file" || continue
3054 case $ac_file in
3055 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3057 [ab].out )
3058 # We found the default executable, but exeext='' is most
3059 # certainly right.
3060 break;;
3061 *.* )
3062 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3063 then :; else
3064 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3066 # We set ac_cv_exeext here because the later test for it is not
3067 # safe: cross compilers may not add the suffix if given an `-o'
3068 # argument, so we may need to know it at that point already.
3069 # Even if this section looks crufty: it has the advantage of
3070 # actually working.
3071 break;;
3073 break;;
3074 esac
3075 done
3076 test "$ac_cv_exeext" = no && ac_cv_exeext=
3078 else
3079 ac_file=''
3081 if test -z "$ac_file"; then :
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3083 $as_echo "no" >&6; }
3084 $as_echo "$as_me: failed program was:" >&5
3085 sed 's/^/| /' conftest.$ac_ext >&5
3087 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3089 as_fn_error 77 "C compiler cannot create executables
3090 See \`config.log' for more details" "$LINENO" 5 ; }
3091 else
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3093 $as_echo "yes" >&6; }
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3096 $as_echo_n "checking for C compiler default output file name... " >&6; }
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3098 $as_echo "$ac_file" >&6; }
3099 ac_exeext=$ac_cv_exeext
3101 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3102 ac_clean_files=$ac_clean_files_save
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3104 $as_echo_n "checking for suffix of executables... " >&6; }
3105 if { { ac_try="$ac_link"
3106 case "(($ac_try" in
3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3109 esac
3110 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3111 $as_echo "$ac_try_echo"; } >&5
3112 (eval "$ac_link") 2>&5
3113 ac_status=$?
3114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3115 test $ac_status = 0; }; then :
3116 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3117 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3118 # work properly (i.e., refer to `conftest.exe'), while it won't with
3119 # `rm'.
3120 for ac_file in conftest.exe conftest conftest.*; do
3121 test -f "$ac_file" || continue
3122 case $ac_file in
3123 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3124 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3125 break;;
3126 * ) break;;
3127 esac
3128 done
3129 else
3130 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3131 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3132 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3133 See \`config.log' for more details" "$LINENO" 5 ; }
3135 rm -f conftest conftest$ac_cv_exeext
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3137 $as_echo "$ac_cv_exeext" >&6; }
3139 rm -f conftest.$ac_ext
3140 EXEEXT=$ac_cv_exeext
3141 ac_exeext=$EXEEXT
3142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3143 /* end confdefs.h. */
3144 #include <stdio.h>
3146 main ()
3148 FILE *f = fopen ("conftest.out", "w");
3149 return ferror (f) || fclose (f) != 0;
3152 return 0;
3154 _ACEOF
3155 ac_clean_files="$ac_clean_files conftest.out"
3156 # Check that the compiler produces executables we can run. If not, either
3157 # the compiler is broken, or we cross compile.
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3159 $as_echo_n "checking whether we are cross compiling... " >&6; }
3160 if test "$cross_compiling" != yes; then
3161 { { ac_try="$ac_link"
3162 case "(($ac_try" in
3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164 *) ac_try_echo=$ac_try;;
3165 esac
3166 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3167 $as_echo "$ac_try_echo"; } >&5
3168 (eval "$ac_link") 2>&5
3169 ac_status=$?
3170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3171 test $ac_status = 0; }
3172 if { ac_try='./conftest$ac_cv_exeext'
3173 { { case "(($ac_try" in
3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175 *) ac_try_echo=$ac_try;;
3176 esac
3177 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3178 $as_echo "$ac_try_echo"; } >&5
3179 (eval "$ac_try") 2>&5
3180 ac_status=$?
3181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3182 test $ac_status = 0; }; }; then
3183 cross_compiling=no
3184 else
3185 if test "$cross_compiling" = maybe; then
3186 cross_compiling=yes
3187 else
3188 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3189 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3190 as_fn_error $? "cannot run C compiled programs.
3191 If you meant to cross compile, use \`--host'.
3192 See \`config.log' for more details" "$LINENO" 5 ; }
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3197 $as_echo "$cross_compiling" >&6; }
3199 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3200 ac_clean_files=$ac_clean_files_save
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3202 $as_echo_n "checking for suffix of object files... " >&6; }
3203 if test "${ac_cv_objext+set}" = set; then :
3204 $as_echo_n "(cached) " >&6
3205 else
3206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3207 /* end confdefs.h. */
3210 main ()
3214 return 0;
3216 _ACEOF
3217 rm -f conftest.o conftest.obj
3218 if { { ac_try="$ac_compile"
3219 case "(($ac_try" in
3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221 *) ac_try_echo=$ac_try;;
3222 esac
3223 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3224 $as_echo "$ac_try_echo"; } >&5
3225 (eval "$ac_compile") 2>&5
3226 ac_status=$?
3227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3228 test $ac_status = 0; }; then :
3229 for ac_file in conftest.o conftest.obj conftest.*; do
3230 test -f "$ac_file" || continue;
3231 case $ac_file in
3232 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3233 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3234 break;;
3235 esac
3236 done
3237 else
3238 $as_echo "$as_me: failed program was:" >&5
3239 sed 's/^/| /' conftest.$ac_ext >&5
3241 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3243 as_fn_error $? "cannot compute suffix of object files: cannot compile
3244 See \`config.log' for more details" "$LINENO" 5 ; }
3246 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3249 $as_echo "$ac_cv_objext" >&6; }
3250 OBJEXT=$ac_cv_objext
3251 ac_objext=$OBJEXT
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3253 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3254 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3255 $as_echo_n "(cached) " >&6
3256 else
3257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3258 /* end confdefs.h. */
3261 main ()
3263 #ifndef __GNUC__
3264 choke me
3265 #endif
3268 return 0;
3270 _ACEOF
3271 if ac_fn_c_try_compile "$LINENO"; then :
3272 ac_compiler_gnu=yes
3273 else
3274 ac_compiler_gnu=no
3276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3277 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3281 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3282 if test $ac_compiler_gnu = yes; then
3283 GCC=yes
3284 else
3285 GCC=
3287 ac_test_CFLAGS=${CFLAGS+set}
3288 ac_save_CFLAGS=$CFLAGS
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3290 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3291 if test "${ac_cv_prog_cc_g+set}" = set; then :
3292 $as_echo_n "(cached) " >&6
3293 else
3294 ac_save_c_werror_flag=$ac_c_werror_flag
3295 ac_c_werror_flag=yes
3296 ac_cv_prog_cc_g=no
3297 CFLAGS="-g"
3298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3299 /* end confdefs.h. */
3302 main ()
3306 return 0;
3308 _ACEOF
3309 if ac_fn_c_try_compile "$LINENO"; then :
3310 ac_cv_prog_cc_g=yes
3311 else
3312 CFLAGS=""
3313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3314 /* end confdefs.h. */
3317 main ()
3321 return 0;
3323 _ACEOF
3324 if ac_fn_c_try_compile "$LINENO"; then :
3326 else
3327 ac_c_werror_flag=$ac_save_c_werror_flag
3328 CFLAGS="-g"
3329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3330 /* end confdefs.h. */
3333 main ()
3337 return 0;
3339 _ACEOF
3340 if ac_fn_c_try_compile "$LINENO"; then :
3341 ac_cv_prog_cc_g=yes
3343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3348 ac_c_werror_flag=$ac_save_c_werror_flag
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3351 $as_echo "$ac_cv_prog_cc_g" >&6; }
3352 if test "$ac_test_CFLAGS" = set; then
3353 CFLAGS=$ac_save_CFLAGS
3354 elif test $ac_cv_prog_cc_g = yes; then
3355 if test "$GCC" = yes; then
3356 CFLAGS="-g -O2"
3357 else
3358 CFLAGS="-g"
3360 else
3361 if test "$GCC" = yes; then
3362 CFLAGS="-O2"
3363 else
3364 CFLAGS=
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3368 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3369 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3370 $as_echo_n "(cached) " >&6
3371 else
3372 ac_cv_prog_cc_c89=no
3373 ac_save_CC=$CC
3374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3375 /* end confdefs.h. */
3376 #include <stdarg.h>
3377 #include <stdio.h>
3378 #include <sys/types.h>
3379 #include <sys/stat.h>
3380 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3381 struct buf { int x; };
3382 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3383 static char *e (p, i)
3384 char **p;
3385 int i;
3387 return p[i];
3389 static char *f (char * (*g) (char **, int), char **p, ...)
3391 char *s;
3392 va_list v;
3393 va_start (v,p);
3394 s = g (p, va_arg (v,int));
3395 va_end (v);
3396 return s;
3399 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3400 function prototypes and stuff, but not '\xHH' hex character constants.
3401 These don't provoke an error unfortunately, instead are silently treated
3402 as 'x'. The following induces an error, until -std is added to get
3403 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3404 array size at least. It's necessary to write '\x00'==0 to get something
3405 that's true only with -std. */
3406 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3408 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3409 inside strings and character constants. */
3410 #define FOO(x) 'x'
3411 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3413 int test (int i, double x);
3414 struct s1 {int (*f) (int a);};
3415 struct s2 {int (*f) (double a);};
3416 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3417 int argc;
3418 char **argv;
3420 main ()
3422 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3424 return 0;
3426 _ACEOF
3427 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3428 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3430 CC="$ac_save_CC $ac_arg"
3431 if ac_fn_c_try_compile "$LINENO"; then :
3432 ac_cv_prog_cc_c89=$ac_arg
3434 rm -f core conftest.err conftest.$ac_objext
3435 test "x$ac_cv_prog_cc_c89" != "xno" && break
3436 done
3437 rm -f conftest.$ac_ext
3438 CC=$ac_save_CC
3441 # AC_CACHE_VAL
3442 case "x$ac_cv_prog_cc_c89" in
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3445 $as_echo "none needed" >&6; } ;;
3446 xno)
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3448 $as_echo "unsupported" >&6; } ;;
3450 CC="$CC $ac_cv_prog_cc_c89"
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3452 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3453 esac
3454 if test "x$ac_cv_prog_cc_c89" != xno; then :
3458 ac_ext=c
3459 ac_cpp='$CPP $CPPFLAGS'
3460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3465 # Do not let autoconf set the default value of CFLAGS
3466 if $XENO_EMPTY_CFLAGS; then
3467 CFLAGS=""
3470 ac_ext=c
3471 ac_cpp='$CPP $CPPFLAGS'
3472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3476 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3477 # On Suns, sometimes $CPP names a directory.
3478 if test -n "$CPP" && test -d "$CPP"; then
3479 CPP=
3481 if test -z "$CPP"; then
3482 if test "${ac_cv_prog_CPP+set}" = set; then :
3483 $as_echo_n "(cached) " >&6
3484 else
3485 # Double quotes because CPP needs to be expanded
3486 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3488 ac_preproc_ok=false
3489 for ac_c_preproc_warn_flag in '' yes
3491 # Use a header file that comes with gcc, so configuring glibc
3492 # with a fresh cross-compiler works.
3493 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3494 # <limits.h> exists even on freestanding compilers.
3495 # On the NeXT, cc -E runs the code through the compiler's parser,
3496 # not just through cpp. "Syntax error" is here to catch this case.
3497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3498 /* end confdefs.h. */
3499 #ifdef __STDC__
3500 # include <limits.h>
3501 #else
3502 # include <assert.h>
3503 #endif
3504 Syntax error
3505 _ACEOF
3506 if ac_fn_c_try_cpp "$LINENO"; then :
3508 else
3509 # Broken: fails on valid input.
3510 continue
3512 rm -f conftest.err conftest.i conftest.$ac_ext
3514 # OK, works on sane cases. Now check whether nonexistent headers
3515 # can be detected and how.
3516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3517 /* end confdefs.h. */
3518 #include <ac_nonexistent.h>
3519 _ACEOF
3520 if ac_fn_c_try_cpp "$LINENO"; then :
3521 # Broken: success on invalid input.
3522 continue
3523 else
3524 # Passes both tests.
3525 ac_preproc_ok=:
3526 break
3528 rm -f conftest.err conftest.i conftest.$ac_ext
3530 done
3531 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3532 rm -f conftest.i conftest.err conftest.$ac_ext
3533 if $ac_preproc_ok; then :
3534 break
3537 done
3538 ac_cv_prog_CPP=$CPP
3541 CPP=$ac_cv_prog_CPP
3542 else
3543 ac_cv_prog_CPP=$CPP
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3546 $as_echo "$CPP" >&6; }
3547 ac_preproc_ok=false
3548 for ac_c_preproc_warn_flag in '' yes
3550 # Use a header file that comes with gcc, so configuring glibc
3551 # with a fresh cross-compiler works.
3552 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3553 # <limits.h> exists even on freestanding compilers.
3554 # On the NeXT, cc -E runs the code through the compiler's parser,
3555 # not just through cpp. "Syntax error" is here to catch this case.
3556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3557 /* end confdefs.h. */
3558 #ifdef __STDC__
3559 # include <limits.h>
3560 #else
3561 # include <assert.h>
3562 #endif
3563 Syntax error
3564 _ACEOF
3565 if ac_fn_c_try_cpp "$LINENO"; then :
3567 else
3568 # Broken: fails on valid input.
3569 continue
3571 rm -f conftest.err conftest.i conftest.$ac_ext
3573 # OK, works on sane cases. Now check whether nonexistent headers
3574 # can be detected and how.
3575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3576 /* end confdefs.h. */
3577 #include <ac_nonexistent.h>
3578 _ACEOF
3579 if ac_fn_c_try_cpp "$LINENO"; then :
3580 # Broken: success on invalid input.
3581 continue
3582 else
3583 # Passes both tests.
3584 ac_preproc_ok=:
3585 break
3587 rm -f conftest.err conftest.i conftest.$ac_ext
3589 done
3590 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3591 rm -f conftest.i conftest.err conftest.$ac_ext
3592 if $ac_preproc_ok; then :
3594 else
3595 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3597 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3598 See \`config.log' for more details" "$LINENO" 5 ; }
3601 ac_ext=c
3602 ac_cpp='$CPP $CPPFLAGS'
3603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3609 $as_echo_n "checking target system type... " >&6; }
3610 if test "${ac_cv_target+set}" = set; then :
3611 $as_echo_n "(cached) " >&6
3612 else
3613 if test "x$target_alias" = x; then
3614 ac_cv_target=$ac_cv_host
3615 else
3616 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3617 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3622 $as_echo "$ac_cv_target" >&6; }
3623 case $ac_cv_target in
3624 *-*-*) ;;
3625 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
3626 esac
3627 target=$ac_cv_target
3628 ac_save_IFS=$IFS; IFS='-'
3629 set x $ac_cv_target
3630 shift
3631 target_cpu=$1
3632 target_vendor=$2
3633 shift; shift
3634 # Remember, the first character of IFS is used to create $*,
3635 # except with old shells:
3636 target_os=$*
3637 IFS=$ac_save_IFS
3638 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3641 # The aliases save the names the user supplied, while $host etc.
3642 # will get canonicalized.
3643 test -n "$target_alias" &&
3644 test "$program_prefix$program_suffix$program_transform_name" = \
3645 NONENONEs,x,x, &&
3646 program_prefix=${target_alias}-
3651 ac_ext=c
3652 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
3653 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
3654 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
3655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3656 if test -n "$ac_tool_prefix"; then
3657 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3658 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3660 $as_echo_n "checking for $ac_word... " >&6; }
3661 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then :
3662 $as_echo_n "(cached) " >&6
3663 else
3664 if test -n "$CC_FOR_BUILD"; then
3665 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
3666 else
3667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3668 for as_dir in $PATH
3670 IFS=$as_save_IFS
3671 test -z "$as_dir" && as_dir=.
3672 for ac_exec_ext in '' $ac_executable_extensions; do
3673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3674 ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}gcc"
3675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3676 break 2
3678 done
3679 done
3680 IFS=$as_save_IFS
3684 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
3685 if test -n "$CC_FOR_BUILD"; then
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
3687 $as_echo "$CC_FOR_BUILD" >&6; }
3688 else
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3690 $as_echo "no" >&6; }
3695 if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
3696 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
3697 # Extract the first word of "gcc", so it can be a program name with args.
3698 set dummy gcc; ac_word=$2
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3700 $as_echo_n "checking for $ac_word... " >&6; }
3701 if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then :
3702 $as_echo_n "(cached) " >&6
3703 else
3704 if test -n "$ac_ct_CC_FOR_BUILD"; then
3705 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
3706 else
3707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708 for as_dir in $PATH
3710 IFS=$as_save_IFS
3711 test -z "$as_dir" && as_dir=.
3712 for ac_exec_ext in '' $ac_executable_extensions; do
3713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3714 ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
3715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3716 break 2
3718 done
3719 done
3720 IFS=$as_save_IFS
3724 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
3725 if test -n "$ac_ct_CC_FOR_BUILD"; then
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
3727 $as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
3728 else
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3730 $as_echo "no" >&6; }
3733 if test "x$ac_ct_CC_FOR_BUILD" = x; then
3734 CC_FOR_BUILD=""
3735 else
3736 case $#:$ac_tool_warned in
3737 yes:)
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
3739 $as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
3740 ac_tool_warned=yes ;;
3741 esac
3742 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
3744 else
3745 CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
3748 if test -z "$CC_FOR_BUILD"; then
3749 if test -n "$ac_tool_prefix"; then
3750 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3751 set dummy ${ac_tool_prefix}cc; ac_word=$2
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3753 $as_echo_n "checking for $ac_word... " >&6; }
3754 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then :
3755 $as_echo_n "(cached) " >&6
3756 else
3757 if test -n "$CC_FOR_BUILD"; then
3758 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
3759 else
3760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761 for as_dir in $PATH
3763 IFS=$as_save_IFS
3764 test -z "$as_dir" && as_dir=.
3765 for ac_exec_ext in '' $ac_executable_extensions; do
3766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3767 ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}cc"
3768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3769 break 2
3771 done
3772 done
3773 IFS=$as_save_IFS
3777 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
3778 if test -n "$CC_FOR_BUILD"; then
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
3780 $as_echo "$CC_FOR_BUILD" >&6; }
3781 else
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3783 $as_echo "no" >&6; }
3789 if test -z "$CC_FOR_BUILD"; then
3790 # Extract the first word of "cc", so it can be a program name with args.
3791 set dummy cc; ac_word=$2
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3793 $as_echo_n "checking for $ac_word... " >&6; }
3794 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then :
3795 $as_echo_n "(cached) " >&6
3796 else
3797 if test -n "$CC_FOR_BUILD"; then
3798 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
3799 else
3800 ac_prog_rejected=no
3801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3802 for as_dir in $PATH
3804 IFS=$as_save_IFS
3805 test -z "$as_dir" && as_dir=.
3806 for ac_exec_ext in '' $ac_executable_extensions; do
3807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3808 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3809 ac_prog_rejected=yes
3810 continue
3812 ac_cv_prog_CC_FOR_BUILD="cc"
3813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3814 break 2
3816 done
3817 done
3818 IFS=$as_save_IFS
3820 if test $ac_prog_rejected = yes; then
3821 # We found a bogon in the path, so make sure we never use it.
3822 set dummy $ac_cv_prog_CC_FOR_BUILD
3823 shift
3824 if test $# != 0; then
3825 # We chose a different compiler from the bogus one.
3826 # However, it has the same basename, so the bogon will be chosen
3827 # first if we set CC_FOR_BUILD to just the basename; use the full file name.
3828 shift
3829 ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
3834 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
3835 if test -n "$CC_FOR_BUILD"; then
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
3837 $as_echo "$CC_FOR_BUILD" >&6; }
3838 else
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3840 $as_echo "no" >&6; }
3845 if test -z "$CC_FOR_BUILD"; then
3846 if test -n "$ac_tool_prefix"; then
3847 for ac_prog in cl.exe
3849 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3850 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3852 $as_echo_n "checking for $ac_word... " >&6; }
3853 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then :
3854 $as_echo_n "(cached) " >&6
3855 else
3856 if test -n "$CC_FOR_BUILD"; then
3857 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
3858 else
3859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3860 for as_dir in $PATH
3862 IFS=$as_save_IFS
3863 test -z "$as_dir" && as_dir=.
3864 for ac_exec_ext in '' $ac_executable_extensions; do
3865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3866 ac_cv_prog_CC_FOR_BUILD="$ac_tool_prefix$ac_prog"
3867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3868 break 2
3870 done
3871 done
3872 IFS=$as_save_IFS
3876 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
3877 if test -n "$CC_FOR_BUILD"; then
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
3879 $as_echo "$CC_FOR_BUILD" >&6; }
3880 else
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3882 $as_echo "no" >&6; }
3886 test -n "$CC_FOR_BUILD" && break
3887 done
3889 if test -z "$CC_FOR_BUILD"; then
3890 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
3891 for ac_prog in cl.exe
3893 # Extract the first word of "$ac_prog", so it can be a program name with args.
3894 set dummy $ac_prog; ac_word=$2
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3896 $as_echo_n "checking for $ac_word... " >&6; }
3897 if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then :
3898 $as_echo_n "(cached) " >&6
3899 else
3900 if test -n "$ac_ct_CC_FOR_BUILD"; then
3901 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
3902 else
3903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3904 for as_dir in $PATH
3906 IFS=$as_save_IFS
3907 test -z "$as_dir" && as_dir=.
3908 for ac_exec_ext in '' $ac_executable_extensions; do
3909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3910 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
3911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3912 break 2
3914 done
3915 done
3916 IFS=$as_save_IFS
3920 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
3921 if test -n "$ac_ct_CC_FOR_BUILD"; then
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
3923 $as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
3924 else
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3926 $as_echo "no" >&6; }
3930 test -n "$ac_ct_CC_FOR_BUILD" && break
3931 done
3933 if test "x$ac_ct_CC_FOR_BUILD" = x; then
3934 CC_FOR_BUILD=""
3935 else
3936 case $#:$ac_tool_warned in
3937 yes:)
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
3939 $as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
3940 ac_tool_warned=yes ;;
3941 esac
3942 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
3949 test -z "$CC_FOR_BUILD" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3951 as_fn_error $? "no acceptable C compiler found in \$PATH
3952 See \`config.log' for more details" "$LINENO" 5 ; }
3954 # Provide some information about the compiler.
3955 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3956 set X $ac_build_compile
3957 ac_compiler=$2
3958 for ac_option in --version -v -V -qversion; do
3959 { { ac_try="$ac_compiler $ac_option >&5"
3960 case "(($ac_try" in
3961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3962 *) ac_try_echo=$ac_try;;
3963 esac
3964 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3965 $as_echo "$ac_try_echo"; } >&5
3966 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3967 ac_status=$?
3968 if test -s conftest.err; then
3969 sed '10a\
3970 ... rest of stderr output deleted ...
3971 10q' conftest.err >conftest.er1
3972 cat conftest.er1 >&5
3974 rm -f conftest.er1 conftest.err
3975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3976 test $ac_status = 0; }
3977 done
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3980 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3981 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3982 $as_echo_n "(cached) " >&6
3983 else
3984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3985 /* end confdefs.h. */
3988 main ()
3990 #ifndef __GNUC__
3991 choke me
3992 #endif
3995 return 0;
3997 _ACEOF
3998 if ac_fn_c_try_compile "$LINENO"; then :
3999 ac_compiler_gnu=yes
4000 else
4001 ac_compiler_gnu=no
4003 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
4004 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4008 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4009 if test $ac_compiler_gnu = yes; then
4010 GCC=yes
4011 else
4012 GCC=
4014 ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
4015 ac_save_CFLAGS=$CFLAGS_FOR_BUILD
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD accepts -g" >&5
4017 $as_echo_n "checking whether $CC_FOR_BUILD accepts -g... " >&6; }
4018 if test "${ac_cv_build_prog_cc_g+set}" = set; then :
4019 $as_echo_n "(cached) " >&6
4020 else
4021 ac_save_c_werror_flag=$ac_c_werror_flag
4022 ac_c_werror_flag=yes
4023 ac_cv_build_prog_cc_g=no
4024 CFLAGS_FOR_BUILD="-g"
4025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4026 /* end confdefs.h. */
4029 main ()
4033 return 0;
4035 _ACEOF
4036 if ac_fn_c_try_compile "$LINENO"; then :
4037 ac_cv_build_prog_cc_g=yes
4038 else
4039 CFLAGS_FOR_BUILD=""
4040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4041 /* end confdefs.h. */
4044 main ()
4048 return 0;
4050 _ACEOF
4051 if ac_fn_c_try_compile "$LINENO"; then :
4053 else
4054 ac_c_werror_flag=$ac_save_c_werror_flag
4055 CFLAGS_FOR_BUILD="-g"
4056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4057 /* end confdefs.h. */
4060 main ()
4064 return 0;
4066 _ACEOF
4067 if ac_fn_c_try_compile "$LINENO"; then :
4068 ac_cv_build_prog_cc_g=yes
4070 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
4072 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
4074 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
4075 ac_c_werror_flag=$ac_save_c_werror_flag
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_g" >&5
4078 $as_echo "$ac_cv_build_prog_cc_g" >&6; }
4079 if test "$ac_test_CFLAGS" = set; then
4080 CFLAGS_FOR_BUILD=$ac_save_CFLAGS
4081 elif test $ac_cv_build_prog_cc_g = yes; then
4082 if test "$GCC" = yes; then
4083 CFLAGS_FOR_BUILD="-g -O2"
4084 else
4085 CFLAGS_FOR_BUILD="-g"
4087 else
4088 if test "$GCC" = yes; then
4089 CFLAGS_FOR_BUILD="-O2"
4090 else
4091 CFLAGS_FOR_BUILD=
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
4095 $as_echo_n "checking for $CC_FOR_BUILD option to accept ISO C89... " >&6; }
4096 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4097 $as_echo_n "(cached) " >&6
4098 else
4099 ac_cv_prog_cc_c89=no
4100 ac_save_CC=$CC_FOR_BUILD
4101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102 /* end confdefs.h. */
4103 #include <stdarg.h>
4104 #include <stdio.h>
4105 #include <sys/types.h>
4106 #include <sys/stat.h>
4107 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4108 struct buf { int x; };
4109 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4110 static char *e (p, i)
4111 char **p;
4112 int i;
4114 return p[i];
4116 static char *f (char * (*g) (char **, int), char **p, ...)
4118 char *s;
4119 va_list v;
4120 va_start (v,p);
4121 s = g (p, va_arg (v,int));
4122 va_end (v);
4123 return s;
4126 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4127 function prototypes and stuff, but not '\xHH' hex character constants.
4128 These don't provoke an error unfortunately, instead are silently treated
4129 as 'x'. The following induces an error, until -std is added to get
4130 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4131 array size at least. It's necessary to write '\x00'==0 to get something
4132 that's true only with -std. */
4133 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4135 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4136 inside strings and character constants. */
4137 #define FOO(x) 'x'
4138 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4140 int test (int i, double x);
4141 struct s1 {int (*f) (int a);};
4142 struct s2 {int (*f) (double a);};
4143 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4144 int argc;
4145 char **argv;
4147 main ()
4149 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4151 return 0;
4153 _ACEOF
4154 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4155 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4157 CC_FOR_BUILD="$ac_save_CC $ac_arg"
4158 if ac_fn_c_try_compile "$LINENO"; then :
4159 ac_cv_prog_cc_c89=$ac_arg
4161 rm -f core conftest.err conftest.$ac_build_objext
4162 test "x$ac_cv_prog_cc_c89" != "xno" && break
4163 done
4164 rm -f conftest.$ac_ext
4165 CC_FOR_BUILD=$ac_save_CC
4168 # AC_CACHE_VAL
4169 case "x$ac_cv_prog_cc_c89" in
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4172 $as_echo "none needed" >&6; } ;;
4173 xno)
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4175 $as_echo "unsupported" >&6; } ;;
4177 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_prog_cc_c89"
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4179 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4180 esac
4181 if test "x$ac_cv_prog_cc_c89" != xno; then :
4185 ac_ext=c
4186 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
4187 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
4188 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
4189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4191 ac_ext=c
4192 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
4193 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
4194 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
4195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4197 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4198 # On Suns, sometimes $CPP names a directory.
4199 if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
4200 CPP_FOR_BUILD=
4202 if test -z "$CPP_FOR_BUILD"; then
4203 if test "${ac_cv_build_prog_CPP+set}" = set; then :
4204 $as_echo_n "(cached) " >&6
4205 else
4206 # Double quotes because CPP needs to be expanded
4207 for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
4209 ac_preproc_ok=false
4210 for ac_c_preproc_warn_flag in '' yes
4212 # Use a header file that comes with gcc, so configuring glibc
4213 # with a fresh cross-compiler works.
4214 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4215 # <limits.h> exists even on freestanding compilers.
4216 # On the NeXT, cc -E runs the code through the compiler's parser,
4217 # not just through cpp. "Syntax error" is here to catch this case.
4218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4219 /* end confdefs.h. */
4220 #ifdef __STDC__
4221 # include <limits.h>
4222 #else
4223 # include <assert.h>
4224 #endif
4225 Syntax error
4226 _ACEOF
4227 if ac_fn_c_try_cpp "$LINENO"; then :
4229 else
4230 # Broken: fails on valid input.
4231 continue
4233 rm -f conftest.err conftest.i conftest.$ac_ext
4235 # OK, works on sane cases. Now check whether nonexistent headers
4236 # can be detected and how.
4237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4238 /* end confdefs.h. */
4239 #include <ac_nonexistent.h>
4240 _ACEOF
4241 if ac_fn_c_try_cpp "$LINENO"; then :
4242 # Broken: success on invalid input.
4243 continue
4244 else
4245 # Passes both tests.
4246 ac_preproc_ok=:
4247 break
4249 rm -f conftest.err conftest.i conftest.$ac_ext
4251 done
4252 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4253 rm -f conftest.i conftest.err conftest.$ac_ext
4254 if $ac_preproc_ok; then :
4255 break
4258 done
4259 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
4262 CPP_FOR_BUILD=$ac_cv_build_prog_CPP
4263 else
4264 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5
4267 $as_echo "$CPP_FOR_BUILD" >&6; }
4268 ac_preproc_ok=false
4269 for ac_c_preproc_warn_flag in '' yes
4271 # Use a header file that comes with gcc, so configuring glibc
4272 # with a fresh cross-compiler works.
4273 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4274 # <limits.h> exists even on freestanding compilers.
4275 # On the NeXT, cc -E runs the code through the compiler's parser,
4276 # not just through cpp. "Syntax error" is here to catch this case.
4277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278 /* end confdefs.h. */
4279 #ifdef __STDC__
4280 # include <limits.h>
4281 #else
4282 # include <assert.h>
4283 #endif
4284 Syntax error
4285 _ACEOF
4286 if ac_fn_c_try_cpp "$LINENO"; then :
4288 else
4289 # Broken: fails on valid input.
4290 continue
4292 rm -f conftest.err conftest.i conftest.$ac_ext
4294 # OK, works on sane cases. Now check whether nonexistent headers
4295 # can be detected and how.
4296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4297 /* end confdefs.h. */
4298 #include <ac_nonexistent.h>
4299 _ACEOF
4300 if ac_fn_c_try_cpp "$LINENO"; then :
4301 # Broken: success on invalid input.
4302 continue
4303 else
4304 # Passes both tests.
4305 ac_preproc_ok=:
4306 break
4308 rm -f conftest.err conftest.i conftest.$ac_ext
4310 done
4311 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4312 rm -f conftest.i conftest.err conftest.$ac_ext
4313 if $ac_preproc_ok; then :
4315 else
4316 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4318 as_fn_error $? "C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
4319 See \`config.log' for more details" "$LINENO" 5 ; }
4322 ac_ext=c
4323 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
4324 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
4325 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
4326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4331 BUILD_EXEEXT=$ac_build_exeext
4332 BUILD_OBJEXT=$ac_build_objext
4336 cat >>confdefs.h <<_ACEOF
4337 #define CONFIG_XENO_BUILD_STRING "$build"
4338 _ACEOF
4340 XENO_BUILD_STRING="$build"
4342 cat >>confdefs.h <<_ACEOF
4343 #define CONFIG_XENO_HOST_STRING "$host"
4344 _ACEOF
4346 XENO_HOST_STRING="$host"
4348 cat >>confdefs.h <<_ACEOF
4349 #define CONFIG_XENO_COMPILER "`$CC -v 2>&1 | tail -n 1`"
4350 _ACEOF
4353 am__api_version='1.11'
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4356 $as_echo_n "checking whether build environment is sane... " >&6; }
4357 # Just in case
4358 sleep 1
4359 echo timestamp > conftest.file
4360 # Reject unsafe characters in $srcdir or the absolute working directory
4361 # name. Accept space and tab only in the latter.
4362 am_lf='
4364 case `pwd` in
4365 *[\\\"\#\$\&\'\`$am_lf]*)
4366 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
4367 esac
4368 case $srcdir in
4369 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4370 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
4371 esac
4373 # Do `set' in a subshell so we don't clobber the current shell's
4374 # arguments. Must try -L first in case configure is actually a
4375 # symlink; some systems play weird games with the mod time of symlinks
4376 # (eg FreeBSD returns the mod time of the symlink's containing
4377 # directory).
4378 if (
4379 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4380 if test "$*" = "X"; then
4381 # -L didn't work.
4382 set X `ls -t "$srcdir/configure" conftest.file`
4384 rm -f conftest.file
4385 if test "$*" != "X $srcdir/configure conftest.file" \
4386 && test "$*" != "X conftest.file $srcdir/configure"; then
4388 # If neither matched, then we have a broken ls. This can happen
4389 # if, for instance, CONFIG_SHELL is bash and it inherits a
4390 # broken ls alias from the environment. This has actually
4391 # happened. Such a system could not be considered "sane".
4392 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4393 alias in your environment" "$LINENO" 5
4396 test "$2" = conftest.file
4398 then
4399 # Ok.
4401 else
4402 as_fn_error $? "newly created file is older than distributed files!
4403 Check your system clock" "$LINENO" 5
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4406 $as_echo "yes" >&6; }
4407 test "$program_prefix" != NONE &&
4408 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4409 # Use a double $ so make ignores it.
4410 test "$program_suffix" != NONE &&
4411 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4412 # Double any \ or $.
4413 # By default was `s,x,x', remove it if useless.
4414 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4415 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4417 # expand $ac_aux_dir to an absolute path
4418 am_aux_dir=`cd $ac_aux_dir && pwd`
4420 if test x"${MISSING+set}" != xset; then
4421 case $am_aux_dir in
4422 *\ * | *\ *)
4423 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4425 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4426 esac
4428 # Use eval to expand $SHELL
4429 if eval "$MISSING --run true"; then
4430 am_missing_run="$MISSING --run "
4431 else
4432 am_missing_run=
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4434 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4437 if test x"${install_sh}" != xset; then
4438 case $am_aux_dir in
4439 *\ * | *\ *)
4440 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4442 install_sh="\${SHELL} $am_aux_dir/install-sh"
4443 esac
4446 # Installed binaries are usually stripped using `strip' when the user
4447 # run `make install-strip'. However `strip' might not be the right
4448 # tool to use in cross-compilation environments, therefore Automake
4449 # will honor the `STRIP' environment variable to overrule this program.
4450 if test "$cross_compiling" != no; then
4451 if test -n "$ac_tool_prefix"; then
4452 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4453 set dummy ${ac_tool_prefix}strip; ac_word=$2
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4455 $as_echo_n "checking for $ac_word... " >&6; }
4456 if test "${ac_cv_prog_STRIP+set}" = set; then :
4457 $as_echo_n "(cached) " >&6
4458 else
4459 if test -n "$STRIP"; then
4460 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4461 else
4462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4463 for as_dir in $PATH
4465 IFS=$as_save_IFS
4466 test -z "$as_dir" && as_dir=.
4467 for ac_exec_ext in '' $ac_executable_extensions; do
4468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4469 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4471 break 2
4473 done
4474 done
4475 IFS=$as_save_IFS
4479 STRIP=$ac_cv_prog_STRIP
4480 if test -n "$STRIP"; then
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4482 $as_echo "$STRIP" >&6; }
4483 else
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4485 $as_echo "no" >&6; }
4490 if test -z "$ac_cv_prog_STRIP"; then
4491 ac_ct_STRIP=$STRIP
4492 # Extract the first word of "strip", so it can be a program name with args.
4493 set dummy strip; ac_word=$2
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4495 $as_echo_n "checking for $ac_word... " >&6; }
4496 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4497 $as_echo_n "(cached) " >&6
4498 else
4499 if test -n "$ac_ct_STRIP"; then
4500 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4501 else
4502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4503 for as_dir in $PATH
4505 IFS=$as_save_IFS
4506 test -z "$as_dir" && as_dir=.
4507 for ac_exec_ext in '' $ac_executable_extensions; do
4508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4509 ac_cv_prog_ac_ct_STRIP="strip"
4510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4511 break 2
4513 done
4514 done
4515 IFS=$as_save_IFS
4519 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4520 if test -n "$ac_ct_STRIP"; then
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4522 $as_echo "$ac_ct_STRIP" >&6; }
4523 else
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4525 $as_echo "no" >&6; }
4528 if test "x$ac_ct_STRIP" = x; then
4529 STRIP=":"
4530 else
4531 case $cross_compiling:$ac_tool_warned in
4532 yes:)
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4534 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4535 ac_tool_warned=yes ;;
4536 esac
4537 STRIP=$ac_ct_STRIP
4539 else
4540 STRIP="$ac_cv_prog_STRIP"
4544 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4547 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4548 if test -z "$MKDIR_P"; then
4549 if test "${ac_cv_path_mkdir+set}" = set; then :
4550 $as_echo_n "(cached) " >&6
4551 else
4552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4555 IFS=$as_save_IFS
4556 test -z "$as_dir" && as_dir=.
4557 for ac_prog in mkdir gmkdir; do
4558 for ac_exec_ext in '' $ac_executable_extensions; do
4559 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4560 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4561 'mkdir (GNU coreutils) '* | \
4562 'mkdir (coreutils) '* | \
4563 'mkdir (fileutils) '4.1*)
4564 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4565 break 3;;
4566 esac
4567 done
4568 done
4569 done
4570 IFS=$as_save_IFS
4574 test -d ./--version && rmdir ./--version
4575 if test "${ac_cv_path_mkdir+set}" = set; then
4576 MKDIR_P="$ac_cv_path_mkdir -p"
4577 else
4578 # As a last resort, use the slow shell script. Don't cache a
4579 # value for MKDIR_P within a source directory, because that will
4580 # break other packages using the cache if that directory is
4581 # removed, or if the value is a relative name.
4582 MKDIR_P="$ac_install_sh -d"
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4586 $as_echo "$MKDIR_P" >&6; }
4588 mkdir_p="$MKDIR_P"
4589 case $mkdir_p in
4590 [\\/$]* | ?:[\\/]*) ;;
4591 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4592 esac
4594 for ac_prog in gawk mawk nawk awk
4596 # Extract the first word of "$ac_prog", so it can be a program name with args.
4597 set dummy $ac_prog; ac_word=$2
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4599 $as_echo_n "checking for $ac_word... " >&6; }
4600 if test "${ac_cv_prog_AWK+set}" = set; then :
4601 $as_echo_n "(cached) " >&6
4602 else
4603 if test -n "$AWK"; then
4604 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4605 else
4606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607 for as_dir in $PATH
4609 IFS=$as_save_IFS
4610 test -z "$as_dir" && as_dir=.
4611 for ac_exec_ext in '' $ac_executable_extensions; do
4612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4613 ac_cv_prog_AWK="$ac_prog"
4614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4615 break 2
4617 done
4618 done
4619 IFS=$as_save_IFS
4623 AWK=$ac_cv_prog_AWK
4624 if test -n "$AWK"; then
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4626 $as_echo "$AWK" >&6; }
4627 else
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4629 $as_echo "no" >&6; }
4633 test -n "$AWK" && break
4634 done
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4637 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4638 set x ${MAKE-make}
4639 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4640 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
4641 $as_echo_n "(cached) " >&6
4642 else
4643 cat >conftest.make <<\_ACEOF
4644 SHELL = /bin/sh
4645 all:
4646 @echo '@@@%%%=$(MAKE)=@@@%%%'
4647 _ACEOF
4648 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4649 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4650 *@@@%%%=?*=@@@%%%*)
4651 eval ac_cv_prog_make_${ac_make}_set=yes;;
4653 eval ac_cv_prog_make_${ac_make}_set=no;;
4654 esac
4655 rm -f conftest.make
4657 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4659 $as_echo "yes" >&6; }
4660 SET_MAKE=
4661 else
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4663 $as_echo "no" >&6; }
4664 SET_MAKE="MAKE=${MAKE-make}"
4667 rm -rf .tst 2>/dev/null
4668 mkdir .tst 2>/dev/null
4669 if test -d .tst; then
4670 am__leading_dot=.
4671 else
4672 am__leading_dot=_
4674 rmdir .tst 2>/dev/null
4676 DEPDIR="${am__leading_dot}deps"
4678 ac_config_commands="$ac_config_commands depfiles"
4681 am_make=${MAKE-make}
4682 cat > confinc << 'END'
4683 am__doit:
4684 @echo this is the am__doit target
4685 .PHONY: am__doit
4687 # If we don't find an include directive, just comment out the code.
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4689 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4690 am__include="#"
4691 am__quote=
4692 _am_result=none
4693 # First try GNU make style include.
4694 echo "include confinc" > confmf
4695 # Ignore all kinds of additional output from `make'.
4696 case `$am_make -s -f confmf 2> /dev/null` in #(
4697 *the\ am__doit\ target*)
4698 am__include=include
4699 am__quote=
4700 _am_result=GNU
4702 esac
4703 # Now try BSD make style include.
4704 if test "$am__include" = "#"; then
4705 echo '.include "confinc"' > confmf
4706 case `$am_make -s -f confmf 2> /dev/null` in #(
4707 *the\ am__doit\ target*)
4708 am__include=.include
4709 am__quote="\""
4710 _am_result=BSD
4712 esac
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4717 $as_echo "$_am_result" >&6; }
4718 rm -f confinc confmf
4720 # Check whether --enable-dependency-tracking was given.
4721 if test "${enable_dependency_tracking+set}" = set; then :
4722 enableval=$enable_dependency_tracking;
4725 if test "x$enable_dependency_tracking" != xno; then
4726 am_depcomp="$ac_aux_dir/depcomp"
4727 AMDEPBACKSLASH='\'
4729 if test "x$enable_dependency_tracking" != xno; then
4730 AMDEP_TRUE=
4731 AMDEP_FALSE='#'
4732 else
4733 AMDEP_TRUE='#'
4734 AMDEP_FALSE=
4738 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4739 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4740 # is not polluted with repeated "-I."
4741 am__isrc=' -I$(srcdir)'
4742 # test to see if srcdir already configured
4743 if test -f $srcdir/config.status; then
4744 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4748 # test whether we have cygpath
4749 if test -z "$CYGPATH_W"; then
4750 if (cygpath --version) >/dev/null 2>/dev/null; then
4751 CYGPATH_W='cygpath -w'
4752 else
4753 CYGPATH_W=echo
4758 # Define the identity of the package.
4759 PACKAGE='xenomai'
4760 VERSION='2.5.94'
4763 cat >>confdefs.h <<_ACEOF
4764 #define PACKAGE "$PACKAGE"
4765 _ACEOF
4768 cat >>confdefs.h <<_ACEOF
4769 #define VERSION "$VERSION"
4770 _ACEOF
4772 # Some tools Automake needs.
4774 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4777 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4780 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4783 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4786 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4788 # We need awk for the "check" target. The system "awk" is bad on
4789 # some platforms.
4790 # Always define AMTAR for backward compatibility.
4792 AMTAR=${AMTAR-"${am_missing_run}tar"}
4794 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4799 depcc="$CC" am_compiler_list=
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4802 $as_echo_n "checking dependency style of $depcc... " >&6; }
4803 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4804 $as_echo_n "(cached) " >&6
4805 else
4806 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4807 # We make a subdir and do the tests there. Otherwise we can end up
4808 # making bogus files that we don't know about and never remove. For
4809 # instance it was reported that on HP-UX the gcc test will end up
4810 # making a dummy file named `D' -- because `-MD' means `put the output
4811 # in D'.
4812 mkdir conftest.dir
4813 # Copy depcomp to subdir because otherwise we won't find it if we're
4814 # using a relative directory.
4815 cp "$am_depcomp" conftest.dir
4816 cd conftest.dir
4817 # We will build objects and dependencies in a subdirectory because
4818 # it helps to detect inapplicable dependency modes. For instance
4819 # both Tru64's cc and ICC support -MD to output dependencies as a
4820 # side effect of compilation, but ICC will put the dependencies in
4821 # the current directory while Tru64 will put them in the object
4822 # directory.
4823 mkdir sub
4825 am_cv_CC_dependencies_compiler_type=none
4826 if test "$am_compiler_list" = ""; then
4827 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4829 am__universal=false
4830 case " $depcc " in #(
4831 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4832 esac
4834 for depmode in $am_compiler_list; do
4835 # Setup a source with many dependencies, because some compilers
4836 # like to wrap large dependency lists on column 80 (with \), and
4837 # we should not choose a depcomp mode which is confused by this.
4839 # We need to recreate these files for each test, as the compiler may
4840 # overwrite some of them when testing with obscure command lines.
4841 # This happens at least with the AIX C compiler.
4842 : > sub/conftest.c
4843 for i in 1 2 3 4 5 6; do
4844 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4845 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4846 # Solaris 8's {/usr,}/bin/sh.
4847 touch sub/conftst$i.h
4848 done
4849 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4851 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4852 # mode. It turns out that the SunPro C++ compiler does not properly
4853 # handle `-M -o', and we need to detect this. Also, some Intel
4854 # versions had trouble with output in subdirs
4855 am__obj=sub/conftest.${OBJEXT-o}
4856 am__minus_obj="-o $am__obj"
4857 case $depmode in
4858 gcc)
4859 # This depmode causes a compiler race in universal mode.
4860 test "$am__universal" = false || continue
4862 nosideeffect)
4863 # after this tag, mechanisms are not by side-effect, so they'll
4864 # only be used when explicitly requested
4865 if test "x$enable_dependency_tracking" = xyes; then
4866 continue
4867 else
4868 break
4871 msvisualcpp | msvcmsys)
4872 # This compiler won't grok `-c -o', but also, the minuso test has
4873 # not run yet. These depmodes are late enough in the game, and
4874 # so weak that their functioning should not be impacted.
4875 am__obj=conftest.${OBJEXT-o}
4876 am__minus_obj=
4878 none) break ;;
4879 esac
4880 if depmode=$depmode \
4881 source=sub/conftest.c object=$am__obj \
4882 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4883 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4884 >/dev/null 2>conftest.err &&
4885 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4886 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4887 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4888 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4889 # icc doesn't choke on unknown options, it will just issue warnings
4890 # or remarks (even with -Werror). So we grep stderr for any message
4891 # that says an option was ignored or not supported.
4892 # When given -MP, icc 7.0 and 7.1 complain thusly:
4893 # icc: Command line warning: ignoring option '-M'; no argument required
4894 # The diagnosis changed in icc 8.0:
4895 # icc: Command line remark: option '-MP' not supported
4896 if (grep 'ignoring option' conftest.err ||
4897 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4898 am_cv_CC_dependencies_compiler_type=$depmode
4899 break
4902 done
4904 cd ..
4905 rm -rf conftest.dir
4906 else
4907 am_cv_CC_dependencies_compiler_type=none
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4912 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4913 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4916 test "x$enable_dependency_tracking" != xno \
4917 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4918 am__fastdepCC_TRUE=
4919 am__fastdepCC_FALSE='#'
4920 else
4921 am__fastdepCC_TRUE='#'
4922 am__fastdepCC_FALSE=
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4929 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4930 # Check whether --enable-maintainer-mode was given.
4931 if test "${enable_maintainer_mode+set}" = set; then :
4932 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4933 else
4934 USE_MAINTAINER_MODE=no
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4938 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4939 if test $USE_MAINTAINER_MODE = yes; then
4940 MAINTAINER_MODE_TRUE=
4941 MAINTAINER_MODE_FALSE='#'
4942 else
4943 MAINTAINER_MODE_TRUE='#'
4944 MAINTAINER_MODE_FALSE=
4947 MAINT=$MAINTAINER_MODE_TRUE
4950 # By default we simply use the C compiler to build assembly code.
4952 test "${CCAS+set}" = set || CCAS=$CC
4953 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4957 depcc="$CCAS" am_compiler_list=
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4960 $as_echo_n "checking dependency style of $depcc... " >&6; }
4961 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4962 $as_echo_n "(cached) " >&6
4963 else
4964 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4965 # We make a subdir and do the tests there. Otherwise we can end up
4966 # making bogus files that we don't know about and never remove. For
4967 # instance it was reported that on HP-UX the gcc test will end up
4968 # making a dummy file named `D' -- because `-MD' means `put the output
4969 # in D'.
4970 mkdir conftest.dir
4971 # Copy depcomp to subdir because otherwise we won't find it if we're
4972 # using a relative directory.
4973 cp "$am_depcomp" conftest.dir
4974 cd conftest.dir
4975 # We will build objects and dependencies in a subdirectory because
4976 # it helps to detect inapplicable dependency modes. For instance
4977 # both Tru64's cc and ICC support -MD to output dependencies as a
4978 # side effect of compilation, but ICC will put the dependencies in
4979 # the current directory while Tru64 will put them in the object
4980 # directory.
4981 mkdir sub
4983 am_cv_CCAS_dependencies_compiler_type=none
4984 if test "$am_compiler_list" = ""; then
4985 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4987 am__universal=false
4990 for depmode in $am_compiler_list; do
4991 # Setup a source with many dependencies, because some compilers
4992 # like to wrap large dependency lists on column 80 (with \), and
4993 # we should not choose a depcomp mode which is confused by this.
4995 # We need to recreate these files for each test, as the compiler may
4996 # overwrite some of them when testing with obscure command lines.
4997 # This happens at least with the AIX C compiler.
4998 : > sub/conftest.c
4999 for i in 1 2 3 4 5 6; do
5000 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5001 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5002 # Solaris 8's {/usr,}/bin/sh.
5003 touch sub/conftst$i.h
5004 done
5005 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5007 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5008 # mode. It turns out that the SunPro C++ compiler does not properly
5009 # handle `-M -o', and we need to detect this. Also, some Intel
5010 # versions had trouble with output in subdirs
5011 am__obj=sub/conftest.${OBJEXT-o}
5012 am__minus_obj="-o $am__obj"
5013 case $depmode in
5014 gcc)
5015 # This depmode causes a compiler race in universal mode.
5016 test "$am__universal" = false || continue
5018 nosideeffect)
5019 # after this tag, mechanisms are not by side-effect, so they'll
5020 # only be used when explicitly requested
5021 if test "x$enable_dependency_tracking" = xyes; then
5022 continue
5023 else
5024 break
5027 msvisualcpp | msvcmsys)
5028 # This compiler won't grok `-c -o', but also, the minuso test has
5029 # not run yet. These depmodes are late enough in the game, and
5030 # so weak that their functioning should not be impacted.
5031 am__obj=conftest.${OBJEXT-o}
5032 am__minus_obj=
5034 none) break ;;
5035 esac
5036 if depmode=$depmode \
5037 source=sub/conftest.c object=$am__obj \
5038 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5039 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5040 >/dev/null 2>conftest.err &&
5041 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5042 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5043 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5044 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5045 # icc doesn't choke on unknown options, it will just issue warnings
5046 # or remarks (even with -Werror). So we grep stderr for any message
5047 # that says an option was ignored or not supported.
5048 # When given -MP, icc 7.0 and 7.1 complain thusly:
5049 # icc: Command line warning: ignoring option '-M'; no argument required
5050 # The diagnosis changed in icc 8.0:
5051 # icc: Command line remark: option '-MP' not supported
5052 if (grep 'ignoring option' conftest.err ||
5053 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5054 am_cv_CCAS_dependencies_compiler_type=$depmode
5055 break
5058 done
5060 cd ..
5061 rm -rf conftest.dir
5062 else
5063 am_cv_CCAS_dependencies_compiler_type=none
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
5068 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5069 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
5072 test "x$enable_dependency_tracking" != xno \
5073 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
5074 am__fastdepCCAS_TRUE=
5075 am__fastdepCCAS_FALSE='#'
5076 else
5077 am__fastdepCCAS_TRUE='#'
5078 am__fastdepCCAS_FALSE=
5083 for ac_prog in flex lex
5085 # Extract the first word of "$ac_prog", so it can be a program name with args.
5086 set dummy $ac_prog; ac_word=$2
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5088 $as_echo_n "checking for $ac_word... " >&6; }
5089 if test "${ac_cv_prog_LEX+set}" = set; then :
5090 $as_echo_n "(cached) " >&6
5091 else
5092 if test -n "$LEX"; then
5093 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5094 else
5095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5096 for as_dir in $PATH
5098 IFS=$as_save_IFS
5099 test -z "$as_dir" && as_dir=.
5100 for ac_exec_ext in '' $ac_executable_extensions; do
5101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5102 ac_cv_prog_LEX="$ac_prog"
5103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5104 break 2
5106 done
5107 done
5108 IFS=$as_save_IFS
5112 LEX=$ac_cv_prog_LEX
5113 if test -n "$LEX"; then
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5115 $as_echo "$LEX" >&6; }
5116 else
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5118 $as_echo "no" >&6; }
5122 test -n "$LEX" && break
5123 done
5124 test -n "$LEX" || LEX=":"
5126 if test "x$LEX" != "x:"; then
5127 cat >conftest.l <<_ACEOF
5129 a { ECHO; }
5130 b { REJECT; }
5131 c { yymore (); }
5132 d { yyless (1); }
5133 e { yyless (input () != 0); }
5134 f { unput (yytext[0]); }
5135 . { BEGIN INITIAL; }
5137 #ifdef YYTEXT_POINTER
5138 extern char *yytext;
5139 #endif
5141 main (void)
5143 return ! yylex () + ! yywrap ();
5145 _ACEOF
5146 { { ac_try="$LEX conftest.l"
5147 case "(($ac_try" in
5148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5149 *) ac_try_echo=$ac_try;;
5150 esac
5151 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5152 $as_echo "$ac_try_echo"; } >&5
5153 (eval "$LEX conftest.l") 2>&5
5154 ac_status=$?
5155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5156 test $ac_status = 0; }
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
5158 $as_echo_n "checking lex output file root... " >&6; }
5159 if test "${ac_cv_prog_lex_root+set}" = set; then :
5160 $as_echo_n "(cached) " >&6
5161 else
5163 if test -f lex.yy.c; then
5164 ac_cv_prog_lex_root=lex.yy
5165 elif test -f lexyy.c; then
5166 ac_cv_prog_lex_root=lexyy
5167 else
5168 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
5172 $as_echo "$ac_cv_prog_lex_root" >&6; }
5173 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5175 if test -z "${LEXLIB+set}"; then
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
5177 $as_echo_n "checking lex library... " >&6; }
5178 if test "${ac_cv_lib_lex+set}" = set; then :
5179 $as_echo_n "(cached) " >&6
5180 else
5182 ac_save_LIBS=$LIBS
5183 ac_cv_lib_lex='none needed'
5184 for ac_lib in '' -lfl -ll; do
5185 LIBS="$ac_lib $ac_save_LIBS"
5186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5187 /* end confdefs.h. */
5188 `cat $LEX_OUTPUT_ROOT.c`
5189 _ACEOF
5190 if ac_fn_c_try_link "$LINENO"; then :
5191 ac_cv_lib_lex=$ac_lib
5193 rm -f core conftest.err conftest.$ac_objext \
5194 conftest$ac_exeext conftest.$ac_ext
5195 test "$ac_cv_lib_lex" != 'none needed' && break
5196 done
5197 LIBS=$ac_save_LIBS
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
5201 $as_echo "$ac_cv_lib_lex" >&6; }
5202 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
5207 $as_echo_n "checking whether yytext is a pointer... " >&6; }
5208 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
5209 $as_echo_n "(cached) " >&6
5210 else
5211 # POSIX says lex can declare yytext either as a pointer or an array; the
5212 # default is implementation-dependent. Figure out which it is, since
5213 # not all implementations provide the %pointer and %array declarations.
5214 ac_cv_prog_lex_yytext_pointer=no
5215 ac_save_LIBS=$LIBS
5216 LIBS="$LEXLIB $ac_save_LIBS"
5217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5218 /* end confdefs.h. */
5219 #define YYTEXT_POINTER 1
5220 `cat $LEX_OUTPUT_ROOT.c`
5221 _ACEOF
5222 if ac_fn_c_try_link "$LINENO"; then :
5223 ac_cv_prog_lex_yytext_pointer=yes
5225 rm -f core conftest.err conftest.$ac_objext \
5226 conftest$ac_exeext conftest.$ac_ext
5227 LIBS=$ac_save_LIBS
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
5231 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
5232 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5234 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
5237 rm -f conftest.l $LEX_OUTPUT_ROOT.c
5240 if test "$LEX" = :; then
5241 LEX=${am_missing_run}flex
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target architecture" >&5
5245 $as_echo_n "checking for target architecture... " >&6; }
5247 CONFIG_XENO_FASTSYNCH=
5249 if test x$host_alias = x; then
5250 build_for=$host
5251 else
5252 build_for=$host_alias
5255 use__thread=no
5256 case "$build_for" in
5257 i*86*-*)
5258 use__thread=yes
5259 XENO_TARGET_ARCH=x86
5260 CONFIG_XENO_FASTSYNCH=y
5261 CONFIG_XENO_DEFAULT_PERIOD=100000
5263 ppc-*)
5264 XENO_TARGET_ARCH=powerpc
5265 CONFIG_XENO_FASTSYNCH=y
5266 CONFIG_XENO_DEFAULT_PERIOD=100000
5268 powerpc-*|powerpc64-*|ppc64-*)
5269 XENO_TARGET_ARCH=powerpc
5270 CONFIG_XENO_FASTSYNCH=y
5271 CONFIG_XENO_DEFAULT_PERIOD=100000
5273 bfin-*|bfinnommu-*|blackfin-*)
5274 XENO_TARGET_ARCH=blackfin
5275 CONFIG_XENO_DEFAULT_PERIOD=100000
5277 arm*-*)
5278 XENO_TARGET_ARCH=arm
5279 CONFIG_XENO_DEFAULT_PERIOD=1000000
5280 # We set CONFIG_XENO_FASTSYNCH in asm/features.h, when we know
5281 # what architecture we are running
5283 x86_64-*|amd64-*)
5284 use__thread=yes
5285 XENO_TARGET_ARCH=x86
5286 CONFIG_XENO_FASTSYNCH=y
5287 CONFIG_XENO_DEFAULT_PERIOD=100000
5289 nios2-*)
5290 XENO_TARGET_ARCH=nios2
5291 CONFIG_XENO_DEFAULT_PERIOD=10000000
5293 sh-*|sh4-*)
5294 XENO_TARGET_ARCH=sh
5295 CONFIG_XENO_DEFAULT_PERIOD=100000
5297 *) echo ""
5298 echo "*******************************************"
5299 echo "Still unsupported target: $build_for -- Sorry."
5300 echo "*******************************************"
5301 echo ""
5302 exit 1;;
5303 esac
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XENO_TARGET_ARCH" >&5
5306 $as_echo "$XENO_TARGET_ARCH" >&6; }
5307 if test $XENO_TARGET_ARCH = x86; then
5308 XENO_TARGET_ARCH_X86_TRUE=
5309 XENO_TARGET_ARCH_X86_FALSE='#'
5310 else
5311 XENO_TARGET_ARCH_X86_TRUE='#'
5312 XENO_TARGET_ARCH_X86_FALSE=
5316 case "$XENO_TARGET_ARCH" in
5317 nios2)
5318 # Check whether --enable-shared was given.
5319 if test "${enable_shared+set}" = set; then :
5320 enableval=$enable_shared; p=${PACKAGE-default}
5321 case $enableval in
5322 yes) enable_shared=yes ;;
5323 no) enable_shared=no ;;
5325 enable_shared=no
5326 # Look at the argument we got. We use all the common list separators.
5327 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5328 for pkg in $enableval; do
5329 IFS="$lt_save_ifs"
5330 if test "X$pkg" = "X$p"; then
5331 enable_shared=yes
5333 done
5334 IFS="$lt_save_ifs"
5336 esac
5337 else
5338 enable_shared=no
5351 # Check whether --enable-shared was given.
5352 if test "${enable_shared+set}" = set; then :
5353 enableval=$enable_shared; p=${PACKAGE-default}
5354 case $enableval in
5355 yes) enable_shared=yes ;;
5356 no) enable_shared=no ;;
5358 enable_shared=no
5359 # Look at the argument we got. We use all the common list separators.
5360 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5361 for pkg in $enableval; do
5362 IFS="$lt_save_ifs"
5363 if test "X$pkg" = "X$p"; then
5364 enable_shared=yes
5366 done
5367 IFS="$lt_save_ifs"
5369 esac
5370 else
5371 enable_shared=yes
5380 esac
5381 case `pwd` in
5382 *\ * | *\ *)
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5384 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5385 esac
5389 macro_version='2.2.6b'
5390 macro_revision='1.3017'
5404 ltmain="$ac_aux_dir/ltmain.sh"
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5407 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5408 if test "${ac_cv_path_SED+set}" = set; then :
5409 $as_echo_n "(cached) " >&6
5410 else
5411 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5412 for ac_i in 1 2 3 4 5 6 7; do
5413 ac_script="$ac_script$as_nl$ac_script"
5414 done
5415 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5416 { ac_script=; unset ac_script;}
5417 if test -z "$SED"; then
5418 ac_path_SED_found=false
5419 # Loop through the user's path and test for each of PROGNAME-LIST
5420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5421 for as_dir in $PATH
5423 IFS=$as_save_IFS
5424 test -z "$as_dir" && as_dir=.
5425 for ac_prog in sed gsed; do
5426 for ac_exec_ext in '' $ac_executable_extensions; do
5427 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5428 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5429 # Check for GNU ac_path_SED and select it if it is found.
5430 # Check for GNU $ac_path_SED
5431 case `"$ac_path_SED" --version 2>&1` in
5432 *GNU*)
5433 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5435 ac_count=0
5436 $as_echo_n 0123456789 >"conftest.in"
5437 while :
5439 cat "conftest.in" "conftest.in" >"conftest.tmp"
5440 mv "conftest.tmp" "conftest.in"
5441 cp "conftest.in" "conftest.nl"
5442 $as_echo '' >> "conftest.nl"
5443 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5444 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5445 as_fn_arith $ac_count + 1 && ac_count=$as_val
5446 if test $ac_count -gt ${ac_path_SED_max-0}; then
5447 # Best one so far, save it but keep looking for a better one
5448 ac_cv_path_SED="$ac_path_SED"
5449 ac_path_SED_max=$ac_count
5451 # 10*(2^10) chars as input seems more than enough
5452 test $ac_count -gt 10 && break
5453 done
5454 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5455 esac
5457 $ac_path_SED_found && break 3
5458 done
5459 done
5460 done
5461 IFS=$as_save_IFS
5462 if test -z "$ac_cv_path_SED"; then
5463 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5465 else
5466 ac_cv_path_SED=$SED
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5471 $as_echo "$ac_cv_path_SED" >&6; }
5472 SED="$ac_cv_path_SED"
5473 rm -f conftest.sed
5475 test -z "$SED" && SED=sed
5476 Xsed="$SED -e 1s/^X//"
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5489 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5490 if test "${ac_cv_path_GREP+set}" = set; then :
5491 $as_echo_n "(cached) " >&6
5492 else
5493 if test -z "$GREP"; then
5494 ac_path_GREP_found=false
5495 # Loop through the user's path and test for each of PROGNAME-LIST
5496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5497 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5499 IFS=$as_save_IFS
5500 test -z "$as_dir" && as_dir=.
5501 for ac_prog in grep ggrep; do
5502 for ac_exec_ext in '' $ac_executable_extensions; do
5503 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5504 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5505 # Check for GNU ac_path_GREP and select it if it is found.
5506 # Check for GNU $ac_path_GREP
5507 case `"$ac_path_GREP" --version 2>&1` in
5508 *GNU*)
5509 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5511 ac_count=0
5512 $as_echo_n 0123456789 >"conftest.in"
5513 while :
5515 cat "conftest.in" "conftest.in" >"conftest.tmp"
5516 mv "conftest.tmp" "conftest.in"
5517 cp "conftest.in" "conftest.nl"
5518 $as_echo 'GREP' >> "conftest.nl"
5519 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5520 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5521 as_fn_arith $ac_count + 1 && ac_count=$as_val
5522 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5523 # Best one so far, save it but keep looking for a better one
5524 ac_cv_path_GREP="$ac_path_GREP"
5525 ac_path_GREP_max=$ac_count
5527 # 10*(2^10) chars as input seems more than enough
5528 test $ac_count -gt 10 && break
5529 done
5530 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5531 esac
5533 $ac_path_GREP_found && break 3
5534 done
5535 done
5536 done
5537 IFS=$as_save_IFS
5538 if test -z "$ac_cv_path_GREP"; then
5539 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5541 else
5542 ac_cv_path_GREP=$GREP
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5547 $as_echo "$ac_cv_path_GREP" >&6; }
5548 GREP="$ac_cv_path_GREP"
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5552 $as_echo_n "checking for egrep... " >&6; }
5553 if test "${ac_cv_path_EGREP+set}" = set; then :
5554 $as_echo_n "(cached) " >&6
5555 else
5556 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5557 then ac_cv_path_EGREP="$GREP -E"
5558 else
5559 if test -z "$EGREP"; then
5560 ac_path_EGREP_found=false
5561 # Loop through the user's path and test for each of PROGNAME-LIST
5562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5563 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5565 IFS=$as_save_IFS
5566 test -z "$as_dir" && as_dir=.
5567 for ac_prog in egrep; do
5568 for ac_exec_ext in '' $ac_executable_extensions; do
5569 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5570 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5571 # Check for GNU ac_path_EGREP and select it if it is found.
5572 # Check for GNU $ac_path_EGREP
5573 case `"$ac_path_EGREP" --version 2>&1` in
5574 *GNU*)
5575 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5577 ac_count=0
5578 $as_echo_n 0123456789 >"conftest.in"
5579 while :
5581 cat "conftest.in" "conftest.in" >"conftest.tmp"
5582 mv "conftest.tmp" "conftest.in"
5583 cp "conftest.in" "conftest.nl"
5584 $as_echo 'EGREP' >> "conftest.nl"
5585 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5586 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5587 as_fn_arith $ac_count + 1 && ac_count=$as_val
5588 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5589 # Best one so far, save it but keep looking for a better one
5590 ac_cv_path_EGREP="$ac_path_EGREP"
5591 ac_path_EGREP_max=$ac_count
5593 # 10*(2^10) chars as input seems more than enough
5594 test $ac_count -gt 10 && break
5595 done
5596 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5597 esac
5599 $ac_path_EGREP_found && break 3
5600 done
5601 done
5602 done
5603 IFS=$as_save_IFS
5604 if test -z "$ac_cv_path_EGREP"; then
5605 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5607 else
5608 ac_cv_path_EGREP=$EGREP
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5614 $as_echo "$ac_cv_path_EGREP" >&6; }
5615 EGREP="$ac_cv_path_EGREP"
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5619 $as_echo_n "checking for fgrep... " >&6; }
5620 if test "${ac_cv_path_FGREP+set}" = set; then :
5621 $as_echo_n "(cached) " >&6
5622 else
5623 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5624 then ac_cv_path_FGREP="$GREP -F"
5625 else
5626 if test -z "$FGREP"; then
5627 ac_path_FGREP_found=false
5628 # Loop through the user's path and test for each of PROGNAME-LIST
5629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5630 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5632 IFS=$as_save_IFS
5633 test -z "$as_dir" && as_dir=.
5634 for ac_prog in fgrep; do
5635 for ac_exec_ext in '' $ac_executable_extensions; do
5636 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5637 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5638 # Check for GNU ac_path_FGREP and select it if it is found.
5639 # Check for GNU $ac_path_FGREP
5640 case `"$ac_path_FGREP" --version 2>&1` in
5641 *GNU*)
5642 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5644 ac_count=0
5645 $as_echo_n 0123456789 >"conftest.in"
5646 while :
5648 cat "conftest.in" "conftest.in" >"conftest.tmp"
5649 mv "conftest.tmp" "conftest.in"
5650 cp "conftest.in" "conftest.nl"
5651 $as_echo 'FGREP' >> "conftest.nl"
5652 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5653 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5654 as_fn_arith $ac_count + 1 && ac_count=$as_val
5655 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5656 # Best one so far, save it but keep looking for a better one
5657 ac_cv_path_FGREP="$ac_path_FGREP"
5658 ac_path_FGREP_max=$ac_count
5660 # 10*(2^10) chars as input seems more than enough
5661 test $ac_count -gt 10 && break
5662 done
5663 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5664 esac
5666 $ac_path_FGREP_found && break 3
5667 done
5668 done
5669 done
5670 IFS=$as_save_IFS
5671 if test -z "$ac_cv_path_FGREP"; then
5672 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5674 else
5675 ac_cv_path_FGREP=$FGREP
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5681 $as_echo "$ac_cv_path_FGREP" >&6; }
5682 FGREP="$ac_cv_path_FGREP"
5685 test -z "$GREP" && GREP=grep
5705 # Check whether --with-gnu-ld was given.
5706 if test "${with_gnu_ld+set}" = set; then :
5707 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5708 else
5709 with_gnu_ld=no
5712 ac_prog=ld
5713 if test "$GCC" = yes; then
5714 # Check if gcc -print-prog-name=ld gives a path.
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5716 $as_echo_n "checking for ld used by $CC... " >&6; }
5717 case $host in
5718 *-*-mingw*)
5719 # gcc leaves a trailing carriage return which upsets mingw
5720 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5722 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5723 esac
5724 case $ac_prog in
5725 # Accept absolute paths.
5726 [\\/]* | ?:[\\/]*)
5727 re_direlt='/[^/][^/]*/\.\./'
5728 # Canonicalize the pathname of ld
5729 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5730 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5731 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5732 done
5733 test -z "$LD" && LD="$ac_prog"
5736 # If it fails, then pretend we aren't using GCC.
5737 ac_prog=ld
5740 # If it is relative, then search for the first ld in PATH.
5741 with_gnu_ld=unknown
5743 esac
5744 elif test "$with_gnu_ld" = yes; then
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5746 $as_echo_n "checking for GNU ld... " >&6; }
5747 else
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5749 $as_echo_n "checking for non-GNU ld... " >&6; }
5751 if test "${lt_cv_path_LD+set}" = set; then :
5752 $as_echo_n "(cached) " >&6
5753 else
5754 if test -z "$LD"; then
5755 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5756 for ac_dir in $PATH; do
5757 IFS="$lt_save_ifs"
5758 test -z "$ac_dir" && ac_dir=.
5759 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5760 lt_cv_path_LD="$ac_dir/$ac_prog"
5761 # Check to see if the program is GNU ld. I'd rather use --version,
5762 # but apparently some variants of GNU ld only accept -v.
5763 # Break only if it was the GNU/non-GNU ld that we prefer.
5764 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5765 *GNU* | *'with BFD'*)
5766 test "$with_gnu_ld" != no && break
5769 test "$with_gnu_ld" != yes && break
5771 esac
5773 done
5774 IFS="$lt_save_ifs"
5775 else
5776 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5780 LD="$lt_cv_path_LD"
5781 if test -n "$LD"; then
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5783 $as_echo "$LD" >&6; }
5784 else
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5786 $as_echo "no" >&6; }
5788 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5790 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5791 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5792 $as_echo_n "(cached) " >&6
5793 else
5794 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5795 case `$LD -v 2>&1 </dev/null` in
5796 *GNU* | *'with BFD'*)
5797 lt_cv_prog_gnu_ld=yes
5800 lt_cv_prog_gnu_ld=no
5802 esac
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5805 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5806 with_gnu_ld=$lt_cv_prog_gnu_ld
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5817 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5818 if test "${lt_cv_path_NM+set}" = set; then :
5819 $as_echo_n "(cached) " >&6
5820 else
5821 if test -n "$NM"; then
5822 # Let the user override the test.
5823 lt_cv_path_NM="$NM"
5824 else
5825 lt_nm_to_check="${ac_tool_prefix}nm"
5826 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5827 lt_nm_to_check="$lt_nm_to_check nm"
5829 for lt_tmp_nm in $lt_nm_to_check; do
5830 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5831 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5832 IFS="$lt_save_ifs"
5833 test -z "$ac_dir" && ac_dir=.
5834 tmp_nm="$ac_dir/$lt_tmp_nm"
5835 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5836 # Check to see if the nm accepts a BSD-compat flag.
5837 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5838 # nm: unknown option "B" ignored
5839 # Tru64's nm complains that /dev/null is an invalid object file
5840 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5841 */dev/null* | *'Invalid file or object type'*)
5842 lt_cv_path_NM="$tmp_nm -B"
5843 break
5846 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5847 */dev/null*)
5848 lt_cv_path_NM="$tmp_nm -p"
5849 break
5852 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5853 continue # so that we can try to find one that supports BSD flags
5855 esac
5857 esac
5859 done
5860 IFS="$lt_save_ifs"
5861 done
5862 : ${lt_cv_path_NM=no}
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5866 $as_echo "$lt_cv_path_NM" >&6; }
5867 if test "$lt_cv_path_NM" != "no"; then
5868 NM="$lt_cv_path_NM"
5869 else
5870 # Didn't find any BSD compatible name lister, look for dumpbin.
5871 if test -n "$ac_tool_prefix"; then
5872 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5874 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5875 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5877 $as_echo_n "checking for $ac_word... " >&6; }
5878 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5879 $as_echo_n "(cached) " >&6
5880 else
5881 if test -n "$DUMPBIN"; then
5882 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5883 else
5884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885 for as_dir in $PATH
5887 IFS=$as_save_IFS
5888 test -z "$as_dir" && as_dir=.
5889 for ac_exec_ext in '' $ac_executable_extensions; do
5890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5891 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5893 break 2
5895 done
5896 done
5897 IFS=$as_save_IFS
5901 DUMPBIN=$ac_cv_prog_DUMPBIN
5902 if test -n "$DUMPBIN"; then
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5904 $as_echo "$DUMPBIN" >&6; }
5905 else
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5907 $as_echo "no" >&6; }
5911 test -n "$DUMPBIN" && break
5912 done
5914 if test -z "$DUMPBIN"; then
5915 ac_ct_DUMPBIN=$DUMPBIN
5916 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5918 # Extract the first word of "$ac_prog", so it can be a program name with args.
5919 set dummy $ac_prog; ac_word=$2
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5921 $as_echo_n "checking for $ac_word... " >&6; }
5922 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5923 $as_echo_n "(cached) " >&6
5924 else
5925 if test -n "$ac_ct_DUMPBIN"; then
5926 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5927 else
5928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929 for as_dir in $PATH
5931 IFS=$as_save_IFS
5932 test -z "$as_dir" && as_dir=.
5933 for ac_exec_ext in '' $ac_executable_extensions; do
5934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5935 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5937 break 2
5939 done
5940 done
5941 IFS=$as_save_IFS
5945 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5946 if test -n "$ac_ct_DUMPBIN"; then
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5948 $as_echo "$ac_ct_DUMPBIN" >&6; }
5949 else
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5951 $as_echo "no" >&6; }
5955 test -n "$ac_ct_DUMPBIN" && break
5956 done
5958 if test "x$ac_ct_DUMPBIN" = x; then
5959 DUMPBIN=":"
5960 else
5961 case $cross_compiling:$ac_tool_warned in
5962 yes:)
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5964 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5965 ac_tool_warned=yes ;;
5966 esac
5967 DUMPBIN=$ac_ct_DUMPBIN
5972 if test "$DUMPBIN" != ":"; then
5973 NM="$DUMPBIN"
5976 test -z "$NM" && NM=nm
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5984 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5985 if test "${lt_cv_nm_interface+set}" = set; then :
5986 $as_echo_n "(cached) " >&6
5987 else
5988 lt_cv_nm_interface="BSD nm"
5989 echo "int some_variable = 0;" > conftest.$ac_ext
5990 (eval echo "\"\$as_me:5990: $ac_compile\"" >&5)
5991 (eval "$ac_compile" 2>conftest.err)
5992 cat conftest.err >&5
5993 (eval echo "\"\$as_me:5993: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5994 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5995 cat conftest.err >&5
5996 (eval echo "\"\$as_me:5996: output\"" >&5)
5997 cat conftest.out >&5
5998 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5999 lt_cv_nm_interface="MS dumpbin"
6001 rm -f conftest*
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6004 $as_echo "$lt_cv_nm_interface" >&6; }
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6007 $as_echo_n "checking whether ln -s works... " >&6; }
6008 LN_S=$as_ln_s
6009 if test "$LN_S" = "ln -s"; then
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6011 $as_echo "yes" >&6; }
6012 else
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6014 $as_echo "no, using $LN_S" >&6; }
6017 # find the maximum length of command line arguments
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6019 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6020 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6021 $as_echo_n "(cached) " >&6
6022 else
6024 teststring="ABCD"
6026 case $build_os in
6027 msdosdjgpp*)
6028 # On DJGPP, this test can blow up pretty badly due to problems in libc
6029 # (any single argument exceeding 2000 bytes causes a buffer overrun
6030 # during glob expansion). Even if it were fixed, the result of this
6031 # check would be larger than it should be.
6032 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6035 gnu*)
6036 # Under GNU Hurd, this test is not required because there is
6037 # no limit to the length of command line arguments.
6038 # Libtool will interpret -1 as no limit whatsoever
6039 lt_cv_sys_max_cmd_len=-1;
6042 cygwin* | mingw*)
6043 # On Win9x/ME, this test blows up -- it succeeds, but takes
6044 # about 5 minutes as the teststring grows exponentially.
6045 # Worse, since 9x/ME are not pre-emptively multitasking,
6046 # you end up with a "frozen" computer, even though with patience
6047 # the test eventually succeeds (with a max line length of 256k).
6048 # Instead, let's just punt: use the minimum linelength reported by
6049 # all of the supported platforms: 8192 (on NT/2K/XP).
6050 lt_cv_sys_max_cmd_len=8192;
6053 amigaos*)
6054 # On AmigaOS with pdksh, this test takes hours, literally.
6055 # So we just punt and use a minimum line length of 8192.
6056 lt_cv_sys_max_cmd_len=8192;
6059 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6060 # This has been around since 386BSD, at least. Likely further.
6061 if test -x /sbin/sysctl; then
6062 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6063 elif test -x /usr/sbin/sysctl; then
6064 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6065 else
6066 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6068 # And add a safety zone
6069 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6070 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6073 interix*)
6074 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6075 lt_cv_sys_max_cmd_len=196608
6078 osf*)
6079 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6080 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6081 # nice to cause kernel panics so lets avoid the loop below.
6082 # First set a reasonable default.
6083 lt_cv_sys_max_cmd_len=16384
6085 if test -x /sbin/sysconfig; then
6086 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6087 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6088 esac
6091 sco3.2v5*)
6092 lt_cv_sys_max_cmd_len=102400
6094 sysv5* | sco5v6* | sysv4.2uw2*)
6095 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6096 if test -n "$kargmax"; then
6097 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6098 else
6099 lt_cv_sys_max_cmd_len=32768
6103 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6104 if test -n "$lt_cv_sys_max_cmd_len"; then
6105 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6106 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6107 else
6108 # Make teststring a little bigger before we do anything with it.
6109 # a 1K string should be a reasonable start.
6110 for i in 1 2 3 4 5 6 7 8 ; do
6111 teststring=$teststring$teststring
6112 done
6113 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6114 # If test is not a shell built-in, we'll probably end up computing a
6115 # maximum length that is only half of the actual maximum length, but
6116 # we can't tell.
6117 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6118 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6119 test $i != 17 # 1/2 MB should be enough
6121 i=`expr $i + 1`
6122 teststring=$teststring$teststring
6123 done
6124 # Only check the string length outside the loop.
6125 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6126 teststring=
6127 # Add a significant safety factor because C++ compilers can tack on
6128 # massive amounts of additional arguments before passing them to the
6129 # linker. It appears as though 1/2 is a usable value.
6130 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6133 esac
6137 if test -n $lt_cv_sys_max_cmd_len ; then
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6139 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6140 else
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6142 $as_echo "none" >&6; }
6144 max_cmd_len=$lt_cv_sys_max_cmd_len
6151 : ${CP="cp -f"}
6152 : ${MV="mv -f"}
6153 : ${RM="rm -f"}
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6156 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6157 # Try some XSI features
6158 xsi_shell=no
6159 ( _lt_dummy="a/b/c"
6160 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6161 = c,a/b,, \
6162 && eval 'test $(( 1 + 1 )) -eq 2 \
6163 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6164 && xsi_shell=yes
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6166 $as_echo "$xsi_shell" >&6; }
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6170 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6171 lt_shell_append=no
6172 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6173 >/dev/null 2>&1 \
6174 && lt_shell_append=yes
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6176 $as_echo "$lt_shell_append" >&6; }
6179 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6180 lt_unset=unset
6181 else
6182 lt_unset=false
6189 # test EBCDIC or ASCII
6190 case `echo X|tr X '\101'` in
6191 A) # ASCII based system
6192 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6193 lt_SP2NL='tr \040 \012'
6194 lt_NL2SP='tr \015\012 \040\040'
6196 *) # EBCDIC based system
6197 lt_SP2NL='tr \100 \n'
6198 lt_NL2SP='tr \r\n \100\100'
6200 esac
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6211 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6212 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6213 $as_echo_n "(cached) " >&6
6214 else
6215 lt_cv_ld_reload_flag='-r'
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6218 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6219 reload_flag=$lt_cv_ld_reload_flag
6220 case $reload_flag in
6221 "" | " "*) ;;
6222 *) reload_flag=" $reload_flag" ;;
6223 esac
6224 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6225 case $host_os in
6226 darwin*)
6227 if test "$GCC" = yes; then
6228 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6229 else
6230 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6233 esac
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6245 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6246 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6247 $as_echo_n "(cached) " >&6
6248 else
6249 lt_cv_file_magic_cmd='$MAGIC_CMD'
6250 lt_cv_file_magic_test_file=
6251 lt_cv_deplibs_check_method='unknown'
6252 # Need to set the preceding variable on all platforms that support
6253 # interlibrary dependencies.
6254 # 'none' -- dependencies not supported.
6255 # `unknown' -- same as none, but documents that we really don't know.
6256 # 'pass_all' -- all dependencies passed with no checks.
6257 # 'test_compile' -- check by making test program.
6258 # 'file_magic [[regex]]' -- check by looking for files in library path
6259 # which responds to the $file_magic_cmd with a given extended regex.
6260 # If you have `file' or equivalent on your system and you're not sure
6261 # whether `pass_all' will *always* work, you probably want this one.
6263 case $host_os in
6264 aix[4-9]*)
6265 lt_cv_deplibs_check_method=pass_all
6268 beos*)
6269 lt_cv_deplibs_check_method=pass_all
6272 bsdi[45]*)
6273 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6274 lt_cv_file_magic_cmd='/usr/bin/file -L'
6275 lt_cv_file_magic_test_file=/shlib/libc.so
6278 cygwin*)
6279 # func_win32_libid is a shell function defined in ltmain.sh
6280 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6281 lt_cv_file_magic_cmd='func_win32_libid'
6284 mingw* | pw32*)
6285 # Base MSYS/MinGW do not provide the 'file' command needed by
6286 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6287 # unless we find 'file', for example because we are cross-compiling.
6288 if ( file / ) >/dev/null 2>&1; then
6289 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6290 lt_cv_file_magic_cmd='func_win32_libid'
6291 else
6292 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6293 lt_cv_file_magic_cmd='$OBJDUMP -f'
6297 darwin* | rhapsody*)
6298 lt_cv_deplibs_check_method=pass_all
6301 freebsd* | dragonfly*)
6302 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6303 case $host_cpu in
6304 i*86 )
6305 # Not sure whether the presence of OpenBSD here was a mistake.
6306 # Let's accept both of them until this is cleared up.
6307 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6308 lt_cv_file_magic_cmd=/usr/bin/file
6309 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6311 esac
6312 else
6313 lt_cv_deplibs_check_method=pass_all
6317 gnu*)
6318 lt_cv_deplibs_check_method=pass_all
6321 hpux10.20* | hpux11*)
6322 lt_cv_file_magic_cmd=/usr/bin/file
6323 case $host_cpu in
6324 ia64*)
6325 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6326 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6328 hppa*64*)
6329 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6330 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6333 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6334 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6336 esac
6339 interix[3-9]*)
6340 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6341 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6344 irix5* | irix6* | nonstopux*)
6345 case $LD in
6346 *-32|*"-32 ") libmagic=32-bit;;
6347 *-n32|*"-n32 ") libmagic=N32;;
6348 *-64|*"-64 ") libmagic=64-bit;;
6349 *) libmagic=never-match;;
6350 esac
6351 lt_cv_deplibs_check_method=pass_all
6354 # This must be Linux ELF.
6355 linux* | k*bsd*-gnu)
6356 lt_cv_deplibs_check_method=pass_all
6359 netbsd* | netbsdelf*-gnu)
6360 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6361 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6362 else
6363 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6367 newos6*)
6368 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6369 lt_cv_file_magic_cmd=/usr/bin/file
6370 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6373 *nto* | *qnx*)
6374 lt_cv_deplibs_check_method=pass_all
6377 openbsd*)
6378 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6379 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6380 else
6381 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6385 osf3* | osf4* | osf5*)
6386 lt_cv_deplibs_check_method=pass_all
6389 rdos*)
6390 lt_cv_deplibs_check_method=pass_all
6393 solaris*)
6394 lt_cv_deplibs_check_method=pass_all
6397 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6398 lt_cv_deplibs_check_method=pass_all
6401 sysv4 | sysv4.3*)
6402 case $host_vendor in
6403 motorola)
6404 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]'
6405 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6407 ncr)
6408 lt_cv_deplibs_check_method=pass_all
6410 sequent)
6411 lt_cv_file_magic_cmd='/bin/file'
6412 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6414 sni)
6415 lt_cv_file_magic_cmd='/bin/file'
6416 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6417 lt_cv_file_magic_test_file=/lib/libc.so
6419 siemens)
6420 lt_cv_deplibs_check_method=pass_all
6423 lt_cv_deplibs_check_method=pass_all
6425 esac
6428 tpf*)
6429 lt_cv_deplibs_check_method=pass_all
6431 esac
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6435 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6436 file_magic_cmd=$lt_cv_file_magic_cmd
6437 deplibs_check_method=$lt_cv_deplibs_check_method
6438 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6451 if test -n "$ac_tool_prefix"; then
6452 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6453 set dummy ${ac_tool_prefix}ar; ac_word=$2
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6455 $as_echo_n "checking for $ac_word... " >&6; }
6456 if test "${ac_cv_prog_AR+set}" = set; then :
6457 $as_echo_n "(cached) " >&6
6458 else
6459 if test -n "$AR"; then
6460 ac_cv_prog_AR="$AR" # Let the user override the test.
6461 else
6462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6463 for as_dir in $PATH
6465 IFS=$as_save_IFS
6466 test -z "$as_dir" && as_dir=.
6467 for ac_exec_ext in '' $ac_executable_extensions; do
6468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6469 ac_cv_prog_AR="${ac_tool_prefix}ar"
6470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6471 break 2
6473 done
6474 done
6475 IFS=$as_save_IFS
6479 AR=$ac_cv_prog_AR
6480 if test -n "$AR"; then
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6482 $as_echo "$AR" >&6; }
6483 else
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6485 $as_echo "no" >&6; }
6490 if test -z "$ac_cv_prog_AR"; then
6491 ac_ct_AR=$AR
6492 # Extract the first word of "ar", so it can be a program name with args.
6493 set dummy ar; ac_word=$2
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6495 $as_echo_n "checking for $ac_word... " >&6; }
6496 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6497 $as_echo_n "(cached) " >&6
6498 else
6499 if test -n "$ac_ct_AR"; then
6500 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6501 else
6502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6503 for as_dir in $PATH
6505 IFS=$as_save_IFS
6506 test -z "$as_dir" && as_dir=.
6507 for ac_exec_ext in '' $ac_executable_extensions; do
6508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6509 ac_cv_prog_ac_ct_AR="ar"
6510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6511 break 2
6513 done
6514 done
6515 IFS=$as_save_IFS
6519 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6520 if test -n "$ac_ct_AR"; then
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6522 $as_echo "$ac_ct_AR" >&6; }
6523 else
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6525 $as_echo "no" >&6; }
6528 if test "x$ac_ct_AR" = x; then
6529 AR="false"
6530 else
6531 case $cross_compiling:$ac_tool_warned in
6532 yes:)
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6534 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6535 ac_tool_warned=yes ;;
6536 esac
6537 AR=$ac_ct_AR
6539 else
6540 AR="$ac_cv_prog_AR"
6543 test -z "$AR" && AR=ar
6544 test -z "$AR_FLAGS" && AR_FLAGS=cru
6556 if test -n "$ac_tool_prefix"; then
6557 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6558 set dummy ${ac_tool_prefix}strip; ac_word=$2
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6560 $as_echo_n "checking for $ac_word... " >&6; }
6561 if test "${ac_cv_prog_STRIP+set}" = set; then :
6562 $as_echo_n "(cached) " >&6
6563 else
6564 if test -n "$STRIP"; then
6565 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6566 else
6567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6568 for as_dir in $PATH
6570 IFS=$as_save_IFS
6571 test -z "$as_dir" && as_dir=.
6572 for ac_exec_ext in '' $ac_executable_extensions; do
6573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6574 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6576 break 2
6578 done
6579 done
6580 IFS=$as_save_IFS
6584 STRIP=$ac_cv_prog_STRIP
6585 if test -n "$STRIP"; then
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6587 $as_echo "$STRIP" >&6; }
6588 else
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6590 $as_echo "no" >&6; }
6595 if test -z "$ac_cv_prog_STRIP"; then
6596 ac_ct_STRIP=$STRIP
6597 # Extract the first word of "strip", so it can be a program name with args.
6598 set dummy strip; ac_word=$2
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6600 $as_echo_n "checking for $ac_word... " >&6; }
6601 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6602 $as_echo_n "(cached) " >&6
6603 else
6604 if test -n "$ac_ct_STRIP"; then
6605 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6606 else
6607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6608 for as_dir in $PATH
6610 IFS=$as_save_IFS
6611 test -z "$as_dir" && as_dir=.
6612 for ac_exec_ext in '' $ac_executable_extensions; do
6613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6614 ac_cv_prog_ac_ct_STRIP="strip"
6615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6616 break 2
6618 done
6619 done
6620 IFS=$as_save_IFS
6624 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6625 if test -n "$ac_ct_STRIP"; then
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6627 $as_echo "$ac_ct_STRIP" >&6; }
6628 else
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6630 $as_echo "no" >&6; }
6633 if test "x$ac_ct_STRIP" = x; then
6634 STRIP=":"
6635 else
6636 case $cross_compiling:$ac_tool_warned in
6637 yes:)
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6639 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6640 ac_tool_warned=yes ;;
6641 esac
6642 STRIP=$ac_ct_STRIP
6644 else
6645 STRIP="$ac_cv_prog_STRIP"
6648 test -z "$STRIP" && STRIP=:
6655 if test -n "$ac_tool_prefix"; then
6656 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6657 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6659 $as_echo_n "checking for $ac_word... " >&6; }
6660 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6661 $as_echo_n "(cached) " >&6
6662 else
6663 if test -n "$RANLIB"; then
6664 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6665 else
6666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667 for as_dir in $PATH
6669 IFS=$as_save_IFS
6670 test -z "$as_dir" && as_dir=.
6671 for ac_exec_ext in '' $ac_executable_extensions; do
6672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6673 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6675 break 2
6677 done
6678 done
6679 IFS=$as_save_IFS
6683 RANLIB=$ac_cv_prog_RANLIB
6684 if test -n "$RANLIB"; then
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6686 $as_echo "$RANLIB" >&6; }
6687 else
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6689 $as_echo "no" >&6; }
6694 if test -z "$ac_cv_prog_RANLIB"; then
6695 ac_ct_RANLIB=$RANLIB
6696 # Extract the first word of "ranlib", so it can be a program name with args.
6697 set dummy ranlib; ac_word=$2
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6699 $as_echo_n "checking for $ac_word... " >&6; }
6700 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6701 $as_echo_n "(cached) " >&6
6702 else
6703 if test -n "$ac_ct_RANLIB"; then
6704 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6705 else
6706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707 for as_dir in $PATH
6709 IFS=$as_save_IFS
6710 test -z "$as_dir" && as_dir=.
6711 for ac_exec_ext in '' $ac_executable_extensions; do
6712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6713 ac_cv_prog_ac_ct_RANLIB="ranlib"
6714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6715 break 2
6717 done
6718 done
6719 IFS=$as_save_IFS
6723 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6724 if test -n "$ac_ct_RANLIB"; then
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6726 $as_echo "$ac_ct_RANLIB" >&6; }
6727 else
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6729 $as_echo "no" >&6; }
6732 if test "x$ac_ct_RANLIB" = x; then
6733 RANLIB=":"
6734 else
6735 case $cross_compiling:$ac_tool_warned in
6736 yes:)
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6739 ac_tool_warned=yes ;;
6740 esac
6741 RANLIB=$ac_ct_RANLIB
6743 else
6744 RANLIB="$ac_cv_prog_RANLIB"
6747 test -z "$RANLIB" && RANLIB=:
6754 # Determine commands to create old-style static archives.
6755 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6756 old_postinstall_cmds='chmod 644 $oldlib'
6757 old_postuninstall_cmds=
6759 if test -n "$RANLIB"; then
6760 case $host_os in
6761 openbsd*)
6762 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6765 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6767 esac
6768 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6804 # If no C compiler was specified, use CC.
6805 LTCC=${LTCC-"$CC"}
6807 # If no C compiler flags were specified, use CFLAGS.
6808 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6810 # Allow CC to be a program name with arguments.
6811 compiler=$CC
6814 # Check for command to grab the raw symbol name followed by C symbol from nm.
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6816 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6817 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6818 $as_echo_n "(cached) " >&6
6819 else
6821 # These are sane defaults that work on at least a few old systems.
6822 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6824 # Character class describing NM global symbol codes.
6825 symcode='[BCDEGRST]'
6827 # Regexp to match symbols that can be accessed directly from C.
6828 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6830 # Define system-specific variables.
6831 case $host_os in
6832 aix*)
6833 symcode='[BCDT]'
6835 cygwin* | mingw* | pw32*)
6836 symcode='[ABCDGISTW]'
6838 hpux*)
6839 if test "$host_cpu" = ia64; then
6840 symcode='[ABCDEGRST]'
6843 irix* | nonstopux*)
6844 symcode='[BCDEGRST]'
6846 osf*)
6847 symcode='[BCDEGQRST]'
6849 solaris*)
6850 symcode='[BDRT]'
6852 sco3.2v5*)
6853 symcode='[DT]'
6855 sysv4.2uw2*)
6856 symcode='[DT]'
6858 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6859 symcode='[ABDT]'
6861 sysv4)
6862 symcode='[DFNSTU]'
6864 esac
6866 # If we're using GNU nm, then use its standard symbol codes.
6867 case `$NM -V 2>&1` in
6868 *GNU* | *'with BFD'*)
6869 symcode='[ABCDGIRSTW]' ;;
6870 esac
6872 # Transform an extracted symbol line into a proper C declaration.
6873 # Some systems (esp. on ia64) link data and code symbols differently,
6874 # so use this general approach.
6875 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6877 # Transform an extracted symbol line into symbol name and symbol address
6878 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6879 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'"
6881 # Handle CRLF in mingw tool chain
6882 opt_cr=
6883 case $build_os in
6884 mingw*)
6885 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6887 esac
6889 # Try without a prefix underscore, then with it.
6890 for ac_symprfx in "" "_"; do
6892 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6893 symxfrm="\\1 $ac_symprfx\\2 \\2"
6895 # Write the raw and C identifiers.
6896 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6897 # Fake it for dumpbin and say T for any non-static function
6898 # and D for any global variable.
6899 # Also find C++ and __fastcall symbols from MSVC++,
6900 # which start with @ or ?.
6901 lt_cv_sys_global_symbol_pipe="$AWK '"\
6902 " {last_section=section; section=\$ 3};"\
6903 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6904 " \$ 0!~/External *\|/{next};"\
6905 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6906 " {if(hide[section]) next};"\
6907 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6908 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6909 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6910 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6911 " ' prfx=^$ac_symprfx"
6912 else
6913 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6916 # Check to see that the pipe works correctly.
6917 pipe_works=no
6919 rm -f conftest*
6920 cat > conftest.$ac_ext <<_LT_EOF
6921 #ifdef __cplusplus
6922 extern "C" {
6923 #endif
6924 char nm_test_var;
6925 void nm_test_func(void);
6926 void nm_test_func(void){}
6927 #ifdef __cplusplus
6929 #endif
6930 int main(){nm_test_var='a';nm_test_func();return(0);}
6931 _LT_EOF
6933 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6934 (eval $ac_compile) 2>&5
6935 ac_status=$?
6936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6937 test $ac_status = 0; }; then
6938 # Now try to grab the symbols.
6939 nlist=conftest.nm
6940 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6941 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6942 ac_status=$?
6943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6944 test $ac_status = 0; } && test -s "$nlist"; then
6945 # Try sorting and uniquifying the output.
6946 if sort "$nlist" | uniq > "$nlist"T; then
6947 mv -f "$nlist"T "$nlist"
6948 else
6949 rm -f "$nlist"T
6952 # Make sure that we snagged all the symbols we need.
6953 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6954 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6955 cat <<_LT_EOF > conftest.$ac_ext
6956 #ifdef __cplusplus
6957 extern "C" {
6958 #endif
6960 _LT_EOF
6961 # Now generate the symbol file.
6962 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6964 cat <<_LT_EOF >> conftest.$ac_ext
6966 /* The mapping between symbol names and symbols. */
6967 const struct {
6968 const char *name;
6969 void *address;
6971 lt__PROGRAM__LTX_preloaded_symbols[] =
6973 { "@PROGRAM@", (void *) 0 },
6974 _LT_EOF
6975 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6976 cat <<\_LT_EOF >> conftest.$ac_ext
6977 {0, (void *) 0}
6980 /* This works around a problem in FreeBSD linker */
6981 #ifdef FREEBSD_WORKAROUND
6982 static const void *lt_preloaded_setup() {
6983 return lt__PROGRAM__LTX_preloaded_symbols;
6985 #endif
6987 #ifdef __cplusplus
6989 #endif
6990 _LT_EOF
6991 # Now try linking the two files.
6992 mv conftest.$ac_objext conftstm.$ac_objext
6993 lt_save_LIBS="$LIBS"
6994 lt_save_CFLAGS="$CFLAGS"
6995 LIBS="conftstm.$ac_objext"
6996 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6997 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6998 (eval $ac_link) 2>&5
6999 ac_status=$?
7000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7001 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7002 pipe_works=yes
7004 LIBS="$lt_save_LIBS"
7005 CFLAGS="$lt_save_CFLAGS"
7006 else
7007 echo "cannot find nm_test_func in $nlist" >&5
7009 else
7010 echo "cannot find nm_test_var in $nlist" >&5
7012 else
7013 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7015 else
7016 echo "$progname: failed program was:" >&5
7017 cat conftest.$ac_ext >&5
7019 rm -rf conftest* conftst*
7021 # Do not use the global_symbol_pipe unless it works.
7022 if test "$pipe_works" = yes; then
7023 break
7024 else
7025 lt_cv_sys_global_symbol_pipe=
7027 done
7031 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7032 lt_cv_sys_global_symbol_to_cdecl=
7034 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7036 $as_echo "failed" >&6; }
7037 else
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7039 $as_echo "ok" >&6; }
7063 # Check whether --enable-libtool-lock was given.
7064 if test "${enable_libtool_lock+set}" = set; then :
7065 enableval=$enable_libtool_lock;
7068 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7070 # Some flags need to be propagated to the compiler or linker for good
7071 # libtool support.
7072 case $host in
7073 ia64-*-hpux*)
7074 # Find out which ABI we are using.
7075 echo 'int i;' > conftest.$ac_ext
7076 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7077 (eval $ac_compile) 2>&5
7078 ac_status=$?
7079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7080 test $ac_status = 0; }; then
7081 case `/usr/bin/file conftest.$ac_objext` in
7082 *ELF-32*)
7083 HPUX_IA64_MODE="32"
7085 *ELF-64*)
7086 HPUX_IA64_MODE="64"
7088 esac
7090 rm -rf conftest*
7092 *-*-irix6*)
7093 # Find out which ABI we are using.
7094 echo '#line 7094 "configure"' > conftest.$ac_ext
7095 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7096 (eval $ac_compile) 2>&5
7097 ac_status=$?
7098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7099 test $ac_status = 0; }; then
7100 if test "$lt_cv_prog_gnu_ld" = yes; then
7101 case `/usr/bin/file conftest.$ac_objext` in
7102 *32-bit*)
7103 LD="${LD-ld} -melf32bsmip"
7105 *N32*)
7106 LD="${LD-ld} -melf32bmipn32"
7108 *64-bit*)
7109 LD="${LD-ld} -melf64bmip"
7111 esac
7112 else
7113 case `/usr/bin/file conftest.$ac_objext` in
7114 *32-bit*)
7115 LD="${LD-ld} -32"
7117 *N32*)
7118 LD="${LD-ld} -n32"
7120 *64-bit*)
7121 LD="${LD-ld} -64"
7123 esac
7126 rm -rf conftest*
7129 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7130 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7131 # Find out which ABI we are using.
7132 echo 'int i;' > conftest.$ac_ext
7133 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7134 (eval $ac_compile) 2>&5
7135 ac_status=$?
7136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7137 test $ac_status = 0; }; then
7138 case `/usr/bin/file conftest.o` in
7139 *32-bit*)
7140 case $host in
7141 x86_64-*kfreebsd*-gnu)
7142 LD="${LD-ld} -m elf_i386_fbsd"
7144 x86_64-*linux*)
7145 LD="${LD-ld} -m elf_i386"
7147 ppc64-*linux*|powerpc64-*linux*)
7148 LD="${LD-ld} -m elf32ppclinux"
7150 s390x-*linux*)
7151 LD="${LD-ld} -m elf_s390"
7153 sparc64-*linux*)
7154 LD="${LD-ld} -m elf32_sparc"
7156 esac
7158 *64-bit*)
7159 case $host in
7160 x86_64-*kfreebsd*-gnu)
7161 LD="${LD-ld} -m elf_x86_64_fbsd"
7163 x86_64-*linux*)
7164 LD="${LD-ld} -m elf_x86_64"
7166 ppc*-*linux*|powerpc*-*linux*)
7167 LD="${LD-ld} -m elf64ppc"
7169 s390*-*linux*|s390*-*tpf*)
7170 LD="${LD-ld} -m elf64_s390"
7172 sparc*-*linux*)
7173 LD="${LD-ld} -m elf64_sparc"
7175 esac
7177 esac
7179 rm -rf conftest*
7182 *-*-sco3.2v5*)
7183 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7184 SAVE_CFLAGS="$CFLAGS"
7185 CFLAGS="$CFLAGS -belf"
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7187 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7188 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7189 $as_echo_n "(cached) " >&6
7190 else
7191 ac_ext=c
7192 ac_cpp='$CPP $CPPFLAGS'
7193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7198 /* end confdefs.h. */
7201 main ()
7205 return 0;
7207 _ACEOF
7208 if ac_fn_c_try_link "$LINENO"; then :
7209 lt_cv_cc_needs_belf=yes
7210 else
7211 lt_cv_cc_needs_belf=no
7213 rm -f core conftest.err conftest.$ac_objext \
7214 conftest$ac_exeext conftest.$ac_ext
7215 ac_ext=c
7216 ac_cpp='$CPP $CPPFLAGS'
7217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7223 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7224 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7225 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7226 CFLAGS="$SAVE_CFLAGS"
7229 sparc*-*solaris*)
7230 # Find out which ABI we are using.
7231 echo 'int i;' > conftest.$ac_ext
7232 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7233 (eval $ac_compile) 2>&5
7234 ac_status=$?
7235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7236 test $ac_status = 0; }; then
7237 case `/usr/bin/file conftest.o` in
7238 *64-bit*)
7239 case $lt_cv_prog_gnu_ld in
7240 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7242 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7243 LD="${LD-ld} -64"
7246 esac
7248 esac
7250 rm -rf conftest*
7252 esac
7254 need_locks="$enable_libtool_lock"
7257 case $host_os in
7258 rhapsody* | darwin*)
7259 if test -n "$ac_tool_prefix"; then
7260 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7261 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7263 $as_echo_n "checking for $ac_word... " >&6; }
7264 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7265 $as_echo_n "(cached) " >&6
7266 else
7267 if test -n "$DSYMUTIL"; then
7268 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7269 else
7270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271 for as_dir in $PATH
7273 IFS=$as_save_IFS
7274 test -z "$as_dir" && as_dir=.
7275 for ac_exec_ext in '' $ac_executable_extensions; do
7276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7277 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7279 break 2
7281 done
7282 done
7283 IFS=$as_save_IFS
7287 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7288 if test -n "$DSYMUTIL"; then
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7290 $as_echo "$DSYMUTIL" >&6; }
7291 else
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7293 $as_echo "no" >&6; }
7298 if test -z "$ac_cv_prog_DSYMUTIL"; then
7299 ac_ct_DSYMUTIL=$DSYMUTIL
7300 # Extract the first word of "dsymutil", so it can be a program name with args.
7301 set dummy dsymutil; ac_word=$2
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7303 $as_echo_n "checking for $ac_word... " >&6; }
7304 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7305 $as_echo_n "(cached) " >&6
7306 else
7307 if test -n "$ac_ct_DSYMUTIL"; then
7308 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7309 else
7310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311 for as_dir in $PATH
7313 IFS=$as_save_IFS
7314 test -z "$as_dir" && as_dir=.
7315 for ac_exec_ext in '' $ac_executable_extensions; do
7316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7317 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7319 break 2
7321 done
7322 done
7323 IFS=$as_save_IFS
7327 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7328 if test -n "$ac_ct_DSYMUTIL"; then
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7330 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7331 else
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7333 $as_echo "no" >&6; }
7336 if test "x$ac_ct_DSYMUTIL" = x; then
7337 DSYMUTIL=":"
7338 else
7339 case $cross_compiling:$ac_tool_warned in
7340 yes:)
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7342 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7343 ac_tool_warned=yes ;;
7344 esac
7345 DSYMUTIL=$ac_ct_DSYMUTIL
7347 else
7348 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7351 if test -n "$ac_tool_prefix"; then
7352 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7353 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7355 $as_echo_n "checking for $ac_word... " >&6; }
7356 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7357 $as_echo_n "(cached) " >&6
7358 else
7359 if test -n "$NMEDIT"; then
7360 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7361 else
7362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363 for as_dir in $PATH
7365 IFS=$as_save_IFS
7366 test -z "$as_dir" && as_dir=.
7367 for ac_exec_ext in '' $ac_executable_extensions; do
7368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7369 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7371 break 2
7373 done
7374 done
7375 IFS=$as_save_IFS
7379 NMEDIT=$ac_cv_prog_NMEDIT
7380 if test -n "$NMEDIT"; then
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7382 $as_echo "$NMEDIT" >&6; }
7383 else
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7385 $as_echo "no" >&6; }
7390 if test -z "$ac_cv_prog_NMEDIT"; then
7391 ac_ct_NMEDIT=$NMEDIT
7392 # Extract the first word of "nmedit", so it can be a program name with args.
7393 set dummy nmedit; ac_word=$2
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7395 $as_echo_n "checking for $ac_word... " >&6; }
7396 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7397 $as_echo_n "(cached) " >&6
7398 else
7399 if test -n "$ac_ct_NMEDIT"; then
7400 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7401 else
7402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403 for as_dir in $PATH
7405 IFS=$as_save_IFS
7406 test -z "$as_dir" && as_dir=.
7407 for ac_exec_ext in '' $ac_executable_extensions; do
7408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7409 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7411 break 2
7413 done
7414 done
7415 IFS=$as_save_IFS
7419 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7420 if test -n "$ac_ct_NMEDIT"; then
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7422 $as_echo "$ac_ct_NMEDIT" >&6; }
7423 else
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7425 $as_echo "no" >&6; }
7428 if test "x$ac_ct_NMEDIT" = x; then
7429 NMEDIT=":"
7430 else
7431 case $cross_compiling:$ac_tool_warned in
7432 yes:)
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7435 ac_tool_warned=yes ;;
7436 esac
7437 NMEDIT=$ac_ct_NMEDIT
7439 else
7440 NMEDIT="$ac_cv_prog_NMEDIT"
7443 if test -n "$ac_tool_prefix"; then
7444 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7445 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7447 $as_echo_n "checking for $ac_word... " >&6; }
7448 if test "${ac_cv_prog_LIPO+set}" = set; then :
7449 $as_echo_n "(cached) " >&6
7450 else
7451 if test -n "$LIPO"; then
7452 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7453 else
7454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455 for as_dir in $PATH
7457 IFS=$as_save_IFS
7458 test -z "$as_dir" && as_dir=.
7459 for ac_exec_ext in '' $ac_executable_extensions; do
7460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7461 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7463 break 2
7465 done
7466 done
7467 IFS=$as_save_IFS
7471 LIPO=$ac_cv_prog_LIPO
7472 if test -n "$LIPO"; then
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7474 $as_echo "$LIPO" >&6; }
7475 else
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7477 $as_echo "no" >&6; }
7482 if test -z "$ac_cv_prog_LIPO"; then
7483 ac_ct_LIPO=$LIPO
7484 # Extract the first word of "lipo", so it can be a program name with args.
7485 set dummy lipo; ac_word=$2
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7487 $as_echo_n "checking for $ac_word... " >&6; }
7488 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7489 $as_echo_n "(cached) " >&6
7490 else
7491 if test -n "$ac_ct_LIPO"; then
7492 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7493 else
7494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7495 for as_dir in $PATH
7497 IFS=$as_save_IFS
7498 test -z "$as_dir" && as_dir=.
7499 for ac_exec_ext in '' $ac_executable_extensions; do
7500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7501 ac_cv_prog_ac_ct_LIPO="lipo"
7502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7503 break 2
7505 done
7506 done
7507 IFS=$as_save_IFS
7511 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7512 if test -n "$ac_ct_LIPO"; then
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7514 $as_echo "$ac_ct_LIPO" >&6; }
7515 else
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7517 $as_echo "no" >&6; }
7520 if test "x$ac_ct_LIPO" = x; then
7521 LIPO=":"
7522 else
7523 case $cross_compiling:$ac_tool_warned in
7524 yes:)
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7526 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7527 ac_tool_warned=yes ;;
7528 esac
7529 LIPO=$ac_ct_LIPO
7531 else
7532 LIPO="$ac_cv_prog_LIPO"
7535 if test -n "$ac_tool_prefix"; then
7536 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7537 set dummy ${ac_tool_prefix}otool; ac_word=$2
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7539 $as_echo_n "checking for $ac_word... " >&6; }
7540 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7541 $as_echo_n "(cached) " >&6
7542 else
7543 if test -n "$OTOOL"; then
7544 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7545 else
7546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7547 for as_dir in $PATH
7549 IFS=$as_save_IFS
7550 test -z "$as_dir" && as_dir=.
7551 for ac_exec_ext in '' $ac_executable_extensions; do
7552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7553 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7555 break 2
7557 done
7558 done
7559 IFS=$as_save_IFS
7563 OTOOL=$ac_cv_prog_OTOOL
7564 if test -n "$OTOOL"; then
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7566 $as_echo "$OTOOL" >&6; }
7567 else
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7569 $as_echo "no" >&6; }
7574 if test -z "$ac_cv_prog_OTOOL"; then
7575 ac_ct_OTOOL=$OTOOL
7576 # Extract the first word of "otool", so it can be a program name with args.
7577 set dummy otool; ac_word=$2
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7579 $as_echo_n "checking for $ac_word... " >&6; }
7580 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7581 $as_echo_n "(cached) " >&6
7582 else
7583 if test -n "$ac_ct_OTOOL"; then
7584 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7585 else
7586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587 for as_dir in $PATH
7589 IFS=$as_save_IFS
7590 test -z "$as_dir" && as_dir=.
7591 for ac_exec_ext in '' $ac_executable_extensions; do
7592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7593 ac_cv_prog_ac_ct_OTOOL="otool"
7594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7595 break 2
7597 done
7598 done
7599 IFS=$as_save_IFS
7603 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7604 if test -n "$ac_ct_OTOOL"; then
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7606 $as_echo "$ac_ct_OTOOL" >&6; }
7607 else
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7609 $as_echo "no" >&6; }
7612 if test "x$ac_ct_OTOOL" = x; then
7613 OTOOL=":"
7614 else
7615 case $cross_compiling:$ac_tool_warned in
7616 yes:)
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7618 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7619 ac_tool_warned=yes ;;
7620 esac
7621 OTOOL=$ac_ct_OTOOL
7623 else
7624 OTOOL="$ac_cv_prog_OTOOL"
7627 if test -n "$ac_tool_prefix"; then
7628 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7629 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7631 $as_echo_n "checking for $ac_word... " >&6; }
7632 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7633 $as_echo_n "(cached) " >&6
7634 else
7635 if test -n "$OTOOL64"; then
7636 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7637 else
7638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7639 for as_dir in $PATH
7641 IFS=$as_save_IFS
7642 test -z "$as_dir" && as_dir=.
7643 for ac_exec_ext in '' $ac_executable_extensions; do
7644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7645 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7647 break 2
7649 done
7650 done
7651 IFS=$as_save_IFS
7655 OTOOL64=$ac_cv_prog_OTOOL64
7656 if test -n "$OTOOL64"; then
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7658 $as_echo "$OTOOL64" >&6; }
7659 else
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7661 $as_echo "no" >&6; }
7666 if test -z "$ac_cv_prog_OTOOL64"; then
7667 ac_ct_OTOOL64=$OTOOL64
7668 # Extract the first word of "otool64", so it can be a program name with args.
7669 set dummy otool64; ac_word=$2
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7671 $as_echo_n "checking for $ac_word... " >&6; }
7672 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7673 $as_echo_n "(cached) " >&6
7674 else
7675 if test -n "$ac_ct_OTOOL64"; then
7676 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7677 else
7678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7679 for as_dir in $PATH
7681 IFS=$as_save_IFS
7682 test -z "$as_dir" && as_dir=.
7683 for ac_exec_ext in '' $ac_executable_extensions; do
7684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7685 ac_cv_prog_ac_ct_OTOOL64="otool64"
7686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7687 break 2
7689 done
7690 done
7691 IFS=$as_save_IFS
7695 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7696 if test -n "$ac_ct_OTOOL64"; then
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7698 $as_echo "$ac_ct_OTOOL64" >&6; }
7699 else
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7701 $as_echo "no" >&6; }
7704 if test "x$ac_ct_OTOOL64" = x; then
7705 OTOOL64=":"
7706 else
7707 case $cross_compiling:$ac_tool_warned in
7708 yes:)
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7710 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7711 ac_tool_warned=yes ;;
7712 esac
7713 OTOOL64=$ac_ct_OTOOL64
7715 else
7716 OTOOL64="$ac_cv_prog_OTOOL64"
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7746 $as_echo_n "checking for -single_module linker flag... " >&6; }
7747 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7748 $as_echo_n "(cached) " >&6
7749 else
7750 lt_cv_apple_cc_single_mod=no
7751 if test -z "${LT_MULTI_MODULE}"; then
7752 # By default we will add the -single_module flag. You can override
7753 # by either setting the environment variable LT_MULTI_MODULE
7754 # non-empty at configure time, or by adding -multi_module to the
7755 # link flags.
7756 rm -rf libconftest.dylib*
7757 echo "int foo(void){return 1;}" > conftest.c
7758 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7759 -dynamiclib -Wl,-single_module conftest.c" >&5
7760 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7761 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7762 _lt_result=$?
7763 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7764 lt_cv_apple_cc_single_mod=yes
7765 else
7766 cat conftest.err >&5
7768 rm -rf libconftest.dylib*
7769 rm -f conftest.*
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7773 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7775 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7776 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7777 $as_echo_n "(cached) " >&6
7778 else
7779 lt_cv_ld_exported_symbols_list=no
7780 save_LDFLAGS=$LDFLAGS
7781 echo "_main" > conftest.sym
7782 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7784 /* end confdefs.h. */
7787 main ()
7791 return 0;
7793 _ACEOF
7794 if ac_fn_c_try_link "$LINENO"; then :
7795 lt_cv_ld_exported_symbols_list=yes
7796 else
7797 lt_cv_ld_exported_symbols_list=no
7799 rm -f core conftest.err conftest.$ac_objext \
7800 conftest$ac_exeext conftest.$ac_ext
7801 LDFLAGS="$save_LDFLAGS"
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7805 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7806 case $host_os in
7807 rhapsody* | darwin1.[012])
7808 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7809 darwin1.*)
7810 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7811 darwin*) # darwin 5.x on
7812 # if running on 10.5 or later, the deployment target defaults
7813 # to the OS version, if on x86, and 10.4, the deployment
7814 # target defaults to 10.4. Don't you love it?
7815 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7816 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7817 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7818 10.[012]*)
7819 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7820 10.*)
7821 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7822 esac
7824 esac
7825 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7826 _lt_dar_single_mod='$single_module'
7828 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7829 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7830 else
7831 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7833 if test "$DSYMUTIL" != ":"; then
7834 _lt_dsymutil='~$DSYMUTIL $lib || :'
7835 else
7836 _lt_dsymutil=
7839 esac
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7843 $as_echo_n "checking for ANSI C header files... " >&6; }
7844 if test "${ac_cv_header_stdc+set}" = set; then :
7845 $as_echo_n "(cached) " >&6
7846 else
7847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7848 /* end confdefs.h. */
7849 #include <stdlib.h>
7850 #include <stdarg.h>
7851 #include <string.h>
7852 #include <float.h>
7855 main ()
7859 return 0;
7861 _ACEOF
7862 if ac_fn_c_try_compile "$LINENO"; then :
7863 ac_cv_header_stdc=yes
7864 else
7865 ac_cv_header_stdc=no
7867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7869 if test $ac_cv_header_stdc = yes; then
7870 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7872 /* end confdefs.h. */
7873 #include <string.h>
7875 _ACEOF
7876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7877 $EGREP "memchr" >/dev/null 2>&1; then :
7879 else
7880 ac_cv_header_stdc=no
7882 rm -f conftest*
7886 if test $ac_cv_header_stdc = yes; then
7887 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7889 /* end confdefs.h. */
7890 #include <stdlib.h>
7892 _ACEOF
7893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7894 $EGREP "free" >/dev/null 2>&1; then :
7896 else
7897 ac_cv_header_stdc=no
7899 rm -f conftest*
7903 if test $ac_cv_header_stdc = yes; then
7904 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7905 if test "$cross_compiling" = yes; then :
7907 else
7908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7909 /* end confdefs.h. */
7910 #include <ctype.h>
7911 #include <stdlib.h>
7912 #if ((' ' & 0x0FF) == 0x020)
7913 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7914 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7915 #else
7916 # define ISLOWER(c) \
7917 (('a' <= (c) && (c) <= 'i') \
7918 || ('j' <= (c) && (c) <= 'r') \
7919 || ('s' <= (c) && (c) <= 'z'))
7920 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7921 #endif
7923 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7925 main ()
7927 int i;
7928 for (i = 0; i < 256; i++)
7929 if (XOR (islower (i), ISLOWER (i))
7930 || toupper (i) != TOUPPER (i))
7931 return 2;
7932 return 0;
7934 _ACEOF
7935 if ac_fn_c_try_run "$LINENO"; then :
7937 else
7938 ac_cv_header_stdc=no
7940 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7941 conftest.$ac_objext conftest.beam conftest.$ac_ext
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7947 $as_echo "$ac_cv_header_stdc" >&6; }
7948 if test $ac_cv_header_stdc = yes; then
7950 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7954 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7955 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7956 inttypes.h stdint.h unistd.h
7957 do :
7958 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7959 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7961 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7962 cat >>confdefs.h <<_ACEOF
7963 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7964 _ACEOF
7968 done
7971 for ac_header in dlfcn.h
7972 do :
7973 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7975 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7976 cat >>confdefs.h <<_ACEOF
7977 #define HAVE_DLFCN_H 1
7978 _ACEOF
7982 done
7986 # Set options
7990 enable_dlopen=no
7993 enable_win32_dll=no
7997 # Check whether --enable-static was given.
7998 if test "${enable_static+set}" = set; then :
7999 enableval=$enable_static; p=${PACKAGE-default}
8000 case $enableval in
8001 yes) enable_static=yes ;;
8002 no) enable_static=no ;;
8004 enable_static=no
8005 # Look at the argument we got. We use all the common list separators.
8006 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8007 for pkg in $enableval; do
8008 IFS="$lt_save_ifs"
8009 if test "X$pkg" = "X$p"; then
8010 enable_static=yes
8012 done
8013 IFS="$lt_save_ifs"
8015 esac
8016 else
8017 enable_static=yes
8029 # Check whether --with-pic was given.
8030 if test "${with_pic+set}" = set; then :
8031 withval=$with_pic; pic_mode="$withval"
8032 else
8033 pic_mode=default
8037 test -z "$pic_mode" && pic_mode=default
8045 # Check whether --enable-fast-install was given.
8046 if test "${enable_fast_install+set}" = set; then :
8047 enableval=$enable_fast_install; p=${PACKAGE-default}
8048 case $enableval in
8049 yes) enable_fast_install=yes ;;
8050 no) enable_fast_install=no ;;
8052 enable_fast_install=no
8053 # Look at the argument we got. We use all the common list separators.
8054 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8055 for pkg in $enableval; do
8056 IFS="$lt_save_ifs"
8057 if test "X$pkg" = "X$p"; then
8058 enable_fast_install=yes
8060 done
8061 IFS="$lt_save_ifs"
8063 esac
8064 else
8065 enable_fast_install=yes
8078 # This can be used to rebuild libtool when needed
8079 LIBTOOL_DEPS="$ltmain"
8081 # Always use our own libtool.
8082 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8108 test -z "$LN_S" && LN_S="ln -s"
8123 if test -n "${ZSH_VERSION+set}" ; then
8124 setopt NO_GLOB_SUBST
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8128 $as_echo_n "checking for objdir... " >&6; }
8129 if test "${lt_cv_objdir+set}" = set; then :
8130 $as_echo_n "(cached) " >&6
8131 else
8132 rm -f .libs 2>/dev/null
8133 mkdir .libs 2>/dev/null
8134 if test -d .libs; then
8135 lt_cv_objdir=.libs
8136 else
8137 # MS-DOS does not allow filenames that begin with a dot.
8138 lt_cv_objdir=_libs
8140 rmdir .libs 2>/dev/null
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8143 $as_echo "$lt_cv_objdir" >&6; }
8144 objdir=$lt_cv_objdir
8150 cat >>confdefs.h <<_ACEOF
8151 #define LT_OBJDIR "$lt_cv_objdir/"
8152 _ACEOF
8170 case $host_os in
8171 aix3*)
8172 # AIX sometimes has problems with the GCC collect2 program. For some
8173 # reason, if we set the COLLECT_NAMES environment variable, the problems
8174 # vanish in a puff of smoke.
8175 if test "X${COLLECT_NAMES+set}" != Xset; then
8176 COLLECT_NAMES=
8177 export COLLECT_NAMES
8180 esac
8182 # Sed substitution that helps us do robust quoting. It backslashifies
8183 # metacharacters that are still active within double-quoted strings.
8184 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8186 # Same as above, but do not quote variable references.
8187 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8189 # Sed substitution to delay expansion of an escaped shell variable in a
8190 # double_quote_subst'ed string.
8191 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8193 # Sed substitution to delay expansion of an escaped single quote.
8194 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8196 # Sed substitution to avoid accidental globbing in evaled expressions
8197 no_glob_subst='s/\*/\\\*/g'
8199 # Global variables:
8200 ofile=libtool
8201 can_build_shared=yes
8203 # All known linkers require a `.a' archive for static linking (except MSVC,
8204 # which needs '.lib').
8205 libext=a
8207 with_gnu_ld="$lt_cv_prog_gnu_ld"
8209 old_CC="$CC"
8210 old_CFLAGS="$CFLAGS"
8212 # Set sane defaults for various variables
8213 test -z "$CC" && CC=cc
8214 test -z "$LTCC" && LTCC=$CC
8215 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8216 test -z "$LD" && LD=ld
8217 test -z "$ac_objext" && ac_objext=o
8219 for cc_temp in $compiler""; do
8220 case $cc_temp in
8221 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8222 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8223 \-*) ;;
8224 *) break;;
8225 esac
8226 done
8227 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8230 # Only perform the check for file, if the check method requires it
8231 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8232 case $deplibs_check_method in
8233 file_magic*)
8234 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8236 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8237 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8238 $as_echo_n "(cached) " >&6
8239 else
8240 case $MAGIC_CMD in
8241 [\\/*] | ?:[\\/]*)
8242 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8245 lt_save_MAGIC_CMD="$MAGIC_CMD"
8246 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8247 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8248 for ac_dir in $ac_dummy; do
8249 IFS="$lt_save_ifs"
8250 test -z "$ac_dir" && ac_dir=.
8251 if test -f $ac_dir/${ac_tool_prefix}file; then
8252 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8253 if test -n "$file_magic_test_file"; then
8254 case $deplibs_check_method in
8255 "file_magic "*)
8256 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8257 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8258 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8259 $EGREP "$file_magic_regex" > /dev/null; then
8261 else
8262 cat <<_LT_EOF 1>&2
8264 *** Warning: the command libtool uses to detect shared libraries,
8265 *** $file_magic_cmd, produces output that libtool cannot recognize.
8266 *** The result is that libtool may fail to recognize shared libraries
8267 *** as such. This will affect the creation of libtool libraries that
8268 *** depend on shared libraries, but programs linked with such libtool
8269 *** libraries will work regardless of this problem. Nevertheless, you
8270 *** may want to report the problem to your system manager and/or to
8271 *** bug-libtool@gnu.org
8273 _LT_EOF
8274 fi ;;
8275 esac
8277 break
8279 done
8280 IFS="$lt_save_ifs"
8281 MAGIC_CMD="$lt_save_MAGIC_CMD"
8283 esac
8286 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8287 if test -n "$MAGIC_CMD"; then
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8289 $as_echo "$MAGIC_CMD" >&6; }
8290 else
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8292 $as_echo "no" >&6; }
8299 if test -z "$lt_cv_path_MAGIC_CMD"; then
8300 if test -n "$ac_tool_prefix"; then
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8302 $as_echo_n "checking for file... " >&6; }
8303 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8304 $as_echo_n "(cached) " >&6
8305 else
8306 case $MAGIC_CMD in
8307 [\\/*] | ?:[\\/]*)
8308 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8311 lt_save_MAGIC_CMD="$MAGIC_CMD"
8312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8313 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8314 for ac_dir in $ac_dummy; do
8315 IFS="$lt_save_ifs"
8316 test -z "$ac_dir" && ac_dir=.
8317 if test -f $ac_dir/file; then
8318 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8319 if test -n "$file_magic_test_file"; then
8320 case $deplibs_check_method in
8321 "file_magic "*)
8322 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8323 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8324 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8325 $EGREP "$file_magic_regex" > /dev/null; then
8327 else
8328 cat <<_LT_EOF 1>&2
8330 *** Warning: the command libtool uses to detect shared libraries,
8331 *** $file_magic_cmd, produces output that libtool cannot recognize.
8332 *** The result is that libtool may fail to recognize shared libraries
8333 *** as such. This will affect the creation of libtool libraries that
8334 *** depend on shared libraries, but programs linked with such libtool
8335 *** libraries will work regardless of this problem. Nevertheless, you
8336 *** may want to report the problem to your system manager and/or to
8337 *** bug-libtool@gnu.org
8339 _LT_EOF
8340 fi ;;
8341 esac
8343 break
8345 done
8346 IFS="$lt_save_ifs"
8347 MAGIC_CMD="$lt_save_MAGIC_CMD"
8349 esac
8352 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8353 if test -n "$MAGIC_CMD"; then
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8355 $as_echo "$MAGIC_CMD" >&6; }
8356 else
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8358 $as_echo "no" >&6; }
8362 else
8363 MAGIC_CMD=:
8369 esac
8371 # Use C for the default configuration in the libtool script
8373 lt_save_CC="$CC"
8374 ac_ext=c
8375 ac_cpp='$CPP $CPPFLAGS'
8376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8381 # Source file extension for C test sources.
8382 ac_ext=c
8384 # Object file extension for compiled C test sources.
8385 objext=o
8386 objext=$objext
8388 # Code to be used in simple compile tests
8389 lt_simple_compile_test_code="int some_variable = 0;"
8391 # Code to be used in simple link tests
8392 lt_simple_link_test_code='int main(){return(0);}'
8400 # If no C compiler was specified, use CC.
8401 LTCC=${LTCC-"$CC"}
8403 # If no C compiler flags were specified, use CFLAGS.
8404 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8406 # Allow CC to be a program name with arguments.
8407 compiler=$CC
8409 # Save the default compiler, since it gets overwritten when the other
8410 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8411 compiler_DEFAULT=$CC
8413 # save warnings/boilerplate of simple test code
8414 ac_outfile=conftest.$ac_objext
8415 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8416 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8417 _lt_compiler_boilerplate=`cat conftest.err`
8418 $RM conftest*
8420 ac_outfile=conftest.$ac_objext
8421 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8422 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8423 _lt_linker_boilerplate=`cat conftest.err`
8424 $RM -r conftest*
8427 ## CAVEAT EMPTOR:
8428 ## There is no encapsulation within the following macros, do not change
8429 ## the running order or otherwise move them around unless you know exactly
8430 ## what you are doing...
8431 if test -n "$compiler"; then
8433 lt_prog_compiler_no_builtin_flag=
8435 if test "$GCC" = yes; then
8436 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8439 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8440 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8441 $as_echo_n "(cached) " >&6
8442 else
8443 lt_cv_prog_compiler_rtti_exceptions=no
8444 ac_outfile=conftest.$ac_objext
8445 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8446 lt_compiler_flag="-fno-rtti -fno-exceptions"
8447 # Insert the option either (1) after the last *FLAGS variable, or
8448 # (2) before a word containing "conftest.", or (3) at the end.
8449 # Note that $ac_compile itself does not contain backslashes and begins
8450 # with a dollar sign (not a hyphen), so the echo should work correctly.
8451 # The option is referenced via a variable to avoid confusing sed.
8452 lt_compile=`echo "$ac_compile" | $SED \
8453 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8454 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8455 -e 's:$: $lt_compiler_flag:'`
8456 (eval echo "\"\$as_me:8456: $lt_compile\"" >&5)
8457 (eval "$lt_compile" 2>conftest.err)
8458 ac_status=$?
8459 cat conftest.err >&5
8460 echo "$as_me:8460: \$? = $ac_status" >&5
8461 if (exit $ac_status) && test -s "$ac_outfile"; then
8462 # The compiler can only warn and ignore the option if not recognized
8463 # So say no if there are warnings other than the usual output.
8464 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8465 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8466 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8467 lt_cv_prog_compiler_rtti_exceptions=yes
8470 $RM conftest*
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8474 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8476 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8477 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8478 else
8489 lt_prog_compiler_wl=
8490 lt_prog_compiler_pic=
8491 lt_prog_compiler_static=
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8494 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8496 if test "$GCC" = yes; then
8497 lt_prog_compiler_wl='-Wl,'
8498 lt_prog_compiler_static='-static'
8500 case $host_os in
8501 aix*)
8502 # All AIX code is PIC.
8503 if test "$host_cpu" = ia64; then
8504 # AIX 5 now supports IA64 processor
8505 lt_prog_compiler_static='-Bstatic'
8509 amigaos*)
8510 case $host_cpu in
8511 powerpc)
8512 # see comment about AmigaOS4 .so support
8513 lt_prog_compiler_pic='-fPIC'
8515 m68k)
8516 # FIXME: we need at least 68020 code to build shared libraries, but
8517 # adding the `-m68020' flag to GCC prevents building anything better,
8518 # like `-m68040'.
8519 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8521 esac
8524 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8525 # PIC is the default for these OSes.
8528 mingw* | cygwin* | pw32* | os2*)
8529 # This hack is so that the source file can tell whether it is being
8530 # built for inclusion in a dll (and should export symbols for example).
8531 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8532 # (--disable-auto-import) libraries
8533 lt_prog_compiler_pic='-DDLL_EXPORT'
8536 darwin* | rhapsody*)
8537 # PIC is the default on this platform
8538 # Common symbols not allowed in MH_DYLIB files
8539 lt_prog_compiler_pic='-fno-common'
8542 hpux*)
8543 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8544 # not for PA HP-UX.
8545 case $host_cpu in
8546 hppa*64*|ia64*)
8547 # +Z the default
8550 lt_prog_compiler_pic='-fPIC'
8552 esac
8555 interix[3-9]*)
8556 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8557 # Instead, we relocate shared libraries at runtime.
8560 msdosdjgpp*)
8561 # Just because we use GCC doesn't mean we suddenly get shared libraries
8562 # on systems that don't support them.
8563 lt_prog_compiler_can_build_shared=no
8564 enable_shared=no
8567 *nto* | *qnx*)
8568 # QNX uses GNU C++, but need to define -shared option too, otherwise
8569 # it will coredump.
8570 lt_prog_compiler_pic='-fPIC -shared'
8573 sysv4*MP*)
8574 if test -d /usr/nec; then
8575 lt_prog_compiler_pic=-Kconform_pic
8580 lt_prog_compiler_pic='-fPIC'
8582 esac
8583 else
8584 # PORTME Check for flag to pass linker flags through the system compiler.
8585 case $host_os in
8586 aix*)
8587 lt_prog_compiler_wl='-Wl,'
8588 if test "$host_cpu" = ia64; then
8589 # AIX 5 now supports IA64 processor
8590 lt_prog_compiler_static='-Bstatic'
8591 else
8592 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8596 mingw* | cygwin* | pw32* | os2*)
8597 # This hack is so that the source file can tell whether it is being
8598 # built for inclusion in a dll (and should export symbols for example).
8599 lt_prog_compiler_pic='-DDLL_EXPORT'
8602 hpux9* | hpux10* | hpux11*)
8603 lt_prog_compiler_wl='-Wl,'
8604 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8605 # not for PA HP-UX.
8606 case $host_cpu in
8607 hppa*64*|ia64*)
8608 # +Z the default
8611 lt_prog_compiler_pic='+Z'
8613 esac
8614 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8615 lt_prog_compiler_static='${wl}-a ${wl}archive'
8618 irix5* | irix6* | nonstopux*)
8619 lt_prog_compiler_wl='-Wl,'
8620 # PIC (with -KPIC) is the default.
8621 lt_prog_compiler_static='-non_shared'
8624 linux* | k*bsd*-gnu)
8625 case $cc_basename in
8626 icc* | ecc* | ifort*)
8627 lt_prog_compiler_wl='-Wl,'
8628 lt_prog_compiler_pic='-KPIC'
8629 lt_prog_compiler_static='-static'
8631 pgcc* | pgf77* | pgf90* | pgf95*)
8632 # Portland Group compilers (*not* the Pentium gcc compiler,
8633 # which looks to be a dead project)
8634 lt_prog_compiler_wl='-Wl,'
8635 lt_prog_compiler_pic='-fpic'
8636 lt_prog_compiler_static='-Bstatic'
8638 ccc*)
8639 lt_prog_compiler_wl='-Wl,'
8640 # All Alpha code is PIC.
8641 lt_prog_compiler_static='-non_shared'
8643 xl*)
8644 # IBM XL C 8.0/Fortran 10.1 on PPC
8645 lt_prog_compiler_wl='-Wl,'
8646 lt_prog_compiler_pic='-qpic'
8647 lt_prog_compiler_static='-qstaticlink'
8650 case `$CC -V 2>&1 | sed 5q` in
8651 *Sun\ C*)
8652 # Sun C 5.9
8653 lt_prog_compiler_pic='-KPIC'
8654 lt_prog_compiler_static='-Bstatic'
8655 lt_prog_compiler_wl='-Wl,'
8657 *Sun\ F*)
8658 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8659 lt_prog_compiler_pic='-KPIC'
8660 lt_prog_compiler_static='-Bstatic'
8661 lt_prog_compiler_wl=''
8663 esac
8665 esac
8668 newsos6)
8669 lt_prog_compiler_pic='-KPIC'
8670 lt_prog_compiler_static='-Bstatic'
8673 *nto* | *qnx*)
8674 # QNX uses GNU C++, but need to define -shared option too, otherwise
8675 # it will coredump.
8676 lt_prog_compiler_pic='-fPIC -shared'
8679 osf3* | osf4* | osf5*)
8680 lt_prog_compiler_wl='-Wl,'
8681 # All OSF/1 code is PIC.
8682 lt_prog_compiler_static='-non_shared'
8685 rdos*)
8686 lt_prog_compiler_static='-non_shared'
8689 solaris*)
8690 lt_prog_compiler_pic='-KPIC'
8691 lt_prog_compiler_static='-Bstatic'
8692 case $cc_basename in
8693 f77* | f90* | f95*)
8694 lt_prog_compiler_wl='-Qoption ld ';;
8696 lt_prog_compiler_wl='-Wl,';;
8697 esac
8700 sunos4*)
8701 lt_prog_compiler_wl='-Qoption ld '
8702 lt_prog_compiler_pic='-PIC'
8703 lt_prog_compiler_static='-Bstatic'
8706 sysv4 | sysv4.2uw2* | sysv4.3*)
8707 lt_prog_compiler_wl='-Wl,'
8708 lt_prog_compiler_pic='-KPIC'
8709 lt_prog_compiler_static='-Bstatic'
8712 sysv4*MP*)
8713 if test -d /usr/nec ;then
8714 lt_prog_compiler_pic='-Kconform_pic'
8715 lt_prog_compiler_static='-Bstatic'
8719 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8720 lt_prog_compiler_wl='-Wl,'
8721 lt_prog_compiler_pic='-KPIC'
8722 lt_prog_compiler_static='-Bstatic'
8725 unicos*)
8726 lt_prog_compiler_wl='-Wl,'
8727 lt_prog_compiler_can_build_shared=no
8730 uts4*)
8731 lt_prog_compiler_pic='-pic'
8732 lt_prog_compiler_static='-Bstatic'
8736 lt_prog_compiler_can_build_shared=no
8738 esac
8741 case $host_os in
8742 # For platforms which do not support PIC, -DPIC is meaningless:
8743 *djgpp*)
8744 lt_prog_compiler_pic=
8747 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8749 esac
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8751 $as_echo "$lt_prog_compiler_pic" >&6; }
8759 # Check to make sure the PIC flag actually works.
8761 if test -n "$lt_prog_compiler_pic"; then
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8763 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8764 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8765 $as_echo_n "(cached) " >&6
8766 else
8767 lt_cv_prog_compiler_pic_works=no
8768 ac_outfile=conftest.$ac_objext
8769 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8770 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8771 # Insert the option either (1) after the last *FLAGS variable, or
8772 # (2) before a word containing "conftest.", or (3) at the end.
8773 # Note that $ac_compile itself does not contain backslashes and begins
8774 # with a dollar sign (not a hyphen), so the echo should work correctly.
8775 # The option is referenced via a variable to avoid confusing sed.
8776 lt_compile=`echo "$ac_compile" | $SED \
8777 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8778 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8779 -e 's:$: $lt_compiler_flag:'`
8780 (eval echo "\"\$as_me:8780: $lt_compile\"" >&5)
8781 (eval "$lt_compile" 2>conftest.err)
8782 ac_status=$?
8783 cat conftest.err >&5
8784 echo "$as_me:8784: \$? = $ac_status" >&5
8785 if (exit $ac_status) && test -s "$ac_outfile"; then
8786 # The compiler can only warn and ignore the option if not recognized
8787 # So say no if there are warnings other than the usual output.
8788 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8789 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8790 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8791 lt_cv_prog_compiler_pic_works=yes
8794 $RM conftest*
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8798 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8800 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8801 case $lt_prog_compiler_pic in
8802 "" | " "*) ;;
8803 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8804 esac
8805 else
8806 lt_prog_compiler_pic=
8807 lt_prog_compiler_can_build_shared=no
8818 # Check to make sure the static flag actually works.
8820 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8822 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8823 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8824 $as_echo_n "(cached) " >&6
8825 else
8826 lt_cv_prog_compiler_static_works=no
8827 save_LDFLAGS="$LDFLAGS"
8828 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8829 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8830 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8831 # The linker can only warn and ignore the option if not recognized
8832 # So say no if there are warnings
8833 if test -s conftest.err; then
8834 # Append any errors to the config.log.
8835 cat conftest.err 1>&5
8836 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8837 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8838 if diff conftest.exp conftest.er2 >/dev/null; then
8839 lt_cv_prog_compiler_static_works=yes
8841 else
8842 lt_cv_prog_compiler_static_works=yes
8845 $RM -r conftest*
8846 LDFLAGS="$save_LDFLAGS"
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8850 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8852 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8854 else
8855 lt_prog_compiler_static=
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8865 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8866 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8867 $as_echo_n "(cached) " >&6
8868 else
8869 lt_cv_prog_compiler_c_o=no
8870 $RM -r conftest 2>/dev/null
8871 mkdir conftest
8872 cd conftest
8873 mkdir out
8874 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8876 lt_compiler_flag="-o out/conftest2.$ac_objext"
8877 # Insert the option either (1) after the last *FLAGS variable, or
8878 # (2) before a word containing "conftest.", or (3) at the end.
8879 # Note that $ac_compile itself does not contain backslashes and begins
8880 # with a dollar sign (not a hyphen), so the echo should work correctly.
8881 lt_compile=`echo "$ac_compile" | $SED \
8882 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8883 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8884 -e 's:$: $lt_compiler_flag:'`
8885 (eval echo "\"\$as_me:8885: $lt_compile\"" >&5)
8886 (eval "$lt_compile" 2>out/conftest.err)
8887 ac_status=$?
8888 cat out/conftest.err >&5
8889 echo "$as_me:8889: \$? = $ac_status" >&5
8890 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8891 then
8892 # The compiler can only warn and ignore the option if not recognized
8893 # So say no if there are warnings
8894 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8895 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8896 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8897 lt_cv_prog_compiler_c_o=yes
8900 chmod u+w . 2>&5
8901 $RM conftest*
8902 # SGI C++ compiler will create directory out/ii_files/ for
8903 # template instantiation
8904 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8905 $RM out/* && rmdir out
8906 cd ..
8907 $RM -r conftest
8908 $RM conftest*
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8912 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8920 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8921 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8922 $as_echo_n "(cached) " >&6
8923 else
8924 lt_cv_prog_compiler_c_o=no
8925 $RM -r conftest 2>/dev/null
8926 mkdir conftest
8927 cd conftest
8928 mkdir out
8929 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8931 lt_compiler_flag="-o out/conftest2.$ac_objext"
8932 # Insert the option either (1) after the last *FLAGS variable, or
8933 # (2) before a word containing "conftest.", or (3) at the end.
8934 # Note that $ac_compile itself does not contain backslashes and begins
8935 # with a dollar sign (not a hyphen), so the echo should work correctly.
8936 lt_compile=`echo "$ac_compile" | $SED \
8937 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8938 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8939 -e 's:$: $lt_compiler_flag:'`
8940 (eval echo "\"\$as_me:8940: $lt_compile\"" >&5)
8941 (eval "$lt_compile" 2>out/conftest.err)
8942 ac_status=$?
8943 cat out/conftest.err >&5
8944 echo "$as_me:8944: \$? = $ac_status" >&5
8945 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8946 then
8947 # The compiler can only warn and ignore the option if not recognized
8948 # So say no if there are warnings
8949 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8950 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8951 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8952 lt_cv_prog_compiler_c_o=yes
8955 chmod u+w . 2>&5
8956 $RM conftest*
8957 # SGI C++ compiler will create directory out/ii_files/ for
8958 # template instantiation
8959 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8960 $RM out/* && rmdir out
8961 cd ..
8962 $RM -r conftest
8963 $RM conftest*
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8967 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8972 hard_links="nottested"
8973 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8974 # do not overwrite the value of need_locks provided by the user
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8976 $as_echo_n "checking if we can lock with hard links... " >&6; }
8977 hard_links=yes
8978 $RM conftest*
8979 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8980 touch conftest.a
8981 ln conftest.a conftest.b 2>&5 || hard_links=no
8982 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8984 $as_echo "$hard_links" >&6; }
8985 if test "$hard_links" = no; then
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8987 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8988 need_locks=warn
8990 else
8991 need_locks=no
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9000 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9002 runpath_var=
9003 allow_undefined_flag=
9004 always_export_symbols=no
9005 archive_cmds=
9006 archive_expsym_cmds=
9007 compiler_needs_object=no
9008 enable_shared_with_static_runtimes=no
9009 export_dynamic_flag_spec=
9010 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9011 hardcode_automatic=no
9012 hardcode_direct=no
9013 hardcode_direct_absolute=no
9014 hardcode_libdir_flag_spec=
9015 hardcode_libdir_flag_spec_ld=
9016 hardcode_libdir_separator=
9017 hardcode_minus_L=no
9018 hardcode_shlibpath_var=unsupported
9019 inherit_rpath=no
9020 link_all_deplibs=unknown
9021 module_cmds=
9022 module_expsym_cmds=
9023 old_archive_from_new_cmds=
9024 old_archive_from_expsyms_cmds=
9025 thread_safe_flag_spec=
9026 whole_archive_flag_spec=
9027 # include_expsyms should be a list of space-separated symbols to be *always*
9028 # included in the symbol list
9029 include_expsyms=
9030 # exclude_expsyms can be an extended regexp of symbols to exclude
9031 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9032 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9033 # as well as any symbol that contains `d'.
9034 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9035 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9036 # platforms (ab)use it in PIC code, but their linkers get confused if
9037 # the symbol is explicitly referenced. Since portable code cannot
9038 # rely on this symbol name, it's probably fine to never include it in
9039 # preloaded symbol tables.
9040 # Exclude shared library initialization/finalization symbols.
9041 extract_expsyms_cmds=
9043 case $host_os in
9044 cygwin* | mingw* | pw32*)
9045 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9046 # When not using gcc, we currently assume that we are using
9047 # Microsoft Visual C++.
9048 if test "$GCC" != yes; then
9049 with_gnu_ld=no
9052 interix*)
9053 # we just hope/assume this is gcc and not c89 (= MSVC++)
9054 with_gnu_ld=yes
9056 openbsd*)
9057 with_gnu_ld=no
9059 esac
9061 ld_shlibs=yes
9062 if test "$with_gnu_ld" = yes; then
9063 # If archive_cmds runs LD, not CC, wlarc should be empty
9064 wlarc='${wl}'
9066 # Set some defaults for GNU ld with shared library support. These
9067 # are reset later if shared libraries are not supported. Putting them
9068 # here allows them to be overridden if necessary.
9069 runpath_var=LD_RUN_PATH
9070 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9071 export_dynamic_flag_spec='${wl}--export-dynamic'
9072 # ancient GNU ld didn't support --whole-archive et. al.
9073 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9074 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9075 else
9076 whole_archive_flag_spec=
9078 supports_anon_versioning=no
9079 case `$LD -v 2>&1` in
9080 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9081 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9082 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9083 *\ 2.11.*) ;; # other 2.11 versions
9084 *) supports_anon_versioning=yes ;;
9085 esac
9087 # See if GNU ld supports shared libraries.
9088 case $host_os in
9089 aix[3-9]*)
9090 # On AIX/PPC, the GNU linker is very broken
9091 if test "$host_cpu" != ia64; then
9092 ld_shlibs=no
9093 cat <<_LT_EOF 1>&2
9095 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9096 *** to be unable to reliably create shared libraries on AIX.
9097 *** Therefore, libtool is disabling shared libraries support. If you
9098 *** really care for shared libraries, you may want to modify your PATH
9099 *** so that a non-GNU linker is found, and then restart.
9101 _LT_EOF
9105 amigaos*)
9106 case $host_cpu in
9107 powerpc)
9108 # see comment about AmigaOS4 .so support
9109 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9110 archive_expsym_cmds=''
9112 m68k)
9113 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)'
9114 hardcode_libdir_flag_spec='-L$libdir'
9115 hardcode_minus_L=yes
9117 esac
9120 beos*)
9121 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9122 allow_undefined_flag=unsupported
9123 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9124 # support --undefined. This deserves some investigation. FIXME
9125 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9126 else
9127 ld_shlibs=no
9131 cygwin* | mingw* | pw32*)
9132 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9133 # as there is no search path for DLLs.
9134 hardcode_libdir_flag_spec='-L$libdir'
9135 allow_undefined_flag=unsupported
9136 always_export_symbols=no
9137 enable_shared_with_static_runtimes=yes
9138 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9140 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9141 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9142 # If the export-symbols file already is a .def file (1st line
9143 # is EXPORTS), use it as is; otherwise, prepend...
9144 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9145 cp $export_symbols $output_objdir/$soname.def;
9146 else
9147 echo EXPORTS > $output_objdir/$soname.def;
9148 cat $export_symbols >> $output_objdir/$soname.def;
9150 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9151 else
9152 ld_shlibs=no
9156 interix[3-9]*)
9157 hardcode_direct=no
9158 hardcode_shlibpath_var=no
9159 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9160 export_dynamic_flag_spec='${wl}-E'
9161 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9162 # Instead, shared libraries are loaded at an image base (0x10000000 by
9163 # default) and relocated if they conflict, which is a slow very memory
9164 # consuming and fragmenting process. To avoid this, we pick a random,
9165 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9166 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9167 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9168 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'
9171 gnu* | linux* | tpf* | k*bsd*-gnu)
9172 tmp_diet=no
9173 if test "$host_os" = linux-dietlibc; then
9174 case $cc_basename in
9175 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9176 esac
9178 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9179 && test "$tmp_diet" = no
9180 then
9181 tmp_addflag=
9182 tmp_sharedflag='-shared'
9183 case $cc_basename,$host_cpu in
9184 pgcc*) # Portland Group C compiler
9185 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9186 tmp_addflag=' $pic_flag'
9188 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9189 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9190 tmp_addflag=' $pic_flag -Mnomain' ;;
9191 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9192 tmp_addflag=' -i_dynamic' ;;
9193 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9194 tmp_addflag=' -i_dynamic -nofor_main' ;;
9195 ifc* | ifort*) # Intel Fortran compiler
9196 tmp_addflag=' -nofor_main' ;;
9197 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9198 tmp_sharedflag='-qmkshrobj'
9199 tmp_addflag= ;;
9200 esac
9201 case `$CC -V 2>&1 | sed 5q` in
9202 *Sun\ C*) # Sun C 5.9
9203 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9204 compiler_needs_object=yes
9205 tmp_sharedflag='-G' ;;
9206 *Sun\ F*) # Sun Fortran 8.3
9207 tmp_sharedflag='-G' ;;
9208 esac
9209 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9211 if test "x$supports_anon_versioning" = xyes; then
9212 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9213 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9214 echo "local: *; };" >> $output_objdir/$libname.ver~
9215 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9218 case $cc_basename in
9219 xlf*)
9220 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9221 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9222 hardcode_libdir_flag_spec=
9223 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9224 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9225 if test "x$supports_anon_versioning" = xyes; then
9226 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9227 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9228 echo "local: *; };" >> $output_objdir/$libname.ver~
9229 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9232 esac
9233 else
9234 ld_shlibs=no
9238 netbsd* | netbsdelf*-gnu)
9239 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9240 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9241 wlarc=
9242 else
9243 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9244 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9248 solaris*)
9249 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9250 ld_shlibs=no
9251 cat <<_LT_EOF 1>&2
9253 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9254 *** create shared libraries on Solaris systems. Therefore, libtool
9255 *** is disabling shared libraries support. We urge you to upgrade GNU
9256 *** binutils to release 2.9.1 or newer. Another option is to modify
9257 *** your PATH or compiler configuration so that the native linker is
9258 *** used, and then restart.
9260 _LT_EOF
9261 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9262 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9263 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9264 else
9265 ld_shlibs=no
9269 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9270 case `$LD -v 2>&1` in
9271 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9272 ld_shlibs=no
9273 cat <<_LT_EOF 1>&2
9275 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9276 *** reliably create shared libraries on SCO systems. Therefore, libtool
9277 *** is disabling shared libraries support. We urge you to upgrade GNU
9278 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9279 *** your PATH or compiler configuration so that the native linker is
9280 *** used, and then restart.
9282 _LT_EOF
9285 # For security reasons, it is highly recommended that you always
9286 # use absolute paths for naming shared libraries, and exclude the
9287 # DT_RUNPATH tag from executables and libraries. But doing so
9288 # requires that you compile everything twice, which is a pain.
9289 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9290 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9291 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9292 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9293 else
9294 ld_shlibs=no
9297 esac
9300 sunos4*)
9301 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9302 wlarc=
9303 hardcode_direct=yes
9304 hardcode_shlibpath_var=no
9308 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9309 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9310 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9311 else
9312 ld_shlibs=no
9315 esac
9317 if test "$ld_shlibs" = no; then
9318 runpath_var=
9319 hardcode_libdir_flag_spec=
9320 export_dynamic_flag_spec=
9321 whole_archive_flag_spec=
9323 else
9324 # PORTME fill in a description of your system's linker (not GNU ld)
9325 case $host_os in
9326 aix3*)
9327 allow_undefined_flag=unsupported
9328 always_export_symbols=yes
9329 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'
9330 # Note: this linker hardcodes the directories in LIBPATH if there
9331 # are no directories specified by -L.
9332 hardcode_minus_L=yes
9333 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9334 # Neither direct hardcoding nor static linking is supported with a
9335 # broken collect2.
9336 hardcode_direct=unsupported
9340 aix[4-9]*)
9341 if test "$host_cpu" = ia64; then
9342 # On IA64, the linker does run time linking by default, so we don't
9343 # have to do anything special.
9344 aix_use_runtimelinking=no
9345 exp_sym_flag='-Bexport'
9346 no_entry_flag=""
9347 else
9348 # If we're using GNU nm, then we don't want the "-C" option.
9349 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9350 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9351 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9352 else
9353 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'
9355 aix_use_runtimelinking=no
9357 # Test if we are trying to use run time linking or normal
9358 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9359 # need to do runtime linking.
9360 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9361 for ld_flag in $LDFLAGS; do
9362 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9363 aix_use_runtimelinking=yes
9364 break
9366 done
9368 esac
9370 exp_sym_flag='-bexport'
9371 no_entry_flag='-bnoentry'
9374 # When large executables or shared objects are built, AIX ld can
9375 # have problems creating the table of contents. If linking a library
9376 # or program results in "error TOC overflow" add -mminimal-toc to
9377 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9378 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9380 archive_cmds=''
9381 hardcode_direct=yes
9382 hardcode_direct_absolute=yes
9383 hardcode_libdir_separator=':'
9384 link_all_deplibs=yes
9385 file_list_spec='${wl}-f,'
9387 if test "$GCC" = yes; then
9388 case $host_os in aix4.[012]|aix4.[012].*)
9389 # We only want to do this on AIX 4.2 and lower, the check
9390 # below for broken collect2 doesn't work under 4.3+
9391 collect2name=`${CC} -print-prog-name=collect2`
9392 if test -f "$collect2name" &&
9393 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9394 then
9395 # We have reworked collect2
9397 else
9398 # We have old collect2
9399 hardcode_direct=unsupported
9400 # It fails to find uninstalled libraries when the uninstalled
9401 # path is not listed in the libpath. Setting hardcode_minus_L
9402 # to unsupported forces relinking
9403 hardcode_minus_L=yes
9404 hardcode_libdir_flag_spec='-L$libdir'
9405 hardcode_libdir_separator=
9408 esac
9409 shared_flag='-shared'
9410 if test "$aix_use_runtimelinking" = yes; then
9411 shared_flag="$shared_flag "'${wl}-G'
9413 link_all_deplibs=no
9414 else
9415 # not using gcc
9416 if test "$host_cpu" = ia64; then
9417 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9418 # chokes on -Wl,-G. The following line is correct:
9419 shared_flag='-G'
9420 else
9421 if test "$aix_use_runtimelinking" = yes; then
9422 shared_flag='${wl}-G'
9423 else
9424 shared_flag='${wl}-bM:SRE'
9429 # It seems that -bexpall does not export symbols beginning with
9430 # underscore (_), so it is better to generate a list of symbols to export.
9431 always_export_symbols=yes
9432 if test "$aix_use_runtimelinking" = yes; then
9433 # Warning - without using the other runtime loading flags (-brtl),
9434 # -berok will link without error, but may produce a broken library.
9435 allow_undefined_flag='-berok'
9436 # Determine the default libpath from the value encoded in an
9437 # empty executable.
9438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9439 /* end confdefs.h. */
9442 main ()
9446 return 0;
9448 _ACEOF
9449 if ac_fn_c_try_link "$LINENO"; then :
9451 lt_aix_libpath_sed='
9452 /Import File Strings/,/^$/ {
9453 /^0/ {
9454 s/^0 *\(.*\)$/\1/
9458 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9459 # Check for a 64-bit object if we didn't find anything.
9460 if test -z "$aix_libpath"; then
9461 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9464 rm -f core conftest.err conftest.$ac_objext \
9465 conftest$ac_exeext conftest.$ac_ext
9466 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9468 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9469 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9470 else
9471 if test "$host_cpu" = ia64; then
9472 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9473 allow_undefined_flag="-z nodefs"
9474 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"
9475 else
9476 # Determine the default libpath from the value encoded in an
9477 # empty executable.
9478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9479 /* end confdefs.h. */
9482 main ()
9486 return 0;
9488 _ACEOF
9489 if ac_fn_c_try_link "$LINENO"; then :
9491 lt_aix_libpath_sed='
9492 /Import File Strings/,/^$/ {
9493 /^0/ {
9494 s/^0 *\(.*\)$/\1/
9498 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9499 # Check for a 64-bit object if we didn't find anything.
9500 if test -z "$aix_libpath"; then
9501 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9504 rm -f core conftest.err conftest.$ac_objext \
9505 conftest$ac_exeext conftest.$ac_ext
9506 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9508 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9509 # Warning - without using the other run time loading flags,
9510 # -berok will link without error, but may produce a broken library.
9511 no_undefined_flag=' ${wl}-bernotok'
9512 allow_undefined_flag=' ${wl}-berok'
9513 # Exported symbols can be pulled into shared objects from archives
9514 whole_archive_flag_spec='$convenience'
9515 archive_cmds_need_lc=yes
9516 # This is similar to how AIX traditionally builds its shared libraries.
9517 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'
9522 amigaos*)
9523 case $host_cpu in
9524 powerpc)
9525 # see comment about AmigaOS4 .so support
9526 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9527 archive_expsym_cmds=''
9529 m68k)
9530 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)'
9531 hardcode_libdir_flag_spec='-L$libdir'
9532 hardcode_minus_L=yes
9534 esac
9537 bsdi[45]*)
9538 export_dynamic_flag_spec=-rdynamic
9541 cygwin* | mingw* | pw32*)
9542 # When not using gcc, we currently assume that we are using
9543 # Microsoft Visual C++.
9544 # hardcode_libdir_flag_spec is actually meaningless, as there is
9545 # no search path for DLLs.
9546 hardcode_libdir_flag_spec=' '
9547 allow_undefined_flag=unsupported
9548 # Tell ltmain to make .lib files, not .a files.
9549 libext=lib
9550 # Tell ltmain to make .dll files, not .so files.
9551 shrext_cmds=".dll"
9552 # FIXME: Setting linknames here is a bad hack.
9553 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9554 # The linker will automatically build a .lib file if we build a DLL.
9555 old_archive_from_new_cmds='true'
9556 # FIXME: Should let the user specify the lib program.
9557 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9558 fix_srcfile_path='`cygpath -w "$srcfile"`'
9559 enable_shared_with_static_runtimes=yes
9562 darwin* | rhapsody*)
9565 archive_cmds_need_lc=no
9566 hardcode_direct=no
9567 hardcode_automatic=yes
9568 hardcode_shlibpath_var=unsupported
9569 whole_archive_flag_spec=''
9570 link_all_deplibs=yes
9571 allow_undefined_flag="$_lt_dar_allow_undefined"
9572 if test "$GCC" = "yes"; then
9573 output_verbose_link_cmd=echo
9574 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9575 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9576 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}"
9577 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}"
9579 else
9580 ld_shlibs=no
9585 dgux*)
9586 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9587 hardcode_libdir_flag_spec='-L$libdir'
9588 hardcode_shlibpath_var=no
9591 freebsd1*)
9592 ld_shlibs=no
9595 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9596 # support. Future versions do this automatically, but an explicit c++rt0.o
9597 # does not break anything, and helps significantly (at the cost of a little
9598 # extra space).
9599 freebsd2.2*)
9600 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9601 hardcode_libdir_flag_spec='-R$libdir'
9602 hardcode_direct=yes
9603 hardcode_shlibpath_var=no
9606 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9607 freebsd2*)
9608 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9609 hardcode_direct=yes
9610 hardcode_minus_L=yes
9611 hardcode_shlibpath_var=no
9614 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9615 freebsd* | dragonfly*)
9616 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9617 hardcode_libdir_flag_spec='-R$libdir'
9618 hardcode_direct=yes
9619 hardcode_shlibpath_var=no
9622 hpux9*)
9623 if test "$GCC" = yes; then
9624 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9625 else
9626 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'
9628 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9629 hardcode_libdir_separator=:
9630 hardcode_direct=yes
9632 # hardcode_minus_L: Not really in the search PATH,
9633 # but as the default location of the library.
9634 hardcode_minus_L=yes
9635 export_dynamic_flag_spec='${wl}-E'
9638 hpux10*)
9639 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9640 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9641 else
9642 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9644 if test "$with_gnu_ld" = no; then
9645 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9646 hardcode_libdir_flag_spec_ld='+b $libdir'
9647 hardcode_libdir_separator=:
9648 hardcode_direct=yes
9649 hardcode_direct_absolute=yes
9650 export_dynamic_flag_spec='${wl}-E'
9651 # hardcode_minus_L: Not really in the search PATH,
9652 # but as the default location of the library.
9653 hardcode_minus_L=yes
9657 hpux11*)
9658 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9659 case $host_cpu in
9660 hppa*64*)
9661 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9663 ia64*)
9664 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9667 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9669 esac
9670 else
9671 case $host_cpu in
9672 hppa*64*)
9673 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9675 ia64*)
9676 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9679 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9681 esac
9683 if test "$with_gnu_ld" = no; then
9684 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9685 hardcode_libdir_separator=:
9687 case $host_cpu in
9688 hppa*64*|ia64*)
9689 hardcode_direct=no
9690 hardcode_shlibpath_var=no
9693 hardcode_direct=yes
9694 hardcode_direct_absolute=yes
9695 export_dynamic_flag_spec='${wl}-E'
9697 # hardcode_minus_L: Not really in the search PATH,
9698 # but as the default location of the library.
9699 hardcode_minus_L=yes
9701 esac
9705 irix5* | irix6* | nonstopux*)
9706 if test "$GCC" = yes; then
9707 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9708 # Try to use the -exported_symbol ld option, if it does not
9709 # work, assume that -exports_file does not work either and
9710 # implicitly export all symbols.
9711 save_LDFLAGS="$LDFLAGS"
9712 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9714 /* end confdefs.h. */
9715 int foo(void) {}
9716 _ACEOF
9717 if ac_fn_c_try_link "$LINENO"; then :
9718 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9721 rm -f core conftest.err conftest.$ac_objext \
9722 conftest$ac_exeext conftest.$ac_ext
9723 LDFLAGS="$save_LDFLAGS"
9724 else
9725 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9726 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9728 archive_cmds_need_lc='no'
9729 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9730 hardcode_libdir_separator=:
9731 inherit_rpath=yes
9732 link_all_deplibs=yes
9735 netbsd* | netbsdelf*-gnu)
9736 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9737 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9738 else
9739 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9741 hardcode_libdir_flag_spec='-R$libdir'
9742 hardcode_direct=yes
9743 hardcode_shlibpath_var=no
9746 newsos6)
9747 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9748 hardcode_direct=yes
9749 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9750 hardcode_libdir_separator=:
9751 hardcode_shlibpath_var=no
9754 *nto* | *qnx*)
9757 openbsd*)
9758 if test -f /usr/libexec/ld.so; then
9759 hardcode_direct=yes
9760 hardcode_shlibpath_var=no
9761 hardcode_direct_absolute=yes
9762 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9763 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9764 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9765 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9766 export_dynamic_flag_spec='${wl}-E'
9767 else
9768 case $host_os in
9769 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9770 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9771 hardcode_libdir_flag_spec='-R$libdir'
9774 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9775 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9777 esac
9779 else
9780 ld_shlibs=no
9784 os2*)
9785 hardcode_libdir_flag_spec='-L$libdir'
9786 hardcode_minus_L=yes
9787 allow_undefined_flag=unsupported
9788 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'
9789 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9792 osf3*)
9793 if test "$GCC" = yes; then
9794 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9795 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9796 else
9797 allow_undefined_flag=' -expect_unresolved \*'
9798 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9800 archive_cmds_need_lc='no'
9801 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9802 hardcode_libdir_separator=:
9805 osf4* | osf5*) # as osf3* with the addition of -msym flag
9806 if test "$GCC" = yes; then
9807 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9808 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9809 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9810 else
9811 allow_undefined_flag=' -expect_unresolved \*'
9812 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9813 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~
9814 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9816 # Both c and cxx compiler support -rpath directly
9817 hardcode_libdir_flag_spec='-rpath $libdir'
9819 archive_cmds_need_lc='no'
9820 hardcode_libdir_separator=:
9823 solaris*)
9824 no_undefined_flag=' -z defs'
9825 if test "$GCC" = yes; then
9826 wlarc='${wl}'
9827 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9828 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9829 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9830 else
9831 case `$CC -V 2>&1` in
9832 *"Compilers 5.0"*)
9833 wlarc=''
9834 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9835 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9836 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9839 wlarc='${wl}'
9840 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9841 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9842 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9844 esac
9846 hardcode_libdir_flag_spec='-R$libdir'
9847 hardcode_shlibpath_var=no
9848 case $host_os in
9849 solaris2.[0-5] | solaris2.[0-5].*) ;;
9851 # The compiler driver will combine and reorder linker options,
9852 # but understands `-z linker_flag'. GCC discards it without `$wl',
9853 # but is careful enough not to reorder.
9854 # Supported since Solaris 2.6 (maybe 2.5.1?)
9855 if test "$GCC" = yes; then
9856 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9857 else
9858 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9861 esac
9862 link_all_deplibs=yes
9865 sunos4*)
9866 if test "x$host_vendor" = xsequent; then
9867 # Use $CC to link under sequent, because it throws in some extra .o
9868 # files that make .init and .fini sections work.
9869 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9870 else
9871 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9873 hardcode_libdir_flag_spec='-L$libdir'
9874 hardcode_direct=yes
9875 hardcode_minus_L=yes
9876 hardcode_shlibpath_var=no
9879 sysv4)
9880 case $host_vendor in
9881 sni)
9882 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9883 hardcode_direct=yes # is this really true???
9885 siemens)
9886 ## LD is ld it makes a PLAMLIB
9887 ## CC just makes a GrossModule.
9888 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9889 reload_cmds='$CC -r -o $output$reload_objs'
9890 hardcode_direct=no
9892 motorola)
9893 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9894 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9896 esac
9897 runpath_var='LD_RUN_PATH'
9898 hardcode_shlibpath_var=no
9901 sysv4.3*)
9902 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9903 hardcode_shlibpath_var=no
9904 export_dynamic_flag_spec='-Bexport'
9907 sysv4*MP*)
9908 if test -d /usr/nec; then
9909 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9910 hardcode_shlibpath_var=no
9911 runpath_var=LD_RUN_PATH
9912 hardcode_runpath_var=yes
9913 ld_shlibs=yes
9917 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9918 no_undefined_flag='${wl}-z,text'
9919 archive_cmds_need_lc=no
9920 hardcode_shlibpath_var=no
9921 runpath_var='LD_RUN_PATH'
9923 if test "$GCC" = yes; then
9924 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9925 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9926 else
9927 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9928 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9932 sysv5* | sco3.2v5* | sco5v6*)
9933 # Note: We can NOT use -z defs as we might desire, because we do not
9934 # link with -lc, and that would cause any symbols used from libc to
9935 # always be unresolved, which means just about no library would
9936 # ever link correctly. If we're not using GNU ld we use -z text
9937 # though, which does catch some bad symbols but isn't as heavy-handed
9938 # as -z defs.
9939 no_undefined_flag='${wl}-z,text'
9940 allow_undefined_flag='${wl}-z,nodefs'
9941 archive_cmds_need_lc=no
9942 hardcode_shlibpath_var=no
9943 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9944 hardcode_libdir_separator=':'
9945 link_all_deplibs=yes
9946 export_dynamic_flag_spec='${wl}-Bexport'
9947 runpath_var='LD_RUN_PATH'
9949 if test "$GCC" = yes; then
9950 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9951 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9952 else
9953 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9954 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9958 uts4*)
9959 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9960 hardcode_libdir_flag_spec='-L$libdir'
9961 hardcode_shlibpath_var=no
9965 ld_shlibs=no
9967 esac
9969 if test x$host_vendor = xsni; then
9970 case $host in
9971 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9972 export_dynamic_flag_spec='${wl}-Blargedynsym'
9974 esac
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9979 $as_echo "$ld_shlibs" >&6; }
9980 test "$ld_shlibs" = no && can_build_shared=no
9982 with_gnu_ld=$with_gnu_ld
9999 # Do we need to explicitly link libc?
10001 case "x$archive_cmds_need_lc" in
10002 x|xyes)
10003 # Assume -lc should be added
10004 archive_cmds_need_lc=yes
10006 if test "$enable_shared" = yes && test "$GCC" = yes; then
10007 case $archive_cmds in
10008 *'~'*)
10009 # FIXME: we may have to deal with multi-command sequences.
10011 '$CC '*)
10012 # Test whether the compiler implicitly links with -lc since on some
10013 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10014 # to ld, don't add -lc before -lgcc.
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10016 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10017 $RM conftest*
10018 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10020 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10021 (eval $ac_compile) 2>&5
10022 ac_status=$?
10023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10024 test $ac_status = 0; } 2>conftest.err; then
10025 soname=conftest
10026 lib=conftest
10027 libobjs=conftest.$ac_objext
10028 deplibs=
10029 wl=$lt_prog_compiler_wl
10030 pic_flag=$lt_prog_compiler_pic
10031 compiler_flags=-v
10032 linker_flags=-v
10033 verstring=
10034 output_objdir=.
10035 libname=conftest
10036 lt_save_allow_undefined_flag=$allow_undefined_flag
10037 allow_undefined_flag=
10038 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10039 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10040 ac_status=$?
10041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10042 test $ac_status = 0; }
10043 then
10044 archive_cmds_need_lc=no
10045 else
10046 archive_cmds_need_lc=yes
10048 allow_undefined_flag=$lt_save_allow_undefined_flag
10049 else
10050 cat conftest.err 1>&5
10052 $RM conftest*
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10054 $as_echo "$archive_cmds_need_lc" >&6; }
10056 esac
10059 esac
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10218 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10220 if test "$GCC" = yes; then
10221 case $host_os in
10222 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10223 *) lt_awk_arg="/^libraries:/" ;;
10224 esac
10225 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10226 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10227 # if the path contains ";" then we assume it to be the separator
10228 # otherwise default to the standard path separator (i.e. ":") - it is
10229 # assumed that no part of a normal pathname contains ";" but that should
10230 # okay in the real world where ";" in dirpaths is itself problematic.
10231 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10232 else
10233 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10235 # Ok, now we have the path, separated by spaces, we can step through it
10236 # and add multilib dir if necessary.
10237 lt_tmp_lt_search_path_spec=
10238 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10239 for lt_sys_path in $lt_search_path_spec; do
10240 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10241 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10242 else
10243 test -d "$lt_sys_path" && \
10244 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10246 done
10247 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10248 BEGIN {RS=" "; FS="/|\n";} {
10249 lt_foo="";
10250 lt_count=0;
10251 for (lt_i = NF; lt_i > 0; lt_i--) {
10252 if ($lt_i != "" && $lt_i != ".") {
10253 if ($lt_i == "..") {
10254 lt_count++;
10255 } else {
10256 if (lt_count == 0) {
10257 lt_foo="/" $lt_i lt_foo;
10258 } else {
10259 lt_count--;
10264 if (lt_foo != "") { lt_freq[lt_foo]++; }
10265 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10267 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10268 else
10269 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10271 library_names_spec=
10272 libname_spec='lib$name'
10273 soname_spec=
10274 shrext_cmds=".so"
10275 postinstall_cmds=
10276 postuninstall_cmds=
10277 finish_cmds=
10278 finish_eval=
10279 shlibpath_var=
10280 shlibpath_overrides_runpath=unknown
10281 version_type=none
10282 dynamic_linker="$host_os ld.so"
10283 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10284 need_lib_prefix=unknown
10285 hardcode_into_libs=no
10287 # when you set need_version to no, make sure it does not cause -set_version
10288 # flags to be left without arguments
10289 need_version=unknown
10291 case $host_os in
10292 aix3*)
10293 version_type=linux
10294 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10295 shlibpath_var=LIBPATH
10297 # AIX 3 has no versioning support, so we append a major version to the name.
10298 soname_spec='${libname}${release}${shared_ext}$major'
10301 aix[4-9]*)
10302 version_type=linux
10303 need_lib_prefix=no
10304 need_version=no
10305 hardcode_into_libs=yes
10306 if test "$host_cpu" = ia64; then
10307 # AIX 5 supports IA64
10308 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10309 shlibpath_var=LD_LIBRARY_PATH
10310 else
10311 # With GCC up to 2.95.x, collect2 would create an import file
10312 # for dependence libraries. The import file would start with
10313 # the line `#! .'. This would cause the generated library to
10314 # depend on `.', always an invalid library. This was fixed in
10315 # development snapshots of GCC prior to 3.0.
10316 case $host_os in
10317 aix4 | aix4.[01] | aix4.[01].*)
10318 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10319 echo ' yes '
10320 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10322 else
10323 can_build_shared=no
10326 esac
10327 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10328 # soname into executable. Probably we can add versioning support to
10329 # collect2, so additional links can be useful in future.
10330 if test "$aix_use_runtimelinking" = yes; then
10331 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10332 # instead of lib<name>.a to let people know that these are not
10333 # typical AIX shared libraries.
10334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10335 else
10336 # We preserve .a as extension for shared libraries through AIX4.2
10337 # and later when we are not doing run time linking.
10338 library_names_spec='${libname}${release}.a $libname.a'
10339 soname_spec='${libname}${release}${shared_ext}$major'
10341 shlibpath_var=LIBPATH
10345 amigaos*)
10346 case $host_cpu in
10347 powerpc)
10348 # Since July 2007 AmigaOS4 officially supports .so libraries.
10349 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10352 m68k)
10353 library_names_spec='$libname.ixlibrary $libname.a'
10354 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10355 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
10357 esac
10360 beos*)
10361 library_names_spec='${libname}${shared_ext}'
10362 dynamic_linker="$host_os ld.so"
10363 shlibpath_var=LIBRARY_PATH
10366 bsdi[45]*)
10367 version_type=linux
10368 need_version=no
10369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10370 soname_spec='${libname}${release}${shared_ext}$major'
10371 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10372 shlibpath_var=LD_LIBRARY_PATH
10373 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10374 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10375 # the default ld.so.conf also contains /usr/contrib/lib and
10376 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10377 # libtool to hard-code these into programs
10380 cygwin* | mingw* | pw32*)
10381 version_type=windows
10382 shrext_cmds=".dll"
10383 need_version=no
10384 need_lib_prefix=no
10386 case $GCC,$host_os in
10387 yes,cygwin* | yes,mingw* | yes,pw32*)
10388 library_names_spec='$libname.dll.a'
10389 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10390 postinstall_cmds='base_file=`basename \${file}`~
10391 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10392 dldir=$destdir/`dirname \$dlpath`~
10393 test -d \$dldir || mkdir -p \$dldir~
10394 $install_prog $dir/$dlname \$dldir/$dlname~
10395 chmod a+x \$dldir/$dlname~
10396 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10397 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10399 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10400 dlpath=$dir/\$dldll~
10401 $RM \$dlpath'
10402 shlibpath_overrides_runpath=yes
10404 case $host_os in
10405 cygwin*)
10406 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10407 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10408 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10410 mingw*)
10411 # MinGW DLLs use traditional 'lib' prefix
10412 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10413 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10414 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10415 # It is most probably a Windows format PATH printed by
10416 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10417 # path with ; separators, and with drive letters. We can handle the
10418 # drive letters (cygwin fileutils understands them), so leave them,
10419 # especially as we might pass files found there to a mingw objdump,
10420 # which wouldn't understand a cygwinified path. Ahh.
10421 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10422 else
10423 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10426 pw32*)
10427 # pw32 DLLs use 'pw' prefix rather than 'lib'
10428 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10430 esac
10434 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10436 esac
10437 dynamic_linker='Win32 ld.exe'
10438 # FIXME: first we should search . and the directory the executable is in
10439 shlibpath_var=PATH
10442 darwin* | rhapsody*)
10443 dynamic_linker="$host_os dyld"
10444 version_type=darwin
10445 need_lib_prefix=no
10446 need_version=no
10447 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10448 soname_spec='${libname}${release}${major}$shared_ext'
10449 shlibpath_overrides_runpath=yes
10450 shlibpath_var=DYLD_LIBRARY_PATH
10451 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10453 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10454 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10457 dgux*)
10458 version_type=linux
10459 need_lib_prefix=no
10460 need_version=no
10461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10462 soname_spec='${libname}${release}${shared_ext}$major'
10463 shlibpath_var=LD_LIBRARY_PATH
10466 freebsd1*)
10467 dynamic_linker=no
10470 freebsd* | dragonfly*)
10471 # DragonFly does not have aout. When/if they implement a new
10472 # versioning mechanism, adjust this.
10473 if test -x /usr/bin/objformat; then
10474 objformat=`/usr/bin/objformat`
10475 else
10476 case $host_os in
10477 freebsd[123]*) objformat=aout ;;
10478 *) objformat=elf ;;
10479 esac
10481 version_type=freebsd-$objformat
10482 case $version_type in
10483 freebsd-elf*)
10484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10485 need_version=no
10486 need_lib_prefix=no
10488 freebsd-*)
10489 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10490 need_version=yes
10492 esac
10493 shlibpath_var=LD_LIBRARY_PATH
10494 case $host_os in
10495 freebsd2*)
10496 shlibpath_overrides_runpath=yes
10498 freebsd3.[01]* | freebsdelf3.[01]*)
10499 shlibpath_overrides_runpath=yes
10500 hardcode_into_libs=yes
10502 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10503 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10504 shlibpath_overrides_runpath=no
10505 hardcode_into_libs=yes
10507 *) # from 4.6 on, and DragonFly
10508 shlibpath_overrides_runpath=yes
10509 hardcode_into_libs=yes
10511 esac
10514 gnu*)
10515 version_type=linux
10516 need_lib_prefix=no
10517 need_version=no
10518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10519 soname_spec='${libname}${release}${shared_ext}$major'
10520 shlibpath_var=LD_LIBRARY_PATH
10521 hardcode_into_libs=yes
10524 hpux9* | hpux10* | hpux11*)
10525 # Give a soname corresponding to the major version so that dld.sl refuses to
10526 # link against other versions.
10527 version_type=sunos
10528 need_lib_prefix=no
10529 need_version=no
10530 case $host_cpu in
10531 ia64*)
10532 shrext_cmds='.so'
10533 hardcode_into_libs=yes
10534 dynamic_linker="$host_os dld.so"
10535 shlibpath_var=LD_LIBRARY_PATH
10536 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10538 soname_spec='${libname}${release}${shared_ext}$major'
10539 if test "X$HPUX_IA64_MODE" = X32; then
10540 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10541 else
10542 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10544 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10546 hppa*64*)
10547 shrext_cmds='.sl'
10548 hardcode_into_libs=yes
10549 dynamic_linker="$host_os dld.sl"
10550 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10551 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10553 soname_spec='${libname}${release}${shared_ext}$major'
10554 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10555 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10558 shrext_cmds='.sl'
10559 dynamic_linker="$host_os dld.sl"
10560 shlibpath_var=SHLIB_PATH
10561 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10563 soname_spec='${libname}${release}${shared_ext}$major'
10565 esac
10566 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10567 postinstall_cmds='chmod 555 $lib'
10570 interix[3-9]*)
10571 version_type=linux
10572 need_lib_prefix=no
10573 need_version=no
10574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10575 soname_spec='${libname}${release}${shared_ext}$major'
10576 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10577 shlibpath_var=LD_LIBRARY_PATH
10578 shlibpath_overrides_runpath=no
10579 hardcode_into_libs=yes
10582 irix5* | irix6* | nonstopux*)
10583 case $host_os in
10584 nonstopux*) version_type=nonstopux ;;
10586 if test "$lt_cv_prog_gnu_ld" = yes; then
10587 version_type=linux
10588 else
10589 version_type=irix
10590 fi ;;
10591 esac
10592 need_lib_prefix=no
10593 need_version=no
10594 soname_spec='${libname}${release}${shared_ext}$major'
10595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10596 case $host_os in
10597 irix5* | nonstopux*)
10598 libsuff= shlibsuff=
10601 case $LD in # libtool.m4 will add one of these switches to LD
10602 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10603 libsuff= shlibsuff= libmagic=32-bit;;
10604 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10605 libsuff=32 shlibsuff=N32 libmagic=N32;;
10606 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10607 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10608 *) libsuff= shlibsuff= libmagic=never-match;;
10609 esac
10611 esac
10612 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10613 shlibpath_overrides_runpath=no
10614 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10615 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10616 hardcode_into_libs=yes
10619 # No shared lib support for Linux oldld, aout, or coff.
10620 linux*oldld* | linux*aout* | linux*coff*)
10621 dynamic_linker=no
10624 # This must be Linux ELF.
10625 linux* | k*bsd*-gnu)
10626 version_type=linux
10627 need_lib_prefix=no
10628 need_version=no
10629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10630 soname_spec='${libname}${release}${shared_ext}$major'
10631 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10632 shlibpath_var=LD_LIBRARY_PATH
10633 shlibpath_overrides_runpath=no
10634 # Some binutils ld are patched to set DT_RUNPATH
10635 save_LDFLAGS=$LDFLAGS
10636 save_libdir=$libdir
10637 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10638 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10640 /* end confdefs.h. */
10643 main ()
10647 return 0;
10649 _ACEOF
10650 if ac_fn_c_try_link "$LINENO"; then :
10651 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10652 shlibpath_overrides_runpath=yes
10655 rm -f core conftest.err conftest.$ac_objext \
10656 conftest$ac_exeext conftest.$ac_ext
10657 LDFLAGS=$save_LDFLAGS
10658 libdir=$save_libdir
10660 # This implies no fast_install, which is unacceptable.
10661 # Some rework will be needed to allow for fast_install
10662 # before this can be enabled.
10663 hardcode_into_libs=yes
10665 # Append ld.so.conf contents to the search path
10666 if test -f /etc/ld.so.conf; then
10667 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;/^$/d' | tr '\n' ' '`
10668 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10671 # We used to test for /lib/ld.so.1 and disable shared libraries on
10672 # powerpc, because MkLinux only supported shared libraries with the
10673 # GNU dynamic linker. Since this was broken with cross compilers,
10674 # most powerpc-linux boxes support dynamic linking these days and
10675 # people can always --disable-shared, the test was removed, and we
10676 # assume the GNU/Linux dynamic linker is in use.
10677 dynamic_linker='GNU/Linux ld.so'
10680 netbsdelf*-gnu)
10681 version_type=linux
10682 need_lib_prefix=no
10683 need_version=no
10684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10685 soname_spec='${libname}${release}${shared_ext}$major'
10686 shlibpath_var=LD_LIBRARY_PATH
10687 shlibpath_overrides_runpath=no
10688 hardcode_into_libs=yes
10689 dynamic_linker='NetBSD ld.elf_so'
10692 netbsd*)
10693 version_type=sunos
10694 need_lib_prefix=no
10695 need_version=no
10696 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10698 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10699 dynamic_linker='NetBSD (a.out) ld.so'
10700 else
10701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10702 soname_spec='${libname}${release}${shared_ext}$major'
10703 dynamic_linker='NetBSD ld.elf_so'
10705 shlibpath_var=LD_LIBRARY_PATH
10706 shlibpath_overrides_runpath=yes
10707 hardcode_into_libs=yes
10710 newsos6)
10711 version_type=linux
10712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10713 shlibpath_var=LD_LIBRARY_PATH
10714 shlibpath_overrides_runpath=yes
10717 *nto* | *qnx*)
10718 version_type=qnx
10719 need_lib_prefix=no
10720 need_version=no
10721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10722 soname_spec='${libname}${release}${shared_ext}$major'
10723 shlibpath_var=LD_LIBRARY_PATH
10724 shlibpath_overrides_runpath=no
10725 hardcode_into_libs=yes
10726 dynamic_linker='ldqnx.so'
10729 openbsd*)
10730 version_type=sunos
10731 sys_lib_dlsearch_path_spec="/usr/lib"
10732 need_lib_prefix=no
10733 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10734 case $host_os in
10735 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10736 *) need_version=no ;;
10737 esac
10738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10739 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10740 shlibpath_var=LD_LIBRARY_PATH
10741 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10742 case $host_os in
10743 openbsd2.[89] | openbsd2.[89].*)
10744 shlibpath_overrides_runpath=no
10747 shlibpath_overrides_runpath=yes
10749 esac
10750 else
10751 shlibpath_overrides_runpath=yes
10755 os2*)
10756 libname_spec='$name'
10757 shrext_cmds=".dll"
10758 need_lib_prefix=no
10759 library_names_spec='$libname${shared_ext} $libname.a'
10760 dynamic_linker='OS/2 ld.exe'
10761 shlibpath_var=LIBPATH
10764 osf3* | osf4* | osf5*)
10765 version_type=osf
10766 need_lib_prefix=no
10767 need_version=no
10768 soname_spec='${libname}${release}${shared_ext}$major'
10769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10770 shlibpath_var=LD_LIBRARY_PATH
10771 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10772 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10775 rdos*)
10776 dynamic_linker=no
10779 solaris*)
10780 version_type=linux
10781 need_lib_prefix=no
10782 need_version=no
10783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10784 soname_spec='${libname}${release}${shared_ext}$major'
10785 shlibpath_var=LD_LIBRARY_PATH
10786 shlibpath_overrides_runpath=yes
10787 hardcode_into_libs=yes
10788 # ldd complains unless libraries are executable
10789 postinstall_cmds='chmod +x $lib'
10792 sunos4*)
10793 version_type=sunos
10794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10795 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10796 shlibpath_var=LD_LIBRARY_PATH
10797 shlibpath_overrides_runpath=yes
10798 if test "$with_gnu_ld" = yes; then
10799 need_lib_prefix=no
10801 need_version=yes
10804 sysv4 | sysv4.3*)
10805 version_type=linux
10806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10807 soname_spec='${libname}${release}${shared_ext}$major'
10808 shlibpath_var=LD_LIBRARY_PATH
10809 case $host_vendor in
10810 sni)
10811 shlibpath_overrides_runpath=no
10812 need_lib_prefix=no
10813 runpath_var=LD_RUN_PATH
10815 siemens)
10816 need_lib_prefix=no
10818 motorola)
10819 need_lib_prefix=no
10820 need_version=no
10821 shlibpath_overrides_runpath=no
10822 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10824 esac
10827 sysv4*MP*)
10828 if test -d /usr/nec ;then
10829 version_type=linux
10830 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10831 soname_spec='$libname${shared_ext}.$major'
10832 shlibpath_var=LD_LIBRARY_PATH
10836 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10837 version_type=freebsd-elf
10838 need_lib_prefix=no
10839 need_version=no
10840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10841 soname_spec='${libname}${release}${shared_ext}$major'
10842 shlibpath_var=LD_LIBRARY_PATH
10843 shlibpath_overrides_runpath=yes
10844 hardcode_into_libs=yes
10845 if test "$with_gnu_ld" = yes; then
10846 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10847 else
10848 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10849 case $host_os in
10850 sco3.2v5*)
10851 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10853 esac
10855 sys_lib_dlsearch_path_spec='/usr/lib'
10858 tpf*)
10859 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10860 version_type=linux
10861 need_lib_prefix=no
10862 need_version=no
10863 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10864 shlibpath_var=LD_LIBRARY_PATH
10865 shlibpath_overrides_runpath=no
10866 hardcode_into_libs=yes
10869 uts4*)
10870 version_type=linux
10871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10872 soname_spec='${libname}${release}${shared_ext}$major'
10873 shlibpath_var=LD_LIBRARY_PATH
10877 dynamic_linker=no
10879 esac
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10881 $as_echo "$dynamic_linker" >&6; }
10882 test "$dynamic_linker" = no && can_build_shared=no
10884 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10885 if test "$GCC" = yes; then
10886 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10889 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10890 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10892 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10893 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10983 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10984 hardcode_action=
10985 if test -n "$hardcode_libdir_flag_spec" ||
10986 test -n "$runpath_var" ||
10987 test "X$hardcode_automatic" = "Xyes" ; then
10989 # We can hardcode non-existent directories.
10990 if test "$hardcode_direct" != no &&
10991 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10992 # have to relink, otherwise we might link with an installed library
10993 # when we should be linking with a yet-to-be-installed one
10994 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10995 test "$hardcode_minus_L" != no; then
10996 # Linking always hardcodes the temporary library directory.
10997 hardcode_action=relink
10998 else
10999 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11000 hardcode_action=immediate
11002 else
11003 # We cannot hardcode anything, or else we can only hardcode existing
11004 # directories.
11005 hardcode_action=unsupported
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11008 $as_echo "$hardcode_action" >&6; }
11010 if test "$hardcode_action" = relink ||
11011 test "$inherit_rpath" = yes; then
11012 # Fast installation is not supported
11013 enable_fast_install=no
11014 elif test "$shlibpath_overrides_runpath" = yes ||
11015 test "$enable_shared" = no; then
11016 # Fast installation is not necessary
11017 enable_fast_install=needless
11025 if test "x$enable_dlopen" != xyes; then
11026 enable_dlopen=unknown
11027 enable_dlopen_self=unknown
11028 enable_dlopen_self_static=unknown
11029 else
11030 lt_cv_dlopen=no
11031 lt_cv_dlopen_libs=
11033 case $host_os in
11034 beos*)
11035 lt_cv_dlopen="load_add_on"
11036 lt_cv_dlopen_libs=
11037 lt_cv_dlopen_self=yes
11040 mingw* | pw32*)
11041 lt_cv_dlopen="LoadLibrary"
11042 lt_cv_dlopen_libs=
11045 cygwin*)
11046 lt_cv_dlopen="dlopen"
11047 lt_cv_dlopen_libs=
11050 darwin*)
11051 # if libdl is installed we need to link against it
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11053 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11054 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11055 $as_echo_n "(cached) " >&6
11056 else
11057 ac_check_lib_save_LIBS=$LIBS
11058 LIBS="-ldl $LIBS"
11059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11060 /* end confdefs.h. */
11062 /* Override any GCC internal prototype to avoid an error.
11063 Use char because int might match the return type of a GCC
11064 builtin and then its argument prototype would still apply. */
11065 #ifdef __cplusplus
11066 extern "C"
11067 #endif
11068 char dlopen ();
11070 main ()
11072 return dlopen ();
11074 return 0;
11076 _ACEOF
11077 if ac_fn_c_try_link "$LINENO"; then :
11078 ac_cv_lib_dl_dlopen=yes
11079 else
11080 ac_cv_lib_dl_dlopen=no
11082 rm -f core conftest.err conftest.$ac_objext \
11083 conftest$ac_exeext conftest.$ac_ext
11084 LIBS=$ac_check_lib_save_LIBS
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11087 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11088 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11089 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11090 else
11092 lt_cv_dlopen="dyld"
11093 lt_cv_dlopen_libs=
11094 lt_cv_dlopen_self=yes
11101 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11102 if test "x$ac_cv_func_shl_load" = x""yes; then :
11103 lt_cv_dlopen="shl_load"
11104 else
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11106 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11107 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11108 $as_echo_n "(cached) " >&6
11109 else
11110 ac_check_lib_save_LIBS=$LIBS
11111 LIBS="-ldld $LIBS"
11112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11113 /* end confdefs.h. */
11115 /* Override any GCC internal prototype to avoid an error.
11116 Use char because int might match the return type of a GCC
11117 builtin and then its argument prototype would still apply. */
11118 #ifdef __cplusplus
11119 extern "C"
11120 #endif
11121 char shl_load ();
11123 main ()
11125 return shl_load ();
11127 return 0;
11129 _ACEOF
11130 if ac_fn_c_try_link "$LINENO"; then :
11131 ac_cv_lib_dld_shl_load=yes
11132 else
11133 ac_cv_lib_dld_shl_load=no
11135 rm -f core conftest.err conftest.$ac_objext \
11136 conftest$ac_exeext conftest.$ac_ext
11137 LIBS=$ac_check_lib_save_LIBS
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11140 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11141 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11142 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11143 else
11144 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11145 if test "x$ac_cv_func_dlopen" = x""yes; then :
11146 lt_cv_dlopen="dlopen"
11147 else
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11149 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11150 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11151 $as_echo_n "(cached) " >&6
11152 else
11153 ac_check_lib_save_LIBS=$LIBS
11154 LIBS="-ldl $LIBS"
11155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11156 /* end confdefs.h. */
11158 /* Override any GCC internal prototype to avoid an error.
11159 Use char because int might match the return type of a GCC
11160 builtin and then its argument prototype would still apply. */
11161 #ifdef __cplusplus
11162 extern "C"
11163 #endif
11164 char dlopen ();
11166 main ()
11168 return dlopen ();
11170 return 0;
11172 _ACEOF
11173 if ac_fn_c_try_link "$LINENO"; then :
11174 ac_cv_lib_dl_dlopen=yes
11175 else
11176 ac_cv_lib_dl_dlopen=no
11178 rm -f core conftest.err conftest.$ac_objext \
11179 conftest$ac_exeext conftest.$ac_ext
11180 LIBS=$ac_check_lib_save_LIBS
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11183 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11184 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11185 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11186 else
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11188 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11189 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11190 $as_echo_n "(cached) " >&6
11191 else
11192 ac_check_lib_save_LIBS=$LIBS
11193 LIBS="-lsvld $LIBS"
11194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11195 /* end confdefs.h. */
11197 /* Override any GCC internal prototype to avoid an error.
11198 Use char because int might match the return type of a GCC
11199 builtin and then its argument prototype would still apply. */
11200 #ifdef __cplusplus
11201 extern "C"
11202 #endif
11203 char dlopen ();
11205 main ()
11207 return dlopen ();
11209 return 0;
11211 _ACEOF
11212 if ac_fn_c_try_link "$LINENO"; then :
11213 ac_cv_lib_svld_dlopen=yes
11214 else
11215 ac_cv_lib_svld_dlopen=no
11217 rm -f core conftest.err conftest.$ac_objext \
11218 conftest$ac_exeext conftest.$ac_ext
11219 LIBS=$ac_check_lib_save_LIBS
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11222 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11223 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11224 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11225 else
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11227 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11228 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11229 $as_echo_n "(cached) " >&6
11230 else
11231 ac_check_lib_save_LIBS=$LIBS
11232 LIBS="-ldld $LIBS"
11233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11234 /* end confdefs.h. */
11236 /* Override any GCC internal prototype to avoid an error.
11237 Use char because int might match the return type of a GCC
11238 builtin and then its argument prototype would still apply. */
11239 #ifdef __cplusplus
11240 extern "C"
11241 #endif
11242 char dld_link ();
11244 main ()
11246 return dld_link ();
11248 return 0;
11250 _ACEOF
11251 if ac_fn_c_try_link "$LINENO"; then :
11252 ac_cv_lib_dld_dld_link=yes
11253 else
11254 ac_cv_lib_dld_dld_link=no
11256 rm -f core conftest.err conftest.$ac_objext \
11257 conftest$ac_exeext conftest.$ac_ext
11258 LIBS=$ac_check_lib_save_LIBS
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11261 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11262 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11263 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11282 esac
11284 if test "x$lt_cv_dlopen" != xno; then
11285 enable_dlopen=yes
11286 else
11287 enable_dlopen=no
11290 case $lt_cv_dlopen in
11291 dlopen)
11292 save_CPPFLAGS="$CPPFLAGS"
11293 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11295 save_LDFLAGS="$LDFLAGS"
11296 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11298 save_LIBS="$LIBS"
11299 LIBS="$lt_cv_dlopen_libs $LIBS"
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11302 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11303 if test "${lt_cv_dlopen_self+set}" = set; then :
11304 $as_echo_n "(cached) " >&6
11305 else
11306 if test "$cross_compiling" = yes; then :
11307 lt_cv_dlopen_self=cross
11308 else
11309 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11310 lt_status=$lt_dlunknown
11311 cat > conftest.$ac_ext <<_LT_EOF
11312 #line 11312 "configure"
11313 #include "confdefs.h"
11315 #if HAVE_DLFCN_H
11316 #include <dlfcn.h>
11317 #endif
11319 #include <stdio.h>
11321 #ifdef RTLD_GLOBAL
11322 # define LT_DLGLOBAL RTLD_GLOBAL
11323 #else
11324 # ifdef DL_GLOBAL
11325 # define LT_DLGLOBAL DL_GLOBAL
11326 # else
11327 # define LT_DLGLOBAL 0
11328 # endif
11329 #endif
11331 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11332 find out it does not work in some platform. */
11333 #ifndef LT_DLLAZY_OR_NOW
11334 # ifdef RTLD_LAZY
11335 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11336 # else
11337 # ifdef DL_LAZY
11338 # define LT_DLLAZY_OR_NOW DL_LAZY
11339 # else
11340 # ifdef RTLD_NOW
11341 # define LT_DLLAZY_OR_NOW RTLD_NOW
11342 # else
11343 # ifdef DL_NOW
11344 # define LT_DLLAZY_OR_NOW DL_NOW
11345 # else
11346 # define LT_DLLAZY_OR_NOW 0
11347 # endif
11348 # endif
11349 # endif
11350 # endif
11351 #endif
11353 #ifdef __cplusplus
11354 extern "C" void exit (int);
11355 #endif
11357 void fnord() { int i=42;}
11358 int main ()
11360 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11361 int status = $lt_dlunknown;
11363 if (self)
11365 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11366 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11367 /* dlclose (self); */
11369 else
11370 puts (dlerror ());
11372 exit (status);
11374 _LT_EOF
11375 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11376 (eval $ac_link) 2>&5
11377 ac_status=$?
11378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11379 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11380 (./conftest; exit; ) >&5 2>/dev/null
11381 lt_status=$?
11382 case x$lt_status in
11383 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11384 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11385 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11386 esac
11387 else :
11388 # compilation failed
11389 lt_cv_dlopen_self=no
11392 rm -fr conftest*
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11397 $as_echo "$lt_cv_dlopen_self" >&6; }
11399 if test "x$lt_cv_dlopen_self" = xyes; then
11400 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11402 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11403 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11404 $as_echo_n "(cached) " >&6
11405 else
11406 if test "$cross_compiling" = yes; then :
11407 lt_cv_dlopen_self_static=cross
11408 else
11409 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11410 lt_status=$lt_dlunknown
11411 cat > conftest.$ac_ext <<_LT_EOF
11412 #line 11412 "configure"
11413 #include "confdefs.h"
11415 #if HAVE_DLFCN_H
11416 #include <dlfcn.h>
11417 #endif
11419 #include <stdio.h>
11421 #ifdef RTLD_GLOBAL
11422 # define LT_DLGLOBAL RTLD_GLOBAL
11423 #else
11424 # ifdef DL_GLOBAL
11425 # define LT_DLGLOBAL DL_GLOBAL
11426 # else
11427 # define LT_DLGLOBAL 0
11428 # endif
11429 #endif
11431 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11432 find out it does not work in some platform. */
11433 #ifndef LT_DLLAZY_OR_NOW
11434 # ifdef RTLD_LAZY
11435 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11436 # else
11437 # ifdef DL_LAZY
11438 # define LT_DLLAZY_OR_NOW DL_LAZY
11439 # else
11440 # ifdef RTLD_NOW
11441 # define LT_DLLAZY_OR_NOW RTLD_NOW
11442 # else
11443 # ifdef DL_NOW
11444 # define LT_DLLAZY_OR_NOW DL_NOW
11445 # else
11446 # define LT_DLLAZY_OR_NOW 0
11447 # endif
11448 # endif
11449 # endif
11450 # endif
11451 #endif
11453 #ifdef __cplusplus
11454 extern "C" void exit (int);
11455 #endif
11457 void fnord() { int i=42;}
11458 int main ()
11460 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11461 int status = $lt_dlunknown;
11463 if (self)
11465 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11466 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11467 /* dlclose (self); */
11469 else
11470 puts (dlerror ());
11472 exit (status);
11474 _LT_EOF
11475 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11476 (eval $ac_link) 2>&5
11477 ac_status=$?
11478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11479 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11480 (./conftest; exit; ) >&5 2>/dev/null
11481 lt_status=$?
11482 case x$lt_status in
11483 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11484 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11485 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11486 esac
11487 else :
11488 # compilation failed
11489 lt_cv_dlopen_self_static=no
11492 rm -fr conftest*
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11497 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11500 CPPFLAGS="$save_CPPFLAGS"
11501 LDFLAGS="$save_LDFLAGS"
11502 LIBS="$save_LIBS"
11504 esac
11506 case $lt_cv_dlopen_self in
11507 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11508 *) enable_dlopen_self=unknown ;;
11509 esac
11511 case $lt_cv_dlopen_self_static in
11512 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11513 *) enable_dlopen_self_static=unknown ;;
11514 esac
11533 striplib=
11534 old_striplib=
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11536 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11537 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11538 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11539 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11541 $as_echo "yes" >&6; }
11542 else
11543 # FIXME - insert some real tests, host_os isn't really good enough
11544 case $host_os in
11545 darwin*)
11546 if test -n "$STRIP" ; then
11547 striplib="$STRIP -x"
11548 old_striplib="$STRIP -S"
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11550 $as_echo "yes" >&6; }
11551 else
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11553 $as_echo "no" >&6; }
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11558 $as_echo "no" >&6; }
11560 esac
11574 # Report which library types will actually be built
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11576 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11578 $as_echo "$can_build_shared" >&6; }
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11581 $as_echo_n "checking whether to build shared libraries... " >&6; }
11582 test "$can_build_shared" = "no" && enable_shared=no
11584 # On AIX, shared libraries and static libraries use the same namespace, and
11585 # are all built from PIC.
11586 case $host_os in
11587 aix3*)
11588 test "$enable_shared" = yes && enable_static=no
11589 if test -n "$RANLIB"; then
11590 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11591 postinstall_cmds='$RANLIB $lib'
11595 aix[4-9]*)
11596 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11597 test "$enable_shared" = yes && enable_static=no
11600 esac
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11602 $as_echo "$enable_shared" >&6; }
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11605 $as_echo_n "checking whether to build static libraries... " >&6; }
11606 # Make sure either enable_shared or enable_static is yes.
11607 test "$enable_shared" = yes || enable_static=yes
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11609 $as_echo "$enable_static" >&6; }
11615 ac_ext=c
11616 ac_cpp='$CPP $CPPFLAGS'
11617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11621 CC="$lt_save_CC"
11635 ac_config_commands="$ac_config_commands libtool"
11640 # Only expand once:
11646 debug_symbols=
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for debug symbols" >&5
11648 $as_echo_n "checking for debug symbols... " >&6; }
11649 # Check whether --enable-debug was given.
11650 if test "${enable_debug+set}" = set; then :
11651 enableval=$enable_debug; case "$enableval" in
11652 y | yes) debug_symbols=y ;;
11653 *) unset debug_symbols ;;
11654 esac
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${debug_symbols:-no}" >&5
11658 $as_echo "${debug_symbols:-no}" >&6; }
11661 CONFIG_SMP=
11662 if test $XENO_TARGET_ARCH = x86; then
11663 CONFIG_SMP=y
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SMP support" >&5
11666 $as_echo_n "checking for SMP support... " >&6; }
11667 # Check whether --enable-smp was given.
11668 if test "${enable_smp+set}" = set; then :
11669 enableval=$enable_smp; case "$enableval" in
11670 y | yes) CONFIG_SMP=y ;;
11671 *) unset CONFIG_SMP ;;
11672 esac
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CONFIG_SMP:-no}" >&5
11676 $as_echo "${CONFIG_SMP:-no}" >&6; }
11679 CONFIG_XENO_X86_SEP=
11680 CONFIG_X86_TSC=y
11682 if test $XENO_TARGET_ARCH = x86; then
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 SEP instructions in syscalls" >&5
11684 $as_echo_n "checking for x86 SEP instructions in syscalls... " >&6; }
11685 # Check whether --enable-x86-sep was given.
11686 if test "${enable_x86_sep+set}" = set; then :
11687 enableval=$enable_x86_sep; case "$enableval" in
11688 y | yes) CONFIG_XENO_X86_SEP=y ;;
11689 *) unset CONFIG_XENO_X86_SEP ;;
11690 esac
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CONFIG_XENO_X86_SEP:-no}" >&5
11694 $as_echo "${CONFIG_XENO_X86_SEP:-no}" >&6; }
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 TSC support" >&5
11697 $as_echo_n "checking for x86 TSC support... " >&6; }
11698 # Check whether --enable-x86-tsc was given.
11699 if test "${enable_x86_tsc+set}" = set; then :
11700 enableval=$enable_x86_tsc; case "$enableval" in
11701 y | yes) CONFIG_X86_TSC=y ;;
11702 *) unset CONFIG_X86_TSC ;;
11703 esac
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CONFIG_X86_TSC:-no}" >&5
11707 $as_echo "${CONFIG_X86_TSC:-no}" >&6; }
11711 if test $XENO_TARGET_ARCH = arm ; then
11713 unset CONFIG_XENO_ARM_SA1100
11714 unset CONFIG_XENO_CPU_XSC3
11715 CONFIG_XENO_ARM_TSC_TYPE=__XN_TSC_TYPE_KUSER
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM tsc type" >&5
11718 $as_echo_n "checking for ARM tsc type... " >&6; }
11719 # Check whether --enable-arm-tsc was given.
11720 if test "${enable_arm_tsc+set}" = set; then :
11721 enableval=$enable_arm_tsc; case "$enableval" in
11722 at91*) CONFIG_XENO_ARM_TSC_TYPE=__XN_TSC_TYPE_FREERUNNING_FAST_WRAP;;
11724 integrator) unset tsc_type;;
11726 ixp4xx) CONFIG_XENO_ARM_TSC_TYPE=__XN_TSC_TYPE_FREERUNNING;;
11728 imx*|mx*) CONFIG_XENO_ARM_TSC_TYPE=__XN_TSC_TYPE_FREERUNNING;;
11730 kuser) CONFIG_XENO_ARM_TSC_TYPE=__XN_TSC_TYPE_KUSER;;
11732 omap*) CONFIG_XENO_ARM_TSC_TYPE=__XN_TSC_TYPE_FREERUNNING;;
11734 orion) CONFIG_XENO_ARM_TSC_TYPE=__XN_TSC_TYPE_FREERUNNING_COUNTDOWN;;
11736 pxa*) CONFIG_XENO_CPU_XSC3=y
11737 CONFIG_XENO_ARM_TSC_TYPE=__XN_TSC_TYPE_FREERUNNING;;
11739 s3c24*) CONFIG_XENO_ARM_TSC_TYPE=__XN_TSC_TYPE_DECREMENTER;;
11741 sa1100) CONFIG_XENO_ARM_SA1100=y
11742 CONFIG_XENO_ARM_TSC_TYPE=__XN_TSC_TYPE_FREERUNNING;;
11744 n | no) unset CONFIG_XENO_ARM_TSC_TYPE;;
11746 *)as_fn_error $? "Invalid SOC selected: \"$enableval\"" "$LINENO" 5 ;;
11747 esac
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_arm_tsc:-kuser}" >&5
11751 $as_echo "${enable_arm_tsc:-kuser}" >&6; }
11753 # Check whether --enable-arm-quirks was given.
11754 if test "${enable_arm_quirks+set}" = set; then :
11755 enableval=$enable_arm_quirks; case "$enableval" in
11756 sa1100) CONFIG_XENO_ARM_SA1100=y;;
11757 xscale3) CONFIG_XENO_CPU_XSC3=y;;
11758 *)as_fn_error $? "Invalid SOC selected: \"$enableval\"" "$LINENO" 5 ;;
11759 esac
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM SA1100 architecture" >&5
11764 $as_echo_n "checking for ARM SA1100 architecture... " >&6; }
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CONFIG_XENO_ARM_SA1100:-no}" >&5
11766 $as_echo "${CONFIG_XENO_ARM_SA1100:-no}" >&6; }
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM Xscale3 architecture" >&5
11769 $as_echo_n "checking for ARM Xscale3 architecture... " >&6; }
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CONFIG_XENO_CPU_XSC3:-no}" >&5
11771 $as_echo "${CONFIG_XENO_CPU_XSC3:-no}" >&6; }
11775 if test x"$docdir" = x; then
11776 docdir=$datadir/doc/$PACKAGE-$VERSION
11780 if test \! -d $srcdir/doc ; then
11781 unset XENO_MAYBE_DOCDIR
11782 else
11783 XENO_MAYBE_DOCDIR=doc
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether installing documentation" >&5
11785 $as_echo_n "checking whether installing documentation... " >&6; }
11786 # Check whether --enable-doc-install was given.
11787 if test "${enable_doc_install+set}" = set; then :
11788 enableval=$enable_doc_install; case "$enableval" in
11789 y | yes);;
11790 *) unset XENO_MAYBE_DOCDIR;;
11791 esac
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${XENO_MAYBE_DOCDIR:-no}" >&5
11795 $as_echo "${XENO_MAYBE_DOCDIR:-no}" >&6; }
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Doxygen documentation" >&5
11800 $as_echo_n "checking for Doxygen documentation... " >&6; }
11801 # Check whether --enable-dox-doc was given.
11802 if test "${enable_dox_doc+set}" = set; then :
11803 enableval=$enable_dox_doc; case "$enableval" in
11804 y | yes) CONFIG_XENO_DOC_DOX=y ;;
11805 *) unset CONFIG_XENO_DOC_DOX ;;
11806 esac
11810 if test \! -d $srcdir/doc ; then
11811 if test x$CONFIG_XENO_DOC_DOX = xy ;
11812 then
11813 as_fn_error $? "documentation tree is missing." "$LINENO" 5
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present" >&5
11816 $as_echo "not present" >&6; }
11817 else
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CONFIG_XENO_DOC_DOX:-no}" >&5
11819 $as_echo "${CONFIG_XENO_DOC_DOX:-no}" >&6; }
11822 # Extract the first word of "doxygen", so it can be a program name with args.
11823 set dummy doxygen; ac_word=$2
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11825 $as_echo_n "checking for $ac_word... " >&6; }
11826 if test "${ac_cv_prog_DOXYGEN+set}" = set; then :
11827 $as_echo_n "(cached) " >&6
11828 else
11829 if test -n "$DOXYGEN"; then
11830 ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
11831 else
11832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11833 for as_dir in $PATH
11835 IFS=$as_save_IFS
11836 test -z "$as_dir" && as_dir=.
11837 for ac_exec_ext in '' $ac_executable_extensions; do
11838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11839 ac_cv_prog_DOXYGEN="doxygen"
11840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11841 break 2
11843 done
11844 done
11845 IFS=$as_save_IFS
11849 DOXYGEN=$ac_cv_prog_DOXYGEN
11850 if test -n "$DOXYGEN"; then
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
11852 $as_echo "$DOXYGEN" >&6; }
11853 else
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11855 $as_echo "no" >&6; }
11860 if test x${CONFIG_XENO_DOC_DOX} = xy -a x"$DOXYGEN" = x ; then
11861 as_fn_error $? "Missing the Doxygen tools to generate the documentation." "$LINENO" 5
11864 # Extract the first word of "dot", so it can be a program name with args.
11865 set dummy dot; ac_word=$2
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11867 $as_echo_n "checking for $ac_word... " >&6; }
11868 if test "${ac_cv_prog_DOXYGEN_HAVE_DOT+set}" = set; then :
11869 $as_echo_n "(cached) " >&6
11870 else
11871 if test -n "$DOXYGEN_HAVE_DOT"; then
11872 ac_cv_prog_DOXYGEN_HAVE_DOT="$DOXYGEN_HAVE_DOT" # Let the user override the test.
11873 else
11874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11875 for as_dir in $PATH
11877 IFS=$as_save_IFS
11878 test -z "$as_dir" && as_dir=.
11879 for ac_exec_ext in '' $ac_executable_extensions; do
11880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11881 ac_cv_prog_DOXYGEN_HAVE_DOT="YES"
11882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11883 break 2
11885 done
11886 done
11887 IFS=$as_save_IFS
11889 test -z "$ac_cv_prog_DOXYGEN_HAVE_DOT" && ac_cv_prog_DOXYGEN_HAVE_DOT="NO"
11892 DOXYGEN_HAVE_DOT=$ac_cv_prog_DOXYGEN_HAVE_DOT
11893 if test -n "$DOXYGEN_HAVE_DOT"; then
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN_HAVE_DOT" >&5
11895 $as_echo "$DOXYGEN_HAVE_DOT" >&6; }
11896 else
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11898 $as_echo "no" >&6; }
11902 if test x"$DOXYGEN_HAVE_DOT" = xYES ; then
11903 DOXYGEN_SHOW_INCLUDE_FILES=NO
11904 else
11905 DOXYGEN_SHOW_INCLUDE_FILES=YES
11908 case "$CONFIG_XENO_DOC_DBX" in
11909 y | ye | yes)
11910 DBX_DOC=yes ;;
11912 DBX_DOC="" ;;
11913 esac
11914 DBX_NET="$CONFIG_XENO_DBX_NET"
11915 DBX_ROOT="$CONFIG_XENO_DBX_ROOT"
11916 DBX_XSL_ROOT="$CONFIG_XENO_DBX_XSL_ROOT"
11918 DBX_DOC_ROOT="doc/docbook"
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling Docbook XML documentation" >&5
11922 $as_echo_n "checking whether compiling Docbook XML documentation... " >&6; }
11923 # Check whether --enable-dbx was given.
11924 if test "${enable_dbx+set}" = set; then :
11925 enableval=$enable_dbx; case "$enableval" in
11926 y | ye | yes) DBX_DOC=yes;;
11927 *) DBX_DOC="" ;;
11928 esac
11932 if test \! -f "$srcdir/doc/docbook/catalog.in"; then
11933 if test x$DBX_DOC = xyes;
11934 then
11935 as_fn_error $? "doc/docbook/catalog.in could not be found in the source tree,
11936 DocBook documentation can not be generated." "$LINENO" 5
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
11939 $as_echo "not present." >&6; }
11940 else
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${DBX_DOC:-no}" >&5
11942 $as_echo "${DBX_DOC:-no}" >&6; }
11944 if test "$DBX_DOC" = yes; then
11945 DBX_DOC_TRUE=
11946 DBX_DOC_FALSE='#'
11947 else
11948 DBX_DOC_TRUE='#'
11949 DBX_DOC_FALSE=
11954 DBX_GEN_DOC_ROOT="doc/generated"
11957 # First: search for needed tools.
11958 # Extract the first word of "xmllint", so it can be a program name with args.
11959 set dummy xmllint; ac_word=$2
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11961 $as_echo_n "checking for $ac_word... " >&6; }
11962 if test "${ac_cv_prog_DBX_LINT+set}" = set; then :
11963 $as_echo_n "(cached) " >&6
11964 else
11965 if test -n "$DBX_LINT"; then
11966 ac_cv_prog_DBX_LINT="$DBX_LINT" # Let the user override the test.
11967 else
11968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11969 for as_dir in $PATH
11971 IFS=$as_save_IFS
11972 test -z "$as_dir" && as_dir=.
11973 for ac_exec_ext in '' $ac_executable_extensions; do
11974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11975 ac_cv_prog_DBX_LINT="xmllint"
11976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11977 break 2
11979 done
11980 done
11981 IFS=$as_save_IFS
11985 DBX_LINT=$ac_cv_prog_DBX_LINT
11986 if test -n "$DBX_LINT"; then
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBX_LINT" >&5
11988 $as_echo "$DBX_LINT" >&6; }
11989 else
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11991 $as_echo "no" >&6; }
11995 if test x"$DBX_LINT" = x -a -n "$DBX_DOC"; then
11996 as_fn_error $? "xmllint was not found. Check your PATH variable and try again." "$LINENO" 5
12001 # Extract the first word of "xsltproc", so it can be a program name with args.
12002 set dummy xsltproc; ac_word=$2
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12004 $as_echo_n "checking for $ac_word... " >&6; }
12005 if test "${ac_cv_prog_DBX_XSLTPROC+set}" = set; then :
12006 $as_echo_n "(cached) " >&6
12007 else
12008 if test -n "$DBX_XSLTPROC"; then
12009 ac_cv_prog_DBX_XSLTPROC="$DBX_XSLTPROC" # Let the user override the test.
12010 else
12011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12012 for as_dir in $PATH
12014 IFS=$as_save_IFS
12015 test -z "$as_dir" && as_dir=.
12016 for ac_exec_ext in '' $ac_executable_extensions; do
12017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12018 ac_cv_prog_DBX_XSLTPROC="xsltproc"
12019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12020 break 2
12022 done
12023 done
12024 IFS=$as_save_IFS
12028 DBX_XSLTPROC=$ac_cv_prog_DBX_XSLTPROC
12029 if test -n "$DBX_XSLTPROC"; then
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBX_XSLTPROC" >&5
12031 $as_echo "$DBX_XSLTPROC" >&6; }
12032 else
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12034 $as_echo "no" >&6; }
12038 if test x"$DBX_XSLTPROC" = x -a -n "$DBX_DOC"; then
12039 as_fn_error $? "xsltproc was not found. Check your PATH variable and try
12040 again." "$LINENO" 5
12045 # Extract the first word of "fop", so it can be a program name with args.
12046 set dummy fop; ac_word=$2
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12048 $as_echo_n "checking for $ac_word... " >&6; }
12049 if test "${ac_cv_prog_DBX_FOP+set}" = set; then :
12050 $as_echo_n "(cached) " >&6
12051 else
12052 if test -n "$DBX_FOP"; then
12053 ac_cv_prog_DBX_FOP="$DBX_FOP" # Let the user override the test.
12054 else
12055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12056 for as_dir in $PATH
12058 IFS=$as_save_IFS
12059 test -z "$as_dir" && as_dir=.
12060 for ac_exec_ext in '' $ac_executable_extensions; do
12061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12062 ac_cv_prog_DBX_FOP="fop"
12063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12064 break 2
12066 done
12067 done
12068 IFS=$as_save_IFS
12072 DBX_FOP=$ac_cv_prog_DBX_FOP
12073 if test -n "$DBX_FOP"; then
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBX_FOP" >&5
12075 $as_echo "$DBX_FOP" >&6; }
12076 else
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12078 $as_echo "no" >&6; }
12082 if test x"$DBX_FOP" = x -a -n "$DBX_DOC"; then
12083 as_fn_error $? "fop was not found. Check your PATH variable and try again." "$LINENO" 5
12087 # Second: search for DTD and XSL stylesheets.
12088 DBX_DTD_VERSION="4.2"
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Docbook XML documentation generation can use network." >&5
12091 $as_echo_n "checking whether Docbook XML documentation generation can use network.... " >&6; }
12092 # Check whether --enable-dbx-network was given.
12093 if test "${enable_dbx_network+set}" = set; then :
12094 enableval=$enable_dbx_network; case "$enable_dbx_network" in
12095 y | yes | yes )
12096 DBX_NET=yes;;
12097 n | no )
12098 DBX_NET="";;
12099 esac
12104 # Do not define the --nonet xsltproc flag if the option --enable-dbx-network was
12105 # passed
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${DBX_NET:-no}" >&5
12107 $as_echo "${DBX_NET:-no}" >&6; }
12108 if test -n "$DBX_NET"; then
12109 unset DBX_MAYBE_NONET
12110 else
12111 DBX_MAYBE_NONET=--nonet
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for docbook-xml root dir" >&5
12117 $as_echo_n "checking for docbook-xml root dir... " >&6; }
12119 # Check whether --with-dbx-root was given.
12120 if test "${with_dbx_root+set}" = set; then :
12121 withval=$with_dbx_root; DBX_ROOT="$withval"
12124 if test x"$DBX_ROOT" = x; then
12125 # Still not found, we will hence look for it using the "well-known"
12126 # places (well... for the moment, only the Debian package directory)
12127 for dir in \
12128 /usr/share/sgml/docbook/dtd/xml/$DBX_DTD_VERSION
12130 if test -e $dir/docbookx.dtd; then
12131 DBX_ROOT="$dir";
12132 break;
12134 done
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${DBX_ROOT:-network}" >&5
12137 $as_echo "${DBX_ROOT:-network}" >&6; }
12138 if test x"$DBX_ROOT" = x; then
12139 if test x"$enable_dbx_network" != x -a -n "$DBX_DOC"; then
12140 as_fn_error $? "The Docbook XML DTD was not found, and accessing it
12141 through network is forbidden." "$LINENO" 5
12143 DBX_ROOT="http://www.oasis-open.org/docbook/xml/$DBX_DTD_VERSION/"
12144 else
12145 DBX_ROOT="file://$DBX_ROOT"
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for docbook-xsl root dir" >&5
12151 $as_echo_n "checking for docbook-xsl root dir... " >&6; }
12153 # Check whether --with-docbook-xsl-root was given.
12154 if test "${with_docbook_xsl_root+set}" = set; then :
12155 withval=$with_docbook_xsl_root; DBX_XSL_ROOT="$withval"
12158 if test x"$DBX_XSL_ROOT" = x; then
12159 # Still not found, we will hence look for it using the "well-known"
12160 # places (well... for the moment, only the Debian standard directory)
12161 for dir in \
12162 /usr/share/sgml/docbook/stylesheet/xsl/nwalsh
12164 if test -e "$dir/html/docbook.xsl"; then
12165 DBX_XSL_ROOT="$dir";
12166 break;
12168 done
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${DBX_XSL_ROOT:-network}" >&5
12171 $as_echo "${DBX_XSL_ROOT:-network}" >&6; }
12172 if test x"$DBX_XSL_ROOT" = x; then
12173 if test x"$enable_dbx_network" != x -a -n "$DBX_DOC"; then
12174 as_fn_error $? "The Docbook XML DTD was not found, and accessing it
12175 through network is forbidden." "$LINENO" 5
12177 DBX_XSL_ROOT="http://http://docbook.sourceforge.net/release/xsl/current"
12178 else
12179 DBX_XSL_ROOT="file://$DBX_XSL_ROOT"
12184 DBX_ABS_SRCDIR=`case $srcdir in
12185 \\/* | ?:\\/* ) echo : ;;
12186 *) echo false ;;
12187 esac`
12188 if $DBX_ABS_SRCDIR; then
12189 DBX_ABS_SRCDIR_TRUE=
12190 DBX_ABS_SRCDIR_FALSE='#'
12191 else
12192 DBX_ABS_SRCDIR_TRUE='#'
12193 DBX_ABS_SRCDIR_FALSE=
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether using LaTeX non-stop mode" >&5
12201 $as_echo_n "checking whether using LaTeX non-stop mode... " >&6; }
12202 # Check whether --enable-verbose-latex was given.
12203 if test "${enable_verbose_latex+set}" = set; then :
12204 enableval=$enable_verbose_latex; case "$enableval" in
12205 y | yes) CONFIG_XENO_DOC_LATEX_NONSTOP=y ;;
12206 *) unset CONFIG_XENO_DOC_LATEX_NONSTOP ;;
12207 esac
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CONFIG_XENO_DOC_LATEX_NONSTOP:-no}" >&5
12211 $as_echo "${CONFIG_XENO_DOC_LATEX_NONSTOP:-no}" >&6; }
12213 if test x${CONFIG_XENO_DOC_LATEX_NONSTOP} = xy; then
12214 LATEX_BATCHMODE=NO
12215 LATEX_MODE=nonstopmode
12216 else
12217 LATEX_BATCHMODE=YES
12218 LATEX_MODE=batchmode
12221 for ac_header in mqueue.h
12222 do :
12223 ac_fn_c_check_header_mongrel "$LINENO" "mqueue.h" "ac_cv_header_mqueue_h" "$ac_includes_default"
12224 if test "x$ac_cv_header_mqueue_h" = x""yes; then :
12225 cat >>confdefs.h <<_ACEOF
12226 #define HAVE_MQUEUE_H 1
12227 _ACEOF
12231 done
12234 save_LIBS="$LIBS"
12235 LIBS="$LIBS -lrt -lpthread"
12236 for ac_func in shm_open shm_unlink mmap64 ftruncate64 pthread_mutexattr_setprotocol pthread_condattr_setclock pthread_spin_lock fork
12237 do :
12238 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12239 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12240 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12241 cat >>confdefs.h <<_ACEOF
12242 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12243 _ACEOF
12246 done
12248 LIBS="$save_LIBS"
12252 cat >>confdefs.h <<_ACEOF
12253 #define CONFIG_XENO_VERSION_MAJOR $CONFIG_XENO_VERSION_MAJOR
12254 _ACEOF
12257 cat >>confdefs.h <<_ACEOF
12258 #define CONFIG_XENO_VERSION_MINOR $CONFIG_XENO_VERSION_MINOR
12259 _ACEOF
12262 cat >>confdefs.h <<_ACEOF
12263 #define CONFIG_XENO_REVISION_LEVEL $CONFIG_XENO_REVISION_LEVEL
12264 _ACEOF
12268 test x$CONFIG_XENO_X86_SEP = xy &&
12269 $as_echo "#define CONFIG_XENO_X86_SEP 1" >>confdefs.h
12271 test x$CONFIG_SMP = xy &&
12272 $as_echo "#define CONFIG_SMP 1" >>confdefs.h
12274 test x$CONFIG_XENO_FASTSYNCH = xy &&
12275 $as_echo "#define CONFIG_XENO_FASTSYNCH 1" >>confdefs.h
12277 if test "$CONFIG_XENO_FASTSYNCH" = y; then
12278 CONFIG_XENO_FASTSYNCH_TRUE=
12279 CONFIG_XENO_FASTSYNCH_FALSE='#'
12280 else
12281 CONFIG_XENO_FASTSYNCH_TRUE='#'
12282 CONFIG_XENO_FASTSYNCH_FALSE=
12285 test x$ac_cv_func_fork = xyes &&
12286 $as_echo "#define CONFIG_MMU 1" >>confdefs.h
12289 test x$CONFIG_X86_TSC = xy &&
12290 $as_echo "#define CONFIG_X86_TSC 1" >>confdefs.h
12293 test x$CONFIG_XENO_ARM_SA1100 = xy &&
12294 $as_echo "#define CONFIG_XENO_ARM_SA1100 1" >>confdefs.h
12296 test x$CONFIG_XENO_CPU_XSC3 = xy &&
12297 $as_echo "#define CONFIG_XENO_CPU_XSC3 1" >>confdefs.h
12299 test $CONFIG_XENO_ARM_TSC_TYPE &&
12300 cat >>confdefs.h <<_ACEOF
12301 #define CONFIG_XENO_ARM_TSC_TYPE $CONFIG_XENO_ARM_TSC_TYPE
12302 _ACEOF
12304 if test "$enable_shared" = 'yes'; then
12305 CONFIG_XENO_SHARED_TRUE=
12306 CONFIG_XENO_SHARED_FALSE='#'
12307 else
12308 CONFIG_XENO_SHARED_TRUE='#'
12309 CONFIG_XENO_SHARED_FALSE=
12313 # Default sampling period (ns) used in various tests
12315 cat >>confdefs.h <<_ACEOF
12316 #define CONFIG_XENO_DEFAULT_PERIOD $CONFIG_XENO_DEFAULT_PERIOD
12317 _ACEOF
12325 if test "$CONFIG_XENO_DOC_DOX" = y; then
12326 CONFIG_XENO_DOC_DOX_TRUE=
12327 CONFIG_XENO_DOC_DOX_FALSE='#'
12328 else
12329 CONFIG_XENO_DOC_DOX_TRUE='#'
12330 CONFIG_XENO_DOC_DOX_FALSE=
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
12335 $as_echo_n "checking for sched_setaffinity... " >&6; }
12336 if test "${ac_cv_sched_setaffinity+set}" = set; then :
12337 $as_echo_n "(cached) " >&6
12338 else
12339 save_CFLAGS="$CFLAGS"
12340 CFLAGS="-Wimplicit-function-declaration -Werror -D_GNU_SOURCE"
12341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12342 /* end confdefs.h. */
12343 #include <sched.h>
12345 main ()
12347 cpu_set_t cpu_set; sched_setaffinity(0, sizeof(cpu_set), &cpu_set);
12349 return 0;
12351 _ACEOF
12352 if ac_fn_c_try_link "$LINENO"; then :
12353 ac_cv_sched_setaffinity=new
12354 else
12355 ac_cv_sched_setaffinity=bad
12357 rm -f core conftest.err conftest.$ac_objext \
12358 conftest$ac_exeext conftest.$ac_ext
12359 if test $ac_cv_sched_setaffinity = bad ; then
12360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12361 /* end confdefs.h. */
12362 #include <sched.h>
12364 main ()
12366 cpu_set_t cpu_set; sched_setaffinity(0, &cpu_set);
12368 return 0;
12370 _ACEOF
12371 if ac_fn_c_try_link "$LINENO"; then :
12372 ac_cv_sched_setaffinity=old
12373 else
12374 ac_cv_sched_setaffinity=no
12376 rm -f core conftest.err conftest.$ac_objext \
12377 conftest$ac_exeext conftest.$ac_ext
12379 if test $ac_cv_sched_setaffinity = old ; then
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: old" >&5
12381 $as_echo "old" >&6; }
12383 $as_echo "#define HAVE_OLD_SETAFFINITY 1" >>confdefs.h
12385 elif test $ac_cv_sched_setaffinity = new ; then
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12387 $as_echo "ok" >&6; }
12389 $as_echo "#define HAVE_RECENT_SETAFFINITY 1" >>confdefs.h
12391 else
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12393 $as_echo "no" >&6; }
12395 CFLAGS="$save_CFLAGS"
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for specific GCC switches" >&5
12400 $as_echo_n "checking for specific GCC switches... " >&6; }
12401 if test "${ac_cv_gcc_wnoalias+set}" = set; then :
12402 $as_echo_n "(cached) " >&6
12403 else
12405 ac_ext=c
12406 ac_cpp='$CPP $CPPFLAGS'
12407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12411 save_CFLAGS="$CFLAGS"
12412 CFLAGS="-Wno-strict-aliasing -Werror"
12413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12414 /* end confdefs.h. */
12417 main ()
12419 return 0;
12421 return 0;
12423 _ACEOF
12424 if ac_fn_c_try_compile "$LINENO"; then :
12425 ac_cv_gcc_wnoalias=yes
12426 else
12427 ac_cv_gcc_wnoalias=no
12429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12430 CFLAGS="$save_CFLAGS"
12431 ac_ext=c
12432 ac_cpp='$CPP $CPPFLAGS'
12433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12439 if [ $ac_cv_gcc_wnoalias = no ]; then
12440 gcc_w_noalias=
12441 else
12442 gcc_w_noalias="-Wno-strict-aliasing"
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12445 $as_echo "done" >&6; }
12447 XENO_USER_CFLAGS="-D_GNU_SOURCE -D_REENTRANT -Wall -Werror-implicit-function-declaration -pipe"
12448 XENO_USER_LDFLAGS=
12450 XENO_USER_APP_CFLAGS=$XENO_USER_CFLAGS
12451 XENO_USER_APP_LDFLAGS=$XENO_USER_LDFLAGS
12453 case $XENO_TARGET_ARCH in
12454 x86)
12455 XENO_USER_CFLAGS="$XENO_USER_CFLAGS -fstrict-aliasing $gcc_w_noalias"
12457 powerpc)
12459 blackfin|nios2)
12460 # Produce libraries in FDPIC format.
12462 arm)
12463 XENO_USER_CFLAGS="$XENO_USER_CFLAGS"
12465 esac
12467 if test x$debug_symbols = xy; then
12468 XENO_USER_CFLAGS="-g $XENO_USER_CFLAGS"
12469 else
12470 XENO_USER_CFLAGS="-O2 $XENO_USER_CFLAGS"
12473 XENO_USER_CFLAGS="$XENO_USER_CFLAGS -D__XENO__ -D__IN_XENO__ -Wstrict-prototypes"
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports @file" >&5
12476 $as_echo_n "checking whether ld supports @file... " >&6; }
12477 if test "${ac_cv_ld_file_option+set}" = set; then :
12478 $as_echo_n "(cached) " >&6
12479 else
12481 ac_ext=c
12482 ac_cpp='$CPP $CPPFLAGS'
12483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12487 save_LDFLAGS="$LDFLAGS"
12488 LDFLAGS="-Wl,@/dev/null"
12489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12490 /* end confdefs.h. */
12491 main(){}
12492 _ACEOF
12493 if ac_fn_c_try_link "$LINENO"; then :
12494 ac_cv_ld_file_option=yes
12495 else
12496 ac_cv_ld_file_option=no
12498 rm -f core conftest.err conftest.$ac_objext \
12499 conftest$ac_exeext conftest.$ac_ext
12500 LDFLAGS="$save_LDFLAGS"
12501 ac_ext=c
12502 ac_cpp='$CPP $CPPFLAGS'
12503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12509 if [ $ac_cv_ld_file_option = yes ]; then
12510 XENO_POSIX_WRAPPERS="-Wl,@`cd $srcdir && pwd`/src/skins/posix/posix.wrappers"
12511 else
12512 XENO_POSIX_WRAPPERS=`while read wrap_option symbol ; do \
12513 echo -n "-Wl,$wrap_option,$symbol " ; \
12514 done < $srcdir/src/skins/posix/posix.wrappers`
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_ld_file_option:-no}" >&5
12517 $as_echo "${ac_cv_ld_file_option:-no}" >&6; }
12518 LD_FILE_OPTION=$ac_cv_ld_file_option
12520 if test "$LD_FILE_OPTION" = "yes"; then
12521 CONFIG_XENO_FAST_WRAP_TRUE=
12522 CONFIG_XENO_FAST_WRAP_FALSE='#'
12523 else
12524 CONFIG_XENO_FAST_WRAP_TRUE='#'
12525 CONFIG_XENO_FAST_WRAP_FALSE=
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the POSIX skin library automatically calls mlockall" >&5
12530 $as_echo_n "checking whether the POSIX skin library automatically calls mlockall... " >&6; }
12531 # Check whether --enable-posix-auto-mlockall was given.
12532 if test "${enable_posix_auto_mlockall+set}" = set; then :
12533 enableval=$enable_posix_auto_mlockall; case "$enableval" in
12534 y | yes) CONFIG_XENO_POSIX_AUTO_MLOCKALL=y ;;
12535 *) unset CONFIG_XENO_POSIX_AUTO_MLOCKALL ;;
12536 esac
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CONFIG_XENO_POSIX_AUTO_MLOCKALL:-no}" >&5
12540 $as_echo "${CONFIG_XENO_POSIX_AUTO_MLOCKALL:-no}" >&6; }
12541 if test x$CONFIG_XENO_POSIX_AUTO_MLOCKALL = xy; then
12543 $as_echo "#define CONFIG_XENO_POSIX_AUTO_MLOCKALL 1" >>confdefs.h
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the pSOS skin library automatically calls mlockall" >&5
12548 $as_echo_n "checking whether the pSOS skin library automatically calls mlockall... " >&6; }
12549 # Check whether --enable-psos-auto-mlockall was given.
12550 if test "${enable_psos_auto_mlockall+set}" = set; then :
12551 enableval=$enable_psos_auto_mlockall; case "$enableval" in
12552 y | yes) CONFIG_XENO_PSOS_AUTO_MLOCKALL=y ;;
12553 *) unset CONFIG_XENO_PSOS_AUTO_MLOCKALL ;;
12554 esac
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CONFIG_XENO_PSOS_AUTO_MLOCKALL:-no}" >&5
12558 $as_echo "${CONFIG_XENO_PSOS_AUTO_MLOCKALL:-no}" >&6; }
12559 if test x$CONFIG_XENO_POSIX_PSOS_MLOCKALL = xy; then
12561 $as_echo "#define CONFIG_XENO_PSOS_AUTO_MLOCKALL 1" >>confdefs.h
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the uITRON skin library automatically calls mlockall" >&5
12566 $as_echo_n "checking whether the uITRON skin library automatically calls mlockall... " >&6; }
12567 # Check whether --enable-uitron-auto-mlockall was given.
12568 if test "${enable_uitron_auto_mlockall+set}" = set; then :
12569 enableval=$enable_uitron_auto_mlockall; case "$enableval" in
12570 y | yes) CONFIG_XENO_UITRON_AUTO_MLOCKALL=y ;;
12571 *) unset CONFIG_XENO_UITRON_AUTO_MLOCKALL ;;
12572 esac
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CONFIG_XENO_UITRON_AUTO_MLOCKALL:-no}" >&5
12576 $as_echo "${CONFIG_XENO_UITRON_AUTO_MLOCKALL:-no}" >&6; }
12577 if test x$CONFIG_XENO_POSIX_UITRON_MLOCKALL = xy; then
12579 $as_echo "#define CONFIG_XENO_UITRON_AUTO_MLOCKALL 1" >>confdefs.h
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable dlopen support for skin libraries" >&5
12584 $as_echo_n "checking whether to enable dlopen support for skin libraries... " >&6; }
12585 # Check whether --enable-dlopen-skins was given.
12586 if test "${enable_dlopen_skins+set}" = set; then :
12587 enableval=$enable_dlopen_skins; case "$enableval" in
12588 y | yes) CONFIG_XENO_LIBS_DLOPEN=y ;;
12589 *) unset CONFIG_XENO_LIBS_DLOPEN ;;
12590 esac
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CONFIG_XENO_LIBS_DLOPEN:-no}" >&5
12594 $as_echo "${CONFIG_XENO_LIBS_DLOPEN:-no}" >&6; }
12595 if test x$CONFIG_XENO_LIBS_DLOPEN = xy; then
12597 $as_echo "#define CONFIG_XENO_LIBS_DLOPEN 1" >>confdefs.h
12601 XENO_DLOPEN_CONSTRAINT=
12604 # Check whether --with-__thread was given.
12605 if test "${with___thread+set}" = set; then :
12606 withval=$with___thread; use__thread=$withval
12610 if test "x$use__thread" != xno -a "x$CONFIG_XENO_LIBS_DLOPEN" != xy; then
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread" >&5
12612 $as_echo_n "checking for __thread... " >&6; }
12613 if test "${libc_cv_gcc___thread+set}" = set; then :
12614 $as_echo_n "(cached) " >&6
12615 else
12616 cat > conftest.c <<\EOF
12617 __thread int a __attribute__ ((tls_model ("initial-exec"))) = 42;
12619 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c -Werror conftest.c >&5'
12620 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12621 (eval $ac_try) 2>&5
12622 ac_status=$?
12623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12624 test $ac_status = 0; }; }; then
12625 libc_cv_gcc___thread=yes
12626 else
12627 libc_cv_gcc___thread=no
12629 rm -f conftest*
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc___thread" >&5
12632 $as_echo "$libc_cv_gcc___thread" >&6; }
12633 if test "$libc_cv_gcc___thread" = yes; then
12635 $as_echo "#define HAVE___THREAD 1" >>confdefs.h
12637 XENO_DLOPEN_CONSTRAINT="-Wl,-z -Wl,nodlopen"
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking location for test binaries" >&5
12642 $as_echo_n "checking location for test binaries... " >&6; }
12644 # Check whether --with-testdir was given.
12645 if test "${with_testdir+set}" = set; then :
12646 withval=$with_testdir;
12647 case "$withval" in
12648 "" | y | ye | yes | n | no)
12649 as_fn_error $? "You must supply an argument to --with-testdir." "$LINENO" 5
12651 esac
12652 XENO_TEST_DIR="$withval"
12654 else
12655 XENO_TEST_DIR=$bindir
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XENO_TEST_DIR" >&5
12659 $as_echo "$XENO_TEST_DIR" >&6; }
12677 CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/src/skins/posix/posix.wrappers'
12681 base=asm-$XENO_TARGET_ARCH
12682 ac_config_links="$ac_config_links src/include/asm/xenomai:$srcdir/include/$base"
12684 base=asm-generic
12685 ac_config_links="$ac_config_links src/include/$base/xenomai:$srcdir/include/$base"
12688 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"
12691 if test x"$LD_FILE_OPTION" = x"yes" ; then
12692 ac_config_files="$ac_config_files src/skins/posix/libxenomai_posix.pc"
12696 if test \! x$XENO_MAYBE_DOCDIR = x ; then
12697 ac_config_files="$ac_config_files doc/Makefile doc/txt/Makefile doc/man/Makefile doc/man/clocktest.man doc/man/cyclictest.man doc/man/irqbench.man doc/man/irqloop.man doc/man/klatency.man doc/man/latency.man doc/man/rtcanconfig.man doc/man/rtcanrecv.man doc/man/rtcansend.man doc/man/switchbench.man doc/man/switchtest.man doc/man/xeno.man doc/man/xeno-config.man 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/docbook/Makefile doc/docbook/catalog doc/docbook/custom-stylesheets/Makefile doc/docbook/custom-stylesheets/xsl/Makefile doc/docbook/custom-stylesheets/xsl/common/Makefile doc/docbook/custom-stylesheets/xsl/fo/Makefile doc/docbook/custom-stylesheets/xsl/html/Makefile doc/docbook/custom-stylesheets/xsl/html/chunk.xsl doc/docbook/custom-stylesheets/xsl/html/onechunk.xsl doc/docbook/xenomai/Makefile"
12701 cat >confcache <<\_ACEOF
12702 # This file is a shell script that caches the results of configure
12703 # tests run on this system so they can be shared between configure
12704 # scripts and configure runs, see configure's option --config-cache.
12705 # It is not useful on other systems. If it contains results you don't
12706 # want to keep, you may remove or edit it.
12708 # config.status only pays attention to the cache file if you give it
12709 # the --recheck option to rerun configure.
12711 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12712 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12713 # following values.
12715 _ACEOF
12717 # The following way of writing the cache mishandles newlines in values,
12718 # but we know of no workaround that is simple, portable, and efficient.
12719 # So, we kill variables containing newlines.
12720 # Ultrix sh set writes to stderr and can't be redirected directly,
12721 # and sets the high bit in the cache file unless we assign to the vars.
12723 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12724 eval ac_val=\$$ac_var
12725 case $ac_val in #(
12726 *${as_nl}*)
12727 case $ac_var in #(
12728 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12729 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12730 esac
12731 case $ac_var in #(
12732 _ | IFS | as_nl) ;; #(
12733 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12734 *) { eval $ac_var=; unset $ac_var;} ;;
12735 esac ;;
12736 esac
12737 done
12739 (set) 2>&1 |
12740 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12741 *${as_nl}ac_space=\ *)
12742 # `set' does not quote correctly, so add quotes: double-quote
12743 # substitution turns \\\\ into \\, and sed turns \\ into \.
12744 sed -n \
12745 "s/'/'\\\\''/g;
12746 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12747 ;; #(
12749 # `set' quotes correctly as required by POSIX, so do not add quotes.
12750 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12752 esac |
12753 sort
12755 sed '
12756 /^ac_cv_env_/b end
12757 t clear
12758 :clear
12759 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12760 t end
12761 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12762 :end' >>confcache
12763 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12764 if test -w "$cache_file"; then
12765 test "x$cache_file" != "x/dev/null" &&
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12767 $as_echo "$as_me: updating cache $cache_file" >&6;}
12768 cat confcache >$cache_file
12769 else
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12771 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12774 rm -f confcache
12776 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12777 # Let make expand exec_prefix.
12778 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12780 DEFS=-DHAVE_CONFIG_H
12782 ac_libobjs=
12783 ac_ltlibobjs=
12785 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12786 # 1. Remove the extension, and $U if already installed.
12787 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12788 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12789 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12790 # will be set to the directory where LIBOBJS objects are built.
12791 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12792 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12793 done
12794 LIBOBJS=$ac_libobjs
12796 LTLIBOBJS=$ac_ltlibobjs
12799 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12800 as_fn_error $? "conditional \"AMDEP\" was never defined.
12801 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12803 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12804 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12805 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12807 if test -n "$EXEEXT"; then
12808 am__EXEEXT_TRUE=
12809 am__EXEEXT_FALSE='#'
12810 else
12811 am__EXEEXT_TRUE='#'
12812 am__EXEEXT_FALSE=
12815 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12816 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12817 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12819 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
12820 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
12821 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12823 if test -z "${XENO_TARGET_ARCH_X86_TRUE}" && test -z "${XENO_TARGET_ARCH_X86_FALSE}"; then
12824 as_fn_error $? "conditional \"XENO_TARGET_ARCH_X86\" was never defined.
12825 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12827 if test -z "${DBX_DOC_TRUE}" && test -z "${DBX_DOC_FALSE}"; then
12828 as_fn_error $? "conditional \"DBX_DOC\" was never defined.
12829 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12831 if test -z "${DBX_ABS_SRCDIR_TRUE}" && test -z "${DBX_ABS_SRCDIR_FALSE}"; then
12832 as_fn_error $? "conditional \"DBX_ABS_SRCDIR\" was never defined.
12833 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12835 if test -z "${CONFIG_XENO_FASTSYNCH_TRUE}" && test -z "${CONFIG_XENO_FASTSYNCH_FALSE}"; then
12836 as_fn_error $? "conditional \"CONFIG_XENO_FASTSYNCH\" was never defined.
12837 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12839 if test -z "${CONFIG_XENO_SHARED_TRUE}" && test -z "${CONFIG_XENO_SHARED_FALSE}"; then
12840 as_fn_error $? "conditional \"CONFIG_XENO_SHARED\" was never defined.
12841 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12843 if test -z "${CONFIG_XENO_DOC_DOX_TRUE}" && test -z "${CONFIG_XENO_DOC_DOX_FALSE}"; then
12844 as_fn_error $? "conditional \"CONFIG_XENO_DOC_DOX\" was never defined.
12845 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12847 if test -z "${CONFIG_XENO_FAST_WRAP_TRUE}" && test -z "${CONFIG_XENO_FAST_WRAP_FALSE}"; then
12848 as_fn_error $? "conditional \"CONFIG_XENO_FAST_WRAP\" was never defined.
12849 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12852 : ${CONFIG_STATUS=./config.status}
12853 ac_write_fail=0
12854 ac_clean_files_save=$ac_clean_files
12855 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12857 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12858 as_write_fail=0
12859 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12860 #! $SHELL
12861 # Generated by $as_me.
12862 # Run this file to recreate the current configuration.
12863 # Compiler output produced by configure, useful for debugging
12864 # configure, is in config.log if it exists.
12866 debug=false
12867 ac_cs_recheck=false
12868 ac_cs_silent=false
12870 SHELL=\${CONFIG_SHELL-$SHELL}
12871 export SHELL
12872 _ASEOF
12873 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12874 ## -------------------- ##
12875 ## M4sh Initialization. ##
12876 ## -------------------- ##
12878 # Be more Bourne compatible
12879 DUALCASE=1; export DUALCASE # for MKS sh
12880 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12881 emulate sh
12882 NULLCMD=:
12883 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12884 # is contrary to our usage. Disable this feature.
12885 alias -g '${1+"$@"}'='"$@"'
12886 setopt NO_GLOB_SUBST
12887 else
12888 case `(set -o) 2>/dev/null` in #(
12889 *posix*) :
12890 set -o posix ;; #(
12891 *) :
12893 esac
12897 as_nl='
12899 export as_nl
12900 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12901 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12902 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12903 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12904 # Prefer a ksh shell builtin over an external printf program on Solaris,
12905 # but without wasting forks for bash or zsh.
12906 if test -z "$BASH_VERSION$ZSH_VERSION" \
12907 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12908 as_echo='print -r --'
12909 as_echo_n='print -rn --'
12910 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12911 as_echo='printf %s\n'
12912 as_echo_n='printf %s'
12913 else
12914 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12915 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12916 as_echo_n='/usr/ucb/echo -n'
12917 else
12918 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12919 as_echo_n_body='eval
12920 arg=$1;
12921 case $arg in #(
12922 *"$as_nl"*)
12923 expr "X$arg" : "X\\(.*\\)$as_nl";
12924 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12925 esac;
12926 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12928 export as_echo_n_body
12929 as_echo_n='sh -c $as_echo_n_body as_echo'
12931 export as_echo_body
12932 as_echo='sh -c $as_echo_body as_echo'
12935 # The user is always right.
12936 if test "${PATH_SEPARATOR+set}" != set; then
12937 PATH_SEPARATOR=:
12938 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12939 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12940 PATH_SEPARATOR=';'
12945 # IFS
12946 # We need space, tab and new line, in precisely that order. Quoting is
12947 # there to prevent editors from complaining about space-tab.
12948 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12949 # splitting by setting IFS to empty value.)
12950 IFS=" "" $as_nl"
12952 # Find who we are. Look in the path if we contain no directory separator.
12953 case $0 in #((
12954 *[\\/]* ) as_myself=$0 ;;
12955 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12956 for as_dir in $PATH
12958 IFS=$as_save_IFS
12959 test -z "$as_dir" && as_dir=.
12960 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12961 done
12962 IFS=$as_save_IFS
12965 esac
12966 # We did not find ourselves, most probably we were run as `sh COMMAND'
12967 # in which case we are not to be found in the path.
12968 if test "x$as_myself" = x; then
12969 as_myself=$0
12971 if test ! -f "$as_myself"; then
12972 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12973 exit 1
12976 # Unset variables that we do not need and which cause bugs (e.g. in
12977 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12978 # suppresses any "Segmentation fault" message there. '((' could
12979 # trigger a bug in pdksh 5.2.14.
12980 for as_var in BASH_ENV ENV MAIL MAILPATH
12981 do eval test x\${$as_var+set} = xset \
12982 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12983 done
12984 PS1='$ '
12985 PS2='> '
12986 PS4='+ '
12988 # NLS nuisances.
12989 LC_ALL=C
12990 export LC_ALL
12991 LANGUAGE=C
12992 export LANGUAGE
12994 # CDPATH.
12995 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12998 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12999 # ----------------------------------------
13000 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13001 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13002 # script with STATUS, using 1 if that was 0.
13003 as_fn_error ()
13005 as_status=$1; test $as_status -eq 0 && as_status=1
13006 if test "$4"; then
13007 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13008 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13010 $as_echo "$as_me: error: $2" >&2
13011 as_fn_exit $as_status
13012 } # as_fn_error
13015 # as_fn_set_status STATUS
13016 # -----------------------
13017 # Set $? to STATUS, without forking.
13018 as_fn_set_status ()
13020 return $1
13021 } # as_fn_set_status
13023 # as_fn_exit STATUS
13024 # -----------------
13025 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13026 as_fn_exit ()
13028 set +e
13029 as_fn_set_status $1
13030 exit $1
13031 } # as_fn_exit
13033 # as_fn_unset VAR
13034 # ---------------
13035 # Portably unset VAR.
13036 as_fn_unset ()
13038 { eval $1=; unset $1;}
13040 as_unset=as_fn_unset
13041 # as_fn_append VAR VALUE
13042 # ----------------------
13043 # Append the text in VALUE to the end of the definition contained in VAR. Take
13044 # advantage of any shell optimizations that allow amortized linear growth over
13045 # repeated appends, instead of the typical quadratic growth present in naive
13046 # implementations.
13047 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13048 eval 'as_fn_append ()
13050 eval $1+=\$2
13052 else
13053 as_fn_append ()
13055 eval $1=\$$1\$2
13057 fi # as_fn_append
13059 # as_fn_arith ARG...
13060 # ------------------
13061 # Perform arithmetic evaluation on the ARGs, and store the result in the
13062 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13063 # must be portable across $(()) and expr.
13064 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13065 eval 'as_fn_arith ()
13067 as_val=$(( $* ))
13069 else
13070 as_fn_arith ()
13072 as_val=`expr "$@" || test $? -eq 1`
13074 fi # as_fn_arith
13077 if expr a : '\(a\)' >/dev/null 2>&1 &&
13078 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13079 as_expr=expr
13080 else
13081 as_expr=false
13084 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13085 as_basename=basename
13086 else
13087 as_basename=false
13090 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13091 as_dirname=dirname
13092 else
13093 as_dirname=false
13096 as_me=`$as_basename -- "$0" ||
13097 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13098 X"$0" : 'X\(//\)$' \| \
13099 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13100 $as_echo X/"$0" |
13101 sed '/^.*\/\([^/][^/]*\)\/*$/{
13102 s//\1/
13105 /^X\/\(\/\/\)$/{
13106 s//\1/
13109 /^X\/\(\/\).*/{
13110 s//\1/
13113 s/.*/./; q'`
13115 # Avoid depending upon Character Ranges.
13116 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13117 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13118 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13119 as_cr_digits='0123456789'
13120 as_cr_alnum=$as_cr_Letters$as_cr_digits
13122 ECHO_C= ECHO_N= ECHO_T=
13123 case `echo -n x` in #(((((
13124 -n*)
13125 case `echo 'xy\c'` in
13126 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13127 xy) ECHO_C='\c';;
13128 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13129 ECHO_T=' ';;
13130 esac;;
13132 ECHO_N='-n';;
13133 esac
13135 rm -f conf$$ conf$$.exe conf$$.file
13136 if test -d conf$$.dir; then
13137 rm -f conf$$.dir/conf$$.file
13138 else
13139 rm -f conf$$.dir
13140 mkdir conf$$.dir 2>/dev/null
13142 if (echo >conf$$.file) 2>/dev/null; then
13143 if ln -s conf$$.file conf$$ 2>/dev/null; then
13144 as_ln_s='ln -s'
13145 # ... but there are two gotchas:
13146 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13147 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13148 # In both cases, we have to default to `cp -p'.
13149 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13150 as_ln_s='cp -p'
13151 elif ln conf$$.file conf$$ 2>/dev/null; then
13152 as_ln_s=ln
13153 else
13154 as_ln_s='cp -p'
13156 else
13157 as_ln_s='cp -p'
13159 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13160 rmdir conf$$.dir 2>/dev/null
13163 # as_fn_mkdir_p
13164 # -------------
13165 # Create "$as_dir" as a directory, including parents if necessary.
13166 as_fn_mkdir_p ()
13169 case $as_dir in #(
13170 -*) as_dir=./$as_dir;;
13171 esac
13172 test -d "$as_dir" || eval $as_mkdir_p || {
13173 as_dirs=
13174 while :; do
13175 case $as_dir in #(
13176 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13177 *) as_qdir=$as_dir;;
13178 esac
13179 as_dirs="'$as_qdir' $as_dirs"
13180 as_dir=`$as_dirname -- "$as_dir" ||
13181 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13182 X"$as_dir" : 'X\(//\)[^/]' \| \
13183 X"$as_dir" : 'X\(//\)$' \| \
13184 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13185 $as_echo X"$as_dir" |
13186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13187 s//\1/
13190 /^X\(\/\/\)[^/].*/{
13191 s//\1/
13194 /^X\(\/\/\)$/{
13195 s//\1/
13198 /^X\(\/\).*/{
13199 s//\1/
13202 s/.*/./; q'`
13203 test -d "$as_dir" && break
13204 done
13205 test -z "$as_dirs" || eval "mkdir $as_dirs"
13206 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13209 } # as_fn_mkdir_p
13210 if mkdir -p . 2>/dev/null; then
13211 as_mkdir_p='mkdir -p "$as_dir"'
13212 else
13213 test -d ./-p && rmdir ./-p
13214 as_mkdir_p=false
13217 if test -x / >/dev/null 2>&1; then
13218 as_test_x='test -x'
13219 else
13220 if ls -dL / >/dev/null 2>&1; then
13221 as_ls_L_option=L
13222 else
13223 as_ls_L_option=
13225 as_test_x='
13226 eval sh -c '\''
13227 if test -d "$1"; then
13228 test -d "$1/.";
13229 else
13230 case $1 in #(
13231 -*)set "./$1";;
13232 esac;
13233 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13234 ???[sx]*):;;*)false;;esac;fi
13235 '\'' sh
13238 as_executable_p=$as_test_x
13240 # Sed expression to map a string onto a valid CPP name.
13241 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13243 # Sed expression to map a string onto a valid variable name.
13244 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13247 exec 6>&1
13248 ## ----------------------------------- ##
13249 ## Main body of $CONFIG_STATUS script. ##
13250 ## ----------------------------------- ##
13251 _ASEOF
13252 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13254 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13255 # Save the log message, to keep $0 and so on meaningful, and to
13256 # report actual input values of CONFIG_FILES etc. instead of their
13257 # values after options handling.
13258 ac_log="
13259 This file was extended by Xenomai $as_me 2.5.94, which was
13260 generated by GNU Autoconf 2.67. Invocation command line was
13262 CONFIG_FILES = $CONFIG_FILES
13263 CONFIG_HEADERS = $CONFIG_HEADERS
13264 CONFIG_LINKS = $CONFIG_LINKS
13265 CONFIG_COMMANDS = $CONFIG_COMMANDS
13266 $ $0 $@
13268 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13271 _ACEOF
13273 case $ac_config_files in *"
13274 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13275 esac
13277 case $ac_config_headers in *"
13278 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13279 esac
13282 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13283 # Files that config.status was made for.
13284 config_files="$ac_config_files"
13285 config_headers="$ac_config_headers"
13286 config_links="$ac_config_links"
13287 config_commands="$ac_config_commands"
13289 _ACEOF
13291 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13292 ac_cs_usage="\
13293 \`$as_me' instantiates files and other configuration actions
13294 from templates according to the current configuration. Unless the files
13295 and actions are specified as TAGs, all are instantiated by default.
13297 Usage: $0 [OPTION]... [TAG]...
13299 -h, --help print this help, then exit
13300 -V, --version print version number and configuration settings, then exit
13301 --config print configuration, then exit
13302 -q, --quiet, --silent
13303 do not print progress messages
13304 -d, --debug don't remove temporary files
13305 --recheck update $as_me by reconfiguring in the same conditions
13306 --file=FILE[:TEMPLATE]
13307 instantiate the configuration file FILE
13308 --header=FILE[:TEMPLATE]
13309 instantiate the configuration header FILE
13311 Configuration files:
13312 $config_files
13314 Configuration headers:
13315 $config_headers
13317 Configuration links:
13318 $config_links
13320 Configuration commands:
13321 $config_commands
13323 Report bugs to <xenomai-help@gna.org>."
13325 _ACEOF
13326 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13327 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13328 ac_cs_version="\\
13329 Xenomai config.status 2.5.94
13330 configured by $0, generated by GNU Autoconf 2.67,
13331 with options \\"\$ac_cs_config\\"
13333 Copyright (C) 2010 Free Software Foundation, Inc.
13334 This config.status script is free software; the Free Software Foundation
13335 gives unlimited permission to copy, distribute and modify it."
13337 ac_pwd='$ac_pwd'
13338 srcdir='$srcdir'
13339 INSTALL='$INSTALL'
13340 MKDIR_P='$MKDIR_P'
13341 AWK='$AWK'
13342 test -n "\$AWK" || AWK=awk
13343 _ACEOF
13345 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13346 # The default lists apply if the user does not specify any file.
13347 ac_need_defaults=:
13348 while test $# != 0
13350 case $1 in
13351 --*=?*)
13352 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13353 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13354 ac_shift=:
13356 --*=)
13357 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13358 ac_optarg=
13359 ac_shift=:
13362 ac_option=$1
13363 ac_optarg=$2
13364 ac_shift=shift
13366 esac
13368 case $ac_option in
13369 # Handling of the options.
13370 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13371 ac_cs_recheck=: ;;
13372 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13373 $as_echo "$ac_cs_version"; exit ;;
13374 --config | --confi | --conf | --con | --co | --c )
13375 $as_echo "$ac_cs_config"; exit ;;
13376 --debug | --debu | --deb | --de | --d | -d )
13377 debug=: ;;
13378 --file | --fil | --fi | --f )
13379 $ac_shift
13380 case $ac_optarg in
13381 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13382 '') as_fn_error $? "missing file argument" ;;
13383 esac
13384 as_fn_append CONFIG_FILES " '$ac_optarg'"
13385 ac_need_defaults=false;;
13386 --header | --heade | --head | --hea )
13387 $ac_shift
13388 case $ac_optarg in
13389 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13390 esac
13391 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13392 ac_need_defaults=false;;
13393 --he | --h)
13394 # Conflict between --help and --header
13395 as_fn_error $? "ambiguous option: \`$1'
13396 Try \`$0 --help' for more information.";;
13397 --help | --hel | -h )
13398 $as_echo "$ac_cs_usage"; exit ;;
13399 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13400 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13401 ac_cs_silent=: ;;
13403 # This is an error.
13404 -*) as_fn_error $? "unrecognized option: \`$1'
13405 Try \`$0 --help' for more information." ;;
13407 *) as_fn_append ac_config_targets " $1"
13408 ac_need_defaults=false ;;
13410 esac
13411 shift
13412 done
13414 ac_configure_extra_args=
13416 if $ac_cs_silent; then
13417 exec 6>/dev/null
13418 ac_configure_extra_args="$ac_configure_extra_args --silent"
13421 _ACEOF
13422 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13423 if \$ac_cs_recheck; then
13424 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13425 shift
13426 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13427 CONFIG_SHELL='$SHELL'
13428 export CONFIG_SHELL
13429 exec "\$@"
13432 _ACEOF
13433 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13434 exec 5>>config.log
13436 echo
13437 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13438 ## Running $as_me. ##
13439 _ASBOX
13440 $as_echo "$ac_log"
13441 } >&5
13443 _ACEOF
13444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13446 # INIT-COMMANDS
13448 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13451 # The HP-UX ksh and POSIX shell print the target directory to stdout
13452 # if CDPATH is set.
13453 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13455 sed_quote_subst='$sed_quote_subst'
13456 double_quote_subst='$double_quote_subst'
13457 delay_variable_subst='$delay_variable_subst'
13458 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13459 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13460 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13461 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13462 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13463 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13464 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13465 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13466 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13467 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13468 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13469 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13470 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13471 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13472 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13473 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13474 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13475 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13476 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13477 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13478 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13479 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13480 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13481 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13482 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13483 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13484 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13485 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13486 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13487 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13488 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13489 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13490 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13491 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13492 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13493 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13494 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13495 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13496 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13497 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13498 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13499 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13500 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13501 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
13502 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13503 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13504 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13505 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13506 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13507 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13508 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13509 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13510 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13511 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13512 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13513 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13514 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13515 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13516 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13517 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13518 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13519 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13520 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13521 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13522 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13523 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13524 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13525 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13526 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13527 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13528 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13529 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13530 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13531 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13532 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13533 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13534 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13535 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13536 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13537 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13538 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13539 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13540 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13541 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13542 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13543 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13544 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13545 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13546 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13547 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13548 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13549 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13550 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13551 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13552 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13553 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13554 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13555 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13556 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13557 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13558 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13559 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13560 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13561 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13562 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13563 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13564 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13565 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13566 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13567 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13568 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13569 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13570 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13571 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13572 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13573 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13574 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13575 LD_='`$ECHO "X$LD_" | $Xsed -e "$delay_single_quote_subst"`'
13576 old_archive_cmds_='`$ECHO "X$old_archive_cmds_" | $Xsed -e "$delay_single_quote_subst"`'
13577 compiler_='`$ECHO "X$compiler_" | $Xsed -e "$delay_single_quote_subst"`'
13578 GCC_='`$ECHO "X$GCC_" | $Xsed -e "$delay_single_quote_subst"`'
13579 lt_prog_compiler_no_builtin_flag_='`$ECHO "X$lt_prog_compiler_no_builtin_flag_" | $Xsed -e "$delay_single_quote_subst"`'
13580 lt_prog_compiler_wl_='`$ECHO "X$lt_prog_compiler_wl_" | $Xsed -e "$delay_single_quote_subst"`'
13581 lt_prog_compiler_pic_='`$ECHO "X$lt_prog_compiler_pic_" | $Xsed -e "$delay_single_quote_subst"`'
13582 lt_prog_compiler_static_='`$ECHO "X$lt_prog_compiler_static_" | $Xsed -e "$delay_single_quote_subst"`'
13583 lt_cv_prog_compiler_c_o_='`$ECHO "X$lt_cv_prog_compiler_c_o_" | $Xsed -e "$delay_single_quote_subst"`'
13584 archive_cmds_need_lc_='`$ECHO "X$archive_cmds_need_lc_" | $Xsed -e "$delay_single_quote_subst"`'
13585 enable_shared_with_static_runtimes_='`$ECHO "X$enable_shared_with_static_runtimes_" | $Xsed -e "$delay_single_quote_subst"`'
13586 export_dynamic_flag_spec_='`$ECHO "X$export_dynamic_flag_spec_" | $Xsed -e "$delay_single_quote_subst"`'
13587 whole_archive_flag_spec_='`$ECHO "X$whole_archive_flag_spec_" | $Xsed -e "$delay_single_quote_subst"`'
13588 compiler_needs_object_='`$ECHO "X$compiler_needs_object_" | $Xsed -e "$delay_single_quote_subst"`'
13589 old_archive_from_new_cmds_='`$ECHO "X$old_archive_from_new_cmds_" | $Xsed -e "$delay_single_quote_subst"`'
13590 old_archive_from_expsyms_cmds_='`$ECHO "X$old_archive_from_expsyms_cmds_" | $Xsed -e "$delay_single_quote_subst"`'
13591 archive_cmds_='`$ECHO "X$archive_cmds_" | $Xsed -e "$delay_single_quote_subst"`'
13592 archive_expsym_cmds_='`$ECHO "X$archive_expsym_cmds_" | $Xsed -e "$delay_single_quote_subst"`'
13593 module_cmds_='`$ECHO "X$module_cmds_" | $Xsed -e "$delay_single_quote_subst"`'
13594 module_expsym_cmds_='`$ECHO "X$module_expsym_cmds_" | $Xsed -e "$delay_single_quote_subst"`'
13595 with_gnu_ld_='`$ECHO "X$with_gnu_ld_" | $Xsed -e "$delay_single_quote_subst"`'
13596 allow_undefined_flag_='`$ECHO "X$allow_undefined_flag_" | $Xsed -e "$delay_single_quote_subst"`'
13597 no_undefined_flag_='`$ECHO "X$no_undefined_flag_" | $Xsed -e "$delay_single_quote_subst"`'
13598 hardcode_libdir_flag_spec_='`$ECHO "X$hardcode_libdir_flag_spec_" | $Xsed -e "$delay_single_quote_subst"`'
13599 hardcode_libdir_flag_spec_ld_='`$ECHO "X$hardcode_libdir_flag_spec_ld_" | $Xsed -e "$delay_single_quote_subst"`'
13600 hardcode_libdir_separator_='`$ECHO "X$hardcode_libdir_separator_" | $Xsed -e "$delay_single_quote_subst"`'
13601 hardcode_direct_='`$ECHO "X$hardcode_direct_" | $Xsed -e "$delay_single_quote_subst"`'
13602 hardcode_direct_absolute_='`$ECHO "X$hardcode_direct_absolute_" | $Xsed -e "$delay_single_quote_subst"`'
13603 hardcode_minus_L_='`$ECHO "X$hardcode_minus_L_" | $Xsed -e "$delay_single_quote_subst"`'
13604 hardcode_shlibpath_var_='`$ECHO "X$hardcode_shlibpath_var_" | $Xsed -e "$delay_single_quote_subst"`'
13605 hardcode_automatic_='`$ECHO "X$hardcode_automatic_" | $Xsed -e "$delay_single_quote_subst"`'
13606 inherit_rpath_='`$ECHO "X$inherit_rpath_" | $Xsed -e "$delay_single_quote_subst"`'
13607 link_all_deplibs_='`$ECHO "X$link_all_deplibs_" | $Xsed -e "$delay_single_quote_subst"`'
13608 fix_srcfile_path_='`$ECHO "X$fix_srcfile_path_" | $Xsed -e "$delay_single_quote_subst"`'
13609 always_export_symbols_='`$ECHO "X$always_export_symbols_" | $Xsed -e "$delay_single_quote_subst"`'
13610 export_symbols_cmds_='`$ECHO "X$export_symbols_cmds_" | $Xsed -e "$delay_single_quote_subst"`'
13611 exclude_expsyms_='`$ECHO "X$exclude_expsyms_" | $Xsed -e "$delay_single_quote_subst"`'
13612 include_expsyms_='`$ECHO "X$include_expsyms_" | $Xsed -e "$delay_single_quote_subst"`'
13613 prelink_cmds_='`$ECHO "X$prelink_cmds_" | $Xsed -e "$delay_single_quote_subst"`'
13614 file_list_spec_='`$ECHO "X$file_list_spec_" | $Xsed -e "$delay_single_quote_subst"`'
13615 hardcode_action_='`$ECHO "X$hardcode_action_" | $Xsed -e "$delay_single_quote_subst"`'
13617 LTCC='$LTCC'
13618 LTCFLAGS='$LTCFLAGS'
13619 compiler='$compiler_DEFAULT'
13621 # Quote evaled strings.
13622 for var in SED \
13623 GREP \
13624 EGREP \
13625 FGREP \
13626 LD \
13627 NM \
13628 LN_S \
13629 lt_SP2NL \
13630 lt_NL2SP \
13631 reload_flag \
13632 deplibs_check_method \
13633 file_magic_cmd \
13634 AR \
13635 AR_FLAGS \
13636 STRIP \
13637 RANLIB \
13638 CC \
13639 CFLAGS \
13640 compiler \
13641 lt_cv_sys_global_symbol_pipe \
13642 lt_cv_sys_global_symbol_to_cdecl \
13643 lt_cv_sys_global_symbol_to_c_name_address \
13644 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13645 SHELL \
13646 ECHO \
13647 lt_prog_compiler_no_builtin_flag \
13648 lt_prog_compiler_wl \
13649 lt_prog_compiler_pic \
13650 lt_prog_compiler_static \
13651 lt_cv_prog_compiler_c_o \
13652 need_locks \
13653 DSYMUTIL \
13654 NMEDIT \
13655 LIPO \
13656 OTOOL \
13657 OTOOL64 \
13658 shrext_cmds \
13659 export_dynamic_flag_spec \
13660 whole_archive_flag_spec \
13661 compiler_needs_object \
13662 with_gnu_ld \
13663 allow_undefined_flag \
13664 no_undefined_flag \
13665 hardcode_libdir_flag_spec \
13666 hardcode_libdir_flag_spec_ld \
13667 hardcode_libdir_separator \
13668 fix_srcfile_path \
13669 exclude_expsyms \
13670 include_expsyms \
13671 file_list_spec \
13672 variables_saved_for_relink \
13673 libname_spec \
13674 library_names_spec \
13675 soname_spec \
13676 finish_eval \
13677 old_striplib \
13678 striplib \
13679 LD_ \
13680 compiler_ \
13681 lt_prog_compiler_no_builtin_flag_ \
13682 lt_prog_compiler_wl_ \
13683 lt_prog_compiler_pic_ \
13684 lt_prog_compiler_static_ \
13685 lt_cv_prog_compiler_c_o_ \
13686 export_dynamic_flag_spec_ \
13687 whole_archive_flag_spec_ \
13688 compiler_needs_object_ \
13689 with_gnu_ld_ \
13690 allow_undefined_flag_ \
13691 no_undefined_flag_ \
13692 hardcode_libdir_flag_spec_ \
13693 hardcode_libdir_flag_spec_ld_ \
13694 hardcode_libdir_separator_ \
13695 fix_srcfile_path_ \
13696 exclude_expsyms_ \
13697 include_expsyms_ \
13698 file_list_spec_; do
13699 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13700 *[\\\\\\\`\\"\\\$]*)
13701 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13704 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13706 esac
13707 done
13709 # Double-quote double-evaled strings.
13710 for var in reload_cmds \
13711 old_postinstall_cmds \
13712 old_postuninstall_cmds \
13713 old_archive_cmds \
13714 extract_expsyms_cmds \
13715 old_archive_from_new_cmds \
13716 old_archive_from_expsyms_cmds \
13717 archive_cmds \
13718 archive_expsym_cmds \
13719 module_cmds \
13720 module_expsym_cmds \
13721 export_symbols_cmds \
13722 prelink_cmds \
13723 postinstall_cmds \
13724 postuninstall_cmds \
13725 finish_cmds \
13726 sys_lib_search_path_spec \
13727 sys_lib_dlsearch_path_spec \
13728 old_archive_cmds_ \
13729 old_archive_from_new_cmds_ \
13730 old_archive_from_expsyms_cmds_ \
13731 archive_cmds_ \
13732 archive_expsym_cmds_ \
13733 module_cmds_ \
13734 module_expsym_cmds_ \
13735 export_symbols_cmds_ \
13736 prelink_cmds_; do
13737 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13738 *[\\\\\\\`\\"\\\$]*)
13739 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13742 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13744 esac
13745 done
13747 # Fix-up fallback echo if it was mangled by the above quoting rules.
13748 case \$lt_ECHO in
13749 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13751 esac
13753 ac_aux_dir='$ac_aux_dir'
13754 xsi_shell='$xsi_shell'
13755 lt_shell_append='$lt_shell_append'
13757 # See if we are running on zsh, and set the options which allow our
13758 # commands through without removal of \ escapes INIT.
13759 if test -n "\${ZSH_VERSION+set}" ; then
13760 setopt NO_GLOB_SUBST
13764 PACKAGE='$PACKAGE'
13765 VERSION='$VERSION'
13766 TIMESTAMP='$TIMESTAMP'
13767 RM='$RM'
13768 ofile='$ofile'
13773 _ACEOF
13775 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13777 # Handling of arguments.
13778 for ac_config_target in $ac_config_targets
13780 case $ac_config_target in
13781 "src/include/xeno_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/xeno_config.h" ;;
13782 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13783 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13784 "src/include/asm/xenomai") CONFIG_LINKS="$CONFIG_LINKS src/include/asm/xenomai:$srcdir/include/$base" ;;
13785 "src/include/$base/xenomai") CONFIG_LINKS="$CONFIG_LINKS src/include/$base/xenomai:$srcdir/include/$base" ;;
13786 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13787 "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
13788 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
13789 "scripts/xeno-config") CONFIG_FILES="$CONFIG_FILES scripts/xeno-config" ;;
13790 "scripts/xeno") CONFIG_FILES="$CONFIG_FILES scripts/xeno" ;;
13791 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13792 "src/skins/Makefile") CONFIG_FILES="$CONFIG_FILES src/skins/Makefile" ;;
13793 "src/skins/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/skins/common/Makefile" ;;
13794 "src/skins/posix/Makefile") CONFIG_FILES="$CONFIG_FILES src/skins/posix/Makefile" ;;
13795 "src/skins/native/Makefile") CONFIG_FILES="$CONFIG_FILES src/skins/native/Makefile" ;;
13796 "src/skins/native/libxenomai_native.pc") CONFIG_FILES="$CONFIG_FILES src/skins/native/libxenomai_native.pc" ;;
13797 "src/skins/vxworks/Makefile") CONFIG_FILES="$CONFIG_FILES src/skins/vxworks/Makefile" ;;
13798 "src/skins/vxworks/libxenomai_vxworks.pc") CONFIG_FILES="$CONFIG_FILES src/skins/vxworks/libxenomai_vxworks.pc" ;;
13799 "src/skins/psos+/Makefile") CONFIG_FILES="$CONFIG_FILES src/skins/psos+/Makefile" ;;
13800 "src/skins/psos+/libxenomai_psos+.pc") CONFIG_FILES="$CONFIG_FILES src/skins/psos+/libxenomai_psos+.pc" ;;
13801 "src/skins/vrtx/Makefile") CONFIG_FILES="$CONFIG_FILES src/skins/vrtx/Makefile" ;;
13802 "src/skins/vrtx/libxenomai_vrtx.pc") CONFIG_FILES="$CONFIG_FILES src/skins/vrtx/libxenomai_vrtx.pc" ;;
13803 "src/skins/rtdm/Makefile") CONFIG_FILES="$CONFIG_FILES src/skins/rtdm/Makefile" ;;
13804 "src/skins/rtdm/libxenomai_rtdm.pc") CONFIG_FILES="$CONFIG_FILES src/skins/rtdm/libxenomai_rtdm.pc" ;;
13805 "src/skins/uitron/Makefile") CONFIG_FILES="$CONFIG_FILES src/skins/uitron/Makefile" ;;
13806 "src/skins/uitron/libxenomai_uitron.pc") CONFIG_FILES="$CONFIG_FILES src/skins/uitron/libxenomai_uitron.pc" ;;
13807 "src/drvlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/drvlib/Makefile" ;;
13808 "src/drvlib/analogy/Makefile") CONFIG_FILES="$CONFIG_FILES src/drvlib/analogy/Makefile" ;;
13809 "src/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
13810 "src/testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES src/testsuite/Makefile" ;;
13811 "src/testsuite/latency/Makefile") CONFIG_FILES="$CONFIG_FILES src/testsuite/latency/Makefile" ;;
13812 "src/testsuite/cyclic/Makefile") CONFIG_FILES="$CONFIG_FILES src/testsuite/cyclic/Makefile" ;;
13813 "src/testsuite/switchtest/Makefile") CONFIG_FILES="$CONFIG_FILES src/testsuite/switchtest/Makefile" ;;
13814 "src/testsuite/irqbench/Makefile") CONFIG_FILES="$CONFIG_FILES src/testsuite/irqbench/Makefile" ;;
13815 "src/testsuite/clocktest/Makefile") CONFIG_FILES="$CONFIG_FILES src/testsuite/clocktest/Makefile" ;;
13816 "src/testsuite/klatency/Makefile") CONFIG_FILES="$CONFIG_FILES src/testsuite/klatency/Makefile" ;;
13817 "src/testsuite/unit/Makefile") CONFIG_FILES="$CONFIG_FILES src/testsuite/unit/Makefile" ;;
13818 "src/testsuite/xeno-test/Makefile") CONFIG_FILES="$CONFIG_FILES src/testsuite/xeno-test/Makefile" ;;
13819 "src/testsuite/regression/Makefile") CONFIG_FILES="$CONFIG_FILES src/testsuite/regression/Makefile" ;;
13820 "src/testsuite/regression/native/Makefile") CONFIG_FILES="$CONFIG_FILES src/testsuite/regression/native/Makefile" ;;
13821 "src/testsuite/regression/posix/Makefile") CONFIG_FILES="$CONFIG_FILES src/testsuite/regression/posix/Makefile" ;;
13822 "src/testsuite/regression/native+posix/Makefile") CONFIG_FILES="$CONFIG_FILES src/testsuite/regression/native+posix/Makefile" ;;
13823 "src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
13824 "src/utils/can/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/can/Makefile" ;;
13825 "src/utils/analogy/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/analogy/Makefile" ;;
13826 "src/utils/ps/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/ps/Makefile" ;;
13827 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13828 "include/asm-generic/Makefile") CONFIG_FILES="$CONFIG_FILES include/asm-generic/Makefile" ;;
13829 "include/asm-generic/bits/Makefile") CONFIG_FILES="$CONFIG_FILES include/asm-generic/bits/Makefile" ;;
13830 "include/asm-blackfin/Makefile") CONFIG_FILES="$CONFIG_FILES include/asm-blackfin/Makefile" ;;
13831 "include/asm-blackfin/bits/Makefile") CONFIG_FILES="$CONFIG_FILES include/asm-blackfin/bits/Makefile" ;;
13832 "include/asm-x86/Makefile") CONFIG_FILES="$CONFIG_FILES include/asm-x86/Makefile" ;;
13833 "include/asm-x86/bits/Makefile") CONFIG_FILES="$CONFIG_FILES include/asm-x86/bits/Makefile" ;;
13834 "include/asm-powerpc/Makefile") CONFIG_FILES="$CONFIG_FILES include/asm-powerpc/Makefile" ;;
13835 "include/asm-powerpc/bits/Makefile") CONFIG_FILES="$CONFIG_FILES include/asm-powerpc/bits/Makefile" ;;
13836 "include/asm-arm/Makefile") CONFIG_FILES="$CONFIG_FILES include/asm-arm/Makefile" ;;
13837 "include/asm-arm/bits/Makefile") CONFIG_FILES="$CONFIG_FILES include/asm-arm/bits/Makefile" ;;
13838 "include/asm-nios2/Makefile") CONFIG_FILES="$CONFIG_FILES include/asm-nios2/Makefile" ;;
13839 "include/asm-nios2/bits/Makefile") CONFIG_FILES="$CONFIG_FILES include/asm-nios2/bits/Makefile" ;;
13840 "include/asm-sh/Makefile") CONFIG_FILES="$CONFIG_FILES include/asm-sh/Makefile" ;;
13841 "include/asm-sh/bits/Makefile") CONFIG_FILES="$CONFIG_FILES include/asm-sh/bits/Makefile" ;;
13842 "include/asm-sim/Makefile") CONFIG_FILES="$CONFIG_FILES include/asm-sim/Makefile" ;;
13843 "include/asm-sim/bits/Makefile") CONFIG_FILES="$CONFIG_FILES include/asm-sim/bits/Makefile" ;;
13844 "include/native/Makefile") CONFIG_FILES="$CONFIG_FILES include/native/Makefile" ;;
13845 "include/nucleus/Makefile") CONFIG_FILES="$CONFIG_FILES include/nucleus/Makefile" ;;
13846 "include/posix/Makefile") CONFIG_FILES="$CONFIG_FILES include/posix/Makefile" ;;
13847 "include/posix/sys/Makefile") CONFIG_FILES="$CONFIG_FILES include/posix/sys/Makefile" ;;
13848 "include/psos+/Makefile") CONFIG_FILES="$CONFIG_FILES include/psos+/Makefile" ;;
13849 "include/rtdm/Makefile") CONFIG_FILES="$CONFIG_FILES include/rtdm/Makefile" ;;
13850 "include/analogy/Makefile") CONFIG_FILES="$CONFIG_FILES include/analogy/Makefile" ;;
13851 "include/uitron/Makefile") CONFIG_FILES="$CONFIG_FILES include/uitron/Makefile" ;;
13852 "include/vrtx/Makefile") CONFIG_FILES="$CONFIG_FILES include/vrtx/Makefile" ;;
13853 "include/vxworks/Makefile") CONFIG_FILES="$CONFIG_FILES include/vxworks/Makefile" ;;
13854 "src/skins/posix/libxenomai_posix.pc") CONFIG_FILES="$CONFIG_FILES src/skins/posix/libxenomai_posix.pc" ;;
13855 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13856 "doc/txt/Makefile") CONFIG_FILES="$CONFIG_FILES doc/txt/Makefile" ;;
13857 "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;;
13858 "doc/man/clocktest.man") CONFIG_FILES="$CONFIG_FILES doc/man/clocktest.man" ;;
13859 "doc/man/cyclictest.man") CONFIG_FILES="$CONFIG_FILES doc/man/cyclictest.man" ;;
13860 "doc/man/irqbench.man") CONFIG_FILES="$CONFIG_FILES doc/man/irqbench.man" ;;
13861 "doc/man/irqloop.man") CONFIG_FILES="$CONFIG_FILES doc/man/irqloop.man" ;;
13862 "doc/man/klatency.man") CONFIG_FILES="$CONFIG_FILES doc/man/klatency.man" ;;
13863 "doc/man/latency.man") CONFIG_FILES="$CONFIG_FILES doc/man/latency.man" ;;
13864 "doc/man/rtcanconfig.man") CONFIG_FILES="$CONFIG_FILES doc/man/rtcanconfig.man" ;;
13865 "doc/man/rtcanrecv.man") CONFIG_FILES="$CONFIG_FILES doc/man/rtcanrecv.man" ;;
13866 "doc/man/rtcansend.man") CONFIG_FILES="$CONFIG_FILES doc/man/rtcansend.man" ;;
13867 "doc/man/switchbench.man") CONFIG_FILES="$CONFIG_FILES doc/man/switchbench.man" ;;
13868 "doc/man/switchtest.man") CONFIG_FILES="$CONFIG_FILES doc/man/switchtest.man" ;;
13869 "doc/man/xeno.man") CONFIG_FILES="$CONFIG_FILES doc/man/xeno.man" ;;
13870 "doc/man/xeno-config.man") CONFIG_FILES="$CONFIG_FILES doc/man/xeno-config.man" ;;
13871 "doc/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Makefile" ;;
13872 "doc/doxygen/Doxyfile-common") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Doxyfile-common" ;;
13873 "doc/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Doxyfile" ;;
13874 "doc/doxygen/Doxyfile-native") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Doxyfile-native" ;;
13875 "doc/doxygen/Doxyfile-nucleus") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Doxyfile-nucleus" ;;
13876 "doc/doxygen/Doxyfile-posix") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Doxyfile-posix" ;;
13877 "doc/doxygen/Doxyfile-rtdm") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Doxyfile-rtdm" ;;
13878 "doc/docbook/Makefile") CONFIG_FILES="$CONFIG_FILES doc/docbook/Makefile" ;;
13879 "doc/docbook/catalog") CONFIG_FILES="$CONFIG_FILES doc/docbook/catalog" ;;
13880 "doc/docbook/custom-stylesheets/Makefile") CONFIG_FILES="$CONFIG_FILES doc/docbook/custom-stylesheets/Makefile" ;;
13881 "doc/docbook/custom-stylesheets/xsl/Makefile") CONFIG_FILES="$CONFIG_FILES doc/docbook/custom-stylesheets/xsl/Makefile" ;;
13882 "doc/docbook/custom-stylesheets/xsl/common/Makefile") CONFIG_FILES="$CONFIG_FILES doc/docbook/custom-stylesheets/xsl/common/Makefile" ;;
13883 "doc/docbook/custom-stylesheets/xsl/fo/Makefile") CONFIG_FILES="$CONFIG_FILES doc/docbook/custom-stylesheets/xsl/fo/Makefile" ;;
13884 "doc/docbook/custom-stylesheets/xsl/html/Makefile") CONFIG_FILES="$CONFIG_FILES doc/docbook/custom-stylesheets/xsl/html/Makefile" ;;
13885 "doc/docbook/custom-stylesheets/xsl/html/chunk.xsl") CONFIG_FILES="$CONFIG_FILES doc/docbook/custom-stylesheets/xsl/html/chunk.xsl" ;;
13886 "doc/docbook/custom-stylesheets/xsl/html/onechunk.xsl") CONFIG_FILES="$CONFIG_FILES doc/docbook/custom-stylesheets/xsl/html/onechunk.xsl" ;;
13887 "doc/docbook/xenomai/Makefile") CONFIG_FILES="$CONFIG_FILES doc/docbook/xenomai/Makefile" ;;
13889 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
13890 esac
13891 done
13894 # If the user did not use the arguments to specify the items to instantiate,
13895 # then the envvar interface is used. Set only those that are not.
13896 # We use the long form for the default assignment because of an extremely
13897 # bizarre bug on SunOS 4.1.3.
13898 if $ac_need_defaults; then
13899 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13900 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13901 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
13902 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13905 # Have a temporary directory for convenience. Make it in the build tree
13906 # simply because there is no reason against having it here, and in addition,
13907 # creating and moving files from /tmp can sometimes cause problems.
13908 # Hook for its removal unless debugging.
13909 # Note that there is a small window in which the directory will not be cleaned:
13910 # after its creation but before its name has been assigned to `$tmp'.
13911 $debug ||
13913 tmp=
13914 trap 'exit_status=$?
13915 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13917 trap 'as_fn_exit 1' 1 2 13 15
13919 # Create a (secure) tmp directory for tmp files.
13922 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13923 test -n "$tmp" && test -d "$tmp"
13924 } ||
13926 tmp=./conf$$-$RANDOM
13927 (umask 077 && mkdir "$tmp")
13928 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13930 # Set up the scripts for CONFIG_FILES section.
13931 # No need to generate them if there are no CONFIG_FILES.
13932 # This happens for instance with `./config.status config.h'.
13933 if test -n "$CONFIG_FILES"; then
13936 ac_cr=`echo X | tr X '\015'`
13937 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13938 # But we know of no other shell where ac_cr would be empty at this
13939 # point, so we can use a bashism as a fallback.
13940 if test "x$ac_cr" = x; then
13941 eval ac_cr=\$\'\\r\'
13943 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13944 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13945 ac_cs_awk_cr='\\r'
13946 else
13947 ac_cs_awk_cr=$ac_cr
13950 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13951 _ACEOF
13955 echo "cat >conf$$subs.awk <<_ACEOF" &&
13956 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13957 echo "_ACEOF"
13958 } >conf$$subs.sh ||
13959 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13960 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13961 ac_delim='%!_!# '
13962 for ac_last_try in false false false false false :; do
13963 . ./conf$$subs.sh ||
13964 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13966 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13967 if test $ac_delim_n = $ac_delim_num; then
13968 break
13969 elif $ac_last_try; then
13970 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13971 else
13972 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13974 done
13975 rm -f conf$$subs.sh
13977 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13978 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13979 _ACEOF
13980 sed -n '
13982 s/^/S["/; s/!.*/"]=/
13985 s/^[^!]*!//
13986 :repl
13987 t repl
13988 s/'"$ac_delim"'$//
13989 t delim
13992 s/\(.\{148\}\)..*/\1/
13993 t more1
13994 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13997 b repl
13998 :more1
13999 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14002 s/.\{148\}//
14003 t nl
14004 :delim
14006 s/\(.\{148\}\)..*/\1/
14007 t more2
14008 s/["\\]/\\&/g; s/^/"/; s/$/"/
14011 :more2
14012 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14015 s/.\{148\}//
14016 t delim
14017 ' <conf$$subs.awk | sed '
14018 /^[^""]/{
14020 s/\n//
14022 ' >>$CONFIG_STATUS || ac_write_fail=1
14023 rm -f conf$$subs.awk
14024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14025 _ACAWK
14026 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14027 for (key in S) S_is_set[key] = 1
14028 FS = "\a"
14032 line = $ 0
14033 nfields = split(line, field, "@")
14034 substed = 0
14035 len = length(field[1])
14036 for (i = 2; i < nfields; i++) {
14037 key = field[i]
14038 keylen = length(key)
14039 if (S_is_set[key]) {
14040 value = S[key]
14041 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14042 len += length(value) + length(field[++i])
14043 substed = 1
14044 } else
14045 len += 1 + keylen
14048 print line
14051 _ACAWK
14052 _ACEOF
14053 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14054 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14055 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14056 else
14058 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14059 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14060 _ACEOF
14062 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14063 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14064 # trailing colons and then remove the whole line if VPATH becomes empty
14065 # (actually we leave an empty line to preserve line numbers).
14066 if test "x$srcdir" = x.; then
14067 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14069 s///
14070 s/^/:/
14071 s/[ ]*$/:/
14072 s/:\$(srcdir):/:/g
14073 s/:\${srcdir}:/:/g
14074 s/:@srcdir@:/:/g
14075 s/^:*//
14076 s/:*$//
14078 s/\(=[ ]*\).*/\1/
14080 s/\n//
14081 s/^[^=]*=[ ]*$//
14085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14086 fi # test -n "$CONFIG_FILES"
14088 # Set up the scripts for CONFIG_HEADERS section.
14089 # No need to generate them if there are no CONFIG_HEADERS.
14090 # This happens for instance with `./config.status Makefile'.
14091 if test -n "$CONFIG_HEADERS"; then
14092 cat >"$tmp/defines.awk" <<\_ACAWK ||
14093 BEGIN {
14094 _ACEOF
14096 # Transform confdefs.h into an awk script `defines.awk', embedded as
14097 # here-document in config.status, that substitutes the proper values into
14098 # config.h.in to produce config.h.
14100 # Create a delimiter string that does not exist in confdefs.h, to ease
14101 # handling of long lines.
14102 ac_delim='%!_!# '
14103 for ac_last_try in false false :; do
14104 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14105 if test -z "$ac_t"; then
14106 break
14107 elif $ac_last_try; then
14108 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14109 else
14110 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14112 done
14114 # For the awk script, D is an array of macro values keyed by name,
14115 # likewise P contains macro parameters if any. Preserve backslash
14116 # newline sequences.
14118 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14119 sed -n '
14120 s/.\{148\}/&'"$ac_delim"'/g
14121 t rset
14122 :rset
14123 s/^[ ]*#[ ]*define[ ][ ]*/ /
14124 t def
14126 :def
14127 s/\\$//
14128 t bsnl
14129 s/["\\]/\\&/g
14130 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14131 D["\1"]=" \3"/p
14132 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14134 :bsnl
14135 s/["\\]/\\&/g
14136 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14137 D["\1"]=" \3\\\\\\n"\\/p
14138 t cont
14139 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14140 t cont
14142 :cont
14144 s/.\{148\}/&'"$ac_delim"'/g
14145 t clear
14146 :clear
14147 s/\\$//
14148 t bsnlc
14149 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14151 :bsnlc
14152 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14153 b cont
14154 ' <confdefs.h | sed '
14155 s/'"$ac_delim"'/"\\\
14156 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14159 for (key in D) D_is_set[key] = 1
14160 FS = "\a"
14162 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14163 line = \$ 0
14164 split(line, arg, " ")
14165 if (arg[1] == "#") {
14166 defundef = arg[2]
14167 mac1 = arg[3]
14168 } else {
14169 defundef = substr(arg[1], 2)
14170 mac1 = arg[2]
14172 split(mac1, mac2, "(") #)
14173 macro = mac2[1]
14174 prefix = substr(line, 1, index(line, defundef) - 1)
14175 if (D_is_set[macro]) {
14176 # Preserve the white space surrounding the "#".
14177 print prefix "define", macro P[macro] D[macro]
14178 next
14179 } else {
14180 # Replace #undef with comments. This is necessary, for example,
14181 # in the case of _POSIX_SOURCE, which is predefined and required
14182 # on some systems where configure will not decide to define it.
14183 if (defundef == "undef") {
14184 print "/*", prefix defundef, macro, "*/"
14185 next
14189 { print }
14190 _ACAWK
14191 _ACEOF
14192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14193 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14194 fi # test -n "$CONFIG_HEADERS"
14197 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
14198 shift
14199 for ac_tag
14201 case $ac_tag in
14202 :[FHLC]) ac_mode=$ac_tag; continue;;
14203 esac
14204 case $ac_mode$ac_tag in
14205 :[FHL]*:*);;
14206 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
14207 :[FH]-) ac_tag=-:-;;
14208 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14209 esac
14210 ac_save_IFS=$IFS
14211 IFS=:
14212 set x $ac_tag
14213 IFS=$ac_save_IFS
14214 shift
14215 ac_file=$1
14216 shift
14218 case $ac_mode in
14219 :L) ac_source=$1;;
14220 :[FH])
14221 ac_file_inputs=
14222 for ac_f
14224 case $ac_f in
14225 -) ac_f="$tmp/stdin";;
14226 *) # Look for the file first in the build tree, then in the source tree
14227 # (if the path is not absolute). The absolute path cannot be DOS-style,
14228 # because $ac_f cannot contain `:'.
14229 test -f "$ac_f" ||
14230 case $ac_f in
14231 [\\/$]*) false;;
14232 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14233 esac ||
14234 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
14235 esac
14236 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14237 as_fn_append ac_file_inputs " '$ac_f'"
14238 done
14240 # Let's still pretend it is `configure' which instantiates (i.e., don't
14241 # use $as_me), people would be surprised to read:
14242 # /* config.h. Generated by config.status. */
14243 configure_input='Generated from '`
14244 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14245 `' by configure.'
14246 if test x"$ac_file" != x-; then
14247 configure_input="$ac_file. $configure_input"
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14249 $as_echo "$as_me: creating $ac_file" >&6;}
14251 # Neutralize special characters interpreted by sed in replacement strings.
14252 case $configure_input in #(
14253 *\&* | *\|* | *\\* )
14254 ac_sed_conf_input=`$as_echo "$configure_input" |
14255 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14256 *) ac_sed_conf_input=$configure_input;;
14257 esac
14259 case $ac_tag in
14260 *:-:* | *:-) cat >"$tmp/stdin" \
14261 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14262 esac
14264 esac
14266 ac_dir=`$as_dirname -- "$ac_file" ||
14267 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14268 X"$ac_file" : 'X\(//\)[^/]' \| \
14269 X"$ac_file" : 'X\(//\)$' \| \
14270 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14271 $as_echo X"$ac_file" |
14272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14273 s//\1/
14276 /^X\(\/\/\)[^/].*/{
14277 s//\1/
14280 /^X\(\/\/\)$/{
14281 s//\1/
14284 /^X\(\/\).*/{
14285 s//\1/
14288 s/.*/./; q'`
14289 as_dir="$ac_dir"; as_fn_mkdir_p
14290 ac_builddir=.
14292 case "$ac_dir" in
14293 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14295 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14296 # A ".." for each directory in $ac_dir_suffix.
14297 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14298 case $ac_top_builddir_sub in
14299 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14300 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14301 esac ;;
14302 esac
14303 ac_abs_top_builddir=$ac_pwd
14304 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14305 # for backward compatibility:
14306 ac_top_builddir=$ac_top_build_prefix
14308 case $srcdir in
14309 .) # We are building in place.
14310 ac_srcdir=.
14311 ac_top_srcdir=$ac_top_builddir_sub
14312 ac_abs_top_srcdir=$ac_pwd ;;
14313 [\\/]* | ?:[\\/]* ) # Absolute name.
14314 ac_srcdir=$srcdir$ac_dir_suffix;
14315 ac_top_srcdir=$srcdir
14316 ac_abs_top_srcdir=$srcdir ;;
14317 *) # Relative name.
14318 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14319 ac_top_srcdir=$ac_top_build_prefix$srcdir
14320 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14321 esac
14322 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14325 case $ac_mode in
14328 # CONFIG_FILE
14331 case $INSTALL in
14332 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14333 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14334 esac
14335 ac_MKDIR_P=$MKDIR_P
14336 case $MKDIR_P in
14337 [\\/$]* | ?:[\\/]* ) ;;
14338 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14339 esac
14340 _ACEOF
14342 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14343 # If the template does not know about datarootdir, expand it.
14344 # FIXME: This hack should be removed a few years after 2.60.
14345 ac_datarootdir_hack=; ac_datarootdir_seen=
14346 ac_sed_dataroot='
14347 /datarootdir/ {
14351 /@datadir@/p
14352 /@docdir@/p
14353 /@infodir@/p
14354 /@localedir@/p
14355 /@mandir@/p'
14356 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14357 *datarootdir*) ac_datarootdir_seen=yes;;
14358 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14360 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14361 _ACEOF
14362 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14363 ac_datarootdir_hack='
14364 s&@datadir@&$datadir&g
14365 s&@docdir@&$docdir&g
14366 s&@infodir@&$infodir&g
14367 s&@localedir@&$localedir&g
14368 s&@mandir@&$mandir&g
14369 s&\\\${datarootdir}&$datarootdir&g' ;;
14370 esac
14371 _ACEOF
14373 # Neutralize VPATH when `$srcdir' = `.'.
14374 # Shell code in configure.ac might set extrasub.
14375 # FIXME: do we really want to maintain this feature?
14376 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14377 ac_sed_extra="$ac_vpsub
14378 $extrasub
14379 _ACEOF
14380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14382 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14383 s|@configure_input@|$ac_sed_conf_input|;t t
14384 s&@top_builddir@&$ac_top_builddir_sub&;t t
14385 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14386 s&@srcdir@&$ac_srcdir&;t t
14387 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14388 s&@top_srcdir@&$ac_top_srcdir&;t t
14389 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14390 s&@builddir@&$ac_builddir&;t t
14391 s&@abs_builddir@&$ac_abs_builddir&;t t
14392 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14393 s&@INSTALL@&$ac_INSTALL&;t t
14394 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14395 $ac_datarootdir_hack
14397 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14398 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14400 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14401 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14402 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14404 which seems to be undefined. Please make sure it is defined" >&5
14405 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14406 which seems to be undefined. Please make sure it is defined" >&2;}
14408 rm -f "$tmp/stdin"
14409 case $ac_file in
14410 -) cat "$tmp/out" && rm -f "$tmp/out";;
14411 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14412 esac \
14413 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14417 # CONFIG_HEADER
14419 if test x"$ac_file" != x-; then
14421 $as_echo "/* $configure_input */" \
14422 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14423 } >"$tmp/config.h" \
14424 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14425 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14427 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14428 else
14429 rm -f "$ac_file"
14430 mv "$tmp/config.h" "$ac_file" \
14431 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14433 else
14434 $as_echo "/* $configure_input */" \
14435 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14436 || as_fn_error $? "could not create -" "$LINENO" 5
14438 # Compute "$ac_file"'s index in $config_headers.
14439 _am_arg="$ac_file"
14440 _am_stamp_count=1
14441 for _am_header in $config_headers :; do
14442 case $_am_header in
14443 $_am_arg | $_am_arg:* )
14444 break ;;
14446 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14447 esac
14448 done
14449 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14450 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14451 X"$_am_arg" : 'X\(//\)[^/]' \| \
14452 X"$_am_arg" : 'X\(//\)$' \| \
14453 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14454 $as_echo X"$_am_arg" |
14455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14456 s//\1/
14459 /^X\(\/\/\)[^/].*/{
14460 s//\1/
14463 /^X\(\/\/\)$/{
14464 s//\1/
14467 /^X\(\/\).*/{
14468 s//\1/
14471 s/.*/./; q'`/stamp-h$_am_stamp_count
14475 # CONFIG_LINK
14478 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
14480 else
14481 # Prefer the file from the source tree if names are identical.
14482 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
14483 ac_source=$srcdir/$ac_source
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
14487 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
14489 if test ! -r "$ac_source"; then
14490 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
14492 rm -f "$ac_file"
14494 # Try a relative symlink, then a hard link, then a copy.
14495 case $ac_source in
14496 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
14497 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
14498 esac
14499 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
14500 ln "$ac_source" "$ac_file" 2>/dev/null ||
14501 cp -p "$ac_source" "$ac_file" ||
14502 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
14505 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14506 $as_echo "$as_me: executing $ac_file commands" >&6;}
14508 esac
14511 case $ac_file$ac_mode in
14512 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14513 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14514 # are listed without --file. Let's play safe and only enable the eval
14515 # if we detect the quoting.
14516 case $CONFIG_FILES in
14517 *\'*) eval set x "$CONFIG_FILES" ;;
14518 *) set x $CONFIG_FILES ;;
14519 esac
14520 shift
14521 for mf
14523 # Strip MF so we end up with the name of the file.
14524 mf=`echo "$mf" | sed -e 's/:.*$//'`
14525 # Check whether this is an Automake generated Makefile or not.
14526 # We used to match only the files named `Makefile.in', but
14527 # some people rename them; so instead we look at the file content.
14528 # Grep'ing the first line is not enough: some people post-process
14529 # each Makefile.in and add a new line on top of each file to say so.
14530 # Grep'ing the whole file is not good either: AIX grep has a line
14531 # limit of 2048, but all sed's we know have understand at least 4000.
14532 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14533 dirpart=`$as_dirname -- "$mf" ||
14534 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14535 X"$mf" : 'X\(//\)[^/]' \| \
14536 X"$mf" : 'X\(//\)$' \| \
14537 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14538 $as_echo X"$mf" |
14539 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14540 s//\1/
14543 /^X\(\/\/\)[^/].*/{
14544 s//\1/
14547 /^X\(\/\/\)$/{
14548 s//\1/
14551 /^X\(\/\).*/{
14552 s//\1/
14555 s/.*/./; q'`
14556 else
14557 continue
14559 # Extract the definition of DEPDIR, am__include, and am__quote
14560 # from the Makefile without running `make'.
14561 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14562 test -z "$DEPDIR" && continue
14563 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14564 test -z "am__include" && continue
14565 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14566 # When using ansi2knr, U may be empty or an underscore; expand it
14567 U=`sed -n 's/^U = //p' < "$mf"`
14568 # Find all dependency output files, they are included files with
14569 # $(DEPDIR) in their names. We invoke sed twice because it is the
14570 # simplest approach to changing $(DEPDIR) to its actual value in the
14571 # expansion.
14572 for file in `sed -n "
14573 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14574 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14575 # Make sure the directory exists.
14576 test -f "$dirpart/$file" && continue
14577 fdir=`$as_dirname -- "$file" ||
14578 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14579 X"$file" : 'X\(//\)[^/]' \| \
14580 X"$file" : 'X\(//\)$' \| \
14581 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14582 $as_echo X"$file" |
14583 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14584 s//\1/
14587 /^X\(\/\/\)[^/].*/{
14588 s//\1/
14591 /^X\(\/\/\)$/{
14592 s//\1/
14595 /^X\(\/\).*/{
14596 s//\1/
14599 s/.*/./; q'`
14600 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14601 # echo "creating $dirpart/$file"
14602 echo '# dummy' > "$dirpart/$file"
14603 done
14604 done
14607 "libtool":C)
14609 # See if we are running on zsh, and set the options which allow our
14610 # commands through without removal of \ escapes.
14611 if test -n "${ZSH_VERSION+set}" ; then
14612 setopt NO_GLOB_SUBST
14615 cfgfile="${ofile}T"
14616 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14617 $RM "$cfgfile"
14619 cat <<_LT_EOF >> "$cfgfile"
14620 #! $SHELL
14622 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14623 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14624 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14625 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14627 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14628 # 2006, 2007, 2008 Free Software Foundation, Inc.
14629 # Written by Gordon Matzigkeit, 1996
14631 # This file is part of GNU Libtool.
14633 # GNU Libtool is free software; you can redistribute it and/or
14634 # modify it under the terms of the GNU General Public License as
14635 # published by the Free Software Foundation; either version 2 of
14636 # the License, or (at your option) any later version.
14638 # As a special exception to the GNU General Public License,
14639 # if you distribute this file as part of a program or library that
14640 # is built using GNU Libtool, you may include this file under the
14641 # same distribution terms that you use for the rest of that program.
14643 # GNU Libtool is distributed in the hope that it will be useful,
14644 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14645 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14646 # GNU General Public License for more details.
14648 # You should have received a copy of the GNU General Public License
14649 # along with GNU Libtool; see the file COPYING. If not, a copy
14650 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14651 # obtained by writing to the Free Software Foundation, Inc.,
14652 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14655 # The names of the tagged configurations supported by this script.
14656 available_tags=""
14658 # ### BEGIN LIBTOOL CONFIG
14660 # Whether or not to build shared libraries.
14661 build_libtool_libs=$enable_shared
14663 # Which release of libtool.m4 was used?
14664 macro_version=$macro_version
14665 macro_revision=$macro_revision
14667 # Whether or not to build static libraries.
14668 build_old_libs=$enable_static
14670 # What type of objects to build.
14671 pic_mode=$pic_mode
14673 # Whether or not to optimize for fast installation.
14674 fast_install=$enable_fast_install
14676 # The host system.
14677 host_alias=$host_alias
14678 host=$host
14679 host_os=$host_os
14681 # The build system.
14682 build_alias=$build_alias
14683 build=$build
14684 build_os=$build_os
14686 # A sed program that does not truncate output.
14687 SED=$lt_SED
14689 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14690 Xsed="\$SED -e 1s/^X//"
14692 # A grep program that handles long lines.
14693 GREP=$lt_GREP
14695 # An ERE matcher.
14696 EGREP=$lt_EGREP
14698 # A literal string matcher.
14699 FGREP=$lt_FGREP
14701 # A BSD- or MS-compatible name lister.
14702 NM=$lt_NM
14704 # Whether we need soft or hard links.
14705 LN_S=$lt_LN_S
14707 # What is the maximum length of a command?
14708 max_cmd_len=$max_cmd_len
14710 # Object file suffix (normally "o").
14711 objext=$ac_objext
14713 # Executable file suffix (normally "").
14714 exeext=$exeext
14716 # whether the shell understands "unset".
14717 lt_unset=$lt_unset
14719 # turn spaces into newlines.
14720 SP2NL=$lt_lt_SP2NL
14722 # turn newlines into spaces.
14723 NL2SP=$lt_lt_NL2SP
14725 # How to create reloadable object files.
14726 reload_flag=$lt_reload_flag
14727 reload_cmds=$lt_reload_cmds
14729 # Method to check whether dependent libraries are shared objects.
14730 deplibs_check_method=$lt_deplibs_check_method
14732 # Command to use when deplibs_check_method == "file_magic".
14733 file_magic_cmd=$lt_file_magic_cmd
14735 # The archiver.
14736 AR=$lt_AR
14737 AR_FLAGS=$lt_AR_FLAGS
14739 # A symbol stripping program.
14740 STRIP=$lt_STRIP
14742 # Commands used to install an old-style archive.
14743 RANLIB=$lt_RANLIB
14744 old_postinstall_cmds=$lt_old_postinstall_cmds
14745 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14747 # A C compiler.
14748 LTCC=$lt_CC
14750 # LTCC compiler flags.
14751 LTCFLAGS=$lt_CFLAGS
14753 # Take the output of nm and produce a listing of raw symbols and C names.
14754 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14756 # Transform the output of nm in a proper C declaration.
14757 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14759 # Transform the output of nm in a C name address pair.
14760 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14762 # Transform the output of nm in a C name address pair when lib prefix is needed.
14763 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14765 # The name of the directory that contains temporary libtool files.
14766 objdir=$objdir
14768 # Shell to use when invoking shell scripts.
14769 SHELL=$lt_SHELL
14771 # An echo program that does not interpret backslashes.
14772 ECHO=$lt_ECHO
14774 # Used to examine libraries when file_magic_cmd begins with "file".
14775 MAGIC_CMD=$MAGIC_CMD
14777 # Must we lock files when doing compilation?
14778 need_locks=$lt_need_locks
14780 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14781 DSYMUTIL=$lt_DSYMUTIL
14783 # Tool to change global to local symbols on Mac OS X.
14784 NMEDIT=$lt_NMEDIT
14786 # Tool to manipulate fat objects and archives on Mac OS X.
14787 LIPO=$lt_LIPO
14789 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14790 OTOOL=$lt_OTOOL
14792 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14793 OTOOL64=$lt_OTOOL64
14795 # Old archive suffix (normally "a").
14796 libext=$libext
14798 # Shared library suffix (normally ".so").
14799 shrext_cmds=$lt_shrext_cmds
14801 # The commands to extract the exported symbol list from a shared archive.
14802 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14804 # Variables whose values should be saved in libtool wrapper scripts and
14805 # restored at link time.
14806 variables_saved_for_relink=$lt_variables_saved_for_relink
14808 # Do we need the "lib" prefix for modules?
14809 need_lib_prefix=$need_lib_prefix
14811 # Do we need a version for libraries?
14812 need_version=$need_version
14814 # Library versioning type.
14815 version_type=$version_type
14817 # Shared library runtime path variable.
14818 runpath_var=$runpath_var
14820 # Shared library path variable.
14821 shlibpath_var=$shlibpath_var
14823 # Is shlibpath searched before the hard-coded library search path?
14824 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14826 # Format of library name prefix.
14827 libname_spec=$lt_libname_spec
14829 # List of archive names. First name is the real one, the rest are links.
14830 # The last name is the one that the linker finds with -lNAME
14831 library_names_spec=$lt_library_names_spec
14833 # The coded name of the library, if different from the real name.
14834 soname_spec=$lt_soname_spec
14836 # Command to use after installation of a shared archive.
14837 postinstall_cmds=$lt_postinstall_cmds
14839 # Command to use after uninstallation of a shared archive.
14840 postuninstall_cmds=$lt_postuninstall_cmds
14842 # Commands used to finish a libtool library installation in a directory.
14843 finish_cmds=$lt_finish_cmds
14845 # As "finish_cmds", except a single script fragment to be evaled but
14846 # not shown.
14847 finish_eval=$lt_finish_eval
14849 # Whether we should hardcode library paths into libraries.
14850 hardcode_into_libs=$hardcode_into_libs
14852 # Compile-time system search path for libraries.
14853 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14855 # Run-time system search path for libraries.
14856 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14858 # Whether dlopen is supported.
14859 dlopen_support=$enable_dlopen
14861 # Whether dlopen of programs is supported.
14862 dlopen_self=$enable_dlopen_self
14864 # Whether dlopen of statically linked programs is supported.
14865 dlopen_self_static=$enable_dlopen_self_static
14867 # Commands to strip libraries.
14868 old_striplib=$lt_old_striplib
14869 striplib=$lt_striplib
14872 # The linker used to build libraries.
14873 LD=$lt_LD
14875 # Commands used to build an old-style archive.
14876 old_archive_cmds=$lt_old_archive_cmds
14878 # A language specific compiler.
14879 CC=$lt_compiler
14881 # Is the compiler the GNU compiler?
14882 with_gcc=$GCC
14884 # Compiler flag to turn off builtin functions.
14885 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14887 # How to pass a linker flag through the compiler.
14888 wl=$lt_lt_prog_compiler_wl
14890 # Additional compiler flags for building library objects.
14891 pic_flag=$lt_lt_prog_compiler_pic
14893 # Compiler flag to prevent dynamic linking.
14894 link_static_flag=$lt_lt_prog_compiler_static
14896 # Does compiler simultaneously support -c and -o options?
14897 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14899 # Whether or not to add -lc for building shared libraries.
14900 build_libtool_need_lc=$archive_cmds_need_lc
14902 # Whether or not to disallow shared libs when runtime libs are static.
14903 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14905 # Compiler flag to allow reflexive dlopens.
14906 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14908 # Compiler flag to generate shared objects directly from archives.
14909 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14911 # Whether the compiler copes with passing no objects directly.
14912 compiler_needs_object=$lt_compiler_needs_object
14914 # Create an old-style archive from a shared archive.
14915 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14917 # Create a temporary old-style archive to link instead of a shared archive.
14918 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14920 # Commands used to build a shared archive.
14921 archive_cmds=$lt_archive_cmds
14922 archive_expsym_cmds=$lt_archive_expsym_cmds
14924 # Commands used to build a loadable module if different from building
14925 # a shared archive.
14926 module_cmds=$lt_module_cmds
14927 module_expsym_cmds=$lt_module_expsym_cmds
14929 # Whether we are building with GNU ld or not.
14930 with_gnu_ld=$lt_with_gnu_ld
14932 # Flag that allows shared libraries with undefined symbols to be built.
14933 allow_undefined_flag=$lt_allow_undefined_flag
14935 # Flag that enforces no undefined symbols.
14936 no_undefined_flag=$lt_no_undefined_flag
14938 # Flag to hardcode \$libdir into a binary during linking.
14939 # This must work even if \$libdir does not exist
14940 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14942 # If ld is used when linking, flag to hardcode \$libdir into a binary
14943 # during linking. This must work even if \$libdir does not exist.
14944 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14946 # Whether we need a single "-rpath" flag with a separated argument.
14947 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14949 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14950 # DIR into the resulting binary.
14951 hardcode_direct=$hardcode_direct
14953 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14954 # DIR into the resulting binary and the resulting library dependency is
14955 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14956 # library is relocated.
14957 hardcode_direct_absolute=$hardcode_direct_absolute
14959 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14960 # into the resulting binary.
14961 hardcode_minus_L=$hardcode_minus_L
14963 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14964 # into the resulting binary.
14965 hardcode_shlibpath_var=$hardcode_shlibpath_var
14967 # Set to "yes" if building a shared library automatically hardcodes DIR
14968 # into the library and all subsequent libraries and executables linked
14969 # against it.
14970 hardcode_automatic=$hardcode_automatic
14972 # Set to yes if linker adds runtime paths of dependent libraries
14973 # to runtime path list.
14974 inherit_rpath=$inherit_rpath
14976 # Whether libtool must link a program against all its dependency libraries.
14977 link_all_deplibs=$link_all_deplibs
14979 # Fix the shell variable \$srcfile for the compiler.
14980 fix_srcfile_path=$lt_fix_srcfile_path
14982 # Set to "yes" if exported symbols are required.
14983 always_export_symbols=$always_export_symbols
14985 # The commands to list exported symbols.
14986 export_symbols_cmds=$lt_export_symbols_cmds
14988 # Symbols that should not be listed in the preloaded symbols.
14989 exclude_expsyms=$lt_exclude_expsyms
14991 # Symbols that must always be exported.
14992 include_expsyms=$lt_include_expsyms
14994 # Commands necessary for linking programs (against libraries) with templates.
14995 prelink_cmds=$lt_prelink_cmds
14997 # Specify filename containing input files.
14998 file_list_spec=$lt_file_list_spec
15000 # How to hardcode a shared library path into an executable.
15001 hardcode_action=$hardcode_action
15003 # ### END LIBTOOL CONFIG
15005 _LT_EOF
15007 case $host_os in
15008 aix3*)
15009 cat <<\_LT_EOF >> "$cfgfile"
15010 # AIX sometimes has problems with the GCC collect2 program. For some
15011 # reason, if we set the COLLECT_NAMES environment variable, the problems
15012 # vanish in a puff of smoke.
15013 if test "X${COLLECT_NAMES+set}" != Xset; then
15014 COLLECT_NAMES=
15015 export COLLECT_NAMES
15017 _LT_EOF
15019 esac
15022 ltmain="$ac_aux_dir/ltmain.sh"
15025 # We use sed instead of cat because bash on DJGPP gets confused if
15026 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15027 # text mode, it properly converts lines to CR/LF. This bash problem
15028 # is reportedly fixed, but why not run on old versions too?
15029 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15030 || (rm -f "$cfgfile"; exit 1)
15032 case $xsi_shell in
15033 yes)
15034 cat << \_LT_EOF >> "$cfgfile"
15036 # func_dirname file append nondir_replacement
15037 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15038 # otherwise set result to NONDIR_REPLACEMENT.
15039 func_dirname ()
15041 case ${1} in
15042 */*) func_dirname_result="${1%/*}${2}" ;;
15043 * ) func_dirname_result="${3}" ;;
15044 esac
15047 # func_basename file
15048 func_basename ()
15050 func_basename_result="${1##*/}"
15053 # func_dirname_and_basename file append nondir_replacement
15054 # perform func_basename and func_dirname in a single function
15055 # call:
15056 # dirname: Compute the dirname of FILE. If nonempty,
15057 # add APPEND to the result, otherwise set result
15058 # to NONDIR_REPLACEMENT.
15059 # value returned in "$func_dirname_result"
15060 # basename: Compute filename of FILE.
15061 # value retuned in "$func_basename_result"
15062 # Implementation must be kept synchronized with func_dirname
15063 # and func_basename. For efficiency, we do not delegate to
15064 # those functions but instead duplicate the functionality here.
15065 func_dirname_and_basename ()
15067 case ${1} in
15068 */*) func_dirname_result="${1%/*}${2}" ;;
15069 * ) func_dirname_result="${3}" ;;
15070 esac
15071 func_basename_result="${1##*/}"
15074 # func_stripname prefix suffix name
15075 # strip PREFIX and SUFFIX off of NAME.
15076 # PREFIX and SUFFIX must not contain globbing or regex special
15077 # characters, hashes, percent signs, but SUFFIX may contain a leading
15078 # dot (in which case that matches only a dot).
15079 func_stripname ()
15081 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15082 # positional parameters, so assign one to ordinary parameter first.
15083 func_stripname_result=${3}
15084 func_stripname_result=${func_stripname_result#"${1}"}
15085 func_stripname_result=${func_stripname_result%"${2}"}
15088 # func_opt_split
15089 func_opt_split ()
15091 func_opt_split_opt=${1%%=*}
15092 func_opt_split_arg=${1#*=}
15095 # func_lo2o object
15096 func_lo2o ()
15098 case ${1} in
15099 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15100 *) func_lo2o_result=${1} ;;
15101 esac
15104 # func_xform libobj-or-source
15105 func_xform ()
15107 func_xform_result=${1%.*}.lo
15110 # func_arith arithmetic-term...
15111 func_arith ()
15113 func_arith_result=$(( $* ))
15116 # func_len string
15117 # STRING may not start with a hyphen.
15118 func_len ()
15120 func_len_result=${#1}
15123 _LT_EOF
15125 *) # Bourne compatible functions.
15126 cat << \_LT_EOF >> "$cfgfile"
15128 # func_dirname file append nondir_replacement
15129 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15130 # otherwise set result to NONDIR_REPLACEMENT.
15131 func_dirname ()
15133 # Extract subdirectory from the argument.
15134 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15135 if test "X$func_dirname_result" = "X${1}"; then
15136 func_dirname_result="${3}"
15137 else
15138 func_dirname_result="$func_dirname_result${2}"
15142 # func_basename file
15143 func_basename ()
15145 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15149 # func_stripname prefix suffix name
15150 # strip PREFIX and SUFFIX off of NAME.
15151 # PREFIX and SUFFIX must not contain globbing or regex special
15152 # characters, hashes, percent signs, but SUFFIX may contain a leading
15153 # dot (in which case that matches only a dot).
15154 # func_strip_suffix prefix name
15155 func_stripname ()
15157 case ${2} in
15158 .*) func_stripname_result=`$ECHO "X${3}" \
15159 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15160 *) func_stripname_result=`$ECHO "X${3}" \
15161 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15162 esac
15165 # sed scripts:
15166 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15167 my_sed_long_arg='1s/^-[^=]*=//'
15169 # func_opt_split
15170 func_opt_split ()
15172 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15173 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15176 # func_lo2o object
15177 func_lo2o ()
15179 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15182 # func_xform libobj-or-source
15183 func_xform ()
15185 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15188 # func_arith arithmetic-term...
15189 func_arith ()
15191 func_arith_result=`expr "$@"`
15194 # func_len string
15195 # STRING may not start with a hyphen.
15196 func_len ()
15198 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15201 _LT_EOF
15202 esac
15204 case $lt_shell_append in
15205 yes)
15206 cat << \_LT_EOF >> "$cfgfile"
15208 # func_append var value
15209 # Append VALUE to the end of shell variable VAR.
15210 func_append ()
15212 eval "$1+=\$2"
15214 _LT_EOF
15217 cat << \_LT_EOF >> "$cfgfile"
15219 # func_append var value
15220 # Append VALUE to the end of shell variable VAR.
15221 func_append ()
15223 eval "$1=\$$1\$2"
15226 _LT_EOF
15228 esac
15231 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15232 || (rm -f "$cfgfile"; exit 1)
15234 mv -f "$cfgfile" "$ofile" ||
15235 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15236 chmod +x "$ofile"
15240 esac
15241 done # for ac_tag
15244 as_fn_exit 0
15245 _ACEOF
15246 ac_clean_files=$ac_clean_files_save
15248 test $ac_write_fail = 0 ||
15249 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15252 # configure is writing to config.log, and then calls config.status.
15253 # config.status does its own redirection, appending to config.log.
15254 # Unfortunately, on DOS this fails, as config.log is still kept open
15255 # by configure, so config.status won't be able to write to it; its
15256 # output is simply discarded. So we exec the FD to /dev/null,
15257 # effectively closing config.log, so it can be properly (re)opened and
15258 # appended to by config.status. When coming back to configure, we
15259 # need to make the FD available again.
15260 if test "$no_create" != yes; then
15261 ac_cs_success=:
15262 ac_config_status_args=
15263 test "$silent" = yes &&
15264 ac_config_status_args="$ac_config_status_args --quiet"
15265 exec 5>/dev/null
15266 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15267 exec 5>>config.log
15268 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15269 # would make configure fail if this is the last instruction.
15270 $ac_cs_success || as_fn_exit 1
15272 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15274 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}