1 # |
1 # |
2 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. |
2 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. |
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 # |
4 # |
5 # This code is free software; you can redistribute it and/or modify it |
5 # This code is free software; you can redistribute it and/or modify it |
6 # under the terms of the GNU General Public License version 2 only, as |
6 # under the terms of the GNU General Public License version 2 only, as |
7 # published by the Free Software Foundation. Oracle designates this |
7 # published by the Free Software Foundation. Oracle designates this |
384 AC_ARG_WITH([tools-dir], [AS_HELP_STRING([--with-tools-dir], |
384 AC_ARG_WITH([tools-dir], [AS_HELP_STRING([--with-tools-dir], |
385 [search this directory for compilers and tools (for cross-compiling)])], |
385 [search this directory for compilers and tools (for cross-compiling)])], |
386 [TOOLS_DIR=$with_tools_dir] |
386 [TOOLS_DIR=$with_tools_dir] |
387 ) |
387 ) |
388 |
388 |
|
389 # Xcode version will be validated later |
|
390 AC_ARG_WITH([xcode-path], [AS_HELP_STRING([--with-xcode-path], |
|
391 [explicit path to Xcode 4 (generally for building on 10.9 and later)])], |
|
392 [XCODE_PATH=$with_xcode_path] |
|
393 ) |
|
394 |
389 AC_ARG_WITH([devkit], [AS_HELP_STRING([--with-devkit], |
395 AC_ARG_WITH([devkit], [AS_HELP_STRING([--with-devkit], |
390 [use this directory as base for tools-dir and sys-root (for cross-compiling)])], |
396 [use this directory as base for tools-dir and sys-root (for cross-compiling)])], |
391 [ |
397 [ |
392 if test "x$with_sys_root" != x; then |
398 if test "x$with_sys_root" != x; then |
393 AC_MSG_ERROR([Cannot specify both --with-devkit and --with-sys-root at the same time]) |
399 AC_MSG_ERROR([Cannot specify both --with-devkit and --with-sys-root at the same time]) |
632 # List shared lib dependencies is used for |
638 # List shared lib dependencies is used for |
633 # debug output and checking for forbidden dependencies. |
639 # debug output and checking for forbidden dependencies. |
634 # We can build without it. |
640 # We can build without it. |
635 LDD="true" |
641 LDD="true" |
636 fi |
642 fi |
637 AC_PATH_PROG(OTOOL, otool) |
|
638 if test "x$OTOOL" = "x"; then |
|
639 OTOOL="true" |
|
640 fi |
|
641 AC_PATH_PROGS(READELF, [readelf greadelf]) |
643 AC_PATH_PROGS(READELF, [readelf greadelf]) |
642 AC_PATH_PROG(HG, hg) |
644 AC_PATH_PROG(HG, hg) |
643 AC_PATH_PROG(STAT, stat) |
645 AC_PATH_PROG(STAT, stat) |
644 AC_PATH_PROG(TIME, time) |
646 AC_PATH_PROG(TIME, time) |
645 # Check if it's GNU time |
647 # Check if it's GNU time |