Imported Upstream version 20091031
[ltp-debian.git] / configure
blob10494d287270b5147c679e2abf67ddb5ea730502
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for ltp 20091031.
5 # Report bugs to <ltp-results@lists.sourceforge.net>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 as_nl='
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86 else
87 as_unset=false
91 # IFS
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" "" $as_nl"
98 # Find who we are. Look in the path if we contain no directory separator.
99 case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115 as_myself=$0
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
139 as_expr=expr
140 else
141 as_expr=false
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145 as_basename=basename
146 else
147 as_basename=false
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
161 /^X\/\(\/\/\)$/{
162 s//\1/
165 /^X\/\(\/\).*/{
166 s//\1/
169 s/.*/./; q'`
171 # CDPATH.
172 $as_unset CDPATH
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178 else
179 as_have_required=no
182 if test $as_have_required = yes && (eval ":
183 (as_func_return () {
184 (exit \$1)
186 as_func_success () {
187 as_func_return 0
189 as_func_failure () {
190 as_func_return 1
192 as_func_ret_success () {
193 return 0
195 as_func_ret_failure () {
196 return 1
199 exitcode=0
200 if as_func_success; then
202 else
203 exitcode=1
204 echo as_func_success failed.
207 if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
212 if as_func_ret_success; then
214 else
215 exitcode=1
216 echo as_func_ret_success failed.
219 if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 else
227 exitcode=1
228 echo positional parameters were not saved.
231 test \$exitcode = 0) || { (exit 1); exit 1; }
234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
240 else
241 as_candidate_shells=
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
247 case $as_dir in
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;;
252 esac
253 done
254 IFS=$as_save_IFS
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 _ASEOF
278 }; then
279 CONFIG_SHELL=$as_shell
280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289 else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292 esac
298 (as_func_return () {
299 (exit $1)
301 as_func_success () {
302 as_func_return 0
304 as_func_failure () {
305 as_func_return 1
307 as_func_ret_success () {
308 return 0
310 as_func_ret_failure () {
311 return 1
314 exitcode=0
315 if as_func_success; then
317 else
318 exitcode=1
319 echo as_func_success failed.
322 if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
327 if as_func_ret_success; then
329 else
330 exitcode=1
331 echo as_func_ret_success failed.
334 if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
341 else
342 exitcode=1
343 echo positional parameters were not saved.
346 test $exitcode = 0) || { (exit 1); exit 1; }
349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
354 _ASEOF
355 }; then
356 break
361 done
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 done
367 export CONFIG_SHELL
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
387 (eval "as_func_return () {
388 (exit \$1)
390 as_func_success () {
391 as_func_return 0
393 as_func_failure () {
394 as_func_return 1
396 as_func_ret_success () {
397 return 0
399 as_func_ret_failure () {
400 return 1
403 exitcode=0
404 if as_func_success; then
406 else
407 exitcode=1
408 echo as_func_success failed.
411 if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
416 if as_func_ret_success; then
418 else
419 exitcode=1
420 echo as_func_ret_success failed.
423 if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 else
431 exitcode=1
432 echo positional parameters were not saved.
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n '
462 /[$]LINENO/=
463 ' <$as_myself |
464 sed '
465 s/[$]LINENO.*/&-/
466 t lineno
468 :lineno
470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472 t loop
473 s/-\n.*//
474 ' >$as_me.lineno &&
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
483 # Exit status is that of the last command.
484 exit
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490 else
491 as_dirname=false
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497 case `echo 'x\c'` in
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
499 *) ECHO_C='\c';;
500 esac;;
502 ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
506 as_expr=expr
507 else
508 as_expr=false
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514 else
515 rm -f conf$$.dir
516 mkdir conf$$.dir 2>/dev/null
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
520 as_ln_s='ln -s'
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 as_ln_s='cp -p'
527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln
529 else
530 as_ln_s='cp -p'
532 else
533 as_ln_s='cp -p'
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
538 if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540 else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
545 if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547 else
548 if ls -dL / >/dev/null 2>&1; then
549 as_ls_L_option=L
550 else
551 as_ls_L_option=
553 as_test_x='
554 eval sh -c '\''
555 if test -d "$1"; then
556 test -d "$1/.";
557 else
558 case $1 in
559 -*)set "./$1";;
560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
566 as_executable_p=$as_test_x
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
576 exec 7<&0 </dev/null 6>&1
578 # Name of the host.
579 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
580 # so uname gets run too.
581 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
584 # Initializations.
586 ac_default_prefix=/usr/local
587 ac_clean_files=
588 ac_config_libobj_dir=.
589 LIBOBJS=
590 cross_compiling=no
591 subdirs=
592 MFLAGS=
593 MAKEFLAGS=
594 SHELL=${CONFIG_SHELL-/bin/sh}
596 # Identity of this package.
597 PACKAGE_NAME='ltp'
598 PACKAGE_TARNAME='ltp'
599 PACKAGE_VERSION='20091031'
600 PACKAGE_STRING='ltp 20091031'
601 PACKAGE_BUGREPORT='ltp-results@lists.sourceforge.net'
603 ac_default_prefix=/opt/ltp
604 ac_header_list=
605 # Factoring default headers for most tests.
606 ac_includes_default="\
607 #include <stdio.h>
608 #ifdef HAVE_SYS_TYPES_H
609 # include <sys/types.h>
610 #endif
611 #ifdef HAVE_SYS_STAT_H
612 # include <sys/stat.h>
613 #endif
614 #ifdef STDC_HEADERS
615 # include <stdlib.h>
616 # include <stddef.h>
617 #else
618 # ifdef HAVE_STDLIB_H
619 # include <stdlib.h>
620 # endif
621 #endif
622 #ifdef HAVE_STRING_H
623 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
624 # include <memory.h>
625 # endif
626 # include <string.h>
627 #endif
628 #ifdef HAVE_STRINGS_H
629 # include <strings.h>
630 #endif
631 #ifdef HAVE_INTTYPES_H
632 # include <inttypes.h>
633 #endif
634 #ifdef HAVE_STDINT_H
635 # include <stdint.h>
636 #endif
637 #ifdef HAVE_UNISTD_H
638 # include <unistd.h>
639 #endif"
641 enable_option_checking=no
642 ac_func_list=
643 ac_subst_vars='LTLIBOBJS
644 LIBOBJS
645 NUMA_LIBS
646 AIO_LIBS
647 SELINUX_LIBS
648 CRYPTO_LIBS
649 subdirs
650 EGREP
651 GREP
653 YFLAGS
654 YACC
655 RANLIB
656 LEXLIB
657 LEX_OUTPUT_ROOT
660 am__fastdepCC_FALSE
661 am__fastdepCC_TRUE
662 CCDEPMODE
663 AMDEPBACKSLASH
664 AMDEP_FALSE
665 AMDEP_TRUE
666 am__quote
667 am__include
668 DEPDIR
669 OBJEXT
670 EXEEXT
671 ac_ct_CC
672 CPPFLAGS
673 LDFLAGS
674 CFLAGS
676 host_os
677 host_vendor
678 host_cpu
679 host
680 build_os
681 build_vendor
682 build_cpu
683 build
684 CROSS_COMPILATION_FALSE
685 CROSS_COMPILATION_TRUE
686 am__untar
687 am__tar
688 AMTAR
689 am__leading_dot
690 SET_MAKE
692 mkdir_p
693 MKDIR_P
694 INSTALL_STRIP_PROGRAM
695 STRIP
696 install_sh
697 MAKEINFO
698 AUTOHEADER
699 AUTOMAKE
700 AUTOCONF
701 ACLOCAL
702 VERSION
703 PACKAGE
704 CYGPATH_W
705 am__isrc
706 INSTALL_DATA
707 INSTALL_SCRIPT
708 INSTALL_PROGRAM
709 target_alias
710 host_alias
711 build_alias
712 LIBS
713 ECHO_T
714 ECHO_N
715 ECHO_C
716 DEFS
717 mandir
718 localedir
719 libdir
720 psdir
721 pdfdir
722 dvidir
723 htmldir
724 infodir
725 docdir
726 oldincludedir
727 includedir
728 localstatedir
729 sharedstatedir
730 sysconfdir
731 datadir
732 datarootdir
733 libexecdir
734 sbindir
735 bindir
736 program_transform_name
737 prefix
738 exec_prefix
739 PACKAGE_BUGREPORT
740 PACKAGE_STRING
741 PACKAGE_VERSION
742 PACKAGE_TARNAME
743 PACKAGE_NAME
744 PATH_SEPARATOR
745 SHELL
746 CAP_LIBS'
747 ac_subst_files=''
748 ac_user_opts='
749 enable_option_checking
750 enable_dependency_tracking
752 ac_precious_vars='build_alias
753 host_alias
754 target_alias
756 CFLAGS
757 LDFLAGS
758 LIBS
759 CPPFLAGS
760 YACC
761 YFLAGS
762 CPP'
763 ac_subdirs_all=' \
764 testcases/kernel/syscalls/pcllib/ \
767 # Initialize some variables set by options.
768 ac_init_help=
769 ac_init_version=false
770 ac_unrecognized_opts=
771 ac_unrecognized_sep=
772 # The variables have the same names as the options, with
773 # dashes changed to underlines.
774 cache_file=/dev/null
775 exec_prefix=NONE
776 no_create=
777 no_recursion=
778 prefix=NONE
779 program_prefix=NONE
780 program_suffix=NONE
781 program_transform_name=s,x,x,
782 silent=
783 site=
784 srcdir=
785 verbose=
786 x_includes=NONE
787 x_libraries=NONE
789 # Installation directory options.
790 # These are left unexpanded so users can "make install exec_prefix=/foo"
791 # and all the variables that are supposed to be based on exec_prefix
792 # by default will actually change.
793 # Use braces instead of parens because sh, perl, etc. also accept them.
794 # (The list follows the same order as the GNU Coding Standards.)
795 bindir='${exec_prefix}/bin'
796 sbindir='${exec_prefix}/sbin'
797 libexecdir='${exec_prefix}/libexec'
798 datarootdir='${prefix}/share'
799 datadir='${datarootdir}'
800 sysconfdir='${prefix}/etc'
801 sharedstatedir='${prefix}/com'
802 localstatedir='${prefix}/var'
803 includedir='${prefix}/include'
804 oldincludedir='/usr/include'
805 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
806 infodir='${datarootdir}/info'
807 htmldir='${docdir}'
808 dvidir='${docdir}'
809 pdfdir='${docdir}'
810 psdir='${docdir}'
811 libdir='${exec_prefix}/lib'
812 localedir='${datarootdir}/locale'
813 mandir='${datarootdir}/man'
815 ac_prev=
816 ac_dashdash=
817 for ac_option
819 # If the previous option needs an argument, assign it.
820 if test -n "$ac_prev"; then
821 eval $ac_prev=\$ac_option
822 ac_prev=
823 continue
826 case $ac_option in
827 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
828 *) ac_optarg=yes ;;
829 esac
831 # Accept the important Cygnus configure options, so we can diagnose typos.
833 case $ac_dashdash$ac_option in
835 ac_dashdash=yes ;;
837 -bindir | --bindir | --bindi | --bind | --bin | --bi)
838 ac_prev=bindir ;;
839 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
840 bindir=$ac_optarg ;;
842 -build | --build | --buil | --bui | --bu)
843 ac_prev=build_alias ;;
844 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
845 build_alias=$ac_optarg ;;
847 -cache-file | --cache-file | --cache-fil | --cache-fi \
848 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
849 ac_prev=cache_file ;;
850 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
851 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
852 cache_file=$ac_optarg ;;
854 --config-cache | -C)
855 cache_file=config.cache ;;
857 -datadir | --datadir | --datadi | --datad)
858 ac_prev=datadir ;;
859 -datadir=* | --datadir=* | --datadi=* | --datad=*)
860 datadir=$ac_optarg ;;
862 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
863 | --dataroo | --dataro | --datar)
864 ac_prev=datarootdir ;;
865 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
866 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
867 datarootdir=$ac_optarg ;;
869 -disable-* | --disable-*)
870 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
871 # Reject names that are not valid shell variable names.
872 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
873 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
874 { (exit 1); exit 1; }; }
875 ac_useropt_orig=$ac_useropt
876 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
877 case $ac_user_opts in
879 "enable_$ac_useropt"
880 "*) ;;
881 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
882 ac_unrecognized_sep=', ';;
883 esac
884 eval enable_$ac_useropt=no ;;
886 -docdir | --docdir | --docdi | --doc | --do)
887 ac_prev=docdir ;;
888 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
889 docdir=$ac_optarg ;;
891 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
892 ac_prev=dvidir ;;
893 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
894 dvidir=$ac_optarg ;;
896 -enable-* | --enable-*)
897 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
898 # Reject names that are not valid shell variable names.
899 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
900 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
901 { (exit 1); exit 1; }; }
902 ac_useropt_orig=$ac_useropt
903 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
904 case $ac_user_opts in
906 "enable_$ac_useropt"
907 "*) ;;
908 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
909 ac_unrecognized_sep=', ';;
910 esac
911 eval enable_$ac_useropt=\$ac_optarg ;;
913 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
914 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
915 | --exec | --exe | --ex)
916 ac_prev=exec_prefix ;;
917 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
918 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
919 | --exec=* | --exe=* | --ex=*)
920 exec_prefix=$ac_optarg ;;
922 -gas | --gas | --ga | --g)
923 # Obsolete; use --with-gas.
924 with_gas=yes ;;
926 -help | --help | --hel | --he | -h)
927 ac_init_help=long ;;
928 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
929 ac_init_help=recursive ;;
930 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
931 ac_init_help=short ;;
933 -host | --host | --hos | --ho)
934 ac_prev=host_alias ;;
935 -host=* | --host=* | --hos=* | --ho=*)
936 host_alias=$ac_optarg ;;
938 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
939 ac_prev=htmldir ;;
940 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
941 | --ht=*)
942 htmldir=$ac_optarg ;;
944 -includedir | --includedir | --includedi | --included | --include \
945 | --includ | --inclu | --incl | --inc)
946 ac_prev=includedir ;;
947 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
948 | --includ=* | --inclu=* | --incl=* | --inc=*)
949 includedir=$ac_optarg ;;
951 -infodir | --infodir | --infodi | --infod | --info | --inf)
952 ac_prev=infodir ;;
953 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
954 infodir=$ac_optarg ;;
956 -libdir | --libdir | --libdi | --libd)
957 ac_prev=libdir ;;
958 -libdir=* | --libdir=* | --libdi=* | --libd=*)
959 libdir=$ac_optarg ;;
961 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
962 | --libexe | --libex | --libe)
963 ac_prev=libexecdir ;;
964 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
965 | --libexe=* | --libex=* | --libe=*)
966 libexecdir=$ac_optarg ;;
968 -localedir | --localedir | --localedi | --localed | --locale)
969 ac_prev=localedir ;;
970 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
971 localedir=$ac_optarg ;;
973 -localstatedir | --localstatedir | --localstatedi | --localstated \
974 | --localstate | --localstat | --localsta | --localst | --locals)
975 ac_prev=localstatedir ;;
976 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
977 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
978 localstatedir=$ac_optarg ;;
980 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
981 ac_prev=mandir ;;
982 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
983 mandir=$ac_optarg ;;
985 -nfp | --nfp | --nf)
986 # Obsolete; use --without-fp.
987 with_fp=no ;;
989 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
990 | --no-cr | --no-c | -n)
991 no_create=yes ;;
993 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
994 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
995 no_recursion=yes ;;
997 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
998 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
999 | --oldin | --oldi | --old | --ol | --o)
1000 ac_prev=oldincludedir ;;
1001 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1002 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1003 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1004 oldincludedir=$ac_optarg ;;
1006 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1007 ac_prev=prefix ;;
1008 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1009 prefix=$ac_optarg ;;
1011 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1012 | --program-pre | --program-pr | --program-p)
1013 ac_prev=program_prefix ;;
1014 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1015 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1016 program_prefix=$ac_optarg ;;
1018 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1019 | --program-suf | --program-su | --program-s)
1020 ac_prev=program_suffix ;;
1021 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1022 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1023 program_suffix=$ac_optarg ;;
1025 -program-transform-name | --program-transform-name \
1026 | --program-transform-nam | --program-transform-na \
1027 | --program-transform-n | --program-transform- \
1028 | --program-transform | --program-transfor \
1029 | --program-transfo | --program-transf \
1030 | --program-trans | --program-tran \
1031 | --progr-tra | --program-tr | --program-t)
1032 ac_prev=program_transform_name ;;
1033 -program-transform-name=* | --program-transform-name=* \
1034 | --program-transform-nam=* | --program-transform-na=* \
1035 | --program-transform-n=* | --program-transform-=* \
1036 | --program-transform=* | --program-transfor=* \
1037 | --program-transfo=* | --program-transf=* \
1038 | --program-trans=* | --program-tran=* \
1039 | --progr-tra=* | --program-tr=* | --program-t=*)
1040 program_transform_name=$ac_optarg ;;
1042 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1043 ac_prev=pdfdir ;;
1044 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1045 pdfdir=$ac_optarg ;;
1047 -psdir | --psdir | --psdi | --psd | --ps)
1048 ac_prev=psdir ;;
1049 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1050 psdir=$ac_optarg ;;
1052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1053 | -silent | --silent | --silen | --sile | --sil)
1054 silent=yes ;;
1056 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1057 ac_prev=sbindir ;;
1058 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1059 | --sbi=* | --sb=*)
1060 sbindir=$ac_optarg ;;
1062 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1063 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1064 | --sharedst | --shareds | --shared | --share | --shar \
1065 | --sha | --sh)
1066 ac_prev=sharedstatedir ;;
1067 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1068 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1069 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1070 | --sha=* | --sh=*)
1071 sharedstatedir=$ac_optarg ;;
1073 -site | --site | --sit)
1074 ac_prev=site ;;
1075 -site=* | --site=* | --sit=*)
1076 site=$ac_optarg ;;
1078 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1079 ac_prev=srcdir ;;
1080 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1081 srcdir=$ac_optarg ;;
1083 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1084 | --syscon | --sysco | --sysc | --sys | --sy)
1085 ac_prev=sysconfdir ;;
1086 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1087 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1088 sysconfdir=$ac_optarg ;;
1090 -target | --target | --targe | --targ | --tar | --ta | --t)
1091 ac_prev=target_alias ;;
1092 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1093 target_alias=$ac_optarg ;;
1095 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1096 verbose=yes ;;
1098 -version | --version | --versio | --versi | --vers | -V)
1099 ac_init_version=: ;;
1101 -with-* | --with-*)
1102 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1106 { (exit 1); exit 1; }; }
1107 ac_useropt_orig=$ac_useropt
1108 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109 case $ac_user_opts in
1111 "with_$ac_useropt"
1112 "*) ;;
1113 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1114 ac_unrecognized_sep=', ';;
1115 esac
1116 eval with_$ac_useropt=\$ac_optarg ;;
1118 -without-* | --without-*)
1119 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1120 # Reject names that are not valid shell variable names.
1121 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1122 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1123 { (exit 1); exit 1; }; }
1124 ac_useropt_orig=$ac_useropt
1125 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126 case $ac_user_opts in
1128 "with_$ac_useropt"
1129 "*) ;;
1130 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1131 ac_unrecognized_sep=', ';;
1132 esac
1133 eval with_$ac_useropt=no ;;
1135 --x)
1136 # Obsolete; use --with-x.
1137 with_x=yes ;;
1139 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1140 | --x-incl | --x-inc | --x-in | --x-i)
1141 ac_prev=x_includes ;;
1142 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1143 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1144 x_includes=$ac_optarg ;;
1146 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1147 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1148 ac_prev=x_libraries ;;
1149 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1150 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1151 x_libraries=$ac_optarg ;;
1153 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1154 Try \`$0 --help' for more information." >&2
1155 { (exit 1); exit 1; }; }
1158 *=*)
1159 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1162 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1163 { (exit 1); exit 1; }; }
1164 eval $ac_envvar=\$ac_optarg
1165 export $ac_envvar ;;
1168 # FIXME: should be removed in autoconf 3.0.
1169 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1170 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1171 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1172 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1175 esac
1176 done
1178 if test -n "$ac_prev"; then
1179 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1180 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1181 { (exit 1); exit 1; }; }
1184 if test -n "$ac_unrecognized_opts"; then
1185 case $enable_option_checking in
1186 no) ;;
1187 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1188 { (exit 1); exit 1; }; } ;;
1189 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1190 esac
1193 # Check all directory arguments for consistency.
1194 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1195 datadir sysconfdir sharedstatedir localstatedir includedir \
1196 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1197 libdir localedir mandir
1199 eval ac_val=\$$ac_var
1200 # Remove trailing slashes.
1201 case $ac_val in
1202 */ )
1203 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1204 eval $ac_var=\$ac_val;;
1205 esac
1206 # Be sure to have absolute directory names.
1207 case $ac_val in
1208 [\\/$]* | ?:[\\/]* ) continue;;
1209 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1210 esac
1211 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1212 { (exit 1); exit 1; }; }
1213 done
1215 # There might be people who depend on the old broken behavior: `$host'
1216 # used to hold the argument of --host etc.
1217 # FIXME: To remove some day.
1218 build=$build_alias
1219 host=$host_alias
1220 target=$target_alias
1222 # FIXME: To remove some day.
1223 if test "x$host_alias" != x; then
1224 if test "x$build_alias" = x; then
1225 cross_compiling=maybe
1226 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1227 If a cross compiler is detected then cross compile mode will be used." >&2
1228 elif test "x$build_alias" != "x$host_alias"; then
1229 cross_compiling=yes
1233 ac_tool_prefix=
1234 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1236 test "$silent" = yes && exec 6>/dev/null
1239 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1240 ac_ls_di=`ls -di .` &&
1241 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1242 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1243 { (exit 1); exit 1; }; }
1244 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1245 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1246 { (exit 1); exit 1; }; }
1249 # Find the source files, if location was not specified.
1250 if test -z "$srcdir"; then
1251 ac_srcdir_defaulted=yes
1252 # Try the directory containing this script, then the parent directory.
1253 ac_confdir=`$as_dirname -- "$as_myself" ||
1254 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1255 X"$as_myself" : 'X\(//\)[^/]' \| \
1256 X"$as_myself" : 'X\(//\)$' \| \
1257 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1258 $as_echo X"$as_myself" |
1259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1260 s//\1/
1263 /^X\(\/\/\)[^/].*/{
1264 s//\1/
1267 /^X\(\/\/\)$/{
1268 s//\1/
1271 /^X\(\/\).*/{
1272 s//\1/
1275 s/.*/./; q'`
1276 srcdir=$ac_confdir
1277 if test ! -r "$srcdir/$ac_unique_file"; then
1278 srcdir=..
1280 else
1281 ac_srcdir_defaulted=no
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1284 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1285 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1286 { (exit 1); exit 1; }; }
1288 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1289 ac_abs_confdir=`(
1290 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1291 { (exit 1); exit 1; }; }
1292 pwd)`
1293 # When building in place, set srcdir=.
1294 if test "$ac_abs_confdir" = "$ac_pwd"; then
1295 srcdir=.
1297 # Remove unnecessary trailing slashes from srcdir.
1298 # Double slashes in file names in object file debugging info
1299 # mess up M-x gdb in Emacs.
1300 case $srcdir in
1301 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1302 esac
1303 for ac_var in $ac_precious_vars; do
1304 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1305 eval ac_env_${ac_var}_value=\$${ac_var}
1306 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1307 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1308 done
1311 # Report the --help message.
1313 if test "$ac_init_help" = "long"; then
1314 # Omit some internal or obsolete options to make the list less imposing.
1315 # This message is too long to be a string in the A/UX 3.1 sh.
1316 cat <<_ACEOF
1317 \`configure' configures ltp 20091031 to adapt to many kinds of systems.
1319 Usage: $0 [OPTION]... [VAR=VALUE]...
1321 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1322 VAR=VALUE. See below for descriptions of some of the useful variables.
1324 Defaults for the options are specified in brackets.
1326 Configuration:
1327 -h, --help display this help and exit
1328 --help=short display options specific to this package
1329 --help=recursive display the short help of all the included packages
1330 -V, --version display version information and exit
1331 -q, --quiet, --silent do not print \`checking...' messages
1332 --cache-file=FILE cache test results in FILE [disabled]
1333 -C, --config-cache alias for \`--cache-file=config.cache'
1334 -n, --no-create do not create output files
1335 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1337 Installation directories:
1338 --prefix=PREFIX install architecture-independent files in PREFIX
1339 [$ac_default_prefix]
1340 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1341 [PREFIX]
1343 By default, \`make install' will install all the files in
1344 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1345 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1346 for instance \`--prefix=\$HOME'.
1348 For better control, use the options below.
1350 Fine tuning of the installation directories:
1351 --bindir=DIR user executables [EPREFIX/bin]
1352 --sbindir=DIR system admin executables [EPREFIX/sbin]
1353 --libexecdir=DIR program executables [EPREFIX/libexec]
1354 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1355 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1356 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1357 --libdir=DIR object code libraries [EPREFIX/lib]
1358 --includedir=DIR C header files [PREFIX/include]
1359 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1360 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1361 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1362 --infodir=DIR info documentation [DATAROOTDIR/info]
1363 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1364 --mandir=DIR man documentation [DATAROOTDIR/man]
1365 --docdir=DIR documentation root [DATAROOTDIR/doc/ltp]
1366 --htmldir=DIR html documentation [DOCDIR]
1367 --dvidir=DIR dvi documentation [DOCDIR]
1368 --pdfdir=DIR pdf documentation [DOCDIR]
1369 --psdir=DIR ps documentation [DOCDIR]
1370 _ACEOF
1372 cat <<\_ACEOF
1374 Program names:
1375 --program-prefix=PREFIX prepend PREFIX to installed program names
1376 --program-suffix=SUFFIX append SUFFIX to installed program names
1377 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1379 System types:
1380 --build=BUILD configure for building on BUILD [guessed]
1381 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1382 _ACEOF
1385 if test -n "$ac_init_help"; then
1386 case $ac_init_help in
1387 short | recursive ) echo "Configuration of ltp 20091031:";;
1388 esac
1389 cat <<\_ACEOF
1391 Optional Features:
1392 --disable-option-checking ignore unrecognized --enable/--with options
1393 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1394 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1395 --disable-dependency-tracking speeds up one-time build
1396 --enable-dependency-tracking do not reject slow dependency extractors
1398 Some influential environment variables:
1399 CC C compiler command
1400 CFLAGS C compiler flags
1401 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1402 nonstandard directory <lib dir>
1403 LIBS libraries to pass to the linker, e.g. -l<library>
1404 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1405 you have headers in a nonstandard directory <include dir>
1406 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1407 the first program found out of: `bison -y', `byacc', `yacc'.
1408 YFLAGS The list of arguments that will be passed by default to $YACC.
1409 This script will default YFLAGS to the empty string to avoid a
1410 default value of `-d' given by some make applications.
1411 CPP C preprocessor
1413 Use these variables to override the choices made by `configure' or to help
1414 it to find libraries and programs with nonstandard names/locations.
1416 Report bugs to <ltp-results@lists.sourceforge.net>.
1417 _ACEOF
1418 ac_status=$?
1421 if test "$ac_init_help" = "recursive"; then
1422 # If there are subdirs, report their specific --help.
1423 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1424 test -d "$ac_dir" ||
1425 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1426 continue
1427 ac_builddir=.
1429 case "$ac_dir" in
1430 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1432 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1433 # A ".." for each directory in $ac_dir_suffix.
1434 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1435 case $ac_top_builddir_sub in
1436 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1437 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1438 esac ;;
1439 esac
1440 ac_abs_top_builddir=$ac_pwd
1441 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1442 # for backward compatibility:
1443 ac_top_builddir=$ac_top_build_prefix
1445 case $srcdir in
1446 .) # We are building in place.
1447 ac_srcdir=.
1448 ac_top_srcdir=$ac_top_builddir_sub
1449 ac_abs_top_srcdir=$ac_pwd ;;
1450 [\\/]* | ?:[\\/]* ) # Absolute name.
1451 ac_srcdir=$srcdir$ac_dir_suffix;
1452 ac_top_srcdir=$srcdir
1453 ac_abs_top_srcdir=$srcdir ;;
1454 *) # Relative name.
1455 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1456 ac_top_srcdir=$ac_top_build_prefix$srcdir
1457 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1458 esac
1459 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1461 cd "$ac_dir" || { ac_status=$?; continue; }
1462 # Check for guested configure.
1463 if test -f "$ac_srcdir/configure.gnu"; then
1464 echo &&
1465 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1466 elif test -f "$ac_srcdir/configure"; then
1467 echo &&
1468 $SHELL "$ac_srcdir/configure" --help=recursive
1469 else
1470 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1471 fi || ac_status=$?
1472 cd "$ac_pwd" || { ac_status=$?; break; }
1473 done
1476 test -n "$ac_init_help" && exit $ac_status
1477 if $ac_init_version; then
1478 cat <<\_ACEOF
1479 ltp configure 20091031
1480 generated by GNU Autoconf 2.63
1482 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1483 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1484 This configure script is free software; the Free Software Foundation
1485 gives unlimited permission to copy, distribute and modify it.
1486 _ACEOF
1487 exit
1489 cat >config.log <<_ACEOF
1490 This file contains any messages produced by compilers while
1491 running configure, to aid debugging if configure makes a mistake.
1493 It was created by ltp $as_me 20091031, which was
1494 generated by GNU Autoconf 2.63. Invocation command line was
1496 $ $0 $@
1498 _ACEOF
1499 exec 5>>config.log
1501 cat <<_ASUNAME
1502 ## --------- ##
1503 ## Platform. ##
1504 ## --------- ##
1506 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1507 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1508 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1509 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1510 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1512 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1513 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1515 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1516 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1517 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1518 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1519 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1520 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1521 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1523 _ASUNAME
1525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1526 for as_dir in $PATH
1528 IFS=$as_save_IFS
1529 test -z "$as_dir" && as_dir=.
1530 $as_echo "PATH: $as_dir"
1531 done
1532 IFS=$as_save_IFS
1534 } >&5
1536 cat >&5 <<_ACEOF
1539 ## ----------- ##
1540 ## Core tests. ##
1541 ## ----------- ##
1543 _ACEOF
1546 # Keep a trace of the command line.
1547 # Strip out --no-create and --no-recursion so they do not pile up.
1548 # Strip out --silent because we don't want to record it for future runs.
1549 # Also quote any args containing shell meta-characters.
1550 # Make two passes to allow for proper duplicate-argument suppression.
1551 ac_configure_args=
1552 ac_configure_args0=
1553 ac_configure_args1=
1554 ac_must_keep_next=false
1555 for ac_pass in 1 2
1557 for ac_arg
1559 case $ac_arg in
1560 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1561 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1562 | -silent | --silent | --silen | --sile | --sil)
1563 continue ;;
1564 *\'*)
1565 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1566 esac
1567 case $ac_pass in
1568 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1570 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1571 if test $ac_must_keep_next = true; then
1572 ac_must_keep_next=false # Got value, back to normal.
1573 else
1574 case $ac_arg in
1575 *=* | --config-cache | -C | -disable-* | --disable-* \
1576 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1577 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1578 | -with-* | --with-* | -without-* | --without-* | --x)
1579 case "$ac_configure_args0 " in
1580 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1581 esac
1583 -* ) ac_must_keep_next=true ;;
1584 esac
1586 ac_configure_args="$ac_configure_args '$ac_arg'"
1588 esac
1589 done
1590 done
1591 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1592 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1594 # When interrupted or exit'd, cleanup temporary files, and complete
1595 # config.log. We remove comments because anyway the quotes in there
1596 # would cause problems or look ugly.
1597 # WARNING: Use '\'' to represent an apostrophe within the trap.
1598 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1599 trap 'exit_status=$?
1600 # Save into config.log some information that might help in debugging.
1602 echo
1604 cat <<\_ASBOX
1605 ## ---------------- ##
1606 ## Cache variables. ##
1607 ## ---------------- ##
1608 _ASBOX
1609 echo
1610 # The following way of writing the cache mishandles newlines in values,
1612 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1613 eval ac_val=\$$ac_var
1614 case $ac_val in #(
1615 *${as_nl}*)
1616 case $ac_var in #(
1617 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1618 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1619 esac
1620 case $ac_var in #(
1621 _ | IFS | as_nl) ;; #(
1622 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1623 *) $as_unset $ac_var ;;
1624 esac ;;
1625 esac
1626 done
1627 (set) 2>&1 |
1628 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1629 *${as_nl}ac_space=\ *)
1630 sed -n \
1631 "s/'\''/'\''\\\\'\'''\''/g;
1632 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1633 ;; #(
1635 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1637 esac |
1638 sort
1640 echo
1642 cat <<\_ASBOX
1643 ## ----------------- ##
1644 ## Output variables. ##
1645 ## ----------------- ##
1646 _ASBOX
1647 echo
1648 for ac_var in $ac_subst_vars
1650 eval ac_val=\$$ac_var
1651 case $ac_val in
1652 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1653 esac
1654 $as_echo "$ac_var='\''$ac_val'\''"
1655 done | sort
1656 echo
1658 if test -n "$ac_subst_files"; then
1659 cat <<\_ASBOX
1660 ## ------------------- ##
1661 ## File substitutions. ##
1662 ## ------------------- ##
1663 _ASBOX
1664 echo
1665 for ac_var in $ac_subst_files
1667 eval ac_val=\$$ac_var
1668 case $ac_val in
1669 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1670 esac
1671 $as_echo "$ac_var='\''$ac_val'\''"
1672 done | sort
1673 echo
1676 if test -s confdefs.h; then
1677 cat <<\_ASBOX
1678 ## ----------- ##
1679 ## confdefs.h. ##
1680 ## ----------- ##
1681 _ASBOX
1682 echo
1683 cat confdefs.h
1684 echo
1686 test "$ac_signal" != 0 &&
1687 $as_echo "$as_me: caught signal $ac_signal"
1688 $as_echo "$as_me: exit $exit_status"
1689 } >&5
1690 rm -f core *.core core.conftest.* &&
1691 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1692 exit $exit_status
1694 for ac_signal in 1 2 13 15; do
1695 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1696 done
1697 ac_signal=0
1699 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1700 rm -f -r conftest* confdefs.h
1702 # Predefined preprocessor variables.
1704 cat >>confdefs.h <<_ACEOF
1705 #define PACKAGE_NAME "$PACKAGE_NAME"
1706 _ACEOF
1709 cat >>confdefs.h <<_ACEOF
1710 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1711 _ACEOF
1714 cat >>confdefs.h <<_ACEOF
1715 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1716 _ACEOF
1719 cat >>confdefs.h <<_ACEOF
1720 #define PACKAGE_STRING "$PACKAGE_STRING"
1721 _ACEOF
1724 cat >>confdefs.h <<_ACEOF
1725 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1726 _ACEOF
1729 # Let the site file select an alternate cache file if it wants to.
1730 # Prefer an explicitly selected file to automatically selected ones.
1731 ac_site_file1=NONE
1732 ac_site_file2=NONE
1733 if test -n "$CONFIG_SITE"; then
1734 ac_site_file1=$CONFIG_SITE
1735 elif test "x$prefix" != xNONE; then
1736 ac_site_file1=$prefix/share/config.site
1737 ac_site_file2=$prefix/etc/config.site
1738 else
1739 ac_site_file1=$ac_default_prefix/share/config.site
1740 ac_site_file2=$ac_default_prefix/etc/config.site
1742 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1744 test "x$ac_site_file" = xNONE && continue
1745 if test -r "$ac_site_file"; then
1746 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1747 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1748 sed 's/^/| /' "$ac_site_file" >&5
1749 . "$ac_site_file"
1751 done
1753 if test -r "$cache_file"; then
1754 # Some versions of bash will fail to source /dev/null (special
1755 # files actually), so we avoid doing that.
1756 if test -f "$cache_file"; then
1757 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1758 $as_echo "$as_me: loading cache $cache_file" >&6;}
1759 case $cache_file in
1760 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1761 *) . "./$cache_file";;
1762 esac
1764 else
1765 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1766 $as_echo "$as_me: creating cache $cache_file" >&6;}
1767 >$cache_file
1770 ac_header_list="$ac_header_list dmapi.h"
1771 ac_header_list="$ac_header_list ifaddrs.h"
1772 ac_header_list="$ac_header_list libaio.h"
1773 ac_header_list="$ac_header_list mm.h"
1774 ac_header_list="$ac_header_list linux/genetlink.h"
1775 ac_header_list="$ac_header_list linux/module.h"
1776 ac_header_list="$ac_header_list linux/netlink.h"
1777 ac_header_list="$ac_header_list sys/acl.h"
1778 ac_header_list="$ac_header_list sys/epoll.h"
1779 ac_header_list="$ac_header_list sys/inotify.h"
1780 ac_header_list="$ac_header_list sys/jfsdmapi.h"
1781 ac_header_list="$ac_header_list sys/prctl.h"
1782 ac_header_list="$ac_header_list linux/types.h"
1783 ac_func_list="$ac_func_list unshare"
1784 # Check that the precious variables saved in the cache have kept the same
1785 # value.
1786 ac_cache_corrupted=false
1787 for ac_var in $ac_precious_vars; do
1788 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1789 eval ac_new_set=\$ac_env_${ac_var}_set
1790 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1791 eval ac_new_val=\$ac_env_${ac_var}_value
1792 case $ac_old_set,$ac_new_set in
1793 set,)
1794 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1795 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1796 ac_cache_corrupted=: ;;
1797 ,set)
1798 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1799 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1800 ac_cache_corrupted=: ;;
1801 ,);;
1803 if test "x$ac_old_val" != "x$ac_new_val"; then
1804 # differences in whitespace do not lead to failure.
1805 ac_old_val_w=`echo x $ac_old_val`
1806 ac_new_val_w=`echo x $ac_new_val`
1807 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1808 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1809 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1810 ac_cache_corrupted=:
1811 else
1812 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1813 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1814 eval $ac_var=\$ac_old_val
1816 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1817 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1818 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1819 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1820 fi;;
1821 esac
1822 # Pass precious variables to config.status.
1823 if test "$ac_new_set" = set; then
1824 case $ac_new_val in
1825 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1826 *) ac_arg=$ac_var=$ac_new_val ;;
1827 esac
1828 case " $ac_configure_args " in
1829 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1830 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1831 esac
1833 done
1834 if $ac_cache_corrupted; then
1835 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1836 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1837 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1838 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1839 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1840 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1841 { (exit 1); exit 1; }; }
1868 ac_ext=c
1869 ac_cpp='$CPP $CPPFLAGS'
1870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1875 ac_aux_dir=
1876 for ac_dir in . "$srcdir"/.; do
1877 if test -f "$ac_dir/install-sh"; then
1878 ac_aux_dir=$ac_dir
1879 ac_install_sh="$ac_aux_dir/install-sh -c"
1880 break
1881 elif test -f "$ac_dir/install.sh"; then
1882 ac_aux_dir=$ac_dir
1883 ac_install_sh="$ac_aux_dir/install.sh -c"
1884 break
1885 elif test -f "$ac_dir/shtool"; then
1886 ac_aux_dir=$ac_dir
1887 ac_install_sh="$ac_aux_dir/shtool install -c"
1888 break
1890 done
1891 if test -z "$ac_aux_dir"; then
1892 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
1893 $as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
1894 { (exit 1); exit 1; }; }
1897 # These three variables are undocumented and unsupported,
1898 # and are intended to be withdrawn in a future Autoconf release.
1899 # They can cause serious problems if a builder's source tree is in a directory
1900 # whose full name contains unusual characters.
1901 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1902 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1903 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1906 am__api_version='1.10'
1908 # Find a good install program. We prefer a C program (faster),
1909 # so one script is as good as another. But avoid the broken or
1910 # incompatible versions:
1911 # SysV /etc/install, /usr/sbin/install
1912 # SunOS /usr/etc/install
1913 # IRIX /sbin/install
1914 # AIX /bin/install
1915 # AmigaOS /C/install, which installs bootblocks on floppy discs
1916 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1917 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1918 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1919 # OS/2's system install, which has a completely different semantic
1920 # ./install, which can be erroneously created by make from ./install.sh.
1921 # Reject install programs that cannot install multiple files.
1922 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1923 $as_echo_n "checking for a BSD-compatible install... " >&6; }
1924 if test -z "$INSTALL"; then
1925 if test "${ac_cv_path_install+set}" = set; then
1926 $as_echo_n "(cached) " >&6
1927 else
1928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1929 for as_dir in $PATH
1931 IFS=$as_save_IFS
1932 test -z "$as_dir" && as_dir=.
1933 # Account for people who put trailing slashes in PATH elements.
1934 case $as_dir/ in
1935 ./ | .// | /cC/* | \
1936 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1937 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1938 /usr/ucb/* ) ;;
1940 # OSF1 and SCO ODT 3.0 have their own names for install.
1941 # Don't use installbsd from OSF since it installs stuff as root
1942 # by default.
1943 for ac_prog in ginstall scoinst install; do
1944 for ac_exec_ext in '' $ac_executable_extensions; do
1945 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1946 if test $ac_prog = install &&
1947 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1948 # AIX install. It has an incompatible calling convention.
1950 elif test $ac_prog = install &&
1951 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1952 # program-specific install script used by HP pwplus--don't use.
1954 else
1955 rm -rf conftest.one conftest.two conftest.dir
1956 echo one > conftest.one
1957 echo two > conftest.two
1958 mkdir conftest.dir
1959 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1960 test -s conftest.one && test -s conftest.two &&
1961 test -s conftest.dir/conftest.one &&
1962 test -s conftest.dir/conftest.two
1963 then
1964 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1965 break 3
1969 done
1970 done
1972 esac
1974 done
1975 IFS=$as_save_IFS
1977 rm -rf conftest.one conftest.two conftest.dir
1980 if test "${ac_cv_path_install+set}" = set; then
1981 INSTALL=$ac_cv_path_install
1982 else
1983 # As a last resort, use the slow shell script. Don't cache a
1984 # value for INSTALL within a source directory, because that will
1985 # break other packages using the cache if that directory is
1986 # removed, or if the value is a relative name.
1987 INSTALL=$ac_install_sh
1990 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
1991 $as_echo "$INSTALL" >&6; }
1993 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1994 # It thinks the first close brace ends the variable substitution.
1995 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1997 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1999 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2001 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2002 $as_echo_n "checking whether build environment is sane... " >&6; }
2003 # Just in case
2004 sleep 1
2005 echo timestamp > conftest.file
2006 # Do `set' in a subshell so we don't clobber the current shell's
2007 # arguments. Must try -L first in case configure is actually a
2008 # symlink; some systems play weird games with the mod time of symlinks
2009 # (eg FreeBSD returns the mod time of the symlink's containing
2010 # directory).
2011 if (
2012 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2013 if test "$*" = "X"; then
2014 # -L didn't work.
2015 set X `ls -t $srcdir/configure conftest.file`
2017 rm -f conftest.file
2018 if test "$*" != "X $srcdir/configure conftest.file" \
2019 && test "$*" != "X conftest.file $srcdir/configure"; then
2021 # If neither matched, then we have a broken ls. This can happen
2022 # if, for instance, CONFIG_SHELL is bash and it inherits a
2023 # broken ls alias from the environment. This has actually
2024 # happened. Such a system could not be considered "sane".
2025 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2026 alias in your environment" >&5
2027 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2028 alias in your environment" >&2;}
2029 { (exit 1); exit 1; }; }
2032 test "$2" = conftest.file
2034 then
2035 # Ok.
2037 else
2038 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2039 Check your system clock" >&5
2040 $as_echo "$as_me: error: newly created file is older than distributed files!
2041 Check your system clock" >&2;}
2042 { (exit 1); exit 1; }; }
2044 { $as_echo "$as_me:$LINENO: result: yes" >&5
2045 $as_echo "yes" >&6; }
2046 test "$program_prefix" != NONE &&
2047 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2048 # Use a double $ so make ignores it.
2049 test "$program_suffix" != NONE &&
2050 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2051 # Double any \ or $.
2052 # By default was `s,x,x', remove it if useless.
2053 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2054 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2056 # expand $ac_aux_dir to an absolute path
2057 am_aux_dir=`cd $ac_aux_dir && pwd`
2059 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2060 # Use eval to expand $SHELL
2061 if eval "$MISSING --run true"; then
2062 am_missing_run="$MISSING --run "
2063 else
2064 am_missing_run=
2065 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2066 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2069 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2070 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2071 if test -z "$MKDIR_P"; then
2072 if test "${ac_cv_path_mkdir+set}" = set; then
2073 $as_echo_n "(cached) " >&6
2074 else
2075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2076 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2078 IFS=$as_save_IFS
2079 test -z "$as_dir" && as_dir=.
2080 for ac_prog in mkdir gmkdir; do
2081 for ac_exec_ext in '' $ac_executable_extensions; do
2082 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2083 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2084 'mkdir (GNU coreutils) '* | \
2085 'mkdir (coreutils) '* | \
2086 'mkdir (fileutils) '4.1*)
2087 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2088 break 3;;
2089 esac
2090 done
2091 done
2092 done
2093 IFS=$as_save_IFS
2097 if test "${ac_cv_path_mkdir+set}" = set; then
2098 MKDIR_P="$ac_cv_path_mkdir -p"
2099 else
2100 # As a last resort, use the slow shell script. Don't cache a
2101 # value for MKDIR_P within a source directory, because that will
2102 # break other packages using the cache if that directory is
2103 # removed, or if the value is a relative name.
2104 test -d ./--version && rmdir ./--version
2105 MKDIR_P="$ac_install_sh -d"
2108 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2109 $as_echo "$MKDIR_P" >&6; }
2111 mkdir_p="$MKDIR_P"
2112 case $mkdir_p in
2113 [\\/$]* | ?:[\\/]*) ;;
2114 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2115 esac
2117 for ac_prog in gawk mawk nawk awk
2119 # Extract the first word of "$ac_prog", so it can be a program name with args.
2120 set dummy $ac_prog; ac_word=$2
2121 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2122 $as_echo_n "checking for $ac_word... " >&6; }
2123 if test "${ac_cv_prog_AWK+set}" = set; then
2124 $as_echo_n "(cached) " >&6
2125 else
2126 if test -n "$AWK"; then
2127 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2128 else
2129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2130 for as_dir in $PATH
2132 IFS=$as_save_IFS
2133 test -z "$as_dir" && as_dir=.
2134 for ac_exec_ext in '' $ac_executable_extensions; do
2135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2136 ac_cv_prog_AWK="$ac_prog"
2137 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2138 break 2
2140 done
2141 done
2142 IFS=$as_save_IFS
2146 AWK=$ac_cv_prog_AWK
2147 if test -n "$AWK"; then
2148 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2149 $as_echo "$AWK" >&6; }
2150 else
2151 { $as_echo "$as_me:$LINENO: result: no" >&5
2152 $as_echo "no" >&6; }
2156 test -n "$AWK" && break
2157 done
2159 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2160 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2161 set x ${MAKE-make}
2162 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2163 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2164 $as_echo_n "(cached) " >&6
2165 else
2166 cat >conftest.make <<\_ACEOF
2167 SHELL = /bin/sh
2168 all:
2169 @echo '@@@%%%=$(MAKE)=@@@%%%'
2170 _ACEOF
2171 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2172 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2173 *@@@%%%=?*=@@@%%%*)
2174 eval ac_cv_prog_make_${ac_make}_set=yes;;
2176 eval ac_cv_prog_make_${ac_make}_set=no;;
2177 esac
2178 rm -f conftest.make
2180 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2181 { $as_echo "$as_me:$LINENO: result: yes" >&5
2182 $as_echo "yes" >&6; }
2183 SET_MAKE=
2184 else
2185 { $as_echo "$as_me:$LINENO: result: no" >&5
2186 $as_echo "no" >&6; }
2187 SET_MAKE="MAKE=${MAKE-make}"
2190 rm -rf .tst 2>/dev/null
2191 mkdir .tst 2>/dev/null
2192 if test -d .tst; then
2193 am__leading_dot=.
2194 else
2195 am__leading_dot=_
2197 rmdir .tst 2>/dev/null
2199 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2200 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2201 # is not polluted with repeated "-I."
2202 am__isrc=' -I$(srcdir)'
2203 # test to see if srcdir already configured
2204 if test -f $srcdir/config.status; then
2205 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2206 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2207 { (exit 1); exit 1; }; }
2211 # test whether we have cygpath
2212 if test -z "$CYGPATH_W"; then
2213 if (cygpath --version) >/dev/null 2>/dev/null; then
2214 CYGPATH_W='cygpath -w'
2215 else
2216 CYGPATH_W=echo
2221 # Define the identity of the package.
2222 PACKAGE='ltp'
2223 VERSION='20091031'
2226 cat >>confdefs.h <<_ACEOF
2227 #define PACKAGE "$PACKAGE"
2228 _ACEOF
2231 cat >>confdefs.h <<_ACEOF
2232 #define VERSION "$VERSION"
2233 _ACEOF
2235 # Some tools Automake needs.
2237 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2240 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2243 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2246 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2249 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2251 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2253 # Installed binaries are usually stripped using `strip' when the user
2254 # run `make install-strip'. However `strip' might not be the right
2255 # tool to use in cross-compilation environments, therefore Automake
2256 # will honor the `STRIP' environment variable to overrule this program.
2257 if test "$cross_compiling" != no; then
2258 if test -n "$ac_tool_prefix"; then
2259 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2260 set dummy ${ac_tool_prefix}strip; ac_word=$2
2261 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2262 $as_echo_n "checking for $ac_word... " >&6; }
2263 if test "${ac_cv_prog_STRIP+set}" = set; then
2264 $as_echo_n "(cached) " >&6
2265 else
2266 if test -n "$STRIP"; then
2267 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2268 else
2269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2270 for as_dir in $PATH
2272 IFS=$as_save_IFS
2273 test -z "$as_dir" && as_dir=.
2274 for ac_exec_ext in '' $ac_executable_extensions; do
2275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2276 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2277 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2278 break 2
2280 done
2281 done
2282 IFS=$as_save_IFS
2286 STRIP=$ac_cv_prog_STRIP
2287 if test -n "$STRIP"; then
2288 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2289 $as_echo "$STRIP" >&6; }
2290 else
2291 { $as_echo "$as_me:$LINENO: result: no" >&5
2292 $as_echo "no" >&6; }
2297 if test -z "$ac_cv_prog_STRIP"; then
2298 ac_ct_STRIP=$STRIP
2299 # Extract the first word of "strip", so it can be a program name with args.
2300 set dummy strip; ac_word=$2
2301 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2302 $as_echo_n "checking for $ac_word... " >&6; }
2303 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2304 $as_echo_n "(cached) " >&6
2305 else
2306 if test -n "$ac_ct_STRIP"; then
2307 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2308 else
2309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2310 for as_dir in $PATH
2312 IFS=$as_save_IFS
2313 test -z "$as_dir" && as_dir=.
2314 for ac_exec_ext in '' $ac_executable_extensions; do
2315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2316 ac_cv_prog_ac_ct_STRIP="strip"
2317 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2318 break 2
2320 done
2321 done
2322 IFS=$as_save_IFS
2326 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2327 if test -n "$ac_ct_STRIP"; then
2328 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2329 $as_echo "$ac_ct_STRIP" >&6; }
2330 else
2331 { $as_echo "$as_me:$LINENO: result: no" >&5
2332 $as_echo "no" >&6; }
2335 if test "x$ac_ct_STRIP" = x; then
2336 STRIP=":"
2337 else
2338 case $cross_compiling:$ac_tool_warned in
2339 yes:)
2340 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2341 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2342 ac_tool_warned=yes ;;
2343 esac
2344 STRIP=$ac_ct_STRIP
2346 else
2347 STRIP="$ac_cv_prog_STRIP"
2351 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2353 # We need awk for the "check" target. The system "awk" is bad on
2354 # some platforms.
2355 # Always define AMTAR for backward compatibility.
2357 AMTAR=${AMTAR-"${am_missing_run}tar"}
2359 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2365 ac_config_headers="$ac_config_headers include/config.h"
2367 ac_config_files="$ac_config_files include/mk/config.mk lib/ltp.pc ltp-devel.spec m4/Makefile README.ltp-devel"
2370 if test x$cross_compiling = xyes; then
2371 CROSS_COMPILATION_TRUE=
2372 CROSS_COMPILATION_FALSE='#'
2373 else
2374 CROSS_COMPILATION_TRUE='#'
2375 CROSS_COMPILATION_FALSE=
2379 # Make sure we can run config.sub.
2380 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2381 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2382 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2383 { (exit 1); exit 1; }; }
2385 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2386 $as_echo_n "checking build system type... " >&6; }
2387 if test "${ac_cv_build+set}" = set; then
2388 $as_echo_n "(cached) " >&6
2389 else
2390 ac_build_alias=$build_alias
2391 test "x$ac_build_alias" = x &&
2392 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2393 test "x$ac_build_alias" = x &&
2394 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2395 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2396 { (exit 1); exit 1; }; }
2397 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2398 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2399 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2400 { (exit 1); exit 1; }; }
2403 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2404 $as_echo "$ac_cv_build" >&6; }
2405 case $ac_cv_build in
2406 *-*-*) ;;
2407 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2408 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2409 { (exit 1); exit 1; }; };;
2410 esac
2411 build=$ac_cv_build
2412 ac_save_IFS=$IFS; IFS='-'
2413 set x $ac_cv_build
2414 shift
2415 build_cpu=$1
2416 build_vendor=$2
2417 shift; shift
2418 # Remember, the first character of IFS is used to create $*,
2419 # except with old shells:
2420 build_os=$*
2421 IFS=$ac_save_IFS
2422 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2425 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2426 $as_echo_n "checking host system type... " >&6; }
2427 if test "${ac_cv_host+set}" = set; then
2428 $as_echo_n "(cached) " >&6
2429 else
2430 if test "x$host_alias" = x; then
2431 ac_cv_host=$ac_cv_build
2432 else
2433 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2434 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2435 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2436 { (exit 1); exit 1; }; }
2440 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2441 $as_echo "$ac_cv_host" >&6; }
2442 case $ac_cv_host in
2443 *-*-*) ;;
2444 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2445 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2446 { (exit 1); exit 1; }; };;
2447 esac
2448 host=$ac_cv_host
2449 ac_save_IFS=$IFS; IFS='-'
2450 set x $ac_cv_host
2451 shift
2452 host_cpu=$1
2453 host_vendor=$2
2454 shift; shift
2455 # Remember, the first character of IFS is used to create $*,
2456 # except with old shells:
2457 host_os=$*
2458 IFS=$ac_save_IFS
2459 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2463 ac_ext=c
2464 ac_cpp='$CPP $CPPFLAGS'
2465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2468 if test -n "$ac_tool_prefix"; then
2469 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2470 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2471 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2472 $as_echo_n "checking for $ac_word... " >&6; }
2473 if test "${ac_cv_prog_CC+set}" = set; then
2474 $as_echo_n "(cached) " >&6
2475 else
2476 if test -n "$CC"; then
2477 ac_cv_prog_CC="$CC" # Let the user override the test.
2478 else
2479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480 for as_dir in $PATH
2482 IFS=$as_save_IFS
2483 test -z "$as_dir" && as_dir=.
2484 for ac_exec_ext in '' $ac_executable_extensions; do
2485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2486 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2487 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2488 break 2
2490 done
2491 done
2492 IFS=$as_save_IFS
2496 CC=$ac_cv_prog_CC
2497 if test -n "$CC"; then
2498 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2499 $as_echo "$CC" >&6; }
2500 else
2501 { $as_echo "$as_me:$LINENO: result: no" >&5
2502 $as_echo "no" >&6; }
2507 if test -z "$ac_cv_prog_CC"; then
2508 ac_ct_CC=$CC
2509 # Extract the first word of "gcc", so it can be a program name with args.
2510 set dummy gcc; ac_word=$2
2511 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2512 $as_echo_n "checking for $ac_word... " >&6; }
2513 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2514 $as_echo_n "(cached) " >&6
2515 else
2516 if test -n "$ac_ct_CC"; then
2517 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2518 else
2519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2520 for as_dir in $PATH
2522 IFS=$as_save_IFS
2523 test -z "$as_dir" && as_dir=.
2524 for ac_exec_ext in '' $ac_executable_extensions; do
2525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2526 ac_cv_prog_ac_ct_CC="gcc"
2527 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2528 break 2
2530 done
2531 done
2532 IFS=$as_save_IFS
2536 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2537 if test -n "$ac_ct_CC"; then
2538 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2539 $as_echo "$ac_ct_CC" >&6; }
2540 else
2541 { $as_echo "$as_me:$LINENO: result: no" >&5
2542 $as_echo "no" >&6; }
2545 if test "x$ac_ct_CC" = x; then
2546 CC=""
2547 else
2548 case $cross_compiling:$ac_tool_warned in
2549 yes:)
2550 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2552 ac_tool_warned=yes ;;
2553 esac
2554 CC=$ac_ct_CC
2556 else
2557 CC="$ac_cv_prog_CC"
2560 if test -z "$CC"; then
2561 if test -n "$ac_tool_prefix"; then
2562 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2563 set dummy ${ac_tool_prefix}cc; ac_word=$2
2564 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2565 $as_echo_n "checking for $ac_word... " >&6; }
2566 if test "${ac_cv_prog_CC+set}" = set; then
2567 $as_echo_n "(cached) " >&6
2568 else
2569 if test -n "$CC"; then
2570 ac_cv_prog_CC="$CC" # Let the user override the test.
2571 else
2572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573 for as_dir in $PATH
2575 IFS=$as_save_IFS
2576 test -z "$as_dir" && as_dir=.
2577 for ac_exec_ext in '' $ac_executable_extensions; do
2578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2579 ac_cv_prog_CC="${ac_tool_prefix}cc"
2580 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2581 break 2
2583 done
2584 done
2585 IFS=$as_save_IFS
2589 CC=$ac_cv_prog_CC
2590 if test -n "$CC"; then
2591 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2592 $as_echo "$CC" >&6; }
2593 else
2594 { $as_echo "$as_me:$LINENO: result: no" >&5
2595 $as_echo "no" >&6; }
2601 if test -z "$CC"; then
2602 # Extract the first word of "cc", so it can be a program name with args.
2603 set dummy cc; ac_word=$2
2604 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2605 $as_echo_n "checking for $ac_word... " >&6; }
2606 if test "${ac_cv_prog_CC+set}" = set; then
2607 $as_echo_n "(cached) " >&6
2608 else
2609 if test -n "$CC"; then
2610 ac_cv_prog_CC="$CC" # Let the user override the test.
2611 else
2612 ac_prog_rejected=no
2613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2614 for as_dir in $PATH
2616 IFS=$as_save_IFS
2617 test -z "$as_dir" && as_dir=.
2618 for ac_exec_ext in '' $ac_executable_extensions; do
2619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2620 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2621 ac_prog_rejected=yes
2622 continue
2624 ac_cv_prog_CC="cc"
2625 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2626 break 2
2628 done
2629 done
2630 IFS=$as_save_IFS
2632 if test $ac_prog_rejected = yes; then
2633 # We found a bogon in the path, so make sure we never use it.
2634 set dummy $ac_cv_prog_CC
2635 shift
2636 if test $# != 0; then
2637 # We chose a different compiler from the bogus one.
2638 # However, it has the same basename, so the bogon will be chosen
2639 # first if we set CC to just the basename; use the full file name.
2640 shift
2641 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2646 CC=$ac_cv_prog_CC
2647 if test -n "$CC"; then
2648 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2649 $as_echo "$CC" >&6; }
2650 else
2651 { $as_echo "$as_me:$LINENO: result: no" >&5
2652 $as_echo "no" >&6; }
2657 if test -z "$CC"; then
2658 if test -n "$ac_tool_prefix"; then
2659 for ac_prog in cl.exe
2661 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2662 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2663 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2664 $as_echo_n "checking for $ac_word... " >&6; }
2665 if test "${ac_cv_prog_CC+set}" = set; then
2666 $as_echo_n "(cached) " >&6
2667 else
2668 if test -n "$CC"; then
2669 ac_cv_prog_CC="$CC" # Let the user override the test.
2670 else
2671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2672 for as_dir in $PATH
2674 IFS=$as_save_IFS
2675 test -z "$as_dir" && as_dir=.
2676 for ac_exec_ext in '' $ac_executable_extensions; do
2677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2678 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2679 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2680 break 2
2682 done
2683 done
2684 IFS=$as_save_IFS
2688 CC=$ac_cv_prog_CC
2689 if test -n "$CC"; then
2690 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2691 $as_echo "$CC" >&6; }
2692 else
2693 { $as_echo "$as_me:$LINENO: result: no" >&5
2694 $as_echo "no" >&6; }
2698 test -n "$CC" && break
2699 done
2701 if test -z "$CC"; then
2702 ac_ct_CC=$CC
2703 for ac_prog in cl.exe
2705 # Extract the first word of "$ac_prog", so it can be a program name with args.
2706 set dummy $ac_prog; ac_word=$2
2707 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2708 $as_echo_n "checking for $ac_word... " >&6; }
2709 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2710 $as_echo_n "(cached) " >&6
2711 else
2712 if test -n "$ac_ct_CC"; then
2713 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2714 else
2715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716 for as_dir in $PATH
2718 IFS=$as_save_IFS
2719 test -z "$as_dir" && as_dir=.
2720 for ac_exec_ext in '' $ac_executable_extensions; do
2721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2722 ac_cv_prog_ac_ct_CC="$ac_prog"
2723 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2724 break 2
2726 done
2727 done
2728 IFS=$as_save_IFS
2732 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2733 if test -n "$ac_ct_CC"; then
2734 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2735 $as_echo "$ac_ct_CC" >&6; }
2736 else
2737 { $as_echo "$as_me:$LINENO: result: no" >&5
2738 $as_echo "no" >&6; }
2742 test -n "$ac_ct_CC" && break
2743 done
2745 if test "x$ac_ct_CC" = x; then
2746 CC=""
2747 else
2748 case $cross_compiling:$ac_tool_warned in
2749 yes:)
2750 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2751 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2752 ac_tool_warned=yes ;;
2753 esac
2754 CC=$ac_ct_CC
2761 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2762 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2763 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2764 See \`config.log' for more details." >&5
2765 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2766 See \`config.log' for more details." >&2;}
2767 { (exit 1); exit 1; }; }; }
2769 # Provide some information about the compiler.
2770 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2771 set X $ac_compile
2772 ac_compiler=$2
2773 { (ac_try="$ac_compiler --version >&5"
2774 case "(($ac_try" in
2775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776 *) ac_try_echo=$ac_try;;
2777 esac
2778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2779 $as_echo "$ac_try_echo") >&5
2780 (eval "$ac_compiler --version >&5") 2>&5
2781 ac_status=$?
2782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }
2784 { (ac_try="$ac_compiler -v >&5"
2785 case "(($ac_try" in
2786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2787 *) ac_try_echo=$ac_try;;
2788 esac
2789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2790 $as_echo "$ac_try_echo") >&5
2791 (eval "$ac_compiler -v >&5") 2>&5
2792 ac_status=$?
2793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }
2795 { (ac_try="$ac_compiler -V >&5"
2796 case "(($ac_try" in
2797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2798 *) ac_try_echo=$ac_try;;
2799 esac
2800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2801 $as_echo "$ac_try_echo") >&5
2802 (eval "$ac_compiler -V >&5") 2>&5
2803 ac_status=$?
2804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); }
2807 cat >conftest.$ac_ext <<_ACEOF
2808 /* confdefs.h. */
2809 _ACEOF
2810 cat confdefs.h >>conftest.$ac_ext
2811 cat >>conftest.$ac_ext <<_ACEOF
2812 /* end confdefs.h. */
2815 main ()
2819 return 0;
2821 _ACEOF
2822 ac_clean_files_save=$ac_clean_files
2823 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2824 # Try to create an executable without -o first, disregard a.out.
2825 # It will help us diagnose broken compilers, and finding out an intuition
2826 # of exeext.
2827 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2828 $as_echo_n "checking for C compiler default output file name... " >&6; }
2829 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2831 # The possible output files:
2832 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2834 ac_rmfiles=
2835 for ac_file in $ac_files
2837 case $ac_file in
2838 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2839 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2840 esac
2841 done
2842 rm -f $ac_rmfiles
2844 if { (ac_try="$ac_link_default"
2845 case "(($ac_try" in
2846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2847 *) ac_try_echo=$ac_try;;
2848 esac
2849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2850 $as_echo "$ac_try_echo") >&5
2851 (eval "$ac_link_default") 2>&5
2852 ac_status=$?
2853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); }; then
2855 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2856 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2857 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2858 # so that the user can short-circuit this test for compilers unknown to
2859 # Autoconf.
2860 for ac_file in $ac_files ''
2862 test -f "$ac_file" || continue
2863 case $ac_file in
2864 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2866 [ab].out )
2867 # We found the default executable, but exeext='' is most
2868 # certainly right.
2869 break;;
2870 *.* )
2871 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2872 then :; else
2873 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2875 # We set ac_cv_exeext here because the later test for it is not
2876 # safe: cross compilers may not add the suffix if given an `-o'
2877 # argument, so we may need to know it at that point already.
2878 # Even if this section looks crufty: it has the advantage of
2879 # actually working.
2880 break;;
2882 break;;
2883 esac
2884 done
2885 test "$ac_cv_exeext" = no && ac_cv_exeext=
2887 else
2888 ac_file=''
2891 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2892 $as_echo "$ac_file" >&6; }
2893 if test -z "$ac_file"; then
2894 $as_echo "$as_me: failed program was:" >&5
2895 sed 's/^/| /' conftest.$ac_ext >&5
2897 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2898 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2899 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2900 See \`config.log' for more details." >&5
2901 $as_echo "$as_me: error: C compiler cannot create executables
2902 See \`config.log' for more details." >&2;}
2903 { (exit 77); exit 77; }; }; }
2906 ac_exeext=$ac_cv_exeext
2908 # Check that the compiler produces executables we can run. If not, either
2909 # the compiler is broken, or we cross compile.
2910 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2911 $as_echo_n "checking whether the C compiler works... " >&6; }
2912 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2913 # If not cross compiling, check that we can run a simple program.
2914 if test "$cross_compiling" != yes; then
2915 if { ac_try='./$ac_file'
2916 { (case "(($ac_try" in
2917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2918 *) ac_try_echo=$ac_try;;
2919 esac
2920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2921 $as_echo "$ac_try_echo") >&5
2922 (eval "$ac_try") 2>&5
2923 ac_status=$?
2924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }; }; then
2926 cross_compiling=no
2927 else
2928 if test "$cross_compiling" = maybe; then
2929 cross_compiling=yes
2930 else
2931 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2933 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2934 If you meant to cross compile, use \`--host'.
2935 See \`config.log' for more details." >&5
2936 $as_echo "$as_me: error: cannot run C compiled programs.
2937 If you meant to cross compile, use \`--host'.
2938 See \`config.log' for more details." >&2;}
2939 { (exit 1); exit 1; }; }; }
2943 { $as_echo "$as_me:$LINENO: result: yes" >&5
2944 $as_echo "yes" >&6; }
2946 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2947 ac_clean_files=$ac_clean_files_save
2948 # Check that the compiler produces executables we can run. If not, either
2949 # the compiler is broken, or we cross compile.
2950 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2951 $as_echo_n "checking whether we are cross compiling... " >&6; }
2952 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2953 $as_echo "$cross_compiling" >&6; }
2955 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2956 $as_echo_n "checking for suffix of executables... " >&6; }
2957 if { (ac_try="$ac_link"
2958 case "(($ac_try" in
2959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960 *) ac_try_echo=$ac_try;;
2961 esac
2962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2963 $as_echo "$ac_try_echo") >&5
2964 (eval "$ac_link") 2>&5
2965 ac_status=$?
2966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967 (exit $ac_status); }; then
2968 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2969 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2970 # work properly (i.e., refer to `conftest.exe'), while it won't with
2971 # `rm'.
2972 for ac_file in conftest.exe conftest conftest.*; do
2973 test -f "$ac_file" || continue
2974 case $ac_file in
2975 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2976 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2977 break;;
2978 * ) break;;
2979 esac
2980 done
2981 else
2982 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2984 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2985 See \`config.log' for more details." >&5
2986 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2987 See \`config.log' for more details." >&2;}
2988 { (exit 1); exit 1; }; }; }
2991 rm -f conftest$ac_cv_exeext
2992 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2993 $as_echo "$ac_cv_exeext" >&6; }
2995 rm -f conftest.$ac_ext
2996 EXEEXT=$ac_cv_exeext
2997 ac_exeext=$EXEEXT
2998 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2999 $as_echo_n "checking for suffix of object files... " >&6; }
3000 if test "${ac_cv_objext+set}" = set; then
3001 $as_echo_n "(cached) " >&6
3002 else
3003 cat >conftest.$ac_ext <<_ACEOF
3004 /* confdefs.h. */
3005 _ACEOF
3006 cat confdefs.h >>conftest.$ac_ext
3007 cat >>conftest.$ac_ext <<_ACEOF
3008 /* end confdefs.h. */
3011 main ()
3015 return 0;
3017 _ACEOF
3018 rm -f conftest.o conftest.obj
3019 if { (ac_try="$ac_compile"
3020 case "(($ac_try" in
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3023 esac
3024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3025 $as_echo "$ac_try_echo") >&5
3026 (eval "$ac_compile") 2>&5
3027 ac_status=$?
3028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); }; then
3030 for ac_file in conftest.o conftest.obj conftest.*; do
3031 test -f "$ac_file" || continue;
3032 case $ac_file in
3033 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3034 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3035 break;;
3036 esac
3037 done
3038 else
3039 $as_echo "$as_me: failed program was:" >&5
3040 sed 's/^/| /' conftest.$ac_ext >&5
3042 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3044 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3045 See \`config.log' for more details." >&5
3046 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3047 See \`config.log' for more details." >&2;}
3048 { (exit 1); exit 1; }; }; }
3051 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3053 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3054 $as_echo "$ac_cv_objext" >&6; }
3055 OBJEXT=$ac_cv_objext
3056 ac_objext=$OBJEXT
3057 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3058 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3059 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3060 $as_echo_n "(cached) " >&6
3061 else
3062 cat >conftest.$ac_ext <<_ACEOF
3063 /* confdefs.h. */
3064 _ACEOF
3065 cat confdefs.h >>conftest.$ac_ext
3066 cat >>conftest.$ac_ext <<_ACEOF
3067 /* end confdefs.h. */
3070 main ()
3072 #ifndef __GNUC__
3073 choke me
3074 #endif
3077 return 0;
3079 _ACEOF
3080 rm -f conftest.$ac_objext
3081 if { (ac_try="$ac_compile"
3082 case "(($ac_try" in
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3085 esac
3086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3087 $as_echo "$ac_try_echo") >&5
3088 (eval "$ac_compile") 2>conftest.er1
3089 ac_status=$?
3090 grep -v '^ *+' conftest.er1 >conftest.err
3091 rm -f conftest.er1
3092 cat conftest.err >&5
3093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); } && {
3095 test -z "$ac_c_werror_flag" ||
3096 test ! -s conftest.err
3097 } && test -s conftest.$ac_objext; then
3098 ac_compiler_gnu=yes
3099 else
3100 $as_echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3103 ac_compiler_gnu=no
3106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3107 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3110 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3111 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3112 if test $ac_compiler_gnu = yes; then
3113 GCC=yes
3114 else
3115 GCC=
3117 ac_test_CFLAGS=${CFLAGS+set}
3118 ac_save_CFLAGS=$CFLAGS
3119 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3120 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3121 if test "${ac_cv_prog_cc_g+set}" = set; then
3122 $as_echo_n "(cached) " >&6
3123 else
3124 ac_save_c_werror_flag=$ac_c_werror_flag
3125 ac_c_werror_flag=yes
3126 ac_cv_prog_cc_g=no
3127 CFLAGS="-g"
3128 cat >conftest.$ac_ext <<_ACEOF
3129 /* confdefs.h. */
3130 _ACEOF
3131 cat confdefs.h >>conftest.$ac_ext
3132 cat >>conftest.$ac_ext <<_ACEOF
3133 /* end confdefs.h. */
3136 main ()
3140 return 0;
3142 _ACEOF
3143 rm -f conftest.$ac_objext
3144 if { (ac_try="$ac_compile"
3145 case "(($ac_try" in
3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147 *) ac_try_echo=$ac_try;;
3148 esac
3149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3150 $as_echo "$ac_try_echo") >&5
3151 (eval "$ac_compile") 2>conftest.er1
3152 ac_status=$?
3153 grep -v '^ *+' conftest.er1 >conftest.err
3154 rm -f conftest.er1
3155 cat conftest.err >&5
3156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); } && {
3158 test -z "$ac_c_werror_flag" ||
3159 test ! -s conftest.err
3160 } && test -s conftest.$ac_objext; then
3161 ac_cv_prog_cc_g=yes
3162 else
3163 $as_echo "$as_me: failed program was:" >&5
3164 sed 's/^/| /' conftest.$ac_ext >&5
3166 CFLAGS=""
3167 cat >conftest.$ac_ext <<_ACEOF
3168 /* confdefs.h. */
3169 _ACEOF
3170 cat confdefs.h >>conftest.$ac_ext
3171 cat >>conftest.$ac_ext <<_ACEOF
3172 /* end confdefs.h. */
3175 main ()
3179 return 0;
3181 _ACEOF
3182 rm -f conftest.$ac_objext
3183 if { (ac_try="$ac_compile"
3184 case "(($ac_try" in
3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186 *) ac_try_echo=$ac_try;;
3187 esac
3188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3189 $as_echo "$ac_try_echo") >&5
3190 (eval "$ac_compile") 2>conftest.er1
3191 ac_status=$?
3192 grep -v '^ *+' conftest.er1 >conftest.err
3193 rm -f conftest.er1
3194 cat conftest.err >&5
3195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); } && {
3197 test -z "$ac_c_werror_flag" ||
3198 test ! -s conftest.err
3199 } && test -s conftest.$ac_objext; then
3201 else
3202 $as_echo "$as_me: failed program was:" >&5
3203 sed 's/^/| /' conftest.$ac_ext >&5
3205 ac_c_werror_flag=$ac_save_c_werror_flag
3206 CFLAGS="-g"
3207 cat >conftest.$ac_ext <<_ACEOF
3208 /* confdefs.h. */
3209 _ACEOF
3210 cat confdefs.h >>conftest.$ac_ext
3211 cat >>conftest.$ac_ext <<_ACEOF
3212 /* end confdefs.h. */
3215 main ()
3219 return 0;
3221 _ACEOF
3222 rm -f conftest.$ac_objext
3223 if { (ac_try="$ac_compile"
3224 case "(($ac_try" in
3225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226 *) ac_try_echo=$ac_try;;
3227 esac
3228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3229 $as_echo "$ac_try_echo") >&5
3230 (eval "$ac_compile") 2>conftest.er1
3231 ac_status=$?
3232 grep -v '^ *+' conftest.er1 >conftest.err
3233 rm -f conftest.er1
3234 cat conftest.err >&5
3235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); } && {
3237 test -z "$ac_c_werror_flag" ||
3238 test ! -s conftest.err
3239 } && test -s conftest.$ac_objext; then
3240 ac_cv_prog_cc_g=yes
3241 else
3242 $as_echo "$as_me: failed program was:" >&5
3243 sed 's/^/| /' conftest.$ac_ext >&5
3248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3255 ac_c_werror_flag=$ac_save_c_werror_flag
3257 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3258 $as_echo "$ac_cv_prog_cc_g" >&6; }
3259 if test "$ac_test_CFLAGS" = set; then
3260 CFLAGS=$ac_save_CFLAGS
3261 elif test $ac_cv_prog_cc_g = yes; then
3262 if test "$GCC" = yes; then
3263 CFLAGS="-g -O2"
3264 else
3265 CFLAGS="-g"
3267 else
3268 if test "$GCC" = yes; then
3269 CFLAGS="-O2"
3270 else
3271 CFLAGS=
3274 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3275 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3276 if test "${ac_cv_prog_cc_c89+set}" = set; then
3277 $as_echo_n "(cached) " >&6
3278 else
3279 ac_cv_prog_cc_c89=no
3280 ac_save_CC=$CC
3281 cat >conftest.$ac_ext <<_ACEOF
3282 /* confdefs.h. */
3283 _ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h. */
3287 #include <stdarg.h>
3288 #include <stdio.h>
3289 #include <sys/types.h>
3290 #include <sys/stat.h>
3291 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3292 struct buf { int x; };
3293 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3294 static char *e (p, i)
3295 char **p;
3296 int i;
3298 return p[i];
3300 static char *f (char * (*g) (char **, int), char **p, ...)
3302 char *s;
3303 va_list v;
3304 va_start (v,p);
3305 s = g (p, va_arg (v,int));
3306 va_end (v);
3307 return s;
3310 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3311 function prototypes and stuff, but not '\xHH' hex character constants.
3312 These don't provoke an error unfortunately, instead are silently treated
3313 as 'x'. The following induces an error, until -std is added to get
3314 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3315 array size at least. It's necessary to write '\x00'==0 to get something
3316 that's true only with -std. */
3317 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3319 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3320 inside strings and character constants. */
3321 #define FOO(x) 'x'
3322 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3324 int test (int i, double x);
3325 struct s1 {int (*f) (int a);};
3326 struct s2 {int (*f) (double a);};
3327 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3328 int argc;
3329 char **argv;
3331 main ()
3333 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3335 return 0;
3337 _ACEOF
3338 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3339 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3341 CC="$ac_save_CC $ac_arg"
3342 rm -f conftest.$ac_objext
3343 if { (ac_try="$ac_compile"
3344 case "(($ac_try" in
3345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346 *) ac_try_echo=$ac_try;;
3347 esac
3348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3349 $as_echo "$ac_try_echo") >&5
3350 (eval "$ac_compile") 2>conftest.er1
3351 ac_status=$?
3352 grep -v '^ *+' conftest.er1 >conftest.err
3353 rm -f conftest.er1
3354 cat conftest.err >&5
3355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); } && {
3357 test -z "$ac_c_werror_flag" ||
3358 test ! -s conftest.err
3359 } && test -s conftest.$ac_objext; then
3360 ac_cv_prog_cc_c89=$ac_arg
3361 else
3362 $as_echo "$as_me: failed program was:" >&5
3363 sed 's/^/| /' conftest.$ac_ext >&5
3368 rm -f core conftest.err conftest.$ac_objext
3369 test "x$ac_cv_prog_cc_c89" != "xno" && break
3370 done
3371 rm -f conftest.$ac_ext
3372 CC=$ac_save_CC
3375 # AC_CACHE_VAL
3376 case "x$ac_cv_prog_cc_c89" in
3378 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3379 $as_echo "none needed" >&6; } ;;
3380 xno)
3381 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3382 $as_echo "unsupported" >&6; } ;;
3384 CC="$CC $ac_cv_prog_cc_c89"
3385 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3386 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3387 esac
3390 ac_ext=c
3391 ac_cpp='$CPP $CPPFLAGS'
3392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3395 DEPDIR="${am__leading_dot}deps"
3397 ac_config_commands="$ac_config_commands depfiles"
3400 am_make=${MAKE-make}
3401 cat > confinc << 'END'
3402 am__doit:
3403 @echo done
3404 .PHONY: am__doit
3406 # If we don't find an include directive, just comment out the code.
3407 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3408 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3409 am__include="#"
3410 am__quote=
3411 _am_result=none
3412 # First try GNU make style include.
3413 echo "include confinc" > confmf
3414 # We grep out `Entering directory' and `Leaving directory'
3415 # messages which can occur if `w' ends up in MAKEFLAGS.
3416 # In particular we don't look at `^make:' because GNU make might
3417 # be invoked under some other name (usually "gmake"), in which
3418 # case it prints its new name instead of `make'.
3419 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3420 am__include=include
3421 am__quote=
3422 _am_result=GNU
3424 # Now try BSD make style include.
3425 if test "$am__include" = "#"; then
3426 echo '.include "confinc"' > confmf
3427 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3428 am__include=.include
3429 am__quote="\""
3430 _am_result=BSD
3435 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3436 $as_echo "$_am_result" >&6; }
3437 rm -f confinc confmf
3439 # Check whether --enable-dependency-tracking was given.
3440 if test "${enable_dependency_tracking+set}" = set; then
3441 enableval=$enable_dependency_tracking;
3444 if test "x$enable_dependency_tracking" != xno; then
3445 am_depcomp="$ac_aux_dir/depcomp"
3446 AMDEPBACKSLASH='\'
3448 if test "x$enable_dependency_tracking" != xno; then
3449 AMDEP_TRUE=
3450 AMDEP_FALSE='#'
3451 else
3452 AMDEP_TRUE='#'
3453 AMDEP_FALSE=
3458 depcc="$CC" am_compiler_list=
3460 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3461 $as_echo_n "checking dependency style of $depcc... " >&6; }
3462 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3463 $as_echo_n "(cached) " >&6
3464 else
3465 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3466 # We make a subdir and do the tests there. Otherwise we can end up
3467 # making bogus files that we don't know about and never remove. For
3468 # instance it was reported that on HP-UX the gcc test will end up
3469 # making a dummy file named `D' -- because `-MD' means `put the output
3470 # in D'.
3471 mkdir conftest.dir
3472 # Copy depcomp to subdir because otherwise we won't find it if we're
3473 # using a relative directory.
3474 cp "$am_depcomp" conftest.dir
3475 cd conftest.dir
3476 # We will build objects and dependencies in a subdirectory because
3477 # it helps to detect inapplicable dependency modes. For instance
3478 # both Tru64's cc and ICC support -MD to output dependencies as a
3479 # side effect of compilation, but ICC will put the dependencies in
3480 # the current directory while Tru64 will put them in the object
3481 # directory.
3482 mkdir sub
3484 am_cv_CC_dependencies_compiler_type=none
3485 if test "$am_compiler_list" = ""; then
3486 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3488 for depmode in $am_compiler_list; do
3489 # Setup a source with many dependencies, because some compilers
3490 # like to wrap large dependency lists on column 80 (with \), and
3491 # we should not choose a depcomp mode which is confused by this.
3493 # We need to recreate these files for each test, as the compiler may
3494 # overwrite some of them when testing with obscure command lines.
3495 # This happens at least with the AIX C compiler.
3496 : > sub/conftest.c
3497 for i in 1 2 3 4 5 6; do
3498 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3499 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3500 # Solaris 8's {/usr,}/bin/sh.
3501 touch sub/conftst$i.h
3502 done
3503 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3505 case $depmode in
3506 nosideeffect)
3507 # after this tag, mechanisms are not by side-effect, so they'll
3508 # only be used when explicitly requested
3509 if test "x$enable_dependency_tracking" = xyes; then
3510 continue
3511 else
3512 break
3515 none) break ;;
3516 esac
3517 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3518 # mode. It turns out that the SunPro C++ compiler does not properly
3519 # handle `-M -o', and we need to detect this.
3520 if depmode=$depmode \
3521 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3522 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3523 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3524 >/dev/null 2>conftest.err &&
3525 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3526 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3527 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3528 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3529 # icc doesn't choke on unknown options, it will just issue warnings
3530 # or remarks (even with -Werror). So we grep stderr for any message
3531 # that says an option was ignored or not supported.
3532 # When given -MP, icc 7.0 and 7.1 complain thusly:
3533 # icc: Command line warning: ignoring option '-M'; no argument required
3534 # The diagnosis changed in icc 8.0:
3535 # icc: Command line remark: option '-MP' not supported
3536 if (grep 'ignoring option' conftest.err ||
3537 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3538 am_cv_CC_dependencies_compiler_type=$depmode
3539 break
3542 done
3544 cd ..
3545 rm -rf conftest.dir
3546 else
3547 am_cv_CC_dependencies_compiler_type=none
3551 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3552 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3553 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3556 test "x$enable_dependency_tracking" != xno \
3557 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3558 am__fastdepCC_TRUE=
3559 am__fastdepCC_FALSE='#'
3560 else
3561 am__fastdepCC_TRUE='#'
3562 am__fastdepCC_FALSE=
3566 # <= autoconf 2.61 doesn't have AC_PROG_AR, but 2.63 has it. Not sure about
3567 # 2.62.
3569 if test -n "$ac_tool_prefix"; then
3570 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3571 set dummy ${ac_tool_prefix}ar; ac_word=$2
3572 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3573 $as_echo_n "checking for $ac_word... " >&6; }
3574 if test "${ac_cv_prog_AR+set}" = set; then
3575 $as_echo_n "(cached) " >&6
3576 else
3577 if test -n "$AR"; then
3578 ac_cv_prog_AR="$AR" # Let the user override the test.
3579 else
3580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3581 for as_dir in $PATH
3583 IFS=$as_save_IFS
3584 test -z "$as_dir" && as_dir=.
3585 for ac_exec_ext in '' $ac_executable_extensions; do
3586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3587 ac_cv_prog_AR="${ac_tool_prefix}ar"
3588 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3589 break 2
3591 done
3592 done
3593 IFS=$as_save_IFS
3597 AR=$ac_cv_prog_AR
3598 if test -n "$AR"; then
3599 { $as_echo "$as_me:$LINENO: result: $AR" >&5
3600 $as_echo "$AR" >&6; }
3601 else
3602 { $as_echo "$as_me:$LINENO: result: no" >&5
3603 $as_echo "no" >&6; }
3608 if test -z "$ac_cv_prog_AR"; then
3609 ac_ct_AR=$AR
3610 # Extract the first word of "ar", so it can be a program name with args.
3611 set dummy ar; ac_word=$2
3612 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3613 $as_echo_n "checking for $ac_word... " >&6; }
3614 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3615 $as_echo_n "(cached) " >&6
3616 else
3617 if test -n "$ac_ct_AR"; then
3618 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3619 else
3620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3621 for as_dir in $PATH
3623 IFS=$as_save_IFS
3624 test -z "$as_dir" && as_dir=.
3625 for ac_exec_ext in '' $ac_executable_extensions; do
3626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3627 ac_cv_prog_ac_ct_AR="ar"
3628 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3629 break 2
3631 done
3632 done
3633 IFS=$as_save_IFS
3637 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3638 if test -n "$ac_ct_AR"; then
3639 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3640 $as_echo "$ac_ct_AR" >&6; }
3641 else
3642 { $as_echo "$as_me:$LINENO: result: no" >&5
3643 $as_echo "no" >&6; }
3646 if test "x$ac_ct_AR" = x; then
3647 AR=":"
3648 else
3649 case $cross_compiling:$ac_tool_warned in
3650 yes:)
3651 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3652 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3653 ac_tool_warned=yes ;;
3654 esac
3655 AR=$ac_ct_AR
3657 else
3658 AR="$ac_cv_prog_AR"
3662 for ac_prog in flex lex
3664 # Extract the first word of "$ac_prog", so it can be a program name with args.
3665 set dummy $ac_prog; ac_word=$2
3666 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3667 $as_echo_n "checking for $ac_word... " >&6; }
3668 if test "${ac_cv_prog_LEX+set}" = set; then
3669 $as_echo_n "(cached) " >&6
3670 else
3671 if test -n "$LEX"; then
3672 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3673 else
3674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3675 for as_dir in $PATH
3677 IFS=$as_save_IFS
3678 test -z "$as_dir" && as_dir=.
3679 for ac_exec_ext in '' $ac_executable_extensions; do
3680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3681 ac_cv_prog_LEX="$ac_prog"
3682 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3683 break 2
3685 done
3686 done
3687 IFS=$as_save_IFS
3691 LEX=$ac_cv_prog_LEX
3692 if test -n "$LEX"; then
3693 { $as_echo "$as_me:$LINENO: result: $LEX" >&5
3694 $as_echo "$LEX" >&6; }
3695 else
3696 { $as_echo "$as_me:$LINENO: result: no" >&5
3697 $as_echo "no" >&6; }
3701 test -n "$LEX" && break
3702 done
3703 test -n "$LEX" || LEX=":"
3705 if test "x$LEX" != "x:"; then
3706 cat >conftest.l <<_ACEOF
3708 a { ECHO; }
3709 b { REJECT; }
3710 c { yymore (); }
3711 d { yyless (1); }
3712 e { yyless (input () != 0); }
3713 f { unput (yytext[0]); }
3714 . { BEGIN INITIAL; }
3716 #ifdef YYTEXT_POINTER
3717 extern char *yytext;
3718 #endif
3720 main (void)
3722 return ! yylex () + ! yywrap ();
3724 _ACEOF
3725 { (ac_try="$LEX conftest.l"
3726 case "(($ac_try" in
3727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3728 *) ac_try_echo=$ac_try;;
3729 esac
3730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3731 $as_echo "$ac_try_echo") >&5
3732 (eval "$LEX conftest.l") 2>&5
3733 ac_status=$?
3734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); }
3736 { $as_echo "$as_me:$LINENO: checking lex output file root" >&5
3737 $as_echo_n "checking lex output file root... " >&6; }
3738 if test "${ac_cv_prog_lex_root+set}" = set; then
3739 $as_echo_n "(cached) " >&6
3740 else
3742 if test -f lex.yy.c; then
3743 ac_cv_prog_lex_root=lex.yy
3744 elif test -f lexyy.c; then
3745 ac_cv_prog_lex_root=lexyy
3746 else
3747 { { $as_echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3748 $as_echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3749 { (exit 1); exit 1; }; }
3752 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3753 $as_echo "$ac_cv_prog_lex_root" >&6; }
3754 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3756 if test -z "${LEXLIB+set}"; then
3757 { $as_echo "$as_me:$LINENO: checking lex library" >&5
3758 $as_echo_n "checking lex library... " >&6; }
3759 if test "${ac_cv_lib_lex+set}" = set; then
3760 $as_echo_n "(cached) " >&6
3761 else
3763 ac_save_LIBS=$LIBS
3764 ac_cv_lib_lex='none needed'
3765 for ac_lib in '' -lfl -ll; do
3766 LIBS="$ac_lib $ac_save_LIBS"
3767 cat >conftest.$ac_ext <<_ACEOF
3768 `cat $LEX_OUTPUT_ROOT.c`
3769 _ACEOF
3770 rm -f conftest.$ac_objext conftest$ac_exeext
3771 if { (ac_try="$ac_link"
3772 case "(($ac_try" in
3773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3774 *) ac_try_echo=$ac_try;;
3775 esac
3776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3777 $as_echo "$ac_try_echo") >&5
3778 (eval "$ac_link") 2>conftest.er1
3779 ac_status=$?
3780 grep -v '^ *+' conftest.er1 >conftest.err
3781 rm -f conftest.er1
3782 cat conftest.err >&5
3783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784 (exit $ac_status); } && {
3785 test -z "$ac_c_werror_flag" ||
3786 test ! -s conftest.err
3787 } && test -s conftest$ac_exeext && {
3788 test "$cross_compiling" = yes ||
3789 $as_test_x conftest$ac_exeext
3790 }; then
3791 ac_cv_lib_lex=$ac_lib
3792 else
3793 $as_echo "$as_me: failed program was:" >&5
3794 sed 's/^/| /' conftest.$ac_ext >&5
3799 rm -rf conftest.dSYM
3800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3801 conftest$ac_exeext conftest.$ac_ext
3802 test "$ac_cv_lib_lex" != 'none needed' && break
3803 done
3804 LIBS=$ac_save_LIBS
3807 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
3808 $as_echo "$ac_cv_lib_lex" >&6; }
3809 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
3813 { $as_echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3814 $as_echo_n "checking whether yytext is a pointer... " >&6; }
3815 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3816 $as_echo_n "(cached) " >&6
3817 else
3818 # POSIX says lex can declare yytext either as a pointer or an array; the
3819 # default is implementation-dependent. Figure out which it is, since
3820 # not all implementations provide the %pointer and %array declarations.
3821 ac_cv_prog_lex_yytext_pointer=no
3822 ac_save_LIBS=$LIBS
3823 LIBS="$LEXLIB $ac_save_LIBS"
3824 cat >conftest.$ac_ext <<_ACEOF
3825 #define YYTEXT_POINTER 1
3826 `cat $LEX_OUTPUT_ROOT.c`
3827 _ACEOF
3828 rm -f conftest.$ac_objext conftest$ac_exeext
3829 if { (ac_try="$ac_link"
3830 case "(($ac_try" in
3831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3832 *) ac_try_echo=$ac_try;;
3833 esac
3834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3835 $as_echo "$ac_try_echo") >&5
3836 (eval "$ac_link") 2>conftest.er1
3837 ac_status=$?
3838 grep -v '^ *+' conftest.er1 >conftest.err
3839 rm -f conftest.er1
3840 cat conftest.err >&5
3841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); } && {
3843 test -z "$ac_c_werror_flag" ||
3844 test ! -s conftest.err
3845 } && test -s conftest$ac_exeext && {
3846 test "$cross_compiling" = yes ||
3847 $as_test_x conftest$ac_exeext
3848 }; then
3849 ac_cv_prog_lex_yytext_pointer=yes
3850 else
3851 $as_echo "$as_me: failed program was:" >&5
3852 sed 's/^/| /' conftest.$ac_ext >&5
3857 rm -rf conftest.dSYM
3858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3859 conftest$ac_exeext conftest.$ac_ext
3860 LIBS=$ac_save_LIBS
3863 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3864 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
3865 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3867 cat >>confdefs.h <<\_ACEOF
3868 #define YYTEXT_POINTER 1
3869 _ACEOF
3872 rm -f conftest.l $LEX_OUTPUT_ROOT.c
3875 if test -n "$ac_tool_prefix"; then
3876 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3877 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3878 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3879 $as_echo_n "checking for $ac_word... " >&6; }
3880 if test "${ac_cv_prog_RANLIB+set}" = set; then
3881 $as_echo_n "(cached) " >&6
3882 else
3883 if test -n "$RANLIB"; then
3884 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3885 else
3886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887 for as_dir in $PATH
3889 IFS=$as_save_IFS
3890 test -z "$as_dir" && as_dir=.
3891 for ac_exec_ext in '' $ac_executable_extensions; do
3892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3893 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3894 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3895 break 2
3897 done
3898 done
3899 IFS=$as_save_IFS
3903 RANLIB=$ac_cv_prog_RANLIB
3904 if test -n "$RANLIB"; then
3905 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3906 $as_echo "$RANLIB" >&6; }
3907 else
3908 { $as_echo "$as_me:$LINENO: result: no" >&5
3909 $as_echo "no" >&6; }
3914 if test -z "$ac_cv_prog_RANLIB"; then
3915 ac_ct_RANLIB=$RANLIB
3916 # Extract the first word of "ranlib", so it can be a program name with args.
3917 set dummy ranlib; ac_word=$2
3918 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3919 $as_echo_n "checking for $ac_word... " >&6; }
3920 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3921 $as_echo_n "(cached) " >&6
3922 else
3923 if test -n "$ac_ct_RANLIB"; then
3924 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3925 else
3926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3927 for as_dir in $PATH
3929 IFS=$as_save_IFS
3930 test -z "$as_dir" && as_dir=.
3931 for ac_exec_ext in '' $ac_executable_extensions; do
3932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3933 ac_cv_prog_ac_ct_RANLIB="ranlib"
3934 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3935 break 2
3937 done
3938 done
3939 IFS=$as_save_IFS
3943 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3944 if test -n "$ac_ct_RANLIB"; then
3945 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3946 $as_echo "$ac_ct_RANLIB" >&6; }
3947 else
3948 { $as_echo "$as_me:$LINENO: result: no" >&5
3949 $as_echo "no" >&6; }
3952 if test "x$ac_ct_RANLIB" = x; then
3953 RANLIB=":"
3954 else
3955 case $cross_compiling:$ac_tool_warned in
3956 yes:)
3957 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3959 ac_tool_warned=yes ;;
3960 esac
3961 RANLIB=$ac_ct_RANLIB
3963 else
3964 RANLIB="$ac_cv_prog_RANLIB"
3967 for ac_prog in 'bison -y' byacc
3969 # Extract the first word of "$ac_prog", so it can be a program name with args.
3970 set dummy $ac_prog; ac_word=$2
3971 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3972 $as_echo_n "checking for $ac_word... " >&6; }
3973 if test "${ac_cv_prog_YACC+set}" = set; then
3974 $as_echo_n "(cached) " >&6
3975 else
3976 if test -n "$YACC"; then
3977 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3978 else
3979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3980 for as_dir in $PATH
3982 IFS=$as_save_IFS
3983 test -z "$as_dir" && as_dir=.
3984 for ac_exec_ext in '' $ac_executable_extensions; do
3985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3986 ac_cv_prog_YACC="$ac_prog"
3987 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3988 break 2
3990 done
3991 done
3992 IFS=$as_save_IFS
3996 YACC=$ac_cv_prog_YACC
3997 if test -n "$YACC"; then
3998 { $as_echo "$as_me:$LINENO: result: $YACC" >&5
3999 $as_echo "$YACC" >&6; }
4000 else
4001 { $as_echo "$as_me:$LINENO: result: no" >&5
4002 $as_echo "no" >&6; }
4006 test -n "$YACC" && break
4007 done
4008 test -n "$YACC" || YACC="yacc"
4013 ac_ext=c
4014 ac_cpp='$CPP $CPPFLAGS'
4015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4018 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4019 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4020 # On Suns, sometimes $CPP names a directory.
4021 if test -n "$CPP" && test -d "$CPP"; then
4022 CPP=
4024 if test -z "$CPP"; then
4025 if test "${ac_cv_prog_CPP+set}" = set; then
4026 $as_echo_n "(cached) " >&6
4027 else
4028 # Double quotes because CPP needs to be expanded
4029 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4031 ac_preproc_ok=false
4032 for ac_c_preproc_warn_flag in '' yes
4034 # Use a header file that comes with gcc, so configuring glibc
4035 # with a fresh cross-compiler works.
4036 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4037 # <limits.h> exists even on freestanding compilers.
4038 # On the NeXT, cc -E runs the code through the compiler's parser,
4039 # not just through cpp. "Syntax error" is here to catch this case.
4040 cat >conftest.$ac_ext <<_ACEOF
4041 /* confdefs.h. */
4042 _ACEOF
4043 cat confdefs.h >>conftest.$ac_ext
4044 cat >>conftest.$ac_ext <<_ACEOF
4045 /* end confdefs.h. */
4046 #ifdef __STDC__
4047 # include <limits.h>
4048 #else
4049 # include <assert.h>
4050 #endif
4051 Syntax error
4052 _ACEOF
4053 if { (ac_try="$ac_cpp conftest.$ac_ext"
4054 case "(($ac_try" in
4055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4056 *) ac_try_echo=$ac_try;;
4057 esac
4058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4059 $as_echo "$ac_try_echo") >&5
4060 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4061 ac_status=$?
4062 grep -v '^ *+' conftest.er1 >conftest.err
4063 rm -f conftest.er1
4064 cat conftest.err >&5
4065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); } >/dev/null && {
4067 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4068 test ! -s conftest.err
4069 }; then
4071 else
4072 $as_echo "$as_me: failed program was:" >&5
4073 sed 's/^/| /' conftest.$ac_ext >&5
4075 # Broken: fails on valid input.
4076 continue
4079 rm -f conftest.err conftest.$ac_ext
4081 # OK, works on sane cases. Now check whether nonexistent headers
4082 # can be detected and how.
4083 cat >conftest.$ac_ext <<_ACEOF
4084 /* confdefs.h. */
4085 _ACEOF
4086 cat confdefs.h >>conftest.$ac_ext
4087 cat >>conftest.$ac_ext <<_ACEOF
4088 /* end confdefs.h. */
4089 #include <ac_nonexistent.h>
4090 _ACEOF
4091 if { (ac_try="$ac_cpp conftest.$ac_ext"
4092 case "(($ac_try" in
4093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094 *) ac_try_echo=$ac_try;;
4095 esac
4096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4097 $as_echo "$ac_try_echo") >&5
4098 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4099 ac_status=$?
4100 grep -v '^ *+' conftest.er1 >conftest.err
4101 rm -f conftest.er1
4102 cat conftest.err >&5
4103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); } >/dev/null && {
4105 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4106 test ! -s conftest.err
4107 }; then
4108 # Broken: success on invalid input.
4109 continue
4110 else
4111 $as_echo "$as_me: failed program was:" >&5
4112 sed 's/^/| /' conftest.$ac_ext >&5
4114 # Passes both tests.
4115 ac_preproc_ok=:
4116 break
4119 rm -f conftest.err conftest.$ac_ext
4121 done
4122 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4123 rm -f conftest.err conftest.$ac_ext
4124 if $ac_preproc_ok; then
4125 break
4128 done
4129 ac_cv_prog_CPP=$CPP
4132 CPP=$ac_cv_prog_CPP
4133 else
4134 ac_cv_prog_CPP=$CPP
4136 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4137 $as_echo "$CPP" >&6; }
4138 ac_preproc_ok=false
4139 for ac_c_preproc_warn_flag in '' yes
4141 # Use a header file that comes with gcc, so configuring glibc
4142 # with a fresh cross-compiler works.
4143 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4144 # <limits.h> exists even on freestanding compilers.
4145 # On the NeXT, cc -E runs the code through the compiler's parser,
4146 # not just through cpp. "Syntax error" is here to catch this case.
4147 cat >conftest.$ac_ext <<_ACEOF
4148 /* confdefs.h. */
4149 _ACEOF
4150 cat confdefs.h >>conftest.$ac_ext
4151 cat >>conftest.$ac_ext <<_ACEOF
4152 /* end confdefs.h. */
4153 #ifdef __STDC__
4154 # include <limits.h>
4155 #else
4156 # include <assert.h>
4157 #endif
4158 Syntax error
4159 _ACEOF
4160 if { (ac_try="$ac_cpp conftest.$ac_ext"
4161 case "(($ac_try" in
4162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4163 *) ac_try_echo=$ac_try;;
4164 esac
4165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4166 $as_echo "$ac_try_echo") >&5
4167 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4168 ac_status=$?
4169 grep -v '^ *+' conftest.er1 >conftest.err
4170 rm -f conftest.er1
4171 cat conftest.err >&5
4172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); } >/dev/null && {
4174 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4175 test ! -s conftest.err
4176 }; then
4178 else
4179 $as_echo "$as_me: failed program was:" >&5
4180 sed 's/^/| /' conftest.$ac_ext >&5
4182 # Broken: fails on valid input.
4183 continue
4186 rm -f conftest.err conftest.$ac_ext
4188 # OK, works on sane cases. Now check whether nonexistent headers
4189 # can be detected and how.
4190 cat >conftest.$ac_ext <<_ACEOF
4191 /* confdefs.h. */
4192 _ACEOF
4193 cat confdefs.h >>conftest.$ac_ext
4194 cat >>conftest.$ac_ext <<_ACEOF
4195 /* end confdefs.h. */
4196 #include <ac_nonexistent.h>
4197 _ACEOF
4198 if { (ac_try="$ac_cpp conftest.$ac_ext"
4199 case "(($ac_try" in
4200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4201 *) ac_try_echo=$ac_try;;
4202 esac
4203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4204 $as_echo "$ac_try_echo") >&5
4205 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4206 ac_status=$?
4207 grep -v '^ *+' conftest.er1 >conftest.err
4208 rm -f conftest.er1
4209 cat conftest.err >&5
4210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); } >/dev/null && {
4212 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4213 test ! -s conftest.err
4214 }; then
4215 # Broken: success on invalid input.
4216 continue
4217 else
4218 $as_echo "$as_me: failed program was:" >&5
4219 sed 's/^/| /' conftest.$ac_ext >&5
4221 # Passes both tests.
4222 ac_preproc_ok=:
4223 break
4226 rm -f conftest.err conftest.$ac_ext
4228 done
4229 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4230 rm -f conftest.err conftest.$ac_ext
4231 if $ac_preproc_ok; then
4233 else
4234 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4236 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4237 See \`config.log' for more details." >&5
4238 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4239 See \`config.log' for more details." >&2;}
4240 { (exit 1); exit 1; }; }; }
4243 ac_ext=c
4244 ac_cpp='$CPP $CPPFLAGS'
4245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4250 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4251 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4252 if test "${ac_cv_path_GREP+set}" = set; then
4253 $as_echo_n "(cached) " >&6
4254 else
4255 if test -z "$GREP"; then
4256 ac_path_GREP_found=false
4257 # Loop through the user's path and test for each of PROGNAME-LIST
4258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4259 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4261 IFS=$as_save_IFS
4262 test -z "$as_dir" && as_dir=.
4263 for ac_prog in grep ggrep; do
4264 for ac_exec_ext in '' $ac_executable_extensions; do
4265 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4266 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4267 # Check for GNU ac_path_GREP and select it if it is found.
4268 # Check for GNU $ac_path_GREP
4269 case `"$ac_path_GREP" --version 2>&1` in
4270 *GNU*)
4271 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4273 ac_count=0
4274 $as_echo_n 0123456789 >"conftest.in"
4275 while :
4277 cat "conftest.in" "conftest.in" >"conftest.tmp"
4278 mv "conftest.tmp" "conftest.in"
4279 cp "conftest.in" "conftest.nl"
4280 $as_echo 'GREP' >> "conftest.nl"
4281 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4282 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4283 ac_count=`expr $ac_count + 1`
4284 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4285 # Best one so far, save it but keep looking for a better one
4286 ac_cv_path_GREP="$ac_path_GREP"
4287 ac_path_GREP_max=$ac_count
4289 # 10*(2^10) chars as input seems more than enough
4290 test $ac_count -gt 10 && break
4291 done
4292 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4293 esac
4295 $ac_path_GREP_found && break 3
4296 done
4297 done
4298 done
4299 IFS=$as_save_IFS
4300 if test -z "$ac_cv_path_GREP"; then
4301 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4302 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4303 { (exit 1); exit 1; }; }
4305 else
4306 ac_cv_path_GREP=$GREP
4310 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4311 $as_echo "$ac_cv_path_GREP" >&6; }
4312 GREP="$ac_cv_path_GREP"
4315 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4316 $as_echo_n "checking for egrep... " >&6; }
4317 if test "${ac_cv_path_EGREP+set}" = set; then
4318 $as_echo_n "(cached) " >&6
4319 else
4320 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4321 then ac_cv_path_EGREP="$GREP -E"
4322 else
4323 if test -z "$EGREP"; then
4324 ac_path_EGREP_found=false
4325 # Loop through the user's path and test for each of PROGNAME-LIST
4326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4329 IFS=$as_save_IFS
4330 test -z "$as_dir" && as_dir=.
4331 for ac_prog in egrep; do
4332 for ac_exec_ext in '' $ac_executable_extensions; do
4333 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4334 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4335 # Check for GNU ac_path_EGREP and select it if it is found.
4336 # Check for GNU $ac_path_EGREP
4337 case `"$ac_path_EGREP" --version 2>&1` in
4338 *GNU*)
4339 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4341 ac_count=0
4342 $as_echo_n 0123456789 >"conftest.in"
4343 while :
4345 cat "conftest.in" "conftest.in" >"conftest.tmp"
4346 mv "conftest.tmp" "conftest.in"
4347 cp "conftest.in" "conftest.nl"
4348 $as_echo 'EGREP' >> "conftest.nl"
4349 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4350 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4351 ac_count=`expr $ac_count + 1`
4352 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4353 # Best one so far, save it but keep looking for a better one
4354 ac_cv_path_EGREP="$ac_path_EGREP"
4355 ac_path_EGREP_max=$ac_count
4357 # 10*(2^10) chars as input seems more than enough
4358 test $ac_count -gt 10 && break
4359 done
4360 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4361 esac
4363 $ac_path_EGREP_found && break 3
4364 done
4365 done
4366 done
4367 IFS=$as_save_IFS
4368 if test -z "$ac_cv_path_EGREP"; then
4369 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4370 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4371 { (exit 1); exit 1; }; }
4373 else
4374 ac_cv_path_EGREP=$EGREP
4379 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4380 $as_echo "$ac_cv_path_EGREP" >&6; }
4381 EGREP="$ac_cv_path_EGREP"
4384 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4385 $as_echo_n "checking for ANSI C header files... " >&6; }
4386 if test "${ac_cv_header_stdc+set}" = set; then
4387 $as_echo_n "(cached) " >&6
4388 else
4389 cat >conftest.$ac_ext <<_ACEOF
4390 /* confdefs.h. */
4391 _ACEOF
4392 cat confdefs.h >>conftest.$ac_ext
4393 cat >>conftest.$ac_ext <<_ACEOF
4394 /* end confdefs.h. */
4395 #include <stdlib.h>
4396 #include <stdarg.h>
4397 #include <string.h>
4398 #include <float.h>
4401 main ()
4405 return 0;
4407 _ACEOF
4408 rm -f conftest.$ac_objext
4409 if { (ac_try="$ac_compile"
4410 case "(($ac_try" in
4411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4412 *) ac_try_echo=$ac_try;;
4413 esac
4414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4415 $as_echo "$ac_try_echo") >&5
4416 (eval "$ac_compile") 2>conftest.er1
4417 ac_status=$?
4418 grep -v '^ *+' conftest.er1 >conftest.err
4419 rm -f conftest.er1
4420 cat conftest.err >&5
4421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); } && {
4423 test -z "$ac_c_werror_flag" ||
4424 test ! -s conftest.err
4425 } && test -s conftest.$ac_objext; then
4426 ac_cv_header_stdc=yes
4427 else
4428 $as_echo "$as_me: failed program was:" >&5
4429 sed 's/^/| /' conftest.$ac_ext >&5
4431 ac_cv_header_stdc=no
4434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4436 if test $ac_cv_header_stdc = yes; then
4437 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4438 cat >conftest.$ac_ext <<_ACEOF
4439 /* confdefs.h. */
4440 _ACEOF
4441 cat confdefs.h >>conftest.$ac_ext
4442 cat >>conftest.$ac_ext <<_ACEOF
4443 /* end confdefs.h. */
4444 #include <string.h>
4446 _ACEOF
4447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4448 $EGREP "memchr" >/dev/null 2>&1; then
4450 else
4451 ac_cv_header_stdc=no
4453 rm -f conftest*
4457 if test $ac_cv_header_stdc = yes; then
4458 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4459 cat >conftest.$ac_ext <<_ACEOF
4460 /* confdefs.h. */
4461 _ACEOF
4462 cat confdefs.h >>conftest.$ac_ext
4463 cat >>conftest.$ac_ext <<_ACEOF
4464 /* end confdefs.h. */
4465 #include <stdlib.h>
4467 _ACEOF
4468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4469 $EGREP "free" >/dev/null 2>&1; then
4471 else
4472 ac_cv_header_stdc=no
4474 rm -f conftest*
4478 if test $ac_cv_header_stdc = yes; then
4479 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4480 if test "$cross_compiling" = yes; then
4482 else
4483 cat >conftest.$ac_ext <<_ACEOF
4484 /* confdefs.h. */
4485 _ACEOF
4486 cat confdefs.h >>conftest.$ac_ext
4487 cat >>conftest.$ac_ext <<_ACEOF
4488 /* end confdefs.h. */
4489 #include <ctype.h>
4490 #include <stdlib.h>
4491 #if ((' ' & 0x0FF) == 0x020)
4492 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4493 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4494 #else
4495 # define ISLOWER(c) \
4496 (('a' <= (c) && (c) <= 'i') \
4497 || ('j' <= (c) && (c) <= 'r') \
4498 || ('s' <= (c) && (c) <= 'z'))
4499 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4500 #endif
4502 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4504 main ()
4506 int i;
4507 for (i = 0; i < 256; i++)
4508 if (XOR (islower (i), ISLOWER (i))
4509 || toupper (i) != TOUPPER (i))
4510 return 2;
4511 return 0;
4513 _ACEOF
4514 rm -f conftest$ac_exeext
4515 if { (ac_try="$ac_link"
4516 case "(($ac_try" in
4517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4518 *) ac_try_echo=$ac_try;;
4519 esac
4520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4521 $as_echo "$ac_try_echo") >&5
4522 (eval "$ac_link") 2>&5
4523 ac_status=$?
4524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4526 { (case "(($ac_try" in
4527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4528 *) ac_try_echo=$ac_try;;
4529 esac
4530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4531 $as_echo "$ac_try_echo") >&5
4532 (eval "$ac_try") 2>&5
4533 ac_status=$?
4534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535 (exit $ac_status); }; }; then
4537 else
4538 $as_echo "$as_me: program exited with status $ac_status" >&5
4539 $as_echo "$as_me: failed program was:" >&5
4540 sed 's/^/| /' conftest.$ac_ext >&5
4542 ( exit $ac_status )
4543 ac_cv_header_stdc=no
4545 rm -rf conftest.dSYM
4546 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4552 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4553 $as_echo "$ac_cv_header_stdc" >&6; }
4554 if test $ac_cv_header_stdc = yes; then
4556 cat >>confdefs.h <<\_ACEOF
4557 #define STDC_HEADERS 1
4558 _ACEOF
4562 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4572 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4573 inttypes.h stdint.h unistd.h
4575 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4576 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4577 $as_echo_n "checking for $ac_header... " >&6; }
4578 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4579 $as_echo_n "(cached) " >&6
4580 else
4581 cat >conftest.$ac_ext <<_ACEOF
4582 /* confdefs.h. */
4583 _ACEOF
4584 cat confdefs.h >>conftest.$ac_ext
4585 cat >>conftest.$ac_ext <<_ACEOF
4586 /* end confdefs.h. */
4587 $ac_includes_default
4589 #include <$ac_header>
4590 _ACEOF
4591 rm -f conftest.$ac_objext
4592 if { (ac_try="$ac_compile"
4593 case "(($ac_try" in
4594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4595 *) ac_try_echo=$ac_try;;
4596 esac
4597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4598 $as_echo "$ac_try_echo") >&5
4599 (eval "$ac_compile") 2>conftest.er1
4600 ac_status=$?
4601 grep -v '^ *+' conftest.er1 >conftest.err
4602 rm -f conftest.er1
4603 cat conftest.err >&5
4604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); } && {
4606 test -z "$ac_c_werror_flag" ||
4607 test ! -s conftest.err
4608 } && test -s conftest.$ac_objext; then
4609 eval "$as_ac_Header=yes"
4610 else
4611 $as_echo "$as_me: failed program was:" >&5
4612 sed 's/^/| /' conftest.$ac_ext >&5
4614 eval "$as_ac_Header=no"
4617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4619 ac_res=`eval 'as_val=${'$as_ac_Header'}
4620 $as_echo "$as_val"'`
4621 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4622 $as_echo "$ac_res" >&6; }
4623 as_val=`eval 'as_val=${'$as_ac_Header'}
4624 $as_echo "$as_val"'`
4625 if test "x$as_val" = x""yes; then
4626 cat >>confdefs.h <<_ACEOF
4627 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4628 _ACEOF
4632 done
4639 for ac_header in $ac_header_list
4641 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4643 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4644 $as_echo_n "checking for $ac_header... " >&6; }
4645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4646 $as_echo_n "(cached) " >&6
4648 ac_res=`eval 'as_val=${'$as_ac_Header'}
4649 $as_echo "$as_val"'`
4650 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4651 $as_echo "$ac_res" >&6; }
4652 else
4653 # Is the header compilable?
4654 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4655 $as_echo_n "checking $ac_header usability... " >&6; }
4656 cat >conftest.$ac_ext <<_ACEOF
4657 /* confdefs.h. */
4658 _ACEOF
4659 cat confdefs.h >>conftest.$ac_ext
4660 cat >>conftest.$ac_ext <<_ACEOF
4661 /* end confdefs.h. */
4662 $ac_includes_default
4663 #include <$ac_header>
4664 _ACEOF
4665 rm -f conftest.$ac_objext
4666 if { (ac_try="$ac_compile"
4667 case "(($ac_try" in
4668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4669 *) ac_try_echo=$ac_try;;
4670 esac
4671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4672 $as_echo "$ac_try_echo") >&5
4673 (eval "$ac_compile") 2>conftest.er1
4674 ac_status=$?
4675 grep -v '^ *+' conftest.er1 >conftest.err
4676 rm -f conftest.er1
4677 cat conftest.err >&5
4678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); } && {
4680 test -z "$ac_c_werror_flag" ||
4681 test ! -s conftest.err
4682 } && test -s conftest.$ac_objext; then
4683 ac_header_compiler=yes
4684 else
4685 $as_echo "$as_me: failed program was:" >&5
4686 sed 's/^/| /' conftest.$ac_ext >&5
4688 ac_header_compiler=no
4691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4692 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4693 $as_echo "$ac_header_compiler" >&6; }
4695 # Is the header present?
4696 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4697 $as_echo_n "checking $ac_header presence... " >&6; }
4698 cat >conftest.$ac_ext <<_ACEOF
4699 /* confdefs.h. */
4700 _ACEOF
4701 cat confdefs.h >>conftest.$ac_ext
4702 cat >>conftest.$ac_ext <<_ACEOF
4703 /* end confdefs.h. */
4704 #include <$ac_header>
4705 _ACEOF
4706 if { (ac_try="$ac_cpp conftest.$ac_ext"
4707 case "(($ac_try" in
4708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4709 *) ac_try_echo=$ac_try;;
4710 esac
4711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4712 $as_echo "$ac_try_echo") >&5
4713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4714 ac_status=$?
4715 grep -v '^ *+' conftest.er1 >conftest.err
4716 rm -f conftest.er1
4717 cat conftest.err >&5
4718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); } >/dev/null && {
4720 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4721 test ! -s conftest.err
4722 }; then
4723 ac_header_preproc=yes
4724 else
4725 $as_echo "$as_me: failed program was:" >&5
4726 sed 's/^/| /' conftest.$ac_ext >&5
4728 ac_header_preproc=no
4731 rm -f conftest.err conftest.$ac_ext
4732 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4733 $as_echo "$ac_header_preproc" >&6; }
4735 # So? What about this header?
4736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4737 yes:no: )
4738 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4739 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4740 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4741 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4742 ac_header_preproc=yes
4744 no:yes:* )
4745 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4746 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4747 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4748 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4749 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4750 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4751 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4752 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4753 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4754 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4755 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4756 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4757 ( cat <<\_ASBOX
4758 ## ------------------------------------------------ ##
4759 ## Report this to ltp-results@lists.sourceforge.net ##
4760 ## ------------------------------------------------ ##
4761 _ASBOX
4762 ) | sed "s/^/$as_me: WARNING: /" >&2
4764 esac
4765 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4766 $as_echo_n "checking for $ac_header... " >&6; }
4767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4768 $as_echo_n "(cached) " >&6
4769 else
4770 eval "$as_ac_Header=\$ac_header_preproc"
4772 ac_res=`eval 'as_val=${'$as_ac_Header'}
4773 $as_echo "$as_val"'`
4774 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4775 $as_echo "$ac_res" >&6; }
4778 as_val=`eval 'as_val=${'$as_ac_Header'}
4779 $as_echo "$as_val"'`
4780 if test "x$as_val" = x""yes; then
4781 cat >>confdefs.h <<_ACEOF
4782 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4783 _ACEOF
4787 done
4842 # open_hpi_testsuite does NOT fit cleanly in the build. BLAH.
4843 #AC_CONFIG_SUBDIRS([ \
4844 # testcases/open_hpi_testsuite/ \
4845 # testcases/kernel/syscalls/pcllib/ \
4850 subdirs="$subdirs testcases/kernel/syscalls/pcllib/"
4855 for ac_header in sys/capability.h
4857 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4859 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4860 $as_echo_n "checking for $ac_header... " >&6; }
4861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4862 $as_echo_n "(cached) " >&6
4864 ac_res=`eval 'as_val=${'$as_ac_Header'}
4865 $as_echo "$as_val"'`
4866 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4867 $as_echo "$ac_res" >&6; }
4868 else
4869 # Is the header compilable?
4870 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4871 $as_echo_n "checking $ac_header usability... " >&6; }
4872 cat >conftest.$ac_ext <<_ACEOF
4873 /* confdefs.h. */
4874 _ACEOF
4875 cat confdefs.h >>conftest.$ac_ext
4876 cat >>conftest.$ac_ext <<_ACEOF
4877 /* end confdefs.h. */
4878 $ac_includes_default
4879 #include <$ac_header>
4880 _ACEOF
4881 rm -f conftest.$ac_objext
4882 if { (ac_try="$ac_compile"
4883 case "(($ac_try" in
4884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4885 *) ac_try_echo=$ac_try;;
4886 esac
4887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4888 $as_echo "$ac_try_echo") >&5
4889 (eval "$ac_compile") 2>conftest.er1
4890 ac_status=$?
4891 grep -v '^ *+' conftest.er1 >conftest.err
4892 rm -f conftest.er1
4893 cat conftest.err >&5
4894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); } && {
4896 test -z "$ac_c_werror_flag" ||
4897 test ! -s conftest.err
4898 } && test -s conftest.$ac_objext; then
4899 ac_header_compiler=yes
4900 else
4901 $as_echo "$as_me: failed program was:" >&5
4902 sed 's/^/| /' conftest.$ac_ext >&5
4904 ac_header_compiler=no
4907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4908 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4909 $as_echo "$ac_header_compiler" >&6; }
4911 # Is the header present?
4912 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4913 $as_echo_n "checking $ac_header presence... " >&6; }
4914 cat >conftest.$ac_ext <<_ACEOF
4915 /* confdefs.h. */
4916 _ACEOF
4917 cat confdefs.h >>conftest.$ac_ext
4918 cat >>conftest.$ac_ext <<_ACEOF
4919 /* end confdefs.h. */
4920 #include <$ac_header>
4921 _ACEOF
4922 if { (ac_try="$ac_cpp conftest.$ac_ext"
4923 case "(($ac_try" in
4924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4925 *) ac_try_echo=$ac_try;;
4926 esac
4927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4928 $as_echo "$ac_try_echo") >&5
4929 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4930 ac_status=$?
4931 grep -v '^ *+' conftest.er1 >conftest.err
4932 rm -f conftest.er1
4933 cat conftest.err >&5
4934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935 (exit $ac_status); } >/dev/null && {
4936 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4937 test ! -s conftest.err
4938 }; then
4939 ac_header_preproc=yes
4940 else
4941 $as_echo "$as_me: failed program was:" >&5
4942 sed 's/^/| /' conftest.$ac_ext >&5
4944 ac_header_preproc=no
4947 rm -f conftest.err conftest.$ac_ext
4948 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4949 $as_echo "$ac_header_preproc" >&6; }
4951 # So? What about this header?
4952 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4953 yes:no: )
4954 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4955 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4956 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4957 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4958 ac_header_preproc=yes
4960 no:yes:* )
4961 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4962 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4963 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4964 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4965 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4966 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4967 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4968 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4969 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4970 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4971 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4972 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4973 ( cat <<\_ASBOX
4974 ## ------------------------------------------------ ##
4975 ## Report this to ltp-results@lists.sourceforge.net ##
4976 ## ------------------------------------------------ ##
4977 _ASBOX
4978 ) | sed "s/^/$as_me: WARNING: /" >&2
4980 esac
4981 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4982 $as_echo_n "checking for $ac_header... " >&6; }
4983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4984 $as_echo_n "(cached) " >&6
4985 else
4986 eval "$as_ac_Header=\$ac_header_preproc"
4988 ac_res=`eval 'as_val=${'$as_ac_Header'}
4989 $as_echo "$as_val"'`
4990 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4991 $as_echo "$ac_res" >&6; }
4994 as_val=`eval 'as_val=${'$as_ac_Header'}
4995 $as_echo "$as_val"'`
4996 if test "x$as_val" = x""yes; then
4997 cat >>confdefs.h <<_ACEOF
4998 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4999 _ACEOF
5002 for ac_header in attr/xattr.h
5004 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5006 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5007 $as_echo_n "checking for $ac_header... " >&6; }
5008 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5009 $as_echo_n "(cached) " >&6
5011 ac_res=`eval 'as_val=${'$as_ac_Header'}
5012 $as_echo "$as_val"'`
5013 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5014 $as_echo "$ac_res" >&6; }
5015 else
5016 # Is the header compilable?
5017 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5018 $as_echo_n "checking $ac_header usability... " >&6; }
5019 cat >conftest.$ac_ext <<_ACEOF
5020 /* confdefs.h. */
5021 _ACEOF
5022 cat confdefs.h >>conftest.$ac_ext
5023 cat >>conftest.$ac_ext <<_ACEOF
5024 /* end confdefs.h. */
5025 $ac_includes_default
5026 #include <$ac_header>
5027 _ACEOF
5028 rm -f conftest.$ac_objext
5029 if { (ac_try="$ac_compile"
5030 case "(($ac_try" in
5031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5032 *) ac_try_echo=$ac_try;;
5033 esac
5034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5035 $as_echo "$ac_try_echo") >&5
5036 (eval "$ac_compile") 2>conftest.er1
5037 ac_status=$?
5038 grep -v '^ *+' conftest.er1 >conftest.err
5039 rm -f conftest.er1
5040 cat conftest.err >&5
5041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); } && {
5043 test -z "$ac_c_werror_flag" ||
5044 test ! -s conftest.err
5045 } && test -s conftest.$ac_objext; then
5046 ac_header_compiler=yes
5047 else
5048 $as_echo "$as_me: failed program was:" >&5
5049 sed 's/^/| /' conftest.$ac_ext >&5
5051 ac_header_compiler=no
5054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5055 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5056 $as_echo "$ac_header_compiler" >&6; }
5058 # Is the header present?
5059 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5060 $as_echo_n "checking $ac_header presence... " >&6; }
5061 cat >conftest.$ac_ext <<_ACEOF
5062 /* confdefs.h. */
5063 _ACEOF
5064 cat confdefs.h >>conftest.$ac_ext
5065 cat >>conftest.$ac_ext <<_ACEOF
5066 /* end confdefs.h. */
5067 #include <$ac_header>
5068 _ACEOF
5069 if { (ac_try="$ac_cpp conftest.$ac_ext"
5070 case "(($ac_try" in
5071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5072 *) ac_try_echo=$ac_try;;
5073 esac
5074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5075 $as_echo "$ac_try_echo") >&5
5076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5077 ac_status=$?
5078 grep -v '^ *+' conftest.er1 >conftest.err
5079 rm -f conftest.er1
5080 cat conftest.err >&5
5081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); } >/dev/null && {
5083 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5084 test ! -s conftest.err
5085 }; then
5086 ac_header_preproc=yes
5087 else
5088 $as_echo "$as_me: failed program was:" >&5
5089 sed 's/^/| /' conftest.$ac_ext >&5
5091 ac_header_preproc=no
5094 rm -f conftest.err conftest.$ac_ext
5095 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5096 $as_echo "$ac_header_preproc" >&6; }
5098 # So? What about this header?
5099 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5100 yes:no: )
5101 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5102 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5103 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5104 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5105 ac_header_preproc=yes
5107 no:yes:* )
5108 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5109 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5110 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5111 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5112 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5113 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5114 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5115 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5116 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5117 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5118 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5119 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5120 ( cat <<\_ASBOX
5121 ## ------------------------------------------------ ##
5122 ## Report this to ltp-results@lists.sourceforge.net ##
5123 ## ------------------------------------------------ ##
5124 _ASBOX
5125 ) | sed "s/^/$as_me: WARNING: /" >&2
5127 esac
5128 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5129 $as_echo_n "checking for $ac_header... " >&6; }
5130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5131 $as_echo_n "(cached) " >&6
5132 else
5133 eval "$as_ac_Header=\$ac_header_preproc"
5135 ac_res=`eval 'as_val=${'$as_ac_Header'}
5136 $as_echo "$as_val"'`
5137 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5138 $as_echo "$ac_res" >&6; }
5141 as_val=`eval 'as_val=${'$as_ac_Header'}
5142 $as_echo "$as_val"'`
5143 if test "x$as_val" = x""yes; then
5144 cat >>confdefs.h <<_ACEOF
5145 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5146 _ACEOF
5150 done
5152 LTP_CAPABILITY_SUPPORT=yes
5153 { $as_echo "$as_me:$LINENO: checking for cap_free in -lcap" >&5
5154 $as_echo_n "checking for cap_free in -lcap... " >&6; }
5155 if test "${ac_cv_lib_cap_cap_free+set}" = set; then
5156 $as_echo_n "(cached) " >&6
5157 else
5158 ac_check_lib_save_LIBS=$LIBS
5159 LIBS="-lcap $LIBS"
5160 cat >conftest.$ac_ext <<_ACEOF
5161 /* confdefs.h. */
5162 _ACEOF
5163 cat confdefs.h >>conftest.$ac_ext
5164 cat >>conftest.$ac_ext <<_ACEOF
5165 /* end confdefs.h. */
5167 /* Override any GCC internal prototype to avoid an error.
5168 Use char because int might match the return type of a GCC
5169 builtin and then its argument prototype would still apply. */
5170 #ifdef __cplusplus
5171 extern "C"
5172 #endif
5173 char cap_free ();
5175 main ()
5177 return cap_free ();
5179 return 0;
5181 _ACEOF
5182 rm -f conftest.$ac_objext conftest$ac_exeext
5183 if { (ac_try="$ac_link"
5184 case "(($ac_try" in
5185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5186 *) ac_try_echo=$ac_try;;
5187 esac
5188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5189 $as_echo "$ac_try_echo") >&5
5190 (eval "$ac_link") 2>conftest.er1
5191 ac_status=$?
5192 grep -v '^ *+' conftest.er1 >conftest.err
5193 rm -f conftest.er1
5194 cat conftest.err >&5
5195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); } && {
5197 test -z "$ac_c_werror_flag" ||
5198 test ! -s conftest.err
5199 } && test -s conftest$ac_exeext && {
5200 test "$cross_compiling" = yes ||
5201 $as_test_x conftest$ac_exeext
5202 }; then
5203 ac_cv_lib_cap_cap_free=yes
5204 else
5205 $as_echo "$as_me: failed program was:" >&5
5206 sed 's/^/| /' conftest.$ac_ext >&5
5208 ac_cv_lib_cap_cap_free=no
5211 rm -rf conftest.dSYM
5212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5213 conftest$ac_exeext conftest.$ac_ext
5214 LIBS=$ac_check_lib_save_LIBS
5216 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_free" >&5
5217 $as_echo "$ac_cv_lib_cap_cap_free" >&6; }
5218 if test "x$ac_cv_lib_cap_cap_free" = x""yes; then
5220 { $as_echo "$as_me:$LINENO: checking for cap_from_text in -lcap" >&5
5221 $as_echo_n "checking for cap_from_text in -lcap... " >&6; }
5222 if test "${ac_cv_lib_cap_cap_from_text+set}" = set; then
5223 $as_echo_n "(cached) " >&6
5224 else
5225 ac_check_lib_save_LIBS=$LIBS
5226 LIBS="-lcap $LIBS"
5227 cat >conftest.$ac_ext <<_ACEOF
5228 /* confdefs.h. */
5229 _ACEOF
5230 cat confdefs.h >>conftest.$ac_ext
5231 cat >>conftest.$ac_ext <<_ACEOF
5232 /* end confdefs.h. */
5234 /* Override any GCC internal prototype to avoid an error.
5235 Use char because int might match the return type of a GCC
5236 builtin and then its argument prototype would still apply. */
5237 #ifdef __cplusplus
5238 extern "C"
5239 #endif
5240 char cap_from_text ();
5242 main ()
5244 return cap_from_text ();
5246 return 0;
5248 _ACEOF
5249 rm -f conftest.$ac_objext conftest$ac_exeext
5250 if { (ac_try="$ac_link"
5251 case "(($ac_try" in
5252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5253 *) ac_try_echo=$ac_try;;
5254 esac
5255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5256 $as_echo "$ac_try_echo") >&5
5257 (eval "$ac_link") 2>conftest.er1
5258 ac_status=$?
5259 grep -v '^ *+' conftest.er1 >conftest.err
5260 rm -f conftest.er1
5261 cat conftest.err >&5
5262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); } && {
5264 test -z "$ac_c_werror_flag" ||
5265 test ! -s conftest.err
5266 } && test -s conftest$ac_exeext && {
5267 test "$cross_compiling" = yes ||
5268 $as_test_x conftest$ac_exeext
5269 }; then
5270 ac_cv_lib_cap_cap_from_text=yes
5271 else
5272 $as_echo "$as_me: failed program was:" >&5
5273 sed 's/^/| /' conftest.$ac_ext >&5
5275 ac_cv_lib_cap_cap_from_text=no
5278 rm -rf conftest.dSYM
5279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5280 conftest$ac_exeext conftest.$ac_ext
5281 LIBS=$ac_check_lib_save_LIBS
5283 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_from_text" >&5
5284 $as_echo "$ac_cv_lib_cap_cap_from_text" >&6; }
5285 if test "x$ac_cv_lib_cap_cap_from_text" = x""yes; then
5287 { $as_echo "$as_me:$LINENO: checking for cap_set_proc in -lcap" >&5
5288 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
5289 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then
5290 $as_echo_n "(cached) " >&6
5291 else
5292 ac_check_lib_save_LIBS=$LIBS
5293 LIBS="-lcap $LIBS"
5294 cat >conftest.$ac_ext <<_ACEOF
5295 /* confdefs.h. */
5296 _ACEOF
5297 cat confdefs.h >>conftest.$ac_ext
5298 cat >>conftest.$ac_ext <<_ACEOF
5299 /* end confdefs.h. */
5301 /* Override any GCC internal prototype to avoid an error.
5302 Use char because int might match the return type of a GCC
5303 builtin and then its argument prototype would still apply. */
5304 #ifdef __cplusplus
5305 extern "C"
5306 #endif
5307 char cap_set_proc ();
5309 main ()
5311 return cap_set_proc ();
5313 return 0;
5315 _ACEOF
5316 rm -f conftest.$ac_objext conftest$ac_exeext
5317 if { (ac_try="$ac_link"
5318 case "(($ac_try" in
5319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5320 *) ac_try_echo=$ac_try;;
5321 esac
5322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5323 $as_echo "$ac_try_echo") >&5
5324 (eval "$ac_link") 2>conftest.er1
5325 ac_status=$?
5326 grep -v '^ *+' conftest.er1 >conftest.err
5327 rm -f conftest.er1
5328 cat conftest.err >&5
5329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); } && {
5331 test -z "$ac_c_werror_flag" ||
5332 test ! -s conftest.err
5333 } && test -s conftest$ac_exeext && {
5334 test "$cross_compiling" = yes ||
5335 $as_test_x conftest$ac_exeext
5336 }; then
5337 ac_cv_lib_cap_cap_set_proc=yes
5338 else
5339 $as_echo "$as_me: failed program was:" >&5
5340 sed 's/^/| /' conftest.$ac_ext >&5
5342 ac_cv_lib_cap_cap_set_proc=no
5345 rm -rf conftest.dSYM
5346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5347 conftest$ac_exeext conftest.$ac_ext
5348 LIBS=$ac_check_lib_save_LIBS
5350 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_set_proc" >&5
5351 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
5352 if test "x$ac_cv_lib_cap_cap_set_proc" = x""yes; then
5354 { $as_echo "$as_me:$LINENO: checking for cap_compare in -lcap" >&5
5355 $as_echo_n "checking for cap_compare in -lcap... " >&6; }
5356 if test "${ac_cv_lib_cap_cap_compare+set}" = set; then
5357 $as_echo_n "(cached) " >&6
5358 else
5359 ac_check_lib_save_LIBS=$LIBS
5360 LIBS="-lcap $LIBS"
5361 cat >conftest.$ac_ext <<_ACEOF
5362 /* confdefs.h. */
5363 _ACEOF
5364 cat confdefs.h >>conftest.$ac_ext
5365 cat >>conftest.$ac_ext <<_ACEOF
5366 /* end confdefs.h. */
5368 /* Override any GCC internal prototype to avoid an error.
5369 Use char because int might match the return type of a GCC
5370 builtin and then its argument prototype would still apply. */
5371 #ifdef __cplusplus
5372 extern "C"
5373 #endif
5374 char cap_compare ();
5376 main ()
5378 return cap_compare ();
5380 return 0;
5382 _ACEOF
5383 rm -f conftest.$ac_objext conftest$ac_exeext
5384 if { (ac_try="$ac_link"
5385 case "(($ac_try" in
5386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5387 *) ac_try_echo=$ac_try;;
5388 esac
5389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5390 $as_echo "$ac_try_echo") >&5
5391 (eval "$ac_link") 2>conftest.er1
5392 ac_status=$?
5393 grep -v '^ *+' conftest.er1 >conftest.err
5394 rm -f conftest.er1
5395 cat conftest.err >&5
5396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397 (exit $ac_status); } && {
5398 test -z "$ac_c_werror_flag" ||
5399 test ! -s conftest.err
5400 } && test -s conftest$ac_exeext && {
5401 test "$cross_compiling" = yes ||
5402 $as_test_x conftest$ac_exeext
5403 }; then
5404 ac_cv_lib_cap_cap_compare=yes
5405 else
5406 $as_echo "$as_me: failed program was:" >&5
5407 sed 's/^/| /' conftest.$ac_ext >&5
5409 ac_cv_lib_cap_cap_compare=no
5412 rm -rf conftest.dSYM
5413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5414 conftest$ac_exeext conftest.$ac_ext
5415 LIBS=$ac_check_lib_save_LIBS
5417 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_compare" >&5
5418 $as_echo "$ac_cv_lib_cap_cap_compare" >&6; }
5419 if test "x$ac_cv_lib_cap_cap_compare" = x""yes; then
5421 CAP_LIBS="-lcap"
5434 { $as_echo "$as_me:$LINENO: checking whether CAP_BSET_DROP is declared" >&5
5435 $as_echo_n "checking whether CAP_BSET_DROP is declared... " >&6; }
5436 if test "${ac_cv_have_decl_CAP_BSET_DROP+set}" = set; then
5437 $as_echo_n "(cached) " >&6
5438 else
5439 cat >conftest.$ac_ext <<_ACEOF
5440 /* confdefs.h. */
5441 _ACEOF
5442 cat confdefs.h >>conftest.$ac_ext
5443 cat >>conftest.$ac_ext <<_ACEOF
5444 /* end confdefs.h. */
5445 #include <sys/capability.h>
5449 main ()
5451 #ifndef CAP_BSET_DROP
5452 (void) CAP_BSET_DROP;
5453 #endif
5456 return 0;
5458 _ACEOF
5459 rm -f conftest.$ac_objext
5460 if { (ac_try="$ac_compile"
5461 case "(($ac_try" in
5462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5463 *) ac_try_echo=$ac_try;;
5464 esac
5465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5466 $as_echo "$ac_try_echo") >&5
5467 (eval "$ac_compile") 2>conftest.er1
5468 ac_status=$?
5469 grep -v '^ *+' conftest.er1 >conftest.err
5470 rm -f conftest.er1
5471 cat conftest.err >&5
5472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); } && {
5474 test -z "$ac_c_werror_flag" ||
5475 test ! -s conftest.err
5476 } && test -s conftest.$ac_objext; then
5477 ac_cv_have_decl_CAP_BSET_DROP=yes
5478 else
5479 $as_echo "$as_me: failed program was:" >&5
5480 sed 's/^/| /' conftest.$ac_ext >&5
5482 ac_cv_have_decl_CAP_BSET_DROP=no
5485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5487 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_CAP_BSET_DROP" >&5
5488 $as_echo "$ac_cv_have_decl_CAP_BSET_DROP" >&6; }
5489 if test "x$ac_cv_have_decl_CAP_BSET_DROP" = x""yes; then
5491 cat >>confdefs.h <<_ACEOF
5492 #define HAVE_DECL_CAP_BSET_DROP 1
5493 _ACEOF
5496 else
5497 cat >>confdefs.h <<_ACEOF
5498 #define HAVE_DECL_CAP_BSET_DROP 0
5499 _ACEOF
5503 { $as_echo "$as_me:$LINENO: checking whether CAP_BSET_READ is declared" >&5
5504 $as_echo_n "checking whether CAP_BSET_READ is declared... " >&6; }
5505 if test "${ac_cv_have_decl_CAP_BSET_READ+set}" = set; then
5506 $as_echo_n "(cached) " >&6
5507 else
5508 cat >conftest.$ac_ext <<_ACEOF
5509 /* confdefs.h. */
5510 _ACEOF
5511 cat confdefs.h >>conftest.$ac_ext
5512 cat >>conftest.$ac_ext <<_ACEOF
5513 /* end confdefs.h. */
5514 #include <sys/capability.h>
5518 main ()
5520 #ifndef CAP_BSET_READ
5521 (void) CAP_BSET_READ;
5522 #endif
5525 return 0;
5527 _ACEOF
5528 rm -f conftest.$ac_objext
5529 if { (ac_try="$ac_compile"
5530 case "(($ac_try" in
5531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5532 *) ac_try_echo=$ac_try;;
5533 esac
5534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5535 $as_echo "$ac_try_echo") >&5
5536 (eval "$ac_compile") 2>conftest.er1
5537 ac_status=$?
5538 grep -v '^ *+' conftest.er1 >conftest.err
5539 rm -f conftest.er1
5540 cat conftest.err >&5
5541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); } && {
5543 test -z "$ac_c_werror_flag" ||
5544 test ! -s conftest.err
5545 } && test -s conftest.$ac_objext; then
5546 ac_cv_have_decl_CAP_BSET_READ=yes
5547 else
5548 $as_echo "$as_me: failed program was:" >&5
5549 sed 's/^/| /' conftest.$ac_ext >&5
5551 ac_cv_have_decl_CAP_BSET_READ=no
5554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5556 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_CAP_BSET_READ" >&5
5557 $as_echo "$ac_cv_have_decl_CAP_BSET_READ" >&6; }
5558 if test "x$ac_cv_have_decl_CAP_BSET_READ" = x""yes; then
5560 cat >>confdefs.h <<_ACEOF
5561 #define HAVE_DECL_CAP_BSET_READ 1
5562 _ACEOF
5565 else
5566 cat >>confdefs.h <<_ACEOF
5567 #define HAVE_DECL_CAP_BSET_READ 0
5568 _ACEOF
5572 { $as_echo "$as_me:$LINENO: checking whether PR_CAPBSET_READ is declared" >&5
5573 $as_echo_n "checking whether PR_CAPBSET_READ is declared... " >&6; }
5574 if test "${ac_cv_have_decl_PR_CAPBSET_READ+set}" = set; then
5575 $as_echo_n "(cached) " >&6
5576 else
5577 cat >conftest.$ac_ext <<_ACEOF
5578 /* confdefs.h. */
5579 _ACEOF
5580 cat confdefs.h >>conftest.$ac_ext
5581 cat >>conftest.$ac_ext <<_ACEOF
5582 /* end confdefs.h. */
5583 #include <sys/capability.h>
5587 main ()
5589 #ifndef PR_CAPBSET_READ
5590 (void) PR_CAPBSET_READ;
5591 #endif
5594 return 0;
5596 _ACEOF
5597 rm -f conftest.$ac_objext
5598 if { (ac_try="$ac_compile"
5599 case "(($ac_try" in
5600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5601 *) ac_try_echo=$ac_try;;
5602 esac
5603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5604 $as_echo "$ac_try_echo") >&5
5605 (eval "$ac_compile") 2>conftest.er1
5606 ac_status=$?
5607 grep -v '^ *+' conftest.er1 >conftest.err
5608 rm -f conftest.er1
5609 cat conftest.err >&5
5610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); } && {
5612 test -z "$ac_c_werror_flag" ||
5613 test ! -s conftest.err
5614 } && test -s conftest.$ac_objext; then
5615 ac_cv_have_decl_PR_CAPBSET_READ=yes
5616 else
5617 $as_echo "$as_me: failed program was:" >&5
5618 sed 's/^/| /' conftest.$ac_ext >&5
5620 ac_cv_have_decl_PR_CAPBSET_READ=no
5623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5625 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_PR_CAPBSET_READ" >&5
5626 $as_echo "$ac_cv_have_decl_PR_CAPBSET_READ" >&6; }
5627 if test "x$ac_cv_have_decl_PR_CAPBSET_READ" = x""yes; then
5629 cat >>confdefs.h <<_ACEOF
5630 #define HAVE_DECL_PR_CAPBSET_READ 1
5631 _ACEOF
5634 else
5635 cat >>confdefs.h <<_ACEOF
5636 #define HAVE_DECL_PR_CAPBSET_READ 0
5637 _ACEOF
5641 { $as_echo "$as_me:$LINENO: checking whether cap_compare is declared" >&5
5642 $as_echo_n "checking whether cap_compare is declared... " >&6; }
5643 if test "${ac_cv_have_decl_cap_compare+set}" = set; then
5644 $as_echo_n "(cached) " >&6
5645 else
5646 cat >conftest.$ac_ext <<_ACEOF
5647 /* confdefs.h. */
5648 _ACEOF
5649 cat confdefs.h >>conftest.$ac_ext
5650 cat >>conftest.$ac_ext <<_ACEOF
5651 /* end confdefs.h. */
5652 #include <sys/capability.h>
5656 main ()
5658 #ifndef cap_compare
5659 (void) cap_compare;
5660 #endif
5663 return 0;
5665 _ACEOF
5666 rm -f conftest.$ac_objext
5667 if { (ac_try="$ac_compile"
5668 case "(($ac_try" in
5669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5670 *) ac_try_echo=$ac_try;;
5671 esac
5672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5673 $as_echo "$ac_try_echo") >&5
5674 (eval "$ac_compile") 2>conftest.er1
5675 ac_status=$?
5676 grep -v '^ *+' conftest.er1 >conftest.err
5677 rm -f conftest.er1
5678 cat conftest.err >&5
5679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); } && {
5681 test -z "$ac_c_werror_flag" ||
5682 test ! -s conftest.err
5683 } && test -s conftest.$ac_objext; then
5684 ac_cv_have_decl_cap_compare=yes
5685 else
5686 $as_echo "$as_me: failed program was:" >&5
5687 sed 's/^/| /' conftest.$ac_ext >&5
5689 ac_cv_have_decl_cap_compare=no
5692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5694 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_cap_compare" >&5
5695 $as_echo "$ac_cv_have_decl_cap_compare" >&6; }
5696 if test "x$ac_cv_have_decl_cap_compare" = x""yes; then
5698 cat >>confdefs.h <<_ACEOF
5699 #define HAVE_DECL_CAP_COMPARE 1
5700 _ACEOF
5703 else
5704 cat >>confdefs.h <<_ACEOF
5705 #define HAVE_DECL_CAP_COMPARE 0
5706 _ACEOF
5710 { $as_echo "$as_me:$LINENO: checking whether cap_free is declared" >&5
5711 $as_echo_n "checking whether cap_free is declared... " >&6; }
5712 if test "${ac_cv_have_decl_cap_free+set}" = set; then
5713 $as_echo_n "(cached) " >&6
5714 else
5715 cat >conftest.$ac_ext <<_ACEOF
5716 /* confdefs.h. */
5717 _ACEOF
5718 cat confdefs.h >>conftest.$ac_ext
5719 cat >>conftest.$ac_ext <<_ACEOF
5720 /* end confdefs.h. */
5721 #include <sys/capability.h>
5725 main ()
5727 #ifndef cap_free
5728 (void) cap_free;
5729 #endif
5732 return 0;
5734 _ACEOF
5735 rm -f conftest.$ac_objext
5736 if { (ac_try="$ac_compile"
5737 case "(($ac_try" in
5738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5739 *) ac_try_echo=$ac_try;;
5740 esac
5741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5742 $as_echo "$ac_try_echo") >&5
5743 (eval "$ac_compile") 2>conftest.er1
5744 ac_status=$?
5745 grep -v '^ *+' conftest.er1 >conftest.err
5746 rm -f conftest.er1
5747 cat conftest.err >&5
5748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); } && {
5750 test -z "$ac_c_werror_flag" ||
5751 test ! -s conftest.err
5752 } && test -s conftest.$ac_objext; then
5753 ac_cv_have_decl_cap_free=yes
5754 else
5755 $as_echo "$as_me: failed program was:" >&5
5756 sed 's/^/| /' conftest.$ac_ext >&5
5758 ac_cv_have_decl_cap_free=no
5761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5763 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_cap_free" >&5
5764 $as_echo "$ac_cv_have_decl_cap_free" >&6; }
5765 if test "x$ac_cv_have_decl_cap_free" = x""yes; then
5767 cat >>confdefs.h <<_ACEOF
5768 #define HAVE_DECL_CAP_FREE 1
5769 _ACEOF
5772 else
5773 cat >>confdefs.h <<_ACEOF
5774 #define HAVE_DECL_CAP_FREE 0
5775 _ACEOF
5779 { $as_echo "$as_me:$LINENO: checking whether cap_from_text is declared" >&5
5780 $as_echo_n "checking whether cap_from_text is declared... " >&6; }
5781 if test "${ac_cv_have_decl_cap_from_text+set}" = set; then
5782 $as_echo_n "(cached) " >&6
5783 else
5784 cat >conftest.$ac_ext <<_ACEOF
5785 /* confdefs.h. */
5786 _ACEOF
5787 cat confdefs.h >>conftest.$ac_ext
5788 cat >>conftest.$ac_ext <<_ACEOF
5789 /* end confdefs.h. */
5790 #include <sys/capability.h>
5794 main ()
5796 #ifndef cap_from_text
5797 (void) cap_from_text;
5798 #endif
5801 return 0;
5803 _ACEOF
5804 rm -f conftest.$ac_objext
5805 if { (ac_try="$ac_compile"
5806 case "(($ac_try" in
5807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5808 *) ac_try_echo=$ac_try;;
5809 esac
5810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5811 $as_echo "$ac_try_echo") >&5
5812 (eval "$ac_compile") 2>conftest.er1
5813 ac_status=$?
5814 grep -v '^ *+' conftest.er1 >conftest.err
5815 rm -f conftest.er1
5816 cat conftest.err >&5
5817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); } && {
5819 test -z "$ac_c_werror_flag" ||
5820 test ! -s conftest.err
5821 } && test -s conftest.$ac_objext; then
5822 ac_cv_have_decl_cap_from_text=yes
5823 else
5824 $as_echo "$as_me: failed program was:" >&5
5825 sed 's/^/| /' conftest.$ac_ext >&5
5827 ac_cv_have_decl_cap_from_text=no
5830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5832 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_cap_from_text" >&5
5833 $as_echo "$ac_cv_have_decl_cap_from_text" >&6; }
5834 if test "x$ac_cv_have_decl_cap_from_text" = x""yes; then
5836 cat >>confdefs.h <<_ACEOF
5837 #define HAVE_DECL_CAP_FROM_TEXT 1
5838 _ACEOF
5841 else
5842 cat >>confdefs.h <<_ACEOF
5843 #define HAVE_DECL_CAP_FROM_TEXT 0
5844 _ACEOF
5848 { $as_echo "$as_me:$LINENO: checking whether cap_get_proc is declared" >&5
5849 $as_echo_n "checking whether cap_get_proc is declared... " >&6; }
5850 if test "${ac_cv_have_decl_cap_get_proc+set}" = set; then
5851 $as_echo_n "(cached) " >&6
5852 else
5853 cat >conftest.$ac_ext <<_ACEOF
5854 /* confdefs.h. */
5855 _ACEOF
5856 cat confdefs.h >>conftest.$ac_ext
5857 cat >>conftest.$ac_ext <<_ACEOF
5858 /* end confdefs.h. */
5859 #include <sys/capability.h>
5863 main ()
5865 #ifndef cap_get_proc
5866 (void) cap_get_proc;
5867 #endif
5870 return 0;
5872 _ACEOF
5873 rm -f conftest.$ac_objext
5874 if { (ac_try="$ac_compile"
5875 case "(($ac_try" in
5876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5877 *) ac_try_echo=$ac_try;;
5878 esac
5879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5880 $as_echo "$ac_try_echo") >&5
5881 (eval "$ac_compile") 2>conftest.er1
5882 ac_status=$?
5883 grep -v '^ *+' conftest.er1 >conftest.err
5884 rm -f conftest.er1
5885 cat conftest.err >&5
5886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); } && {
5888 test -z "$ac_c_werror_flag" ||
5889 test ! -s conftest.err
5890 } && test -s conftest.$ac_objext; then
5891 ac_cv_have_decl_cap_get_proc=yes
5892 else
5893 $as_echo "$as_me: failed program was:" >&5
5894 sed 's/^/| /' conftest.$ac_ext >&5
5896 ac_cv_have_decl_cap_get_proc=no
5899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5901 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_cap_get_proc" >&5
5902 $as_echo "$ac_cv_have_decl_cap_get_proc" >&6; }
5903 if test "x$ac_cv_have_decl_cap_get_proc" = x""yes; then
5905 cat >>confdefs.h <<_ACEOF
5906 #define HAVE_DECL_CAP_GET_PROC 1
5907 _ACEOF
5910 else
5911 cat >>confdefs.h <<_ACEOF
5912 #define HAVE_DECL_CAP_GET_PROC 0
5913 _ACEOF
5917 { $as_echo "$as_me:$LINENO: checking whether cap_set_file is declared" >&5
5918 $as_echo_n "checking whether cap_set_file is declared... " >&6; }
5919 if test "${ac_cv_have_decl_cap_set_file+set}" = set; then
5920 $as_echo_n "(cached) " >&6
5921 else
5922 cat >conftest.$ac_ext <<_ACEOF
5923 /* confdefs.h. */
5924 _ACEOF
5925 cat confdefs.h >>conftest.$ac_ext
5926 cat >>conftest.$ac_ext <<_ACEOF
5927 /* end confdefs.h. */
5928 #include <sys/capability.h>
5932 main ()
5934 #ifndef cap_set_file
5935 (void) cap_set_file;
5936 #endif
5939 return 0;
5941 _ACEOF
5942 rm -f conftest.$ac_objext
5943 if { (ac_try="$ac_compile"
5944 case "(($ac_try" in
5945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5946 *) ac_try_echo=$ac_try;;
5947 esac
5948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5949 $as_echo "$ac_try_echo") >&5
5950 (eval "$ac_compile") 2>conftest.er1
5951 ac_status=$?
5952 grep -v '^ *+' conftest.er1 >conftest.err
5953 rm -f conftest.er1
5954 cat conftest.err >&5
5955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); } && {
5957 test -z "$ac_c_werror_flag" ||
5958 test ! -s conftest.err
5959 } && test -s conftest.$ac_objext; then
5960 ac_cv_have_decl_cap_set_file=yes
5961 else
5962 $as_echo "$as_me: failed program was:" >&5
5963 sed 's/^/| /' conftest.$ac_ext >&5
5965 ac_cv_have_decl_cap_set_file=no
5968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5970 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_cap_set_file" >&5
5971 $as_echo "$ac_cv_have_decl_cap_set_file" >&6; }
5972 if test "x$ac_cv_have_decl_cap_set_file" = x""yes; then
5974 cat >>confdefs.h <<_ACEOF
5975 #define HAVE_DECL_CAP_SET_FILE 1
5976 _ACEOF
5979 else
5980 cat >>confdefs.h <<_ACEOF
5981 #define HAVE_DECL_CAP_SET_FILE 0
5982 _ACEOF
5986 { $as_echo "$as_me:$LINENO: checking whether cap_set_flag is declared" >&5
5987 $as_echo_n "checking whether cap_set_flag is declared... " >&6; }
5988 if test "${ac_cv_have_decl_cap_set_flag+set}" = set; then
5989 $as_echo_n "(cached) " >&6
5990 else
5991 cat >conftest.$ac_ext <<_ACEOF
5992 /* confdefs.h. */
5993 _ACEOF
5994 cat confdefs.h >>conftest.$ac_ext
5995 cat >>conftest.$ac_ext <<_ACEOF
5996 /* end confdefs.h. */
5997 #include <sys/capability.h>
6001 main ()
6003 #ifndef cap_set_flag
6004 (void) cap_set_flag;
6005 #endif
6008 return 0;
6010 _ACEOF
6011 rm -f conftest.$ac_objext
6012 if { (ac_try="$ac_compile"
6013 case "(($ac_try" in
6014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6015 *) ac_try_echo=$ac_try;;
6016 esac
6017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6018 $as_echo "$ac_try_echo") >&5
6019 (eval "$ac_compile") 2>conftest.er1
6020 ac_status=$?
6021 grep -v '^ *+' conftest.er1 >conftest.err
6022 rm -f conftest.er1
6023 cat conftest.err >&5
6024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); } && {
6026 test -z "$ac_c_werror_flag" ||
6027 test ! -s conftest.err
6028 } && test -s conftest.$ac_objext; then
6029 ac_cv_have_decl_cap_set_flag=yes
6030 else
6031 $as_echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.$ac_ext >&5
6034 ac_cv_have_decl_cap_set_flag=no
6037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6039 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_cap_set_flag" >&5
6040 $as_echo "$ac_cv_have_decl_cap_set_flag" >&6; }
6041 if test "x$ac_cv_have_decl_cap_set_flag" = x""yes; then
6043 cat >>confdefs.h <<_ACEOF
6044 #define HAVE_DECL_CAP_SET_FLAG 1
6045 _ACEOF
6048 else
6049 cat >>confdefs.h <<_ACEOF
6050 #define HAVE_DECL_CAP_SET_FLAG 0
6051 _ACEOF
6055 { $as_echo "$as_me:$LINENO: checking whether cap_set_proc is declared" >&5
6056 $as_echo_n "checking whether cap_set_proc is declared... " >&6; }
6057 if test "${ac_cv_have_decl_cap_set_proc+set}" = set; then
6058 $as_echo_n "(cached) " >&6
6059 else
6060 cat >conftest.$ac_ext <<_ACEOF
6061 /* confdefs.h. */
6062 _ACEOF
6063 cat confdefs.h >>conftest.$ac_ext
6064 cat >>conftest.$ac_ext <<_ACEOF
6065 /* end confdefs.h. */
6066 #include <sys/capability.h>
6070 main ()
6072 #ifndef cap_set_proc
6073 (void) cap_set_proc;
6074 #endif
6077 return 0;
6079 _ACEOF
6080 rm -f conftest.$ac_objext
6081 if { (ac_try="$ac_compile"
6082 case "(($ac_try" in
6083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6084 *) ac_try_echo=$ac_try;;
6085 esac
6086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6087 $as_echo "$ac_try_echo") >&5
6088 (eval "$ac_compile") 2>conftest.er1
6089 ac_status=$?
6090 grep -v '^ *+' conftest.er1 >conftest.err
6091 rm -f conftest.er1
6092 cat conftest.err >&5
6093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); } && {
6095 test -z "$ac_c_werror_flag" ||
6096 test ! -s conftest.err
6097 } && test -s conftest.$ac_objext; then
6098 ac_cv_have_decl_cap_set_proc=yes
6099 else
6100 $as_echo "$as_me: failed program was:" >&5
6101 sed 's/^/| /' conftest.$ac_ext >&5
6103 ac_cv_have_decl_cap_set_proc=no
6106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6108 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_cap_set_proc" >&5
6109 $as_echo "$ac_cv_have_decl_cap_set_proc" >&6; }
6110 if test "x$ac_cv_have_decl_cap_set_proc" = x""yes; then
6112 cat >>confdefs.h <<_ACEOF
6113 #define HAVE_DECL_CAP_SET_PROC 1
6114 _ACEOF
6117 else
6118 cat >>confdefs.h <<_ACEOF
6119 #define HAVE_DECL_CAP_SET_PROC 0
6120 _ACEOF
6124 { $as_echo "$as_me:$LINENO: checking whether cap_to_text is declared" >&5
6125 $as_echo_n "checking whether cap_to_text is declared... " >&6; }
6126 if test "${ac_cv_have_decl_cap_to_text+set}" = set; then
6127 $as_echo_n "(cached) " >&6
6128 else
6129 cat >conftest.$ac_ext <<_ACEOF
6130 /* confdefs.h. */
6131 _ACEOF
6132 cat confdefs.h >>conftest.$ac_ext
6133 cat >>conftest.$ac_ext <<_ACEOF
6134 /* end confdefs.h. */
6135 #include <sys/capability.h>
6139 main ()
6141 #ifndef cap_to_text
6142 (void) cap_to_text;
6143 #endif
6146 return 0;
6148 _ACEOF
6149 rm -f conftest.$ac_objext
6150 if { (ac_try="$ac_compile"
6151 case "(($ac_try" in
6152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6153 *) ac_try_echo=$ac_try;;
6154 esac
6155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6156 $as_echo "$ac_try_echo") >&5
6157 (eval "$ac_compile") 2>conftest.er1
6158 ac_status=$?
6159 grep -v '^ *+' conftest.er1 >conftest.err
6160 rm -f conftest.er1
6161 cat conftest.err >&5
6162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); } && {
6164 test -z "$ac_c_werror_flag" ||
6165 test ! -s conftest.err
6166 } && test -s conftest.$ac_objext; then
6167 ac_cv_have_decl_cap_to_text=yes
6168 else
6169 $as_echo "$as_me: failed program was:" >&5
6170 sed 's/^/| /' conftest.$ac_ext >&5
6172 ac_cv_have_decl_cap_to_text=no
6175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6177 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_cap_to_text" >&5
6178 $as_echo "$ac_cv_have_decl_cap_to_text" >&6; }
6179 if test "x$ac_cv_have_decl_cap_to_text" = x""yes; then
6181 cat >>confdefs.h <<_ACEOF
6182 #define HAVE_DECL_CAP_TO_TEXT 1
6183 _ACEOF
6186 else
6187 cat >>confdefs.h <<_ACEOF
6188 #define HAVE_DECL_CAP_TO_TEXT 0
6189 _ACEOF
6197 done
6202 for ac_header in openssl/sha.h
6204 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6205 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6206 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6207 $as_echo_n "checking for $ac_header... " >&6; }
6208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6209 $as_echo_n "(cached) " >&6
6211 ac_res=`eval 'as_val=${'$as_ac_Header'}
6212 $as_echo "$as_val"'`
6213 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6214 $as_echo "$ac_res" >&6; }
6215 else
6216 # Is the header compilable?
6217 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6218 $as_echo_n "checking $ac_header usability... " >&6; }
6219 cat >conftest.$ac_ext <<_ACEOF
6220 /* confdefs.h. */
6221 _ACEOF
6222 cat confdefs.h >>conftest.$ac_ext
6223 cat >>conftest.$ac_ext <<_ACEOF
6224 /* end confdefs.h. */
6225 $ac_includes_default
6226 #include <$ac_header>
6227 _ACEOF
6228 rm -f conftest.$ac_objext
6229 if { (ac_try="$ac_compile"
6230 case "(($ac_try" in
6231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6232 *) ac_try_echo=$ac_try;;
6233 esac
6234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6235 $as_echo "$ac_try_echo") >&5
6236 (eval "$ac_compile") 2>conftest.er1
6237 ac_status=$?
6238 grep -v '^ *+' conftest.er1 >conftest.err
6239 rm -f conftest.er1
6240 cat conftest.err >&5
6241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); } && {
6243 test -z "$ac_c_werror_flag" ||
6244 test ! -s conftest.err
6245 } && test -s conftest.$ac_objext; then
6246 ac_header_compiler=yes
6247 else
6248 $as_echo "$as_me: failed program was:" >&5
6249 sed 's/^/| /' conftest.$ac_ext >&5
6251 ac_header_compiler=no
6254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6255 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6256 $as_echo "$ac_header_compiler" >&6; }
6258 # Is the header present?
6259 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6260 $as_echo_n "checking $ac_header presence... " >&6; }
6261 cat >conftest.$ac_ext <<_ACEOF
6262 /* confdefs.h. */
6263 _ACEOF
6264 cat confdefs.h >>conftest.$ac_ext
6265 cat >>conftest.$ac_ext <<_ACEOF
6266 /* end confdefs.h. */
6267 #include <$ac_header>
6268 _ACEOF
6269 if { (ac_try="$ac_cpp conftest.$ac_ext"
6270 case "(($ac_try" in
6271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6272 *) ac_try_echo=$ac_try;;
6273 esac
6274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6275 $as_echo "$ac_try_echo") >&5
6276 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6277 ac_status=$?
6278 grep -v '^ *+' conftest.er1 >conftest.err
6279 rm -f conftest.er1
6280 cat conftest.err >&5
6281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); } >/dev/null && {
6283 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6284 test ! -s conftest.err
6285 }; then
6286 ac_header_preproc=yes
6287 else
6288 $as_echo "$as_me: failed program was:" >&5
6289 sed 's/^/| /' conftest.$ac_ext >&5
6291 ac_header_preproc=no
6294 rm -f conftest.err conftest.$ac_ext
6295 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6296 $as_echo "$ac_header_preproc" >&6; }
6298 # So? What about this header?
6299 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6300 yes:no: )
6301 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6302 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6303 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6304 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6305 ac_header_preproc=yes
6307 no:yes:* )
6308 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6309 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6310 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6311 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6312 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6313 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6314 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6315 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6316 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6317 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6318 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6319 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6320 ( cat <<\_ASBOX
6321 ## ------------------------------------------------ ##
6322 ## Report this to ltp-results@lists.sourceforge.net ##
6323 ## ------------------------------------------------ ##
6324 _ASBOX
6325 ) | sed "s/^/$as_me: WARNING: /" >&2
6327 esac
6328 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6329 $as_echo_n "checking for $ac_header... " >&6; }
6330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6331 $as_echo_n "(cached) " >&6
6332 else
6333 eval "$as_ac_Header=\$ac_header_preproc"
6335 ac_res=`eval 'as_val=${'$as_ac_Header'}
6336 $as_echo "$as_val"'`
6337 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6338 $as_echo "$ac_res" >&6; }
6341 as_val=`eval 'as_val=${'$as_ac_Header'}
6342 $as_echo "$as_val"'`
6343 if test "x$as_val" = x""yes; then
6344 cat >>confdefs.h <<_ACEOF
6345 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6346 _ACEOF
6347 CRYPTO_LIBS=-lcrypto
6348 else
6349 CRYPTO_LIBS=
6352 done
6358 for ac_header in linux/ptrace.h
6360 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6362 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6363 $as_echo_n "checking for $ac_header... " >&6; }
6364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6365 $as_echo_n "(cached) " >&6
6367 ac_res=`eval 'as_val=${'$as_ac_Header'}
6368 $as_echo "$as_val"'`
6369 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6370 $as_echo "$ac_res" >&6; }
6371 else
6372 # Is the header compilable?
6373 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6374 $as_echo_n "checking $ac_header usability... " >&6; }
6375 cat >conftest.$ac_ext <<_ACEOF
6376 /* confdefs.h. */
6377 _ACEOF
6378 cat confdefs.h >>conftest.$ac_ext
6379 cat >>conftest.$ac_ext <<_ACEOF
6380 /* end confdefs.h. */
6381 $ac_includes_default
6382 #include <$ac_header>
6383 _ACEOF
6384 rm -f conftest.$ac_objext
6385 if { (ac_try="$ac_compile"
6386 case "(($ac_try" in
6387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6388 *) ac_try_echo=$ac_try;;
6389 esac
6390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6391 $as_echo "$ac_try_echo") >&5
6392 (eval "$ac_compile") 2>conftest.er1
6393 ac_status=$?
6394 grep -v '^ *+' conftest.er1 >conftest.err
6395 rm -f conftest.er1
6396 cat conftest.err >&5
6397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398 (exit $ac_status); } && {
6399 test -z "$ac_c_werror_flag" ||
6400 test ! -s conftest.err
6401 } && test -s conftest.$ac_objext; then
6402 ac_header_compiler=yes
6403 else
6404 $as_echo "$as_me: failed program was:" >&5
6405 sed 's/^/| /' conftest.$ac_ext >&5
6407 ac_header_compiler=no
6410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6411 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6412 $as_echo "$ac_header_compiler" >&6; }
6414 # Is the header present?
6415 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6416 $as_echo_n "checking $ac_header presence... " >&6; }
6417 cat >conftest.$ac_ext <<_ACEOF
6418 /* confdefs.h. */
6419 _ACEOF
6420 cat confdefs.h >>conftest.$ac_ext
6421 cat >>conftest.$ac_ext <<_ACEOF
6422 /* end confdefs.h. */
6423 #include <$ac_header>
6424 _ACEOF
6425 if { (ac_try="$ac_cpp conftest.$ac_ext"
6426 case "(($ac_try" in
6427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6428 *) ac_try_echo=$ac_try;;
6429 esac
6430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6431 $as_echo "$ac_try_echo") >&5
6432 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6433 ac_status=$?
6434 grep -v '^ *+' conftest.er1 >conftest.err
6435 rm -f conftest.er1
6436 cat conftest.err >&5
6437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); } >/dev/null && {
6439 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6440 test ! -s conftest.err
6441 }; then
6442 ac_header_preproc=yes
6443 else
6444 $as_echo "$as_me: failed program was:" >&5
6445 sed 's/^/| /' conftest.$ac_ext >&5
6447 ac_header_preproc=no
6450 rm -f conftest.err conftest.$ac_ext
6451 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6452 $as_echo "$ac_header_preproc" >&6; }
6454 # So? What about this header?
6455 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6456 yes:no: )
6457 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6458 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6459 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6460 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6461 ac_header_preproc=yes
6463 no:yes:* )
6464 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6465 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6466 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6467 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6468 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6469 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6470 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6471 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6472 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6473 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6474 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6475 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6476 ( cat <<\_ASBOX
6477 ## ------------------------------------------------ ##
6478 ## Report this to ltp-results@lists.sourceforge.net ##
6479 ## ------------------------------------------------ ##
6480 _ASBOX
6481 ) | sed "s/^/$as_me: WARNING: /" >&2
6483 esac
6484 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6485 $as_echo_n "checking for $ac_header... " >&6; }
6486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6487 $as_echo_n "(cached) " >&6
6488 else
6489 eval "$as_ac_Header=\$ac_header_preproc"
6491 ac_res=`eval 'as_val=${'$as_ac_Header'}
6492 $as_echo "$as_val"'`
6493 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6494 $as_echo "$ac_res" >&6; }
6497 as_val=`eval 'as_val=${'$as_ac_Header'}
6498 $as_echo "$as_val"'`
6499 if test "x$as_val" = x""yes; then
6500 cat >>confdefs.h <<_ACEOF
6501 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6502 _ACEOF
6504 LINUX_PTRACE_HEADER=yes
6505 { $as_echo "$as_me:$LINENO: checking whether PTRACE_GETSIGINFO is declared" >&5
6506 $as_echo_n "checking whether PTRACE_GETSIGINFO is declared... " >&6; }
6507 if test "${ac_cv_have_decl_PTRACE_GETSIGINFO+set}" = set; then
6508 $as_echo_n "(cached) " >&6
6509 else
6510 cat >conftest.$ac_ext <<_ACEOF
6511 /* confdefs.h. */
6512 _ACEOF
6513 cat confdefs.h >>conftest.$ac_ext
6514 cat >>conftest.$ac_ext <<_ACEOF
6515 /* end confdefs.h. */
6516 #include <linux/ptrace.h>
6520 main ()
6522 #ifndef PTRACE_GETSIGINFO
6523 (void) PTRACE_GETSIGINFO;
6524 #endif
6527 return 0;
6529 _ACEOF
6530 rm -f conftest.$ac_objext
6531 if { (ac_try="$ac_compile"
6532 case "(($ac_try" in
6533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6534 *) ac_try_echo=$ac_try;;
6535 esac
6536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6537 $as_echo "$ac_try_echo") >&5
6538 (eval "$ac_compile") 2>conftest.er1
6539 ac_status=$?
6540 grep -v '^ *+' conftest.er1 >conftest.err
6541 rm -f conftest.er1
6542 cat conftest.err >&5
6543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544 (exit $ac_status); } && {
6545 test -z "$ac_c_werror_flag" ||
6546 test ! -s conftest.err
6547 } && test -s conftest.$ac_objext; then
6548 ac_cv_have_decl_PTRACE_GETSIGINFO=yes
6549 else
6550 $as_echo "$as_me: failed program was:" >&5
6551 sed 's/^/| /' conftest.$ac_ext >&5
6553 ac_cv_have_decl_PTRACE_GETSIGINFO=no
6556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6558 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_PTRACE_GETSIGINFO" >&5
6559 $as_echo "$ac_cv_have_decl_PTRACE_GETSIGINFO" >&6; }
6560 if test "x$ac_cv_have_decl_PTRACE_GETSIGINFO" = x""yes; then
6562 cat >>confdefs.h <<_ACEOF
6563 #define HAVE_DECL_PTRACE_GETSIGINFO 1
6564 _ACEOF
6567 else
6568 cat >>confdefs.h <<_ACEOF
6569 #define HAVE_DECL_PTRACE_GETSIGINFO 0
6570 _ACEOF
6574 { $as_echo "$as_me:$LINENO: checking whether PTRACE_O_TRACEVFORKDONE is declared" >&5
6575 $as_echo_n "checking whether PTRACE_O_TRACEVFORKDONE is declared... " >&6; }
6576 if test "${ac_cv_have_decl_PTRACE_O_TRACEVFORKDONE+set}" = set; then
6577 $as_echo_n "(cached) " >&6
6578 else
6579 cat >conftest.$ac_ext <<_ACEOF
6580 /* confdefs.h. */
6581 _ACEOF
6582 cat confdefs.h >>conftest.$ac_ext
6583 cat >>conftest.$ac_ext <<_ACEOF
6584 /* end confdefs.h. */
6585 #include <linux/ptrace.h>
6589 main ()
6591 #ifndef PTRACE_O_TRACEVFORKDONE
6592 (void) PTRACE_O_TRACEVFORKDONE;
6593 #endif
6596 return 0;
6598 _ACEOF
6599 rm -f conftest.$ac_objext
6600 if { (ac_try="$ac_compile"
6601 case "(($ac_try" in
6602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6603 *) ac_try_echo=$ac_try;;
6604 esac
6605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6606 $as_echo "$ac_try_echo") >&5
6607 (eval "$ac_compile") 2>conftest.er1
6608 ac_status=$?
6609 grep -v '^ *+' conftest.er1 >conftest.err
6610 rm -f conftest.er1
6611 cat conftest.err >&5
6612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); } && {
6614 test -z "$ac_c_werror_flag" ||
6615 test ! -s conftest.err
6616 } && test -s conftest.$ac_objext; then
6617 ac_cv_have_decl_PTRACE_O_TRACEVFORKDONE=yes
6618 else
6619 $as_echo "$as_me: failed program was:" >&5
6620 sed 's/^/| /' conftest.$ac_ext >&5
6622 ac_cv_have_decl_PTRACE_O_TRACEVFORKDONE=no
6625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6627 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_PTRACE_O_TRACEVFORKDONE" >&5
6628 $as_echo "$ac_cv_have_decl_PTRACE_O_TRACEVFORKDONE" >&6; }
6629 if test "x$ac_cv_have_decl_PTRACE_O_TRACEVFORKDONE" = x""yes; then
6631 cat >>confdefs.h <<_ACEOF
6632 #define HAVE_DECL_PTRACE_O_TRACEVFORKDONE 1
6633 _ACEOF
6636 else
6637 cat >>confdefs.h <<_ACEOF
6638 #define HAVE_DECL_PTRACE_O_TRACEVFORKDONE 0
6639 _ACEOF
6643 { $as_echo "$as_me:$LINENO: checking whether PTRACE_SETOPTIONS is declared" >&5
6644 $as_echo_n "checking whether PTRACE_SETOPTIONS is declared... " >&6; }
6645 if test "${ac_cv_have_decl_PTRACE_SETOPTIONS+set}" = set; then
6646 $as_echo_n "(cached) " >&6
6647 else
6648 cat >conftest.$ac_ext <<_ACEOF
6649 /* confdefs.h. */
6650 _ACEOF
6651 cat confdefs.h >>conftest.$ac_ext
6652 cat >>conftest.$ac_ext <<_ACEOF
6653 /* end confdefs.h. */
6654 #include <linux/ptrace.h>
6658 main ()
6660 #ifndef PTRACE_SETOPTIONS
6661 (void) PTRACE_SETOPTIONS;
6662 #endif
6665 return 0;
6667 _ACEOF
6668 rm -f conftest.$ac_objext
6669 if { (ac_try="$ac_compile"
6670 case "(($ac_try" in
6671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6672 *) ac_try_echo=$ac_try;;
6673 esac
6674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6675 $as_echo "$ac_try_echo") >&5
6676 (eval "$ac_compile") 2>conftest.er1
6677 ac_status=$?
6678 grep -v '^ *+' conftest.er1 >conftest.err
6679 rm -f conftest.er1
6680 cat conftest.err >&5
6681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682 (exit $ac_status); } && {
6683 test -z "$ac_c_werror_flag" ||
6684 test ! -s conftest.err
6685 } && test -s conftest.$ac_objext; then
6686 ac_cv_have_decl_PTRACE_SETOPTIONS=yes
6687 else
6688 $as_echo "$as_me: failed program was:" >&5
6689 sed 's/^/| /' conftest.$ac_ext >&5
6691 ac_cv_have_decl_PTRACE_SETOPTIONS=no
6694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6696 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_PTRACE_SETOPTIONS" >&5
6697 $as_echo "$ac_cv_have_decl_PTRACE_SETOPTIONS" >&6; }
6698 if test "x$ac_cv_have_decl_PTRACE_SETOPTIONS" = x""yes; then
6700 cat >>confdefs.h <<_ACEOF
6701 #define HAVE_DECL_PTRACE_SETOPTIONS 1
6702 _ACEOF
6705 else
6706 cat >>confdefs.h <<_ACEOF
6707 #define HAVE_DECL_PTRACE_SETOPTIONS 0
6708 _ACEOF
6716 done
6722 for ac_header in selinux/selinux.h
6724 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6726 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6727 $as_echo_n "checking for $ac_header... " >&6; }
6728 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6729 $as_echo_n "(cached) " >&6
6731 ac_res=`eval 'as_val=${'$as_ac_Header'}
6732 $as_echo "$as_val"'`
6733 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6734 $as_echo "$ac_res" >&6; }
6735 else
6736 # Is the header compilable?
6737 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6738 $as_echo_n "checking $ac_header usability... " >&6; }
6739 cat >conftest.$ac_ext <<_ACEOF
6740 /* confdefs.h. */
6741 _ACEOF
6742 cat confdefs.h >>conftest.$ac_ext
6743 cat >>conftest.$ac_ext <<_ACEOF
6744 /* end confdefs.h. */
6745 $ac_includes_default
6746 #include <$ac_header>
6747 _ACEOF
6748 rm -f conftest.$ac_objext
6749 if { (ac_try="$ac_compile"
6750 case "(($ac_try" in
6751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6752 *) ac_try_echo=$ac_try;;
6753 esac
6754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6755 $as_echo "$ac_try_echo") >&5
6756 (eval "$ac_compile") 2>conftest.er1
6757 ac_status=$?
6758 grep -v '^ *+' conftest.er1 >conftest.err
6759 rm -f conftest.er1
6760 cat conftest.err >&5
6761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762 (exit $ac_status); } && {
6763 test -z "$ac_c_werror_flag" ||
6764 test ! -s conftest.err
6765 } && test -s conftest.$ac_objext; then
6766 ac_header_compiler=yes
6767 else
6768 $as_echo "$as_me: failed program was:" >&5
6769 sed 's/^/| /' conftest.$ac_ext >&5
6771 ac_header_compiler=no
6774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6775 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6776 $as_echo "$ac_header_compiler" >&6; }
6778 # Is the header present?
6779 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6780 $as_echo_n "checking $ac_header presence... " >&6; }
6781 cat >conftest.$ac_ext <<_ACEOF
6782 /* confdefs.h. */
6783 _ACEOF
6784 cat confdefs.h >>conftest.$ac_ext
6785 cat >>conftest.$ac_ext <<_ACEOF
6786 /* end confdefs.h. */
6787 #include <$ac_header>
6788 _ACEOF
6789 if { (ac_try="$ac_cpp conftest.$ac_ext"
6790 case "(($ac_try" in
6791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6792 *) ac_try_echo=$ac_try;;
6793 esac
6794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6795 $as_echo "$ac_try_echo") >&5
6796 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6797 ac_status=$?
6798 grep -v '^ *+' conftest.er1 >conftest.err
6799 rm -f conftest.er1
6800 cat conftest.err >&5
6801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802 (exit $ac_status); } >/dev/null && {
6803 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6804 test ! -s conftest.err
6805 }; then
6806 ac_header_preproc=yes
6807 else
6808 $as_echo "$as_me: failed program was:" >&5
6809 sed 's/^/| /' conftest.$ac_ext >&5
6811 ac_header_preproc=no
6814 rm -f conftest.err conftest.$ac_ext
6815 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6816 $as_echo "$ac_header_preproc" >&6; }
6818 # So? What about this header?
6819 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6820 yes:no: )
6821 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6822 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6823 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6824 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6825 ac_header_preproc=yes
6827 no:yes:* )
6828 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6829 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6830 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6831 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6832 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6833 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6834 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6835 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6836 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6837 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6838 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6839 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6840 ( cat <<\_ASBOX
6841 ## ------------------------------------------------ ##
6842 ## Report this to ltp-results@lists.sourceforge.net ##
6843 ## ------------------------------------------------ ##
6844 _ASBOX
6845 ) | sed "s/^/$as_me: WARNING: /" >&2
6847 esac
6848 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6849 $as_echo_n "checking for $ac_header... " >&6; }
6850 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6851 $as_echo_n "(cached) " >&6
6852 else
6853 eval "$as_ac_Header=\$ac_header_preproc"
6855 ac_res=`eval 'as_val=${'$as_ac_Header'}
6856 $as_echo "$as_val"'`
6857 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6858 $as_echo "$ac_res" >&6; }
6861 as_val=`eval 'as_val=${'$as_ac_Header'}
6862 $as_echo "$as_val"'`
6863 if test "x$as_val" = x""yes; then
6864 cat >>confdefs.h <<_ACEOF
6865 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6866 _ACEOF
6868 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
6869 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
6870 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
6871 $as_echo_n "(cached) " >&6
6872 else
6873 ac_check_lib_save_LIBS=$LIBS
6874 LIBS="-lselinux $LIBS"
6875 cat >conftest.$ac_ext <<_ACEOF
6876 /* confdefs.h. */
6877 _ACEOF
6878 cat confdefs.h >>conftest.$ac_ext
6879 cat >>conftest.$ac_ext <<_ACEOF
6880 /* end confdefs.h. */
6882 /* Override any GCC internal prototype to avoid an error.
6883 Use char because int might match the return type of a GCC
6884 builtin and then its argument prototype would still apply. */
6885 #ifdef __cplusplus
6886 extern "C"
6887 #endif
6888 char is_selinux_enabled ();
6890 main ()
6892 return is_selinux_enabled ();
6894 return 0;
6896 _ACEOF
6897 rm -f conftest.$ac_objext conftest$ac_exeext
6898 if { (ac_try="$ac_link"
6899 case "(($ac_try" in
6900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6901 *) ac_try_echo=$ac_try;;
6902 esac
6903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6904 $as_echo "$ac_try_echo") >&5
6905 (eval "$ac_link") 2>conftest.er1
6906 ac_status=$?
6907 grep -v '^ *+' conftest.er1 >conftest.err
6908 rm -f conftest.er1
6909 cat conftest.err >&5
6910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); } && {
6912 test -z "$ac_c_werror_flag" ||
6913 test ! -s conftest.err
6914 } && test -s conftest$ac_exeext && {
6915 test "$cross_compiling" = yes ||
6916 $as_test_x conftest$ac_exeext
6917 }; then
6918 ac_cv_lib_selinux_is_selinux_enabled=yes
6919 else
6920 $as_echo "$as_me: failed program was:" >&5
6921 sed 's/^/| /' conftest.$ac_ext >&5
6923 ac_cv_lib_selinux_is_selinux_enabled=no
6926 rm -rf conftest.dSYM
6927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6928 conftest$ac_exeext conftest.$ac_ext
6929 LIBS=$ac_check_lib_save_LIBS
6931 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
6932 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
6933 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
6935 cat >>confdefs.h <<\_ACEOF
6936 #define HAVE_LIBSELINUX_DEVEL 1
6937 _ACEOF
6938 SELINUX_LIBS="-lselinux"
6939 else
6941 SELINUX_LIBS=""
6944 else
6946 SELINUX_LIBS=""
6949 done
6955 for ac_header in libaio.h
6957 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6959 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6960 $as_echo_n "checking for $ac_header... " >&6; }
6961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6962 $as_echo_n "(cached) " >&6
6964 ac_res=`eval 'as_val=${'$as_ac_Header'}
6965 $as_echo "$as_val"'`
6966 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6967 $as_echo "$ac_res" >&6; }
6968 else
6969 # Is the header compilable?
6970 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6971 $as_echo_n "checking $ac_header usability... " >&6; }
6972 cat >conftest.$ac_ext <<_ACEOF
6973 /* confdefs.h. */
6974 _ACEOF
6975 cat confdefs.h >>conftest.$ac_ext
6976 cat >>conftest.$ac_ext <<_ACEOF
6977 /* end confdefs.h. */
6978 $ac_includes_default
6979 #include <$ac_header>
6980 _ACEOF
6981 rm -f conftest.$ac_objext
6982 if { (ac_try="$ac_compile"
6983 case "(($ac_try" in
6984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6985 *) ac_try_echo=$ac_try;;
6986 esac
6987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6988 $as_echo "$ac_try_echo") >&5
6989 (eval "$ac_compile") 2>conftest.er1
6990 ac_status=$?
6991 grep -v '^ *+' conftest.er1 >conftest.err
6992 rm -f conftest.er1
6993 cat conftest.err >&5
6994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995 (exit $ac_status); } && {
6996 test -z "$ac_c_werror_flag" ||
6997 test ! -s conftest.err
6998 } && test -s conftest.$ac_objext; then
6999 ac_header_compiler=yes
7000 else
7001 $as_echo "$as_me: failed program was:" >&5
7002 sed 's/^/| /' conftest.$ac_ext >&5
7004 ac_header_compiler=no
7007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7008 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7009 $as_echo "$ac_header_compiler" >&6; }
7011 # Is the header present?
7012 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7013 $as_echo_n "checking $ac_header presence... " >&6; }
7014 cat >conftest.$ac_ext <<_ACEOF
7015 /* confdefs.h. */
7016 _ACEOF
7017 cat confdefs.h >>conftest.$ac_ext
7018 cat >>conftest.$ac_ext <<_ACEOF
7019 /* end confdefs.h. */
7020 #include <$ac_header>
7021 _ACEOF
7022 if { (ac_try="$ac_cpp conftest.$ac_ext"
7023 case "(($ac_try" in
7024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7025 *) ac_try_echo=$ac_try;;
7026 esac
7027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7028 $as_echo "$ac_try_echo") >&5
7029 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7030 ac_status=$?
7031 grep -v '^ *+' conftest.er1 >conftest.err
7032 rm -f conftest.er1
7033 cat conftest.err >&5
7034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035 (exit $ac_status); } >/dev/null && {
7036 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7037 test ! -s conftest.err
7038 }; then
7039 ac_header_preproc=yes
7040 else
7041 $as_echo "$as_me: failed program was:" >&5
7042 sed 's/^/| /' conftest.$ac_ext >&5
7044 ac_header_preproc=no
7047 rm -f conftest.err conftest.$ac_ext
7048 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7049 $as_echo "$ac_header_preproc" >&6; }
7051 # So? What about this header?
7052 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7053 yes:no: )
7054 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7055 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7056 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7057 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7058 ac_header_preproc=yes
7060 no:yes:* )
7061 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7062 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7063 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7064 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7065 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7066 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7067 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7068 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7069 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7070 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7071 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7072 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7073 ( cat <<\_ASBOX
7074 ## ------------------------------------------------ ##
7075 ## Report this to ltp-results@lists.sourceforge.net ##
7076 ## ------------------------------------------------ ##
7077 _ASBOX
7078 ) | sed "s/^/$as_me: WARNING: /" >&2
7080 esac
7081 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7082 $as_echo_n "checking for $ac_header... " >&6; }
7083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7084 $as_echo_n "(cached) " >&6
7085 else
7086 eval "$as_ac_Header=\$ac_header_preproc"
7088 ac_res=`eval 'as_val=${'$as_ac_Header'}
7089 $as_echo "$as_val"'`
7090 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7091 $as_echo "$ac_res" >&6; }
7094 as_val=`eval 'as_val=${'$as_ac_Header'}
7095 $as_echo "$as_val"'`
7096 if test "x$as_val" = x""yes; then
7097 cat >>confdefs.h <<_ACEOF
7098 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7099 _ACEOF
7101 { $as_echo "$as_me:$LINENO: checking for io_setup in -laio" >&5
7102 $as_echo_n "checking for io_setup in -laio... " >&6; }
7103 if test "${ac_cv_lib_aio_io_setup+set}" = set; then
7104 $as_echo_n "(cached) " >&6
7105 else
7106 ac_check_lib_save_LIBS=$LIBS
7107 LIBS="-laio $LIBS"
7108 cat >conftest.$ac_ext <<_ACEOF
7109 /* confdefs.h. */
7110 _ACEOF
7111 cat confdefs.h >>conftest.$ac_ext
7112 cat >>conftest.$ac_ext <<_ACEOF
7113 /* end confdefs.h. */
7115 /* Override any GCC internal prototype to avoid an error.
7116 Use char because int might match the return type of a GCC
7117 builtin and then its argument prototype would still apply. */
7118 #ifdef __cplusplus
7119 extern "C"
7120 #endif
7121 char io_setup ();
7123 main ()
7125 return io_setup ();
7127 return 0;
7129 _ACEOF
7130 rm -f conftest.$ac_objext conftest$ac_exeext
7131 if { (ac_try="$ac_link"
7132 case "(($ac_try" in
7133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7134 *) ac_try_echo=$ac_try;;
7135 esac
7136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7137 $as_echo "$ac_try_echo") >&5
7138 (eval "$ac_link") 2>conftest.er1
7139 ac_status=$?
7140 grep -v '^ *+' conftest.er1 >conftest.err
7141 rm -f conftest.er1
7142 cat conftest.err >&5
7143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144 (exit $ac_status); } && {
7145 test -z "$ac_c_werror_flag" ||
7146 test ! -s conftest.err
7147 } && test -s conftest$ac_exeext && {
7148 test "$cross_compiling" = yes ||
7149 $as_test_x conftest$ac_exeext
7150 }; then
7151 ac_cv_lib_aio_io_setup=yes
7152 else
7153 $as_echo "$as_me: failed program was:" >&5
7154 sed 's/^/| /' conftest.$ac_ext >&5
7156 ac_cv_lib_aio_io_setup=no
7159 rm -rf conftest.dSYM
7160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7161 conftest$ac_exeext conftest.$ac_ext
7162 LIBS=$ac_check_lib_save_LIBS
7164 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_aio_io_setup" >&5
7165 $as_echo "$ac_cv_lib_aio_io_setup" >&6; }
7166 if test "x$ac_cv_lib_aio_io_setup" = x""yes; then
7168 AIO_LIBS="-laio"
7169 { $as_echo "$as_me:$LINENO: checking io_set_eventfd is defined in aio library or aio header" >&5
7170 $as_echo_n "checking io_set_eventfd is defined in aio library or aio header... " >&6; }
7171 cat >conftest.$ac_ext <<_ACEOF
7172 /* confdefs.h. */
7173 _ACEOF
7174 cat confdefs.h >>conftest.$ac_ext
7175 cat >>conftest.$ac_ext <<_ACEOF
7176 /* end confdefs.h. */
7177 #include <stdio.h>
7178 #include <libaio.h>
7181 main ()
7183 io_set_eventfd(NULL, 0); return 0;
7186 return 0;
7188 _ACEOF
7189 rm -f conftest.$ac_objext conftest$ac_exeext
7190 if { (ac_try="$ac_link"
7191 case "(($ac_try" in
7192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7193 *) ac_try_echo=$ac_try;;
7194 esac
7195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7196 $as_echo "$ac_try_echo") >&5
7197 (eval "$ac_link") 2>conftest.er1
7198 ac_status=$?
7199 grep -v '^ *+' conftest.er1 >conftest.err
7200 rm -f conftest.er1
7201 cat conftest.err >&5
7202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); } && {
7204 test -z "$ac_c_werror_flag" ||
7205 test ! -s conftest.err
7206 } && test -s conftest$ac_exeext && {
7207 test "$cross_compiling" = yes ||
7208 $as_test_x conftest$ac_exeext
7209 }; then
7210 cat >>confdefs.h <<\_ACEOF
7211 #define HAVE_IO_SET_EVENTFD 1
7212 _ACEOF
7214 { $as_echo "$as_me:$LINENO: result: yes" >&5
7215 $as_echo "yes" >&6; }
7216 else
7217 $as_echo "$as_me: failed program was:" >&5
7218 sed 's/^/| /' conftest.$ac_ext >&5
7220 { $as_echo "$as_me:$LINENO: result: no" >&5
7221 $as_echo "no" >&6; }
7224 rm -rf conftest.dSYM
7225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7226 conftest$ac_exeext conftest.$ac_ext
7227 else
7228 AIO_LIBS=""
7233 done
7238 for ac_func in modify_ldt
7240 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7241 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7242 $as_echo_n "checking for $ac_func... " >&6; }
7243 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7244 $as_echo_n "(cached) " >&6
7245 else
7246 cat >conftest.$ac_ext <<_ACEOF
7247 /* confdefs.h. */
7248 _ACEOF
7249 cat confdefs.h >>conftest.$ac_ext
7250 cat >>conftest.$ac_ext <<_ACEOF
7251 /* end confdefs.h. */
7252 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7253 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7254 #define $ac_func innocuous_$ac_func
7256 /* System header to define __stub macros and hopefully few prototypes,
7257 which can conflict with char $ac_func (); below.
7258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7259 <limits.h> exists even on freestanding compilers. */
7261 #ifdef __STDC__
7262 # include <limits.h>
7263 #else
7264 # include <assert.h>
7265 #endif
7267 #undef $ac_func
7269 /* Override any GCC internal prototype to avoid an error.
7270 Use char because int might match the return type of a GCC
7271 builtin and then its argument prototype would still apply. */
7272 #ifdef __cplusplus
7273 extern "C"
7274 #endif
7275 char $ac_func ();
7276 /* The GNU C library defines this for functions which it implements
7277 to always fail with ENOSYS. Some functions are actually named
7278 something starting with __ and the normal name is an alias. */
7279 #if defined __stub_$ac_func || defined __stub___$ac_func
7280 choke me
7281 #endif
7284 main ()
7286 return $ac_func ();
7288 return 0;
7290 _ACEOF
7291 rm -f conftest.$ac_objext conftest$ac_exeext
7292 if { (ac_try="$ac_link"
7293 case "(($ac_try" in
7294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7295 *) ac_try_echo=$ac_try;;
7296 esac
7297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7298 $as_echo "$ac_try_echo") >&5
7299 (eval "$ac_link") 2>conftest.er1
7300 ac_status=$?
7301 grep -v '^ *+' conftest.er1 >conftest.err
7302 rm -f conftest.er1
7303 cat conftest.err >&5
7304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305 (exit $ac_status); } && {
7306 test -z "$ac_c_werror_flag" ||
7307 test ! -s conftest.err
7308 } && test -s conftest$ac_exeext && {
7309 test "$cross_compiling" = yes ||
7310 $as_test_x conftest$ac_exeext
7311 }; then
7312 eval "$as_ac_var=yes"
7313 else
7314 $as_echo "$as_me: failed program was:" >&5
7315 sed 's/^/| /' conftest.$ac_ext >&5
7317 eval "$as_ac_var=no"
7320 rm -rf conftest.dSYM
7321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7322 conftest$ac_exeext conftest.$ac_ext
7324 ac_res=`eval 'as_val=${'$as_ac_var'}
7325 $as_echo "$as_val"'`
7326 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7327 $as_echo "$ac_res" >&6; }
7328 as_val=`eval 'as_val=${'$as_ac_var'}
7329 $as_echo "$as_val"'`
7330 if test "x$as_val" = x""yes; then
7331 cat >>confdefs.h <<_ACEOF
7332 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7333 _ACEOF
7336 done
7339 for ac_header in asm/ldt.h
7341 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7343 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7344 $as_echo_n "checking for $ac_header... " >&6; }
7345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7346 $as_echo_n "(cached) " >&6
7348 ac_res=`eval 'as_val=${'$as_ac_Header'}
7349 $as_echo "$as_val"'`
7350 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7351 $as_echo "$ac_res" >&6; }
7352 else
7353 # Is the header compilable?
7354 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7355 $as_echo_n "checking $ac_header usability... " >&6; }
7356 cat >conftest.$ac_ext <<_ACEOF
7357 /* confdefs.h. */
7358 _ACEOF
7359 cat confdefs.h >>conftest.$ac_ext
7360 cat >>conftest.$ac_ext <<_ACEOF
7361 /* end confdefs.h. */
7362 $ac_includes_default
7363 #include <$ac_header>
7364 _ACEOF
7365 rm -f conftest.$ac_objext
7366 if { (ac_try="$ac_compile"
7367 case "(($ac_try" in
7368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7369 *) ac_try_echo=$ac_try;;
7370 esac
7371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7372 $as_echo "$ac_try_echo") >&5
7373 (eval "$ac_compile") 2>conftest.er1
7374 ac_status=$?
7375 grep -v '^ *+' conftest.er1 >conftest.err
7376 rm -f conftest.er1
7377 cat conftest.err >&5
7378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379 (exit $ac_status); } && {
7380 test -z "$ac_c_werror_flag" ||
7381 test ! -s conftest.err
7382 } && test -s conftest.$ac_objext; then
7383 ac_header_compiler=yes
7384 else
7385 $as_echo "$as_me: failed program was:" >&5
7386 sed 's/^/| /' conftest.$ac_ext >&5
7388 ac_header_compiler=no
7391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7392 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7393 $as_echo "$ac_header_compiler" >&6; }
7395 # Is the header present?
7396 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7397 $as_echo_n "checking $ac_header presence... " >&6; }
7398 cat >conftest.$ac_ext <<_ACEOF
7399 /* confdefs.h. */
7400 _ACEOF
7401 cat confdefs.h >>conftest.$ac_ext
7402 cat >>conftest.$ac_ext <<_ACEOF
7403 /* end confdefs.h. */
7404 #include <$ac_header>
7405 _ACEOF
7406 if { (ac_try="$ac_cpp conftest.$ac_ext"
7407 case "(($ac_try" in
7408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7409 *) ac_try_echo=$ac_try;;
7410 esac
7411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7412 $as_echo "$ac_try_echo") >&5
7413 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7414 ac_status=$?
7415 grep -v '^ *+' conftest.er1 >conftest.err
7416 rm -f conftest.er1
7417 cat conftest.err >&5
7418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); } >/dev/null && {
7420 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7421 test ! -s conftest.err
7422 }; then
7423 ac_header_preproc=yes
7424 else
7425 $as_echo "$as_me: failed program was:" >&5
7426 sed 's/^/| /' conftest.$ac_ext >&5
7428 ac_header_preproc=no
7431 rm -f conftest.err conftest.$ac_ext
7432 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7433 $as_echo "$ac_header_preproc" >&6; }
7435 # So? What about this header?
7436 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7437 yes:no: )
7438 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7439 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7440 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7441 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7442 ac_header_preproc=yes
7444 no:yes:* )
7445 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7446 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7447 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7448 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7449 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7450 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7451 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7452 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7453 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7454 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7455 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7456 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7457 ( cat <<\_ASBOX
7458 ## ------------------------------------------------ ##
7459 ## Report this to ltp-results@lists.sourceforge.net ##
7460 ## ------------------------------------------------ ##
7461 _ASBOX
7462 ) | sed "s/^/$as_me: WARNING: /" >&2
7464 esac
7465 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7466 $as_echo_n "checking for $ac_header... " >&6; }
7467 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7468 $as_echo_n "(cached) " >&6
7469 else
7470 eval "$as_ac_Header=\$ac_header_preproc"
7472 ac_res=`eval 'as_val=${'$as_ac_Header'}
7473 $as_echo "$as_val"'`
7474 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7475 $as_echo "$ac_res" >&6; }
7478 as_val=`eval 'as_val=${'$as_ac_Header'}
7479 $as_echo "$as_val"'`
7480 if test "x$as_val" = x""yes; then
7481 cat >>confdefs.h <<_ACEOF
7482 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7483 _ACEOF
7484 LTP_SYSCALL_MODIFY_LDT_HEADER=yes
7487 done
7489 if test x"$LTP_SYSCALL_MODIFY_LDT_HEADER" = xyes; then
7490 { $as_echo "$as_me:$LINENO: checking for struct user_desc" >&5
7491 $as_echo_n "checking for struct user_desc... " >&6; }
7492 if test "${ac_cv_type_struct_user_desc+set}" = set; then
7493 $as_echo_n "(cached) " >&6
7494 else
7495 ac_cv_type_struct_user_desc=no
7496 cat >conftest.$ac_ext <<_ACEOF
7497 /* confdefs.h. */
7498 _ACEOF
7499 cat confdefs.h >>conftest.$ac_ext
7500 cat >>conftest.$ac_ext <<_ACEOF
7501 /* end confdefs.h. */
7502 #include <asm/ldt.h>
7506 main ()
7508 if (sizeof (struct user_desc))
7509 return 0;
7511 return 0;
7513 _ACEOF
7514 rm -f conftest.$ac_objext
7515 if { (ac_try="$ac_compile"
7516 case "(($ac_try" in
7517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7518 *) ac_try_echo=$ac_try;;
7519 esac
7520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7521 $as_echo "$ac_try_echo") >&5
7522 (eval "$ac_compile") 2>conftest.er1
7523 ac_status=$?
7524 grep -v '^ *+' conftest.er1 >conftest.err
7525 rm -f conftest.er1
7526 cat conftest.err >&5
7527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528 (exit $ac_status); } && {
7529 test -z "$ac_c_werror_flag" ||
7530 test ! -s conftest.err
7531 } && test -s conftest.$ac_objext; then
7532 cat >conftest.$ac_ext <<_ACEOF
7533 /* confdefs.h. */
7534 _ACEOF
7535 cat confdefs.h >>conftest.$ac_ext
7536 cat >>conftest.$ac_ext <<_ACEOF
7537 /* end confdefs.h. */
7538 #include <asm/ldt.h>
7542 main ()
7544 if (sizeof ((struct user_desc)))
7545 return 0;
7547 return 0;
7549 _ACEOF
7550 rm -f conftest.$ac_objext
7551 if { (ac_try="$ac_compile"
7552 case "(($ac_try" in
7553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7554 *) ac_try_echo=$ac_try;;
7555 esac
7556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7557 $as_echo "$ac_try_echo") >&5
7558 (eval "$ac_compile") 2>conftest.er1
7559 ac_status=$?
7560 grep -v '^ *+' conftest.er1 >conftest.err
7561 rm -f conftest.er1
7562 cat conftest.err >&5
7563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564 (exit $ac_status); } && {
7565 test -z "$ac_c_werror_flag" ||
7566 test ! -s conftest.err
7567 } && test -s conftest.$ac_objext; then
7569 else
7570 $as_echo "$as_me: failed program was:" >&5
7571 sed 's/^/| /' conftest.$ac_ext >&5
7573 ac_cv_type_struct_user_desc=yes
7576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7577 else
7578 $as_echo "$as_me: failed program was:" >&5
7579 sed 's/^/| /' conftest.$ac_ext >&5
7584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7586 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_user_desc" >&5
7587 $as_echo "$ac_cv_type_struct_user_desc" >&6; }
7588 if test "x$ac_cv_type_struct_user_desc" = x""yes; then
7590 cat >>confdefs.h <<_ACEOF
7591 #define HAVE_STRUCT_USER_DESC 1
7592 _ACEOF
7596 { $as_echo "$as_me:$LINENO: checking for struct modify_ldt_ldt_s" >&5
7597 $as_echo_n "checking for struct modify_ldt_ldt_s... " >&6; }
7598 if test "${ac_cv_type_struct_modify_ldt_ldt_s+set}" = set; then
7599 $as_echo_n "(cached) " >&6
7600 else
7601 ac_cv_type_struct_modify_ldt_ldt_s=no
7602 cat >conftest.$ac_ext <<_ACEOF
7603 /* confdefs.h. */
7604 _ACEOF
7605 cat confdefs.h >>conftest.$ac_ext
7606 cat >>conftest.$ac_ext <<_ACEOF
7607 /* end confdefs.h. */
7608 #include <asm/ldt.h>
7612 main ()
7614 if (sizeof (struct modify_ldt_ldt_s))
7615 return 0;
7617 return 0;
7619 _ACEOF
7620 rm -f conftest.$ac_objext
7621 if { (ac_try="$ac_compile"
7622 case "(($ac_try" in
7623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7624 *) ac_try_echo=$ac_try;;
7625 esac
7626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7627 $as_echo "$ac_try_echo") >&5
7628 (eval "$ac_compile") 2>conftest.er1
7629 ac_status=$?
7630 grep -v '^ *+' conftest.er1 >conftest.err
7631 rm -f conftest.er1
7632 cat conftest.err >&5
7633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634 (exit $ac_status); } && {
7635 test -z "$ac_c_werror_flag" ||
7636 test ! -s conftest.err
7637 } && test -s conftest.$ac_objext; then
7638 cat >conftest.$ac_ext <<_ACEOF
7639 /* confdefs.h. */
7640 _ACEOF
7641 cat confdefs.h >>conftest.$ac_ext
7642 cat >>conftest.$ac_ext <<_ACEOF
7643 /* end confdefs.h. */
7644 #include <asm/ldt.h>
7648 main ()
7650 if (sizeof ((struct modify_ldt_ldt_s)))
7651 return 0;
7653 return 0;
7655 _ACEOF
7656 rm -f conftest.$ac_objext
7657 if { (ac_try="$ac_compile"
7658 case "(($ac_try" in
7659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7660 *) ac_try_echo=$ac_try;;
7661 esac
7662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7663 $as_echo "$ac_try_echo") >&5
7664 (eval "$ac_compile") 2>conftest.er1
7665 ac_status=$?
7666 grep -v '^ *+' conftest.er1 >conftest.err
7667 rm -f conftest.er1
7668 cat conftest.err >&5
7669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); } && {
7671 test -z "$ac_c_werror_flag" ||
7672 test ! -s conftest.err
7673 } && test -s conftest.$ac_objext; then
7675 else
7676 $as_echo "$as_me: failed program was:" >&5
7677 sed 's/^/| /' conftest.$ac_ext >&5
7679 ac_cv_type_struct_modify_ldt_ldt_s=yes
7682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7683 else
7684 $as_echo "$as_me: failed program was:" >&5
7685 sed 's/^/| /' conftest.$ac_ext >&5
7690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7692 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_modify_ldt_ldt_s" >&5
7693 $as_echo "$ac_cv_type_struct_modify_ldt_ldt_s" >&6; }
7694 if test "x$ac_cv_type_struct_modify_ldt_ldt_s" = x""yes; then
7696 cat >>confdefs.h <<_ACEOF
7697 #define HAVE_STRUCT_MODIFY_LDT_LDT_S 1
7698 _ACEOF
7705 for ac_header in numa.h
7707 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7709 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7710 $as_echo_n "checking for $ac_header... " >&6; }
7711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7712 $as_echo_n "(cached) " >&6
7714 ac_res=`eval 'as_val=${'$as_ac_Header'}
7715 $as_echo "$as_val"'`
7716 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7717 $as_echo "$ac_res" >&6; }
7718 else
7719 # Is the header compilable?
7720 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7721 $as_echo_n "checking $ac_header usability... " >&6; }
7722 cat >conftest.$ac_ext <<_ACEOF
7723 /* confdefs.h. */
7724 _ACEOF
7725 cat confdefs.h >>conftest.$ac_ext
7726 cat >>conftest.$ac_ext <<_ACEOF
7727 /* end confdefs.h. */
7728 $ac_includes_default
7729 #include <$ac_header>
7730 _ACEOF
7731 rm -f conftest.$ac_objext
7732 if { (ac_try="$ac_compile"
7733 case "(($ac_try" in
7734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7735 *) ac_try_echo=$ac_try;;
7736 esac
7737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7738 $as_echo "$ac_try_echo") >&5
7739 (eval "$ac_compile") 2>conftest.er1
7740 ac_status=$?
7741 grep -v '^ *+' conftest.er1 >conftest.err
7742 rm -f conftest.er1
7743 cat conftest.err >&5
7744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745 (exit $ac_status); } && {
7746 test -z "$ac_c_werror_flag" ||
7747 test ! -s conftest.err
7748 } && test -s conftest.$ac_objext; then
7749 ac_header_compiler=yes
7750 else
7751 $as_echo "$as_me: failed program was:" >&5
7752 sed 's/^/| /' conftest.$ac_ext >&5
7754 ac_header_compiler=no
7757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7758 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7759 $as_echo "$ac_header_compiler" >&6; }
7761 # Is the header present?
7762 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7763 $as_echo_n "checking $ac_header presence... " >&6; }
7764 cat >conftest.$ac_ext <<_ACEOF
7765 /* confdefs.h. */
7766 _ACEOF
7767 cat confdefs.h >>conftest.$ac_ext
7768 cat >>conftest.$ac_ext <<_ACEOF
7769 /* end confdefs.h. */
7770 #include <$ac_header>
7771 _ACEOF
7772 if { (ac_try="$ac_cpp conftest.$ac_ext"
7773 case "(($ac_try" in
7774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7775 *) ac_try_echo=$ac_try;;
7776 esac
7777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7778 $as_echo "$ac_try_echo") >&5
7779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7780 ac_status=$?
7781 grep -v '^ *+' conftest.er1 >conftest.err
7782 rm -f conftest.er1
7783 cat conftest.err >&5
7784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); } >/dev/null && {
7786 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7787 test ! -s conftest.err
7788 }; then
7789 ac_header_preproc=yes
7790 else
7791 $as_echo "$as_me: failed program was:" >&5
7792 sed 's/^/| /' conftest.$ac_ext >&5
7794 ac_header_preproc=no
7797 rm -f conftest.err conftest.$ac_ext
7798 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7799 $as_echo "$ac_header_preproc" >&6; }
7801 # So? What about this header?
7802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7803 yes:no: )
7804 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7805 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7806 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7807 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7808 ac_header_preproc=yes
7810 no:yes:* )
7811 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7812 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7813 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7814 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7815 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7816 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7817 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7818 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7819 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7820 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7821 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7822 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7823 ( cat <<\_ASBOX
7824 ## ------------------------------------------------ ##
7825 ## Report this to ltp-results@lists.sourceforge.net ##
7826 ## ------------------------------------------------ ##
7827 _ASBOX
7828 ) | sed "s/^/$as_me: WARNING: /" >&2
7830 esac
7831 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7832 $as_echo_n "checking for $ac_header... " >&6; }
7833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7834 $as_echo_n "(cached) " >&6
7835 else
7836 eval "$as_ac_Header=\$ac_header_preproc"
7838 ac_res=`eval 'as_val=${'$as_ac_Header'}
7839 $as_echo "$as_val"'`
7840 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7841 $as_echo "$ac_res" >&6; }
7844 as_val=`eval 'as_val=${'$as_ac_Header'}
7845 $as_echo "$as_val"'`
7846 if test "x$as_val" = x""yes; then
7847 cat >>confdefs.h <<_ACEOF
7848 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7849 _ACEOF
7851 LTP_SYSCALL_NUMA_HEADER=yes
7853 for ac_func in numa_alloc_onnode
7855 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7856 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7857 $as_echo_n "checking for $ac_func... " >&6; }
7858 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7859 $as_echo_n "(cached) " >&6
7860 else
7861 cat >conftest.$ac_ext <<_ACEOF
7862 /* confdefs.h. */
7863 _ACEOF
7864 cat confdefs.h >>conftest.$ac_ext
7865 cat >>conftest.$ac_ext <<_ACEOF
7866 /* end confdefs.h. */
7867 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7869 #define $ac_func innocuous_$ac_func
7871 /* System header to define __stub macros and hopefully few prototypes,
7872 which can conflict with char $ac_func (); below.
7873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7874 <limits.h> exists even on freestanding compilers. */
7876 #ifdef __STDC__
7877 # include <limits.h>
7878 #else
7879 # include <assert.h>
7880 #endif
7882 #undef $ac_func
7884 /* Override any GCC internal prototype to avoid an error.
7885 Use char because int might match the return type of a GCC
7886 builtin and then its argument prototype would still apply. */
7887 #ifdef __cplusplus
7888 extern "C"
7889 #endif
7890 char $ac_func ();
7891 /* The GNU C library defines this for functions which it implements
7892 to always fail with ENOSYS. Some functions are actually named
7893 something starting with __ and the normal name is an alias. */
7894 #if defined __stub_$ac_func || defined __stub___$ac_func
7895 choke me
7896 #endif
7899 main ()
7901 return $ac_func ();
7903 return 0;
7905 _ACEOF
7906 rm -f conftest.$ac_objext conftest$ac_exeext
7907 if { (ac_try="$ac_link"
7908 case "(($ac_try" in
7909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7910 *) ac_try_echo=$ac_try;;
7911 esac
7912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7913 $as_echo "$ac_try_echo") >&5
7914 (eval "$ac_link") 2>conftest.er1
7915 ac_status=$?
7916 grep -v '^ *+' conftest.er1 >conftest.err
7917 rm -f conftest.er1
7918 cat conftest.err >&5
7919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920 (exit $ac_status); } && {
7921 test -z "$ac_c_werror_flag" ||
7922 test ! -s conftest.err
7923 } && test -s conftest$ac_exeext && {
7924 test "$cross_compiling" = yes ||
7925 $as_test_x conftest$ac_exeext
7926 }; then
7927 eval "$as_ac_var=yes"
7928 else
7929 $as_echo "$as_me: failed program was:" >&5
7930 sed 's/^/| /' conftest.$ac_ext >&5
7932 eval "$as_ac_var=no"
7935 rm -rf conftest.dSYM
7936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7937 conftest$ac_exeext conftest.$ac_ext
7939 ac_res=`eval 'as_val=${'$as_ac_var'}
7940 $as_echo "$as_val"'`
7941 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7942 $as_echo "$ac_res" >&6; }
7943 as_val=`eval 'as_val=${'$as_ac_var'}
7944 $as_echo "$as_val"'`
7945 if test "x$as_val" = x""yes; then
7946 cat >>confdefs.h <<_ACEOF
7947 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7948 _ACEOF
7949 numa_move_pages
7951 done
7954 for ac_header in numaif.h
7956 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7958 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7959 $as_echo_n "checking for $ac_header... " >&6; }
7960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7961 $as_echo_n "(cached) " >&6
7963 ac_res=`eval 'as_val=${'$as_ac_Header'}
7964 $as_echo "$as_val"'`
7965 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7966 $as_echo "$ac_res" >&6; }
7967 else
7968 # Is the header compilable?
7969 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7970 $as_echo_n "checking $ac_header usability... " >&6; }
7971 cat >conftest.$ac_ext <<_ACEOF
7972 /* confdefs.h. */
7973 _ACEOF
7974 cat confdefs.h >>conftest.$ac_ext
7975 cat >>conftest.$ac_ext <<_ACEOF
7976 /* end confdefs.h. */
7977 $ac_includes_default
7978 #include <$ac_header>
7979 _ACEOF
7980 rm -f conftest.$ac_objext
7981 if { (ac_try="$ac_compile"
7982 case "(($ac_try" in
7983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7984 *) ac_try_echo=$ac_try;;
7985 esac
7986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7987 $as_echo "$ac_try_echo") >&5
7988 (eval "$ac_compile") 2>conftest.er1
7989 ac_status=$?
7990 grep -v '^ *+' conftest.er1 >conftest.err
7991 rm -f conftest.er1
7992 cat conftest.err >&5
7993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994 (exit $ac_status); } && {
7995 test -z "$ac_c_werror_flag" ||
7996 test ! -s conftest.err
7997 } && test -s conftest.$ac_objext; then
7998 ac_header_compiler=yes
7999 else
8000 $as_echo "$as_me: failed program was:" >&5
8001 sed 's/^/| /' conftest.$ac_ext >&5
8003 ac_header_compiler=no
8006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8007 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8008 $as_echo "$ac_header_compiler" >&6; }
8010 # Is the header present?
8011 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8012 $as_echo_n "checking $ac_header presence... " >&6; }
8013 cat >conftest.$ac_ext <<_ACEOF
8014 /* confdefs.h. */
8015 _ACEOF
8016 cat confdefs.h >>conftest.$ac_ext
8017 cat >>conftest.$ac_ext <<_ACEOF
8018 /* end confdefs.h. */
8019 #include <$ac_header>
8020 _ACEOF
8021 if { (ac_try="$ac_cpp conftest.$ac_ext"
8022 case "(($ac_try" in
8023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8024 *) ac_try_echo=$ac_try;;
8025 esac
8026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8027 $as_echo "$ac_try_echo") >&5
8028 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8029 ac_status=$?
8030 grep -v '^ *+' conftest.er1 >conftest.err
8031 rm -f conftest.er1
8032 cat conftest.err >&5
8033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); } >/dev/null && {
8035 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8036 test ! -s conftest.err
8037 }; then
8038 ac_header_preproc=yes
8039 else
8040 $as_echo "$as_me: failed program was:" >&5
8041 sed 's/^/| /' conftest.$ac_ext >&5
8043 ac_header_preproc=no
8046 rm -f conftest.err conftest.$ac_ext
8047 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8048 $as_echo "$ac_header_preproc" >&6; }
8050 # So? What about this header?
8051 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8052 yes:no: )
8053 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8054 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8055 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8056 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8057 ac_header_preproc=yes
8059 no:yes:* )
8060 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8061 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8062 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8063 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8064 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8065 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8066 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8067 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8068 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8069 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8070 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8071 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8072 ( cat <<\_ASBOX
8073 ## ------------------------------------------------ ##
8074 ## Report this to ltp-results@lists.sourceforge.net ##
8075 ## ------------------------------------------------ ##
8076 _ASBOX
8077 ) | sed "s/^/$as_me: WARNING: /" >&2
8079 esac
8080 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8081 $as_echo_n "checking for $ac_header... " >&6; }
8082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8083 $as_echo_n "(cached) " >&6
8084 else
8085 eval "$as_ac_Header=\$ac_header_preproc"
8087 ac_res=`eval 'as_val=${'$as_ac_Header'}
8088 $as_echo "$as_val"'`
8089 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8090 $as_echo "$ac_res" >&6; }
8093 as_val=`eval 'as_val=${'$as_ac_Header'}
8094 $as_echo "$as_val"'`
8095 if test "x$as_val" = x""yes; then
8096 cat >>confdefs.h <<_ACEOF
8097 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8098 _ACEOF
8099 LTP_SYSCALL_NUMAIF_HEADER=yes
8102 done
8105 { $as_echo "$as_me:$LINENO: checking for numa_available in -lnuma" >&5
8106 $as_echo_n "checking for numa_available in -lnuma... " >&6; }
8107 if test "${ac_cv_lib_numa_numa_available+set}" = set; then
8108 $as_echo_n "(cached) " >&6
8109 else
8110 ac_check_lib_save_LIBS=$LIBS
8111 LIBS="-lnuma $LIBS"
8112 cat >conftest.$ac_ext <<_ACEOF
8113 /* confdefs.h. */
8114 _ACEOF
8115 cat confdefs.h >>conftest.$ac_ext
8116 cat >>conftest.$ac_ext <<_ACEOF
8117 /* end confdefs.h. */
8119 /* Override any GCC internal prototype to avoid an error.
8120 Use char because int might match the return type of a GCC
8121 builtin and then its argument prototype would still apply. */
8122 #ifdef __cplusplus
8123 extern "C"
8124 #endif
8125 char numa_available ();
8127 main ()
8129 return numa_available ();
8131 return 0;
8133 _ACEOF
8134 rm -f conftest.$ac_objext conftest$ac_exeext
8135 if { (ac_try="$ac_link"
8136 case "(($ac_try" in
8137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8138 *) ac_try_echo=$ac_try;;
8139 esac
8140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8141 $as_echo "$ac_try_echo") >&5
8142 (eval "$ac_link") 2>conftest.er1
8143 ac_status=$?
8144 grep -v '^ *+' conftest.er1 >conftest.err
8145 rm -f conftest.er1
8146 cat conftest.err >&5
8147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); } && {
8149 test -z "$ac_c_werror_flag" ||
8150 test ! -s conftest.err
8151 } && test -s conftest$ac_exeext && {
8152 test "$cross_compiling" = yes ||
8153 $as_test_x conftest$ac_exeext
8154 }; then
8155 ac_cv_lib_numa_numa_available=yes
8156 else
8157 $as_echo "$as_me: failed program was:" >&5
8158 sed 's/^/| /' conftest.$ac_ext >&5
8160 ac_cv_lib_numa_numa_available=no
8163 rm -rf conftest.dSYM
8164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8165 conftest$ac_exeext conftest.$ac_ext
8166 LIBS=$ac_check_lib_save_LIBS
8168 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_numa_numa_available" >&5
8169 $as_echo "$ac_cv_lib_numa_numa_available" >&6; }
8170 if test "x$ac_cv_lib_numa_numa_available" = x""yes; then
8172 NUMA_LIBS="-lnuma"
8180 done
8182 cat >conftest.$ac_ext <<_ACEOF
8183 /* confdefs.h. */
8184 _ACEOF
8185 cat confdefs.h >>conftest.$ac_ext
8186 cat >>conftest.$ac_ext <<_ACEOF
8187 /* end confdefs.h. */
8189 #include <linux/quota.h>
8190 #include <fs/xqm.h>
8191 #include <linux/dqblk_v1.h>
8192 #include <linux/dqblk_v2.h>
8193 #include <unistd.h>
8195 main ()
8198 int main(void) {
8199 return quotactl(Q_GETINFO, (const char *)NULL, geteuid(), (caddr_t)NULL);
8202 return 0;
8204 _ACEOF
8205 rm -f conftest.$ac_objext
8206 if { (ac_try="$ac_compile"
8207 case "(($ac_try" in
8208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8209 *) ac_try_echo=$ac_try;;
8210 esac
8211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8212 $as_echo "$ac_try_echo") >&5
8213 (eval "$ac_compile") 2>conftest.er1
8214 ac_status=$?
8215 grep -v '^ *+' conftest.er1 >conftest.err
8216 rm -f conftest.er1
8217 cat conftest.err >&5
8218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 (exit $ac_status); } && {
8220 test -z "$ac_c_werror_flag" ||
8221 test ! -s conftest.err
8222 } && test -s conftest.$ac_objext; then
8223 has_rhel46_quotactl="yes"
8224 else
8225 $as_echo "$as_me: failed program was:" >&5
8226 sed 's/^/| /' conftest.$ac_ext >&5
8228 cat >conftest.$ac_ext <<_ACEOF
8229 /* confdefs.h. */
8230 _ACEOF
8231 cat confdefs.h >>conftest.$ac_ext
8232 cat >>conftest.$ac_ext <<_ACEOF
8233 /* end confdefs.h. */
8235 #include <sys/quota.h>
8236 #include <xfs/xqm.h>
8237 #include <linux/dqblk_v1.h>
8238 #include <linux/dqblk_v2.h>
8239 #include <unistd.h>
8241 main ()
8244 int main(void) {
8245 return quotactl(Q_GETINFO, (const char *)NULL, geteuid(), (caddr_t)NULL);
8248 return 0;
8250 _ACEOF
8251 rm -f conftest.$ac_objext
8252 if { (ac_try="$ac_compile"
8253 case "(($ac_try" in
8254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8255 *) ac_try_echo=$ac_try;;
8256 esac
8257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8258 $as_echo "$ac_try_echo") >&5
8259 (eval "$ac_compile") 2>conftest.er1
8260 ac_status=$?
8261 grep -v '^ *+' conftest.er1 >conftest.err
8262 rm -f conftest.er1
8263 cat conftest.err >&5
8264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); } && {
8266 test -z "$ac_c_werror_flag" ||
8267 test ! -s conftest.err
8268 } && test -s conftest.$ac_objext; then
8269 has_rhel48_quotactl="yes"
8270 else
8271 $as_echo "$as_me: failed program was:" >&5
8272 sed 's/^/| /' conftest.$ac_ext >&5
8274 cat >conftest.$ac_ext <<_ACEOF
8275 /* confdefs.h. */
8276 _ACEOF
8277 cat confdefs.h >>conftest.$ac_ext
8278 cat >>conftest.$ac_ext <<_ACEOF
8279 /* end confdefs.h. */
8281 #include <sys/types.h>
8282 #include <sys/quota.h>
8283 #include <unistd.h>
8285 main ()
8288 int main(void) {
8289 return quotactl(Q_GETINFO, (const char *)NULL, geteuid(), (caddr_t)NULL);
8292 return 0;
8294 _ACEOF
8295 rm -f conftest.$ac_objext
8296 if { (ac_try="$ac_compile"
8297 case "(($ac_try" in
8298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8299 *) ac_try_echo=$ac_try;;
8300 esac
8301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8302 $as_echo "$ac_try_echo") >&5
8303 (eval "$ac_compile") 2>conftest.er1
8304 ac_status=$?
8305 grep -v '^ *+' conftest.er1 >conftest.err
8306 rm -f conftest.er1
8307 cat conftest.err >&5
8308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); } && {
8310 test -z "$ac_c_werror_flag" ||
8311 test ! -s conftest.err
8312 } && test -s conftest.$ac_objext; then
8313 has_new_minimal_quotactl="yes"
8314 else
8315 $as_echo "$as_me: failed program was:" >&5
8316 sed 's/^/| /' conftest.$ac_ext >&5
8318 { $as_echo "$as_me:$LINENO: WARNING: Couldn't find functional copy of quotactl" >&5
8319 $as_echo "$as_me: WARNING: Couldn't find functional copy of quotactl" >&2;}
8322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8329 if test "x$has_rhel46_quotactl" = "xyes"; then
8331 cat >>confdefs.h <<\_ACEOF
8332 #define HAS_RHEL46_QUOTACTL 1
8333 _ACEOF
8335 elif test "x$has_rhel48_quotactl" = "xyes"; then
8337 cat >>confdefs.h <<\_ACEOF
8338 #define HAS_RHEL48_QUOTACTL 1
8339 _ACEOF
8341 elif test "x$has_new_minimal_quotactl" = "xyes"; then
8343 cat >>confdefs.h <<\_ACEOF
8344 #define HAS_NEW_MINIMAL_QUOTACTL 1
8345 _ACEOF
8352 for ac_func in signalfd
8354 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8355 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8356 $as_echo_n "checking for $ac_func... " >&6; }
8357 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8358 $as_echo_n "(cached) " >&6
8359 else
8360 cat >conftest.$ac_ext <<_ACEOF
8361 /* confdefs.h. */
8362 _ACEOF
8363 cat confdefs.h >>conftest.$ac_ext
8364 cat >>conftest.$ac_ext <<_ACEOF
8365 /* end confdefs.h. */
8366 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8367 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8368 #define $ac_func innocuous_$ac_func
8370 /* System header to define __stub macros and hopefully few prototypes,
8371 which can conflict with char $ac_func (); below.
8372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8373 <limits.h> exists even on freestanding compilers. */
8375 #ifdef __STDC__
8376 # include <limits.h>
8377 #else
8378 # include <assert.h>
8379 #endif
8381 #undef $ac_func
8383 /* Override any GCC internal prototype to avoid an error.
8384 Use char because int might match the return type of a GCC
8385 builtin and then its argument prototype would still apply. */
8386 #ifdef __cplusplus
8387 extern "C"
8388 #endif
8389 char $ac_func ();
8390 /* The GNU C library defines this for functions which it implements
8391 to always fail with ENOSYS. Some functions are actually named
8392 something starting with __ and the normal name is an alias. */
8393 #if defined __stub_$ac_func || defined __stub___$ac_func
8394 choke me
8395 #endif
8398 main ()
8400 return $ac_func ();
8402 return 0;
8404 _ACEOF
8405 rm -f conftest.$ac_objext conftest$ac_exeext
8406 if { (ac_try="$ac_link"
8407 case "(($ac_try" in
8408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8409 *) ac_try_echo=$ac_try;;
8410 esac
8411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8412 $as_echo "$ac_try_echo") >&5
8413 (eval "$ac_link") 2>conftest.er1
8414 ac_status=$?
8415 grep -v '^ *+' conftest.er1 >conftest.err
8416 rm -f conftest.er1
8417 cat conftest.err >&5
8418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); } && {
8420 test -z "$ac_c_werror_flag" ||
8421 test ! -s conftest.err
8422 } && test -s conftest$ac_exeext && {
8423 test "$cross_compiling" = yes ||
8424 $as_test_x conftest$ac_exeext
8425 }; then
8426 eval "$as_ac_var=yes"
8427 else
8428 $as_echo "$as_me: failed program was:" >&5
8429 sed 's/^/| /' conftest.$ac_ext >&5
8431 eval "$as_ac_var=no"
8434 rm -rf conftest.dSYM
8435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8436 conftest$ac_exeext conftest.$ac_ext
8438 ac_res=`eval 'as_val=${'$as_ac_var'}
8439 $as_echo "$as_val"'`
8440 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8441 $as_echo "$ac_res" >&6; }
8442 as_val=`eval 'as_val=${'$as_ac_var'}
8443 $as_echo "$as_val"'`
8444 if test "x$as_val" = x""yes; then
8445 cat >>confdefs.h <<_ACEOF
8446 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8447 _ACEOF
8448 LTP_SYSCALL_SIGNALFD_FUNCTION=yes
8450 done
8453 for ac_header in sys/signalfd.h
8455 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8457 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8458 $as_echo_n "checking for $ac_header... " >&6; }
8459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8460 $as_echo_n "(cached) " >&6
8462 ac_res=`eval 'as_val=${'$as_ac_Header'}
8463 $as_echo "$as_val"'`
8464 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8465 $as_echo "$ac_res" >&6; }
8466 else
8467 # Is the header compilable?
8468 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8469 $as_echo_n "checking $ac_header usability... " >&6; }
8470 cat >conftest.$ac_ext <<_ACEOF
8471 /* confdefs.h. */
8472 _ACEOF
8473 cat confdefs.h >>conftest.$ac_ext
8474 cat >>conftest.$ac_ext <<_ACEOF
8475 /* end confdefs.h. */
8476 $ac_includes_default
8477 #include <$ac_header>
8478 _ACEOF
8479 rm -f conftest.$ac_objext
8480 if { (ac_try="$ac_compile"
8481 case "(($ac_try" in
8482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8483 *) ac_try_echo=$ac_try;;
8484 esac
8485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8486 $as_echo "$ac_try_echo") >&5
8487 (eval "$ac_compile") 2>conftest.er1
8488 ac_status=$?
8489 grep -v '^ *+' conftest.er1 >conftest.err
8490 rm -f conftest.er1
8491 cat conftest.err >&5
8492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); } && {
8494 test -z "$ac_c_werror_flag" ||
8495 test ! -s conftest.err
8496 } && test -s conftest.$ac_objext; then
8497 ac_header_compiler=yes
8498 else
8499 $as_echo "$as_me: failed program was:" >&5
8500 sed 's/^/| /' conftest.$ac_ext >&5
8502 ac_header_compiler=no
8505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8506 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8507 $as_echo "$ac_header_compiler" >&6; }
8509 # Is the header present?
8510 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8511 $as_echo_n "checking $ac_header presence... " >&6; }
8512 cat >conftest.$ac_ext <<_ACEOF
8513 /* confdefs.h. */
8514 _ACEOF
8515 cat confdefs.h >>conftest.$ac_ext
8516 cat >>conftest.$ac_ext <<_ACEOF
8517 /* end confdefs.h. */
8518 #include <$ac_header>
8519 _ACEOF
8520 if { (ac_try="$ac_cpp conftest.$ac_ext"
8521 case "(($ac_try" in
8522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8523 *) ac_try_echo=$ac_try;;
8524 esac
8525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8526 $as_echo "$ac_try_echo") >&5
8527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8528 ac_status=$?
8529 grep -v '^ *+' conftest.er1 >conftest.err
8530 rm -f conftest.er1
8531 cat conftest.err >&5
8532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); } >/dev/null && {
8534 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8535 test ! -s conftest.err
8536 }; then
8537 ac_header_preproc=yes
8538 else
8539 $as_echo "$as_me: failed program was:" >&5
8540 sed 's/^/| /' conftest.$ac_ext >&5
8542 ac_header_preproc=no
8545 rm -f conftest.err conftest.$ac_ext
8546 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8547 $as_echo "$ac_header_preproc" >&6; }
8549 # So? What about this header?
8550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8551 yes:no: )
8552 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8553 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8554 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8555 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8556 ac_header_preproc=yes
8558 no:yes:* )
8559 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8560 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8561 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8562 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8563 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8564 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8565 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8566 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8567 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8568 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8569 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8570 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8571 ( cat <<\_ASBOX
8572 ## ------------------------------------------------ ##
8573 ## Report this to ltp-results@lists.sourceforge.net ##
8574 ## ------------------------------------------------ ##
8575 _ASBOX
8576 ) | sed "s/^/$as_me: WARNING: /" >&2
8578 esac
8579 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8580 $as_echo_n "checking for $ac_header... " >&6; }
8581 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8582 $as_echo_n "(cached) " >&6
8583 else
8584 eval "$as_ac_Header=\$ac_header_preproc"
8586 ac_res=`eval 'as_val=${'$as_ac_Header'}
8587 $as_echo "$as_val"'`
8588 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8589 $as_echo "$ac_res" >&6; }
8592 as_val=`eval 'as_val=${'$as_ac_Header'}
8593 $as_echo "$as_val"'`
8594 if test "x$as_val" = x""yes; then
8595 cat >>confdefs.h <<_ACEOF
8596 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8597 _ACEOF
8601 done
8611 for ac_header in linux/signalfd.h signalfd.h
8613 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8614 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8615 $as_echo_n "checking for $ac_header... " >&6; }
8616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8617 $as_echo_n "(cached) " >&6
8618 else
8619 cat >conftest.$ac_ext <<_ACEOF
8620 /* confdefs.h. */
8621 _ACEOF
8622 cat confdefs.h >>conftest.$ac_ext
8623 cat >>conftest.$ac_ext <<_ACEOF
8624 /* end confdefs.h. */
8625 #ifdef HAVE_LINUX_TYPES_H
8626 #include <linux/types.h>
8627 #endif
8630 #include <$ac_header>
8631 _ACEOF
8632 rm -f conftest.$ac_objext
8633 if { (ac_try="$ac_compile"
8634 case "(($ac_try" in
8635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8636 *) ac_try_echo=$ac_try;;
8637 esac
8638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8639 $as_echo "$ac_try_echo") >&5
8640 (eval "$ac_compile") 2>conftest.er1
8641 ac_status=$?
8642 grep -v '^ *+' conftest.er1 >conftest.err
8643 rm -f conftest.er1
8644 cat conftest.err >&5
8645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); } && {
8647 test -z "$ac_c_werror_flag" ||
8648 test ! -s conftest.err
8649 } && test -s conftest.$ac_objext; then
8650 eval "$as_ac_Header=yes"
8651 else
8652 $as_echo "$as_me: failed program was:" >&5
8653 sed 's/^/| /' conftest.$ac_ext >&5
8655 eval "$as_ac_Header=no"
8658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8660 ac_res=`eval 'as_val=${'$as_ac_Header'}
8661 $as_echo "$as_val"'`
8662 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8663 $as_echo "$ac_res" >&6; }
8664 as_val=`eval 'as_val=${'$as_ac_Header'}
8665 $as_echo "$as_val"'`
8666 if test "x$as_val" = x""yes; then
8667 cat >>confdefs.h <<_ACEOF
8668 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8669 _ACEOF
8670 LTP_SYSCALL_SIGNALFD_HEADER=yes
8673 done
8676 if test x"$LTP_SYSCALL_SIGNALFD_HEADER" = xyes; then
8677 { $as_echo "$as_me:$LINENO: checking for struct signalfd_siginfo.ssi_signo" >&5
8678 $as_echo_n "checking for struct signalfd_siginfo.ssi_signo... " >&6; }
8679 if test "${ac_cv_member_struct_signalfd_siginfo_ssi_signo+set}" = set; then
8680 $as_echo_n "(cached) " >&6
8681 else
8682 cat >conftest.$ac_ext <<_ACEOF
8683 /* confdefs.h. */
8684 _ACEOF
8685 cat confdefs.h >>conftest.$ac_ext
8686 cat >>conftest.$ac_ext <<_ACEOF
8687 /* end confdefs.h. */
8688 #if defined HAVE_SYS_SIGNALFD_H
8689 #include <sys/signalfd.h>
8690 #elif defined HAVE_LINUX_SIGNALFD_H
8691 #ifdef HAVE_LINUX_TYPES_H
8692 #include <linux/types.h>
8693 #endif
8694 #include <linux/signalfd.h>
8695 #elif defined HAVE_SIGNALFD_H
8696 #include <signalfd.h>
8697 #endif
8700 main ()
8702 static struct signalfd_siginfo ac_aggr;
8703 if (ac_aggr.ssi_signo)
8704 return 0;
8706 return 0;
8708 _ACEOF
8709 rm -f conftest.$ac_objext
8710 if { (ac_try="$ac_compile"
8711 case "(($ac_try" in
8712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8713 *) ac_try_echo=$ac_try;;
8714 esac
8715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8716 $as_echo "$ac_try_echo") >&5
8717 (eval "$ac_compile") 2>conftest.er1
8718 ac_status=$?
8719 grep -v '^ *+' conftest.er1 >conftest.err
8720 rm -f conftest.er1
8721 cat conftest.err >&5
8722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 (exit $ac_status); } && {
8724 test -z "$ac_c_werror_flag" ||
8725 test ! -s conftest.err
8726 } && test -s conftest.$ac_objext; then
8727 ac_cv_member_struct_signalfd_siginfo_ssi_signo=yes
8728 else
8729 $as_echo "$as_me: failed program was:" >&5
8730 sed 's/^/| /' conftest.$ac_ext >&5
8732 cat >conftest.$ac_ext <<_ACEOF
8733 /* confdefs.h. */
8734 _ACEOF
8735 cat confdefs.h >>conftest.$ac_ext
8736 cat >>conftest.$ac_ext <<_ACEOF
8737 /* end confdefs.h. */
8738 #if defined HAVE_SYS_SIGNALFD_H
8739 #include <sys/signalfd.h>
8740 #elif defined HAVE_LINUX_SIGNALFD_H
8741 #ifdef HAVE_LINUX_TYPES_H
8742 #include <linux/types.h>
8743 #endif
8744 #include <linux/signalfd.h>
8745 #elif defined HAVE_SIGNALFD_H
8746 #include <signalfd.h>
8747 #endif
8750 main ()
8752 static struct signalfd_siginfo ac_aggr;
8753 if (sizeof ac_aggr.ssi_signo)
8754 return 0;
8756 return 0;
8758 _ACEOF
8759 rm -f conftest.$ac_objext
8760 if { (ac_try="$ac_compile"
8761 case "(($ac_try" in
8762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8763 *) ac_try_echo=$ac_try;;
8764 esac
8765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8766 $as_echo "$ac_try_echo") >&5
8767 (eval "$ac_compile") 2>conftest.er1
8768 ac_status=$?
8769 grep -v '^ *+' conftest.er1 >conftest.err
8770 rm -f conftest.er1
8771 cat conftest.err >&5
8772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); } && {
8774 test -z "$ac_c_werror_flag" ||
8775 test ! -s conftest.err
8776 } && test -s conftest.$ac_objext; then
8777 ac_cv_member_struct_signalfd_siginfo_ssi_signo=yes
8778 else
8779 $as_echo "$as_me: failed program was:" >&5
8780 sed 's/^/| /' conftest.$ac_ext >&5
8782 ac_cv_member_struct_signalfd_siginfo_ssi_signo=no
8785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8790 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_signalfd_siginfo_ssi_signo" >&5
8791 $as_echo "$ac_cv_member_struct_signalfd_siginfo_ssi_signo" >&6; }
8792 if test "x$ac_cv_member_struct_signalfd_siginfo_ssi_signo" = x""yes; then
8794 cat >>confdefs.h <<_ACEOF
8795 #define HAVE_STRUCT_SIGNALFD_SIGINFO_SSI_SIGNO 1
8796 _ACEOF
8798 LTP_SYSCALL_SIGNALFD_FIELD_PREFIX=given
8800 { $as_echo "$as_me:$LINENO: checking for struct signalfd_siginfo.signo" >&5
8801 $as_echo_n "checking for struct signalfd_siginfo.signo... " >&6; }
8802 if test "${ac_cv_member_struct_signalfd_siginfo_signo+set}" = set; then
8803 $as_echo_n "(cached) " >&6
8804 else
8805 cat >conftest.$ac_ext <<_ACEOF
8806 /* confdefs.h. */
8807 _ACEOF
8808 cat confdefs.h >>conftest.$ac_ext
8809 cat >>conftest.$ac_ext <<_ACEOF
8810 /* end confdefs.h. */
8811 #if defined HAVE_SYS_SIGNALFD_H
8812 #include <sys/signalfd.h>
8813 #elif defined HAVE_LINUX_SIGNALFD_H
8814 #ifdef HAVE_LINUX_TYPES_H
8815 #include <linux/types.h>
8816 #endif
8817 #include <linux/signalfd.h>
8818 #elif defined HAVE_SIGNALFD_H
8819 #include <signalfd.h>
8820 #endif
8823 main ()
8825 static struct signalfd_siginfo ac_aggr;
8826 if (ac_aggr.signo)
8827 return 0;
8829 return 0;
8831 _ACEOF
8832 rm -f conftest.$ac_objext
8833 if { (ac_try="$ac_compile"
8834 case "(($ac_try" in
8835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8836 *) ac_try_echo=$ac_try;;
8837 esac
8838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8839 $as_echo "$ac_try_echo") >&5
8840 (eval "$ac_compile") 2>conftest.er1
8841 ac_status=$?
8842 grep -v '^ *+' conftest.er1 >conftest.err
8843 rm -f conftest.er1
8844 cat conftest.err >&5
8845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846 (exit $ac_status); } && {
8847 test -z "$ac_c_werror_flag" ||
8848 test ! -s conftest.err
8849 } && test -s conftest.$ac_objext; then
8850 ac_cv_member_struct_signalfd_siginfo_signo=yes
8851 else
8852 $as_echo "$as_me: failed program was:" >&5
8853 sed 's/^/| /' conftest.$ac_ext >&5
8855 cat >conftest.$ac_ext <<_ACEOF
8856 /* confdefs.h. */
8857 _ACEOF
8858 cat confdefs.h >>conftest.$ac_ext
8859 cat >>conftest.$ac_ext <<_ACEOF
8860 /* end confdefs.h. */
8861 #if defined HAVE_SYS_SIGNALFD_H
8862 #include <sys/signalfd.h>
8863 #elif defined HAVE_LINUX_SIGNALFD_H
8864 #ifdef HAVE_LINUX_TYPES_H
8865 #include <linux/types.h>
8866 #endif
8867 #include <linux/signalfd.h>
8868 #elif defined HAVE_SIGNALFD_H
8869 #include <signalfd.h>
8870 #endif
8873 main ()
8875 static struct signalfd_siginfo ac_aggr;
8876 if (sizeof ac_aggr.signo)
8877 return 0;
8879 return 0;
8881 _ACEOF
8882 rm -f conftest.$ac_objext
8883 if { (ac_try="$ac_compile"
8884 case "(($ac_try" in
8885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8886 *) ac_try_echo=$ac_try;;
8887 esac
8888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8889 $as_echo "$ac_try_echo") >&5
8890 (eval "$ac_compile") 2>conftest.er1
8891 ac_status=$?
8892 grep -v '^ *+' conftest.er1 >conftest.err
8893 rm -f conftest.er1
8894 cat conftest.err >&5
8895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896 (exit $ac_status); } && {
8897 test -z "$ac_c_werror_flag" ||
8898 test ! -s conftest.err
8899 } && test -s conftest.$ac_objext; then
8900 ac_cv_member_struct_signalfd_siginfo_signo=yes
8901 else
8902 $as_echo "$as_me: failed program was:" >&5
8903 sed 's/^/| /' conftest.$ac_ext >&5
8905 ac_cv_member_struct_signalfd_siginfo_signo=no
8908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8913 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_signalfd_siginfo_signo" >&5
8914 $as_echo "$ac_cv_member_struct_signalfd_siginfo_signo" >&6; }
8915 if test "x$ac_cv_member_struct_signalfd_siginfo_signo" = x""yes; then
8917 cat >>confdefs.h <<_ACEOF
8918 #define HAVE_STRUCT_SIGNALFD_SIGINFO_SIGNO 1
8919 _ACEOF
8921 LTP_SYSCALL_SIGNALFD_FIELD_PREFIX=given
8930 for ac_func in $ac_func_list
8932 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8933 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8934 $as_echo_n "checking for $ac_func... " >&6; }
8935 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8936 $as_echo_n "(cached) " >&6
8937 else
8938 cat >conftest.$ac_ext <<_ACEOF
8939 /* confdefs.h. */
8940 _ACEOF
8941 cat confdefs.h >>conftest.$ac_ext
8942 cat >>conftest.$ac_ext <<_ACEOF
8943 /* end confdefs.h. */
8944 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8946 #define $ac_func innocuous_$ac_func
8948 /* System header to define __stub macros and hopefully few prototypes,
8949 which can conflict with char $ac_func (); below.
8950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8951 <limits.h> exists even on freestanding compilers. */
8953 #ifdef __STDC__
8954 # include <limits.h>
8955 #else
8956 # include <assert.h>
8957 #endif
8959 #undef $ac_func
8961 /* Override any GCC internal prototype to avoid an error.
8962 Use char because int might match the return type of a GCC
8963 builtin and then its argument prototype would still apply. */
8964 #ifdef __cplusplus
8965 extern "C"
8966 #endif
8967 char $ac_func ();
8968 /* The GNU C library defines this for functions which it implements
8969 to always fail with ENOSYS. Some functions are actually named
8970 something starting with __ and the normal name is an alias. */
8971 #if defined __stub_$ac_func || defined __stub___$ac_func
8972 choke me
8973 #endif
8976 main ()
8978 return $ac_func ();
8980 return 0;
8982 _ACEOF
8983 rm -f conftest.$ac_objext conftest$ac_exeext
8984 if { (ac_try="$ac_link"
8985 case "(($ac_try" in
8986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8987 *) ac_try_echo=$ac_try;;
8988 esac
8989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8990 $as_echo "$ac_try_echo") >&5
8991 (eval "$ac_link") 2>conftest.er1
8992 ac_status=$?
8993 grep -v '^ *+' conftest.er1 >conftest.err
8994 rm -f conftest.er1
8995 cat conftest.err >&5
8996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); } && {
8998 test -z "$ac_c_werror_flag" ||
8999 test ! -s conftest.err
9000 } && test -s conftest$ac_exeext && {
9001 test "$cross_compiling" = yes ||
9002 $as_test_x conftest$ac_exeext
9003 }; then
9004 eval "$as_ac_var=yes"
9005 else
9006 $as_echo "$as_me: failed program was:" >&5
9007 sed 's/^/| /' conftest.$ac_ext >&5
9009 eval "$as_ac_var=no"
9012 rm -rf conftest.dSYM
9013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9014 conftest$ac_exeext conftest.$ac_ext
9016 ac_res=`eval 'as_val=${'$as_ac_var'}
9017 $as_echo "$as_val"'`
9018 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9019 $as_echo "$ac_res" >&6; }
9020 as_val=`eval 'as_val=${'$as_ac_var'}
9021 $as_echo "$as_val"'`
9022 if test "x$as_val" = x""yes; then
9023 cat >>confdefs.h <<_ACEOF
9024 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9025 _ACEOF
9028 done
9039 { $as_echo "$as_me:$LINENO: checking for swapon / swapoff implementation" >&5
9040 $as_echo_n "checking for swapon / swapoff implementation... " >&6; }
9041 cat >conftest.$ac_ext <<_ACEOF
9042 /* confdefs.h. */
9043 _ACEOF
9044 cat confdefs.h >>conftest.$ac_ext
9045 cat >>conftest.$ac_ext <<_ACEOF
9046 /* end confdefs.h. */
9047 #include <unistd.h>
9048 #include <sys/swap.h>
9050 main ()
9052 swapon("/foo", 0); swapoff("/foo"); return 0;
9054 return 0;
9056 _ACEOF
9057 rm -f conftest.$ac_objext
9058 if { (ac_try="$ac_compile"
9059 case "(($ac_try" in
9060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9061 *) ac_try_echo=$ac_try;;
9062 esac
9063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9064 $as_echo "$ac_try_echo") >&5
9065 (eval "$ac_compile") 2>conftest.er1
9066 ac_status=$?
9067 grep -v '^ *+' conftest.er1 >conftest.err
9068 rm -f conftest.er1
9069 cat conftest.err >&5
9070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); } && {
9072 test -z "$ac_c_werror_flag" ||
9073 test ! -s conftest.err
9074 } && test -s conftest.$ac_objext; then
9075 swaponoff_impl="2.6"
9076 else
9077 $as_echo "$as_me: failed program was:" >&5
9078 sed 's/^/| /' conftest.$ac_ext >&5
9080 cat >conftest.$ac_ext <<_ACEOF
9081 /* confdefs.h. */
9082 _ACEOF
9083 cat confdefs.h >>conftest.$ac_ext
9084 cat >>conftest.$ac_ext <<_ACEOF
9085 /* end confdefs.h. */
9086 #include <unistd.h>
9087 #include <sys/swap.h>
9088 #include <linux/swap.h>
9090 main ()
9092 swapon("/foo", 0); swapoff("/foo"); return 0;
9094 return 0;
9096 _ACEOF
9097 rm -f conftest.$ac_objext
9098 if { (ac_try="$ac_compile"
9099 case "(($ac_try" in
9100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9101 *) ac_try_echo=$ac_try;;
9102 esac
9103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9104 $as_echo "$ac_try_echo") >&5
9105 (eval "$ac_compile") 2>conftest.er1
9106 ac_status=$?
9107 grep -v '^ *+' conftest.er1 >conftest.err
9108 rm -f conftest.er1
9109 cat conftest.err >&5
9110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111 (exit $ac_status); } && {
9112 test -z "$ac_c_werror_flag" ||
9113 test ! -s conftest.err
9114 } && test -s conftest.$ac_objext; then
9115 swaponoff_impl="2.4"
9116 else
9117 $as_echo "$as_me: failed program was:" >&5
9118 sed 's/^/| /' conftest.$ac_ext >&5
9123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9128 if test "x$swaponoff_impl" = "x2.4" ; then
9129 { $as_echo "$as_me:$LINENO: result: 2.6" >&5
9130 $as_echo "2.6" >&6; }
9132 cat >>confdefs.h <<\_ACEOF
9133 #define HAVE_OLD_SWAPONOFF /**/
9134 _ACEOF
9136 elif test "x$swaponoff_impl" = "x2.6" ; then
9137 { $as_echo "$as_me:$LINENO: result: 2.6" >&5
9138 $as_echo "2.6" >&6; }
9140 cat >>confdefs.h <<\_ACEOF
9141 #define HAVE_NEW_SWAPONOFF /**/
9142 _ACEOF
9144 else
9145 { $as_echo "$as_me:$LINENO: result: unknown" >&5
9146 $as_echo "unknown" >&6; }
9147 { $as_echo "$as_me:$LINENO: WARNING: Couldn't determine swapon / swapoff implementation" >&5
9148 $as_echo "$as_me: WARNING: Couldn't determine swapon / swapoff implementation" >&2;}
9153 for ac_header in linux/taskstats.h
9155 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9156 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9157 $as_echo_n "checking for $ac_header... " >&6; }
9158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9159 $as_echo_n "(cached) " >&6
9160 else
9161 cat >conftest.$ac_ext <<_ACEOF
9162 /* confdefs.h. */
9163 _ACEOF
9164 cat confdefs.h >>conftest.$ac_ext
9165 cat >>conftest.$ac_ext <<_ACEOF
9166 /* end confdefs.h. */
9168 #include <linux/types.h>
9171 #include <$ac_header>
9172 _ACEOF
9173 rm -f conftest.$ac_objext
9174 if { (ac_try="$ac_compile"
9175 case "(($ac_try" in
9176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9177 *) ac_try_echo=$ac_try;;
9178 esac
9179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9180 $as_echo "$ac_try_echo") >&5
9181 (eval "$ac_compile") 2>conftest.er1
9182 ac_status=$?
9183 grep -v '^ *+' conftest.er1 >conftest.err
9184 rm -f conftest.er1
9185 cat conftest.err >&5
9186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187 (exit $ac_status); } && {
9188 test -z "$ac_c_werror_flag" ||
9189 test ! -s conftest.err
9190 } && test -s conftest.$ac_objext; then
9191 eval "$as_ac_Header=yes"
9192 else
9193 $as_echo "$as_me: failed program was:" >&5
9194 sed 's/^/| /' conftest.$ac_ext >&5
9196 eval "$as_ac_Header=no"
9199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9201 ac_res=`eval 'as_val=${'$as_ac_Header'}
9202 $as_echo "$as_val"'`
9203 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9204 $as_echo "$ac_res" >&6; }
9205 as_val=`eval 'as_val=${'$as_ac_Header'}
9206 $as_echo "$as_val"'`
9207 if test "x$as_val" = x""yes; then
9208 cat >>confdefs.h <<_ACEOF
9209 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9210 _ACEOF
9212 { $as_echo "$as_me:$LINENO: checking for struct taskstats.freepages_count" >&5
9213 $as_echo_n "checking for struct taskstats.freepages_count... " >&6; }
9214 if test "${ac_cv_member_struct_taskstats_freepages_count+set}" = set; then
9215 $as_echo_n "(cached) " >&6
9216 else
9217 cat >conftest.$ac_ext <<_ACEOF
9218 /* confdefs.h. */
9219 _ACEOF
9220 cat confdefs.h >>conftest.$ac_ext
9221 cat >>conftest.$ac_ext <<_ACEOF
9222 /* end confdefs.h. */
9223 #include <linux/taskstats.h>
9227 main ()
9229 static struct taskstats ac_aggr;
9230 if (ac_aggr.freepages_count)
9231 return 0;
9233 return 0;
9235 _ACEOF
9236 rm -f conftest.$ac_objext
9237 if { (ac_try="$ac_compile"
9238 case "(($ac_try" in
9239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9240 *) ac_try_echo=$ac_try;;
9241 esac
9242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9243 $as_echo "$ac_try_echo") >&5
9244 (eval "$ac_compile") 2>conftest.er1
9245 ac_status=$?
9246 grep -v '^ *+' conftest.er1 >conftest.err
9247 rm -f conftest.er1
9248 cat conftest.err >&5
9249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250 (exit $ac_status); } && {
9251 test -z "$ac_c_werror_flag" ||
9252 test ! -s conftest.err
9253 } && test -s conftest.$ac_objext; then
9254 ac_cv_member_struct_taskstats_freepages_count=yes
9255 else
9256 $as_echo "$as_me: failed program was:" >&5
9257 sed 's/^/| /' conftest.$ac_ext >&5
9259 cat >conftest.$ac_ext <<_ACEOF
9260 /* confdefs.h. */
9261 _ACEOF
9262 cat confdefs.h >>conftest.$ac_ext
9263 cat >>conftest.$ac_ext <<_ACEOF
9264 /* end confdefs.h. */
9265 #include <linux/taskstats.h>
9269 main ()
9271 static struct taskstats ac_aggr;
9272 if (sizeof ac_aggr.freepages_count)
9273 return 0;
9275 return 0;
9277 _ACEOF
9278 rm -f conftest.$ac_objext
9279 if { (ac_try="$ac_compile"
9280 case "(($ac_try" in
9281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9282 *) ac_try_echo=$ac_try;;
9283 esac
9284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9285 $as_echo "$ac_try_echo") >&5
9286 (eval "$ac_compile") 2>conftest.er1
9287 ac_status=$?
9288 grep -v '^ *+' conftest.er1 >conftest.err
9289 rm -f conftest.er1
9290 cat conftest.err >&5
9291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292 (exit $ac_status); } && {
9293 test -z "$ac_c_werror_flag" ||
9294 test ! -s conftest.err
9295 } && test -s conftest.$ac_objext; then
9296 ac_cv_member_struct_taskstats_freepages_count=yes
9297 else
9298 $as_echo "$as_me: failed program was:" >&5
9299 sed 's/^/| /' conftest.$ac_ext >&5
9301 ac_cv_member_struct_taskstats_freepages_count=no
9304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9309 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_taskstats_freepages_count" >&5
9310 $as_echo "$ac_cv_member_struct_taskstats_freepages_count" >&6; }
9311 if test "x$ac_cv_member_struct_taskstats_freepages_count" = x""yes; then
9313 cat >>confdefs.h <<_ACEOF
9314 #define HAVE_STRUCT_TASKSTATS_FREEPAGES_COUNT 1
9315 _ACEOF
9319 { $as_echo "$as_me:$LINENO: checking for struct taskstats.nvcsw" >&5
9320 $as_echo_n "checking for struct taskstats.nvcsw... " >&6; }
9321 if test "${ac_cv_member_struct_taskstats_nvcsw+set}" = set; then
9322 $as_echo_n "(cached) " >&6
9323 else
9324 cat >conftest.$ac_ext <<_ACEOF
9325 /* confdefs.h. */
9326 _ACEOF
9327 cat confdefs.h >>conftest.$ac_ext
9328 cat >>conftest.$ac_ext <<_ACEOF
9329 /* end confdefs.h. */
9330 #include <linux/taskstats.h>
9334 main ()
9336 static struct taskstats ac_aggr;
9337 if (ac_aggr.nvcsw)
9338 return 0;
9340 return 0;
9342 _ACEOF
9343 rm -f conftest.$ac_objext
9344 if { (ac_try="$ac_compile"
9345 case "(($ac_try" in
9346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9347 *) ac_try_echo=$ac_try;;
9348 esac
9349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9350 $as_echo "$ac_try_echo") >&5
9351 (eval "$ac_compile") 2>conftest.er1
9352 ac_status=$?
9353 grep -v '^ *+' conftest.er1 >conftest.err
9354 rm -f conftest.er1
9355 cat conftest.err >&5
9356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); } && {
9358 test -z "$ac_c_werror_flag" ||
9359 test ! -s conftest.err
9360 } && test -s conftest.$ac_objext; then
9361 ac_cv_member_struct_taskstats_nvcsw=yes
9362 else
9363 $as_echo "$as_me: failed program was:" >&5
9364 sed 's/^/| /' conftest.$ac_ext >&5
9366 cat >conftest.$ac_ext <<_ACEOF
9367 /* confdefs.h. */
9368 _ACEOF
9369 cat confdefs.h >>conftest.$ac_ext
9370 cat >>conftest.$ac_ext <<_ACEOF
9371 /* end confdefs.h. */
9372 #include <linux/taskstats.h>
9376 main ()
9378 static struct taskstats ac_aggr;
9379 if (sizeof ac_aggr.nvcsw)
9380 return 0;
9382 return 0;
9384 _ACEOF
9385 rm -f conftest.$ac_objext
9386 if { (ac_try="$ac_compile"
9387 case "(($ac_try" in
9388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9389 *) ac_try_echo=$ac_try;;
9390 esac
9391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9392 $as_echo "$ac_try_echo") >&5
9393 (eval "$ac_compile") 2>conftest.er1
9394 ac_status=$?
9395 grep -v '^ *+' conftest.er1 >conftest.err
9396 rm -f conftest.er1
9397 cat conftest.err >&5
9398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); } && {
9400 test -z "$ac_c_werror_flag" ||
9401 test ! -s conftest.err
9402 } && test -s conftest.$ac_objext; then
9403 ac_cv_member_struct_taskstats_nvcsw=yes
9404 else
9405 $as_echo "$as_me: failed program was:" >&5
9406 sed 's/^/| /' conftest.$ac_ext >&5
9408 ac_cv_member_struct_taskstats_nvcsw=no
9411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9416 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_taskstats_nvcsw" >&5
9417 $as_echo "$ac_cv_member_struct_taskstats_nvcsw" >&6; }
9418 if test "x$ac_cv_member_struct_taskstats_nvcsw" = x""yes; then
9420 cat >>confdefs.h <<_ACEOF
9421 #define HAVE_STRUCT_TASKSTATS_NVCSW 1
9422 _ACEOF
9426 { $as_echo "$as_me:$LINENO: checking for struct taskstats.read_bytes" >&5
9427 $as_echo_n "checking for struct taskstats.read_bytes... " >&6; }
9428 if test "${ac_cv_member_struct_taskstats_read_bytes+set}" = set; then
9429 $as_echo_n "(cached) " >&6
9430 else
9431 cat >conftest.$ac_ext <<_ACEOF
9432 /* confdefs.h. */
9433 _ACEOF
9434 cat confdefs.h >>conftest.$ac_ext
9435 cat >>conftest.$ac_ext <<_ACEOF
9436 /* end confdefs.h. */
9437 #include <linux/taskstats.h>
9441 main ()
9443 static struct taskstats ac_aggr;
9444 if (ac_aggr.read_bytes)
9445 return 0;
9447 return 0;
9449 _ACEOF
9450 rm -f conftest.$ac_objext
9451 if { (ac_try="$ac_compile"
9452 case "(($ac_try" in
9453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9454 *) ac_try_echo=$ac_try;;
9455 esac
9456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9457 $as_echo "$ac_try_echo") >&5
9458 (eval "$ac_compile") 2>conftest.er1
9459 ac_status=$?
9460 grep -v '^ *+' conftest.er1 >conftest.err
9461 rm -f conftest.er1
9462 cat conftest.err >&5
9463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 (exit $ac_status); } && {
9465 test -z "$ac_c_werror_flag" ||
9466 test ! -s conftest.err
9467 } && test -s conftest.$ac_objext; then
9468 ac_cv_member_struct_taskstats_read_bytes=yes
9469 else
9470 $as_echo "$as_me: failed program was:" >&5
9471 sed 's/^/| /' conftest.$ac_ext >&5
9473 cat >conftest.$ac_ext <<_ACEOF
9474 /* confdefs.h. */
9475 _ACEOF
9476 cat confdefs.h >>conftest.$ac_ext
9477 cat >>conftest.$ac_ext <<_ACEOF
9478 /* end confdefs.h. */
9479 #include <linux/taskstats.h>
9483 main ()
9485 static struct taskstats ac_aggr;
9486 if (sizeof ac_aggr.read_bytes)
9487 return 0;
9489 return 0;
9491 _ACEOF
9492 rm -f conftest.$ac_objext
9493 if { (ac_try="$ac_compile"
9494 case "(($ac_try" in
9495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9496 *) ac_try_echo=$ac_try;;
9497 esac
9498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9499 $as_echo "$ac_try_echo") >&5
9500 (eval "$ac_compile") 2>conftest.er1
9501 ac_status=$?
9502 grep -v '^ *+' conftest.er1 >conftest.err
9503 rm -f conftest.er1
9504 cat conftest.err >&5
9505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); } && {
9507 test -z "$ac_c_werror_flag" ||
9508 test ! -s conftest.err
9509 } && test -s conftest.$ac_objext; then
9510 ac_cv_member_struct_taskstats_read_bytes=yes
9511 else
9512 $as_echo "$as_me: failed program was:" >&5
9513 sed 's/^/| /' conftest.$ac_ext >&5
9515 ac_cv_member_struct_taskstats_read_bytes=no
9518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9523 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_taskstats_read_bytes" >&5
9524 $as_echo "$ac_cv_member_struct_taskstats_read_bytes" >&6; }
9525 if test "x$ac_cv_member_struct_taskstats_read_bytes" = x""yes; then
9527 cat >>confdefs.h <<_ACEOF
9528 #define HAVE_STRUCT_TASKSTATS_READ_BYTES 1
9529 _ACEOF
9536 done
9540 cat >confcache <<\_ACEOF
9541 # This file is a shell script that caches the results of configure
9542 # tests run on this system so they can be shared between configure
9543 # scripts and configure runs, see configure's option --config-cache.
9544 # It is not useful on other systems. If it contains results you don't
9545 # want to keep, you may remove or edit it.
9547 # config.status only pays attention to the cache file if you give it
9548 # the --recheck option to rerun configure.
9550 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9551 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9552 # following values.
9554 _ACEOF
9556 # The following way of writing the cache mishandles newlines in values,
9557 # but we know of no workaround that is simple, portable, and efficient.
9558 # So, we kill variables containing newlines.
9559 # Ultrix sh set writes to stderr and can't be redirected directly,
9560 # and sets the high bit in the cache file unless we assign to the vars.
9562 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9563 eval ac_val=\$$ac_var
9564 case $ac_val in #(
9565 *${as_nl}*)
9566 case $ac_var in #(
9567 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
9568 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9569 esac
9570 case $ac_var in #(
9571 _ | IFS | as_nl) ;; #(
9572 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9573 *) $as_unset $ac_var ;;
9574 esac ;;
9575 esac
9576 done
9578 (set) 2>&1 |
9579 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9580 *${as_nl}ac_space=\ *)
9581 # `set' does not quote correctly, so add quotes (double-quote
9582 # substitution turns \\\\ into \\, and sed turns \\ into \).
9583 sed -n \
9584 "s/'/'\\\\''/g;
9585 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9586 ;; #(
9588 # `set' quotes correctly as required by POSIX, so do not add quotes.
9589 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9591 esac |
9592 sort
9594 sed '
9595 /^ac_cv_env_/b end
9596 t clear
9597 :clear
9598 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9599 t end
9600 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9601 :end' >>confcache
9602 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9603 if test -w "$cache_file"; then
9604 test "x$cache_file" != "x/dev/null" &&
9605 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
9606 $as_echo "$as_me: updating cache $cache_file" >&6;}
9607 cat confcache >$cache_file
9608 else
9609 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
9610 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9613 rm -f confcache
9615 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9616 # Let make expand exec_prefix.
9617 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9619 DEFS=-DHAVE_CONFIG_H
9621 ac_libobjs=
9622 ac_ltlibobjs=
9623 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9624 # 1. Remove the extension, and $U if already installed.
9625 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9626 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9627 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9628 # will be set to the directory where LIBOBJS objects are built.
9629 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9630 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
9631 done
9632 LIBOBJS=$ac_libobjs
9634 LTLIBOBJS=$ac_ltlibobjs
9637 if test -z "${CROSS_COMPILATION_TRUE}" && test -z "${CROSS_COMPILATION_FALSE}"; then
9638 { { $as_echo "$as_me:$LINENO: error: conditional \"CROSS_COMPILATION\" was never defined.
9639 Usually this means the macro was only invoked conditionally." >&5
9640 $as_echo "$as_me: error: conditional \"CROSS_COMPILATION\" was never defined.
9641 Usually this means the macro was only invoked conditionally." >&2;}
9642 { (exit 1); exit 1; }; }
9644 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9645 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9646 Usually this means the macro was only invoked conditionally." >&5
9647 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
9648 Usually this means the macro was only invoked conditionally." >&2;}
9649 { (exit 1); exit 1; }; }
9651 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9652 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9653 Usually this means the macro was only invoked conditionally." >&5
9654 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9655 Usually this means the macro was only invoked conditionally." >&2;}
9656 { (exit 1); exit 1; }; }
9659 : ${CONFIG_STATUS=./config.status}
9660 ac_write_fail=0
9661 ac_clean_files_save=$ac_clean_files
9662 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9663 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9664 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9665 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9666 #! $SHELL
9667 # Generated by $as_me.
9668 # Run this file to recreate the current configuration.
9669 # Compiler output produced by configure, useful for debugging
9670 # configure, is in config.log if it exists.
9672 debug=false
9673 ac_cs_recheck=false
9674 ac_cs_silent=false
9675 SHELL=\${CONFIG_SHELL-$SHELL}
9676 _ACEOF
9678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9679 ## --------------------- ##
9680 ## M4sh Initialization. ##
9681 ## --------------------- ##
9683 # Be more Bourne compatible
9684 DUALCASE=1; export DUALCASE # for MKS sh
9685 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9686 emulate sh
9687 NULLCMD=:
9688 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9689 # is contrary to our usage. Disable this feature.
9690 alias -g '${1+"$@"}'='"$@"'
9691 setopt NO_GLOB_SUBST
9692 else
9693 case `(set -o) 2>/dev/null` in
9694 *posix*) set -o posix ;;
9695 esac
9702 # PATH needs CR
9703 # Avoid depending upon Character Ranges.
9704 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9705 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9706 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9707 as_cr_digits='0123456789'
9708 as_cr_alnum=$as_cr_Letters$as_cr_digits
9710 as_nl='
9712 export as_nl
9713 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9714 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9715 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9716 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9717 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9718 as_echo='printf %s\n'
9719 as_echo_n='printf %s'
9720 else
9721 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9722 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9723 as_echo_n='/usr/ucb/echo -n'
9724 else
9725 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9726 as_echo_n_body='eval
9727 arg=$1;
9728 case $arg in
9729 *"$as_nl"*)
9730 expr "X$arg" : "X\\(.*\\)$as_nl";
9731 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9732 esac;
9733 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9735 export as_echo_n_body
9736 as_echo_n='sh -c $as_echo_n_body as_echo'
9738 export as_echo_body
9739 as_echo='sh -c $as_echo_body as_echo'
9742 # The user is always right.
9743 if test "${PATH_SEPARATOR+set}" != set; then
9744 PATH_SEPARATOR=:
9745 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9746 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9747 PATH_SEPARATOR=';'
9751 # Support unset when possible.
9752 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9753 as_unset=unset
9754 else
9755 as_unset=false
9759 # IFS
9760 # We need space, tab and new line, in precisely that order. Quoting is
9761 # there to prevent editors from complaining about space-tab.
9762 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9763 # splitting by setting IFS to empty value.)
9764 IFS=" "" $as_nl"
9766 # Find who we are. Look in the path if we contain no directory separator.
9767 case $0 in
9768 *[\\/]* ) as_myself=$0 ;;
9769 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9770 for as_dir in $PATH
9772 IFS=$as_save_IFS
9773 test -z "$as_dir" && as_dir=.
9774 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9775 done
9776 IFS=$as_save_IFS
9779 esac
9780 # We did not find ourselves, most probably we were run as `sh COMMAND'
9781 # in which case we are not to be found in the path.
9782 if test "x$as_myself" = x; then
9783 as_myself=$0
9785 if test ! -f "$as_myself"; then
9786 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9787 { (exit 1); exit 1; }
9790 # Work around bugs in pre-3.0 UWIN ksh.
9791 for as_var in ENV MAIL MAILPATH
9792 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9793 done
9794 PS1='$ '
9795 PS2='> '
9796 PS4='+ '
9798 # NLS nuisances.
9799 LC_ALL=C
9800 export LC_ALL
9801 LANGUAGE=C
9802 export LANGUAGE
9804 # Required to use basename.
9805 if expr a : '\(a\)' >/dev/null 2>&1 &&
9806 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9807 as_expr=expr
9808 else
9809 as_expr=false
9812 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9813 as_basename=basename
9814 else
9815 as_basename=false
9819 # Name of the executable.
9820 as_me=`$as_basename -- "$0" ||
9821 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9822 X"$0" : 'X\(//\)$' \| \
9823 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9824 $as_echo X/"$0" |
9825 sed '/^.*\/\([^/][^/]*\)\/*$/{
9826 s//\1/
9829 /^X\/\(\/\/\)$/{
9830 s//\1/
9833 /^X\/\(\/\).*/{
9834 s//\1/
9837 s/.*/./; q'`
9839 # CDPATH.
9840 $as_unset CDPATH
9844 as_lineno_1=$LINENO
9845 as_lineno_2=$LINENO
9846 test "x$as_lineno_1" != "x$as_lineno_2" &&
9847 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
9849 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9850 # uniformly replaced by the line number. The first 'sed' inserts a
9851 # line-number line after each line using $LINENO; the second 'sed'
9852 # does the real work. The second script uses 'N' to pair each
9853 # line-number line with the line containing $LINENO, and appends
9854 # trailing '-' during substitution so that $LINENO is not a special
9855 # case at line end.
9856 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9857 # scripts with optimization help from Paolo Bonzini. Blame Lee
9858 # E. McMahon (1931-1989) for sed's syntax. :-)
9859 sed -n '
9861 /[$]LINENO/=
9862 ' <$as_myself |
9863 sed '
9864 s/[$]LINENO.*/&-/
9865 t lineno
9867 :lineno
9869 :loop
9870 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
9871 t loop
9872 s/-\n.*//
9873 ' >$as_me.lineno &&
9874 chmod +x "$as_me.lineno" ||
9875 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
9876 { (exit 1); exit 1; }; }
9878 # Don't try to exec as it changes $[0], causing all sort of problems
9879 # (the dirname of $[0] is not the place where we might find the
9880 # original and so on. Autoconf is especially sensitive to this).
9881 . "./$as_me.lineno"
9882 # Exit status is that of the last command.
9883 exit
9887 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9888 as_dirname=dirname
9889 else
9890 as_dirname=false
9893 ECHO_C= ECHO_N= ECHO_T=
9894 case `echo -n x` in
9895 -n*)
9896 case `echo 'x\c'` in
9897 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9898 *) ECHO_C='\c';;
9899 esac;;
9901 ECHO_N='-n';;
9902 esac
9903 if expr a : '\(a\)' >/dev/null 2>&1 &&
9904 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9905 as_expr=expr
9906 else
9907 as_expr=false
9910 rm -f conf$$ conf$$.exe conf$$.file
9911 if test -d conf$$.dir; then
9912 rm -f conf$$.dir/conf$$.file
9913 else
9914 rm -f conf$$.dir
9915 mkdir conf$$.dir 2>/dev/null
9917 if (echo >conf$$.file) 2>/dev/null; then
9918 if ln -s conf$$.file conf$$ 2>/dev/null; then
9919 as_ln_s='ln -s'
9920 # ... but there are two gotchas:
9921 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9922 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9923 # In both cases, we have to default to `cp -p'.
9924 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9925 as_ln_s='cp -p'
9926 elif ln conf$$.file conf$$ 2>/dev/null; then
9927 as_ln_s=ln
9928 else
9929 as_ln_s='cp -p'
9931 else
9932 as_ln_s='cp -p'
9934 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9935 rmdir conf$$.dir 2>/dev/null
9937 if mkdir -p . 2>/dev/null; then
9938 as_mkdir_p=:
9939 else
9940 test -d ./-p && rmdir ./-p
9941 as_mkdir_p=false
9944 if test -x / >/dev/null 2>&1; then
9945 as_test_x='test -x'
9946 else
9947 if ls -dL / >/dev/null 2>&1; then
9948 as_ls_L_option=L
9949 else
9950 as_ls_L_option=
9952 as_test_x='
9953 eval sh -c '\''
9954 if test -d "$1"; then
9955 test -d "$1/.";
9956 else
9957 case $1 in
9958 -*)set "./$1";;
9959 esac;
9960 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
9961 ???[sx]*):;;*)false;;esac;fi
9962 '\'' sh
9965 as_executable_p=$as_test_x
9967 # Sed expression to map a string onto a valid CPP name.
9968 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9970 # Sed expression to map a string onto a valid variable name.
9971 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9974 exec 6>&1
9976 # Save the log message, to keep $[0] and so on meaningful, and to
9977 # report actual input values of CONFIG_FILES etc. instead of their
9978 # values after options handling.
9979 ac_log="
9980 This file was extended by ltp $as_me 20091031, which was
9981 generated by GNU Autoconf 2.63. Invocation command line was
9983 CONFIG_FILES = $CONFIG_FILES
9984 CONFIG_HEADERS = $CONFIG_HEADERS
9985 CONFIG_LINKS = $CONFIG_LINKS
9986 CONFIG_COMMANDS = $CONFIG_COMMANDS
9987 $ $0 $@
9989 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9992 _ACEOF
9994 case $ac_config_files in *"
9995 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9996 esac
9998 case $ac_config_headers in *"
9999 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10000 esac
10003 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10004 # Files that config.status was made for.
10005 config_files="$ac_config_files"
10006 config_headers="$ac_config_headers"
10007 config_commands="$ac_config_commands"
10009 _ACEOF
10011 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10012 ac_cs_usage="\
10013 \`$as_me' instantiates files from templates according to the
10014 current configuration.
10016 Usage: $0 [OPTION]... [FILE]...
10018 -h, --help print this help, then exit
10019 -V, --version print version number and configuration settings, then exit
10020 -q, --quiet, --silent
10021 do not print progress messages
10022 -d, --debug don't remove temporary files
10023 --recheck update $as_me by reconfiguring in the same conditions
10024 --file=FILE[:TEMPLATE]
10025 instantiate the configuration file FILE
10026 --header=FILE[:TEMPLATE]
10027 instantiate the configuration header FILE
10029 Configuration files:
10030 $config_files
10032 Configuration headers:
10033 $config_headers
10035 Configuration commands:
10036 $config_commands
10038 Report bugs to <bug-autoconf@gnu.org>."
10040 _ACEOF
10041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10042 ac_cs_version="\\
10043 ltp config.status 20091031
10044 configured by $0, generated by GNU Autoconf 2.63,
10045 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10047 Copyright (C) 2008 Free Software Foundation, Inc.
10048 This config.status script is free software; the Free Software Foundation
10049 gives unlimited permission to copy, distribute and modify it."
10051 ac_pwd='$ac_pwd'
10052 srcdir='$srcdir'
10053 INSTALL='$INSTALL'
10054 MKDIR_P='$MKDIR_P'
10055 AWK='$AWK'
10056 test -n "\$AWK" || AWK=awk
10057 _ACEOF
10059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10060 # The default lists apply if the user does not specify any file.
10061 ac_need_defaults=:
10062 while test $# != 0
10064 case $1 in
10065 --*=*)
10066 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10067 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10068 ac_shift=:
10071 ac_option=$1
10072 ac_optarg=$2
10073 ac_shift=shift
10075 esac
10077 case $ac_option in
10078 # Handling of the options.
10079 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10080 ac_cs_recheck=: ;;
10081 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10082 $as_echo "$ac_cs_version"; exit ;;
10083 --debug | --debu | --deb | --de | --d | -d )
10084 debug=: ;;
10085 --file | --fil | --fi | --f )
10086 $ac_shift
10087 case $ac_optarg in
10088 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10089 esac
10090 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
10091 ac_need_defaults=false;;
10092 --header | --heade | --head | --hea )
10093 $ac_shift
10094 case $ac_optarg in
10095 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10096 esac
10097 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
10098 ac_need_defaults=false;;
10099 --he | --h)
10100 # Conflict between --help and --header
10101 { $as_echo "$as_me: error: ambiguous option: $1
10102 Try \`$0 --help' for more information." >&2
10103 { (exit 1); exit 1; }; };;
10104 --help | --hel | -h )
10105 $as_echo "$ac_cs_usage"; exit ;;
10106 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10107 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10108 ac_cs_silent=: ;;
10110 # This is an error.
10111 -*) { $as_echo "$as_me: error: unrecognized option: $1
10112 Try \`$0 --help' for more information." >&2
10113 { (exit 1); exit 1; }; } ;;
10115 *) ac_config_targets="$ac_config_targets $1"
10116 ac_need_defaults=false ;;
10118 esac
10119 shift
10120 done
10122 ac_configure_extra_args=
10124 if $ac_cs_silent; then
10125 exec 6>/dev/null
10126 ac_configure_extra_args="$ac_configure_extra_args --silent"
10129 _ACEOF
10130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10131 if \$ac_cs_recheck; then
10132 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10133 shift
10134 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10135 CONFIG_SHELL='$SHELL'
10136 export CONFIG_SHELL
10137 exec "\$@"
10140 _ACEOF
10141 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10142 exec 5>>config.log
10144 echo
10145 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10146 ## Running $as_me. ##
10147 _ASBOX
10148 $as_echo "$ac_log"
10149 } >&5
10151 _ACEOF
10152 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10154 # INIT-COMMANDS
10156 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10158 _ACEOF
10160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10162 # Handling of arguments.
10163 for ac_config_target in $ac_config_targets
10165 case $ac_config_target in
10166 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
10167 "include/mk/config.mk") CONFIG_FILES="$CONFIG_FILES include/mk/config.mk" ;;
10168 "lib/ltp.pc") CONFIG_FILES="$CONFIG_FILES lib/ltp.pc" ;;
10169 "ltp-devel.spec") CONFIG_FILES="$CONFIG_FILES ltp-devel.spec" ;;
10170 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
10171 "README.ltp-devel") CONFIG_FILES="$CONFIG_FILES README.ltp-devel" ;;
10172 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10174 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10175 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10176 { (exit 1); exit 1; }; };;
10177 esac
10178 done
10181 # If the user did not use the arguments to specify the items to instantiate,
10182 # then the envvar interface is used. Set only those that are not.
10183 # We use the long form for the default assignment because of an extremely
10184 # bizarre bug on SunOS 4.1.3.
10185 if $ac_need_defaults; then
10186 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10187 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10188 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10191 # Have a temporary directory for convenience. Make it in the build tree
10192 # simply because there is no reason against having it here, and in addition,
10193 # creating and moving files from /tmp can sometimes cause problems.
10194 # Hook for its removal unless debugging.
10195 # Note that there is a small window in which the directory will not be cleaned:
10196 # after its creation but before its name has been assigned to `$tmp'.
10197 $debug ||
10199 tmp=
10200 trap 'exit_status=$?
10201 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10203 trap '{ (exit 1); exit 1; }' 1 2 13 15
10205 # Create a (secure) tmp directory for tmp files.
10208 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10209 test -n "$tmp" && test -d "$tmp"
10210 } ||
10212 tmp=./conf$$-$RANDOM
10213 (umask 077 && mkdir "$tmp")
10214 } ||
10216 $as_echo "$as_me: cannot create a temporary directory in ." >&2
10217 { (exit 1); exit 1; }
10220 # Set up the scripts for CONFIG_FILES section.
10221 # No need to generate them if there are no CONFIG_FILES.
10222 # This happens for instance with `./config.status config.h'.
10223 if test -n "$CONFIG_FILES"; then
10226 ac_cr=' '
10227 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10228 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10229 ac_cs_awk_cr='\\r'
10230 else
10231 ac_cs_awk_cr=$ac_cr
10234 echo 'BEGIN {' >"$tmp/subs1.awk" &&
10235 _ACEOF
10239 echo "cat >conf$$subs.awk <<_ACEOF" &&
10240 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10241 echo "_ACEOF"
10242 } >conf$$subs.sh ||
10243 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10244 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10245 { (exit 1); exit 1; }; }
10246 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
10247 ac_delim='%!_!# '
10248 for ac_last_try in false false false false false :; do
10249 . ./conf$$subs.sh ||
10250 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10251 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10252 { (exit 1); exit 1; }; }
10254 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10255 if test $ac_delim_n = $ac_delim_num; then
10256 break
10257 elif $ac_last_try; then
10258 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10259 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10260 { (exit 1); exit 1; }; }
10261 else
10262 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10264 done
10265 rm -f conf$$subs.sh
10267 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10268 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10269 _ACEOF
10270 sed -n '
10272 s/^/S["/; s/!.*/"]=/
10275 s/^[^!]*!//
10276 :repl
10277 t repl
10278 s/'"$ac_delim"'$//
10279 t delim
10282 s/\(.\{148\}\).*/\1/
10283 t more1
10284 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10287 b repl
10288 :more1
10289 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10292 s/.\{148\}//
10293 t nl
10294 :delim
10296 s/\(.\{148\}\).*/\1/
10297 t more2
10298 s/["\\]/\\&/g; s/^/"/; s/$/"/
10301 :more2
10302 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10305 s/.\{148\}//
10306 t delim
10307 ' <conf$$subs.awk | sed '
10308 /^[^""]/{
10310 s/\n//
10312 ' >>$CONFIG_STATUS || ac_write_fail=1
10313 rm -f conf$$subs.awk
10314 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10315 _ACAWK
10316 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10317 for (key in S) S_is_set[key] = 1
10318 FS = "\a"
10322 line = $ 0
10323 nfields = split(line, field, "@")
10324 substed = 0
10325 len = length(field[1])
10326 for (i = 2; i < nfields; i++) {
10327 key = field[i]
10328 keylen = length(key)
10329 if (S_is_set[key]) {
10330 value = S[key]
10331 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10332 len += length(value) + length(field[++i])
10333 substed = 1
10334 } else
10335 len += 1 + keylen
10338 print line
10341 _ACAWK
10342 _ACEOF
10343 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10344 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10345 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10346 else
10348 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
10349 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
10350 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
10351 { (exit 1); exit 1; }; }
10352 _ACEOF
10354 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10355 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10356 # trailing colons and then remove the whole line if VPATH becomes empty
10357 # (actually we leave an empty line to preserve line numbers).
10358 if test "x$srcdir" = x.; then
10359 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10360 s/:*\$(srcdir):*/:/
10361 s/:*\${srcdir}:*/:/
10362 s/:*@srcdir@:*/:/
10363 s/^\([^=]*=[ ]*\):*/\1/
10364 s/:*$//
10365 s/^[^=]*=[ ]*$//
10369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10370 fi # test -n "$CONFIG_FILES"
10372 # Set up the scripts for CONFIG_HEADERS section.
10373 # No need to generate them if there are no CONFIG_HEADERS.
10374 # This happens for instance with `./config.status Makefile'.
10375 if test -n "$CONFIG_HEADERS"; then
10376 cat >"$tmp/defines.awk" <<\_ACAWK ||
10377 BEGIN {
10378 _ACEOF
10380 # Transform confdefs.h into an awk script `defines.awk', embedded as
10381 # here-document in config.status, that substitutes the proper values into
10382 # config.h.in to produce config.h.
10384 # Create a delimiter string that does not exist in confdefs.h, to ease
10385 # handling of long lines.
10386 ac_delim='%!_!# '
10387 for ac_last_try in false false :; do
10388 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
10389 if test -z "$ac_t"; then
10390 break
10391 elif $ac_last_try; then
10392 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
10393 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
10394 { (exit 1); exit 1; }; }
10395 else
10396 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10398 done
10400 # For the awk script, D is an array of macro values keyed by name,
10401 # likewise P contains macro parameters if any. Preserve backslash
10402 # newline sequences.
10404 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10405 sed -n '
10406 s/.\{148\}/&'"$ac_delim"'/g
10407 t rset
10408 :rset
10409 s/^[ ]*#[ ]*define[ ][ ]*/ /
10410 t def
10412 :def
10413 s/\\$//
10414 t bsnl
10415 s/["\\]/\\&/g
10416 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10417 D["\1"]=" \3"/p
10418 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10420 :bsnl
10421 s/["\\]/\\&/g
10422 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10423 D["\1"]=" \3\\\\\\n"\\/p
10424 t cont
10425 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10426 t cont
10428 :cont
10430 s/.\{148\}/&'"$ac_delim"'/g
10431 t clear
10432 :clear
10433 s/\\$//
10434 t bsnlc
10435 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10437 :bsnlc
10438 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10439 b cont
10440 ' <confdefs.h | sed '
10441 s/'"$ac_delim"'/"\\\
10442 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10445 for (key in D) D_is_set[key] = 1
10446 FS = "\a"
10448 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10449 line = \$ 0
10450 split(line, arg, " ")
10451 if (arg[1] == "#") {
10452 defundef = arg[2]
10453 mac1 = arg[3]
10454 } else {
10455 defundef = substr(arg[1], 2)
10456 mac1 = arg[2]
10458 split(mac1, mac2, "(") #)
10459 macro = mac2[1]
10460 prefix = substr(line, 1, index(line, defundef) - 1)
10461 if (D_is_set[macro]) {
10462 # Preserve the white space surrounding the "#".
10463 print prefix "define", macro P[macro] D[macro]
10464 next
10465 } else {
10466 # Replace #undef with comments. This is necessary, for example,
10467 # in the case of _POSIX_SOURCE, which is predefined and required
10468 # on some systems where configure will not decide to define it.
10469 if (defundef == "undef") {
10470 print "/*", prefix defundef, macro, "*/"
10471 next
10475 { print }
10476 _ACAWK
10477 _ACEOF
10478 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10479 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
10480 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
10481 { (exit 1); exit 1; }; }
10482 fi # test -n "$CONFIG_HEADERS"
10485 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10486 shift
10487 for ac_tag
10489 case $ac_tag in
10490 :[FHLC]) ac_mode=$ac_tag; continue;;
10491 esac
10492 case $ac_mode$ac_tag in
10493 :[FHL]*:*);;
10494 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
10495 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
10496 { (exit 1); exit 1; }; };;
10497 :[FH]-) ac_tag=-:-;;
10498 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10499 esac
10500 ac_save_IFS=$IFS
10501 IFS=:
10502 set x $ac_tag
10503 IFS=$ac_save_IFS
10504 shift
10505 ac_file=$1
10506 shift
10508 case $ac_mode in
10509 :L) ac_source=$1;;
10510 :[FH])
10511 ac_file_inputs=
10512 for ac_f
10514 case $ac_f in
10515 -) ac_f="$tmp/stdin";;
10516 *) # Look for the file first in the build tree, then in the source tree
10517 # (if the path is not absolute). The absolute path cannot be DOS-style,
10518 # because $ac_f cannot contain `:'.
10519 test -f "$ac_f" ||
10520 case $ac_f in
10521 [\\/$]*) false;;
10522 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10523 esac ||
10524 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
10525 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
10526 { (exit 1); exit 1; }; };;
10527 esac
10528 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10529 ac_file_inputs="$ac_file_inputs '$ac_f'"
10530 done
10532 # Let's still pretend it is `configure' which instantiates (i.e., don't
10533 # use $as_me), people would be surprised to read:
10534 # /* config.h. Generated by config.status. */
10535 configure_input='Generated from '`
10536 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10537 `' by configure.'
10538 if test x"$ac_file" != x-; then
10539 configure_input="$ac_file. $configure_input"
10540 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
10541 $as_echo "$as_me: creating $ac_file" >&6;}
10543 # Neutralize special characters interpreted by sed in replacement strings.
10544 case $configure_input in #(
10545 *\&* | *\|* | *\\* )
10546 ac_sed_conf_input=`$as_echo "$configure_input" |
10547 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10548 *) ac_sed_conf_input=$configure_input;;
10549 esac
10551 case $ac_tag in
10552 *:-:* | *:-) cat >"$tmp/stdin" \
10553 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10554 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10555 { (exit 1); exit 1; }; } ;;
10556 esac
10558 esac
10560 ac_dir=`$as_dirname -- "$ac_file" ||
10561 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10562 X"$ac_file" : 'X\(//\)[^/]' \| \
10563 X"$ac_file" : 'X\(//\)$' \| \
10564 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10565 $as_echo X"$ac_file" |
10566 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10567 s//\1/
10570 /^X\(\/\/\)[^/].*/{
10571 s//\1/
10574 /^X\(\/\/\)$/{
10575 s//\1/
10578 /^X\(\/\).*/{
10579 s//\1/
10582 s/.*/./; q'`
10583 { as_dir="$ac_dir"
10584 case $as_dir in #(
10585 -*) as_dir=./$as_dir;;
10586 esac
10587 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10588 as_dirs=
10589 while :; do
10590 case $as_dir in #(
10591 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10592 *) as_qdir=$as_dir;;
10593 esac
10594 as_dirs="'$as_qdir' $as_dirs"
10595 as_dir=`$as_dirname -- "$as_dir" ||
10596 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10597 X"$as_dir" : 'X\(//\)[^/]' \| \
10598 X"$as_dir" : 'X\(//\)$' \| \
10599 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10600 $as_echo X"$as_dir" |
10601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10602 s//\1/
10605 /^X\(\/\/\)[^/].*/{
10606 s//\1/
10609 /^X\(\/\/\)$/{
10610 s//\1/
10613 /^X\(\/\).*/{
10614 s//\1/
10617 s/.*/./; q'`
10618 test -d "$as_dir" && break
10619 done
10620 test -z "$as_dirs" || eval "mkdir $as_dirs"
10621 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10622 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
10623 { (exit 1); exit 1; }; }; }
10624 ac_builddir=.
10626 case "$ac_dir" in
10627 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10629 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10630 # A ".." for each directory in $ac_dir_suffix.
10631 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10632 case $ac_top_builddir_sub in
10633 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10634 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10635 esac ;;
10636 esac
10637 ac_abs_top_builddir=$ac_pwd
10638 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10639 # for backward compatibility:
10640 ac_top_builddir=$ac_top_build_prefix
10642 case $srcdir in
10643 .) # We are building in place.
10644 ac_srcdir=.
10645 ac_top_srcdir=$ac_top_builddir_sub
10646 ac_abs_top_srcdir=$ac_pwd ;;
10647 [\\/]* | ?:[\\/]* ) # Absolute name.
10648 ac_srcdir=$srcdir$ac_dir_suffix;
10649 ac_top_srcdir=$srcdir
10650 ac_abs_top_srcdir=$srcdir ;;
10651 *) # Relative name.
10652 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10653 ac_top_srcdir=$ac_top_build_prefix$srcdir
10654 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10655 esac
10656 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10659 case $ac_mode in
10662 # CONFIG_FILE
10665 case $INSTALL in
10666 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10667 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10668 esac
10669 ac_MKDIR_P=$MKDIR_P
10670 case $MKDIR_P in
10671 [\\/$]* | ?:[\\/]* ) ;;
10672 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10673 esac
10674 _ACEOF
10676 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10677 # If the template does not know about datarootdir, expand it.
10678 # FIXME: This hack should be removed a few years after 2.60.
10679 ac_datarootdir_hack=; ac_datarootdir_seen=
10681 ac_sed_dataroot='
10682 /datarootdir/ {
10686 /@datadir@/p
10687 /@docdir@/p
10688 /@infodir@/p
10689 /@localedir@/p
10690 /@mandir@/p
10692 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10693 *datarootdir*) ac_datarootdir_seen=yes;;
10694 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10695 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10696 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10697 _ACEOF
10698 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10699 ac_datarootdir_hack='
10700 s&@datadir@&$datadir&g
10701 s&@docdir@&$docdir&g
10702 s&@infodir@&$infodir&g
10703 s&@localedir@&$localedir&g
10704 s&@mandir@&$mandir&g
10705 s&\\\${datarootdir}&$datarootdir&g' ;;
10706 esac
10707 _ACEOF
10709 # Neutralize VPATH when `$srcdir' = `.'.
10710 # Shell code in configure.ac might set extrasub.
10711 # FIXME: do we really want to maintain this feature?
10712 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10713 ac_sed_extra="$ac_vpsub
10714 $extrasub
10715 _ACEOF
10716 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10718 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10719 s|@configure_input@|$ac_sed_conf_input|;t t
10720 s&@top_builddir@&$ac_top_builddir_sub&;t t
10721 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10722 s&@srcdir@&$ac_srcdir&;t t
10723 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10724 s&@top_srcdir@&$ac_top_srcdir&;t t
10725 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10726 s&@builddir@&$ac_builddir&;t t
10727 s&@abs_builddir@&$ac_abs_builddir&;t t
10728 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10729 s&@INSTALL@&$ac_INSTALL&;t t
10730 s&@MKDIR_P@&$ac_MKDIR_P&;t t
10731 $ac_datarootdir_hack
10733 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
10734 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10735 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10736 { (exit 1); exit 1; }; }
10738 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10739 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10740 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10741 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10742 which seems to be undefined. Please make sure it is defined." >&5
10743 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10744 which seems to be undefined. Please make sure it is defined." >&2;}
10746 rm -f "$tmp/stdin"
10747 case $ac_file in
10748 -) cat "$tmp/out" && rm -f "$tmp/out";;
10749 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
10750 esac \
10751 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10752 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10753 { (exit 1); exit 1; }; }
10757 # CONFIG_HEADER
10759 if test x"$ac_file" != x-; then
10761 $as_echo "/* $configure_input */" \
10762 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
10763 } >"$tmp/config.h" \
10764 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10765 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10766 { (exit 1); exit 1; }; }
10767 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
10768 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10769 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10770 else
10771 rm -f "$ac_file"
10772 mv "$tmp/config.h" "$ac_file" \
10773 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10774 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10775 { (exit 1); exit 1; }; }
10777 else
10778 $as_echo "/* $configure_input */" \
10779 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
10780 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
10781 $as_echo "$as_me: error: could not create -" >&2;}
10782 { (exit 1); exit 1; }; }
10784 # Compute "$ac_file"'s index in $config_headers.
10785 _am_arg="$ac_file"
10786 _am_stamp_count=1
10787 for _am_header in $config_headers :; do
10788 case $_am_header in
10789 $_am_arg | $_am_arg:* )
10790 break ;;
10792 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10793 esac
10794 done
10795 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10796 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10797 X"$_am_arg" : 'X\(//\)[^/]' \| \
10798 X"$_am_arg" : 'X\(//\)$' \| \
10799 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
10800 $as_echo X"$_am_arg" |
10801 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10802 s//\1/
10805 /^X\(\/\/\)[^/].*/{
10806 s//\1/
10809 /^X\(\/\/\)$/{
10810 s//\1/
10813 /^X\(\/\).*/{
10814 s//\1/
10817 s/.*/./; q'`/stamp-h$_am_stamp_count
10820 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
10821 $as_echo "$as_me: executing $ac_file commands" >&6;}
10823 esac
10826 case $ac_file$ac_mode in
10827 "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
10828 # are listed without --file. Let's play safe and only enable the eval
10829 # if we detect the quoting.
10830 case $CONFIG_FILES in
10831 *\'*) eval set x "$CONFIG_FILES" ;;
10832 *) set x $CONFIG_FILES ;;
10833 esac
10834 shift
10835 for mf
10837 # Strip MF so we end up with the name of the file.
10838 mf=`echo "$mf" | sed -e 's/:.*$//'`
10839 # Check whether this is an Automake generated Makefile or not.
10840 # We used to match only the files named `Makefile.in', but
10841 # some people rename them; so instead we look at the file content.
10842 # Grep'ing the first line is not enough: some people post-process
10843 # each Makefile.in and add a new line on top of each file to say so.
10844 # Grep'ing the whole file is not good either: AIX grep has a line
10845 # limit of 2048, but all sed's we know have understand at least 4000.
10846 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10847 dirpart=`$as_dirname -- "$mf" ||
10848 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10849 X"$mf" : 'X\(//\)[^/]' \| \
10850 X"$mf" : 'X\(//\)$' \| \
10851 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10852 $as_echo X"$mf" |
10853 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10854 s//\1/
10857 /^X\(\/\/\)[^/].*/{
10858 s//\1/
10861 /^X\(\/\/\)$/{
10862 s//\1/
10865 /^X\(\/\).*/{
10866 s//\1/
10869 s/.*/./; q'`
10870 else
10871 continue
10873 # Extract the definition of DEPDIR, am__include, and am__quote
10874 # from the Makefile without running `make'.
10875 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10876 test -z "$DEPDIR" && continue
10877 am__include=`sed -n 's/^am__include = //p' < "$mf"`
10878 test -z "am__include" && continue
10879 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10880 # When using ansi2knr, U may be empty or an underscore; expand it
10881 U=`sed -n 's/^U = //p' < "$mf"`
10882 # Find all dependency output files, they are included files with
10883 # $(DEPDIR) in their names. We invoke sed twice because it is the
10884 # simplest approach to changing $(DEPDIR) to its actual value in the
10885 # expansion.
10886 for file in `sed -n "
10887 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10888 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10889 # Make sure the directory exists.
10890 test -f "$dirpart/$file" && continue
10891 fdir=`$as_dirname -- "$file" ||
10892 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10893 X"$file" : 'X\(//\)[^/]' \| \
10894 X"$file" : 'X\(//\)$' \| \
10895 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10896 $as_echo X"$file" |
10897 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10898 s//\1/
10901 /^X\(\/\/\)[^/].*/{
10902 s//\1/
10905 /^X\(\/\/\)$/{
10906 s//\1/
10909 /^X\(\/\).*/{
10910 s//\1/
10913 s/.*/./; q'`
10914 { as_dir=$dirpart/$fdir
10915 case $as_dir in #(
10916 -*) as_dir=./$as_dir;;
10917 esac
10918 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10919 as_dirs=
10920 while :; do
10921 case $as_dir in #(
10922 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10923 *) as_qdir=$as_dir;;
10924 esac
10925 as_dirs="'$as_qdir' $as_dirs"
10926 as_dir=`$as_dirname -- "$as_dir" ||
10927 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10928 X"$as_dir" : 'X\(//\)[^/]' \| \
10929 X"$as_dir" : 'X\(//\)$' \| \
10930 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10931 $as_echo X"$as_dir" |
10932 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10933 s//\1/
10936 /^X\(\/\/\)[^/].*/{
10937 s//\1/
10940 /^X\(\/\/\)$/{
10941 s//\1/
10944 /^X\(\/\).*/{
10945 s//\1/
10948 s/.*/./; q'`
10949 test -d "$as_dir" && break
10950 done
10951 test -z "$as_dirs" || eval "mkdir $as_dirs"
10952 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10953 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
10954 { (exit 1); exit 1; }; }; }
10955 # echo "creating $dirpart/$file"
10956 echo '# dummy' > "$dirpart/$file"
10957 done
10958 done
10961 esac
10962 done # for ac_tag
10965 { (exit 0); exit 0; }
10966 _ACEOF
10967 chmod +x $CONFIG_STATUS
10968 ac_clean_files=$ac_clean_files_save
10970 test $ac_write_fail = 0 ||
10971 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
10972 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
10973 { (exit 1); exit 1; }; }
10976 # configure is writing to config.log, and then calls config.status.
10977 # config.status does its own redirection, appending to config.log.
10978 # Unfortunately, on DOS this fails, as config.log is still kept open
10979 # by configure, so config.status won't be able to write to it; its
10980 # output is simply discarded. So we exec the FD to /dev/null,
10981 # effectively closing config.log, so it can be properly (re)opened and
10982 # appended to by config.status. When coming back to configure, we
10983 # need to make the FD available again.
10984 if test "$no_create" != yes; then
10985 ac_cs_success=:
10986 ac_config_status_args=
10987 test "$silent" = yes &&
10988 ac_config_status_args="$ac_config_status_args --quiet"
10989 exec 5>/dev/null
10990 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10991 exec 5>>config.log
10992 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10993 # would make configure fail if this is the last instruction.
10994 $ac_cs_success || { (exit 1); exit 1; }
10998 # CONFIG_SUBDIRS section.
11000 if test "$no_recursion" != yes; then
11002 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
11003 # so they do not pile up.
11004 ac_sub_configure_args=
11005 ac_prev=
11006 eval "set x $ac_configure_args"
11007 shift
11008 for ac_arg
11010 if test -n "$ac_prev"; then
11011 ac_prev=
11012 continue
11014 case $ac_arg in
11015 -cache-file | --cache-file | --cache-fil | --cache-fi \
11016 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
11017 ac_prev=cache_file ;;
11018 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
11019 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
11020 | --c=*)
11022 --config-cache | -C)
11024 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
11025 ac_prev=srcdir ;;
11026 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
11028 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
11029 ac_prev=prefix ;;
11030 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
11032 --disable-option-checking)
11035 case $ac_arg in
11036 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
11037 esac
11038 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
11039 esac
11040 done
11042 # Always prepend --prefix to ensure using the same prefix
11043 # in subdir configurations.
11044 ac_arg="--prefix=$prefix"
11045 case $ac_arg in
11046 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
11047 esac
11048 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
11050 # Pass --silent
11051 if test "$silent" = yes; then
11052 ac_sub_configure_args="--silent $ac_sub_configure_args"
11055 # Always prepend --disable-option-checking to silence warnings, since
11056 # different subdirs can have different --enable and --with options.
11057 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
11059 ac_popdir=`pwd`
11060 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
11062 # Do not complain, so a configure script can configure whichever
11063 # parts of a large source tree are present.
11064 test -d "$srcdir/$ac_dir" || continue
11066 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
11067 $as_echo "$as_me:$LINENO: $ac_msg" >&5
11068 $as_echo "$ac_msg" >&6
11069 { as_dir="$ac_dir"
11070 case $as_dir in #(
11071 -*) as_dir=./$as_dir;;
11072 esac
11073 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11074 as_dirs=
11075 while :; do
11076 case $as_dir in #(
11077 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11078 *) as_qdir=$as_dir;;
11079 esac
11080 as_dirs="'$as_qdir' $as_dirs"
11081 as_dir=`$as_dirname -- "$as_dir" ||
11082 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11083 X"$as_dir" : 'X\(//\)[^/]' \| \
11084 X"$as_dir" : 'X\(//\)$' \| \
11085 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11086 $as_echo X"$as_dir" |
11087 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11088 s//\1/
11091 /^X\(\/\/\)[^/].*/{
11092 s//\1/
11095 /^X\(\/\/\)$/{
11096 s//\1/
11099 /^X\(\/\).*/{
11100 s//\1/
11103 s/.*/./; q'`
11104 test -d "$as_dir" && break
11105 done
11106 test -z "$as_dirs" || eval "mkdir $as_dirs"
11107 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11108 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
11109 { (exit 1); exit 1; }; }; }
11110 ac_builddir=.
11112 case "$ac_dir" in
11113 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11115 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11116 # A ".." for each directory in $ac_dir_suffix.
11117 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11118 case $ac_top_builddir_sub in
11119 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11120 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11121 esac ;;
11122 esac
11123 ac_abs_top_builddir=$ac_pwd
11124 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11125 # for backward compatibility:
11126 ac_top_builddir=$ac_top_build_prefix
11128 case $srcdir in
11129 .) # We are building in place.
11130 ac_srcdir=.
11131 ac_top_srcdir=$ac_top_builddir_sub
11132 ac_abs_top_srcdir=$ac_pwd ;;
11133 [\\/]* | ?:[\\/]* ) # Absolute name.
11134 ac_srcdir=$srcdir$ac_dir_suffix;
11135 ac_top_srcdir=$srcdir
11136 ac_abs_top_srcdir=$srcdir ;;
11137 *) # Relative name.
11138 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11139 ac_top_srcdir=$ac_top_build_prefix$srcdir
11140 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11141 esac
11142 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11145 cd "$ac_dir"
11147 # Check for guested configure; otherwise get Cygnus style configure.
11148 if test -f "$ac_srcdir/configure.gnu"; then
11149 ac_sub_configure=$ac_srcdir/configure.gnu
11150 elif test -f "$ac_srcdir/configure"; then
11151 ac_sub_configure=$ac_srcdir/configure
11152 elif test -f "$ac_srcdir/configure.in"; then
11153 # This should be Cygnus configure.
11154 ac_sub_configure=$ac_aux_dir/configure
11155 else
11156 { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
11157 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
11158 ac_sub_configure=
11161 # The recursion is here.
11162 if test -n "$ac_sub_configure"; then
11163 # Make the cache file name correct relative to the subdirectory.
11164 case $cache_file in
11165 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
11166 *) # Relative name.
11167 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
11168 esac
11170 { $as_echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
11171 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
11172 # The eval makes quoting arguments work.
11173 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
11174 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
11175 { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
11176 $as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
11177 { (exit 1); exit 1; }; }
11180 cd "$ac_popdir"
11181 done
11183 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11184 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11185 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}