summaryrefslogtreecommitdiffstats
path: root/autogen
blob: b4d9429e5321349e18e0f3f7aad9ef3598725108 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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