Thu Mar 16 13:35:30 1995 Jason Merrill <jason@phydeaux.cygnus.com>
authorJason Merrill <jason@redhat.com>
Thu, 16 Mar 1995 21:37:09 +0000 (21:37 +0000)
committerJason Merrill <jason@redhat.com>
Thu, 16 Mar 1995 21:37:09 +0000 (21:37 +0000)
* configure.in: Fix --enable-shared logic in per-host.

configure.in

index 6020f273811e9786b02d7eaf9f3c8430fc0696d4..459d51a08d8a6e3aba36c5074803253eb9d5afbd 100644 (file)
@@ -171,10 +171,14 @@ if [ x${enable_shared} = xyes ]; then
     i[345]86-*-*)      waugh=config/mh-x86pic ;;
     *-*-*)             waugh=config/mh-${host_cpu}pic ;;
   esac
-  if [ -n "${host_makefile_frag}" ] && [ -f ${srcdir}/${waugh} ]; then
-    cat ${srcdir}/${host_makefile_frag} > mh-frag
-    cat ${srcdir}/${waugh} >> mh-frag
-    host_makefile_frag=mh-frag
+  if [ -f ${srcdir}/${waugh} ]; then
+    if [ -n "${host_makefile_frag}" ] ; then
+      cat ${srcdir}/${host_makefile_frag} > mh-frag
+      cat ${srcdir}/${waugh} >> mh-frag
+      host_makefile_frag=mh-frag
+    fi
+  else
+    host_makefile_frag=${waugh}
   fi
 fi