+2000-07-11 Akim Demaille <akim@epita.fr>
+
+ * acspecific.m4 (AC_INT_16_BITS, AC_LONG_64_BITS): s/ac_check/ac_cv/.
+
+2000-07-10 Akim Demaille <akim@epita.fr>
+
+ * acgeneral.m4 (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS): Look for
+ the input files first in $builddir, then $srcdir.
+ Suggested by Lars J. Aas, designed by Alexandre Oliva.
+
2000-07-10 Lars J. Aas <larsa@sim.no>
* acgeneral.m4 (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS):
# Don't redirect the output to AC_FILE directly: use `mv' so that
# updating is atomic, and doesn't need trapping.
+
+ # First look for the input files in the build tree, otherwise in the
+ # src tree.
ac_file_inputs=`IFS=:
- for f in $ac_file_in; do
- case $f in
- -) echo $tmp/stdin ;;
- *) echo $ac_given_srcdir/$f ;;
- esac
- done`
- for ac_file_input in $ac_file_inputs;
- do
- test -f "$ac_file_input" ||
- AC_MSG_ERROR(cannot find input file `$ac_file_input')
- done
+ for f in $ac_file_in; do
+ case $f in
+ -) echo $tmp/stdin ;;
+ *) if test -f "$f"; then
+ # Build tree or absolute
+ echo $f
+ elif test -f "$ac_given_srcdir/$f"; then
+ # Source tree
+ echo $ac_given_srcdir/$f
+ else
+ # /dev/null tree
+ AC_MSG_ERROR([cannot find input file \\`$f'])
+ fi;;
+ esac
+ done`
EOF
cat >>$CONFIG_STATUS <<EOF
dnl Neutralize VPATH when `$srcdir' = `.'.
test x"$ac_file" != x- && echo creating $ac_file
+ # First look for the input files in the build tree, otherwise in the
+ # src tree.
ac_file_inputs=`IFS=:
- for f in $ac_file_in; do
- case $f in
- -) echo $tmp/stdin ;;
- *) echo $ac_given_srcdir/$f ;;
- esac
- done`
- for ac_file_input in $ac_file_inputs;
- do
- test -f "$ac_file_input" ||
- AC_MSG_ERROR(cannot find input file `$ac_file_input')
- done
+ for f in $ac_file_in; do
+ case $f in
+ -) echo $tmp/stdin ;;
+ *) if test -f "$f"; then
+ # Build tree or absolute
+ echo $f
+ elif test -f "$ac_given_srcdir/$f"; then
+ # Source tree
+ echo $ac_given_srcdir/$f
+ else
+ # /dev/null tree
+ AC_MSG_ERROR([cannot find input file \\`$f'])
+ fi;;
+ esac
+ done`
# Remove the trailing spaces.
sed 's/[[ ]]*$//' $ac_file_inputs >$tmp/in
your code should no longer depend upon `INT_16_BITS', but upon
`SIZEOF_INT'. Remove this AC_WARNING and the `AC_DEFINE' when you
adjust the code.])dnl
-test $ac_check_sizeof_int = 2 &&
+test $ac_cv_sizeof_int = 2 &&
AC_DEFINE(INT_16_BITS, 1,
[Define if `sizeof (int)' = 2. Obsolete, use `SIZEOF_INT'.])
])
your code should no longer depend upon `LONG_64_BITS', but upon
`SIZEOF_LONG_INT'. Remove this AC_WARNING and the `AC_DEFINE' when
you adjust the code.])dnl
-test $ac_check_sizeof_long_int = 8 &&
+test $ac_cv_sizeof_long_int = 8 &&
AC_DEFINE(LONG_64_BITS, 1,
[Define if `sizeof (long int)' = 8. Obsolete, use
`SIZEOF_LONG_INT'.])
# Don't redirect the output to AC_FILE directly: use `mv' so that
# updating is atomic, and doesn't need trapping.
+
+ # First look for the input files in the build tree, otherwise in the
+ # src tree.
ac_file_inputs=`IFS=:
- for f in $ac_file_in; do
- case $f in
- -) echo $tmp/stdin ;;
- *) echo $ac_given_srcdir/$f ;;
- esac
- done`
- for ac_file_input in $ac_file_inputs;
- do
- test -f "$ac_file_input" ||
- AC_MSG_ERROR(cannot find input file `$ac_file_input')
- done
+ for f in $ac_file_in; do
+ case $f in
+ -) echo $tmp/stdin ;;
+ *) if test -f "$f"; then
+ # Build tree or absolute
+ echo $f
+ elif test -f "$ac_given_srcdir/$f"; then
+ # Source tree
+ echo $ac_given_srcdir/$f
+ else
+ # /dev/null tree
+ AC_MSG_ERROR([cannot find input file \\`$f'])
+ fi;;
+ esac
+ done`
EOF
cat >>$CONFIG_STATUS <<EOF
dnl Neutralize VPATH when `$srcdir' = `.'.
test x"$ac_file" != x- && echo creating $ac_file
+ # First look for the input files in the build tree, otherwise in the
+ # src tree.
ac_file_inputs=`IFS=:
- for f in $ac_file_in; do
- case $f in
- -) echo $tmp/stdin ;;
- *) echo $ac_given_srcdir/$f ;;
- esac
- done`
- for ac_file_input in $ac_file_inputs;
- do
- test -f "$ac_file_input" ||
- AC_MSG_ERROR(cannot find input file `$ac_file_input')
- done
+ for f in $ac_file_in; do
+ case $f in
+ -) echo $tmp/stdin ;;
+ *) if test -f "$f"; then
+ # Build tree or absolute
+ echo $f
+ elif test -f "$ac_given_srcdir/$f"; then
+ # Source tree
+ echo $ac_given_srcdir/$f
+ else
+ # /dev/null tree
+ AC_MSG_ERROR([cannot find input file \\`$f'])
+ fi;;
+ esac
+ done`
# Remove the trailing spaces.
sed 's/[[ ]]*$//' $ac_file_inputs >$tmp/in
your code should no longer depend upon `INT_16_BITS', but upon
`SIZEOF_INT'. Remove this AC_WARNING and the `AC_DEFINE' when you
adjust the code.])dnl
-test $ac_check_sizeof_int = 2 &&
+test $ac_cv_sizeof_int = 2 &&
AC_DEFINE(INT_16_BITS, 1,
[Define if `sizeof (int)' = 2. Obsolete, use `SIZEOF_INT'.])
])
your code should no longer depend upon `LONG_64_BITS', but upon
`SIZEOF_LONG_INT'. Remove this AC_WARNING and the `AC_DEFINE' when
you adjust the code.])dnl
-test $ac_check_sizeof_long_int = 8 &&
+test $ac_cv_sizeof_long_int = 8 &&
AC_DEFINE(LONG_64_BITS, 1,
[Define if `sizeof (long int)' = 8. Obsolete, use
`SIZEOF_LONG_INT'.])