Files
PolyORB/support/cxxcpp.m4
Thomas Quinot 5fd5ed6717 Portability: for correct operation of IDLAC under Windows,
determine whether it is necessary to use a trailing '.' in the
argument to the -o option of the C++ preprocessor to disable
the generation of a default extension.

[Imported from Perforce change 8686 at 2006-12-01 20:37:16]

Subversion-branch: /trunk/polyorb
Subversion-revision: 36257
2004-10-18 15:55:17 +00:00

21 lines
620 B
Plaintext

dnl Ada compiler handling
dnl $Id$
dnl Usage: AM_CXXCPP_NEEDS_DOT
dnl Check whether it is necessary to add a trailing dot for the
dnl C++ preprocessor to create an output file without extension.
AC_DEFUN([AM_CXXCPP_NEEDS_DOT],
[AC_REQUIRE([AC_PROG_CXXCPP])
AC_MSG_CHECKING([if the C++ preprocessor -o option requires a dot])
mkdir conftest
touch conftest/input
ac_try="cd conftest && $CXXCPP $CXXCPPFLAGS -o output input && cat output > /dev/null"
if AC_TRY_EVAL(ac_try); then
AC_MSG_RESULT(no)
AC_SUBST(CXXCPP_OUTPUT_SUFFIX, "")
else
AC_MSG_RESULT(yes)
AC_SUBST(CXXCPP_OUTPUT_SUFFIX, ".")
fi
rm -fr conftest])