From: Stu Grossman Date: Wed, 22 Jan 1997 02:33:50 +0000 (+0000) Subject: * configure.in configure: Check if host has libdl if doing X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=95b475477e334703b3d4b5c2864e3e0525a27270;p=binutils-gdb.git * configure.in configure: Check if host has libdl if doing Solaris threads. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 44be4186388..53a95083eee 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +Tue Jan 21 18:32:23 1997 Stu Grossman (grossman@lisa.cygnus.com) + + * configure.in configure: Check if host has libdl if doing + Solaris threads. + Tue Jan 21 17:03:26 1997 Geoffrey Noer * mn10300-tdep.c: wrote/fixed implementations of diff --git a/gdb/configure b/gdb/configure index 3d97f2db844..3ce4625952b 100755 --- a/gdb/configure +++ b/gdb/configure @@ -2099,6 +2099,50 @@ EOF EOF CONFIG_OBS="${CONFIG_OBS} sol-thread.o" + echo $ac_n "checking for -ldl""... $ac_c" 1>&6 +ac_lib_var=`echo dl'_'dlopen | tr './+\055' '__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 <&5; (eval $ac_link) 2>&5; }; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + 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 | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi + if test "$GCC" = "yes" ; then CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Xlinker -export-dynamic" fi @@ -2482,12 +2526,12 @@ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2491: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2535: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then rm -rf conftest* @@ -2614,12 +2658,12 @@ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then rm -rf conftest* diff --git a/gdb/configure.in b/gdb/configure.in index 3610389cfd8..5c4f497d5aa 100644 --- a/gdb/configure.in +++ b/gdb/configure.in @@ -178,6 +178,7 @@ if test ${build} = ${host} -a ${host} = ${target} ; then AC_MSG_RESULT(yes) AC_DEFINE(HAVE_THREAD_DB_LIB) CONFIG_OBS="${CONFIG_OBS} sol-thread.o" + AC_CHECK_LIB(dl, dlopen) if test "$GCC" = "yes" ; then CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Xlinker -export-dynamic" fi