changeset 9980:7bd7a1aa605f

darwin ldd support patch by Steven M. Schultz <sms@2BSD.COM>
author alex
date Thu, 24 Apr 2003 18:55:43 +0000
parents a4ea0311ade2
children 99b58133c376
files configure
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Thu Apr 24 18:52:16 2003 +0000
+++ b/configure	Thu Apr 24 18:55:43 2003 +0000
@@ -35,7 +35,7 @@
   TMP="$?"
   echo >> "$TMPLOG"
   echo "ldd $TMPO" >> "$TMPLOG"
-  ( ldd "$TMPO" ) >> "$TMPLOG" 2>&1
+  ( $_ldd "$TMPO" ) >> "$TMPLOG" 2>&1
   echo >> "$TMPLOG"
   return "$TMP"
 }
@@ -458,6 +458,10 @@
   _inc_extra="$_inc_extra -I/usr/local/include"
 fi
 
+_ldd=ldd
+if darwin; then
+  _ldd="otool -L"
+fi
 
 # Checking CC version...
 if test "$_skip_cc_check" != yes ; then