1 From 0f5e1658c05746b17f05a1bade263cad19b37e79 Mon Sep 17 00:00:00 2001
2 From: Romain Naour <romain.naour@openwide.fr>
3 Date: Thu, 22 Jan 2015 15:20:25 +0100
4 Subject: [PATCH 1/6] configure: Remove "Check C compiler type (optimization
7 This test force optimization to -O3
8 while it is already set in CFLAGS
10 Signed-off-by: Romain Naour <romain.naour@openwide.fr>
12 unix/configure | 98 ----------------------------------------------------------
13 1 file changed, 98 deletions(-)
15 diff --git a/unix/configure b/unix/configure
16 index 73ba803..4185fee 100644
19 @@ -22,108 +22,10 @@ LFLAGS1=''
30 -echo 'Check C compiler type (optimization options)'
32 -cat > conftest.c << _EOF_
41 -$CC $CFLAGS -c conftest.c > /dev/null 2>/dev/null
42 -if test $? -eq 0; then
44 - echo " Sun C ($CFLAGS_OPT)"
46 - # Tru64 DEC/Compaq/HP C?
47 - cat > conftest.c << _EOF_
56 - $CC $CFLAGS -c conftest.c > /dev/null 2>/dev/null
57 - if test $? -eq 0; then
59 - echo " DEC C ($CFLAGS_OPT)"
62 - cat > conftest.c << _EOF_
74 - $CC $CFLAGS -c conftest.c > /dev/null 2>/dev/null
75 - if test $? -eq 0; then
76 - # HP-UX, not GCC. Lame bundled or real ANSI compiler?
77 - CFLAGS_OPT_TRY="+O3 +Onolimit"
78 - $CC $CFLAGS $CFLAGS_OPT_TRY -c conftest.c 2>&1 | \
79 - grep '(Bundled)' > /dev/null
80 - if test $? -ne 0; then
81 - CFLAGS_OPT="$CFLAGS_OPT_TRY"
82 - echo " HP-UX ANSI C ($CFLAGS_OPT)"
84 - echo ' HP-UX Bundled C (no opt)'
88 - cat > conftest.c << _EOF_
97 - $CC $CFLAGS -c conftest.c > /dev/null 2>/dev/null
98 - if test $? -eq 0; then
100 - echo " GNU C ($CFLAGS_OPT)"
101 - # Special Mac OS X shared library "ld" option?
102 - if test ` uname -s 2> /dev/null ` = 'Darwin'; then
103 - lf='-Wl,-search_paths_first'
104 - $CC $CFLAGS $lf conftest.c > /dev/null 2>/dev/null
105 - if test $? -eq 0; then
106 - LFLAGS2="${LFLAGS2} ${lf}"
112 - echo " Other-unknown C ($CFLAGS_OPT)"
118 -# optimization flags
119 -if test -n "${CFLAGS_OPT}"; then
120 - CFLAGS="${CFLAGS} ${CFLAGS_OPT}"
121 - CFLAGS_BZ="${CFLAGS_BZ} ${CFLAGS_OPT}"
127 echo "Check bzip2 support"