1*4b2da9c3SPulkoMandy //#if !defined __ASSEMBLER__ && !defined _ISOMAC && !defined __OPTIMIZE__ 2*4b2da9c3SPulkoMandy //# error "glibc cannot be compiled without optimization" 3*4b2da9c3SPulkoMandy //#endif 4*4b2da9c3SPulkoMandy 5*4b2da9c3SPulkoMandy /* Another evil option when it comes to compiling the C library is 6*4b2da9c3SPulkoMandy --ffast-math since it alters the ABI. */ 7*4b2da9c3SPulkoMandy #if defined __FAST_MATH__ && !defined TEST_FAST_MATH 8*4b2da9c3SPulkoMandy # error "glibc must not be compiled with -ffast-math" 9*4b2da9c3SPulkoMandy #endif 10*4b2da9c3SPulkoMandy 11*4b2da9c3SPulkoMandy /* Define if using GNU ld, with support for weak symbols in a.out, 12*4b2da9c3SPulkoMandy and for symbol set and warning messages extensions in a.out and ELF. 13*4b2da9c3SPulkoMandy This implies HAVE_WEAK_SYMBOLS; set by --with-gnu-ld. */ 14*4b2da9c3SPulkoMandy #define HAVE_GNU_LD 1 15*4b2da9c3SPulkoMandy 16*4b2da9c3SPulkoMandy /* Define if using ELF, which supports weak symbols. 17*4b2da9c3SPulkoMandy This implies HAVE_ASM_WEAK_DIRECTIVE set by --with-elf. */ 18*4b2da9c3SPulkoMandy #define HAVE_ELF 1 19*4b2da9c3SPulkoMandy 20*4b2da9c3SPulkoMandy /* Define if using XCOFF. Set by --with-xcoff. */ 21*4b2da9c3SPulkoMandy #undef HAVE_XCOFF 22*4b2da9c3SPulkoMandy 23*4b2da9c3SPulkoMandy /* Define if weak symbols are available via the `.weak' directive. */ 24*4b2da9c3SPulkoMandy #define HAVE_ASM_WEAK_DIRECTIVE 1 25*4b2da9c3SPulkoMandy 26*4b2da9c3SPulkoMandy /* Define if weak symbols are available via the `.weakext' directive. */ 27*4b2da9c3SPulkoMandy #undef HAVE_ASM_WEAKEXT_DIRECTIVE 28*4b2da9c3SPulkoMandy 29*4b2da9c3SPulkoMandy /* Define to the assembler line separator character for multiple 30*4b2da9c3SPulkoMandy assembler instructions per line. Default is `;' */ 31*4b2da9c3SPulkoMandy #undef ASM_LINE_SEP 32*4b2da9c3SPulkoMandy 33*4b2da9c3SPulkoMandy /* Define if not using ELF, but `.init' and `.fini' sections are available. */ 34*4b2da9c3SPulkoMandy #undef HAVE_INITFINI 35*4b2da9c3SPulkoMandy 36*4b2da9c3SPulkoMandy /* Define if __attribute__((section("foo"))) puts quotes around foo. */ 37*4b2da9c3SPulkoMandy /*#define HAVE_SECTION_QUOTES 1 38*4b2da9c3SPulkoMandy [zooey]: defining this causes assembler errors, and I don't think 39*4b2da9c3SPulkoMandy that any BeOS-gcc actually produces quotes in sections... 40*4b2da9c3SPulkoMandy */ 41*4b2da9c3SPulkoMandy #undef HAVE_SECTION_QUOTES 42*4b2da9c3SPulkoMandy 43*4b2da9c3SPulkoMandy /* Define if using the GNU assembler, gas. */ 44*4b2da9c3SPulkoMandy #define HAVE_GNU_AS 1 45*4b2da9c3SPulkoMandy 46*4b2da9c3SPulkoMandy /* Define if the assembler supports the `.set' directive. */ 47*4b2da9c3SPulkoMandy #define HAVE_ASM_SET_DIRECTIVE 1 48*4b2da9c3SPulkoMandy 49*4b2da9c3SPulkoMandy /* Define to the name of the assembler's directive for 50*4b2da9c3SPulkoMandy declaring a symbol global (default `.globl'). */ 51*4b2da9c3SPulkoMandy #define ASM_GLOBAL_DIRECTIVE .globl 52*4b2da9c3SPulkoMandy 53*4b2da9c3SPulkoMandy /* Define to the prefix before `object' or `function' in the 54*4b2da9c3SPulkoMandy assembler's `.type' directive, if it has one. */ 55*4b2da9c3SPulkoMandy #undef ASM_TYPE_DIRECTIVE_PREFIX 56*4b2da9c3SPulkoMandy 57*4b2da9c3SPulkoMandy /* Define a symbol_name as a global .symbol_name for ld. */ 58*4b2da9c3SPulkoMandy #undef HAVE_ASM_GLOBAL_DOT_NAME 59*4b2da9c3SPulkoMandy 60*4b2da9c3SPulkoMandy /* Define if the assembler generates debugging information directly. */ 61*4b2da9c3SPulkoMandy #undef HAVE_CPP_ASM_DEBUGINFO 62*4b2da9c3SPulkoMandy 63*4b2da9c3SPulkoMandy /* Define if _Unwind_Find_FDE should be exported from glibc. */ 64*4b2da9c3SPulkoMandy #undef EXPORT_UNWIND_FIND_FDE 65*4b2da9c3SPulkoMandy 66*4b2da9c3SPulkoMandy /* Define to use GNU libio instead of GNU stdio. 67*4b2da9c3SPulkoMandy This is defined by configure under --enable-libio. */ 68*4b2da9c3SPulkoMandy #define USE_IN_LIBIO 1 69*4b2da9c3SPulkoMandy 70*4b2da9c3SPulkoMandy /* Define if using ELF and the assembler supports the `.previous' 71*4b2da9c3SPulkoMandy directive. */ 72*4b2da9c3SPulkoMandy #define HAVE_ASM_PREVIOUS_DIRECTIVE 1 73*4b2da9c3SPulkoMandy 74*4b2da9c3SPulkoMandy /* Define if using ELF and the assembler supports the `.popsection' 75*4b2da9c3SPulkoMandy directive. */ 76*4b2da9c3SPulkoMandy #undef HAVE_ASM_POPSECTION_DIRECTIVE 77*4b2da9c3SPulkoMandy 78*4b2da9c3SPulkoMandy /* Define if versioning of the library is wanted. */ 79*4b2da9c3SPulkoMandy #undef DO_VERSIONING 80*4b2da9c3SPulkoMandy 81*4b2da9c3SPulkoMandy /* Defined to the oldest ABI we support, like 2.1. */ 82*4b2da9c3SPulkoMandy #undef GLIBC_OLDEST_ABI 83*4b2da9c3SPulkoMandy 84*4b2da9c3SPulkoMandy /* Define if static NSS modules are wanted. */ 85*4b2da9c3SPulkoMandy #undef DO_STATIC_NSS 86*4b2da9c3SPulkoMandy 87*4b2da9c3SPulkoMandy /* Define if gcc uses DWARF2 unwind information for exception support. */ 88*4b2da9c3SPulkoMandy #define HAVE_DWARF2_UNWIND_INFO 1 89*4b2da9c3SPulkoMandy 90*4b2da9c3SPulkoMandy /* Define if gcc uses DWARF2 unwind information for exception support 91*4b2da9c3SPulkoMandy with static variable. */ 92*4b2da9c3SPulkoMandy #define HAVE_DWARF2_UNWIND_INFO_STATIC 1 93*4b2da9c3SPulkoMandy 94*4b2da9c3SPulkoMandy /* Define if the compiler supports __builtin_expect. */ 95*4b2da9c3SPulkoMandy #undef HAVE_BUILTIN_EXPECT 96*4b2da9c3SPulkoMandy 97*4b2da9c3SPulkoMandy /* Define if the compiler supports __builtin_memset. */ 98*4b2da9c3SPulkoMandy #undef HAVE_BUILTIN_MEMSET 99*4b2da9c3SPulkoMandy 100*4b2da9c3SPulkoMandy /* Define if the __thread keyword is supported. */ 101*4b2da9c3SPulkoMandy #undef HAVE___THREAD 102*4b2da9c3SPulkoMandy 103*4b2da9c3SPulkoMandy /* Define if the compiler supports __attribute__((tls_model(""))). */ 104*4b2da9c3SPulkoMandy #undef HAVE_TLS_MODEL_ATTRIBUTE 105*4b2da9c3SPulkoMandy 106*4b2da9c3SPulkoMandy /* Define if the regparm attribute shall be used for local functions 107*4b2da9c3SPulkoMandy (gcc on ix86 only). */ 108*4b2da9c3SPulkoMandy #define USE_REGPARMS 0 109*4b2da9c3SPulkoMandy 110*4b2da9c3SPulkoMandy /* Defined on PowerPC if the GCC being used has a problem with clobbering 111*4b2da9c3SPulkoMandy certain registers (CR0, MQ, CTR, LR) in asm statements. */ 112*4b2da9c3SPulkoMandy #undef BROKEN_PPC_ASM_CR0 113*4b2da9c3SPulkoMandy 114*4b2da9c3SPulkoMandy /* Defined on SPARC if ld doesn't handle R_SPARC_WDISP22 against .hidden 115*4b2da9c3SPulkoMandy symbol. sysdeps/sparc/sparc32/elf/configure. */ 116*4b2da9c3SPulkoMandy #undef BROKEN_SPARC_WDISP22 117*4b2da9c3SPulkoMandy 118*4b2da9c3SPulkoMandy /* Define if the linker supports the -z combreloc option. */ 119*4b2da9c3SPulkoMandy #undef HAVE_Z_COMBRELOC 120*4b2da9c3SPulkoMandy 121*4b2da9c3SPulkoMandy /* Define if the assembler supported .protected. */ 122*4b2da9c3SPulkoMandy #undef HAVE_PROTECTED 123*4b2da9c3SPulkoMandy 124*4b2da9c3SPulkoMandy /* Define if the assembler supported .hidden. */ 125*4b2da9c3SPulkoMandy #undef HAVE_HIDDEN 126*4b2da9c3SPulkoMandy 127*4b2da9c3SPulkoMandy /* Define if the compiler supports __attribute__ ((visibility (...))). */ 128*4b2da9c3SPulkoMandy #undef HAVE_VISIBILITY_ATTRIBUTE 129*4b2da9c3SPulkoMandy 130*4b2da9c3SPulkoMandy /* Define if the compiler doesn't support __attribute__ ((visibility (...))) 131*4b2da9c3SPulkoMandy together with __asm__ redirection properly. */ 132*4b2da9c3SPulkoMandy #undef HAVE_BROKEN_VISIBILITY_ATTRIBUTE 133*4b2da9c3SPulkoMandy 134*4b2da9c3SPulkoMandy /* Define if the compiler doesn't support __attribute__ ((alias (...))) 135*4b2da9c3SPulkoMandy together with __asm__ redirection properly. */ 136*4b2da9c3SPulkoMandy #undef HAVE_BROKEN_ALIAS_ATTRIBUTE 137*4b2da9c3SPulkoMandy 138*4b2da9c3SPulkoMandy /* Define if _rtld_local structure should be forced into .sdata section. */ 139*4b2da9c3SPulkoMandy #undef HAVE_SDATA_SECTION 140*4b2da9c3SPulkoMandy 141*4b2da9c3SPulkoMandy /* Define if binutils support TLS handling. */ 142*4b2da9c3SPulkoMandy #undef HAVE_TLS_SUPPORT 143*4b2da9c3SPulkoMandy 144*4b2da9c3SPulkoMandy /* Define if the linker supports .preinit_array/.init_array/.fini_array 145*4b2da9c3SPulkoMandy sections. */ 146*4b2da9c3SPulkoMandy #undef HAVE_INITFINI_ARRAY 147*4b2da9c3SPulkoMandy 148*4b2da9c3SPulkoMandy /* Define if the access to static and hidden variables is position independent 149*4b2da9c3SPulkoMandy and does not need relocations. */ 150*4b2da9c3SPulkoMandy #undef PI_STATIC_AND_HIDDEN 151*4b2da9c3SPulkoMandy 152*4b2da9c3SPulkoMandy /* Define this to disable the `hidden_proto' et al macros in 153*4b2da9c3SPulkoMandy include/libc-symbols.h that avoid PLT slots in the shared objects. */ 154*4b2da9c3SPulkoMandy #undef NO_HIDDEN 155*4b2da9c3SPulkoMandy 156*4b2da9c3SPulkoMandy 157*4b2da9c3SPulkoMandy /* Defined to some form of __attribute__ ((...)) if the compiler supports 158*4b2da9c3SPulkoMandy a different, more efficient calling convention. */ 159*4b2da9c3SPulkoMandy #if USE_REGPARMS && !defined PROF && !defined __BOUNDED_POINTERS__ 160*4b2da9c3SPulkoMandy # define internal_function __attribute__ ((regparm (3), stdcall)) 161*4b2da9c3SPulkoMandy #endif 162*4b2da9c3SPulkoMandy 163*4b2da9c3SPulkoMandy /* Linux specific: minimum supported kernel version. */ 164*4b2da9c3SPulkoMandy #undef __LINUX_KERNEL_VERSION 165*4b2da9c3SPulkoMandy 166*4b2da9c3SPulkoMandy /* Override abi-tags ABI version if necessary. */ 167*4b2da9c3SPulkoMandy #undef __ABI_TAG_VERSION 168*4b2da9c3SPulkoMandy 169*4b2da9c3SPulkoMandy /* An extension in gcc 2.96 and up allows the subtraction of two 170*4b2da9c3SPulkoMandy local labels. */ 171*4b2da9c3SPulkoMandy #undef HAVE_SUBTRACT_LOCAL_LABELS 172*4b2da9c3SPulkoMandy 173*4b2da9c3SPulkoMandy /* bash 2.0 introduced the _XXX_GNU_nonoption_argv_flags_ variable to help 174*4b2da9c3SPulkoMandy getopt determine whether a parameter is a flag or not. This features 175*4b2da9c3SPulkoMandy was disabled later since it caused trouble. We are by default therefore 176*4b2da9c3SPulkoMandy disabling the support as well. */ 177*4b2da9c3SPulkoMandy #undef USE_NONOPTION_FLAGS 178*4b2da9c3SPulkoMandy 179*4b2da9c3SPulkoMandy /* Mach/Hurd specific: define if mig supports the `retcode' keyword. */ 180*4b2da9c3SPulkoMandy #undef HAVE_MIG_RETCODE 181*4b2da9c3SPulkoMandy 182*4b2da9c3SPulkoMandy /* Mach specific: define if the `host_page_size' RPC is available. */ 183*4b2da9c3SPulkoMandy #undef HAVE_HOST_PAGE_SIZE 184*4b2da9c3SPulkoMandy 185*4b2da9c3SPulkoMandy /* Mach/i386 specific: define if the `i386_io_perm_*' RPCs are available. */ 186*4b2da9c3SPulkoMandy #undef HAVE_I386_IO_PERM_MODIFY 187*4b2da9c3SPulkoMandy 188*4b2da9c3SPulkoMandy /* Mach/i386 specific: define if the `i386_set_gdt' RPC is available. */ 189*4b2da9c3SPulkoMandy #undef HAVE_I386_SET_GDT 190*4b2da9c3SPulkoMandy 191*4b2da9c3SPulkoMandy /* 192*4b2da9c3SPulkoMandy */ 193*4b2da9c3SPulkoMandy 194*4b2da9c3SPulkoMandy #ifndef _LIBC 195*4b2da9c3SPulkoMandy 196*4b2da9c3SPulkoMandy /* These symbols might be defined by some sysdeps configures. 197*4b2da9c3SPulkoMandy They are used only in miscellaneous generator programs, not 198*4b2da9c3SPulkoMandy in compiling libc itself. */ 199*4b2da9c3SPulkoMandy 200*4b2da9c3SPulkoMandy /* sysdeps/generic/configure.in */ 201*4b2da9c3SPulkoMandy #undef HAVE_PSIGNAL 202*4b2da9c3SPulkoMandy 203*4b2da9c3SPulkoMandy /* sysdeps/unix/configure.in */ 204*4b2da9c3SPulkoMandy #define HAVE_STRERROR 205*4b2da9c3SPulkoMandy 206*4b2da9c3SPulkoMandy /* sysdeps/unix/common/configure.in */ 207*4b2da9c3SPulkoMandy #undef HAVE_SYS_SIGLIST 208*4b2da9c3SPulkoMandy #undef HAVE__SYS_SIGLIST 209*4b2da9c3SPulkoMandy #undef HAVE__CTYPE_ 210*4b2da9c3SPulkoMandy #undef HAVE___CTYPE_ 211*4b2da9c3SPulkoMandy #undef HAVE___CTYPE 212*4b2da9c3SPulkoMandy #undef HAVE__CTYPE__ 213*4b2da9c3SPulkoMandy #undef HAVE__CTYPE 214*4b2da9c3SPulkoMandy #undef HAVE__LOCP 215*4b2da9c3SPulkoMandy 216*4b2da9c3SPulkoMandy #endif 217*4b2da9c3SPulkoMandy 218*4b2da9c3SPulkoMandy /* 219*4b2da9c3SPulkoMandy */ 220*4b2da9c3SPulkoMandy 221*4b2da9c3SPulkoMandy #ifdef _LIBC 222*4b2da9c3SPulkoMandy 223*4b2da9c3SPulkoMandy /* The zic and zdump programs need these definitions. */ 224*4b2da9c3SPulkoMandy 225*4b2da9c3SPulkoMandy #define HAVE_STRERROR 1 226*4b2da9c3SPulkoMandy 227*4b2da9c3SPulkoMandy /* The locale code needs these definitions. */ 228*4b2da9c3SPulkoMandy 229*4b2da9c3SPulkoMandy #define HAVE_REGEX 1 230*4b2da9c3SPulkoMandy 231*4b2da9c3SPulkoMandy //#define HAVE_MMAP 1 232*4b2da9c3SPulkoMandy #undef HAVE_MMAP 233*4b2da9c3SPulkoMandy 234*4b2da9c3SPulkoMandy #endif 235*4b2da9c3SPulkoMandy 236