aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPer Bothner1995-08-15 02:33:42 +0000
committerPer Bothner1995-08-15 02:33:42 +0000
commit6e4bd6ae29e88b72bc4446f4e3c7166c9b95d33f (patch)
tree58cb25e6374358ba5ee1de986bbd383aed32473f
parent73479d0224b85b392f2fc2f878ff9935c788ec28 (diff)
downloademacs-6e4bd6ae29e88b72bc4446f4e3c7166c9b95d33f.tar.gz
emacs-6e4bd6ae29e88b72bc4446f4e3c7166c9b95d33f.zip
Changes for Linux and LynxOS.
-rwxr-xr-xconfig.guess40
1 files changed, 25 insertions, 15 deletions
diff --git a/config.guess b/config.guess
index 51d040c2855..0b039f59230 100755
--- a/config.guess
+++ b/config.guess
@@ -14,7 +14,7 @@
14# 14#
15# You should have received a copy of the GNU General Public License 15# You should have received a copy of the GNU General Public License
16# along with this program; if not, write to the Free Software 16# along with this program; if not, write to the Free Software
17# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 17# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18# 18#
19# As a special exception to the GNU General Public License, if you 19# As a special exception to the GNU General Public License, if you
20# distribute this file as part of a program that contains a 20# distribute this file as part of a program that contains a
@@ -316,15 +316,24 @@ EOF
316 echo `echo ${UNAME_MACHINE}|sed -e 's,/.*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` 316 echo `echo ${UNAME_MACHINE}|sed -e 's,/.*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
317 exit 0 ;; 317 exit 0 ;;
318 *:Linux:*:*) 318 *:Linux:*:*)
319 # Systems without a BFD linker 319 # The BFD linker knows what the default object file format is, so
320 if test -d /usr/lib/ldscripts/. ; then 320 # first see if it will tell us.
321 : 321 ld_help_string=`ld --help 2>&1`
322 if echo $ld_help_string | grep >/dev/null 2>&1 "supported emulations: elf_i[345]86"; then
323 echo "${UNAME_MACHINE}-unknown-linux" ; exit 0
324 elif echo $ld_help_string | grep >/dev/null 2>&1 "supported emulations: i[345]86linux"; then
325 echo "${UNAME_MACHINE}-unknown-linuxaout" ; exit 0
326 elif echo $ld_help_string | grep >/dev/null 2>&1 "supported emulations: i[345]86coff"; then
327 echo "${UNAME_MACHINE}-unknown-linuxcoff" ; exit 0
328 elif test "${UNAME_MACHINE}" = "alpha" ; then
329 echo alpha-unknown-linux ; exit 0
322 else 330 else
323 echo "${UNAME_MACHINE}-unknown-linuxoldld" 331 # Either a pre-BFD a.out linker (linuxoldld) or one that does not give us
324 exit 0 332 # useful --help. Gcc wants to distinguish between linuxoldld and linuxaout.
325 fi 333 test ! -d /usr/lib/ldscripts/. \
326 # Determine whether the default compiler is a.out or elf 334 && echo "${UNAME_MACHINE}-unknown-linuxoldld" && exit 0
327 cat >dummy.c <<EOF 335 # Determine whether the default compiler is a.out or elf
336 cat >dummy.c <<EOF
328main(argc, argv) 337main(argc, argv)
329int argc; 338int argc;
330char *argv[]; 339char *argv[];
@@ -337,8 +346,9 @@ char *argv[];
337 return 0; 346 return 0;
338} 347}
339EOF 348EOF
340 ${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.c dummy && exit 0 349 ${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.c dummy && exit 0
341 rm -f dummy.c dummy;; 350 rm -f dummy.c dummy
351 fi ;;
342# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions 352# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions
343# are messed up and put the nodename in both sysname and nodename. 353# are messed up and put the nodename in both sysname and nodename.
344 i[34]86:DYNIX/ptx:4*:*) 354 i[34]86:DYNIX/ptx:4*:*)
@@ -388,19 +398,19 @@ EOF
388 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) 398 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
389 uname -p 2>/dev/null | grep 86 >/dev/null \ 399 uname -p 2>/dev/null | grep 86 >/dev/null \
390 && echo i486-ncr-sysv4 && exit 0 ;; 400 && echo i486-ncr-sysv4 && exit 0 ;;
391 m680[234]0:LynxOS:2.2*:*) 401 m680[234]0:LynxOS:2.[23]*:*)
392 echo m68k-lynx-lynxos${UNAME_RELEASE} 402 echo m68k-lynx-lynxos${UNAME_RELEASE}
393 exit 0 ;; 403 exit 0 ;;
394 mc68030:UNIX_System_V:4.*:*) 404 mc68030:UNIX_System_V:4.*:*)
395 echo m68k-atari-sysv4 405 echo m68k-atari-sysv4
396 exit 0 ;; 406 exit 0 ;;
397 i[34]86:LynxOS:2.2*:*) 407 i[34]86:LynxOS:2.[23]*:*)
398 echo i386-lynx-lynxos${UNAME_RELEASE} 408 echo i386-lynx-lynxos${UNAME_RELEASE}
399 exit 0 ;; 409 exit 0 ;;
400 TSUNAMI:LynxOS:2.2*:*) 410 TSUNAMI:LynxOS:2.[23]*:*)
401 echo sparc-lynx-lynxos${UNAME_RELEASE} 411 echo sparc-lynx-lynxos${UNAME_RELEASE}
402 exit 0 ;; 412 exit 0 ;;
403 rs6000:LynxOS:2.2*:*) 413 rs6000:LynxOS:2.[23]*:*)
404 echo rs6000-lynx-lynxos${UNAME_RELEASE} 414 echo rs6000-lynx-lynxos${UNAME_RELEASE}
405 exit 0 ;; 415 exit 0 ;;
406 RM*:SINIX-*:*:*) 416 RM*:SINIX-*:*:*)