* libioP.h: Only include libc-lock.h if _IO_MTSAFE_IO is defined.
+1999-05-14 Ulrich Drepper <drepper@cygnus.com>
+
+ * configure.in: Recognize target *vxworks* and add fragment vxworks.mt.
+ * config/vxworks.mt: New file.
+ * gen-params: Let configure override HAVE_PRINTF_FP.
+
1999-05-12 Jason Merrill <jason@yorick.cygnus.com>
* configure.in (compiler_name): Don't do the skip-this-dir thing
*-isc*) frags=isc.mt ;;
*-netware*) frags=netware.mt ;;
*-dgux*) frags=dgux.mt ;;
+ *vxworks*) frags="vxworks.mt" ;;
*) frags=${target_cpu}.mt ;;
esac
echo "#define ${macro_prefix}USE_INT32_FLAGS 1"
fi
-# A little test program to check if __printf_fp is available.
-cat >dummy.c <<EOF
+if test -n "$HAVE_PRINTF_FP"; then
+ echo "#define ${macro_prefix}HAVE_PRINTF_FP $HAVE_PRINTF_FP"
+ echo "#define ${macro_prefix}HAVE_LONG_DOUBLE_IO $HAVE_LONG_DOUBLE_IO"
+else
+ # A little test program to check if __printf_fp is available.
+ cat >dummy.c <<EOF
int main()
{
return __printf_fp ();
}
EOF
-if ${CC} dummy.c >/dev/null 2>&1 ; then
- echo "#define ${macro_prefix}HAVE_PRINTF_FP 1"
- echo "#define ${macro_prefix}HAVE_LONG_DOUBLE_IO 1"
-else
- echo "#define ${macro_prefix}HAVE_PRINTF_FP 0"
- echo "#define ${macro_prefix}HAVE_LONG_DOUBLE_IO 0"
+ if ${CC} dummy.c >/dev/null 2>&1 ; then
+ echo "#define ${macro_prefix}HAVE_PRINTF_FP 1"
+ echo "#define ${macro_prefix}HAVE_LONG_DOUBLE_IO 1"
+ else
+ echo "#define ${macro_prefix}HAVE_PRINTF_FP 0"
+ echo "#define ${macro_prefix}HAVE_LONG_DOUBLE_IO 0"
+ fi
fi
# Uncomment the following line if you don't have working templates.