Commit 5940bca3 authored by andre's avatar andre

andre: Added Fink support into autogen.sh


git-svn-id: http://svn.annodex.net/liboggz/trunk@365 8158c8cd-e7e1-0310-9fa4-c5954c97daef
parent 8d385ba6
...@@ -44,6 +44,11 @@ fi ...@@ -44,6 +44,11 @@ fi
# autogoat bootstrap process # autogoat bootstrap process
# #
ACLOCAL=${ACLOCAL:-aclocal}
AUTOCONF=${AUTOCONF:-autoconf}
AUTOHEADER=${AUTOHEADER:-autoheader}
AUTOMAKE=${AUTOMAKE:-automake}
# remove autotools cruft # remove autotools cruft
rm -f aclocal.m4 configure config.log rm -f aclocal.m4 configure config.log
rm -Rf autom4te.cache rm -Rf autom4te.cache
...@@ -52,12 +57,13 @@ rm -f config.guess config.sub missing mkinstalldirs compile depcomp install-sh ...@@ -52,12 +57,13 @@ rm -f config.guess config.sub missing mkinstalldirs compile depcomp install-sh
# remove libtool cruft # remove libtool cruft
rm -f ltmain.sh libtool ltconfig rm -f ltmain.sh libtool ltconfig
ACLOCAL=${ACLOCAL:-aclocal} # add Fink's /sw path to various search directories
AUTOCONF=${AUTOCONF:-autoconf} if [ -d /sw ]; then
AUTOHEADER=${AUTOHEADER:-autoheader} ACLOCAL="$ACLOCAL -I /sw/share/aclocal"
AUTOMAKE=${AUTOMAKE:-automake} FINK_DETECTED=1
fi
"$ACLOCAL" eval "$ACLOCAL"
# do we need libtool? # do we need libtool?
if grep -q PROG_LIBTOOL configure.*; then if grep -q PROG_LIBTOOL configure.*; then
...@@ -82,6 +88,23 @@ if grep -q PROG_LIBTOOL configure.*; then ...@@ -82,6 +88,23 @@ if grep -q PROG_LIBTOOL configure.*; then
fi fi
fi fi
"$AUTOCONF" eval "$AUTOCONF"
grep -q CONFIG_HEADER configure.* && "$AUTOHEADER" grep -q CONFIG_HEADER configure.* && "$AUTOHEADER"
"$AUTOMAKE" --add-missing --copy eval "$AUTOMAKE" --add-missing --copy
# Print warning message if Fink detected
if test "$FINK_DETECTED" = 1; then
cat << EOF
Fink detected; added /sw/share/aclocal to aclocal's include directories.
Make sure you have CPPFLAGS, LDFLAGS and PKG_CONFIG_PATH including Fink's
distribution directories, e.g.:
export CPPFLAGS="-I/sw/include \$CPPFLAGS"
export LDFLAGS="-L/sw/lib \$LDFLAGS"
export PKG_CONFIG_PATH="/sw/lib/pkgconfig:\$PKG_CONFIG_PATH"
./configure
EOF
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment