Erik de Castro Lopo | 06ed05e | 2012-02-01 17:55:50 +1100 | [diff] [blame] | 1 | # FLAC - Free Lossless Audio Codec |
| 2 | # Copyright (C) 2001,2002,2003,2004,2005,2006,2007,2008,2009 Josh Coalson |
| 3 | # |
| 4 | # This file is part the FLAC project. FLAC is comprised of several |
Ulrich Klauer | cd4ddab | 2013-05-26 22:53:43 +0200 | [diff] [blame] | 5 | # components distributed under different licenses. The codec libraries |
Erik de Castro Lopo | 06ed05e | 2012-02-01 17:55:50 +1100 | [diff] [blame] | 6 | # are distributed under Xiph.Org's BSD-like license (see the file |
| 7 | # COPYING.Xiph in this distribution). All other programs, libraries, and |
| 8 | # plugins are distributed under the GPL (see COPYING.GPL). The documentation |
| 9 | # is distributed under the Gnu FDL (see COPYING.FDL). Each file in the |
| 10 | # FLAC distribution contains at the top the terms under which it may be |
| 11 | # distributed. |
| 12 | # |
| 13 | # Since this particular file is relevant to all components of FLAC, |
| 14 | # it may be distributed under the Xiph.Org license, which is the least |
| 15 | # restrictive of those mentioned above. See the file COPYING.Xiph in this |
| 16 | # distribution. |
| 17 | |
| 18 | # NOTE that for many of the AM_CONDITIONALs we use the prefix FLaC__ |
| 19 | # instead of FLAC__ since autoconf triggers off 'AC_' in strings |
| 20 | |
Cristian Rodríguez | 9b7cb22 | 2012-04-07 19:24:21 -0300 | [diff] [blame] | 21 | AC_PREREQ(2.60) |
Erik de Castro Lopo | ac39d37 | 2017-01-01 11:54:07 +1100 | [diff] [blame] | 22 | AC_INIT([flac], [1.3.2], [flac-dev@xiph.org], [flac], [https://www.xiph.org/flac/]) |
Max Horn | 0b47ede | 2012-12-12 21:33:55 +0100 | [diff] [blame] | 23 | AC_CONFIG_HEADERS([config.h]) |
Cristian Rodríguez | 9b7cb22 | 2012-04-07 19:24:21 -0300 | [diff] [blame] | 24 | AC_CONFIG_SRCDIR([src/flac/main.c]) |
| 25 | AC_CONFIG_MACRO_DIR([m4]) |
Erik de Castro Lopo | 723cfa3 | 2014-12-01 05:28:02 +1100 | [diff] [blame] | 26 | AM_INIT_AUTOMAKE([foreign 1.10 -Wall tar-pax no-dist-gzip dist-xz subdir-objects]) |
Erik de Castro Lopo | 886b960 | 2012-02-03 05:52:01 +1100 | [diff] [blame] | 27 | m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) |
Erik de Castro Lopo | 06ed05e | 2012-02-01 17:55:50 +1100 | [diff] [blame] | 28 | |
David Seifert | b3ece71 | 2017-01-15 10:37:02 +0100 | [diff] [blame] | 29 | AC_MSG_CHECKING([whether configure should try to set CFLAGS/CXXFLAGS/CPPFLAGS/LDFLAGS]) |
| 30 | AS_IF([test "x${CFLAGS+set}" = "xset" || test "x${CXXFLAGS+set}" = "xset" || test "x${CPPFLAGS+set}" = "xset" || test "x${LDFLAGS+set}" = "xset"], |
| 31 | [enable_flags_setting=no], |
| 32 | [enable_flags_setting=yes] |
| 33 | ) |
| 34 | AC_MSG_RESULT([${enable_flags_setting}]) |
| 35 | AX_CHECK_ENABLE_DEBUG |
Miroslav Lichvar | 18e0154 | 2012-12-03 21:04:56 +0100 | [diff] [blame] | 36 | user_cflags=$CFLAGS |
| 37 | |
Cristian Rodríguez | f029625 | 2012-04-05 19:39:37 -0300 | [diff] [blame] | 38 | #Prefer whatever the current ISO standard is. |
| 39 | AC_PROG_CC_STDC |
| 40 | AC_USE_SYSTEM_EXTENSIONS |
Cristian Rodríguez | 63c874f | 2012-06-02 17:00:56 -0400 | [diff] [blame] | 41 | m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) |
Cristian Rodríguez | 9b7cb22 | 2012-04-07 19:24:21 -0300 | [diff] [blame] | 42 | LT_INIT([win32-dll disable-static pic-only]) |
Erik de Castro Lopo | 06ed05e | 2012-02-01 17:55:50 +1100 | [diff] [blame] | 43 | AM_PROG_AS |
| 44 | AC_PROG_CXX |
Erik de Castro Lopo | a6a4b6f | 2013-11-22 18:13:36 +1100 | [diff] [blame] | 45 | XIPH_C_COMPILER_IS_CLANG |
| 46 | XIPH_GCC_REALLY_IS_GCC |
Erik de Castro Lopo | 06ed05e | 2012-02-01 17:55:50 +1100 | [diff] [blame] | 47 | AC_PROG_MAKE_SET |
Erik de Castro Lopo | 95bc23a | 2014-03-21 18:27:37 +1100 | [diff] [blame] | 48 | AC_PROG_MKDIR_P |
Erik de Castro Lopo | 06ed05e | 2012-02-01 17:55:50 +1100 | [diff] [blame] | 49 | |
| 50 | AC_SYS_LARGEFILE |
| 51 | AC_FUNC_FSEEKO |
| 52 | |
Erik de Castro Lopo | 6497ce1 | 2013-03-13 21:54:15 +1100 | [diff] [blame] | 53 | AC_CHECK_SIZEOF(off_t,1) # Fake default value. |
Max Horn | 0b47ede | 2012-12-12 21:33:55 +0100 | [diff] [blame] | 54 | AC_CHECK_SIZEOF([void*]) |
Cristian Rodríguez | 9b7cb22 | 2012-04-07 19:24:21 -0300 | [diff] [blame] | 55 | AC_SEARCH_LIBS([lround],[m], [AC_DEFINE(HAVE_LROUND,1,lround support)]) |
Erik de Castro Lopo | 06ed05e | 2012-02-01 17:55:50 +1100 | [diff] [blame] | 56 | |
Max Horn | 0b47ede | 2012-12-12 21:33:55 +0100 | [diff] [blame] | 57 | AC_LANG_PUSH([C++]) |
Erik de Castro Lopo | 06ed05e | 2012-02-01 17:55:50 +1100 | [diff] [blame] | 58 | # c++ flavor first |
| 59 | AC_C_VARARRAYS |
| 60 | if test $ac_cv_c_vararrays = yes; then |
| 61 | AC_DEFINE([HAVE_CXX_VARARRAYS], 1, [Define to 1 if C++ supports variable-length arrays.]) |
| 62 | fi |
Max Horn | 0b47ede | 2012-12-12 21:33:55 +0100 | [diff] [blame] | 63 | AC_LANG_POP([C++]) |
Erik de Castro Lopo | 3abb6c9 | 2012-02-05 18:58:11 +1100 | [diff] [blame] | 64 | |
Erik de Castro Lopo | 06ed05e | 2012-02-01 17:55:50 +1100 | [diff] [blame] | 65 | # c flavor |
| 66 | AC_HEADER_STDC |
Erik de Castro Lopo | afedee1 | 2012-04-04 20:08:52 +1000 | [diff] [blame] | 67 | AM_PROG_CC_C_O |
Erik de Castro Lopo | 3abb6c9 | 2012-02-05 18:58:11 +1100 | [diff] [blame] | 68 | AC_C_INLINE |
| 69 | AC_C_VARARRAYS |
Cristian Rodríguez | f029625 | 2012-04-05 19:39:37 -0300 | [diff] [blame] | 70 | AC_C_TYPEOF |
Erik de Castro Lopo | 06ed05e | 2012-02-01 17:55:50 +1100 | [diff] [blame] | 71 | |
Erik de Castro Lopo | 7411724 | 2016-01-26 13:35:10 +1100 | [diff] [blame] | 72 | AC_CHECK_HEADERS([stdint.h inttypes.h byteswap.h sys/param.h sys/ioctl.h termios.h x86intrin.h cpuid.h]) |
Cristian Rodríguez | f029625 | 2012-04-05 19:39:37 -0300 | [diff] [blame] | 73 | |
Erik de Castro Lopo | d7bfc77 | 2012-02-06 07:15:48 +1100 | [diff] [blame] | 74 | XIPH_C_BSWAP32 |
Ralph Giles | 7a671e7 | 2014-11-04 11:58:45 -0800 | [diff] [blame] | 75 | XIPH_C_BSWAP16 |
Erik de Castro Lopo | d7bfc77 | 2012-02-06 07:15:48 +1100 | [diff] [blame] | 76 | |
Max Horn | f20164e | 2012-12-12 21:33:51 +0100 | [diff] [blame] | 77 | ac_cv_c_big_endian=0 |
| 78 | ac_cv_c_little_endian=0 |
| 79 | AC_C_BIGENDIAN([ac_cv_c_big_endian=1], [ac_cv_c_little_endian=1], [ |
| 80 | AC_MSG_WARN([[*****************************************************************]]) |
| 81 | AC_MSG_WARN([[*** Not able to determine endian-ness of target processor. ]]) |
| 82 | AC_MSG_WARN([[*** The constants CPU_IS_BIG_ENDIAN and CPU_IS_LITTLE_ENDIAN in ]]) |
| 83 | AC_MSG_WARN([[*** config.h may need to be hand editied. ]]) |
| 84 | AC_MSG_WARN([[*****************************************************************]]) |
| 85 | ]) |
Erik de Castro Lopo | 3abb6c9 | 2012-02-05 18:58:11 +1100 | [diff] [blame] | 86 | AC_DEFINE_UNQUOTED(CPU_IS_BIG_ENDIAN, ${ac_cv_c_big_endian}, |
| 87 | [Target processor is big endian.]) |
| 88 | AC_DEFINE_UNQUOTED(CPU_IS_LITTLE_ENDIAN, ${ac_cv_c_little_endian}, |
| 89 | [Target processor is little endian.]) |
| 90 | AC_DEFINE_UNQUOTED(WORDS_BIGENDIAN, ${ac_cv_c_big_endian}, |
| 91 | [Target processor is big endian.]) |
Erik de Castro Lopo | 06ed05e | 2012-02-01 17:55:50 +1100 | [diff] [blame] | 92 | |
Erik de Castro Lopo | 1ec41a9 | 2013-08-11 21:46:18 +1000 | [diff] [blame] | 93 | AC_ARG_ENABLE(asm-optimizations, AC_HELP_STRING([--disable-asm-optimizations], [Don't use any assembly optimization routines]), asm_opt=no, asm_opt=yes) |
| 94 | dnl ' Terminate the damn single quote |
| 95 | AM_CONDITIONAL(FLaC__NO_ASM, test "x$asm_opt" = xno) |
| 96 | if test "x$asm_opt" = xno ; then |
| 97 | AC_DEFINE(FLAC__NO_ASM) |
| 98 | AH_TEMPLATE(FLAC__NO_ASM, [define to disable use of assembly code]) |
| 99 | fi |
| 100 | |
Erik de Castro Lopo | 3abb6c9 | 2012-02-05 18:58:11 +1100 | [diff] [blame] | 101 | # For the XMMS plugin. |
Erik de Castro Lopo | 06ed05e | 2012-02-01 17:55:50 +1100 | [diff] [blame] | 102 | AC_CHECK_TYPES(socklen_t, [], []) |
| 103 | |
| 104 | dnl check for getopt in standard library |
| 105 | dnl AC_CHECK_FUNCS(getopt_long , , [LIBOBJS="$LIBOBJS getopt.o getopt1.o"] ) |
| 106 | AC_CHECK_FUNCS(getopt_long, [], []) |
| 107 | |
Erik de Castro Lopo | 1ec41a9 | 2013-08-11 21:46:18 +1000 | [diff] [blame] | 108 | AC_CHECK_SIZEOF(void*,1) |
| 109 | |
| 110 | asm_optimisation=no |
Erik de Castro Lopo | 06ed05e | 2012-02-01 17:55:50 +1100 | [diff] [blame] | 111 | case "$host_cpu" in |
Christian Weisgerber | b5a10e7 | 2015-01-09 22:37:37 +0000 | [diff] [blame] | 112 | amd64|x86_64) |
Erik de Castro Lopo | 7566d3d | 2015-03-11 20:51:42 +1100 | [diff] [blame] | 113 | case "$host" in |
| 114 | *gnux32) |
| 115 | # x32 user space and 64 bit kernel. |
| 116 | cpu_x86_64=true |
| 117 | AC_DEFINE(FLAC__CPU_X86_64) |
| 118 | AH_TEMPLATE(FLAC__CPU_X86_64, [define if building for x86_64]) |
| 119 | asm_optimisation=$asm_opt |
| 120 | ;; |
| 121 | *) |
| 122 | if test $ac_cv_sizeof_voidp = 4 ; then |
| 123 | # This must be a 32 bit user space running on 64 bit kernel so treat |
| 124 | # this as ia32. |
| 125 | cpu_ia32=true |
| 126 | AC_DEFINE(FLAC__CPU_IA32) |
| 127 | AH_TEMPLATE(FLAC__CPU_IA32, [define if building for ia32/i386]) |
| 128 | else |
| 129 | # x86_64 user space and kernel. |
| 130 | cpu_x86_64=true |
| 131 | AC_DEFINE(FLAC__CPU_X86_64) |
| 132 | AH_TEMPLATE(FLAC__CPU_X86_64, [define if building for x86_64]) |
| 133 | fi |
| 134 | asm_optimisation=$asm_opt |
| 135 | ;; |
| 136 | esac |
Erik de Castro Lopo | 1ec41a9 | 2013-08-11 21:46:18 +1000 | [diff] [blame] | 137 | ;; |
Erik de Castro Lopo | 06ed05e | 2012-02-01 17:55:50 +1100 | [diff] [blame] | 138 | i*86) |
| 139 | cpu_ia32=true |
| 140 | AC_DEFINE(FLAC__CPU_IA32) |
| 141 | AH_TEMPLATE(FLAC__CPU_IA32, [define if building for ia32/i386]) |
Erik de Castro Lopo | 1ec41a9 | 2013-08-11 21:46:18 +1000 | [diff] [blame] | 142 | asm_optimisation=$asm_opt |
Erik de Castro Lopo | 06ed05e | 2012-02-01 17:55:50 +1100 | [diff] [blame] | 143 | ;; |
Erik de Castro Lopo | 592021e | 2012-12-28 09:49:50 +1100 | [diff] [blame] | 144 | powerpc|powerpc64) |
Erik de Castro Lopo | 06ed05e | 2012-02-01 17:55:50 +1100 | [diff] [blame] | 145 | cpu_ppc=true |
| 146 | AC_DEFINE(FLAC__CPU_PPC) |
| 147 | AH_TEMPLATE(FLAC__CPU_PPC, [define if building for PowerPC]) |
Erik de Castro Lopo | 1ec41a9 | 2013-08-11 21:46:18 +1000 | [diff] [blame] | 148 | asm_optimisation=$asm_opt |
Erik de Castro Lopo | 06ed05e | 2012-02-01 17:55:50 +1100 | [diff] [blame] | 149 | ;; |
| 150 | sparc) |
| 151 | cpu_sparc=true |
| 152 | AC_DEFINE(FLAC__CPU_SPARC) |
| 153 | AH_TEMPLATE(FLAC__CPU_SPARC, [define if building for SPARC]) |
Erik de Castro Lopo | 1ec41a9 | 2013-08-11 21:46:18 +1000 | [diff] [blame] | 154 | asm_optimisation=$asm_opt |
Erik de Castro Lopo | 06ed05e | 2012-02-01 17:55:50 +1100 | [diff] [blame] | 155 | ;; |
| 156 | esac |
Erik de Castro Lopo | b8d58e3 | 2014-06-15 20:29:34 +1000 | [diff] [blame] | 157 | AM_CONDITIONAL(FLAC__CPU_X86_64, test "x$cpu_x86_64" = xtrue) |
Erik de Castro Lopo | 06ed05e | 2012-02-01 17:55:50 +1100 | [diff] [blame] | 158 | AM_CONDITIONAL(FLaC__CPU_IA32, test "x$cpu_ia32" = xtrue) |
| 159 | AM_CONDITIONAL(FLaC__CPU_PPC, test "x$cpu_ppc" = xtrue) |
| 160 | AM_CONDITIONAL(FLaC__CPU_SPARC, test "x$cpu_sparc" = xtrue) |
| 161 | |
Erik de Castro Lopo | 336f6a5 | 2015-02-25 06:40:53 +1100 | [diff] [blame] | 162 | if test "x$ac_cv_header_x86intrin_h" = xyes; then |
| 163 | AC_DEFINE([FLAC__HAS_X86INTRIN], 1, [Set to 1 if <x86intrin.h> is available.]) |
Erik de Castro Lopo | 36a0ab1 | 2016-06-20 20:29:59 +1000 | [diff] [blame] | 164 | else |
| 165 | AC_DEFINE([FLAC__HAS_X86INTRIN], 0) |
Erik de Castro Lopo | 336f6a5 | 2015-02-25 06:40:53 +1100 | [diff] [blame] | 166 | fi |
Erik de Castro Lopo | b72540b | 2013-09-15 09:42:29 +1000 | [diff] [blame] | 167 | |
Erik de Castro Lopo | 06ed05e | 2012-02-01 17:55:50 +1100 | [diff] [blame] | 168 | case "$host" in |
| 169 | i386-*-openbsd3.[[0-3]]) OBJ_FORMAT=aoutb ;; |
| 170 | *-*-cygwin|*mingw*) OBJ_FORMAT=win32 ;; |
| 171 | *-*-darwin*) OBJ_FORMAT=macho ;; |
Erik de Castro Lopo | 0fe9767 | 2012-02-05 16:29:43 +1100 | [diff] [blame] | 172 | *emx*) OBJ_FORMAT=aout ;; |
sezero | 31b219f | 2017-01-13 17:51:06 +0300 | [diff] [blame] | 173 | *djgpp) OBJ_FORMAT=coff ;; |
Erik de Castro Lopo | 06ed05e | 2012-02-01 17:55:50 +1100 | [diff] [blame] | 174 | *) OBJ_FORMAT=elf ;; |
| 175 | esac |
| 176 | AC_SUBST(OBJ_FORMAT) |
| 177 | |
Erik de Castro Lopo | 2199d08 | 2013-04-01 19:57:13 +1100 | [diff] [blame] | 178 | os_is_windows=no |
Erik de Castro Lopo | 06ed05e | 2012-02-01 17:55:50 +1100 | [diff] [blame] | 179 | case "$host" in |
Rosen Penev | c669249 | 2017-02-08 19:42:42 -0800 | [diff] [blame] | 180 | *mingw*) |
Erik de Castro Lopo | f44c353 | 2013-04-02 06:27:07 +1100 | [diff] [blame] | 181 | CPPFLAGS="-D__MSVCRT_VERSION__=0x0601 $CPPFLAGS" |
Erik de Castro Lopo | 2199d08 | 2013-04-01 19:57:13 +1100 | [diff] [blame] | 182 | os_is_windows=yes |
Erik de Castro Lopo | 06ed05e | 2012-02-01 17:55:50 +1100 | [diff] [blame] | 183 | ;; |
Erik de Castro Lopo | 06ed05e | 2012-02-01 17:55:50 +1100 | [diff] [blame] | 184 | esac |
Cristian Rodríguez | 355f4aa | 2013-07-21 01:28:51 -0400 | [diff] [blame] | 185 | |
Erik de Castro Lopo | 2199d08 | 2013-04-01 19:57:13 +1100 | [diff] [blame] | 186 | AM_CONDITIONAL(OS_IS_WINDOWS, test "x$os_is_windows" = xyes) |
Erik de Castro Lopo | 06ed05e | 2012-02-01 17:55:50 +1100 | [diff] [blame] | 187 | |
| 188 | case "$host" in |
Peter Korsgaard | 5572155 | 2017-01-09 22:19:01 +0100 | [diff] [blame] | 189 | *-linux-*) |
Erik de Castro Lopo | 06ed05e | 2012-02-01 17:55:50 +1100 | [diff] [blame] | 190 | sys_linux=true |
| 191 | AC_DEFINE(FLAC__SYS_LINUX) |
| 192 | AH_TEMPLATE(FLAC__SYS_LINUX, [define if building for Linux]) |
| 193 | ;; |
| 194 | *-*-darwin*) |
| 195 | sys_darwin=true |
| 196 | AC_DEFINE(FLAC__SYS_DARWIN) |
| 197 | AH_TEMPLATE(FLAC__SYS_DARWIN, [define if building for Darwin / MacOS X]) |
| 198 | ;; |
| 199 | esac |
| 200 | AM_CONDITIONAL(FLaC__SYS_DARWIN, test "x$sys_darwin" = xtrue) |
| 201 | AM_CONDITIONAL(FLaC__SYS_LINUX, test "x$sys_linux" = xtrue) |
| 202 | |
Erik de Castro Lopo | 899599e | 2013-09-25 23:26:49 +1000 | [diff] [blame] | 203 | if test "x$cpu_ia32" = xtrue || test "x$cpu_x86_64" = xtrue ; then |
Erik de Castro Lopo | 06ed05e | 2012-02-01 17:55:50 +1100 | [diff] [blame] | 204 | AC_DEFINE(FLAC__ALIGN_MALLOC_DATA) |
| 205 | AH_TEMPLATE(FLAC__ALIGN_MALLOC_DATA, [define to align allocated memory on 32-byte boundaries]) |
| 206 | fi |
| 207 | |
David Seifert | b3ece71 | 2017-01-15 10:37:02 +0100 | [diff] [blame] | 208 | AM_CONDITIONAL([DEBUG], [test "x${ax_enable_debug}" = "xyes" || test "x${ax_enable_debug}" = "xinfo"]) |
Erik de Castro Lopo | 06ed05e | 2012-02-01 17:55:50 +1100 | [diff] [blame] | 209 | |
| 210 | AC_ARG_ENABLE(sse, |
Erik de Castro Lopo | f39a0ea | 2016-12-05 05:37:44 +1100 | [diff] [blame] | 211 | AC_HELP_STRING([--disable-sse], [Disable passing of -msse2 to the compiler]), |
Erik de Castro Lopo | 06ed05e | 2012-02-01 17:55:50 +1100 | [diff] [blame] | 212 | [case "${enableval}" in |
Erik de Castro Lopo | 9863998 | 2014-03-15 16:47:49 +1100 | [diff] [blame] | 213 | yes) sse_os=yes ;; |
| 214 | no) sse_os=no ;; |
Erik de Castro Lopo | 06ed05e | 2012-02-01 17:55:50 +1100 | [diff] [blame] | 215 | *) AC_MSG_ERROR(bad value ${enableval} for --enable-sse) ;; |
Erik de Castro Lopo | 9863998 | 2014-03-15 16:47:49 +1100 | [diff] [blame] | 216 | esac],[sse_os=yes]) |
Erik de Castro Lopo | 06ed05e | 2012-02-01 17:55:50 +1100 | [diff] [blame] | 217 | |
Erik de Castro Lopo | 06ed05e | 2012-02-01 17:55:50 +1100 | [diff] [blame] | 218 | AC_ARG_ENABLE(altivec, |
| 219 | AC_HELP_STRING([--disable-altivec], [Disable Altivec optimizations]), |
| 220 | [case "${enableval}" in |
| 221 | yes) use_altivec=true ;; |
| 222 | no) use_altivec=false ;; |
| 223 | *) AC_MSG_ERROR(bad value ${enableval} for --enable-altivec) ;; |
| 224 | esac],[use_altivec=true]) |
| 225 | AM_CONDITIONAL(FLaC__USE_ALTIVEC, test "x$use_altivec" = xtrue) |
| 226 | if test "x$use_altivec" = xtrue ; then |
| 227 | AC_DEFINE(FLAC__USE_ALTIVEC) |
| 228 | AH_TEMPLATE(FLAC__USE_ALTIVEC, [define to enable use of Altivec instructions]) |
| 229 | fi |
| 230 | |
Anton Blanchard | 5e0d418 | 2018-07-08 14:55:03 +1000 | [diff] [blame^] | 231 | AC_ARG_ENABLE(vsx, |
| 232 | AC_HELP_STRING([--disable-vsx], [Disable VSX optimizations]), |
| 233 | [case "${enableval}" in |
| 234 | yes) use_vsx=true ;; |
| 235 | no) use_vsx=false ;; |
| 236 | *) AC_MSG_ERROR(bad value ${enableval} for --enable-vsx) ;; |
| 237 | esac],[use_vsx=true]) |
| 238 | AM_CONDITIONAL(FLaC__USE_VSX, test "x$use_vsx" = xtrue) |
| 239 | if test "x$use_vsx" = xtrue ; then |
| 240 | AC_DEFINE(FLAC__USE_VSX) |
| 241 | AH_TEMPLATE(FLAC__USE_VSX, [define to enable use of VSX instructions]) |
| 242 | fi |
| 243 | |
Dave Yeo | 0435a23 | 2016-01-24 22:09:50 -0800 | [diff] [blame] | 244 | AC_ARG_ENABLE(avx, |
| 245 | AC_HELP_STRING([--disable-avx], [Disable AVX, AVX2 optimizations]), |
| 246 | [case "${enableval}" in |
| 247 | yes) use_avx=true ;; |
| 248 | no) use_avx=false ;; |
| 249 | *) AC_MSG_ERROR(bad value ${enableval} for --enable-avx) ;; |
| 250 | esac],[use_avx=true]) |
| 251 | AM_CONDITIONAL(FLaC__USE_AVX, test "x$use_avx" = xtrue) |
| 252 | if test "x$use_avx" = xtrue ; then |
| 253 | AC_DEFINE(FLAC__USE_AVX) |
| 254 | AH_TEMPLATE(FLAC__USE_AVX, [define to enable use of AVX instructions]) |
| 255 | fi |
| 256 | |
Erik de Castro Lopo | 06ed05e | 2012-02-01 17:55:50 +1100 | [diff] [blame] | 257 | AC_ARG_ENABLE(thorough-tests, |
| 258 | AC_HELP_STRING([--disable-thorough-tests], [Disable thorough (long) testing, do only basic tests]), |
| 259 | [case "${enableval}" in |
| 260 | yes) thorough_tests=true ;; |
| 261 | no) thorough_tests=false ;; |
| 262 | *) AC_MSG_ERROR(bad value ${enableval} for --enable-thorough-tests) ;; |
| 263 | esac],[thorough_tests=true]) |
| 264 | AC_ARG_ENABLE(exhaustive-tests, |
| 265 | AC_HELP_STRING([--enable-exhaustive-tests], [Enable exhaustive testing (VERY long)]), |
| 266 | [case "${enableval}" in |
| 267 | yes) exhaustive_tests=true ;; |
| 268 | no) exhaustive_tests=false ;; |
| 269 | *) AC_MSG_ERROR(bad value ${enableval} for --enable-exhaustive-tests) ;; |
| 270 | esac],[exhaustive_tests=false]) |
| 271 | if test "x$thorough_tests" = xfalse ; then |
| 272 | FLAC__TEST_LEVEL=0 |
| 273 | elif test "x$exhaustive_tests" = xfalse ; then |
| 274 | FLAC__TEST_LEVEL=1 |
| 275 | else |
| 276 | FLAC__TEST_LEVEL=2 |
| 277 | fi |
| 278 | AC_SUBST(FLAC__TEST_LEVEL) |
| 279 | |
Erik de Castro Lopo | 2c45537 | 2014-04-08 20:48:13 +1000 | [diff] [blame] | 280 | AC_ARG_ENABLE(werror, |
| 281 | AC_HELP_STRING([--enable-werror], [Enable -Werror in all Makefiles])) |
Erik de Castro Lopo | 195470f | 2013-03-13 18:58:16 +1100 | [diff] [blame] | 282 | |
| 283 | AC_ARG_ENABLE(stack-smash-protection, |
| 284 | AC_HELP_STRING([--enable-stack-smash-protection], [Enable GNU GCC stack smash protection])) |
Erik de Castro Lopo | 06ed05e | 2012-02-01 17:55:50 +1100 | [diff] [blame] | 285 | |
Erik de Castro Lopo | a3224c0 | 2016-01-04 11:29:03 +1100 | [diff] [blame] | 286 | AC_ARG_ENABLE(64-bit-words, |
| 287 | AC_HELP_STRING([--enable-64-bit-words], [Set FLAC__BYTES_PER_WORD to 8 (4 is the default)])) |
| 288 | if test "x$enable_64_bit_words" = xyes ; then |
| 289 | AC_DEFINE_UNQUOTED([ENABLE_64_BIT_WORDS],1,[Set FLAC__BYTES_PER_WORD to 8 (4 is the default)]) |
| 290 | else |
| 291 | AC_DEFINE_UNQUOTED([ENABLE_64_BIT_WORDS],0) |
| 292 | fi |
| 293 | AC_SUBST(ENABLE_64_BIT_WORDS) |
| 294 | |
Erik de Castro Lopo | 06ed05e | 2012-02-01 17:55:50 +1100 | [diff] [blame] | 295 | AC_ARG_ENABLE(valgrind-testing, |
| 296 | AC_HELP_STRING([--enable-valgrind-testing], [Run all tests inside Valgrind]), |
| 297 | [case "${enableval}" in |
| 298 | yes) FLAC__TEST_WITH_VALGRIND=yes ;; |
| 299 | no) FLAC__TEST_WITH_VALGRIND=no ;; |
| 300 | *) AC_MSG_ERROR(bad value ${enableval} for --enable-valgrind-testing) ;; |
| 301 | esac],[FLAC__TEST_WITH_VALGRIND=no]) |
| 302 | AC_SUBST(FLAC__TEST_WITH_VALGRIND) |
| 303 | |
| 304 | AC_ARG_ENABLE(doxygen-docs, |
| 305 | AC_HELP_STRING([--disable-doxygen-docs], [Disable API documentation building via Doxygen]), |
| 306 | [case "${enableval}" in |
| 307 | yes) enable_doxygen_docs=true ;; |
| 308 | no) enable_doxygen_docs=false ;; |
| 309 | *) AC_MSG_ERROR(bad value ${enableval} for --enable-doxygen-docs) ;; |
| 310 | esac],[enable_doxygen_docs=true]) |
| 311 | if test "x$enable_doxygen_docs" != xfalse ; then |
| 312 | AC_CHECK_PROGS(DOXYGEN, doxygen) |
| 313 | fi |
| 314 | AM_CONDITIONAL(FLaC__HAS_DOXYGEN, test -n "$DOXYGEN") |
| 315 | |
| 316 | AC_ARG_ENABLE(local-xmms-plugin, |
| 317 | AC_HELP_STRING([--enable-local-xmms-plugin], [Install XMMS plugin to ~/.xmms/Plugins instead of system location]), |
| 318 | [case "${enableval}" in |
| 319 | yes) install_xmms_plugin_locally=true ;; |
| 320 | no) install_xmms_plugin_locally=false ;; |
| 321 | *) AC_MSG_ERROR(bad value ${enableval} for --enable-local-xmms-plugin) ;; |
| 322 | esac],[install_xmms_plugin_locally=false]) |
| 323 | AM_CONDITIONAL(FLaC__INSTALL_XMMS_PLUGIN_LOCALLY, test "x$install_xmms_plugin_locally" = xtrue) |
| 324 | |
| 325 | AC_ARG_ENABLE(xmms-plugin, |
| 326 | AC_HELP_STRING([--disable-xmms-plugin], [Do not build XMMS plugin]), |
| 327 | [case "${enableval}" in |
| 328 | yes) enable_xmms_plugin=true ;; |
| 329 | no) enable_xmms_plugin=false ;; |
| 330 | *) AC_MSG_ERROR(bad value ${enableval} for --enable-xmms-plugin) ;; |
| 331 | esac],[enable_xmms_plugin=true]) |
| 332 | if test "x$enable_xmms_plugin" != xfalse ; then |
| 333 | AM_PATH_XMMS(0.9.5.1, , AC_MSG_WARN([*** XMMS >= 0.9.5.1 not installed - XMMS support will not be built])) |
| 334 | fi |
| 335 | AM_CONDITIONAL(FLaC__HAS_XMMS, test -n "$XMMS_INPUT_PLUGIN_DIR") |
| 336 | |
| 337 | dnl build FLAC++ or not |
| 338 | AC_ARG_ENABLE([cpplibs], |
| 339 | AC_HELP_STRING([--disable-cpplibs], [Do not build libFLAC++]), |
| 340 | [case "${enableval}" in |
| 341 | yes) disable_cpplibs=false ;; |
| 342 | no) disable_cpplibs=true ;; |
| 343 | *) AC_MSG_ERROR(bad value ${enableval} for --enable-cpplibs) ;; |
| 344 | esac], [disable_cpplibs=false]) |
| 345 | AM_CONDITIONAL(FLaC__WITH_CPPLIBS, [test "x$disable_cpplibs" != xtrue]) |
| 346 | |
| 347 | dnl check for ogg library |
| 348 | AC_ARG_ENABLE([ogg], |
| 349 | AC_HELP_STRING([--disable-ogg], [Disable ogg support (default: test for libogg)]), |
| 350 | [ want_ogg=$enableval ], [ want_ogg=yes ] ) |
| 351 | |
| 352 | if test "x$want_ogg" != "xno"; then |
luz.paz | 01eb197 | 2018-05-22 10:17:53 -0400 | [diff] [blame] | 353 | XIPH_PATH_OGG(have_ogg=yes, AC_MSG_WARN([*** Ogg development environment not installed - Ogg support will not be built])) |
Erik de Castro Lopo | 06ed05e | 2012-02-01 17:55:50 +1100 | [diff] [blame] | 354 | fi |
| 355 | |
Erik de Castro Lopo | 9548d4b | 2016-03-20 20:14:01 +1100 | [diff] [blame] | 356 | FLAC__HAS_OGG=0 |
Erik de Castro Lopo | 06ed05e | 2012-02-01 17:55:50 +1100 | [diff] [blame] | 357 | AM_CONDITIONAL(FLaC__HAS_OGG, [test "x$have_ogg" = xyes]) |
| 358 | if test "x$have_ogg" = xyes ; then |
Erik de Castro Lopo | 9548d4b | 2016-03-20 20:14:01 +1100 | [diff] [blame] | 359 | FLAC__HAS_OGG=1 |
Ulrich Klauer | 5da8663 | 2013-04-06 20:41:12 +0200 | [diff] [blame] | 360 | OGG_PACKAGE="ogg" |
Erik de Castro Lopo | 3e2cd27 | 2012-07-04 19:53:31 +1000 | [diff] [blame] | 361 | else |
Erik de Castro Lopo | e21237a | 2013-09-15 19:58:05 +1000 | [diff] [blame] | 362 | have_ogg=no |
Erik de Castro Lopo | 06ed05e | 2012-02-01 17:55:50 +1100 | [diff] [blame] | 363 | fi |
Erik de Castro Lopo | 9548d4b | 2016-03-20 20:14:01 +1100 | [diff] [blame] | 364 | AC_DEFINE_UNQUOTED([FLAC__HAS_OGG],$FLAC__HAS_OGG,[define if you have the ogg library]) |
| 365 | AC_SUBST(FLAC__HAS_OGG) |
Ulrich Klauer | 5da8663 | 2013-04-06 20:41:12 +0200 | [diff] [blame] | 366 | AC_SUBST(OGG_PACKAGE) |
Erik de Castro Lopo | 06ed05e | 2012-02-01 17:55:50 +1100 | [diff] [blame] | 367 | |
David Seifert | cc08beb | 2017-01-13 18:42:29 +0100 | [diff] [blame] | 368 | dnl Build examples? |
| 369 | AC_ARG_ENABLE([examples], |
| 370 | AS_HELP_STRING([--disable-examples], [Don't build and install examples])) |
| 371 | AM_CONDITIONAL([EXAMPLES], [test "x$enable_examples" != "xno"]) |
| 372 | |
Erik de Castro Lopo | 06ed05e | 2012-02-01 17:55:50 +1100 | [diff] [blame] | 373 | dnl check for i18n(internationalization); these are from libiconv/gettext |
| 374 | AM_ICONV |
| 375 | AM_LANGINFO_CODESET |
| 376 | |
| 377 | AC_CHECK_PROGS(DOCBOOK_TO_MAN, docbook-to-man docbook2man) |
| 378 | AM_CONDITIONAL(FLaC__HAS_DOCBOOK_TO_MAN, test -n "$DOCBOOK_TO_MAN") |
| 379 | if test -n "$DOCBOOK_TO_MAN" ; then |
| 380 | AC_DEFINE(FLAC__HAS_DOCBOOK_TO_MAN) |
| 381 | AH_TEMPLATE(FLAC__HAS_DOCBOOK_TO_MAN, [define if you have docbook-to-man or docbook2man]) |
| 382 | fi |
| 383 | |
Dave Yeo | 50e7aea | 2016-02-02 20:19:59 -0800 | [diff] [blame] | 384 | AC_CHECK_LIB(rt, clock_gettime, have_clock_gettime=yes) |
| 385 | if test x$have_clock_gettime = xyes; then |
| 386 | AC_DEFINE(HAVE_CLOCK_GETTIME) |
Erik de Castro Lopo | 9cf42fe | 2016-02-10 21:24:41 +1100 | [diff] [blame] | 387 | AH_TEMPLATE(HAVE_CLOCK_GETTIME, [define if you have clock_gettime]) |
Dave Yeo | 50e7aea | 2016-02-02 20:19:59 -0800 | [diff] [blame] | 388 | fi |
| 389 | |
Erik de Castro Lopo | 06ed05e | 2012-02-01 17:55:50 +1100 | [diff] [blame] | 390 | # only matters for x86 |
| 391 | AC_CHECK_PROGS(NASM, nasm) |
| 392 | AM_CONDITIONAL(FLaC__HAS_NASM, test -n "$NASM") |
| 393 | if test -n "$NASM" ; then |
| 394 | AC_DEFINE(FLAC__HAS_NASM) |
| 395 | AH_TEMPLATE(FLAC__HAS_NASM, [define if you are compiling for x86 and have the NASM assembler]) |
| 396 | fi |
| 397 | |
David Seifert | b3ece71 | 2017-01-15 10:37:02 +0100 | [diff] [blame] | 398 | dnl If debugging is disabled AND no CFLAGS/CXXFLAGS/CPPFLAGS/LDFLAGS |
| 399 | dnl are provided, we can set defaults to our liking |
| 400 | AS_IF([test "x${ax_enable_debug}" = "xno" && test "x${enable_flags_setting}" = "xyes"], [ |
Erik de Castro Lopo | d2cb0d1 | 2017-02-06 19:54:13 +1100 | [diff] [blame] | 401 | CFLAGS="-O3 -funroll-loops" |
David Seifert | b3ece71 | 2017-01-15 10:37:02 +0100 | [diff] [blame] | 402 | ]) |
Erik de Castro Lopo | 06ed05e | 2012-02-01 17:55:50 +1100 | [diff] [blame] | 403 | |
Erik de Castro Lopo | caef93e | 2012-02-26 22:41:44 +1100 | [diff] [blame] | 404 | XIPH_GCC_VERSION |
Erik de Castro Lopo | 06ed05e | 2012-02-01 17:55:50 +1100 | [diff] [blame] | 405 | |
| 406 | if test x$ac_cv_c_compiler_gnu = xyes ; then |
Erik de Castro Lopo | d6c774c | 2016-01-26 12:33:01 +1100 | [diff] [blame] | 407 | CFLAGS="$CFLAGS -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -Waggregate-return -Wcast-align -Wnested-externs -Wshadow -Wundef -Wmissing-declarations -Winline " # -Wcast-qual -Wbad-function-cast -Wwrite-strings -Wconversion |
| 408 | CXXFLAGS="$CXXFLAGS -Wall -Wextra -Wcast-align -Wshadow -Wwrite-strings -Wctor-dtor-privacy -Wnon-virtual-dtor -Wreorder -Wsign-promo -Wundef " # -Wcast-qual -Wbad-function-cast -Wwrite-strings -Woverloaded-virtual -Wmissing-declarations |
Erik de Castro Lopo | 06f3812 | 2013-03-10 22:34:18 +1100 | [diff] [blame] | 409 | |
Erik de Castro Lopo | 24a6447 | 2013-09-15 18:09:48 +1000 | [diff] [blame] | 410 | XIPH_ADD_CFLAGS([-Wdeclaration-after-statement]) |
David Seifert | b3ece71 | 2017-01-15 10:37:02 +0100 | [diff] [blame] | 411 | |
| 412 | dnl some distributions (such as Gentoo) have _FORTIFY_SOURCE always |
| 413 | dnl enabled. We test for this situation in order to prevent polluting |
| 414 | dnl the console with messages of macro redefinitions. |
Erik de Castro Lopo | d2cb0d1 | 2017-02-06 19:54:13 +1100 | [diff] [blame] | 415 | AX_ADD_FORTIFY_SOURCE |
Erik de Castro Lopo | 24a6447 | 2013-09-15 18:09:48 +1000 | [diff] [blame] | 416 | |
| 417 | AC_LANG_PUSH([C++]) |
| 418 | XIPH_ADD_CXXFLAGS([-Weffc++]) |
| 419 | AC_LANG_POP([C++]) |
| 420 | |
Miroslav Lichvar | 19c78e5 | 2012-12-03 21:04:57 +0100 | [diff] [blame] | 421 | if test "$GCC_MAJOR_VERSION" -ge 4 && test "$OBJ_FORMAT" = elf; then |
| 422 | CPPFLAGS="$CPPFLAGS -DFLAC__USE_VISIBILITY_ATTR" |
| 423 | CFLAGS="$CFLAGS -fvisibility=hidden" |
| 424 | CXXFLAGS="$CXXFLAGS -fvisibility=hidden" |
Erik de Castro Lopo | 2860f17 | 2013-03-09 19:42:26 +1100 | [diff] [blame] | 425 | fi |
| 426 | |
Erik de Castro Lopo | be0a894 | 2014-05-25 19:42:53 +1000 | [diff] [blame] | 427 | if test "$GCC_MAJOR_VERSION" -ge 4 && test "$OBJ_FORMAT" = macho; then |
| 428 | CPPFLAGS="$CPPFLAGS -DFLAC__USE_VISIBILITY_ATTR" |
| 429 | CFLAGS="$CFLAGS -fvisibility=hidden" |
| 430 | CXXFLAGS="$CXXFLAGS -fvisibility=hidden" |
| 431 | fi |
| 432 | |
Erik de Castro Lopo | 2860f17 | 2013-03-09 19:42:26 +1100 | [diff] [blame] | 433 | if test "x$GCC_MAJOR_VERSION$GCC_MINOR_VERSION" = "x42" ; then |
| 434 | XIPH_ADD_CFLAGS([-fgnu89-inline]) |
| 435 | fi |
Erik de Castro Lopo | 24a6447 | 2013-09-15 18:09:48 +1000 | [diff] [blame] | 436 | |
Mario Sanchez Prada | 5ff15bd | 2015-06-08 17:25:27 +0100 | [diff] [blame] | 437 | if test "x$GCC_MAJOR_VERSION$GCC_MINOR_VERSION" = "x47" ; then |
| 438 | XIPH_ADD_CFLAGS([-fno-inline-small-functions]) |
| 439 | fi |
| 440 | |
Erik de Castro Lopo | 1930ae1 | 2014-07-27 21:18:08 +1000 | [diff] [blame] | 441 | if test "x$asm_optimisation$sse_os" = "xyesyes" ; then |
Erik de Castro Lopo | ae4d720 | 2013-09-15 20:34:40 +1000 | [diff] [blame] | 442 | XIPH_ADD_CFLAGS([-msse2]) |
| 443 | fi |
| 444 | |
Miroslav Lichvar | 19c78e5 | 2012-12-03 21:04:57 +0100 | [diff] [blame] | 445 | fi |
Miroslav Lichvar | 19c78e5 | 2012-12-03 21:04:57 +0100 | [diff] [blame] | 446 | |
Tristan Matthews | a845870 | 2015-04-11 01:05:30 -0400 | [diff] [blame] | 447 | case "$host_os" in |
| 448 | "mingw32"|"os2") |
| 449 | if test "$host_cpu" = "i686"; then |
| 450 | XIPH_ADD_CFLAGS([-mstackrealign]) |
| 451 | fi |
| 452 | esac |
| 453 | |
Erik de Castro Lopo | 2c45537 | 2014-04-08 20:48:13 +1000 | [diff] [blame] | 454 | if test x$enable_werror = "xyes" ; then |
| 455 | XIPH_ADD_CFLAGS([-Werror]) |
| 456 | AC_LANG_PUSH([C++]) |
| 457 | XIPH_ADD_CXXFLAGS([-Werror]) |
| 458 | AC_LANG_POP([C++]) |
| 459 | fi |
| 460 | |
Erik de Castro Lopo | 195470f | 2013-03-13 18:58:16 +1100 | [diff] [blame] | 461 | if test x$enable_stack_smash_protection = "xyes" ; then |
| 462 | XIPH_GCC_STACK_PROTECTOR |
| 463 | XIPH_GXX_STACK_PROTECTOR |
| 464 | fi |
Erik de Castro Lopo | d5b03bc | 2013-03-09 08:55:37 +1100 | [diff] [blame] | 465 | |
Erik de Castro Lopo | 924cade | 2016-01-24 08:21:23 +1100 | [diff] [blame] | 466 | if test "x$sys_linux" = xtrue ; then |
| 467 | LIB_CLOCK_GETTIME=-lrt |
| 468 | fi |
| 469 | AC_SUBST(LIB_CLOCK_GETTIME) |
| 470 | |
Erik de Castro Lopo | 06ed05e | 2012-02-01 17:55:50 +1100 | [diff] [blame] | 471 | AC_CONFIG_FILES([ \ |
| 472 | Makefile \ |
| 473 | src/Makefile \ |
| 474 | src/libFLAC/Makefile \ |
| 475 | src/libFLAC/flac.pc \ |
| 476 | src/libFLAC/ia32/Makefile \ |
Erik de Castro Lopo | 06ed05e | 2012-02-01 17:55:50 +1100 | [diff] [blame] | 477 | src/libFLAC/include/Makefile \ |
| 478 | src/libFLAC/include/private/Makefile \ |
| 479 | src/libFLAC/include/protected/Makefile \ |
| 480 | src/libFLAC++/Makefile \ |
| 481 | src/libFLAC++/flac++.pc \ |
| 482 | src/flac/Makefile \ |
| 483 | src/metaflac/Makefile \ |
Erik de Castro Lopo | 06ed05e | 2012-02-01 17:55:50 +1100 | [diff] [blame] | 484 | src/plugin_common/Makefile \ |
Erik de Castro Lopo | 06ed05e | 2012-02-01 17:55:50 +1100 | [diff] [blame] | 485 | src/plugin_xmms/Makefile \ |
| 486 | src/share/Makefile \ |
Erik de Castro Lopo | 06ed05e | 2012-02-01 17:55:50 +1100 | [diff] [blame] | 487 | src/test_grabbag/Makefile \ |
| 488 | src/test_grabbag/cuesheet/Makefile \ |
| 489 | src/test_grabbag/picture/Makefile \ |
| 490 | src/test_libs_common/Makefile \ |
| 491 | src/test_libFLAC/Makefile \ |
| 492 | src/test_libFLAC++/Makefile \ |
| 493 | src/test_seeking/Makefile \ |
| 494 | src/test_streams/Makefile \ |
| 495 | src/utils/Makefile \ |
| 496 | src/utils/flacdiff/Makefile \ |
| 497 | src/utils/flactimer/Makefile \ |
| 498 | examples/Makefile \ |
| 499 | examples/c/Makefile \ |
| 500 | examples/c/decode/Makefile \ |
| 501 | examples/c/decode/file/Makefile \ |
| 502 | examples/c/encode/Makefile \ |
| 503 | examples/c/encode/file/Makefile \ |
| 504 | examples/cpp/Makefile \ |
| 505 | examples/cpp/decode/Makefile \ |
| 506 | examples/cpp/decode/file/Makefile \ |
| 507 | examples/cpp/encode/Makefile \ |
| 508 | examples/cpp/encode/file/Makefile \ |
| 509 | include/Makefile \ |
| 510 | include/FLAC/Makefile \ |
| 511 | include/FLAC++/Makefile \ |
| 512 | include/share/Makefile \ |
| 513 | include/share/grabbag/Makefile \ |
| 514 | include/test_libs_common/Makefile \ |
Olivier Blin | f699788 | 2012-12-28 19:58:46 +0100 | [diff] [blame] | 515 | doc/Doxyfile \ |
Erik de Castro Lopo | 06ed05e | 2012-02-01 17:55:50 +1100 | [diff] [blame] | 516 | doc/Makefile \ |
| 517 | doc/html/Makefile \ |
| 518 | doc/html/images/Makefile \ |
Erik de Castro Lopo | 06ed05e | 2012-02-01 17:55:50 +1100 | [diff] [blame] | 519 | m4/Makefile \ |
| 520 | man/Makefile \ |
Erik de Castro Lopo | a9712a2 | 2013-09-16 19:55:11 +1000 | [diff] [blame] | 521 | test/common.sh \ |
Erik de Castro Lopo | 06ed05e | 2012-02-01 17:55:50 +1100 | [diff] [blame] | 522 | test/Makefile \ |
| 523 | test/cuesheets/Makefile \ |
| 524 | test/flac-to-flac-metadata-test-files/Makefile \ |
| 525 | test/metaflac-test-files/Makefile \ |
| 526 | test/pictures/Makefile \ |
| 527 | build/Makefile \ |
Erik de Castro Lopo | 55788ea | 2012-12-28 11:06:38 +1100 | [diff] [blame] | 528 | objs/Makefile \ |
| 529 | objs/debug/Makefile \ |
| 530 | objs/debug/bin/Makefile \ |
| 531 | objs/debug/lib/Makefile \ |
| 532 | objs/release/Makefile \ |
| 533 | objs/release/bin/Makefile \ |
| 534 | objs/release/lib/Makefile \ |
Erik de Castro Lopo | 95fc3bf | 2015-09-01 03:38:43 +1000 | [diff] [blame] | 535 | microbench/Makefile |
Erik de Castro Lopo | 06ed05e | 2012-02-01 17:55:50 +1100 | [diff] [blame] | 536 | ]) |
| 537 | AC_OUTPUT |
Erik de Castro Lopo | caef93e | 2012-02-26 22:41:44 +1100 | [diff] [blame] | 538 | |
| 539 | AC_MSG_RESULT([ |
| 540 | -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=- |
| 541 | |
| 542 | Configuration summary : |
| 543 | |
| 544 | FLAC version : ........................ ${VERSION} |
| 545 | |
| 546 | Host CPU : ............................ ${host_cpu} |
| 547 | Host Vendor : ......................... ${host_vendor} |
| 548 | Host OS : ............................. ${host_os} |
| 549 | ]) |
| 550 | |
Erik de Castro Lopo | caef93e | 2012-02-26 22:41:44 +1100 | [diff] [blame] | 551 | echo " Compiler is GCC : ..................... ${ac_cv_c_compiler_gnu}" |
Max Horn | cdcb88b | 2012-12-12 21:33:53 +0100 | [diff] [blame] | 552 | if test x$ac_cv_c_compiler_gnu = xyes ; then |
Erik de Castro Lopo | caef93e | 2012-02-26 22:41:44 +1100 | [diff] [blame] | 553 | echo " GCC version : ......................... ${GCC_VERSION}" |
Max Horn | cdcb88b | 2012-12-12 21:33:53 +0100 | [diff] [blame] | 554 | fi |
Erik de Castro Lopo | a6a4b6f | 2013-11-22 18:13:36 +1100 | [diff] [blame] | 555 | echo " Compiler is Clang : ................... ${xiph_cv_c_compiler_clang}" |
Erik de Castro Lopo | 9863998 | 2014-03-15 16:47:49 +1100 | [diff] [blame] | 556 | echo " SSE optimizations : ................... ${sse_os}" |
Erik de Castro Lopo | 899599e | 2013-09-25 23:26:49 +1000 | [diff] [blame] | 557 | echo " Asm optimizations : ................... ${asm_optimisation}" |
Erik de Castro Lopo | e21237a | 2013-09-15 19:58:05 +1000 | [diff] [blame] | 558 | echo " Ogg/FLAC support : .................... ${have_ogg}" |
Erik de Castro Lopo | 592021e | 2012-12-28 09:49:50 +1100 | [diff] [blame] | 559 | echo |