]> sigrok.org Git - libsigrok.git/commitdiff
sr/srd/cli: Fix compiling with Homebrew.
authorPekka Nikander <redacted>
Fri, 11 May 2012 16:23:21 +0000 (19:23 +0300)
committerUwe Hermann <redacted>
Tue, 15 May 2012 18:58:20 +0000 (20:58 +0200)
Add ACLOCAL_DIR setting and AM_PROG_AR macro for compiling with Homebrew
under Mac OS X.

Applies essentially the same change to
{libsigrok,libsigrokdecode,sigrok-cli}/{autogen.sh,configure.ac}

It may be that the same fix is needed for the other autogen.sh and/or
configure.ac files, but that hasn't been tested and therefore not in
this commit.

autogen.sh
configure.ac

index 0177bd3b67a9bab9ea038d83349a615ec8995b1d..9ee4cd4c4329ea63163b28f95d32b601298a9a99 100755 (executable)
@@ -32,6 +32,9 @@ if [ "x$OS" = "xDarwin" ]; then
        elif [ -d /opt/local/share/aclocal ]; then
                # Macports installs aclocal macros here
                ACLOCAL_DIR="-I /opt/local/share/aclocal"
+       elif [ -d /usr/local/share/aclocal ]; then
+               # Homebrew installs aclocal macros here
+               ACLOCAL_DIR="-I /usr/local/share/aclocal"
        elif [ -d /usr/share/aclocal ]; then
                # Xcode installs aclocal macros here
                ACLOCAL_DIR="-I /usr/share/aclocal"
index 88149d8b53cac191a584f66e8c1916d2e63fe983..d123c02831c4ca7cc107b7f80c0d7a92df7ecb67 100644 (file)
@@ -35,6 +35,7 @@ AC_CONFIG_AUX_DIR([autostuff])
 # We require at least automake 1.11 (needed for 'silent rules').
 AM_INIT_AUTOMAKE([1.11 -Wall -Werror foreign std-options])
 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
+m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
 
 AH_TOP([#ifndef SR_CONFIG_H
 #define SR_CONFIG_H    /* To stop multiple inclusions. */])