Commit 13ecd694 authored by serg@serg.mylan's avatar serg@serg.mylan

avoid functions in configure

parent b9512a55
...@@ -936,17 +936,15 @@ esac ...@@ -936,17 +936,15 @@ esac
MAX_C_OPTIMIZE="-O3" MAX_C_OPTIMIZE="-O3"
MAX_CXX_OPTIMIZE="-O3" MAX_CXX_OPTIMIZE="-O3"
fix_for_forte_x86 () # workaround for Sun Forte/x86 see BUG#4681
{ case $SYSTEM_TYPE-$MACHINE_TYPE-$ac_cv_prog_gcc in
case $MACHINE_TYPE-$ac_cv_prog_gcc in *solaris*-i?86-no)
i?86-no) CFLAGS="$CFLAGS -DBIG_FILES"
# workaround for Sun Forte/x86 see BUG#4681 CXXFLAGS="$CXXFLAGS -DBIG_FILES"
CFLAGS="$CFLAGS -DBIG_FILES" ;;
CXXFLAGS="$CXXFLAGS -DBIG_FILES" *) ;;
;; esac
*) ;;
esac
}
case $SYSTEM_TYPE in case $SYSTEM_TYPE in
*solaris2.7*) *solaris2.7*)
...@@ -962,7 +960,6 @@ case $SYSTEM_TYPE in ...@@ -962,7 +960,6 @@ case $SYSTEM_TYPE in
sed -e "s|^#if[ ]*!defined(lint) && !defined(__lint)|#if !defined\(lint\) \&\& !defined\(__lint\) \&\& !defined\(getwc\)|" < /usr/include/widec.h > include/widec.h sed -e "s|^#if[ ]*!defined(lint) && !defined(__lint)|#if !defined\(lint\) \&\& !defined\(__lint\) \&\& !defined\(getwc\)|" < /usr/include/widec.h > include/widec.h
CFLAGS="$CFLAGS -DHAVE_CURSES_H -I$builddir/include -DHAVE_RWLOCK_T" CFLAGS="$CFLAGS -DHAVE_CURSES_H -I$builddir/include -DHAVE_RWLOCK_T"
CXXFLAGS="$CXXFLAGS -DHAVE_CURSES_H -I$builddir/include -DHAVE_RWLOCK_T" CXXFLAGS="$CXXFLAGS -DHAVE_CURSES_H -I$builddir/include -DHAVE_RWLOCK_T"
fix_for_forte_x86
;; ;;
*solaris2.8*) *solaris2.8*)
# Solaris 2.8 has a broken /usr/include/widec.h # Solaris 2.8 has a broken /usr/include/widec.h
...@@ -977,23 +974,19 @@ case $SYSTEM_TYPE in ...@@ -977,23 +974,19 @@ case $SYSTEM_TYPE in
sed -e "s|^#if[ ]*!defined(__lint)|#if !defined\(__lint\) \&\& !defined\(getwc\)|" < /usr/include/widec.h > include/widec.h sed -e "s|^#if[ ]*!defined(__lint)|#if !defined\(__lint\) \&\& !defined\(getwc\)|" < /usr/include/widec.h > include/widec.h
CFLAGS="$CFLAGS -DHAVE_CURSES_H -I$builddir/include -DHAVE_RWLOCK_T" CFLAGS="$CFLAGS -DHAVE_CURSES_H -I$builddir/include -DHAVE_RWLOCK_T"
CXXFLAGS="$CXXFLAGS -DHAVE_CURSES_H -I$builddir/include -DHAVE_RWLOCK_T" CXXFLAGS="$CXXFLAGS -DHAVE_CURSES_H -I$builddir/include -DHAVE_RWLOCK_T"
fix_for_forte_x86
;; ;;
*solaris2.5.1*) *solaris2.5.1*)
echo "Enabling getpass() workaround for Solaris 2.5.1" echo "Enabling getpass() workaround for Solaris 2.5.1"
CFLAGS="$CFLAGS -DHAVE_BROKEN_GETPASS -DSOLARIS -DHAVE_RWLOCK_T"; CFLAGS="$CFLAGS -DHAVE_BROKEN_GETPASS -DSOLARIS -DHAVE_RWLOCK_T";
CXXFLAGS="$CXXFLAGS -DHAVE_RWLOCK_T -DSOLARIS" CXXFLAGS="$CXXFLAGS -DHAVE_RWLOCK_T -DSOLARIS"
fix_for_forte_x86
;; ;;
*solaris*) *solaris*)
CFLAGS="$CFLAGS -DHAVE_RWLOCK_T" CFLAGS="$CFLAGS -DHAVE_RWLOCK_T"
CXXFLAGS="$CXXFLAGS -DHAVE_RWLOCK_T" CXXFLAGS="$CXXFLAGS -DHAVE_RWLOCK_T"
fix_for_forte_x86
;; ;;
*SunOS*) *SunOS*)
echo "Enabling getpass() workaround for SunOS" echo "Enabling getpass() workaround for SunOS"
CFLAGS="$CFLAGS -DHAVE_BROKEN_GETPASS -DSOLARIS"; CFLAGS="$CFLAGS -DHAVE_BROKEN_GETPASS -DSOLARIS";
fix_for_forte_x86
;; ;;
*hpux10.20*) *hpux10.20*)
echo "Enabling workarounds for hpux 10.20" echo "Enabling workarounds for hpux 10.20"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment