Merge in changes from release-9.0.
authorChris Hanson <org/chris-hanson/cph>
Tue, 16 Feb 2010 08:33:33 +0000 (00:33 -0800)
committerChris Hanson <org/chris-hanson/cph>
Tue, 16 Feb 2010 08:33:33 +0000 (00:33 -0800)
1  2 
src/microcode/configure.ac
src/microcode/makegen/Makefile.in.in
src/runtime/string.scm

index 4aefa313dcd56d34f3ede43eafedebc5b1fb50ec,93464492086efae05bbb87ea2b6421a009ea5bd0..825dd36b0b2b9a368ae55d134669757b8d863b50
@@@ -943,51 -897,26 +931,41 @@@ if test "${with_libpq}" != no; the
        ])
  fi
  
- dnl Decide whether we're using static or dynamic libraries.
- if test "${enable_static_libs}" = no; then
-     AC_CHECK_FUNC([dlopen],
 +dnl Add support for X if present.
 +if test "${no_x}" != yes; then
 +    if test "x${x_includes}" != x; then
 +      FOO=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
 +      CPPFLAGS="${CPPFLAGS} ${FOO}"
 +    fi
 +    if test "x${x_libraries}" != x; then
 +      FOO=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
 +      LDFLAGS="${LDFLAGS} ${FOO}"
 +    fi
 +    MODULE_LIBS="-lX11 ${MODULE_LIBS}"
 +    MODULE_BASES="${MODULE_BASES} prx11"
 +    MODULE_AUX_BASES="${MODULE_AUX_BASES} x11base x11color x11graph x11term"
 +fi
 +
+ dnl Check for dynamic loader support.
+ AC_CHECK_FUNC([dlopen],
+     [],
+     [
+     AC_CHECK_LIB([dl], [dlopen],
        [
-       LIBS="${STATIC_LIBS} ${LIBS}"
+       AC_DEFINE([HAVE_LIBDL], [1],
+           [Define to 1 if you have the `dl' library (-ldl).])
+       LIBS="-ldl ${LIBS}"
        ],
        [
-       AC_CHECK_LIB([dl], [dlopen],
-           [
-           AC_DEFINE([HAVE_LIBDL], [1],
-               [Define to 1 if you have the `dl' library (-ldl).])
-           LIBS="${STATIC_LIBS} -ldl ${LIBS}"
-           ],
-           [
-           if test ${mit_scheme_native_code} = c; then
-               AC_MSG_ERROR(
-                   [--enable-native-code=c requires dynamic loader support])
-           fi
-           enable_static_libs=yes
-           ])
+       if test ${mit_scheme_native_code} = c; then
+           AC_MSG_ERROR(
+               [--enable-native-code=c requires dynamic loader support])
+       fi
        ])
- fi
- if test ${enable_static_libs} != no; then
-     STATIC_LIBS=${MODULE_LIBS}${STATIC_LIBS}
- else
-     STATIC_LIBS=
-     OPTIONAL_BASES="${OPTIONAL_BASES} pruxdld"
-     AC_DEFINE([UX_DLD_ENABLED], [1],
-       [Define to 1 if unix dynamic loading support is enabled.])
- fi
+     ])
+ OPTIONAL_BASES="${OPTIONAL_BASES} pruxdld"
+ AC_DEFINE([UX_DLD_ENABLED], [1],
+     [Define to 1 if unix dynamic loading support is enabled.])
  
  if test ${enable_valgrind_mode} != no; then
      SCHEME_DEFS="${SCHEME_DEFS} -DVALGRIND_MODE"
Simple merge
Simple merge