Update Spanish translation
[cheese.git] / autogen.sh
blob1a641a59e9c40de966da9d5c0bb83d84a6121ac1
1 #!/bin/sh
2 # Run this to generate all the initial makefiles, etc.
4 srcdir=`dirname $0`
5 test -z "$srcdir" && srcdir=.
7 olddir=`pwd`
9 (test -f $srcdir/configure.ac) || {
10 echo "**Error**: Directory "\`$srcdir\'" does not look like the top-level project directory"
11 exit 1
14 PKG_NAME=`autoconf --trace "AC_INIT:$1" "$srcdir/configure.ac"`
16 if [ "$#" = 0 -a "x$NOCONFIGURE" = "x" ]; then
17 echo "**Warning**: I am going to run \`configure' with no arguments." >&2
18 echo "If you wish to pass any to it, please specify them on the" >&2
19 echo \`$0\'" command line." >&2
20 echo "" >&2
23 cd "$srcdir"
25 # if the AC_CONFIG_MACRO_DIR() macro is used, create that directory
26 # This is a automake bug fixed in automake 1.13.2
27 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=13514
28 m4dir=`autoconf --trace 'AC_CONFIG_MACRO_DIR:$1'`
29 if [ -n "$m4dir" ]; then
30 mkdir -p $m4dir
33 set -x
35 gtkdocize --copy || exit 1
36 intltoolize --force --copy --automake || exit 1
37 autoreconf --verbose --force --install -Wno-portability || exit 1
39 cd "$olddir"
41 if [ "$NOCONFIGURE" = "" ]; then
42 $srcdir/configure "$@" || exit 1
44 if [ "$1" = "--help" ]; then exit 0 else
45 echo "Now type \`make\' to compile $PKG_NAME" || exit 1
47 else
48 echo "Skipping configure process."
51 set +x