Changeset: f02c1141aeeb for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=f02c1141aeeb
Modified Files:
bootstrap
Branch: Mar2011
Log Message:
bootstrap: allow usage on Darwin and less-convenient platforms
Try to use glibtoolize instead of libtoolize when it exists, often the
case on Darwin/OSX machines.
Allow adding additional search paths to aclocal, for finding .m4 macro
files, which may not be in the aclocal default search path, as is
typically the case with a local install, or some separate less
convenient tool such as fink and macports. Export M4DIRS as space
separated list of paths to use it.
diffs (50 lines):
diff --git a/bootstrap b/bootstrap
--- a/bootstrap
+++ b/bootstrap
@@ -1,4 +1,4 @@
-# -*-shell-script-*-
+#!/usr/bin/env bash
# The contents of this file are subject to the MonetDB Public License
# Version 1.1 (the "License"); you may not use this file except in
@@ -17,9 +17,29 @@
# Copyright August 2008-2011 MonetDB B.V.
# All Rights Reserved.
+# NOTE: if you happen to have bootstrap failures due to missing M4
+# macros, export M4DIRS as a space separated list of directories where
+# aclocal should look in your environment.
+
PYTHONPATH=${PWD:-$(pwd)}/buildtools/autogen${PYTHONPATH:+:$PYTHONPATH}
export PYTHONPATH
+# cope with systems where libtool is not GNU libtool, e.g. Darwin
+type -P glibtoolize > /dev/null \
+ && libtoolize=glibtoolize \
+ || libtoolize=libtoolize
+
+_m4_extra_dirs=
+if [[ -n ${M4DIRS} ]] ; then
+ for d in ${M4DIRS} ; do
+ case ${d} in
+ "-I") d= ;;
+ "-I"*) d=${d#-I} ;;
+ esac
+ [[ -n ${d} ]] && _m4_extra_dirs="${_m4_extra_dirs} -I ${d}"
+ done
+fi
+
python buildtools/autogen/autogen.py &&
(
# replace the line starting with AC_CONFIG_FILES in configure.ag with
@@ -31,8 +51,8 @@
while read f; do [ -x $f.in ] && echo "AC_CONFIG_FILES([$f], [chmod +x $f])";
done < acout.in
sed '1,/^AC_CONFIG_FILES/d' configure.ag
) > configure.ac &&
-libtoolize -c -f &&
-aclocal -I . -I buildtools/conf &&
+$libtoolize -c -f &&
+aclocal -I . -I buildtools/conf ${_m4_extra_dirs} &&
autoheader &&
automake --add-missing --copy --foreign &&
autoconf
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list