aboutsummaryrefslogtreecommitdiff
path: root/libiberty/configure.in
AgeCommit message (Collapse)AuthorFilesLines
2002-05-07configure.in (AC_TYPE_PID_T): Use it.Mark Mitchell1-0/+2
* configure.in (AC_TYPE_PID_T): Use it. * configure: Regenerated. * getruntime.c: Include <sys/types.h>. * waitpid.c: Likewise. Use pid_t, not int, as the type of "pid". From-SVN: r53264
2002-03-26config.table: Support --with-build-subdir.H.J. Lu1-3/+9
2002-03-26 H.J. Lu (hjl@gnu.org) * config.table: Support --with-build-subdir. * configure.in: Likewise. * configure: Rebuild. From-SVN: r51416
2002-03-04configure.in: Add --enable-install-libiberty option.Phil Edwards1-0/+23
2002-03-04 Phil Edwards <pme@gcc.gnu.org> * configure.in: Add --enable-install-libiberty option. * Makefile.in (INSTALLED_HEADERS): New variable. (install_to_libdir): Possibly also copy headers. * configure: Regenerated. From-SVN: r50288
2002-01-31configure.in: Treat mingw the same as cywin wrt HAVE_SYS_ERRLIST.Adam Megacz1-1/+1
* gcc/libiberty/configure.in: Treat mingw the same as cywin wrt HAVE_SYS_ERRLIST. From-SVN: r49371
2002-01-22configure.in (variable detection): Use arrays of unspecified size instead of ↵Momchil Velikov1-1/+1
plain integers. * configure.in (variable detection): Use arrays of unspecified size instead of plain integers. From-SVN: r49103
2002-01-22Makefile.in (TESTLIB): New.DJ Delorie1-0/+2
* Makefile.in (TESTLIB): New. This library is for future testsuites. (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize, break down by letter. (REQUIRED_OFILES): List long-to-compile files first. (maint-deps): New, target for updating dependencies. (dependencies): Update. * maint-tool: Add dependency-generating option. * configure.in: Check for _doprnt even if we're not providing it. * configure: Regenerate. * _doprnt.c: Modifications to allow compiling on any platform. * copysign.c: Likewise. * putenv.c: Likewise. * setenv.c: Likewise. * vsprintf.c: Likewise. From-SVN: r49090
2001-12-24configure.in (uintptr_t): Use AC_CHECK_TYPE.Douglas B Rupp1-7/+2
* configure.in (uintptr_t): Use AC_CHECK_TYPE. * configure: Regenerated. From-SVN: r48306
2001-12-11configure.in: Hardcode that vfork works on VMS host.Douglas B Rupp1-0/+7
* gcc/configure.in: Hardcode that vfork works on VMS host. * gcc/configure: Regenerated. * libiberty/configure.in: Hardcode that vfork works on VMS host. * libiberty/configure: Regenerated. From-SVN: r47869
2001-11-28top level:Zack Weinberg1-4/+11
2001-11-27 DJ Delorie <dj@redhat.com> Zack Weinberg <zack@codesourcery.com> When build != host, create libiberty for the build machine. * Makefile.in (TARGET_CONFIGARGS, BUILD_CONFIGARGS): Replace CONFIG_ARGUMENTS. (ALL_BUILD_MODULES_LIST, BUILD_CONFIGDIRS, BUILD_SUBDIR): New variables. (ALL_BUILD_MODULES, CONFIGURE_BUILD_MODULES): New variables and rules. (all.normal): Depend on ALL_BUILD_MODULES. (CONFIGURE_TARGET_MODULES rule): Use TARGET_CONFIGARGS. (all-build-libiberty): Depend on configure-build-libiberty. * configure: Calculate and substitute proper value for ALL_BUILD_MODULES. * configure.in: Create the build subdirectory. Calculate and substitute TARGET_CONFIGARGS (formerly CONFIG_ARGUMENTS); also BUILD_SUBDIR and BUILD_CONFIGARGS (new). libiberty: 2001-11-27 Zack Weinberg <zack@codesourcery.com> * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build in libiberty context. Fix typo in leading comment. * configure.in: Fix various AC_DEFINEs so autoheader works. If any of vprintf, vsprintf, vfprintf is missing from libc, then AC_REPLACE_FUNCS(_doprnt). From-SVN: r47393
2001-11-26configure.in: Check for alloca.h (for regex.c and putenv.c).DJ Delorie1-1/+1
* configure.in: Check for alloca.h (for regex.c and putenv.c). * configure: Regenerate. * config.h: Add HAVE_ALLOCA_H. From-SVN: r47352
2001-11-15config.in (HAVE_UINTPTR_T): Provide autoconf stub.Jeffrey A Law1-0/+12
* config.in (HAVE_UINTPTR_T): Provide autoconf stub. * configure.in (HAVE_UINTPTR_T): Test for system defining uintptr_t and define HAVE_UINTPTR_T appropriately. * regex.c (uintptr_t): Do not provide a definition if the system provided one. From-SVN: r47068
2001-11-04* configure.in: Cope with missing makeinfo.Alan Modra1-7/+12
From-SVN: r46767
2001-09-27configure.in: Don't use in-tree texinfo, because libiberty must be built ↵DJ Delorie1-12/+13
before it. * configure.in: Don't use in-tree texinfo, because libiberty must be built before it. Check for makeinfo version 4 or higher. * functions.texi: Regenerate. From-SVN: r45846
2001-09-26configure.in (MAKEINFO, PERL): Detect these.DJ Delorie1-0/+45
* configure.in (MAKEINFO, PERL): Detect these. (--enable-maintainer-mode): Add. * configure: Regenerate. * Makefile.in (MAKEINFO, PERL): Define. (libiberty.info, libiberty.dvi, libiberty.html): New. (CFILES): Add bsearch.c. (CONFIGURED_OFILES): New, list of objects configure might add. (maint-missing, maint-buildall): New, for maintainers only. (clean, mostlyclean): Add info/dvi/html files. * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New. * gather-docs: New, for maintainers. * maint-tool: New, for maintainers. * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c, bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c, getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c, memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c, sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c, strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c, tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c, xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update documentation. Co-Authored-By: Phil Edwards <pedwards@disaster.jaj.com> From-SVN: r45828
2001-08-21configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever ↵Christopher Faylor1-6/+7
hosting on cygwin. * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever hosting on cygwin. * configure: Regenerate. From-SVN: r45081
2001-08-17configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.Christopher Faylor1-0/+6
* configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin. * configure: Regenerate. From-SVN: r44979
2001-07-05Makefile.in: Add ffs.c dependency.Mark Klein1-1/+2
* Makefile.in: Add ffs.c dependency. * configure.in: Add ffs.c. * ffs.c: New file. From-SVN: r43784
2001-03-06aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.Zack Weinberg1-25/+2
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
2000-12-26bsearch.c: New file.Michael Sokolov1-7/+8
* bsearch.c: New file. * configure.in (funcs): Add bsearch. (AC_CHECK_FUNCS): Likewise. * configure, config.in: Regenerate. From-SVN: r38492
2000-11-22Makefile.in, [...]: Expunge remaining traces of facility for running MD ↵Zack Weinberg1-52/+11
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
2000-09-05configure.in (Cygwin): special case cygwin only when we're building cygwin, ↵DJ Delorie1-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
2000-07-23configure.in (AC_CHECK_HEADERS): Add time.h.Michael Sokolov1-1/+2
* 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
2000-07-23configure.in (AC_CHECK_HEADERS): Add limits.h.Michael Sokolov1-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
2000-07-23aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.Michael Sokolov1-0/+2
* 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
2000-06-07configure.in (ac_libiberty_warn_cflags): Add -pedantic.Kaveh R. Ghazi1-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
2000-04-28aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.Kaveh R. Ghazi1-1/+3
* 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
2000-01-04configure.in (ac_libiberty_warn_cflags): Turn on warnings if we're using gcc.Kaveh R. Ghazi1-0/+3
* 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
1999-08-31Makefile.in (CFILES): Add calloc.c and getpwd.c.Kaveh R. Ghazi1-2/+2
* 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
1999-06-20configure.in (checkfuncs): Add gettimeofday.Andreas Schwab1-2/+2
* configure.in (checkfuncs): Add gettimeofday. * config.in, configure: Regenerated. From-SVN: r27647
1999-06-20configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if the test fails.Mumit Khan1-0/+5
p * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if the test fails. * configure: Regenerate. From-SVN: r27642
1999-05-25Makefile.in (CFILES): Add putenv.c and setenv.c.Jeff Law1-2/+4
* 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
1999-05-06Fred Fish <fnf@be.com>Fred Fish1-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
1999-04-25configure.in (alloca detection): Handle alloca directly for interix.Donn Terry1-1/+22
* configure.in (alloca detection): Handle alloca directly for interix. * configure: Rebuilt. From-SVN: r26635
1999-04-15configure.in (checkfuncs): Check for sbrk.Mumit Khan1-1/+2
* 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
1999-04-05regress-demangle: New file.Tom Tromey1-1/+10
* 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
1999-03-10pexecute.c (__CYGWIN32__): Rename toMumit Khan1-0/+7
* 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
1999-02-08Makefile.in (REQUIRED_OFILES): remove mkstemp.oMarc Espie1-1/+2
* 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
1998-11-23* configure.in: Use AC_PREREQ(2.12.1).Kaveh R. Ghazi1-1/+1
From-SVN: r23804
1998-11-19configure.in: detect cygwin* instead of cygwin32*Geoffrey Noer1-4/+4
* configure.in: detect cygwin* instead of cygwin32* * configure: regenerate * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT From-SVN: r23725
1998-11-19configure.in: Call AC_HEADER_SYS_WAIT.Kaveh R. Ghazi1-0/+1
* configure.in: Call AC_HEADER_SYS_WAIT. * pexecute.c: Include sys/wait.h when !IN_GCC. From-SVN: r23711
1998-11-13configure.in: Check for calloc.Kaveh R. Ghazi1-1/+2
* configure.in: Check for calloc. * calloc.c: New file. * xmalloc.c (xcalloc): New function. From-SVN: r23642
1998-10-13mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.hJeffrey A Law1-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
1998-10-13getopt.c: Check HAVE_STRINGS_H before including strings.h.Jeffrey A Law1-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
1998-10-08Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)Jeff Law1-7/+10
* Merge egcs & devo libiberty. From-SVN: r22941
1998-05-30* configure.in (checkfuncs): Add missing "'".Mumit Khan1-1/+1
From-SVN: r20144
1998-05-21configure.in: Check for unistd.h as well.Manfred Hollstein1-1/+1
� * 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: r19923
1998-05-15Update from Cygnus libiberty.Jeff Law1-54/+316
libiberty uses autoconf now. From-SVN: r19791
1997-08-21Initial revisionJason Merrill1-0/+66
From-SVN: r14877