Last change
on this file since 34034 was 6076, checked in by vboxsync, 17 years ago |
Merged dmik/s2 branch (r25959:26751) to the trunk.
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Date Revision Author Id
|
File size:
776 bytes
|
Line | |
---|
1 | dnl Like AC_TRY_EVAL but also errors out if the compiler generates
|
---|
2 | dnl _any_ output. Some compilers might issue warnings which we want
|
---|
3 | dnl to catch.
|
---|
4 | AC_DEFUN([AC_TRY_EVAL2],
|
---|
5 | [{ (eval echo configure:__oline__: \"[$]$1\") 1>&AC_FD_CC; dnl
|
---|
6 | (eval [$]$1) 2>&AC_FD_CC; _out=`eval [$]$1 2>&1` && test "x$_out" = x; }])
|
---|
7 |
|
---|
8 | dnl Like AC_TRY_COMPILE but calls AC_TRY_EVAL2 instead of AC_TRY_EVAL
|
---|
9 | AC_DEFUN([AC_TRY_COMPILE2],
|
---|
10 | [cat > conftest.$ac_ext <<EOF
|
---|
11 | [#]line __oline__ "configure"
|
---|
12 | #include "confdefs.h"
|
---|
13 | [$1]
|
---|
14 | int main(void) {
|
---|
15 | [$2]
|
---|
16 | ; return 0; }
|
---|
17 | EOF
|
---|
18 | if AC_TRY_EVAL2(ac_compile); then
|
---|
19 | ifelse([$3], , :, [rm -rf conftest*
|
---|
20 | $3])
|
---|
21 | else
|
---|
22 | echo "configure: failed program was:" >&AC_FD_CC
|
---|
23 | cat conftest.$ac_ext >&AC_FD_CC
|
---|
24 | ifelse([$4], , , [ rm -rf conftest*
|
---|
25 | $4
|
---|
26 | ])dnl
|
---|
27 | fi
|
---|
28 | rm -f conftest*])
|
---|
Note:
See
TracBrowser
for help on using the repository browser.