5364
5368
then exec_prefix="";
5372
################################################################################
5374
echo "$as_me:$LINENO: checking for getline in -lc" >&5
5375
echo $ECHO_N "checking for getline in -lc... $ECHO_C" >&6
5376
if test "${ac_cv_lib_c_getline+set}" = set; then
5377
echo $ECHO_N "(cached) $ECHO_C" >&6
5379
ac_check_lib_save_LIBS=$LIBS
5381
cat >conftest.$ac_ext <<_ACEOF
5384
cat confdefs.h >>conftest.$ac_ext
5385
cat >>conftest.$ac_ext <<_ACEOF
5386
/* end confdefs.h. */
5388
/* Override any gcc2 internal prototype to avoid an error. */
5392
/* We use char because int might match the return type of a gcc2
5393
builtin and then its argument prototype would still apply. */
5403
rm -f conftest.$ac_objext conftest$ac_exeext
5404
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5405
(eval $ac_link) 2>conftest.er1
5407
grep -v '^ *+' conftest.er1 >conftest.err
5409
cat conftest.err >&5
5410
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411
(exit $ac_status); } &&
5412
{ ac_try='test -z "$ac_c_werror_flag"
5413
|| test ! -s conftest.err'
5414
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5417
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418
(exit $ac_status); }; } &&
5419
{ ac_try='test -s conftest$ac_exeext'
5420
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5423
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424
(exit $ac_status); }; }; then
5425
ac_cv_lib_c_getline=yes
5427
echo "$as_me: failed program was:" >&5
5428
sed 's/^/| /' conftest.$ac_ext >&5
5430
ac_cv_lib_c_getline=no
5432
rm -f conftest.err conftest.$ac_objext \
5433
conftest$ac_exeext conftest.$ac_ext
5434
LIBS=$ac_check_lib_save_LIBS
5436
echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5
5437
echo "${ECHO_T}$ac_cv_lib_c_getline" >&6
5438
if test $ac_cv_lib_c_getline = yes; then
5440
cat >>confdefs.h <<\_ACEOF
5441
#define HAVE_GETLINE 1
5367
5447
################################################################################
5368
5448
echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
5369
5449
echo $ECHO_N "checking whether to enable selinux support... $ECHO_C" >&6
6915
cat >>$CONFIG_STATUS <<\_ACEOF
6918
# CONFIG_HEADER section.
6921
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6922
# NAME is the cpp macro being defined and VALUE is the value it is being given.
6924
# ac_d sets the value in "#define NAME VALUE" lines.
6925
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6926
ac_dB='[ ].*$,\1#\2'
6929
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6930
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6931
ac_uB='$,\1#\2define\3'
6935
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6936
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6938
- | *:- | *:-:* ) # input from stdin
6940
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6941
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6942
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6943
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6944
* ) ac_file_in=$ac_file.in ;;
6947
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6948
echo "$as_me: creating $ac_file" >&6;}
6950
# First look for the input files in the build tree, otherwise in the
6952
ac_file_inputs=`IFS=:
6953
for f in $ac_file_in; do
6955
-) echo $tmp/stdin ;;
6957
# Absolute (can't be DOS-style, as IFS=:)
6958
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6959
echo "$as_me: error: cannot find input file: $f" >&2;}
6960
{ (exit 1); exit 1; }; }
6961
# Do quote $f, to prevent DOS paths from being IFS'd.
6964
if test -f "$f"; then
6967
elif test -f "$srcdir/$f"; then
6972
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6973
echo "$as_me: error: cannot find input file: $f" >&2;}
6974
{ (exit 1); exit 1; }; }
6977
done` || { (exit 1); exit 1; }
6978
# Remove the trailing spaces.
6979
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6983
# Transform confdefs.h into two sed scripts, `conftest.defines' and
6984
# `conftest.undefs', that substitutes the proper values into
6985
# config.h.in to produce config.h. The first handles `#define'
6986
# templates, and the second `#undef' templates.
6987
# And first: Protect against being on the right side of a sed subst in
6988
# config.status. Protect against being in an unquoted here document
6990
rm -f conftest.defines conftest.undefs
6991
# Using a here document instead of a string reduces the quoting nightmare.
6992
# Putting comments in sed scripts is not portable.
6994
# `end' is used to avoid that the second main sed command (meant for
6995
# 0-ary CPP macros) applies to n-ary macro definitions.
6996
# See the Autoconf documentation for `clear'.
6997
cat >confdef2sed.sed <<\_ACEOF
7002
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7004
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7007
# If some macros were called several times there might be several times
7008
# the same #defines, which is useless. Nevertheless, we may not want to
7009
# sort them, since we want the *last* AC-DEFINE to be honored.
7010
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7011
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7012
rm -f confdef2sed.sed
7014
# This sed command replaces #undef with comments. This is necessary, for
7015
# example, in the case of _POSIX_SOURCE, which is predefined and required
7016
# on some systems where configure will not decide to define it.
7017
cat >>conftest.undefs <<\_ACEOF
7018
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7021
# Break up conftest.defines because some shells have a limit on the size
7022
# of here documents, and old seds have small limits too (100 cmds).
7023
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7024
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7025
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7026
echo ' :' >>$CONFIG_STATUS
7028
while grep . conftest.defines >/dev/null
7030
# Write a limited-size here document to $tmp/defines.sed.
7031
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7032
# Speed up: don't consider the non `#define' lines.
7033
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7034
# Work around the forget-to-reset-the-flag bug.
7035
echo 't clr' >>$CONFIG_STATUS
7036
echo ': clr' >>$CONFIG_STATUS
7037
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7039
sed -f $tmp/defines.sed $tmp/in >$tmp/out
7043
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7044
rm -f conftest.defines
7045
mv conftest.tail conftest.defines
7047
rm -f conftest.defines
7048
echo ' fi # grep' >>$CONFIG_STATUS
7049
echo >>$CONFIG_STATUS
7051
# Break up conftest.undefs because some shells have a limit on the size
7052
# of here documents, and old seds have small limits too (100 cmds).
7053
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7055
while grep . conftest.undefs >/dev/null
7057
# Write a limited-size here document to $tmp/undefs.sed.
7058
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7059
# Speed up: don't consider the non `#undef'
7060
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7061
# Work around the forget-to-reset-the-flag bug.
7062
echo 't clr' >>$CONFIG_STATUS
7063
echo ': clr' >>$CONFIG_STATUS
7064
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7066
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7070
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7071
rm -f conftest.undefs
7072
mv conftest.tail conftest.undefs
7074
rm -f conftest.undefs
7076
cat >>$CONFIG_STATUS <<\_ACEOF
7077
# Let's still pretend it is `configure' which instantiates (i.e., don't
7078
# use $as_me), people would be surprised to read:
7079
# /* config.h. Generated by config.status. */
7080
if test x"$ac_file" = x-; then
7081
echo "/* Generated by configure. */" >$tmp/config.h
7083
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7085
cat $tmp/in >>$tmp/config.h
7087
if test x"$ac_file" != x-; then
7088
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7089
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7090
echo "$as_me: $ac_file is unchanged" >&6;}
7092
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7093
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7094
X"$ac_file" : 'X\(//\)[^/]' \| \
7095
X"$ac_file" : 'X\(//\)$' \| \
7096
X"$ac_file" : 'X\(/\)' \| \
7097
. : '\(.\)' 2>/dev/null ||
7099
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7100
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
7101
/^X\(\/\/\)$/{ s//\1/; q; }
7102
/^X\(\/\).*/{ s//\1/; q; }
7104
{ if $as_mkdir_p; then
7109
while test ! -d "$as_dir"; do
7110
as_dirs="$as_dir $as_dirs"
7111
as_dir=`(dirname "$as_dir") 2>/dev/null ||
7112
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7113
X"$as_dir" : 'X\(//\)[^/]' \| \
7114
X"$as_dir" : 'X\(//\)$' \| \
7115
X"$as_dir" : 'X\(/\)' \| \
7116
. : '\(.\)' 2>/dev/null ||
7118
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7119
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
7120
/^X\(\/\/\)$/{ s//\1/; q; }
7121
/^X\(\/\).*/{ s//\1/; q; }
7124
test ! -n "$as_dirs" || mkdir $as_dirs
7125
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7126
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7127
{ (exit 1); exit 1; }; }; }
7130
mv $tmp/config.h $ac_file
6857
7139
cat >>$CONFIG_STATUS <<\_ACEOF