aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2011-06-29 06:18:15 -0400
committerGlenn Morris2011-06-29 06:18:15 -0400
commit130f1dac7ab4681e4db9498ee35c13e7725a4bf2 (patch)
tree310ffa5d4873702adfe98ffb0eb49c8e4b97f96d
parente9dfbb4a2cc9fd0b5a542114803a60732a375599 (diff)
downloademacs-130f1dac7ab4681e4db9498ee35c13e7725a4bf2.tar.gz
emacs-130f1dac7ab4681e4db9498ee35c13e7725a4bf2.zip
Auto-commit of generated files.
-rwxr-xr-xautogen/configure165
1 files changed, 94 insertions, 71 deletions
diff --git a/autogen/configure b/autogen/configure
index e1a4f947fa1..d8ec94e90b1 100755
--- a/autogen/configure
+++ b/autogen/configure
@@ -1132,9 +1132,9 @@ ALSA_LIBS
1132ALSA_CFLAGS 1132ALSA_CFLAGS
1133PKG_CONFIG 1133PKG_CONFIG
1134LIBSOUND 1134LIBSOUND
1135CRT_DIR
1135START_FILES 1136START_FILES
1136LIB_MATH 1137LIB_MATH
1137CRT_DIR
1138LIBS_SYSTEM 1138LIBS_SYSTEM
1139C_SWITCH_SYSTEM 1139C_SWITCH_SYSTEM
1140UNEXEC_OBJ 1140UNEXEC_OBJ
@@ -7642,76 +7642,6 @@ fi
7642 7642
7643 7643
7644 7644
7645## If user specified a crt-dir, use that unconditionally.
7646if test "X$CRT_DIR" = "X"; then
7647
7648 case "$canonical" in
7649 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
7650 ## On x86-64 and s390x GNU/Linux distributions, the standard library
7651 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
7652 ## For anything else (eg /usr/lib32), it is up the user to specify
7653 ## the location (bug#5655).
7654 ## Test for crtn.o, not just the directory, because sometimes the
7655 ## directory exists but does not have the relevant files (bug#1287).
7656 ## FIXME better to test for binary compatibility somehow.
7657 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
7658 ;;
7659
7660 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
7661 esac
7662
7663 case "$opsys" in
7664 hpux10-20) CRT_DIR=/lib ;;
7665 esac
7666
7667 ## Default is /usr/lib.
7668 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
7669
7670 ## If we're using gcc, try to determine it automatically by asking
7671 ## gcc. [If this doesn't work, CRT_DIR will remain at the
7672 ## system-dependent default from above.]
7673 if test "x${GCC}" = xyes; then
7674 crt_file=`$CC --print-file-name=crt1.o 2>/dev/null`
7675 case "$crt_file" in
7676 */*)
7677 CRT_DIR=`$as_dirname -- "$crt_file" ||
7678$as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7679 X"$crt_file" : 'X\(//\)[^/]' \| \
7680 X"$crt_file" : 'X\(//\)$' \| \
7681 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
7682$as_echo X"$crt_file" |
7683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7684 s//\1/
7685 q
7686 }
7687 /^X\(\/\/\)[^/].*/{
7688 s//\1/
7689 q
7690 }
7691 /^X\(\/\/\)$/{
7692 s//\1/
7693 q
7694 }
7695 /^X\(\/\).*/{
7696 s//\1/
7697 q
7698 }
7699 s/.*/./; q'`
7700 ;;
7701 esac
7702 fi
7703
7704else
7705
7706 ## Some platforms don't use any of these files, so it is not
7707 ## appropriate to put this test outside the if block.
7708 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
7709 as_fn_error "crt*.o not found in specified location." "$LINENO" 5
7710
7711fi
7712
7713
7714
7715LIB_MATH=-lm 7645LIB_MATH=-lm
7716LIB_STANDARD= 7646LIB_STANDARD=
7717START_FILES= 7647START_FILES=
@@ -7752,6 +7682,99 @@ esac
7752 7682
7753 7683
7754 7684
7685crt_files=
7686
7687for file in x $LIB_STANDARD $START_FILES; do
7688 case "$file" in
7689 *CRT_DIR*) crt_files="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
7690 esac
7691done
7692
7693if test "x$crt_files" != x; then
7694
7695 ## If user specified a crt-dir, use that unconditionally.
7696 crt_gcc=no
7697
7698 if test "X$CRT_DIR" = "X"; then
7699
7700 CRT_DIR=/usr/lib # default
7701
7702 case "$canonical" in
7703 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
7704 ## On x86-64 and s390x GNU/Linux distributions, the standard library
7705 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
7706 ## For anything else (eg /usr/lib32), it is up the user to specify
7707 ## the location (bug#5655).
7708 ## Test for crtn.o, not just the directory, because sometimes the
7709 ## directory exists but does not have the relevant files (bug#1287).
7710 ## FIXME better to test for binary compatibility somehow.
7711 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
7712 ;;
7713
7714 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
7715 esac
7716
7717 case "$opsys" in
7718 hpux10-20) CRT_DIR=/lib ;;
7719 esac
7720
7721 test "x${GCC}" = xyes && crt_gcc=yes
7722
7723 fi # CRT_DIR = ""
7724
7725 crt_missing=
7726
7727 for file in $crt_files; do
7728
7729 ## If we're using gcc, try to determine it automatically by asking
7730 ## gcc. [If this doesn't work, CRT_DIR will remain at the
7731 ## system-dependent default from above.]
7732 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
7733
7734 crt_file=`$CC --print-file-name=$file 2>/dev/null`
7735 case "$crt_file" in
7736 */*)
7737 CRT_DIR=`$as_dirname -- "$crt_file" ||
7738$as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7739 X"$crt_file" : 'X\(//\)[^/]' \| \
7740 X"$crt_file" : 'X\(//\)$' \| \
7741 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
7742$as_echo X"$crt_file" |
7743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7744 s//\1/
7745 q
7746 }
7747 /^X\(\/\/\)[^/].*/{
7748 s//\1/
7749 q
7750 }
7751 /^X\(\/\/\)$/{
7752 s//\1/
7753 q
7754 }
7755 /^X\(\/\).*/{
7756 s//\1/
7757 q
7758 }
7759 s/.*/./; q'`
7760 ;;
7761 esac
7762 fi
7763
7764 crt_gcc=no
7765
7766 test -e $CRT_DIR/$file || crt_missing="$crt_missing $file"
7767 done # $crt_files
7768
7769 test "x$crt_missing" = x || \
7770 as_fn_error "Required file(s) not found:$crt_missing
7771Try using the --with-crt-dir option." "$LINENO" 5
7772
7773fi # crt_files != ""
7774
7775
7776
7777
7755 7778
7756 7779
7757 7780