File: CREATE_CONFIGURE

package info (click to toggle)
ifhp 3.5.20-12.1
  • links: PTS
  • area: main
  • in suites: squeeze, wheezy
  • size: 7,164 kB
  • ctags: 1,781
  • sloc: ansic: 14,994; sh: 12,037; perl: 1,461; makefile: 636; sed: 16
file content (27 lines) | stat: -rw-r--r-- 685 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
M4PATH=/usr/local/share/aclocal
export M4PATH
set -e
rm -f aclocal.m4 libtool config.cache config.status
aclocal
grep 'libtool.m4 - Configure' aclocal.m4 || {
cat /usr/local/share/aclocal/libtool14.m4 >>aclocal.m4
}
autoconf
#autoreconf --force --install
gettextize --force --copy </dev/null
rm -f po/Makevars
mv po/Makevars.template po/Makevars
libtoolize14 --force --copy
grep 'SED=' ltmain.sh || {
 (	head -1 ltmain.sh ; echo "SED=sed"; cat ltmain.sh ) >ltmain
	rm -f ltmain.sh
	mv ltmain ltmain.sh
}

perl -spi.bak -e '
	if(/--disable-nls.*Native/){s/--disable/--enable/; s/do not //;}
	s/, USE_NLS=yes/, USE_NLS=no/; ' aclocal.m4
autoconf
autoheader
chmod a+x configure