[BACK]Return to configure CVS log [TXT][DIR] Up to [local] / OpenXM / src / oxc

Diff for /OpenXM/src/oxc/configure between version 1.1 and 1.2

version 1.1, 2003/09/03 07:11:20 version 1.2, 2003/11/11 04:30:02
Line 3544  _ACEOF
Line 3544  _ACEOF
 fi  fi
   
 fi  fi
   echo "$as_me:$LINENO: checking for dlopen" >&5
   echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
   if test "${ac_cv_func_dlopen+set}" = set; then
     echo $ECHO_N "(cached) $ECHO_C" >&6
   else
     cat >conftest.$ac_ext <<_ACEOF
   #line $LINENO "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.  */
   #ifdef __cplusplus
   extern "C"
   #endif
   /* We use char because int might match the return type of a gcc2
      builtin and then its argument prototype would still apply.  */
   char dlopen ();
   char (*f) ();
   
   #ifdef F77_DUMMY_MAIN
   #  ifdef __cplusplus
        extern "C"
   #  endif
      int F77_DUMMY_MAIN() { return 1; }
   #endif
   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
   f = dlopen;
   #endif
   
     ;
     return 0;
   }
   _ACEOF
   rm -f conftest.$ac_objext conftest$ac_exeext
   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     (eval $ac_link) 2>&5
     ac_status=$?
     echo "$as_me:$LINENO: \$? = $ac_status" >&5
     (exit $ac_status); } &&
            { ac_try='test -s conftest$ac_exeext'
     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     (eval $ac_try) 2>&5
     ac_status=$?
     echo "$as_me:$LINENO: \$? = $ac_status" >&5
     (exit $ac_status); }; }; then
     ac_cv_func_dlopen=yes
   else
     echo "$as_me: failed program was:" >&5
   cat conftest.$ac_ext >&5
   ac_cv_func_dlopen=no
   fi
   rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   fi
   echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
   echo "${ECHO_T}$ac_cv_func_dlopen" >&6
   
   if test "$ac_cv_func_dlopen" = no ; then
   
   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
   echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
   if test "${ac_cv_lib_dl_dlopen+set}" = set; then
     echo $ECHO_N "(cached) $ECHO_C" >&6
   else
     ac_check_lib_save_LIBS=$LIBS
   LIBS="-ldl  $LIBS"
   cat >conftest.$ac_ext <<_ACEOF
   #line $LINENO "configure"
   #include "confdefs.h"
   
   /* Override any gcc2 internal prototype to avoid an error.  */
   #ifdef __cplusplus
   extern "C"
   #endif
   /* We use char because int might match the return type of a gcc2
      builtin and then its argument prototype would still apply.  */
   char dlopen ();
   #ifdef F77_DUMMY_MAIN
   #  ifdef __cplusplus
        extern "C"
   #  endif
      int F77_DUMMY_MAIN() { return 1; }
   #endif
   int
   main ()
   {
   dlopen ();
     ;
     return 0;
   }
   _ACEOF
   rm -f conftest.$ac_objext conftest$ac_exeext
   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     (eval $ac_link) 2>&5
     ac_status=$?
     echo "$as_me:$LINENO: \$? = $ac_status" >&5
     (exit $ac_status); } &&
            { ac_try='test -s conftest$ac_exeext'
     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     (eval $ac_try) 2>&5
     ac_status=$?
     echo "$as_me:$LINENO: \$? = $ac_status" >&5
     (exit $ac_status); }; }; then
     ac_cv_lib_dl_dlopen=yes
   else
     echo "$as_me: failed program was:" >&5
   cat conftest.$ac_ext >&5
   ac_cv_lib_dl_dlopen=no
   fi
   rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   LIBS=$ac_check_lib_save_LIBS
   fi
   echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
   echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
   if test $ac_cv_lib_dl_dlopen = yes; then
     cat >>confdefs.h <<_ACEOF
   #define HAVE_LIBDL 1
   _ACEOF
   
     LIBS="-ldl $LIBS"
   
   fi
   
   fi
   
 ac_config_files="$ac_config_files Makefile"  ac_config_files="$ac_config_files Makefile"
 cat >confcache <<\_ACEOF  cat >confcache <<\_ACEOF

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>