X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Ftestsuite%2Fconfigure.ac;h=1c4dc99c47dc3a173a6c9f07e967e1cd448c8cf5;hb=d7df654955c2423190b05b2507caf624ce3d65bc;hp=bb98e6f79f62eac951d9bcb39ae0688a8bfe7bad;hpb=28d41a992fe2b335e93e84f724c76df8ed47fe28;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/testsuite/configure.ac b/gdb/testsuite/configure.ac index bb98e6f79f..1c4dc99c47 100644 --- a/gdb/testsuite/configure.ac +++ b/gdb/testsuite/configure.ac @@ -1,8 +1,7 @@ # -*- Autoconf -*- # Process this file with autoconf to produce a configure script. -# Copyright 2002, 2003, 2004, 2005 -# Free Software Foundation, Inc. +# Copyright 2002-2019 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -17,7 +16,6 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -AC_PREREQ(2.59) AC_INIT(gdb.base) AC_CANONICAL_BUILD @@ -26,43 +24,10 @@ AC_CANONICAL_TARGET ACX_NONCANONICAL_TARGET -# Add HP-specific tests when appropriate. -case $target in - hppa*-*-hpux*) - AC_CONFIG_SUBDIRS(gdb.hp) ;; -esac - -# With stabs. -AC_ARG_WITH(stabs, -[ --with-stabs arrange to use stabs instead of host debug format],, -[# We enable stabs tests by default on selected targets. -case $target in - powerpc-*-aix* \ - | rs6000-*-aix* \ - | *-*-*bsd* \ - | *-*-go32* \ - | *-*-linux* \ - | *-*-lynxos* \ - | *-sun-* \ - | hppa*-*-* \ - | *-*-elf* \ - | *-*-cygwin* \ - | *-*-mingw* \ - ) - with_stabs=yes ;; - *) - with_stabs=no ;; -esac]) - -# Add stabs tests when appropriate. -if test $with_stabs = yes; then - AC_CONFIG_SUBDIRS(gdb.stabs) -fi - # Enable gdbtk. AC_ARG_ENABLE(gdbtk, [ --enable-gtk enable gdbtk graphical user interface (GUI)],, - [if test -d $srcdir/gdb.gdbtk; then + [if test -d $srcdir/../gdbtk && test -d $srcdir/gdb.gdbtk; then enable_gdbtk=yes else enable_gdbtk=no @@ -100,8 +65,6 @@ else fi ;; darwin* | rhapsody*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; - hpux*) - RPATH_ENVVAR=SHLIB_PATH ;; esac fi AC_SUBST(RPATH_ENVVAR) @@ -110,12 +73,23 @@ AC_CHECK_HEADERS(pthread.h) AC_EXEEXT -AC_OUTPUT([Makefile \ - gdb.ada/Makefile \ - gdb.arch/Makefile gdb.asm/Makefile gdb.base/Makefile \ - gdb.cp/Makefile gdb.disasm/Makefile gdb.dwarf2/Makefile \ - gdb.fortran/Makefile gdb.server/Makefile \ - gdb.java/Makefile gdb.mi/Makefile gdb.modula2/Makefile \ - gdb.objc/Makefile gdb.opt/Makefile gdb.pascal/Makefile \ - gdb.python/Makefile gdb.reverse/Makefile \ - gdb.threads/Makefile gdb.trace/Makefile gdb.xml/Makefile]) +if test "${build}" = "${host}" -a "${host}" = "${target}"; then + case "${host}" in + *gnu*) + EXTRA_RULES=read1 + ;; + esac +fi +AC_SUBST(EXTRA_RULES) + +# Transform the name of some programs and generate the lib/pdtrace +# test tool. +AC_ARG_PROGRAM +GDB_AC_TRANSFORM(strip, STRIP_TRANSFORM_NAME) +GDB_AC_TRANSFORM(readelf, READELF_TRANSFORM_NAME) +GDB_AC_TRANSFORM(as, GAS_TRANSFORM_NAME) +GDB_AC_TRANSFORM(nm, NM_TRANSFORM_NAME) +AC_CONFIG_FILES([lib/pdtrace], [chmod +x lib/pdtrace]) +AC_CONFIG_FILES([Makefile]) + +AC_OUTPUT