[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
a libtool.m4 patch for use with autoconf-2.50
From: |
Bruno Haible |
Subject: |
a libtool.m4 patch for use with autoconf-2.50 |
Date: |
Thu, 14 Jun 2001 17:07:11 +0200 (CEST) |
Hi,
The libtool.m4 from libtool-1.4 doesn't work perfectly with autoconf-2.50:
the "-o file.lo" test reports "no" instead of "yes" as it did with
autoconf-2.13. config.log shows the following lines:
configure:3952: checking if gcc supports -c -o file.lo
configure:3974: gcc -c -g -O2 -c -o conftest.lo conftest.c >&5
configure:3977: $? = 0
configure:3980: test -s conftest.o
configure:3983: $? = 1
It is wrong to expect the existence of conftest.o after using "-o conftest.lo".
Here is a fix. It also fixes that the result of this test is not displayed,
a simple typo.
*** libtool.m4.bak Fri Jun 8 23:54:45 2001
--- libtool.m4 Thu Jun 14 13:26:54 2001
***************
*** 1066,1071 ****
--- 1066,1073 ----
lt_cv_compiler_o_lo=no
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -c -o conftest.lo"
+ save_objext="$ac_objext"
+ ac_objext=lo
AC_TRY_COMPILE([], [int some_variable = 0;], [dnl
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings
***************
*** 1075,1084 ****
lt_cv_compiler_o_lo=yes
fi
])
CFLAGS="$save_CFLAGS"
])
compiler_o_lo=$lt_cv_compiler_o_lo
! AC_MSG_RESULT([$compiler_c_lo])
else
compiler_o_lo=no
fi
--- 1077,1087 ----
lt_cv_compiler_o_lo=yes
fi
])
+ ac_objext="$save_objext"
CFLAGS="$save_CFLAGS"
])
compiler_o_lo=$lt_cv_compiler_o_lo
! AC_MSG_RESULT([$compiler_o_lo])
else
compiler_o_lo=no
fi
- a libtool.m4 patch for use with autoconf-2.50,
Bruno Haible <=