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

Diff of /trunk/configure.ac

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

Revision 212 Revision 215
80echo "int main(void) { return 0; }" > libctest.c 80echo "int main(void) { return 0; }" > libctest.c
81$CC -Wall -o libctest libctest.c 81$CC -Wall -o libctest libctest.c
82LIBC_PATH=`$CC $CFLAGS -Wl,-verbose -o libctest libctest.c 2>&1 | \ 82LIBC_PATH=`$CC $CFLAGS -Wl,-verbose -o libctest libctest.c 2>&1 | \
83 $AWK '/attempt to open/ { if (($4 ~ /libc\.so/) && ($5 == "succeeded")) LIBC = $4; }; END {print LIBC}'` 83 $AWK '/attempt to open/ { if (($4 ~ /libc\.so/) && ($5 == "succeeded")) LIBC = $4; }; END {print LIBC}'`
84rm -f libctest.c 84rm -f libctest.c
85if test "$LIBC_PATH"x = x ; then 85if test "$LIBC_PATH"x = x || ! test -r "$LIBC_PATH"; then
86 AC_MSG_ERROR([Unable to determine LIBC PATH]) 86 AC_MSG_ERROR([Unable to determine LIBC PATH])
87fi 87fi
88AC_MSG_RESULT([$LIBC_PATH]) 88AC_MSG_RESULT([$LIBC_PATH])
89AC_SUBST([LIBC_PATH]) 89AC_SUBST([LIBC_PATH])
90 90

Legend:
Removed from v.212  
changed lines
  Added in v.215

  ViewVC Help
Powered by ViewVC 1.1.20