mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-22 12:31:10 +00:00
bootstrap:
make it so bootstrap can be run out of dir (like configure) configure.ac: evil hack to get $AR working with older libtool (1.3)
This commit is contained in:
parent
20f702b5fe
commit
27d302f9c9
2 changed files with 17 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
|||
#! /bin/sh
|
||||
cd `dirname $0`
|
||||
# Check Autoconf version
|
||||
if [ -x `which autoconf` ]; then
|
||||
AC_VER=`autoconf --version | head -1 | sed 's/^[^0-9]*//'`
|
||||
|
|
16
configure.ac
16
configure.ac
|
@ -38,6 +38,12 @@ AC_SUBST(ISODATE)
|
|||
|
||||
AC_LANG_C
|
||||
|
||||
if test ${AR-unset} = unset; then
|
||||
echo boo
|
||||
AR="ar"
|
||||
fi
|
||||
export AR
|
||||
|
||||
endian=""
|
||||
case "$host_os" in
|
||||
mingw32*)
|
||||
|
@ -1541,6 +1547,16 @@ AC_OUTPUT(
|
|||
RPM/quakeforge.spec,
|
||||
|
||||
chmod +x quakeforge-config RPM/build_rpm
|
||||
if test "$AR" != "ar"; then
|
||||
sed -e 's/^AR="ar"$/AR="'$AR'"/' libtool > libtool.qf
|
||||
if cmp -s libtool.qf libtool; then
|
||||
echo libtool is unchanged
|
||||
rm -f libtool.qf
|
||||
else
|
||||
rm -f libtool
|
||||
mv libtool.qf libtool
|
||||
fi
|
||||
fi
|
||||
)
|
||||
|
||||
if test "x$CCVER" = "x"; then
|
||||
|
|
Loading…
Reference in a new issue