aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xautogen/configure71
1 files changed, 34 insertions, 37 deletions
diff --git a/autogen/configure b/autogen/configure
index ef25fb2735c..439e4f4ffa7 100755
--- a/autogen/configure
+++ b/autogen/configure
@@ -7633,43 +7633,6 @@ fi
7633 7633
7634 7634
7635 7635
7636## If we're using gcc, and the user hasn't specified a crt-dir, try to
7637## determine it automatically by asking gcc. [If this doesn't work,
7638## CRT_DIR will remain empty and system-dependent code will be used
7639## below.]
7640##
7641if test "x${GCC}z$CRT_DIR" = xyesz; then
7642 crt_file=`$CC 2>/dev/null --print-file-name=crt1.o`
7643 case "$crt_file" in
7644 */*)
7645 CRT_DIR=`$as_dirname -- "$crt_file" ||
7646$as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7647 X"$crt_file" : 'X\(//\)[^/]' \| \
7648 X"$crt_file" : 'X\(//\)$' \| \
7649 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
7650$as_echo X"$crt_file" |
7651 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7652 s//\1/
7653 q
7654 }
7655 /^X\(\/\/\)[^/].*/{
7656 s//\1/
7657 q
7658 }
7659 /^X\(\/\/\)$/{
7660 s//\1/
7661 q
7662 }
7663 /^X\(\/\).*/{
7664 s//\1/
7665 q
7666 }
7667 s/.*/./; q'`
7668 ;;
7669 esac
7670fi
7671
7672
7673## If user specified a crt-dir, use that unconditionally. 7636## If user specified a crt-dir, use that unconditionally.
7674if test "X$CRT_DIR" = "X"; then 7637if test "X$CRT_DIR" = "X"; then
7675 7638
@@ -7695,6 +7658,40 @@ if test "X$CRT_DIR" = "X"; then
7695 ## Default is /usr/lib. 7658 ## Default is /usr/lib.
7696 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib 7659 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
7697 7660
7661 ## If we're using gcc, try to determine it automatically by asking
7662 ## gcc. [If this doesn't work, CRT_DIR will remain at the
7663 ## system-dependent default from above.]
7664 if test "x${GCC}" = xyes; then
7665 crt_file=`$CC --print-file-name=crt1.o 2>/dev/null`
7666 case "$crt_file" in
7667 */*)
7668 CRT_DIR=`$as_dirname -- "$crt_file" ||
7669$as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7670 X"$crt_file" : 'X\(//\)[^/]' \| \
7671 X"$crt_file" : 'X\(//\)$' \| \
7672 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
7673$as_echo X"$crt_file" |
7674 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7675 s//\1/
7676 q
7677 }
7678 /^X\(\/\/\)[^/].*/{
7679 s//\1/
7680 q
7681 }
7682 /^X\(\/\/\)$/{
7683 s//\1/
7684 q
7685 }
7686 /^X\(\/\).*/{
7687 s//\1/
7688 q
7689 }
7690 s/.*/./; q'`
7691 ;;
7692 esac
7693 fi
7694
7698else 7695else
7699 7696
7700 ## Some platforms don't use any of these files, so it is not 7697 ## Some platforms don't use any of these files, so it is not