summaryrefslogtreecommitdiff
path: root/libiberty/configure
Commit message (Collapse)AuthorAgeFilesLines
* Makefile.in: Add ffs.c dependency.Mark Klein2001-07-051-1/+2
| | | | | | | | * Makefile.in: Add ffs.c dependency. * configure.in: Add ffs.c. * ffs.c: New file. From-SVN: r43784
* aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.Zack Weinberg2001-03-061-182/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | libiberty: * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New. * configure.in: Replace all alloca logic with a simple use of the above new macro. * config.table: Kill *-*-beos* entry. * config/mh-beos: Delete. * configure, config.in: Regenerate. * Makefile.in (ALLOCA, HFILES): Kill. (REQUIRED_OFILES): Add alloca.o. (alloca.o): Depend on libiberty.h. (argv.o): Don't depend on alloca-conf.h. * alloca-conf.h: Delete. * alloca.c: Include libiberty.h. Kill all #ifdef emacs blocks. Provide the C alloca unconditionally. Use PTR where appropriate. Make i00afunc static. * argv.c: Don't include alloca-conf.h. include: * libiberty.h: Prototype C_alloca; define alloca to either __builtin_alloca or C_alloca as appropriate. gcc: * aclocal.m4 (AM_GNU_GETTEXT): Don't AC_REQUIRE AC_FUNC_ALLOCA. * configure, config.in: Regenerate. * config.gcc: Remove references to deleted files. * genattr.c, genattrtab.c, genextract.c, genoutput.c, genrecog.c, rtl.c: Do not use alloca anywhere. * Makefile.in, build-make, system.h, config/x-interix, config/x-svr4, config/xm-interix.h, config/xm-openbsd.h, config/alpha/xm-alpha.h, config/alpha/xm-vms.h, config/arc/xm-arc.h, config/arm/xm-arm.h, config/d30v/xm-d30v.h, config/dsp16xx/xm-dsp16xx.h, config/h8300/xm-h8300.h, config/i370/x-oe, config/i370/xm-linux.h, config/i386/x-aix, config/i386/x-beos, config/i386/x-ncr3000, config/i386/x-sco5, config/i386/xm-dgux.h, config/i860/x-sysv4, config/i960/xm-i960.h, config/m32r/xm-m32r.h, config/m68k/x-crds, config/m68k/x-dpx2, config/m68k/x-hp320, config/m68k/x-hp320g, config/m69k/x-mot3300, config/m68k/x-mot3300-gas, config/m68k/xm-amix.h, config/m68k/xm-hp320.h, config/m68k/xm-m68kv.h, config/m68k/xm-mot3300.h, config/m88k/x-dolph, config/m88k/x-sysv4, config/m88k/x-tekXD88, config/m88k/xm-m88k.h, config/mcore/xm-mcore.h, config/mips/x-iris, config/mips/x-iris3, config/mips/x-sni-svr4, config/mips/x-sysv, config/mips/xm-iris6.h, config/mips/xm-mips.h, config/mips/xm-nws3250v4.h, config/pa/x-hpux, config/pa/x-pa-mpeix, config/pa/xm-pa.h, config/pa/xm-pa64hpux.h, config/pa/xm-pahpux.h, config/pa/xm-papro.h, config/romp/xm-romp.h, config/rs6000/x-aix31, config/rs6000/x-aix41, config/rs6000/x-beos, config/rs6000/x-lynx, config/rs6000/x-mach, config/rs6000/x-rs6000, config/rs6000/x-sysv4, config/rs6000/xm-rs6000.h, config/rs6000/xm-sysv4.h, config/sh/xm-sh.h, config/sparc/x-sysv4, config/sparc/xm-linux.h, config/sparc/xm-pbd.h, config/sparc/xm-sparc.h, config/vax/xm-vms.h: Eradicate all references to alloca and related stuff. * config/xm-alloca.h, config/clipper/x-clix, config/i386/xm-sysv4.h, config/i860/x-fx2800, config/i860/x-sysv3, config/m88k/x-sysv3, config/sparc/xm-sol2.h, config/we32k/x-we32k: Delete (contained only alloca related hacks). * config/i386/xm-beos.h, config/rs6000/xm-beos.h: Just define USE_C_ALLOCA. From-SVN: r40259
* bsearch.c: New file.Michael Sokolov2000-12-261-98/+96
| | | | | | | | | * bsearch.c: New file. * configure.in (funcs): Add bsearch. (AC_CHECK_FUNCS): Likewise. * configure, config.in: Regenerate. From-SVN: r38492
* Makefile.in, [...]: Expunge remaining traces of facility for running MD ↵Zack Weinberg2000-11-221-150/+247
| | | | | | | | | | | | | | | | | | | | | | | | | files through C preprocessor. gcc: * Makefile.in, config.gcc, configure.in: Expunge remaining traces of facility for running MD files through C preprocessor. libiberty: * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in. (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader. * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three argument form of AC_DEFINE in dummy definitions block. Use AC_DEFINE_NOAUTOHEADER for real definitions of things defined in dummy block. Preload cache variables instead of bypassing tests, where possible. * acconfig.h: Removed. * xmalloc.c (xmalloc_failed): New function, does error reporting on failed allocation. (xmalloc, xcalloc, xrealloc): Use it. * libiberty.h: Move #includes to top. Prototype xmalloc_failed. From-SVN: r37650
* configure.in (Cygwin): special case cygwin only when we're building cygwin, ↵DJ Delorie2000-09-051-4/+9
| | | | | | | | | not when we're hosting cygwin. * configure.in (Cygwin): special case cygwin only when we're building cygwin, not when we're hosting cygwin. From-SVN: r36164
* configure.in (AC_CHECK_HEADERS): Add time.h.Michael Sokolov2000-07-231-82/+117
| | | | | | | | | | | * configure.in (AC_CHECK_HEADERS): Add time.h. (AC_HEADER_TIME): Add check. * configure, config.in: Regenerate. * getruntime.c: Portably #include <sys/time.h> and/or <time.h>. Co-Authored-By: Jeffrey A Law <law@cygnus.com> From-SVN: r35212
* configure.in (AC_CHECK_HEADERS): Add limits.h.Michael Sokolov2000-07-231-1/+1
| | | | | | | | | | | | | * configure.in (AC_CHECK_HEADERS): Add limits.h. * configure, config.in: Regenerate. * sort.c: Portably #include <limits.h> and/or <sys/param.h>. * strtol.c, strtoul.c: #include "config.h". Portably #include <limits.h> and/or <sys/param.h>. * Makefile.in (strtol.o, strtoul.o): Update dependencies. Co-Authored-By: Jeffrey A Law <law@cygnus.com> From-SVN: r35211
* aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.Michael Sokolov2000-07-231-78/+112
| | | | | | | | | * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro. * configure.in (libiberty_AC_DECLARE_ERRNO): Add check. * configure, config.in: Regenerate. * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary. From-SVN: r35199
* configure.in (ac_libiberty_warn_cflags): Add -pedantic.Kaveh R. Ghazi2000-06-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | libiberty: * configure.in (ac_libiberty_warn_cflags): Add -pedantic. * choose-temp.c (try, choose_temp_base, make_temp_file): Constify. * cp-demangle.c (demangle_char): Change parameter from char to int. (demangle_expression, demangle_expr_primary): Remove extra semi-colon in prototype. * dyn-string.c (dyn_string_append_char): Change parameter from char to int. * memcmp.c (memcmp): Constify. * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with __extension__. * partition.c (elem_compare): Prototype. Don't cast away const-ness. * setenv.c (setenv): Use braces to avoid ambiguous `else'. include: * demangle.h (demangling_styles): Remove trailing comma in enum. * dyn-string.h (dyn_string_append_char): Change parameter from char to int. From-SVN: r34447
* aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.Kaveh R. Ghazi2000-04-281-1/+359
| | | | | | | | | | | * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP. * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h. (libiberty_AC_FUNC_STRNCMP): Invoke. * strncmp.c: New file. From-SVN: r33498
* configure.in (ac_libiberty_warn_cflags): Turn on warnings if we're using gcc.Kaveh R. Ghazi2000-01-041-86/+90
| | | | | | | | | * configure.in (ac_libiberty_warn_cflags): Turn on warnings if we're using gcc. * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@ From-SVN: r31205
* Makefile.in (CFILES): Add calloc.c and getpwd.c.Kaveh R. Ghazi1999-08-311-1/+1
| | | | | | | | | | | | | * Makefile.in (CFILES): Add calloc.c and getpwd.c. (REQUIRED_OFILES): Add getpwd.o. (getpwd.o): Add target. * configure.in (AC_PREREQ): Bump to 2.13. (AC_CHECK_HEADERS): Add check for <sys/stat.h>. * getpwd.c: New file, moved here from gcc. From-SVN: r28996
* configure.in (checkfuncs): Add gettimeofday.Andreas Schwab1999-06-201-2/+2
| | | | | | | * configure.in (checkfuncs): Add gettimeofday. * config.in, configure: Regenerated. From-SVN: r27647
* configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if the test fails.Mumit Khan1999-06-201-45/+56
| | | | | | | | | p * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if the test fails. * configure: Regenerate. From-SVN: r27642
* Makefile.in (CFILES): Add putenv.c and setenv.c.Jeff Law1999-05-251-68/+70
| | | | | | | | | | | | * Makefile.in (CFILES): Add putenv.c and setenv.c. * configure.in (funcs): Add putenv and setenv. (AC_CHECK_FUNCS): Check for putenv and setenv. * configure: Rebuilt. * putenv.c setenv.c: New files. [[Split portion of a mixed commit.]] From-SVN: r27162.2
* Fred Fish <fnf@be.com>Fred Fish1999-05-061-1/+1
| | | | | | | | | | Fred Fish <fnf@be.com> * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list. * getruntime.c: Only attempt to include sys/resource.h and use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H are defined. From-SVN: r26808
* configure.in (alloca detection): Handle alloca directly for interix.Donn Terry1999-04-251-39/+60
| | | | | | | * configure.in (alloca detection): Handle alloca directly for interix. * configure: Rebuilt. From-SVN: r26635
* configure.in (checkfuncs): Check for sbrk.Mumit Khan1999-04-151-46/+101
| | | | | | | | | * configure.in (checkfuncs): Check for sbrk. * config.in: Rebuilt. * configure: Likewise. * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions. From-SVN: r26480
* regress-demangle: New file.Tom Tromey1999-04-051-47/+57
| | | | | | | | | | | | | | | | | | * testsuite/regress-demangle: New file. * testsuite/demangle-expected: New file. * Makefile.in (all, check, installcheck, info, install-info, clean-info, dvi, install, etags, tags, mostlyclean, clean, distclean, maintainer-clean, realclean): Depend on corresponding `-subdir' target. (all-subdir check-subdir installcheck-subdir info-subdir install-info-subdir clean-info-subdir dvi-subdir install-info-subdir etags-subdir mostlyclean-subdir clean-subdir distclean-subdir maintainer-clean-subdir): New target. * testsuite/Makefile.in: New file. * configure: Rebuilt. * configure.in: Create testsuite/Makefile. From-SVN: r26205
* pexecute.c (__CYGWIN32__): Rename toMumit Khan1999-03-101-45/+52
| | | | | | | | | | | | | | | | * pexecute.c (__CYGWIN32__): Rename to (__CYGWIN__): this. * xmalloc.c: Likewise. Changes to support i386-pc-uwin. * configure.in (*-*-uwin*): Workaround for vfork bug. * configure: Regenerate. * pexecute.c (pexecute): Be like standard Unix. (pwait): Likewise. * xmalloc.c (first_break): Define. (xmalloc_set_program_name): Use. (xmalloc): Use. From-SVN: r25694
* Makefile.in (REQUIRED_OFILES): remove mkstemp.oMarc Espie1999-02-081-118/+162
| | | | | | | | | * Makefile.in (REQUIRED_OFILES): remove mkstemp.o * configure.in (funcs): Check for and conditionally add mkstemps to the list of functions libiberty will provide. * configure: Rebuilt. From-SVN: r25106
* configure.in: detect cygwin* instead of cygwin32*Geoffrey Noer1998-11-191-3/+3
| | | | | | | | * configure.in: detect cygwin* instead of cygwin32* * configure: regenerate * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT From-SVN: r23725
* configure.in: Call AC_HEADER_SYS_WAIT.Kaveh R. Ghazi1998-11-191-63/+105
| | | | | | | * configure.in: Call AC_HEADER_SYS_WAIT. * pexecute.c: Include sys/wait.h when !IN_GCC. From-SVN: r23711
* configure.in: Check for calloc.Kaveh R. Ghazi1998-11-131-64/+65
| | | | | | | | * configure.in: Check for calloc. * calloc.c: New file. * xmalloc.c (xcalloc): New function. From-SVN: r23642
* mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.hJeffrey A Law1998-10-131-1/+1
| | | | | | | | * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too. * config.in, configure: Rebuilt. From-SVN: r23067
* getopt.c: Check HAVE_STRINGS_H before including strings.h.Jeffrey A Law1998-10-131-1/+1
| | | | | | | | * getopt.c: Check HAVE_STRINGS_H before including strings.h. * configure.in (AC_CHECK_HEADERS): Check for strings.h too. * config.in, configure: Rebuilt. From-SVN: r23065
* Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)Jeff Law1998-10-081-90/+99
| | | | | | * Merge egcs & devo libiberty. From-SVN: r22941
* * configure.in (checkfuncs): Add missing "'".Mumit Khan1998-05-301-1/+1
| | | | From-SVN: r20144
* configure.in: Check for unistd.h as well.Manfred Hollstein1998-05-211-1/+1
| | | | | | | | | | | | | | 0 * configure.in: Check for unistd.h as well. * configure: Rebuild. * config.in: Rebuild. * getpagesize.c (GNU_OUR_PAGESIZE): Use sysconf only if _SC_PAGESIZE is defined in unistd.h. Reformat conditional block for easier reading. * config.table (shared): Default to no if ${enable_shared} is unset or empty; this logic is used by the toplevel configure scripts, too. From-SVN: r19924
* Initial revisionJeff Law1998-05-161-0/+2747
From-SVN: r19799