6084
6083
# Let make expand exec_prefix.
6085
6084
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6087
DEFS=-DHAVE_CONFIG_H
6086
# Transform confdefs.h into DEFS.
6087
# Protect against shell expansion while executing Makefile rules.
6088
# Protect against Makefile macro expansion.
6090
# If the first sed substitution is executed (which looks for macros that
6091
# take arguments), then branch to the quote section. Otherwise,
6092
# look for a macro that doesn't take arguments.
6102
s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
6104
s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
6108
s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
6121
DEFS=`sed -n "$ac_script" confdefs.h`
6551
6577
CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
6552
6578
ac_need_defaults=false;;
6553
--header | --heade | --head | --hea )
6556
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6558
CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
6559
ac_need_defaults=false;;
6561
# Conflict between --help and --header
6562
{ $as_echo "$as_me: error: ambiguous option: $1
6563
Try \`$0 --help' for more information." >&2
6564
{ (exit 1); exit 1; }; };;
6565
--help | --hel | -h )
6579
--he | --h | --help | --hel | -h )
6566
6580
$as_echo "$ac_cs_usage"; exit ;;
6567
6581
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
6568
6582
| -silent | --silent | --silen | --sile | --sil | --si | --s)
6853
6865
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6854
6866
fi # test -n "$CONFIG_FILES"
6856
# Set up the scripts for CONFIG_HEADERS section.
6857
# No need to generate them if there are no CONFIG_HEADERS.
6858
# This happens for instance with `./config.status Makefile'.
6859
if test -n "$CONFIG_HEADERS"; then
6860
cat >"$tmp/defines.awk" <<\_ACAWK ||
6864
# Transform confdefs.h into an awk script `defines.awk', embedded as
6865
# here-document in config.status, that substitutes the proper values into
6866
# config.h.in to produce config.h.
6868
# Create a delimiter string that does not exist in confdefs.h, to ease
6869
# handling of long lines.
6871
for ac_last_try in false false :; do
6872
ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6873
if test -z "$ac_t"; then
6875
elif $ac_last_try; then
6876
{ { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
6877
$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
6878
{ (exit 1); exit 1; }; }
6880
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6884
# For the awk script, D is an array of macro values keyed by name,
6885
# likewise P contains macro parameters if any. Preserve backslash
6886
# newline sequences.
6888
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6890
s/.\{148\}/&'"$ac_delim"'/g
6893
s/^[ ]*#[ ]*define[ ][ ]*/ /
6900
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6902
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6906
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6907
D["\1"]=" \3\\\\\\n"\\/p
6909
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6914
s/.\{148\}/&'"$ac_delim"'/g
6919
s/["\\]/\\&/g; s/^/"/; s/$/"/p
6922
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6924
' <confdefs.h | sed '
6925
s/'"$ac_delim"'/"\\\
6926
"/g' >>$CONFIG_STATUS || ac_write_fail=1
6928
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6929
for (key in D) D_is_set[key] = 1
6932
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6934
split(line, arg, " ")
6935
if (arg[1] == "#") {
6939
defundef = substr(arg[1], 2)
6942
split(mac1, mac2, "(") #)
6944
prefix = substr(line, 1, index(line, defundef) - 1)
6945
if (D_is_set[macro]) {
6946
# Preserve the white space surrounding the "#".
6947
print prefix "define", macro P[macro] D[macro]
6950
# Replace #undef with comments. This is necessary, for example,
6951
# in the case of _POSIX_SOURCE, which is predefined and required
6952
# on some systems where configure will not decide to define it.
6953
if (defundef == "undef") {
6954
print "/*", prefix defundef, macro, "*/"
6962
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6963
{ { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
6964
$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
6965
{ (exit 1); exit 1; }; }
6966
fi # test -n "$CONFIG_HEADERS"
6969
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6869
eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
7236
7136
$as_echo "$as_me: error: could not create $ac_file" >&2;}
7237
7137
{ (exit 1); exit 1; }; }
7243
if test x"$ac_file" != x-; then
7245
$as_echo "/* $configure_input */" \
7246
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7247
} >"$tmp/config.h" \
7248
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
7249
$as_echo "$as_me: error: could not create $ac_file" >&2;}
7250
{ (exit 1); exit 1; }; }
7251
if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7252
{ $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7253
$as_echo "$as_me: $ac_file is unchanged" >&6;}
7256
mv "$tmp/config.h" "$ac_file" \
7257
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
7258
$as_echo "$as_me: error: could not create $ac_file" >&2;}
7259
{ (exit 1); exit 1; }; }
7262
$as_echo "/* $configure_input */" \
7263
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7264
|| { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
7265
$as_echo "$as_me: error: could not create -" >&2;}
7266
{ (exit 1); exit 1; }; }
7268
# Compute "$ac_file"'s index in $config_headers.
7271
for _am_header in $config_headers :; do
7273
$_am_arg | $_am_arg:* )
7276
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
7279
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
7280
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7281
X"$_am_arg" : 'X\(//\)[^/]' \| \
7282
X"$_am_arg" : 'X\(//\)$' \| \
7283
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
7284
$as_echo X"$_am_arg" |
7285
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7301
s/.*/./; q'`/stamp-h$_am_stamp_count
7304
7141
:C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
7305
7142
$as_echo "$as_me: executing $ac_file commands" >&6;}