1/* 2** Copyright (C) 2005-2017 Erik de Castro Lopo <erikd@mega-nerd.com> 3** 4** This program is free software; you can redistribute it and/or modify 5** it under the terms of the GNU Lesser General Public License as published by 6** the Free Software Foundation; either version 2.1 of the License, or 7** (at your option) any later version. 8** 9** This program is distributed in the hope that it will be useful, 10** but WITHOUT ANY WARRANTY; without even the implied warranty of 11** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12** GNU Lesser General Public License for more details. 13** 14** You should have received a copy of the GNU Lesser General Public License 15** along with this program; if not, write to the Free Software 16** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 17*/ 18 19/* 20** Autoconf leaves many config parameters undefined. 21** Here we change then from being undefined to defining them to 0. 22** This allows things like: 23** 24** #if HAVE_CONFIG_PARAM 25** 26** and 27** 28** if (HAVE_CONFIG_PARAM) 29** do_something () ; 30*/ 31 32#ifndef SFCONFIG_H 33#define SFCONFIG_H 34 35/* Include the Autoconf generated file. */ 36#include "config.h" 37 38/* Now fiddle the values. */ 39 40#ifndef HAVE_ALSA_ASOUNDLIB_H 41#define HAVE_ALSA_ASOUNDLIB_H 0 42#endif 43 44#ifndef HAVE_BYTESWAP_H 45#define HAVE_BYTESWAP_H 0 46#endif 47 48#ifndef HAVE_DECL_S_IRGRP 49#define HAVE_DECL_S_IRGRP 0 50#endif 51 52#ifndef HAVE_ENDIAN_H 53#define HAVE_ENDIAN_H 0 54#endif 55 56#ifndef HAVE_FSTAT64 57#define HAVE_FSTAT64 0 58#endif 59 60#ifndef HAVE_FSYNC 61#define HAVE_FSYNC 0 62#endif 63 64#ifndef HAVE_LOCALE_H 65#define HAVE_LOCALE_H 0 66#endif 67 68#ifndef HAVE_LRINT 69#define HAVE_LRINT 0 70#endif 71 72#ifndef HAVE_LRINTF 73#define HAVE_LRINTF 0 74#endif 75 76#ifndef HAVE_MMAP 77#define HAVE_MMAP 0 78#endif 79 80#ifndef HAVE_SETLOCALE 81#define HAVE_SETLOCALE 0 82#endif 83 84#ifndef HAVE_SQLITE3 85#define HAVE_SQLITE3 0 86#endif 87 88#ifndef HAVE_STDINT_H 89#define HAVE_STDINT_H 0 90#endif 91 92#ifndef HAVE_SYS_WAIT_H 93#define HAVE_SYS_WAIT_H 0 94#endif 95 96#ifndef HAVE_SYS_TIME_H 97#define HAVE_SYS_TIME_H 0 98#endif 99 100#ifndef HAVE_UNISTD_H 101#define HAVE_UNISTD_H 0 102#endif 103 104#ifndef HAVE_PIPE 105#define HAVE_PIPE 0 106#endif 107 108#ifndef HAVE_WAITPID 109#define HAVE_WAITPID 0 110#endif 111 112#ifndef HAVE_X86INTRIN_H 113#define HAVE_X86INTRIN_H 0 114#endif 115 116#if (defined __x86_64__) || (defined _M_X64) 117#define CPU_IS_X86_64 1 /* Define both for x86_64 */ 118#define CPU_IS_X86 1 119#elif defined (__i486__) || defined (__i586__) || defined (__i686__) || defined (_M_IX86) 120#define CPU_IS_X86 1 121#define CPU_IS_X86_64 0 122#else 123#define CPU_IS_X86 0 124#define CPU_IS_X86_64 0 125#endif 126 127#if (defined (__SSE2__) || defined (_M_AMD64) || (defined (_M_IX86_FP) && (_M_IX86_FP >= 2)) && HAVE_IMMINTRIN_H) 128#define USE_SSE2 129#endif 130 131#ifndef HAVE_SSIZE_T 132#define HAVE_SSIZE_T 0 133#endif 134 135#if (HAVE_SSIZE_T == 0) 136#define ssize_t intptr_t 137#endif 138 139#endif 140