diff options
Diffstat (limited to 'm4')
-rw-r--r-- | m4/acinclude.m4 | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/m4/acinclude.m4 b/m4/acinclude.m4 index 542a7a0857b..c9c5f11f2b2 100644 --- a/m4/acinclude.m4 +++ b/m4/acinclude.m4 @@ -90,16 +90,13 @@ dnl header when doing an AC_TRY_COMPILE. dnl Usage: ACE_USE_TEMP_FILE(TEMP-FILE-TO-CREATE, COMMANDS-THAT-WILL-USE-IT) AC_DEFUN(ACE_USE_TEMP_FILE, dnl [ - if test -f ${srcdir}/$1; then - mv ${srcdir}/$1 ${srcdir}/$1.conf - touch ${srcdir}/$1 - fi - if test $srcdir != "."; then - if test -f ./$1; then - mv ./$1 ./$1.conf - touch ./$1 - fi + test -f ${srcdir}/$1 && mv ${srcdir}/$1 ${srcdir}/$1.conf + touch ${srcdir}/$1 + + if test ${srcdir}/$1 != "./$1"; then + test -f ./$1 && mv ./$1 ./$1.conf + touch ./$1 fi $2 @@ -110,7 +107,7 @@ AC_DEFUN(ACE_USE_TEMP_FILE, dnl rm ${srcdir}/$1 fi - if test $srcdir != "."; then + if test ${srcdir}/$1 != "./$1"; then if test -f ./$1.conf; then mv ./$1.conf ./$1 else |