On 10/26/2012 03:35 PM, Alexey A. Illarionov wrote:
=== modified file 'configure.ac'
--- configure.ac        2011-09-22 16:13:22 +0000
+++ configure.ac        2012-10-26 05:31:05 +0000
@@ -85,9 +85,17 @@
  dnl Check for which system.
  AC_CANONICAL_HOST

+
  dnl Checks for programs.
  AC_LANG(C)
-AC_PROG_CC
+case $host_os in
+    darwin* )
+        AC_PROG_CC([clang cc gcc])
+        ;;
+    * )
+        AC_PROG_CC
+esac
+
You may wanna consider using similar code with autoconf macro

AS_CASE([$host_os],
        [darwin*], [AC_PROG_CC([clang gcc cc])],
        [AC_PROG_CC])

it will generate similar shell code, but I find it easier...
  AC_PROG_CPP
  AC_PROG_INSTALL
  AC_PROG_LN_S



Reply via email to