summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xautogen21
1 files changed, 21 insertions, 0 deletions
diff --git a/autogen b/autogen
new file mode 100755
index 0000000..b4d9429
--- /dev/null
+++ b/autogen
@@ -0,0 +1,21 @@
+#!/bin/sh
+if test -x /lib64 ; then
+ libdir=/lib64
+else
+ libdir=/lib
+fi
+if test `id -un` = "nalin" ; then
+ CFLAGS=`rpm --eval '%{optflags} -Wall -Wextra -Wno-unused' 2> /dev/null`
+ if test -n "$CFLAGS" ; then
+ export CFLAGS
+ fi
+ echo "Going to configure with $flags!"
+ mandir=${TMPDIR:-/var/tmp}/autogen-man-tmp
+else
+ flags=
+ mandir=/usr/share/man
+fi
+set -x -e
+rm -fr autom4te.cache
+autoreconf -i -f
+./configure --libdir=$libdir --sysconfdir=/etc --mandir=$mandir $flags "$@" --enable-maintainer-mode