aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-08-17 18:53:25 (GMT)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-08-28 11:14:27 (GMT)
commit1b4b39d296a62e99069fcf6b9457bafb97d51ee8 (patch)
treeeedd4c2c6650dfcbeb8d904566bf61024ee045d5
parentf50f0b5fc4e7059c41d0c289910e2407a4fa0969 (diff)
autogen.sh: use a more modern approach
The procedure used there is deprecated. Change it to run with latest versions of Gtk 2. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
-rwxr-xr-xautogen.sh22
1 files changed, 4 insertions, 18 deletions
diff --git a/autogen.sh b/autogen.sh
index 9ee3796..3fceb19 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -4,10 +4,7 @@
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
-PKG_NAME="camorama"
-REQUIRED_LIBTOOL_VERSION=1.4.3
-REQUIRED_AUTOMAKE_VERSION=1.7
-#ACLOCAL_FLAGS="-I macros $ACLOCAL_FLAGS"
+REQUIRED_AUTOMAKE_VERSION=1.9
(test -f $srcdir/configure.ac \
&& test -d $srcdir/src) || {
@@ -16,23 +13,12 @@ REQUIRED_AUTOMAKE_VERSION=1.7
exit 1
}
-ifs_save="$IFS"; IFS=":"
-for dir in $PATH ; do
- test -z "$dir" && dir=.
- if test -f $dir/gnome-autogen.sh ; then
- gnome_autogen="$dir/gnome-autogen.sh"
- gnome_datadir=`echo $dir | sed -e 's,/bin$,/share,'`
- break
- fi
-done
-IFS="$ifs_save"
-
-if test -z "$gnome_autogen" ; then
+which gnome-autogen.sh || {
echo "You need to install the gnome-common module and make"
echo "sure the gnome-autogen.sh script is in your \$PATH."
exit 1
-fi
+}
-NOCONFIGURE="yes" GNOME_DATADIR="$gnome_datadir" USE_GNOME2_MACROS=1 . $gnome_autogen
+. gnome-autogen.sh
$srcdir/configure `/bin/grep ^DISTCHECK configure.ac | sed 's/^DISTCHECK_CONFIGURE_FLAGS="\(.*\)"$/\1/'` $@

Privacy Policy