aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris <[email protected]>2011-06-17 13:41:21 -0400
committerGlenn Morris <[email protected]>2011-06-17 13:41:21 -0400
commit9ea9f8de990103dee8d59b4059a89cc6f3abb5ab (patch)
tree12eda533ee209f825f39f025b1222696ff8f4c51
parente9bc61b072df081624b7287ad118be330c7de37f (diff)
Auto-commit of generated files.
-rwxr-xr-xautogen/configure71
1 files changed, 34 insertions, 37 deletions
diff --git a/autogen/configure b/autogen/configure
index ef25fb2735..439e4f4ffa 100755
--- a/autogen/configure
+++ b/autogen/configure
@@ -7633,43 +7633,6 @@ fi
-## If we're using gcc, and the user hasn't specified a crt-dir, try to
-## determine it automatically by asking gcc. [If this doesn't work,
-## CRT_DIR will remain empty and system-dependent code will be used
-## below.]
-##
-if test "x${GCC}z$CRT_DIR" = xyesz; then
- crt_file=`$CC 2>/dev/null --print-file-name=crt1.o`
- case "$crt_file" in
- */*)
- CRT_DIR=`$as_dirname -- "$crt_file" ||
-$as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
- X"$crt_file" : 'X\(//\)[^/]' \| \
- X"$crt_file" : 'X\(//\)$' \| \
- X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
-$as_echo X"$crt_file" |
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
- s//\1/
- q
- }
- /^X\(\/\/\)[^/].*/{
- s//\1/
- q
- }
- /^X\(\/\/\)$/{
- s//\1/
- q
- }
- /^X\(\/\).*/{
- s//\1/
- q
- }
- s/.*/./; q'`
- ;;
- esac
-fi
-
-
## If user specified a crt-dir, use that unconditionally.
if test "X$CRT_DIR" = "X"; then
@@ -7695,6 +7658,40 @@ if test "X$CRT_DIR" = "X"; then
## Default is /usr/lib.
test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
+ ## If we're using gcc, try to determine it automatically by asking
+ ## gcc. [If this doesn't work, CRT_DIR will remain at the
+ ## system-dependent default from above.]
+ if test "x${GCC}" = xyes; then
+ crt_file=`$CC --print-file-name=crt1.o 2>/dev/null`
+ case "$crt_file" in
+ */*)
+ CRT_DIR=`$as_dirname -- "$crt_file" ||
+$as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$crt_file" : 'X\(//\)[^/]' \| \
+ X"$crt_file" : 'X\(//\)$' \| \
+ X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$crt_file" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+ ;;
+ esac
+ fi
+
else
## Some platforms don't use any of these files, so it is not