]> sourceware.org Git - glibc.git/commitdiff
Move $os tests to set $elf et al earlier, before construction of $sysnames. Instead...
authorRoland McGrath <roland@gnu.org>
Wed, 19 Apr 1995 22:12:34 +0000 (22:12 +0000)
committerRoland McGrath <roland@gnu.org>
Wed, 19 Apr 1995 22:12:34 +0000 (22:12 +0000)
configure.in

index 16f5b7b990089cac7d7b6225d8b9d629ce74128e..11f57c9f9ff4e2520132ea4e60d1f05e30abadf6 100644 (file)
@@ -108,6 +108,19 @@ none)
   base_os='' ;;
 esac
 
+# Some configurations imply other options.
+case "$os" in
+gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
+  # These systems always use GNU tools.
+  gnu_ld=yes gnu_as=yes
+esac
+case "$os" in
+gnu*elf* | linux* | sysv4* | solaris2*)
+  # These systems always use the ELF format.
+  elf=yes
+esac
+
+
 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
 tail=$os
 ostry=$os
@@ -134,6 +147,10 @@ mach=
 tail=$machine
 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
   set $m
+  # If using ELF, look for an `elf' subdirectory of each machine directory.
+  if test "$elf" = yes; then
+    mach="$mach /$1/elf"
+  fi
   mach="$mach /$1"
   tail="$2"
 done
@@ -169,18 +186,6 @@ fi
 
 # We have now validated the configuration.
 
-# Some configurations imply other options.
-case "$host_os" in
-gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
-  # These systems always use GNU tools.
-  gnu_ld=yes gnu_as=yes
-esac
-case "$host_os" in
-gnu*elf* | linux* | sysv4* | solaris2*)
-  # These systems always use the ELF format.
-  elf=yes
-esac
-
 
 # Remove the leading slashes.
 sysnames="`echo $sysnames | sed -e 's@^/@@' -e 's@ /@ @g'`"
@@ -196,17 +201,6 @@ if test "$with_fp" = yes; then
   sysnames="`echo $fpu_dirs | sed -e 's,^/,,' -e 's, /,,g'` $sysnames"
 fi
 
-# If using ELF, prepend the machine-specific ELF ABI directory.
-if test "$elf" = yes; then
-  elf_dirs=
-  for m in $mach; do
-    if test -d $sysdep_dir$m/elf; then
-      elf_dirs="elf_dirs $m/elf"
-    fi
-  done
-  sysnames="`echo elf_dirs | sed -e 's,^/,,' -e 's, /,,g'` $sysnames"
-fi
-
 
 
 # Expand the list of system names into a full list of directories
This page took 0.045986 seconds and 5 git commands to generate.