[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 10/86: Remove autotools
From: |
Andy Wingo |
Subject: |
[Guile-commits] 10/86: Remove autotools |
Date: |
Wed, 3 Apr 2019 11:38:49 -0400 (EDT) |
wingo pushed a commit to branch lightening
in repository guile.
commit a5263b6618021415c2c69cb1a7b0e26dd8df7fe2
Author: Andy Wingo <address@hidden>
Date: Tue Oct 30 11:48:23 2018 +0100
Remove autotools
---
.gitattributes | 1 -
Makefile.am | 26 ------
configure.ac | 285 --------------------------------------------------------
lightning.pc.in | 12 ---
m4/.gitkeep | 0
5 files changed, 324 deletions(-)
diff --git a/.gitattributes b/.gitattributes
deleted file mode 100644
index e8495d5..0000000
--- a/.gitattributes
+++ /dev/null
@@ -1 +0,0 @@
-ChangeLog merge=merge-changelog
diff --git a/Makefile.am b/Makefile.am
deleted file mode 100644
index 7903efd..0000000
--- a/Makefile.am
+++ /dev/null
@@ -1,26 +0,0 @@
-#
-# Copyright 2000, 2001, 2002, 2012-2018 Free Software Foundation, Inc.
-#
-# This file is part of GNU lightning.
-#
-# GNU lightning is free software; you can redistribute it and/or modify it
-# under the terms of the GNU Lesser General Public License as published
-# by the Free Software Foundation; either version 3, or (at your option)
-# any later version.
-#
-# GNU lightning is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
-# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
-# License for more details.
-#
-
-ACLOCAL_AMFLAGS = -I m4
-
-SUBDIRS = \
- check \
- doc \
- include \
- lib
-
-pkgconfiglibdir = $(libdir)/pkgconfig
-pkgconfiglib_DATA = lightning.pc
diff --git a/configure.ac b/configure.ac
deleted file mode 100644
index cb6b8d5..0000000
--- a/configure.ac
+++ /dev/null
@@ -1,285 +0,0 @@
-dnl
-dnl Copyright 2000, 2001, 2002, 2012-2018 Free Software Foundation, Inc.
-dnl
-dnl This file is part of GNU lightning.
-dnl
-dnl GNU lightning is free software; you can redistribute it and/or modify it
-dnl under the terms of the GNU Lesser General Public License as published
-dnl by the Free Software Foundation; either version 3, or (at your option)
-dnl any later version.
-dnl
-dnl GNU lightning is distributed in the hope that it will be useful, but
-dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
-dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
-dnl License for more details.
-dnl
-
-AC_PREREQ(2.57)
-AC_INIT([GNU lightning], 2.1.2, address@hidden, lightning)
-AC_CANONICAL_TARGET
-AC_CONFIG_SRCDIR([Makefile.am])
-AM_INIT_AUTOMAKE([dist-bzip2])
-m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
-AC_CONFIG_MACRO_DIR(m4)
-
-AC_CONFIG_HEADERS(config.h)
-
-AC_PROG_CC
-AC_PROG_INSTALL
-AC_PROG_LIBTOOL
-
-case "$target_cpu" in
- ia64)
- case "$host_os" in
- # Only supported mode
- *hpux*)
- LIGHTNING_CFLAGS="$LIGHTNING_CFLAGS -mlp64" ;;
- *) ;;
- esac ;;
- *mips*)
- case "$host_os" in
- # (Hack) Flags to pass configure with gcc 3.x
- # Should not set LIGHTNINT_CFLAGS
- *irix*)
- CFLAGS="$CFLAGS -D__c99 -Drestrict=";;
- *) ;;
- esac ;;
- alpha*)
- case "$host_os" in
- osf*)
- # Get proper varargs and mmap prototypes and definitions
- CFLAGS="$CFLAGS -D_ANSI_C_SOURCE -D_XOPEN_SOURCE_EXTENDED
-D_OSF_SOURCE -D_POSIX_C_SOURCE=199309L"
- # Want to generate NaN with 0.0/0.0 and Inf with 1.0/0.0
- if test x$GCC = "xyes"; then
- CFLAGS="$CFLAGS -mieee"
- else
- CFLAGS="$CFLAGS -ieee_with_no_inexact"
- fi ;;
- *) ;;
- esac ;;
- *) ;;
-esac
-
-AC_CHECK_FUNCS(mremap ffsl getopt_long_only isnan isinf,,)
-
-AC_CHECK_HEADERS([getopt.h stdint.h],,,)
-
-AC_ARG_ENABLE(disassembler,
- AS_HELP_STRING([--enable-disassembler],
- [Enable jit disassembler using binutils]),
- [DISASSEMBLER=$enableval], [DISASSEMBLER=auto])
-if test "x$DISASSEMBLER" != "xno"; then
- # FIXME need to check for libiberty first or will fail to link
- AC_CHECK_LIB(iberty, htab_try_create, ,
- [HAVE_IBERTY="no"])
- AC_CHECK_LIB(bfd, bfd_init, ,
- [HAVE_BFD="no"])
- AC_CHECK_LIB(z, compressBound, ,
- [HAVE_Z="no"])
- AC_CHECK_LIB(opcodes, init_disassemble_info, ,
- [HAVE_OPCODES="no"])
- if test "x$HAVE_IBERTY" = "xno" -o \
- "x$HAVE_BFD" = "xno" -o \
- "x$HAVE_Z" = "xno" -o \
- "x$HAVE_OPCODES" = "xno"; then
- if test "x$DISASSEMBLER" != "xauto"; then
- AC_MSG_ERROR([binutils not found, see
http://www.gnu.org/software/binutils/])
- else
- AC_MSG_WARN([binutils not found, see
http://www.gnu.org/software/binutils/])
- DISASSEMBLER="no"
- fi
- fi
-fi
-AM_CONDITIONAL(with_disassembler, [test "x$DISASSEMBLER" != "xno"])
-if test "x$DISASSEMBLER" != "xno"; then
- LIGHTNING_CFLAGS="$LIGHTNING_CFLAGS -DDISASSEMBLER=1"
- save_CFLAGS=$CFLAGS
- CFLAGS="$CFLAGS -I$PWD/include -D_GNU_SOURCE"
- AC_COMPILE_IFELSE([AC_LANG_SOURCE(
- #include <lightning.h>
- #include <lightning/jit_private.h>
- #include <dis-asm.h>
- int main(int argc, char *argv[])
- {
- disassembler_ftype print;
- bfd *abfd;
- print = disassembler(abfd);
- return 0;
- }
- )], [ac_cv_test_new_disassembler=no],,)
- CFLAGS="$save_CFLAGS"
- if test "x$ac_cv_test_new_disassembler" != "xno"; then
- LIGHTNING_CFLAGS="$LIGHTNING_CFLAGS -DBINUTILS_2_29=1"
- fi
-fi
-
-AC_ARG_ENABLE(devel-disassembler,
- AS_HELP_STRING([--enable-devel-disassembler],
- [Enable extra disassembly options]),
- [DEVEL_DISASSEMBLER=$enableval], [DEVEL_DISASSEMBLER=no])
-if test "x$DEVEL_DISASSEMBLER" != "xno"; then
- if test "x$DISASSEMBLER" = "xno"; then
- AC_MSG_ERROR(devel-disassembler needs disassembler enabled)
- fi
- LIGHTNING_CFLAGS="$LIGHTNING_CFLAGS -DDEVEL_DISASSEMBLER=1"
-fi
-
-AC_ARG_ENABLE(assertions,
- AS_HELP_STRING([--enable-assertions],
- [Enable runtime code generation assertions]),
- [DEBUG=$enableval], [DEBUG=auto])
-if test "x$DEBUG" = xyes; then
- LIGHTNING_CFLAGS="$LIGHTNING_CFLAGS -DDEBUG=1"
-else
- LIGHTNING_CFLAGS="$LIGHTNING_CFLAGS -DNDEBUG"
- DEBUG=no
-fi
-
-case "$host_os" in
- *bsd*|osf*) SHLIB="" ;;
- *hpux*) SHLIB="-ldld" ;;
- *) SHLIB="-ldl" ;;
-esac
-AC_SUBST(SHLIB)
-
-cpu=
-case "$target_cpu" in
- i?86|x86_64|amd64) cpu=x86 ;;
- *arm*) cpu=arm ;;
- *mips*) cpu=mips ;;
- *powerpc*) cpu=ppc ;;
- *sparc*) cpu=sparc ;;
- ia64) cpu=ia64 ;;
- hppa*) cpu=hppa ;;
- aarch64) cpu=aarch64 ;;
- s390*) cpu=s390 ;;
- alpha*) cpu=alpha ;;
- *) ;;
-esac
-AM_CONDITIONAL(cpu_arm, [test cpu-$cpu = cpu-arm])
-AM_CONDITIONAL(cpu_mips, [test cpu-$cpu = cpu-mips])
-AM_CONDITIONAL(cpu_ppc, [test cpu-$cpu = cpu-ppc])
-AM_CONDITIONAL(cpu_sparc, [test cpu-$cpu = cpu-sparc])
-AM_CONDITIONAL(cpu_x86, [test cpu-$cpu = cpu-x86])
-AM_CONDITIONAL(cpu_ia64, [test cpu-$cpu = cpu-ia64])
-AM_CONDITIONAL(cpu_hppa, [test cpu-$cpu = cpu-hppa])
-AM_CONDITIONAL(cpu_aarch64, [test cpu-$cpu = cpu-aarch64])
-AM_CONDITIONAL(cpu_s390, [test cpu-$cpu = cpu-s390])
-AM_CONDITIONAL(cpu_alpha, [test cpu-$cpu = cpu-alpha])
-
-# Test x87 if both, x87 and sse2 available
-ac_cv_test_x86_x87=
-# Test arm instruction set if thumb instruction set available
-ac_cv_test_arm_arm=
-# Test sofware float if vfp available and not using hard float abi
-ac_cv_test_arm_swf=
-
-save_CFLAGS=$CFLAGS
-CFLAGS="$CFLAGS -I$PWD/include -D_GNU_SOURCE"
-if test x$cpu = x; then
- AC_MSG_ERROR([cpu $target_cpu not supported])
-elif test $cpu = x86; then
- AC_RUN_IFELSE([AC_LANG_SOURCE([[
- #include <lightning.h>
- int main(void) {
- int ac, flags;
- unsigned int eax, ebx, ecx, edx;
- if (__WORDSIZE == 64)
- return 1;
- __asm__ volatile ("pushfl;\n\t"
- "popl %0;\n\t"
- "movl \$0x240000, %1;\n\t"
- "xorl %0, %1;\n\t"
- "pushl %1;\n\t"
- "popfl;\n\t"
- "pushfl;\n\t"
- "popl %1;\n\t"
- "xorl %0, %1;\n\t"
- "pushl %0;\n\t"
- "popfl"
- : "=r" (flags), "=r" (ac));
- if ((ac & (1 << 21)) == 0)
- return 1;
- __asm__ volatile ("xchgl %%ebx, %1; cpuid; xchgl %%ebx, %1"
- : "=a" (eax), "=r" (ebx),
- "=c" (ecx), "=d" (edx)
- : "0" (1));
- return (edx & 1 << 26) ? 0 : 1;
- }
- ]])],[ac_cv_test_x86_x87=yes],[],[ac_cv_test_x86_x87=no])
-elif test $cpu = arm; then
- AC_RUN_IFELSE([AC_LANG_SOURCE([[
- #include <stdio.h>
- int main(void) {
- #if defined(__linux__)
- FILE *fp;
- char buf[128];
- if ((fp = fopen("/proc/cpuinfo", "r")) == NULL)
- return 1;
- while (fgets(buf, sizeof(buf), fp)) {
- if (strncmp(buf, "Features\t:", 10) == 0 &&
- strstr(buf + 10, "thumb")) {
- fclose(fp);
- return 0;
- }
- }
- fclose(fp);
- #elif defined(__thumb2__)
- return 0;
- #endif
- return 1;
- }
- ]])],[ac_cv_test_arm_arm=yes],[],[ac_cv_test_arm_arm=no])
- AC_RUN_IFELSE([AC_LANG_SOURCE([[
- #include <stdio.h>
- int main(void) {
- #if defined(__linux__)
- FILE *fp;
- char buf[128];
- # if !defined(__ARM_PCS_VFP)
- if ((fp = fopen("/proc/cpuinfo", "r")) == NULL)
- return 1;
- while (fgets(buf, sizeof(buf), fp)) {
- if (strncmp(buf, "Features\t:", 10) == 0 &&
- strstr(buf + 10, "vfp")) {
- fclose(fp);
- return 0;
- }
- }
- fclose(fp);
- # endif
- #endif
- return 1;
- }
- ]])],[ac_cv_test_arm_swf=yes],[],[ac_cv_test_arm_swf=no])
-elif test $cpu = ppc; then
- if test "x$DISASSEMBLER" != "xno"; then
- save_LIBS="$LIBS"
- LIBS="$LIBS $SHLIB"
- AC_CHECK_FUNCS(disassemble_init_for_target disassemble_init_powerpc)
- LIBS="$save_LIBS"
- fi
-fi
-CFLAGS=$save_CFLAGS
-
-AM_CONDITIONAL(test_x86_x87, [test x$ac_cv_test_x86_x87 = xyes])
-AM_CONDITIONAL(test_arm_arm, [test x$ac_cv_test_arm_arm = xyes])
-AM_CONDITIONAL(test_arm_swf, [test x$ac_cv_test_arm_swf = xyes])
-
-AM_CONDITIONAL(test_nodata, [test cpu-$cpu = cpu-mips -o cpu-$cpu = cpu-ppc -o
cpu-$cpu = cpu-sparc -o cpu-$cpu = cpu-x86 -o cpu-$cpu = cpu-ia64 -o cpu-$cpu =
cpu-hppa -o cpu-$cpu = cpu-s390 -o cpu-$cpu = cpu-alpha])
-
-if test $cpu = arm; then
- AC_CHECK_LIB(m, sqrtf, ,
- [AC_MSG_ERROR([sqrtf required but not available])])
-fi
-AC_SUBST(cpu)
-
-AC_SUBST([LIGHTNING_CFLAGS])
-
-AC_OUTPUT([Makefile
- lightning.pc
- doc/Makefile
- include/Makefile
- include/lightning/Makefile
- lib/Makefile
- check/Makefile])
diff --git a/lightning.pc.in b/lightning.pc.in
deleted file mode 100644
index e13f7c0..0000000
--- a/lightning.pc.in
+++ /dev/null
@@ -1,12 +0,0 @@
address@hidden@
address@hidden@
address@hidden@
address@hidden@
-
-Name: GNU Lightning
-Description: JIT library
-Version: @VERSION@
-Libs: -L${libdir} -llightning
-Cflags: -I${includedir}/
-
-
diff --git a/m4/.gitkeep b/m4/.gitkeep
deleted file mode 100644
index e69de29..0000000
- [Guile-commits] 02/86: Update .gitignore, (continued)
- [Guile-commits] 02/86: Update .gitignore, Andy Wingo, 2019/04/03
- [Guile-commits] 08/86: Remove TODO, Andy Wingo, 2019/04/03
- [Guile-commits] 06/86: Move lightning.texi up to root, and remove Makefile.am, Andy Wingo, 2019/04/03
- [Guile-commits] 09/86: Remove bits of .gitignore no longer needed, Andy Wingo, 2019/04/03
- [Guile-commits] 12/86: Rename lightning.c to jit.c, Andy Wingo, 2019/04/03
- [Guile-commits] 04/86: Remove example .c files from documentation, Andy Wingo, 2019/04/03
- [Guile-commits] 23/86: Update gitignore, Andy Wingo, 2019/04/03
- [Guile-commits] 03/86: Strip "get-jit-size" feature from lightning., Andy Wingo, 2019/04/03
- [Guile-commits] 25/86: Remove needless PUBLIC/HIDDEN definitions, Andy Wingo, 2019/04/03
- [Guile-commits] 19/86: Update call/receive machinery, Andy Wingo, 2019/04/03
- [Guile-commits] 10/86: Remove autotools,
Andy Wingo <=
- [Guile-commits] 21/86: "extern"-related cleanup, and further implementation, Andy Wingo, 2019/04/03
- [Guile-commits] 27/86: Make _rvs array static-const, Andy Wingo, 2019/04/03
- [Guile-commits] 11/86: Rename include to jit.h, move all files to jit/, Andy Wingo, 2019/04/03
- [Guile-commits] 33/86: Flesh out README, Andy Wingo, 2019/04/03
- [Guile-commits] 36/86: Add more tests, Andy Wingo, 2019/04/03
- [Guile-commits] 18/86: Add endian.h, Andy Wingo, 2019/04/03
- [Guile-commits] 30/86: Add "addi" test, Andy Wingo, 2019/04/03
- [Guile-commits] 31/86: Better loading of args to registers; add tests, Andy Wingo, 2019/04/03
- [Guile-commits] 26/86: Inline private.h into jit.c, Andy Wingo, 2019/04/03
- [Guile-commits] 32/86: Convert tests to jit_load_args, Andy Wingo, 2019/04/03