summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh
index f423fe19b867..d41ccdd91928 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -125,7 +125,11 @@ sanity_checks ($system) unless($system eq 'Darwin');
my $aclocal_flags = $ENV{ACLOCAL_FLAGS};
-$aclocal_flags = "-I ./m4/mac" if (($aclocal_flags eq "") && ($system eq 'Darwin'));
+if ($aclocal_flags eq "")
+{
+ $aclocal_flags = "-I ./m4";
+ $aclocal_flags .= " -I ./m4/mac" if ($system eq 'Darwin');
+}
$ENV{AUTOMAKE_EXTRA_FLAGS} = '--warnings=no-portability' if (!($system eq 'Darwin'));