aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--autogen/Makefile.in5
-rw-r--r--autogen/config.in10
-rwxr-xr-xautogen/configure284
3 files changed, 50 insertions, 249 deletions
diff --git a/autogen/Makefile.in b/autogen/Makefile.in
index 65d3880c027..eadb1ab8c22 100644
--- a/autogen/Makefile.in
+++ b/autogen/Makefile.in
@@ -174,7 +174,6 @@ CFLAGS_SOUND = @CFLAGS_SOUND@
174COM_ERRLIB = @COM_ERRLIB@ 174COM_ERRLIB = @COM_ERRLIB@
175CPP = @CPP@ 175CPP = @CPP@
176CPPFLAGS = @CPPFLAGS@ 176CPPFLAGS = @CPPFLAGS@
177CRT_DIR = @CRT_DIR@
178CRYPTOLIB = @CRYPTOLIB@ 177CRYPTOLIB = @CRYPTOLIB@
179CYGPATH_W = @CYGPATH_W@ 178CYGPATH_W = @CYGPATH_W@
180CYGWIN_OBJ = @CYGWIN_OBJ@ 179CYGWIN_OBJ = @CYGWIN_OBJ@
@@ -619,7 +618,6 @@ INT64_MAX_EQ_LONG_MAX = @INT64_MAX_EQ_LONG_MAX@
619KRB4LIB = @KRB4LIB@ 618KRB4LIB = @KRB4LIB@
620KRB5LIB = @KRB5LIB@ 619KRB5LIB = @KRB5LIB@
621LDFLAGS = @LDFLAGS@ 620LDFLAGS = @LDFLAGS@
622LD_FIRSTFLAG = @LD_FIRSTFLAG@
623LD_SWITCH_SYSTEM = @LD_SWITCH_SYSTEM@ 621LD_SWITCH_SYSTEM = @LD_SWITCH_SYSTEM@
624LD_SWITCH_SYSTEM_TEMACS = @LD_SWITCH_SYSTEM_TEMACS@ 622LD_SWITCH_SYSTEM_TEMACS = @LD_SWITCH_SYSTEM_TEMACS@
625LD_SWITCH_X_SITE = @LD_SWITCH_X_SITE@ 623LD_SWITCH_X_SITE = @LD_SWITCH_X_SITE@
@@ -659,11 +657,9 @@ LIBX_OTHER = @LIBX_OTHER@
659LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@ 657LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@
660LIB_EACCESS = @LIB_EACCESS@ 658LIB_EACCESS = @LIB_EACCESS@
661LIB_EXECINFO = @LIB_EXECINFO@ 659LIB_EXECINFO = @LIB_EXECINFO@
662LIB_GCC = @LIB_GCC@
663LIB_MATH = @LIB_MATH@ 660LIB_MATH = @LIB_MATH@
664LIB_PTHREAD = @LIB_PTHREAD@ 661LIB_PTHREAD = @LIB_PTHREAD@
665LIB_PTHREAD_SIGMASK = @LIB_PTHREAD_SIGMASK@ 662LIB_PTHREAD_SIGMASK = @LIB_PTHREAD_SIGMASK@
666LIB_STANDARD = @LIB_STANDARD@
667LIB_TIMER_TIME = @LIB_TIMER_TIME@ 663LIB_TIMER_TIME = @LIB_TIMER_TIME@
668LN_S = @LN_S@ 664LN_S = @LN_S@
669LTLIBINTL = @LTLIBINTL@ 665LTLIBINTL = @LTLIBINTL@
@@ -858,7 +854,6 @@ SET_MAKE = @SET_MAKE@
858SHELL = @SHELL@ 854SHELL = @SHELL@
859SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@ 855SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@
860SIZE_T_SUFFIX = @SIZE_T_SUFFIX@ 856SIZE_T_SUFFIX = @SIZE_T_SUFFIX@
861START_FILES = @START_FILES@
862STDALIGN_H = @STDALIGN_H@ 857STDALIGN_H = @STDALIGN_H@
863STDARG_H = @STDARG_H@ 858STDARG_H = @STDARG_H@
864STDBOOL_H = @STDBOOL_H@ 859STDBOOL_H = @STDBOOL_H@
diff --git a/autogen/config.in b/autogen/config.in
index 0492fc20110..10cc3c68196 100644
--- a/autogen/config.in
+++ b/autogen/config.in
@@ -93,9 +93,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
93/* Extra bits to be or'd in with any pointers stored in a Lisp_Object. */ 93/* Extra bits to be or'd in with any pointers stored in a Lisp_Object. */
94#undef DATA_SEG_BITS 94#undef DATA_SEG_BITS
95 95
96/* Address of the start of the data segment. */
97#undef DATA_START
98
99/* Name of the default sound device. */ 96/* Name of the default sound device. */
100#undef DEFAULT_SOUND_DEVICE 97#undef DEFAULT_SOUND_DEVICE
101 98
@@ -259,6 +256,10 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
259/* Define to 1 if you have the `copysign' function. */ 256/* Define to 1 if you have the `copysign' function. */
260#undef HAVE_COPYSIGN 257#undef HAVE_COPYSIGN
261 258
259/* Define to 1 if data_start is the address of the start of the main data
260 segment. */
261#undef HAVE_DATA_START
262
262/* Define to 1 if using D-Bus. */ 263/* Define to 1 if using D-Bus. */
263#undef HAVE_DBUS 264#undef HAVE_DBUS
264 265
@@ -1227,9 +1228,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
1227/* Define to 1 if the nlist n_name member is a pointer */ 1228/* Define to 1 if the nlist n_name member is a pointer */
1228#undef N_NAME_POINTER 1229#undef N_NAME_POINTER
1229 1230
1230/* Define if the C compiler is the linker. */
1231#undef ORDINARY_LINK
1232
1233/* Name of package */ 1231/* Name of package */
1234#undef PACKAGE 1232#undef PACKAGE
1235 1233
diff --git a/autogen/configure b/autogen/configure
index 0ba98637fa4..8f5ee260426 100755
--- a/autogen/configure
+++ b/autogen/configure
@@ -605,8 +605,6 @@ LTLIBOBJS
605LIBOBJS 605LIBOBJS
606SUBDIR_MAKEFILES_IN 606SUBDIR_MAKEFILES_IN
607WINDOW_SYSTEM_OBJ 607WINDOW_SYSTEM_OBJ
608LIB_GCC
609LD_FIRSTFLAG
610LD_SWITCH_SYSTEM_TEMACS 608LD_SWITCH_SYSTEM_TEMACS
611LIBGNU_LTLIBDEPS 609LIBGNU_LTLIBDEPS
612LIBGNU_LIBDEPS 610LIBGNU_LIBDEPS
@@ -1337,7 +1335,6 @@ W32_RES
1337W32_LIBS 1335W32_LIBS
1338W32_OBJ 1336W32_OBJ
1339WINDRES 1337WINDRES
1340LIB_STANDARD
1341NS_OBJC_OBJ 1338NS_OBJC_OBJ
1342NS_OBJ 1339NS_OBJ
1343ns_self_contained 1340ns_self_contained
@@ -1352,8 +1349,6 @@ ALSA_LIBS
1352ALSA_CFLAGS 1349ALSA_CFLAGS
1353LIBSOUND 1350LIBSOUND
1354PKG_CONFIG 1351PKG_CONFIG
1355CRT_DIR
1356START_FILES
1357LIB_MATH 1352LIB_MATH
1358LIBS_SYSTEM 1353LIBS_SYSTEM
1359C_SWITCH_SYSTEM 1354C_SWITCH_SYSTEM
@@ -1507,7 +1502,6 @@ with_inotify
1507with_makeinfo 1502with_makeinfo
1508with_compress_info 1503with_compress_info
1509with_pkg_config_prog 1504with_pkg_config_prog
1510with_crt_dir
1511with_gameuser 1505with_gameuser
1512with_gnustep_conf 1506with_gnustep_conf
1513enable_ns_self_contained 1507enable_ns_self_contained
@@ -2236,8 +2230,6 @@ Optional Packages:
2236 --without-compress-info don't compress the installed Info pages 2230 --without-compress-info don't compress the installed Info pages
2237 --with-pkg-config-prog=FILENAME 2231 --with-pkg-config-prog=FILENAME
2238 file name of pkg-config for finding GTK and librsvg 2232 file name of pkg-config for finding GTK and librsvg
2239 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2240 /usr/lib, or /usr/lib64 on some platforms.
2241 --with-gameuser=USER user for shared game score files 2233 --with-gameuser=USER user for shared game score files
2242 --with-gnustep-conf=FILENAME 2234 --with-gnustep-conf=FILENAME
2243 name of GNUstep.conf; default $GNUSTEP_CONFIG_FILE, 2235 name of GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
@@ -3326,7 +3318,6 @@ as_fn_append ac_header_list " linux/version.h"
3326as_fn_append ac_header_list " sys/systeminfo.h" 3318as_fn_append ac_header_list " sys/systeminfo.h"
3327as_fn_append ac_header_list " coff.h" 3319as_fn_append ac_header_list " coff.h"
3328as_fn_append ac_header_list " pty.h" 3320as_fn_append ac_header_list " pty.h"
3329as_fn_append ac_header_list " sys/vlimit.h"
3330as_fn_append ac_header_list " sys/resource.h" 3321as_fn_append ac_header_list " sys/resource.h"
3331as_fn_append ac_header_list " sys/utsname.h" 3322as_fn_append ac_header_list " sys/utsname.h"
3332as_fn_append ac_header_list " pwd.h" 3323as_fn_append ac_header_list " pwd.h"
@@ -4368,15 +4359,6 @@ if test "X${with_pkg_config_prog}" != X; then
4368 fi 4359 fi
4369fi 4360fi
4370 4361
4371CRT_DIR=
4372
4373# Check whether --with-crt-dir was given.
4374if test "${with_crt_dir+set}" = set; then :
4375 withval=$with_crt_dir;
4376fi
4377
4378CRT_DIR="${with_crt_dir}"
4379
4380 4362
4381# Check whether --with-gameuser was given. 4363# Check whether --with-gameuser was given.
4382if test "${with_gameuser+set}" = set; then : 4364if test "${with_gameuser+set}" = set; then :
@@ -8571,36 +8553,24 @@ fi
8571 8553
8572 8554
8573LIB_MATH=-lm 8555LIB_MATH=-lm
8574LIB_STANDARD=
8575START_FILES=
8576SYSTEM_TYPE=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'` 8556SYSTEM_TYPE=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8577 8557
8578case $opsys in 8558case $opsys in
8579 cygwin ) 8559 cygwin )
8580 LIB_MATH= 8560 LIB_MATH=
8581 START_FILES='pre-crt0.o'
8582 ;; 8561 ;;
8583 darwin ) 8562 darwin )
8584 ## Adding -lm confuses the dynamic linker, so omit it. 8563 ## Adding -lm confuses the dynamic linker, so omit it.
8585 LIB_MATH= 8564 LIB_MATH=
8586 START_FILES='pre-crt0.o'
8587 ;; 8565 ;;
8588 freebsd ) 8566 freebsd )
8589 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8590 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8591 SYSTEM_TYPE=berkeley-unix 8567 SYSTEM_TYPE=berkeley-unix
8592 ;; 8568 ;;
8593 gnu-linux | gnu-kfreebsd ) 8569 gnu-linux | gnu-kfreebsd )
8594 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8595 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8596 ;; 8570 ;;
8597 hpux10-20 | hpux11 ) 8571 hpux10-20 | hpux11 )
8598 LIB_STANDARD=-lc
8599 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
8600 ;; 8572 ;;
8601 netbsd | openbsd ) 8573 netbsd | openbsd )
8602 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8603 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8604 SYSTEM_TYPE=berkeley-unix 8574 SYSTEM_TYPE=berkeley-unix
8605 ;; 8575 ;;
8606 8576
@@ -8612,117 +8582,11 @@ esac
8612 8582
8613 8583
8614 8584
8615
8616cat >>confdefs.h <<_ACEOF 8585cat >>confdefs.h <<_ACEOF
8617#define SYSTEM_TYPE "$SYSTEM_TYPE" 8586#define SYSTEM_TYPE "$SYSTEM_TYPE"
8618_ACEOF 8587_ACEOF
8619 8588
8620 8589
8621crt_files=
8622
8623for file in x $LIB_STANDARD $START_FILES; do
8624 case "$file" in
8625 *CRT_DIR*) crt_files="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8626 esac
8627done
8628
8629if test "x$crt_files" != x; then
8630
8631 ## If user specified a crt-dir, use that unconditionally.
8632 crt_gcc=no
8633
8634 if test "X$CRT_DIR" = "X"; then
8635
8636 CRT_DIR=/usr/lib # default
8637
8638 case "$canonical" in
8639 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
8640 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8641 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8642 ## For anything else (eg /usr/lib32), it is up the user to specify
8643 ## the location (bug#5655).
8644 ## Test for crtn.o, not just the directory, because sometimes the
8645 ## directory exists but does not have the relevant files (bug#1287).
8646 ## FIXME better to test for binary compatibility somehow.
8647 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
8648 ;;
8649
8650 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
8651 esac
8652
8653 case "$opsys" in
8654 hpux10-20) CRT_DIR=/lib ;;
8655 esac
8656
8657 test "x${GCC}" = xyes && crt_gcc=yes
8658
8659 fi # CRT_DIR = ""
8660
8661 crt_missing=
8662
8663 for file in $crt_files; do
8664
8665 ## If we're using gcc, try to determine it automatically by asking
8666 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8667 ## system-dependent default from above.]
8668 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8669
8670 crt_file=`$CC --print-file-name=$file 2>/dev/null`
8671 case "$crt_file" in
8672 */*)
8673 CRT_DIR=`$as_dirname -- "$crt_file" ||
8674$as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8675 X"$crt_file" : 'X\(//\)[^/]' \| \
8676 X"$crt_file" : 'X\(//\)$' \| \
8677 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8678$as_echo X"$crt_file" |
8679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8680 s//\1/
8681 q
8682 }
8683 /^X\(\/\/\)[^/].*/{
8684 s//\1/
8685 q
8686 }
8687 /^X\(\/\/\)$/{
8688 s//\1/
8689 q
8690 }
8691 /^X\(\/\).*/{
8692 s//\1/
8693 q
8694 }
8695 s/.*/./; q'`
8696 ;;
8697 esac
8698 fi
8699
8700 crt_gcc=no
8701
8702 test -e $CRT_DIR/$file || crt_missing="$crt_missing $file"
8703 done # $crt_files
8704
8705 test "x$crt_missing" = x || \
8706 as_fn_error "Required file(s) not found:$crt_missing
8707Try using the --with-crt-dir option." "$LINENO" 5
8708
8709fi # crt_files != ""
8710
8711
8712
8713case $opsys in
8714 netbsd | openbsd )
8715 if test -f $CRT_DIR/crti.o; then
8716
8717 test -f $CRT_DIR/crtn.o || \
8718 as_fn_error "Required file not found: crtn.o" "$LINENO" 5
8719
8720 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8721 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8722 fi
8723 ;;
8724esac
8725
8726 8590
8727pre_PKG_CONFIG_CFLAGS=$CFLAGS 8591pre_PKG_CONFIG_CFLAGS=$CFLAGS
8728pre_PKG_CONFIG_LIBS=$LIBS 8592pre_PKG_CONFIG_LIBS=$LIBS
@@ -8992,8 +8856,6 @@ done
8992 8856
8993 8857
8994 8858
8995
8996
8997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5 8859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8998$as_echo_n "checking if personality LINUX32 can be set... " >&6; } 8860$as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8999cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8861cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -9719,8 +9581,6 @@ if test "${with_ns}" != no; then
9719 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}" 9581 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9720 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}" 9582 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9721 LIBS_GNUSTEP="-lgnustep-gui -lgnustep-base -lobjc -lpthread" 9583 LIBS_GNUSTEP="-lgnustep-gui -lgnustep-base -lobjc -lpthread"
9722 LIB_STANDARD=
9723 START_FILES=
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5 9584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9725$as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; } 9585$as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9726if test "${emacs_cv_objc_exceptions+set}" = set; then : 9586if test "${emacs_cv_objc_exceptions+set}" = set; then :
@@ -9858,7 +9718,6 @@ CPPFLAGS="$tmp_CPPFLAGS"
9858 9718
9859 9719
9860 9720
9861
9862HAVE_W32=no 9721HAVE_W32=no
9863W32_OBJ= 9722W32_OBJ=
9864W32_LIBS= 9723W32_LIBS=
@@ -10149,6 +10008,50 @@ $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
10149else 10008else
10150 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o 10009 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
10151 VMLIMIT_OBJ=vm-limit.o 10010 VMLIMIT_OBJ=vm-limit.o
10011
10012 for ac_header in sys/vlimit.h
10013do :
10014 ac_fn_c_check_header_mongrel "$LINENO" "sys/vlimit.h" "ac_cv_header_sys_vlimit_h" "$ac_includes_default"
10015if test "x$ac_cv_header_sys_vlimit_h" = x""yes; then :
10016 cat >>confdefs.h <<_ACEOF
10017#define HAVE_SYS_VLIMIT_H 1
10018_ACEOF
10019
10020fi
10021
10022done
10023
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for data_start" >&5
10025$as_echo_n "checking for data_start... " >&6; }
10026if test "${emacs_cv_data_start+set}" = set; then :
10027 $as_echo_n "(cached) " >&6
10028else
10029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10030/* end confdefs.h. */
10031extern char data_start[]; char ch;
10032int
10033main ()
10034{
10035return data_start == &ch;
10036 ;
10037 return 0;
10038}
10039_ACEOF
10040if ac_fn_c_try_link "$LINENO"; then :
10041 emacs_cv_data_start=yes
10042else
10043 emacs_cv_data_start=no
10044fi
10045rm -f core conftest.err conftest.$ac_objext \
10046 conftest$ac_exeext conftest.$ac_ext
10047fi
10048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_data_start" >&5
10049$as_echo "$emacs_cv_data_start" >&6; }
10050 if test $emacs_cv_data_start = yes; then
10051
10052$as_echo "#define HAVE_DATA_START 1" >>confdefs.h
10053
10054 fi
10152fi 10055fi
10153 10056
10154 10057
@@ -15808,28 +15711,16 @@ esac
15808 15711
15809 15712
15810 15713
15811
15812case $opsys in 15714case $opsys in
15813 gnu)
15814 $as_echo "#define DATA_START ({ extern int data_start; (char *) &data_start; })" >>confdefs.h
15815
15816 ;;
15817
15818 aix*) 15715 aix*)
15819 $as_echo "#define DATA_START 0x20000000" >>confdefs.h 15716 $as_echo "#define DATA_SEG_BITS 0x20000000" >>confdefs.h
15820
15821 $as_echo "#define DATA_SEG_BITS 0x20000000" >>confdefs.h
15822 15717
15823 ;; 15718 ;;
15824 hpux*) 15719 hpux*)
15825 $as_echo "#define DATA_START 0x40000000" >>confdefs.h 15720 $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h
15826
15827 $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h
15828 15721
15829 ;; 15722 ;;
15830 irix6-5) 15723 irix6-5)
15831 $as_echo "#define DATA_START 0x10000000" >>confdefs.h
15832
15833 $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h 15724 $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h
15834 15725
15835 ;; 15726 ;;
@@ -26644,89 +26535,6 @@ esac
26644 26535
26645 26536
26646 26537
26647
26648LD_FIRSTFLAG=
26649ORDINARY_LINK=
26650case "$opsys" in
26651 ## gnu: GNU needs its own crt0.
26652 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
26653
26654 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
26655 ## library search parth, i.e. it won't search /usr/lib for libc and
26656 ## friends. Using -nostartfiles instead avoids this problem, and
26657 ## will also work on earlier NetBSD releases.
26658 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
26659
26660 ## powerpc*: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
26661 ## MkLinux/LinuxPPC needs this.
26662 ## s390x-* only supports opsys = gnu-linux so it can be added here.
26663 gnu-*)
26664 case "$canonical" in
26665 powerpc*|s390x-*) LD_FIRSTFLAG="-nostdlib" ;;
26666 esac
26667 ;;
26668esac
26669
26670
26671if test "x$ORDINARY_LINK" = "xyes"; then
26672
26673 LD_FIRSTFLAG=""
26674
26675$as_echo "#define ORDINARY_LINK 1" >>confdefs.h
26676
26677
26678## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
26679## freebsd, gnu-* not on powerpc*|s390x*.
26680elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
26681
26682 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
26683 ## places that are difficult to figure out at make time. Fortunately,
26684 ## these same versions allow you to pass arbitrary flags on to the
26685 ## linker, so there is no reason not to use it as a linker.
26686 ##
26687 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
26688 ## searching for libraries in its internal directories, so we have to
26689 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
26690 LD_FIRSTFLAG="-nostdlib"
26691fi
26692
26693## FIXME? What setting of EDIT_LDFLAGS should this have?
26694test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
26695
26696
26697
26698
26699## FIXME? The logic here is not precisely the same as that above.
26700## There is no check here for a pre-defined LD_FIRSTFLAG.
26701## Should we only be setting LIB_GCC if LD ~ -nostdlib?
26702LIB_GCC=
26703if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
26704
26705 case "$opsys" in
26706 freebsd|netbsd|openbsd) LIB_GCC= ;;
26707
26708 gnu-*)
26709 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
26710 ## build on ARM EABI under GNU/Linux. (Bug#5518)
26711 case $host_cpu in
26712 arm*)
26713 LIB_GCC="-lgcc_s"
26714 ;;
26715 *)
26716 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
26717 ## immediately undefine it again and redefine it to empty.
26718 ## Was the C_SWITCH_X_SITE part really necessary?
26719## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
26720 LIB_GCC=
26721 ;;
26722 esac
26723 ;;
26724
26725 ## Ask GCC where to find libgcc.a.
26726 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
26727 esac
26728fi
26729
26730## Common for all window systems 26538## Common for all window systems
26731if test "$window_system" != "none"; then 26539if test "$window_system" != "none"; then
26732 26540