X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=ld%2Fconfigure.in;h=0589578a74a67cb5ebf265fa647f1d8ae4bb799e;hb=b7b949f5e9cad15fb0e6a63dca180d5115129132;hp=edb75e9312d0ae87c4f95f4dad9f9a2cdf515dd4;hpb=ad22bfe862580712218ebd334179fd7a48b28a36;p=deliverable%2Fbinutils-gdb.git diff --git a/ld/configure.in b/ld/configure.in index edb75e9312..0589578a74 100644 --- a/ld/configure.in +++ b/ld/configure.in @@ -41,17 +41,20 @@ AC_ARG_WITH(sysroot, TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"' use_sysroot=yes + if test "x$prefix" = xNONE; then + test_prefix=/usr/local + else + test_prefix=$prefix + fi if test "x$exec_prefix" = xNONE; then - if test "x$prefix" = xNONE; then - test_prefix=/usr/local - else - test_prefix=$prefix - fi + test_exec_prefix=$test_prefix else - test_prefix=$exec_prefix + test_exec_prefix=$exec_prefix fi case ${TARGET_SYSTEM_ROOT} in "${test_prefix}"|"${test_prefix}/"*|\ + "${test_exec_prefix}"|"${test_exec_prefix}/"*|\ + '${prefix}'|'${prefix}/'*|\ '${exec_prefix}'|'${exec_prefix}/'*) t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE" TARGET_SYSTEM_ROOT_DEFINE="$t" @@ -66,25 +69,6 @@ AC_SUBST(use_sysroot) AC_SUBST(TARGET_SYSTEM_ROOT) AC_SUBST(TARGET_SYSTEM_ROOT_DEFINE) -# The location to which bugs should be reported. -AC_ARG_WITH(bugurl, - AS_HELP_STRING([--with-bugurl=URL], - [Direct users to URL to report a bug]), - [case "$withval" in - yes) AC_MSG_ERROR([bug URL not specified]) ;; - no) REPORT_BUGS_TO=""; - REPORT_BUGS_TEXI="" - ;; - *) REPORT_BUGS_TO="" - REPORT_BUGS_TEXI="@uref{`echo $withval | sed 's/@/@@/g'`}" - ;; - esac], - REPORT_BUGS_TO="" - REPORT_BUGS_TEXI="@uref{http://www.sourceware.org/bugzilla/}" -) -AC_SUBST(REPORT_BUGS_TO) -AC_SUBST(REPORT_BUGS_TEXI) - AM_BINUTILS_WARNINGS AM_CONFIG_HEADER(config.h:config.in) @@ -121,7 +105,7 @@ AC_SUBST(HOSTING_LIBS) AC_SUBST(NATIVE_LIB_DIRS) AC_CHECK_HEADERS(string.h strings.h stdlib.h unistd.h elf-hints.h limits.h sys/param.h) -AC_CHECK_FUNCS(sbrk realpath glob) +AC_CHECK_FUNCS(glob mkstemp realpath sbrk waitpid) AC_HEADER_DIRENT AC_MSG_CHECKING(for a known getopt prototype in unistd.h)