summaryrefslogtreecommitdiffstats
path: root/build/linux
diff options
context:
space:
mode:
Diffstat (limited to 'build/linux')
-rwxr-xr-xbuild/linux/autogen.sh7
-rw-r--r--build/linux/configure.ac26
2 files changed, 5 insertions, 28 deletions
diff --git a/build/linux/autogen.sh b/build/linux/autogen.sh
index c856793..544fdeb 100755
--- a/build/linux/autogen.sh
+++ b/build/linux/autogen.sh
@@ -12,9 +12,12 @@ if test $? -ne 0; then
exit 1
fi
-libtoolize --install --force > /dev/null 2>&1
+case `uname` in Darwin*) LIBTOOLIZEBIN=glibtoolize ;;
+ *) LIBTOOLIZEBIN=libtoolize ;; esac
+
+$LIBTOOLIZEBIN --install --force > /dev/null 2>&1
if test $? -ne 0; then
- libtoolize --force
+ $LIBTOOLIZEBIN --force
if test $? -ne 0; then
echo "Error running libtoolize"
exit 1
diff --git a/build/linux/configure.ac b/build/linux/configure.ac
index 639264b..7397986 100644
--- a/build/linux/configure.ac
+++ b/build/linux/configure.ac
@@ -48,32 +48,6 @@ dnl Use iostream to check if the C++ compiler works
AC_CHECK_HEADER(iostream, , AC_MSG_ERROR([No working c++ compiler found]))
-# clock_gettime
-
-AC_MSG_CHECKING([for clock_gettime])
-AC_TRY_LINK([
-#include <ctime>
-],[
-struct timespec t; clock_gettime(CLOCK_REALTIME, &t);
-],astra_clock_gettime_ok=yes,astra_clock_gettime_ok=no)
-AC_MSG_RESULT($astra_clock_gettime_ok)
-if test x$astra_clock_gettime_ok = xno; then
- AC_MSG_CHECKING([for clock_gettime in librt])
- LIBS="$LIBS -lrt"
- AC_TRY_LINK([
- #include <ctime>
- ],[
- struct timespec t; clock_gettime(CLOCK_REALTIME, &t);
- ],astra_clock_gettime_ok=yes,astra_clock_gettime_ok=no)
- AC_MSG_RESULT($astra_clock_gettime_ok)
- if test x$astra_clock_gettime_ok = xno; then
- AC_MSG_ERROR([No clock_gettime found])
- else
- SAVED_LIBS="$SAVED_LIBS -lrt"
- fi
-fi
-
-
# boost-unit-test-framework
AC_MSG_CHECKING([for boost-unit-test-framework])