This commit is contained in:
Joachim Schoeberl 2009-01-14 17:31:36 +00:00
parent 98a4bbd4d8
commit dfb658d6e4
3 changed files with 16 additions and 16 deletions

View File

@ -6,8 +6,8 @@
/* Define to 1 if you have the <inttypes.h> header file. */ /* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H #undef HAVE_INTTYPES_H
/* Define to 1 if you have the `pthread_create' library (-lpthread_create). */ /* Define to 1 if you have the `pthread' library (-lpthread). */
#undef HAVE_LIBPTHREAD_CREATE #undef HAVE_LIBPTHREAD
/* Define to 1 if you have the <memory.h> header file. */ /* Define to 1 if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H #undef HAVE_MEMORY_H

26
configure vendored
View File

@ -15961,13 +15961,13 @@ fi
{ $as_echo "$as_me:$LINENO: checking for pthread in -lpthread_create" >&5 { $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
$as_echo_n "checking for pthread in -lpthread_create... " >&6; } $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
if test "${ac_cv_lib_pthread_create_pthread+set}" = set; then if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
ac_check_lib_save_LIBS=$LIBS ac_check_lib_save_LIBS=$LIBS
LIBS="-lpthread_create $LIBS" LIBS="-lpthread $LIBS"
cat >conftest.$ac_ext <<_ACEOF cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */ /* confdefs.h. */
_ACEOF _ACEOF
@ -15981,11 +15981,11 @@ cat >>conftest.$ac_ext <<_ACEOF
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
#endif #endif
char pthread (); char pthread_create ();
int int
main () main ()
{ {
return pthread (); return pthread_create ();
; ;
return 0; return 0;
} }
@ -16011,12 +16011,12 @@ $as_echo "$ac_try_echo") >&5
test "$cross_compiling" = yes || test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext $as_test_x conftest$ac_exeext
}; then }; then
ac_cv_lib_pthread_create_pthread=yes ac_cv_lib_pthread_pthread_create=yes
else else
$as_echo "$as_me: failed program was:" >&5 $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5 sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_lib_pthread_create_pthread=no ac_cv_lib_pthread_pthread_create=no
fi fi
rm -rf conftest.dSYM rm -rf conftest.dSYM
@ -16024,14 +16024,14 @@ rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS LIBS=$ac_check_lib_save_LIBS
fi fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_create_pthread" >&5 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
$as_echo "$ac_cv_lib_pthread_create_pthread" >&6; } $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
if test "x$ac_cv_lib_pthread_create_pthread" = x""yes; then if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then
cat >>confdefs.h <<_ACEOF cat >>confdefs.h <<_ACEOF
#define HAVE_LIBPTHREAD_CREATE 1 #define HAVE_LIBPTHREAD 1
_ACEOF _ACEOF
LIBS="-lpthread_create $LIBS" LIBS="-lpthread $LIBS"
fi fi

View File

@ -32,7 +32,7 @@ AC_CHECK_HEADER([iostream.h],[OCC_FLAGS="$OCCFLAGS -DHAVE_IOSTREAM_H"])
AC_CHECK_HEADER([limits],[OCCFLAGS="$OCCFLAGS -DHAVE_LIMITS"]) AC_CHECK_HEADER([limits],[OCCFLAGS="$OCCFLAGS -DHAVE_LIMITS"])
AC_CHECK_HEADER([limits.h],[OCCFLAGS="$OCCFLAGS -DHAVE_LIMITS_H"]) AC_CHECK_HEADER([limits.h],[OCCFLAGS="$OCCFLAGS -DHAVE_LIMITS_H"])
AC_CHECK_LIB(pthread_create, pthread) AC_CHECK_LIB(pthread, pthread_create)
AC_SEARCH_LIBS(Tcl_Init, [tcl8.5 tcl8.4]) AC_SEARCH_LIBS(Tcl_Init, [tcl8.5 tcl8.4])
AC_SEARCH_LIBS(Tk_Init, [tk8.5 tk8.4]) AC_SEARCH_LIBS(Tk_Init, [tk8.5 tk8.4])
# AC_SEARCH_LIBS(Togl_Init, Toglstub2.0 ) # AC_SEARCH_LIBS(Togl_Init, Toglstub2.0 )