/[path-sandbox]/trunk/configure.ac
Gentoo

Diff of /trunk/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 236 Revision 238
112 112
113dnl we need to handle symbols differently based upon their version, 113dnl we need to handle symbols differently based upon their version,
114dnl but we have to know which symbols the libc supports first 114dnl but we have to know which symbols the libc supports first
115AC_MSG_CHECKING([libc path]) 115AC_MSG_CHECKING([libc path])
116echo "int main(void) { return 0; }" > libctest.c 116echo "int main(void) { return 0; }" > libctest.c
117LIBC_PATH=`$CC $CFLAGS -Wl,-verbose -o libctest libctest.c 2>&1 | \ 117$CC $CFLAGS -Wl,-verbose -o libctest libctest.c &> libctest.log
118cat libctest.log 1>&AS_MESSAGE_LOG_FD
118 $AWK '/attempt to open/ { if (($4 ~ /\/libc\.so/) && ($5 == "succeeded")) LIBC = $4; }; END {print LIBC}'` 119LIBC_PATH=`$AWK '/attempt to open/ { if (($4 ~ /\/libc\.so/) && ($5 == "succeeded")) LIBC = $4; }; END {print LIBC}' libctest.log`
119rm -f libctest* 120rm -f libctest*
120if test "$LIBC_PATH"x = x || ! test -r "$LIBC_PATH"; then 121if test "$LIBC_PATH"x = x || ! test -r "$LIBC_PATH"; then
121 AC_MSG_ERROR([Unable to determine LIBC PATH]) 122 AC_MSG_ERROR([Unable to determine LIBC PATH ($LIBC_PATH)])
122fi 123fi
123AC_MSG_RESULT([$LIBC_PATH]) 124AC_MSG_RESULT([$LIBC_PATH])
124AC_SUBST([LIBC_PATH]) 125AC_SUBST([LIBC_PATH])
125 126
126dnl when intercepting libc calls, we have to know the name of the 127dnl when intercepting libc calls, we have to know the name of the

Legend:
Removed from v.236  
changed lines
  Added in v.238

  ViewVC Help
Powered by ViewVC 1.1.20