Hi,

Im Anhang zwei patches, die den check für gcc auf den autoconf-eigenen Macro 
AC_PROG_CC umstellen. Damit funktioniert das dann zuverlässig (ich hatte vor 
einiger Zeit schonmal einen Patch hierfür geschickt, der hat aber nicht 
wirklcih was verbessert).

Bitte applyen, sowohl für gwenhywfar und aqbanking. Ich vermute in anderen 
Apps ebenfalls, aber da hab ich nicht geschaut

-- 
Hanno Böck              Blog:           http://www.hboeck.de/
GPG: 3DBD3B20           Jabber/Mail:    ha...@hboeck.de

http://schokokeks.org - professional webhosting
--- aqbanking-4.1.7/configure.ac	2009-09-23 11:04:38.000000000 +0200
+++ aqbanking-4.1.7-1/configure.ac	2009-10-07 18:01:14.000000000 +0200
@@ -1007,34 +1007,32 @@
 #
 # GCC version (check for usability)
 #
+AC_PROG_CC
 AC_MSG_CHECKING(if symbol visibility is supported)
 visibility_cflags=""
-case `basename $CC` in 
-  gcc*)
-     dnl Determine version number (watch out: the outside square
-     dnl parenteses are vitally important here!)
-     gccversion=["` ${CC} --version | head -1 | ${SED} 's/.*\([0-9]\.[0-9]\.[0-9]*\).*/\1/' `"]
-     case $gccversion in
-       4.*)
-	 # Activate -fvisibility=hidden only for explicit 4.x gcc
-	 # versions. We never now what future gcc's might do with
-	 # that argument, and we also can't be sure that other
-	 # gcc's happen to show very weird version
-	 # numbers. Therefore leave the default at non-activated.
-         visibility_supported="yes, gcc-${gccversion}"
-         AC_DEFINE(GCC_WITH_VISIBILITY_ATTRIBUTE, 1, [visibility])
-         visibility_cflags="-fvisibility=hidden"
-         ;;
-       *)
-	 # Default: -fvisibility=hidden not activated.
-         visibility_supported="no (needs gcc >=4.0, you have gcc-${gccversion})"
-         ;;
-      esac
+if test "$GCC" = "yes"; then
+  dnl Determine version number (watch out: the outside square
+  dnl parenteses are vitally important here!)
+  gccversion=["` ${CC} -dumpversion `"]
+  case $gccversion in
+    4.*)
+      # Activate -fvisibility=hidden only for explicit 4.x gcc
+      # versions. We never now what future gcc's might do with
+      # that argument, and we also can't be sure that other
+      # gcc's happen to show very weird version
+      # numbers. Therefore leave the default at non-activated.
+      visibility_supported="yes, gcc-${gccversion}"
+      AC_DEFINE(GCC_WITH_VISIBILITY_ATTRIBUTE, 1, [visibility])
+      visibility_cflags="-fvisibility=hidden"
       ;;
-  *)
-    visibility_supported="no (needs gcc >=4.0, you use $CC)"
-    ;;
-esac
+    *)
+      # Default: -fvisibility=hidden not activated.
+      visibility_supported="no (needs gcc >=4.0, you have gcc-${gccversion})"
+      ;;
+  esac
+else
+  visibility_supported="no (needs gcc >=4.0, you use $CC)"
+fi
 
 # -fvisibility is at least not available on MinGW/gcc-3.4.4 (will
 # give an "unrecognized cmdline option"). Also, unfortunately I
--- gwenhywfar-3.11.1-orig/configure.ac	2009-09-23 11:16:32.000000000 +0200
+++ gwenhywfar-3.11.1/configure.ac	2009-10-07 17:53:59.000000000 +0200
@@ -792,6 +792,7 @@
 #
 # GCC version (check for usability)
 #
+AC_PROG_CC
 AC_MSG_CHECKING(if symbol visibility is supported)
 AC_ARG_ENABLE(visibility,
   [  --enable-visibility             enable visibility (default=no)],
@@ -802,32 +803,29 @@
 if test "$enable_visibility" = "yes"; then
   AC_MSG_CHECKING(if symbol visibility is supported)
   visibility_cflags=""
-  case `$CC --version|head -n1|cut -f1 -d " "` in 
-    gcc*)
-       dnl Determine version number (watch out: the outside square
-       dnl parenteses are vitally important here!)
-       gccversion=["` ${CC} -dumpversion `"]
-       case $gccversion in
-         4.*)
-           # Activate -fvisibility=hidden only for explicit 4.x gcc
-           # versions. We never now what future gcc's might do with
-           # that argument, and we also can't be sure that other
-           # gcc's happen to show very weird version
-           # numbers. Therefore leave the default at non-activated.
-           visibility_supported="yes, gcc-${gccversion}"
-           AC_DEFINE(GCC_WITH_VISIBILITY_ATTRIBUTE, 1, [visibility])
-           visibility_cflags="-fvisibility=hidden"
-           ;;
-         *)
-           # Default: -fvisibility=hidden not activated.
-           visibility_supported="no (needs gcc >=4.0, you have gcc-${gccversion})"
-           ;;
-        esac
+  if test "$GCC" = "yes"; then
+    dnl Determine version number (watch out: the outside square
+    dnl parenteses are vitally important here!)
+    gccversion=["` ${CC} -dumpversion `"]
+    case $gccversion in
+      4.*)
+        # Activate -fvisibility=hidden only for explicit 4.x gcc
+        # versions. We never now what future gcc's might do with
+        # that argument, and we also can't be sure that other
+        # gcc's happen to show very weird version
+        # numbers. Therefore leave the default at non-activated.
+        visibility_supported="yes, gcc-${gccversion}"
+        AC_DEFINE(GCC_WITH_VISIBILITY_ATTRIBUTE, 1, [visibility])
+        visibility_cflags="-fvisibility=hidden"
         ;;
-    *)
-      visibility_supported="no (needs gcc >=4.0, you use $CC)"
-      ;;
-  esac
+      *)
+        # Default: -fvisibility=hidden not activated.
+        visibility_supported="no (needs gcc >=4.0, you have gcc-${gccversion})"
+        ;;
+    esac
+  else
+    visibility_supported="no (needs gcc >=4.0, you use $CC)"
+  fi
   
   # -fvisibility is at least not available on MinGW/gcc-3.4.4 (will
   # give an "unrecognized cmdline option"). Also, unfortunately I

Attachment: signature.asc
Description: This is a digitally signed message part.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Aqbanking-devel mailing list
Aqbanking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/aqbanking-devel

Reply via email to