Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 6ff52d3

Browse files
committed
Remove unreliable test for how to do cpp from stdin.
1 parent a787b88 commit 6ff52d3

File tree

1 file changed

+0
-42
lines changed

1 file changed

+0
-42
lines changed

src/configure.in

-42
Original file line numberDiff line numberDiff line change
@@ -356,48 +356,6 @@ echo "- setting LDFLAGS=$LDFLAGS"
356356
dnl Checks for programs.
357357
AC_PROG_CPP
358358

359-
dnl Check to see what flags are required to get stdin into cpp.
360-
dnl Note that we need to look at the output, since the C compiler might
361-
dnl not raise an error when no input files are named on the cmd line.
362-
dnl (This is a somewhat modified version of AC_EGREP_CPP)
363-
dnl AC_TRY_CPPSTDIN(PATTERN, PROGRAM, [ACTION-IF-FOUND [,
364-
dnl ACTION-IF-NOT-FOUND]])
365-
AC_DEFUN(AC_TRY_CPPSTDIN,
366-
[AC_REQUIRE_CPP()dnl
367-
cat > conftest.$ac_ext <<EOF
368-
[#]line __oline__ "configure"
369-
#include "confdefs.h"
370-
[$2]
371-
EOF
372-
dnl eval is necessary to expand ac_cpp.
373-
dnl Ultrix and Pyramid sh refuse to redirect output of eval, so use subshell.
374-
if (eval "$ac_cpp $CPPSTDIN <conftest.$ac_ext") 2>&AC_FD_CC |
375-
grep "$1" >/dev/null 2>&1; then
376-
ifelse([$3], , :, [rm -rf conftest*
377-
$3])
378-
ifelse([$4], , , [else
379-
rm -rf conftest*
380-
$4
381-
])dnl
382-
fi
383-
rm -f conftest*
384-
])
385-
386-
AC_MSG_CHECKING(how to use cpp with stdin)
387-
if test -z "$CPPSTDIN"; then
388-
AC_CACHE_VAL(ac_cv_cpp_stdin,
389-
[ CPPSTDIN="-"
390-
AC_TRY_CPPSTDIN([^Find Me Or Else],
391-
[#include <assert.h>
392-
Find Me Or Else], , CPPSTDIN="")
393-
ac_cv_cpp_stdin="$CPPSTDIN"])
394-
CPPSTDIN="$ac_cv_cpp_stdin"
395-
else
396-
ac_cv_cpp_stdin="$CPPSTDIN"
397-
fi
398-
AC_MSG_RESULT($CPP $CPPSTDIN)
399-
AC_SUBST(CPPSTDIN)
400-
401359
AC_SUBST(PORTNAME)
402360
AC_SUBST(SRCDIR)
403361
AC_SUBST(LDFLAGS)

0 commit comments

Comments
 (0)