Commit 8dd71464 authored by Marc-André Lureau's avatar Marc-André Lureau

gnome-autogen: warn if $srcdir is undefined

Not setting $srcdir will lead to broken out-of-tree autogen call, so
let's ask to set it

https://bugzilla.gnome.org/show_bug.cgi?id=741891
parent 4c8d8ad9
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
test "$srcdir" || srcdir=.
# default version requirements ...
test "$REQUIRED_AUTOMAKE_VERSION" || REQUIRED_AUTOMAKE_VERSION=1.11.2
test "$REQUIRED_AUTORECONF_VERSION" || REQUIRED_AUTORECONF_VERSION=2.53
......@@ -62,6 +60,11 @@ check_deprecated GNOME2_PATH
check_deprecated USE_GNOME2_MACROS
check_deprecated PKG_NAME
if [ -z "$srcdir" ]; then
printerr "***Warning*** \$srcdir is not defined, out of dir autogen is broken!"
srcdir=.
fi
PKG_NAME=`autoconf --trace "AC_INIT:$1" "$srcdir/configure.ac"`
# Usage:
......
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