summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Mallet <anthony.mallet@laas.fr>2010-01-21 17:28:07 +0100
committerAnthony Mallet <anthony.mallet@laas.fr>2010-01-21 17:28:07 +0100
commitc4a3c097d819f935a1eecad4820fe91430d0010e (patch)
tree3b701ee423d3a38f7712ff1c3a1cfe3a3513705c
parent8461b03abcf8890f32c25ca3dff89d417704d4f7 (diff)
downloadeltclsh-c4a3c097d819f935a1eecad4820fe91430d0010e.tar.gz
Add missing -lm for the ceil() function
Fixes loading of the extension in programs not already linked with -lm
-rwxr-xr-xconfigure58
-rw-r--r--configure.ac5
2 files changed, 60 insertions, 3 deletions
diff --git a/configure b/configure
index 47cd876..787d3ad 100755
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
#! /bin/sh
-# From configure.ac LAAS: configure.ac 2010/01/21 17:03:08 mallet .
+# From configure.ac LAAS: configure.ac 2010/01/21 17:25:50 mallet .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.64 for eltclsh 1.11.99.
#
@@ -20148,6 +20148,62 @@ if test "$ac_res" != no; then :
fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ceil" >&5
+$as_echo_n "checking for library containing ceil... " >&6; }
+if test "${ac_cv_search_ceil+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_func_search_save_LIBS=$LIBS
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char ceil ();
+int
+main ()
+{
+return ceil ();
+ ;
+ return 0;
+}
+_ACEOF
+for ac_lib in '' m; do
+ if test -z "$ac_lib"; then
+ ac_res="none required"
+ else
+ ac_res=-l$ac_lib
+ LIBS="-l$ac_lib $ac_func_search_save_LIBS"
+ fi
+ if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_search_ceil=$ac_res
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext
+ if test "${ac_cv_search_ceil+set}" = set; then :
+ break
+fi
+done
+if test "${ac_cv_search_ceil+set}" = set; then :
+
+else
+ ac_cv_search_ceil=no
+fi
+rm conftest.$ac_ext
+LIBS=$ac_func_search_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ceil" >&5
+$as_echo "$ac_cv_search_ceil" >&6; }
+ac_res=$ac_cv_search_ceil
+if test "$ac_res" != no; then :
+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
+
+fi
+
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
diff --git a/configure.ac b/configure.ac
index 9fc8ade..9e5442d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,10 +1,10 @@
-dnl $LAAS: configure.ac 2010/01/21 17:03:08 mallet $
+dnl $LAAS: configure.ac 2010/01/21 17:25:50 mallet $
dnl
dnl configure.in --
dnl process this file with autoconf to produce a configure script.
dnl
-AC_REVISION($LAAS: configure.ac 2010/01/21 17:03:08 mallet $)
+AC_REVISION($LAAS: configure.ac 2010/01/21 17:25:50 mallet $)
AC_INIT([eltclsh],[1.11.99],[openrobots@laas.fr])
AC_PREREQ(2.59)
@@ -119,6 +119,7 @@ ROBOT_LIB_TCL
ROBOT_LIB_TK
AC_SEARCH_LIBS([tputs], [termcap ncurses])
+AC_SEARCH_LIBS([ceil], [m])
dnl libedit
AC_LANG_C