Skip to content
Snippets Groups Projects
Commit 48ae53ad authored by Fredrik Hübinette (Hubbe)'s avatar Fredrik Hübinette (Hubbe)
Browse files

entries added

Rev: src/configure.in:1.9
parent 3491579c
No related branches found
No related tags found
No related merge requests found
AC_INIT(interpret.c)
if test x${CLAGS-} != x ; then
cflags_is_set=yes
else
if test "x${CFLAGS-}" = x ; then
cflags_is_set=no
else
cflags_is_set=yes
fi
AC_PROG_CC
......@@ -41,7 +41,10 @@ AC_MSG_RESULT($pike_cv_sys_os)
#############################################################################
WARN=""
if test x${GCC-} != xyes -a $cflags_is_set = no; then
WARN="-g -W -Wformat"
OLD_CFLAGS="$CFLAGS"
OPTIMIZE="";
......@@ -87,27 +90,24 @@ fi
if test "$GCC" = "yes"; then
WARN="-g -W -Wformat"
AC_MSG_CHECKING(-pipe)
AC_CACHE_VAL(pike_cv_option_pipe,
[
CFLAGS="$OLD_CFLAGS -pipe"
AC_TRY_LINK([],[ exit(0); ],pike_cv_option_pipe=yes,pike_cv_option_pipe=no)
])
if test $cflags_is_set = no; then
AC_MSG_CHECKING(-pipe)
AC_CACHE_VAL(pike_cv_option_pipe,
[
CFLAGS="$OLD_CFLAGS -pipe"
AC_TRY_LINK([],[ exit(0); ],pike_cv_option_pipe=yes,pike_cv_option_pipe=no)
])
if test "$pike_cv_option_pipe" = "yes" ; then
CFLAGS="$OLD_CFLAGS -pipe"
OPTIMIZE="$OPTIMIZE -pipe"
AC_MSG_RESULT(-pipe found)
else
AC_MSG_RESULT(-pipe not found)
CFLAGS="$OLD_CFLAGS"
if test "$pike_cv_option_pipe" = "yes" ; then
CFLAGS="$OLD_CFLAGS -pipe"
OPTIMIZE="$OPTIMIZE -pipe"
AC_MSG_RESULT(-pipe found)
else
AC_MSG_RESULT(-pipe not found)
CFLAGS="$OLD_CFLAGS"
fi
fi
else
WARN=""
#
# Special hack for HP-UX stupid cc
#
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment