diff options
| -rwxr-xr-x | configure | 45 |
1 files changed, 31 insertions, 14 deletions
| @@ -660,6 +660,7 @@ ALSA_LIBS | |||
| 660 | ALSA_CFLAGS | 660 | ALSA_CFLAGS |
| 661 | PKG_CONFIG | 661 | PKG_CONFIG |
| 662 | LIBSOUND | 662 | LIBSOUND |
| 663 | CRT_DIR | ||
| 663 | MAKEINFO | 664 | MAKEINFO |
| 664 | GZIP_PROG | 665 | GZIP_PROG |
| 665 | INSTALL_INFO | 666 | INSTALL_INFO |
| @@ -755,6 +756,7 @@ with_makeinfo | |||
| 755 | with_gtk | 756 | with_gtk |
| 756 | with_gcc | 757 | with_gcc |
| 757 | with_pkg_config_prog | 758 | with_pkg_config_prog |
| 759 | with_crt_dir | ||
| 758 | with_gnustep_conf | 760 | with_gnustep_conf |
| 759 | enable_ns_self_contained | 761 | enable_ns_self_contained |
| 760 | enable_asserts | 762 | enable_asserts |
| @@ -1454,6 +1456,8 @@ Optional Packages: | |||
| 1454 | 1456 | ||
| 1455 | --with-pkg-config-prog=PATH | 1457 | --with-pkg-config-prog=PATH |
| 1456 | path to pkg-config for finding GTK and librsvg | 1458 | path to pkg-config for finding GTK and librsvg |
| 1459 | --with-crt-dir=DIR directory containing crtn.o etc. This option is only | ||
| 1460 | used on x86-64 and s390x GNU/Linux architectures. | ||
| 1457 | --with-gnustep-conf=PATH | 1461 | --with-gnustep-conf=PATH |
| 1458 | path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE, | 1462 | path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE, |
| 1459 | or /etc/GNUstep/GNUstep.conf | 1463 | or /etc/GNUstep/GNUstep.conf |
| @@ -2742,6 +2746,15 @@ if test "X${with_pkg_config_prog}" != X; then | |||
| 2742 | fi | 2746 | fi |
| 2743 | fi | 2747 | fi |
| 2744 | 2748 | ||
| 2749 | CRT_DIR= | ||
| 2750 | |||
| 2751 | # Check whether --with-crt-dir was given. | ||
| 2752 | if test "${with_crt_dir+set}" = set; then : | ||
| 2753 | withval=$with_crt_dir; | ||
| 2754 | fi | ||
| 2755 | |||
| 2756 | CRT_DIR="${with_crt_dir}" | ||
| 2757 | |||
| 2745 | 2758 | ||
| 2746 | # Check whether --with-gnustep-conf was given. | 2759 | # Check whether --with-gnustep-conf was given. |
| 2747 | if test "${with_gnustep_conf+set}" = set; then : | 2760 | if test "${with_gnustep_conf+set}" = set; then : |
| @@ -5705,19 +5718,28 @@ rm -rf conftest* | |||
| 5705 | fi | 5718 | fi |
| 5706 | 5719 | ||
| 5707 | 5720 | ||
| 5708 | 5721 | ## Note: at present CRT_DIR is only used for amdx86-64 and ibms390x. | |
| 5709 | ### The standard library on x86-64 and s390x GNU/Linux distributions can | 5722 | ## Other machine types hard-code the location in src/[ms]/*.h. |
| 5710 | ### be located in either /usr/lib64 or /usr/lib. | ||
| 5711 | ### In some rare cases, /usr/lib64 exists but does not contain the | ||
| 5712 | ### relevant files (bug#1287). Hence test for crtn.o. | ||
| 5713 | case "${canonical}" in | 5723 | case "${canonical}" in |
| 5714 | x86_64-*-linux-gnu* | s390x-*-linux-gnu* ) | 5724 | x86_64-*-linux-gnu* | s390x-*-linux-gnu* ) |
| 5715 | if test -e /usr/lib64/crtn.o; then | 5725 | ## On x86-64 and s390x GNU/Linux distributions, the standard library |
| 5716 | 5726 | ## can be in a variety of places. We only try /usr/lib64 and /usr/lib. | |
| 5717 | $as_echo "#define HAVE_LIB64_DIR 1" >>confdefs.h | 5727 | ## For anything else (eg /usr/lib32), it is up the user to specify |
| 5728 | ## the location (bug#5655). | ||
| 5729 | ## Test for crtn.o, not just the directory, because sometimes the | ||
| 5730 | ## directory exists but does not have the relevant files (bug#1287). | ||
| 5731 | ## If user specified a crt-dir, use that unconditionally. | ||
| 5732 | if test "X$CRT_DIR" = "X"; then | ||
| 5733 | CRT_DIR=/usr/lib | ||
| 5734 | test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64 | ||
| 5735 | fi | ||
| 5718 | 5736 | ||
| 5719 | fi | 5737 | test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \ |
| 5738 | as_fn_error $? "crt*.o not found. Use --with-crt-dir to specify the location." "$LINENO" 5 | ||
| 5739 | ;; | ||
| 5720 | esac | 5740 | esac |
| 5741 | test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib | ||
| 5742 | |||
| 5721 | 5743 | ||
| 5722 | 5744 | ||
| 5723 | 5745 | ||
| @@ -13367,11 +13389,6 @@ to run if these resources are not installed." | |||
| 13367 | echo | 13389 | echo |
| 13368 | fi | 13390 | fi |
| 13369 | 13391 | ||
| 13370 | if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then | ||
| 13371 | echo "D-Bus integration has been tested for GNU/Linux only." | ||
| 13372 | echo | ||
| 13373 | fi | ||
| 13374 | |||
| 13375 | 13392 | ||
| 13376 | # Remove any trailing slashes in these variables. | 13393 | # Remove any trailing slashes in these variables. |
| 13377 | test "${prefix}" != NONE && | 13394 | test "${prefix}" != NONE && |