136
137
138
139
140
141
142
143
144
145
146
147
148
149
|
dnl always include inttypes.h as the very first thing.
dnl We need to put this into OBJCFLAGS and not CPPFLAGS as CPPFLAGS are
dnl also used for .S files.
OBJCFLAGS="$OBJCFLAGS -include inttypes.h"
dnl We need -latomic for GCC's atomics to work.
LIBS="$LIBS -latomic"
;;
esac
AS_IF([test x"$host_os" = x"msdosdjgpp" -a x"$build_os" = x"msdosdjgpp"], [
dnl Hack to make configure find these on DOS.
: ${AR:=ar.exe}
: ${GREP:=grep.exe}
: ${RANLIB:=ranlib.exe}
|
>
>
>
>
>
|
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
|
dnl always include inttypes.h as the very first thing.
dnl We need to put this into OBJCFLAGS and not CPPFLAGS as CPPFLAGS are
dnl also used for .S files.
OBJCFLAGS="$OBJCFLAGS -include inttypes.h"
dnl We need -latomic for GCC's atomics to work.
LIBS="$LIBS -latomic"
;;
*-*-mint*)
enable_shared="no"
enable_threads="no" # TODO
enable_sockets="no" # TODO
;;
esac
AS_IF([test x"$host_os" = x"msdosdjgpp" -a x"$build_os" = x"msdosdjgpp"], [
dnl Hack to make configure find these on DOS.
: ${AR:=ar.exe}
: ${GREP:=grep.exe}
: ${RANLIB:=ranlib.exe}
|
822
823
824
825
826
827
828
829
830
831
832
833
834
835
|
AC_CHECK_LIB(m, fmod, LIBS="$LIBS -lm")
AC_CHECK_LIB(complex, creal, TESTS_LIBS="$TESTS_LIBS -lcomplex")
AC_CHECK_FUNCS(strtof truncf)
AC_CHECK_FUNC(asprintf, [
case "$host" in
*-*-mingw*)
dnl asprintf from MinGW is broken on older Windows versions
have_asprintf="no"
;;
*-psp-*)
dnl asprintf is broken on the PSP
have_asprintf="no"
|
>
>
>
>
|
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
|
AC_CHECK_LIB(m, fmod, LIBS="$LIBS -lm")
AC_CHECK_LIB(complex, creal, TESTS_LIBS="$TESTS_LIBS -lcomplex")
AC_CHECK_FUNCS(strtof truncf)
AC_CHECK_FUNC(asprintf, [
case "$host" in
*-*-mint*)
dnl asprintf is not in headers
have_asprintf="no"
;;
*-*-mingw*)
dnl asprintf from MinGW is broken on older Windows versions
have_asprintf="no"
;;
*-psp-*)
dnl asprintf is broken on the PSP
have_asprintf="no"
|