Skip to content

Commit

Permalink
Updated the bootstrap scripts to use libtoolize if glibtoolize isn't
Browse files Browse the repository at this point in the history
available on darwin.

the configure.ac files also needed updating from AM_CONFIG_HEADER
to AC_CONFIG_HEADER for compatiblity with the current autotools.
  • Loading branch information
nickrasmussen committed Feb 15, 2013
1 parent 2664764 commit 5c820c8
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 12 deletions.
8 changes: 5 additions & 3 deletions IlmBase/bootstrap
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
#! /bin/sh
# If we're on OS X, use glibtoolize instead of toolize
HOSTTYPE=`uname`
LIBTOOLIZE=libtoolize
if [ "$HOSTTYPE" == "Darwin" ]; then
LIBTOOLIZE=glibtoolize
else
LIBTOOLIZE=libtoolize
GLIBTOOLIZE=`which glibtoolize`
if [ "x$GLIBTOOLIZE" != "x" ]; then
LIBTOOLIZE=glibtoolize
fi
fi


Expand Down
2 changes: 1 addition & 1 deletion IlmBase/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ AC_SUBST(ILMBASE_VERSION, 2.0.0)
AC_SUBST(ILMBASE_VERSION_SAFE, 2_0_0)
AC_CANONICAL_HOST
AC_CONFIG_SRCDIR(ImathTest/main.cpp)
AM_CONFIG_HEADER(config/IlmBaseConfig.h)
AC_CONFIG_HEADER(config/IlmBaseConfig.h)
AM_INIT_AUTOMAKE(1.6.3) dnl Require automake 1.6.3 or better
AM_MAINTAINER_MODE

Expand Down
8 changes: 5 additions & 3 deletions OpenEXR/bootstrap
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
#! /bin/sh
# If we're on OS X, use glibtoolize instead of toolize
HOSTTYPE=`uname`
LIBTOOLIZE=libtoolize
if [ "$HOSTTYPE" == "Darwin" ]; then
LIBTOOLIZE=glibtoolize
else
LIBTOOLIZE=libtoolize
GLIBTOOLIZE=`which glibtoolize`
if [ "x$GLIBTOOLIZE" != "x" ]; then
LIBTOOLIZE=glibtoolize
fi
fi


Expand Down
2 changes: 1 addition & 1 deletion OpenEXR/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ AC_SUBST(OPENEXR_VERSION, 2.0.0)
AC_SUBST(OPENEXR_VERSION_SAFE, 2_0_0)
AC_CANONICAL_HOST
AC_CONFIG_SRCDIR(IlmImfTest/main.cpp)
AM_CONFIG_HEADER(config/OpenEXRConfig.h)
AC_CONFIG_HEADER(config/OpenEXRConfig.h)
AM_INIT_AUTOMAKE(1.6.3) dnl Require automake 1.6.3 or better
AM_MAINTAINER_MODE

Expand Down
8 changes: 5 additions & 3 deletions PyIlmBase/bootstrap
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
#! /bin/sh
# If we're on OS X, use glibtoolize instead of toolize
HOSTTYPE=`uname`
LIBTOOLIZE=libtoolize
if [ "$HOSTTYPE" == "Darwin" ]; then
LIBTOOLIZE=glibtoolize
else
LIBTOOLIZE=libtoolize
GLIBTOOLIZE=`which glibtoolize`
if [ "x$GLIBTOOLIZE" != "x" ]; then
LIBTOOLIZE=glibtoolize
fi
fi


Expand Down
2 changes: 1 addition & 1 deletion PyIlmBase/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ AC_INIT(PyIlmBase, 2.0.0)
AC_SUBST(PYILMBASE_VERSION, 2.0.0)
AC_CANONICAL_HOST
AC_CONFIG_SRCDIR(PyIex/iexmodule.cpp)
AM_CONFIG_HEADER(config/PyIlmBaseConfig.h)
AC_CONFIG_HEADER(config/PyIlmBaseConfig.h)
AM_INIT_AUTOMAKE(1.6.3) dnl Require automake 1.6.3 or better
AM_MAINTAINER_MODE
dnl static python modules make no sense - disable static
Expand Down

0 comments on commit 5c820c8

Please sign in to comment.