2 # Run this to generate all the initial makefiles, etc.
5 test -z "$srcdir" && srcdir=.
11 FILE=libsecret/secret-value.c
16 if libtoolize --version < /dev/null > /dev/null 2>&1 ; then
17 libtool_version=`libtoolize --version |
19 sed -e 's/^\(.*\)([^)]*)\(.*\)$/\1\2/g' \
20 -e 's/^[^0-9]*\([0-9.][0-9.]*\).*/\1/'`
21 case $libtool_version in
30 if $have_libtool ; then : ; else
32 echo "You must have libtool >= 2.2 installed to compile $PROJECT."
33 echo "Install the appropriate package for your distribution,"
34 echo "or get the source tarball at http://ftp.gnu.org/gnu/libtool/"
38 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
40 echo "You must have autoconf installed to compile $PROJECT."
41 echo "Install the appropriate package for your distribution,"
42 echo "or get the source tarball at http://ftp.gnu.org/gnu/autoconf/"
46 if automake-1.11 --version < /dev/null > /dev/null 2>&1 ; then
47 AUTOMAKE=automake-1.11
49 else if automake-1.10 --version < /dev/null > /dev/null 2>&1 ; then
50 AUTOMAKE=automake-1.10
54 echo "You must have automake 1.10.x or 1.11.x installed to compile $PROJECT."
55 echo "Install the appropriate package for your distribution,"
56 echo "or get the source tarball at http://ftp.gnu.org/gnu/automake/"
61 if test "$DIE" -eq 1; then
65 test $TEST_TYPE $FILE || {
66 echo "You must run this script in the top-level $PROJECT directory"
70 # NOCONFIGURE is used by gnome-common; support both
71 if ! test -z "$AUTOGEN_SUBDIR_MODE"; then
75 if test -z "$NOCONFIGURE"; then
77 echo "I am going to run ./configure with no arguments - if you wish "
78 echo "to pass any to it, please specify them on the $0 command line."
84 # README and INSTALL are required by automake, but may be deleted by clean
85 # up rules. to get automake to work, simply touch these here, they will be
86 # regenerated from their corresponding *.in files by ./configure anyway.
89 $ACLOCAL -I build/m4 $ACLOCAL_FLAGS || exit $?
91 libtoolize --force || exit $?
92 intltoolize --force --copy || exit $?
98 $AUTOMAKE --add-missing || exit $?
100 cd $ORIGDIR || exit $?
102 if test -z "$NOCONFIGURE"; then
103 $srcdir/configure --enable-maintainer-mode $AUTOGEN_CONFIGURE_ARGS "$@" || exit $?
106 echo "Now type 'make' to compile $PROJECT."