mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-24 16:27:27 +00:00
* configure.in: Only invoke AC_FUNC_SETPGRP if not cross-compiling.
Check for SETPGRP_VOID separately if cross-compiling and ISO C
headers are available.
This commit is contained in:
@@ -1,3 +1,10 @@
|
|||||||
|
2001-07-27 Daniel Jacobowitz <drow@mvista.com>
|
||||||
|
|
||||||
|
* configure.in: Only invoke AC_FUNC_SETPGRP if not cross-compiling.
|
||||||
|
Check for SETPGRP_VOID separately if cross-compiling and ISO C
|
||||||
|
headers are available.
|
||||||
|
* configure: Regenerated.
|
||||||
|
|
||||||
2001-08-02 Mark Kettenis <kettenis@gnu.org>
|
2001-08-02 Mark Kettenis <kettenis@gnu.org>
|
||||||
|
|
||||||
* NEWS: Update.
|
* NEWS: Update.
|
||||||
|
|||||||
811
gdb/configure
vendored
811
gdb/configure
vendored
File diff suppressed because it is too large
Load Diff
@@ -134,7 +134,24 @@ AC_C_CONST
|
|||||||
AC_CHECK_FUNCS(setpgid setpgrp sbrk sigaction isascii bzero bcopy btowc poll sigprocmask)
|
AC_CHECK_FUNCS(setpgid setpgrp sbrk sigaction isascii bzero bcopy btowc poll sigprocmask)
|
||||||
AC_FUNC_VFORK
|
AC_FUNC_VFORK
|
||||||
AC_FUNC_ALLOCA
|
AC_FUNC_ALLOCA
|
||||||
AC_FUNC_SETPGRP
|
dnl AC_FUNC_SETPGRP does not work when cross compiling
|
||||||
|
dnl Instead, assume we will have a prototype for setpgrp if cross compiling.
|
||||||
|
if test "$cross_compiling" = no; then
|
||||||
|
AC_FUNC_SETPGRP
|
||||||
|
else
|
||||||
|
AC_CACHE_CHECK([whether setpgrp takes no argument], ac_cv_func_setpgrp_void,
|
||||||
|
[AC_TRY_COMPILE([
|
||||||
|
#include <unistd.h>
|
||||||
|
], [
|
||||||
|
if (setpgrp(1,1) == -1)
|
||||||
|
exit (0);
|
||||||
|
else
|
||||||
|
exit (1);
|
||||||
|
], ac_cv_func_setpgrp_void=no, ac_cv_func_setpgrp_void=yes)])
|
||||||
|
if test $ac_cv_func_setpgrp_void = yes; then
|
||||||
|
AC_DEFINE(SETPGRP_VOID, 1)
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
|
# Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
|
||||||
# since sigsetjmp might only be defined as a macro.
|
# since sigsetjmp might only be defined as a macro.
|
||||||
|
|||||||
Reference in New Issue
Block a user