source: scripts/untested/autotools/autoconf.sh@ f118837

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since f118837 was d1afb9e, checked in by Jim Gifford <clfs@…>, 19 years ago

r587@server (orig r585): ryan | 2005-08-05 21:51:35 -0700
Add a sane autotools build to the mix.
Blatantly stolen from gentoo...



  • Property mode set to 100755
File size: 1.5 KB
Line 
1#!/bin/bash
2
3# cross-lfs native autoconf build
4# -------------------------------
5# $LastChangedBy: roliver $
6# $LastChangedDate: 2005-05-21 15:22:56 +1000 (Sat, 21 May 2005) $
7# $LastChangedRevision: 528 $
8# $HeadURL: svn+ssh://roliver@be-linux.org/svn/cross-lfs/cross-lfs/trunk/scripts/native-scripts/native-autoconf.sh $
9#
10
11cd ${SRC}
12LOG=autoconf-native.log
13
14echo ${AUTOCONF_VER}
15set_libdirname
16setup_multiarch
17
18unpack_tarball autoconf-${AUTOCONF_VER} &&
19cd ${PKGDIR}
20
21# From gentoo
22case ${AUTOCONF_VER} in
232.1* )
24 sed -i -e "s@\* Autoconf:@\* Autoconf v${AUTOCONF_VER:0:3}:@" \
25 -e '/START-INFO-DIR-ENTRY/ i INFO-DIR-SECTION GNU programming tools' \
26 autoconf.texi
27;;
282.59 )
29 apply_patch autoconf-2.59-more-quotes
30;;
31esac
32
33max_log_init Autoconf ${AUTOCONF_VER} "native (shared)" ${CONFLOGS} ${LOG}
34CC="${CC-gcc} ${ARCH_CFLAGS}" \
35CFLAGS="-O2 -pipe ${TGT_CFLAGS}" \
36./configure --prefix=/usr \
37 --program-suffix="-${AUTOCONF_VER}" \
38 >> ${LOGFILE} 2>&1 &&
39echo " o Configure OK" || barf
40
41case ${AUTOCONF_VER} in
422.5* )
43 sed -i "/^program_transform_name/s@-${AUTOCONF_VER}@@" man/Makefile
44;;
45esac
46
47min_log_init ${BUILDLOGS} &&
48make LDFLAGS="-s" \
49 >> ${LOGFILE} 2>&1 &&
50echo " o Build OK" || barf
51
52#min_log_init ${TESTLOGS} &&
53#make check \
54# >> ${LOGFILE} 2>&1 &&
55#echo " o Test OK" || errmsg
56
57min_log_init ${INSTLOGS} &&
58make install \
59 >> ${LOGFILE} 2>&1 &&
60echo " o ALL OK" || barf
61
62mv /usr/share/info/autoconf.info \
63 /usr/share/info/autoconf-${AUTOCONF_VER}.info
Note: See TracBrowser for help on using the repository browser.