📄 configure
字号:
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6echo "configure:1005: checking for ANSI C header files" >&5if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1010 "configure"#include "confdefs.h"#include <stdlib.h>#include <stdarg.h>#include <string.h>#include <float.h>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1018: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`if test -z "$ac_err"; then rm -rf conftest* ac_cv_header_stdc=yeselse echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_header_stdc=nofirm -f conftest*if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI.cat > conftest.$ac_ext <<EOF#line 1035 "configure"#include "confdefs.h"#include <string.h>EOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "memchr" >/dev/null 2>&1; then :else rm -rf conftest* ac_cv_header_stdc=nofirm -f conftest*fiif test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.cat > conftest.$ac_ext <<EOF#line 1053 "configure"#include "confdefs.h"#include <stdlib.h>EOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "free" >/dev/null 2>&1; then :else rm -rf conftest* ac_cv_header_stdc=nofirm -f conftest*fiif test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.if test "$cross_compiling" = yes; then :else cat > conftest.$ac_ext <<EOF#line 1074 "configure"#include "confdefs.h"#include <ctype.h>#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))int main () { int i; for (i = 0; i < 256; i++)if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);exit (0); }EOFif { (eval echo configure:1085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/nullthen :else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_header_stdc=nofirm -fr conftest*fififiecho "$ac_t""$ac_cv_header_stdc" 1>&6if test $ac_cv_header_stdc = yes; then cat >> confdefs.h <<\EOF#define STDC_HEADERS 1EOFfifor ac_hdr in sgtty.h termio.h termios.h sys/reg.h string.h proc_service.h sys/procfs.h thread_db.h linux/elf.h stdlib.h unistd.hdoac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6echo "configure:1113: checking for $ac_hdr" >&5if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1118 "configure"#include "confdefs.h"#include <$ac_hdr>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`if test -z "$ac_err"; then rm -rf conftest* eval "ac_cv_header_$ac_safe=yes"else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_$ac_safe=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` cat >> confdefs.h <<EOF#define $ac_tr_hdr 1EOF else echo "$ac_t""no" 1>&6fidoneecho $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6echo "configure:1151: checking whether strerror must be declared" >&5if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1156 "configure"#include "confdefs.h"#include <stdio.h>#ifdef HAVE_STRING_H#include <string.h>#else#ifdef HAVE_STRINGS_H#include <strings.h>#endif#endif#ifdef HAVE_STDLIB_H#include <stdlib.h>#endif#ifdef HAVE_UNISTD_H#include <unistd.h>#endifint main() {char *(*pfn) = (char *(*)) strerror; return 0; }EOFif { (eval echo configure:1177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* bfd_cv_decl_needed_strerror=noelse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* bfd_cv_decl_needed_strerror=yesfirm -f conftest*fiecho "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6if test $bfd_cv_decl_needed_strerror = yes; then cat >> confdefs.h <<\EOF#define NEED_DECLARATION_STRERROR 1EOFfi. ${srcdir}/configure.srvif test "${srv_linux_usrregs}" = "yes"; then cat >> confdefs.h <<\EOF#define HAVE_LINUX_USRREGS 1EOFfiif test "${srv_linux_regsets}" = "yes"; then echo $ac_n "checking for PTRACE_GETREGS""... $ac_c" 1>&6echo "configure:1209: checking for PTRACE_GETREGS" >&5 if eval "test \"`echo '$''{'gdbsrv_cv_have_ptrace_getregs'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1214 "configure"#include "confdefs.h"#include <sys/ptrace.h>int main() {PTRACE_GETREGS;; return 0; }EOFif { (eval echo configure:1221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* gdbsrv_cv_have_ptrace_getregs=yeselse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* gdbsrv_cv_have_ptrace_getregs=nofirm -f conftest*fi echo "$ac_t""$gdbsrv_cv_have_ptrace_getregs" 1>&6 if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then cat >> confdefs.h <<\EOF#define HAVE_LINUX_REGSETS 1EOF fi echo $ac_n "checking for PTRACE_GETFPXREGS""... $ac_c" 1>&6echo "configure:1242: checking for PTRACE_GETFPXREGS" >&5 if eval "test \"`echo '$''{'gdbsrv_cv_have_ptrace_getfpxregs'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1247 "configure"#include "confdefs.h"#include <sys/ptrace.h>int main() {PTRACE_GETFPXREGS;; return 0; }EOFif { (eval echo configure:1254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* gdbsrv_cv_have_ptrace_getfpxregs=yeselse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* gdbsrv_cv_have_ptrace_getfpxregs=nofirm -f conftest*fi echo "$ac_t""$gdbsrv_cv_have_ptrace_getfpxregs" 1>&6 if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then cat >> confdefs.h <<\EOF#define HAVE_PTRACE_GETFPXREGS 1EOF fifiif test "$ac_cv_header_sys_procfs_h" = yes; then echo $ac_n "checking for lwpid_t in sys/procfs.h""... $ac_c" 1>&6echo "configure:1277: checking for lwpid_t in sys/procfs.h" >&5 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpid_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1282 "configure"#include "confdefs.h"#define _SYSCALL32#include <sys/procfs.h>int main() {lwpid_t avar; return 0; }EOFif { (eval echo configure:1291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* bfd_cv_have_sys_procfs_type_lwpid_t=yeselse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* bfd_cv_have_sys_procfs_type_lwpid_t=no firm -f conftest*fi if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then cat >> confdefs.h <<\EOF#define HAVE_LWPID_T 1EOF fi echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpid_t" 1>&6 echo $ac_n "checking for psaddr_t in sys/procfs.h""... $ac_c" 1>&6echo "configure:1313: checking for psaddr_t in sys/procfs.h" >&5 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psaddr_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1318 "configure"#include "confdefs.h"#define _SYSCALL32#include <sys/procfs.h>int main() {psaddr_t avar; return 0; }EOFif { (eval echo configure:1327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* bfd_cv_have_sys_procfs_type_psaddr_t=yeselse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* bfd_cv_have_sys_procfs_type_psaddr_t=no firm -f conftest*fi if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then cat >> confdefs.h <<\EOF#define HAVE_PSADDR_T 1EOF fi echo "$ac_t""$bfd_cv_have_sys_procfs_type_psaddr_t" 1>&6 echo $ac_n "checking for prgregset_t in sys/procfs.h""... $ac_c" 1>&6echo "configure:1349: checking for prgregset_t in sys/procfs.h" >&5 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1354 "configure"#include "confdefs.h"#define _SYSCALL32#include <sys/procfs.h>int main() {prgregset_t avar; return 0; }EOFif { (eval echo configure:1363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* bfd_cv_have_sys_procfs_type_prgregset_t=yeselse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* bfd_cv_have_sys_procfs_type_prgregset_t=no firm -f conftest*fi if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then cat >> confdefs.h <<\EOF#define HAVE_PRGREGSET_T 1EOF fi echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset_t" 1>&6 echo $ac_n "checking for prfpregset_t in sys/procfs.h""... $ac_c" 1>&6echo "configure:1385: checking for prfpregset_t in sys/procfs.h" >&5 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1390 "configure"#include "confdefs.h"#define _SYSCALL32#include <sys/procfs.h>int main() {prfpregset_t avar; return 0; }EOFif { (eval echo configure:1399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* bfd_cv_have_sys_procfs_type_prfpregset_t=yeselse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* bfd_cv_have_sys_procfs_type_prfpregset_t=no firm -f conftest*fi if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then cat >> confdefs.h <<\EOF#define HAVE_PRFPREGSET_T 1EOF fi echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset_t" 1>&6 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then echo $ac_n "checking whether prfpregset_t type is broken""... $ac_c" 1>&6echo "configure:1425: checking whether prfpregset_t type is broken" >&5 if eval "test \"`echo '$''{'gdb_cv_prfpregset_t_broken'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else if test "$cross_compiling" = yes; then gdb_cv_prfpregset_t_broken=yeselse cat > conftest.$ac_ext <<EOF#line 1433 "configure"#include "confdefs.h"#include <sys/procfs.h> int main () { if (sizeof (prfpregset_t) == sizeof (void *)) return 1; return 0; }EOFif { (eval echo configure:1443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/nullthen gdb_cv_prfpregset_t_broken=noelse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* gdb_cv_prfpregset_t_broken=yesfirm -fr conftest*fifi echo "$ac_t""$gdb_cv_prfpregset_t_broken" 1>&6 if test $gdb_cv_prfpregset_t_broken = yes; then cat >> confdefs.h <<\EOF#define PRFPREGSET_T_BROKEN 1EOF fi fi echo $ac_n "checking for elf_fpregset_t in sys/procfs.h""... $ac_c" 1>&6echo "configure:1467: checking for elf_fpregset_t in sys/procfs.h" >&5 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_elf_fpregset_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1472 "configure"#include "confdefs.h"#define _SYSCALL32#include <sys/procfs.h>int main() {elf_fpregset_t avar; return 0; }EOFif { (eval echo configure:1481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* bfd_cv_have_sys_procfs_type_elf_fpregset_t=yeselse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* bfd_cv_have_sys_procfs_type_elf_fpregset_t=no firm -f conftest*fi if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then cat >> confdefs.h <<\EOF#define HAVE_ELF_FPREGSET_T 1EOF fi echo "$ac_t""$bfd_cv_have_sys_procfs_type_elf_fpregset_t" 1>&6fisrv_thread_depfiles=
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -