File: autogen.sh

package info (click to toggle)
wordnet 2.0g-12
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 20,008 kB
  • ctags: 1,085
  • sloc: sh: 9,664; ansic: 8,183; yacc: 747; makefile: 429; lex: 413
file content (21 lines) | stat: -rw-r--r-- 475 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
aclocal
automake --add-missing
autoconf

# Fix broken libtool statements
for mkfin in `find . -name Makefile.in` ; do
    perl -i -pe "s/^(LIBTOOL = \@LIBTOOL\@)\$/\$1 --tag=CXX/" $mkfin
done

sed "1a\\
PREFIX_TEST=\`echo \$1 | sed "s/--prefix.*/--prefix/"\` \\
if [ x--prefix != x\$PREFIX_TEST ] ; then \\
   echo --prefix argument required \\
   exit\\
fi\\
" ./configure \
   > ./configure.tmp
mv ./configure.tmp ./configure
chmod 755 ./configure
./configure $@