summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure12
1 files changed, 7 insertions, 5 deletions
diff --git a/configure b/configure
index 33ac732..eb1b2b6 100755
--- a/configure
+++ b/configure
@@ -56,12 +56,14 @@ $histedit_h = 1 if ($? == 0);
`echo '\#include <gmp.h>' | $CC $CFLAGS $OBJCFLAGS -c -o /dev/null -x c - 2>/dev/null`;
$gmp_h = 1 if ($? == 0);
-`$XCODEBUILD -version`;
-if ($? == 0) {
- $xcode = 1;
- $build_cmd = "xcodebuild";
-} elsif ($ENV{'GNUSTEP_MAKEFILES'} && (`$MAKE --version` =~ /^GNU.*/)) {
+if ($ENV{'GNUSTEP_MAKEFILES'} && (`$MAKE --version` =~ /^GNU.*/)) {
$build_cmd = "$MAKE";
+} else {
+ `$XCODEBUILD -version`;
+ if ($? == 0) {
+ $xcode = 1;
+ $build_cmd = "xcodebuild";
+ }
}
if ($darwin) {