[Julius-cvs 324] CVS update: julius4/libjulius

アーカイブの一覧に戻る

sumom****@users***** sumom****@users*****
2008年 10月 7日 (火) 03:10:05 JST


Index: julius4/libjulius/configure
diff -u julius4/libjulius/configure:1.6 julius4/libjulius/configure:1.7
--- julius4/libjulius/configure:1.6	Fri Oct  3 00:01:59 2008
+++ julius4/libjulius/configure	Tue Oct  7 03:10:04 2008
@@ -1733,24 +1733,119 @@
 EOF
 
 
+echo $ac_n "checking for dlopen""... $ac_c" 1>&6
+echo "configure:1738: checking for dlopen" >&5
+if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
+  echo $ac_n "(cached) $ac_c" 1>&6
+else
+  cat > conftest.$ac_ext <<EOF
+#line 1743 "configure"
+#include "confdefs.h"
+/* System header to define __stub macros and hopefully few prototypes,
+    which can conflict with char dlopen(); below.  */
+#include <assert.h>
+/* Override any gcc2 internal prototype to avoid an error.  */
+/* We use char because int might match the return type of a gcc2
+    builtin and then its argument prototype would still apply.  */
+char dlopen();
+
+int main() {
+
+/* The GNU C library defines this for functions which it implements
+    to always fail with ENOSYS.  Some functions are actually named
+    something starting with __ and the normal name is an alias.  */
+#if defined (__stub_dlopen) || defined (__stub___dlopen)
+choke me
+#else
+dlopen();
+#endif
+
+; return 0; }
+EOF
+if { (eval echo configure:1766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+  rm -rf conftest*
+  eval "ac_cv_func_dlopen=yes"
+else
+  echo "configure: failed program was:" >&5
+  cat conftest.$ac_ext >&5
+  rm -rf conftest*
+  eval "ac_cv_func_dlopen=no"
+fi
+rm -f conftest*
+fi
+
+if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
+  echo "$ac_t""yes" 1>&6
+  :
+else
+  echo "$ac_t""no" 1>&6
+echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
+echo "configure:1784: checking for dlopen in -ldl" >&5
+ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+  echo $ac_n "(cached) $ac_c" 1>&6
+else
+  ac_save_LIBS="$LIBS"
+LIBS="-ldl  $LIBS"
+cat > conftest.$ac_ext <<EOF
+#line 1792 "configure"
+#include "confdefs.h"
+/* Override any gcc2 internal prototype to avoid an error.  */
+/* We use char because int might match the return type of a gcc2
+    builtin and then its argument prototype would still apply.  */
+char dlopen();
+
+int main() {
+dlopen()
+; return 0; }
+EOF
+if { (eval echo configure:1803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+  rm -rf conftest*
+  eval "ac_cv_lib_$ac_lib_var=yes"
+else
+  echo "configure: failed program was:" >&5
+  cat conftest.$ac_ext >&5
+  rm -rf conftest*
+  eval "ac_cv_lib_$ac_lib_var=no"
+fi
+rm -f conftest*
+LIBS="$ac_save_LIBS"
+
+fi
+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+  echo "$ac_t""yes" 1>&6
+    ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/^a-zA-Z0-9_/_/g' \
+    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
+  cat >> confdefs.h <<EOF
+#define $ac_tr_lib 1
+EOF
+
+  LIBS="-ldl $LIBS"
+
+else
+  echo "$ac_t""no" 1>&6
+fi
+
+fi
+
 
 if test "$want_pthread" = yes; then
   case "$host_os" in
   freebsd*)
 	# FreeBSD
 	echo $ac_n "checking for linking POSIX threaded process""... $ac_c" 1>&6
-echo "configure:1743: checking for linking POSIX threaded process" >&5
+echo "configure:1838: checking for linking POSIX threaded process" >&5
  	ac_save_CFLAGS="$CFLAGS"
  	CFLAGS="$CFLAGS -pthread"
  	cat > conftest.$ac_ext <<EOF
-#line 1747 "configure"
+#line 1842 "configure"
 #include "confdefs.h"
 #include <pthread.h>
 int main() {
 pthread_equal(NULL,NULL);
 ; return 0; }
 EOF
-if { (eval echo configure:1754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   use_pthread=yes
      	    cat >> confdefs.h <<\EOF
@@ -1771,18 +1866,18 @@
   *)
 	# other with libpthread
 	echo $ac_n "checking for POSIX thread library in -lpthread""... $ac_c" 1>&6
-echo "configure:1775: checking for POSIX thread library in -lpthread" >&5
+echo "configure:1870: checking for POSIX thread library in -lpthread" >&5
 	ac_save_LIBS_p="$LIBS"
 	LIBS="$LIBS -lpthread"
 	cat > conftest.$ac_ext <<EOF
-#line 1779 "configure"
+#line 1874 "configure"
 #include "confdefs.h"
 #include <pthread.h>
 int main() {
 pthread_equal(NULL,NULL);
 ; return 0; }
 EOF
-if { (eval echo configure:1786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   use_pthread=yes
 	    cat >> confdefs.h <<\EOF
Index: julius4/libjulius/configure.in
diff -u julius4/libjulius/configure.in:1.6 julius4/libjulius/configure.in:1.7
--- julius4/libjulius/configure.in:1.6	Fri Oct  3 00:01:59 2008
+++ julius4/libjulius/configure.in	Tue Oct  7 03:10:04 2008
@@ -4,7 +4,7 @@
 dnl Copyright (c) 2005-2007 Julius project team, Nagoya Institute of Technology
 dnl All rights reserved
 dnl
-dnl $Id: configure.in,v 1.6 2008/10/02 15:01:59 sumomo Exp $
+dnl $Id: configure.in,v 1.7 2008/10/06 18:10:04 sumomo Exp $
 dnl
 
 AC_INIT(src/search_bestfirst_main.c)
@@ -341,6 +341,7 @@
 dnl AC_CHECK_FUNCS(strdup strstr)
 dnl AC_CHECK_FUNC(gethostbyname,,AC_CHECK_LIB(nsl,gethostbyname))
 dnl AC_CHECK_FUNC(connect,,AC_CHECK_LIB(socket, connect))
+AC_CHECK_FUNC(dlopen,,AC_CHECK_LIB(dl, dlopen))
 
 dnl check for POSIX thread support
 if test "$want_pthread" = yes; then


Julius-cvs メーリングリストの案内
アーカイブの一覧に戻る