Merge pull request #3643 from b4n/prefs-virtual-spaces-no-visual
[geany-mirror.git] / autogen.sh
blob568e47f29ca028758ff6b9cd3e86da1ae4824a19
1 #!/bin/sh
2 # Run this to generate all the initial makefiles, etc.
4 set -e
6 srcdir=`dirname $0`
7 test -z "$srcdir" && srcdir=.
9 DIE=0
11 (test -f $srcdir/configure.ac) || {
12 echo "**Error**: Directory "\`$srcdir\'" does not look like the top-level package directory"
13 exit 1
16 (pkg-config --version) < /dev/null > /dev/null 2>&1 || {
17 echo
18 echo "You must have pkg-config installed to compile $package."
19 echo "Download the appropriate package for your distribution."
20 result="no"
21 DIE=1
24 if test -z "$*" -a "$NOCONFIGURE" != 1; then
25 echo "**Warning**: I am going to run \`configure' with no arguments."
26 echo "If you wish to pass any to it, please specify them on the"
27 echo \`$0\'" command line."
28 echo
31 echo "Processing configure.ac"
33 (cd $srcdir; autoreconf --install --verbose)
35 if [ "$NOCONFIGURE" = 1 ]; then
36 echo "Done. configure skipped."
37 exit 0;
39 echo "Running $srcdir/configure $@ ..."
40 $srcdir/configure "$@" && echo "Now type 'make' to compile." || exit 1