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