summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure16
1 files changed, 14 insertions, 2 deletions
diff --git a/configure b/configure
index 52a50fb..eb103c8 100755
--- a/configure
+++ b/configure
@@ -136,6 +136,18 @@ else
136 } 136 }
137fi 137fi
138 138
139tryboth()
140{
141 show $*
142 got=`( $* ) 2>&1`
143 ret=$?
144 printf %s "$got" >> configure.log
145 if test $ret -ne 0; then
146 return $ret
147 fi
148 test "$got" = ""
149}
150
139echo >> configure.log 151echo >> configure.log
140 152
141cat > $test.c <<EOF 153cat > $test.c <<EOF
@@ -626,7 +638,7 @@ fi
626if test "$gcc" -eq 1; then 638if test "$gcc" -eq 1; then
627 echo >> configure.log 639 echo >> configure.log
628 cat > $test.c <<EOF 640 cat > $test.c <<EOF
629#if ((__GNUC__-0) * 10 + __GNUC_MINOR__-0 >= 33) 641#if ((__GNUC__-0) * 100 + __GNUC_MINOR__-0 >= 303)
630# define ZLIB_INTERNAL __attribute__((visibility ("hidden"))) 642# define ZLIB_INTERNAL __attribute__((visibility ("hidden")))
631#else 643#else
632# define ZLIB_INTERNAL 644# define ZLIB_INTERNAL
@@ -637,7 +649,7 @@ int main()
637 return 0; 649 return 0;
638} 650}
639EOF 651EOF
640 if try $CC -c $CFLAGS $test.c; then 652 if tryboth $CC -c $CFLAGS $test.c; then
641 echo "Checking for attribute(visibility) support... Yes." | tee -a configure.log 653 echo "Checking for attribute(visibility) support... Yes." | tee -a configure.log
642 else 654 else
643 CFLAGS="$CFLAGS -DNO_VIZ" 655 CFLAGS="$CFLAGS -DNO_VIZ"