Lines Matching +full:binutils +full:- +full:mingw +full:- +full:w64
1 dnl Copyright (C) 1999-2022 Erik de Castro Lopo <erikd@mega-nerd.com>.
6 AC_INIT([libsndfile],[1.2.0],[sndfile@mega-nerd.com],
18 dnl AC_PROG_CXX do not add -g -O2
24 dnl Put config stuff in 'build-aux'.
25 AC_CONFIG_AUX_DIR([build-aux])
33 AM_INIT_AUTOMAKE([1.14 foreign dist-xz no-dist-gzip serial-tests subdir-objects])
60 LT_INIT([disable-static win32-dll])
70 AC_CHECK_PROG([HAVE_XCODE_SELECT], [xcode-select], [yes], [no])
72 dnl ------------------------------------------------------------------------------------
88 dnl This is libtool version of library, we add it to `--version-info` property.
96 dnl The formula is: c:r:a -> c-a:a:r
98 m4_define([abi_version_major], [m4_eval(lt_current - lt_age)])
102 dnl ------------------------------------------------------------------------------------
121 [test "x${build_os}:${host_os}:${HAVE_WINE}" = "xlinux-gnu:mingw32msvc:yes"])
132 AS_HELP_STRING([--enable-experimental], [enable experimental code]))
142 [AS_HELP_STRING([--enable-werror], [enable -Werror in all Makefiles])])
144 AC_ARG_ENABLE([cpu-clip],
145 [AS_HELP_STRING([--disable-cpu-clip], [disable tricky cpu specific clipper])])
147 AC_ARG_ENABLE([bow-docs],
148 [AS_HELP_STRING([--enable-bow-docs], [enable black-on-white html docs])])
151 [AS_HELP_STRING([--disable-sqlite], [disable use of sqlite])])
154 …[AS_HELP_STRING([--disable-alsa], [disable ALSA support (default=autodetect)])], [], [enable_alsa=…
156 AC_ARG_ENABLE([external-libs],
157 [AS_HELP_STRING([--disable-external-libs], [disable use of FLAC, Ogg and Vorbis [[default=no]]])])
160 [AS_HELP_STRING([--disable-mpeg], [disable use of LAME/MPG123 for MPEG (MP3) [[defaults=no]]])])
163 [AS_HELP_STRING([--enable-octave], [enable building of GNU Octave module])])
165 AC_ARG_ENABLE([full-suite],
166 …[AS_HELP_STRING([--disable-full-suite], [disable building and installing programs, documentation, …
169 AC_ARG_ENABLE([test-coverage],
170 [AS_HELP_STRING([--enable-test-coverage], [enable test coverage])])
174 [AS_HELP_STRING([--enable-ossfuzzers], [Whether to generate the fuzzers for OSS-Fuzz])])
178 AM_CONDITIONAL([USE_OSSFUZZ_FLAG], [test "x$LIB_FUZZING_ENGINE" = "x-fsanitize=fuzzer"])
179 AM_CONDITIONAL([USE_OSSFUZZ_STATIC], [test -f "$LIB_FUZZING_ENGINE"])
204 AC_DEFINE([__USE_MINGW_ANSI_STDIO], [1], [Set to 1 to use C99 printf/snprintf in MinGW.])
234 dnl Determine endian-ness of host processor.
237 dnl big-endian
241 dnl little-endian
288 dnl Check for pkg-config outside the if statement.
293 AS_IF([test -n "$PKG_CONFIG"], [
313 dnl See: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=549899
356 AS_IF([test -n "$PKG_CONFIG"], [
380 EXTERNAL_MPEG_LIBS="-lmp3lame"
432 developer_path=`xcode-select --print-path`
436 OS_SPECIFIC_LINKS="-framework CoreAudio -framework AudioToolbox -framework CoreFoundation"],
437 [mingw*], [
440 OS_SPECIFIC_LINKS="-lwinmm"],
448 AM_CONDITIONAL(USE_WIN_VERSION_FILE, test ${use_windows_api} -eq 1)
456 dnl order to dodge wrong cross-compilation pickups
483 dnl explicitly passed --enable-alsa, hence error out loud and clearly
486 dnl did not explicitly pass --enable-alsa, relying on default automagic on
501 SNDIO_LIBS="-lsndio"
509 dnl Test for sanity when cross-compiling.
558 AX_APPEND_COMPILE_FLAGS([-O2 -pipe], [CFLAGS])
561 AX_APPEND_COMPILE_FLAGS([-O2 -pipe], [CXXFLAGS])
566 ldflags_test="-Wl,-dead_strip_dylibs"],
568 ldflags_test="-Wl,-O1 -Wl,--as-needed -Wl,--no-undefined -Wl,--gc-sections"]
574 AX_APPEND_COMPILE_FLAGS([-Werror], [CFLAGS])
577 AX_APPEND_COMPILE_FLAGS([-Werror], [CXXFLAGS])
581 common_flags="-Wall -Wextra -Wpointer-arith -Wcast-align -Wcast-qual -Wshadow -Wwrite-strings -Wund…
583 dnl Clang doesn't know about -Wno-format-truncation
586 common_cflags+=" -Wno-format-truncation"
590 common_cxxflags+=" -Wno-format-truncation"
593 …${common_cflags} -Wvla -Wbad-function-cast -Wnested-externs -Wstrict-prototypes -Wmissing-prototyp…
596 …END_COMPILE_FLAGS([${common_cxxflags} -Wctor-dtor-privacy -Wnon-virtual-dtor -Woverloaded-virtual …
600 AX_APPEND_COMPILE_FLAGS([-coverage], [CFLAGS])
612 dnl Disable -Wall, -pedantic and -Wshadow for Apple Darwin/Rhapsody.
614 …temp_CFLAGS=`echo $CFLAGS | $SED "s/-Wall -pedantic//" | $SED "s/-Wshadow//" | $SED "s/-Waggregate…
616 SHLIB_VERSION_ARG="-Wl,-exported_symbols_list -Wl,\$(top_srcdir)/src/Symbols.darwin"],
617 [mingw*], [
618 SHLIB_VERSION_ARG="-Wc,-static-libgcc -Wl,\$(top_srcdir)/src/libsndfile-1.def"
623 AX_APPEND_COMPILE_FLAGS([-mstackrealign], [CFLAGS])
626 SHLIB_VERSION_ARG="-Wl,-export-symbols \$(top_srcdir)/src/Symbols.os2"
632 …[$host_os], [linux*|kfreebsd*-gnu*|gnu*], [SHLIB_VERSION_ARG="-Wl,--version-script=\$(top_srcdir)…
643 HOST_TRIPLET="${host_cpu}-${host_vendor}-${host_os}"
647 AS_IF([test "$HOST_TRIPLET" = "x86_64-w64-mingw32"], [
648 OS_SPECIFIC_LINKS=" -static-libgcc $OS_SPECIFIC_LINKS"
651 WIN_RC_VERSION=`echo $PACKAGE_VERSION | $SED -e "s/pre.*//" -e "s/beta.*//" -e "s/\./,/g"`
662 dnl -------------------------------------------------------------------------------
698 src/version-metadata.rc
699 tests/test_wrapper.sh tests/pedantic-header-test.sh
701 Scripts/build-test-tarball.mk
707 AS_IF([test -z "$PKG_CONFIG"], [
709 AS_ECHO([" *** The pkg-config program is missing. ***"])
711 AS_ECHO([" *** http://pkg-config.freedesktop.org/wiki/ ***"])
720 -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-=-
735 Experimental code : ................... ${enable_experimental:-no}
736 Using ALSA in example programs : ...... ${enable_alsa:-no}
737 External FLAC/Ogg/Vorbis/Opus : ....... ${enable_external_libs:-no}
738 External MPEG Lame/MPG123 : ........... ${enable_mpeg:-no}
746 Sanitizer enabled : ................... ${enable_sanitizer:-no}
760 dnl Remove symlink created by Scripts/android-configure.sh.
761 rm -f gdbclient