From 54584d1cb94b5cc50a7441b0390d9a4c594fb820 Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 15 Sep 2003 15:58:27 -0400 Subject: BUG: Need to check for -Ae flag on HP-UX cc compiler. Needed for ANSI C compilation. --- bootstrap | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/bootstrap b/bootstrap index 94f7aa3..254bb3f 100755 --- a/bootstrap +++ b/bootstrap @@ -515,6 +515,31 @@ EOF fi cmake_test_flags= +# If we are on HP-UX, check for -Ae for the C compiler. +cmake_test_flags="-Ae" +if [ "x${cmake_system}" = "xHP-UX" ]; then + TMPFILE=`cmake_tmp_file` + cat > ${TMPFILE}.c <> cmake_bootstrap.log 2>&1; then + : + else + if cmake_try_run "${cmake_c_compiler}" "${cmake_c_flags} ${cmake_test_flags}" "${TMPFILE}.c" >> cmake_bootstrap.log 2>&1; then + cmake_need_Ae=1 + fi + fi + if [ "x${cmake_need_Ae}" = "x1" ]; then + cmake_c_flags="${cmake_c_flags} ${cmake_test_flags}" + echo "${cmake_c_compiler} needs ${cmake_test_flags}" + else + echo "${cmake_c_compiler} does not need ${cmake_test_flags}" + fi + rm -f "${TMPFILE}.c" +fi +cmake_test_flags= + # Just to be safe, let us store compiler and flags to the header file cmake_report cmConfigure.h.tmp "/*" -- cgit v0.12