From c13e7fd0735c8bfaaae809039b222fd1fdfb773c Mon Sep 17 00:00:00 2001 From: Marc Kleine-Budde Date: Thu, 23 May 2024 08:57:48 +0200 Subject: [PATCH] build-systems: remove autotools and Android.mk Remove autotools and Android.mk support. This clauses less friction when adding new tools. Link: https://github.com/linux-can/can-utils/issues/526 --- .gitignore | 30 +- Android.mk | 498 --------------------- GNUmakefile.am | 198 -------- autogen.sh | 22 - config/m4/.secret-world-domination-project | 0 configure.ac | 141 ------ 6 files changed, 2 insertions(+), 887 deletions(-) delete mode 100644 Android.mk delete mode 100644 GNUmakefile.am delete mode 100755 autogen.sh delete mode 100644 config/m4/.secret-world-domination-project delete mode 100644 configure.ac diff --git a/.gitignore b/.gitignore index 4a56b853..24a83118 100644 --- a/.gitignore +++ b/.gitignore @@ -1,30 +1,9 @@ *~ *.o -*.lo -*.la -.deps -.libs .ccls-cache compile_commands.json - -configure -libtool -GNUmakefile -GNUmakefile.in - -/aclocal.m4 -/autom4te.cache/ -/calc-bit-timing/.dirstamp -/config.log -/config.status -/config/autoconf/ -/config/m4/libtool.m4 -/config/m4/ltoptions.m4 -/config/m4/ltsugar.m4 -/config/m4/ltversion.m4 -/config/m4/lt~obsolete.m4 -/isobusfs/.dirstamp -/mcp251xfd/.dirstamp +tags +/build /asc2log /bcmserver @@ -59,8 +38,3 @@ GNUmakefile.in /slcand /slcanpty /testj1939 - -/can-utils-*.tar.bz2 -/can-utils-*.tar.gz - -tags diff --git a/Android.mk b/Android.mk deleted file mode 100644 index 35454b60..00000000 --- a/Android.mk +++ /dev/null @@ -1,498 +0,0 @@ -LOCAL_PATH := $(call my-dir) - -PRIVATE_LOCAL_CFLAGS := -O2 -g -W -Wall \ - -Wno-error=unused-parameter \ - -DSO_RXQ_OVFL=40 \ - -DPF_CAN=29 \ - -DAF_CAN=PF_CAN - -# -# canlib -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := lib.c canframelen.c -LOCAL_MODULE := libcan -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_STATIC_LIBRARY) - -# -# j1939lib -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := libj1939.c -LOCAL_MODULE := libj1939 -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_STATIC_LIBRARY) - -# -# j1939acd -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := j1939acd.c -LOCAL_MODULE := j1939acd -LOCAL_MODULE_TAGS := optional -LOCAL_STATIC_LIBRARIES := libj1939 -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) - -# -# j1939cat -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := j1939cat.c -LOCAL_MODULE := j1939cat -LOCAL_MODULE_TAGS := optional -LOCAL_STATIC_LIBRARIES := libj1939 -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) - -# -# j1939spy -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := j1939spy.c -LOCAL_MODULE := j1939spy -LOCAL_MODULE_TAGS := optional -LOCAL_STATIC_LIBRARIES := libj1939 -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) - -# -# j1939sr -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := j1939sr.c -LOCAL_MODULE := j1939sr -LOCAL_MODULE_TAGS := optional -LOCAL_STATIC_LIBRARIES := libj1939 -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) - -# -# testj1939 -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := testj1939.c -LOCAL_MODULE := testj1939 -LOCAL_MODULE_TAGS := optional -LOCAL_STATIC_LIBRARIES := libj1939 -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) - -# -# candump -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := candump.c -LOCAL_MODULE := candump -LOCAL_MODULE_TAGS := optional -LOCAL_STATIC_LIBRARIES := libcan -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) - -# -# cansend -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := cansend.c -LOCAL_MODULE := cansend -LOCAL_MODULE_TAGS := optional -LOCAL_STATIC_LIBRARIES := libcan -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) - -# -# cansequence -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := cansequence.c -LOCAL_MODULE := cansequence -LOCAL_MODULE_TAGS := optional -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) - -include $(BUILD_EXECUTABLE) - -# -# bcmserver -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := bcmserver.c -LOCAL_MODULE := bcmserver -LOCAL_MODULE_TAGS := optional -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) - -# -# can-calc-bit-timing -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := calc-bit-timing/can-calc-bit-timing.c -LOCAL_MODULE := can-calc-bit-timing -LOCAL_MODULE_TAGS := optional -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) - -# -# canbusload -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := canbusload.c -LOCAL_MODULE := canbusload -LOCAL_MODULE_TAGS := optional -LOCAL_STATIC_LIBRARIES := libcan -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) - -# -# canfdtest -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := canfdtest.c -LOCAL_MODULE := canfdtest -LOCAL_MODULE_TAGS := optional -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) - -# -# cangen -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := cangen.c -LOCAL_MODULE := cangen -LOCAL_MODULE_TAGS := optional -LOCAL_STATIC_LIBRARIES := libcan -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) - -# -# cangw -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := cangw.c -LOCAL_MODULE := cangw -LOCAL_MODULE_TAGS := optional -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) - -# -# canlogserver -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := canlogserver.c -LOCAL_MODULE := canlogserver -LOCAL_MODULE_TAGS := optional -LOCAL_STATIC_LIBRARIES := libcan -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) - -# -# canplayer -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := canplayer.c -LOCAL_MODULE := canplayer -LOCAL_MODULE_TAGS := optional -LOCAL_STATIC_LIBRARIES := libcan -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) - -# -# cansniffer -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := cansniffer.c -LOCAL_MODULE := cansniffer -LOCAL_MODULE_TAGS := optional -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) - -# -# isotpdump -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := isotpdump.c -LOCAL_MODULE := isotpdump -LOCAL_MODULE_TAGS := optional -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) - -# -# isotprecv -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := isotprecv.c -LOCAL_MODULE := isotprecv -LOCAL_MODULE_TAGS := optional -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) - -# -# isotpsend -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := isotpsend.c -LOCAL_MODULE := isotpsend -LOCAL_MODULE_TAGS := optional -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) - -# -# isotpserver -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := isotpserver.c -LOCAL_MODULE := isotpserver -LOCAL_MODULE_TAGS := optional -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) - -# -# isotpsniffer -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := isotpsniffer.c -LOCAL_MODULE := isotpsniffer -LOCAL_MODULE_TAGS := optional -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) - -# -# isotptun -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := isotptun.c -LOCAL_MODULE := isotptun -LOCAL_MODULE_TAGS := optional -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) - -# -# isotpperf -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := isotpperf.c -LOCAL_MODULE := isotpperf -LOCAL_MODULE_TAGS := optional -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) - -# -# log2asc -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := log2asc.c -LOCAL_MODULE := log2asc -LOCAL_MODULE_TAGS := optional -LOCAL_STATIC_LIBRARIES := libcan -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) - -# -# asc2log -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := asc2log.c -LOCAL_MODULE := asc2log -LOCAL_MODULE_TAGS := optional -LOCAL_STATIC_LIBRARIES := libcan -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) - -# -# log2long -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := log2long.c -LOCAL_MODULE := log2long -LOCAL_MODULE_TAGS := optional -LOCAL_STATIC_LIBRARIES := libcan -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) - -# -# slcan_attach -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := slcan_attach.c -LOCAL_MODULE := slcan_attach -LOCAL_MODULE_TAGS := optional -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) - -# -# slcand -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := slcand.c -LOCAL_MODULE := slcand -LOCAL_MODULE_TAGS := optional -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) - -# -# slcanpty -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := lib.c slcanpty.c -LOCAL_MODULE := slcanpty -LOCAL_MODULE_TAGS := optional -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) diff --git a/GNUmakefile.am b/GNUmakefile.am deleted file mode 100644 index 1f06437f..00000000 --- a/GNUmakefile.am +++ /dev/null @@ -1,198 +0,0 @@ -ACLOCAL_AMFLAGS = -I config/m4 - -AM_CPPFLAGS = \ - -I$(top_srcdir)/include \ - -I$(top_builddir)/include \ - $(linux_CFLAGS) - -EXTRA_DIST = - -# link every app against libcan, it's static so it wouldn't hurt -LDADD = \ - libcan.la - -noinst_HEADERS = \ - canframelen.h \ - isobusfs/isobusfs_cli.h \ - isobusfs/isobusfs_cmn.h \ - isobusfs/isobusfs_cmn_cm.h \ - isobusfs/isobusfs_cmn_dh.h \ - isobusfs/isobusfs_cmn_fa.h \ - isobusfs/isobusfs_cmn_fh.h \ - isobusfs/isobusfs_cmn_va.h \ - isobusfs/isobusfs_srv.h \ - lib.h \ - libj1939.h \ - terminal.h \ - include/linux/can.h \ - include/linux/can/bcm.h \ - include/linux/can/error.h \ - include/linux/can/gw.h \ - include/linux/can/isotp.h \ - include/linux/can/j1939.h \ - include/linux/can/netlink.h \ - include/linux/can/raw.h \ - include/linux/can/vxcan.h \ - include/linux/errqueue.h \ - include/linux/kernel.h \ - include/linux/net_tstamp.h \ - include/linux/netlink.h - -noinst_LTLIBRARIES = \ - libcan.la \ - libj1939.la - -libcan_la_SOURCES = \ - lib.c \ - canframelen.c - -libj1939_la_SOURCES = \ - libj1939.c - -can_calc_bit_timing_SOURCES = \ - calc-bit-timing/can-calc-bit-timing.c \ - calc-bit-timing/compat.h - -EXTRA_DIST += \ - calc-bit-timing/can-calc-bit-timing-v2_6_31.c \ - calc-bit-timing/can-calc-bit-timing-v3_18.c \ - calc-bit-timing/can-calc-bit-timing-v4_8.c \ - calc-bit-timing/can-calc-bit-timing-v5_16.c \ - calc-bit-timing/can-calc-bit-timing-v5_19.c \ - calc-bit-timing/can-calc-bit-timing-v6_3.c - -mcp251xfd_dump_SOURCES = \ - mcp251xfd/mcp251xfd-dev-coredump.c \ - mcp251xfd/mcp251xfd-dump-userspace.h \ - mcp251xfd/mcp251xfd-dump.c \ - mcp251xfd/mcp251xfd-dump.h \ - mcp251xfd/mcp251xfd-main.c \ - mcp251xfd/mcp251xfd-regmap.c \ - mcp251xfd/mcp251xfd.h - -EXTRA_DIST += \ - mcp251xfd/99-devcoredump.rules \ - mcp251xfd/data/devcoredump-canfd-v5.15.dump \ - mcp251xfd/data/devcoredump-canfd.dump \ - mcp251xfd/data/devcoredump-classic-can-v5.15.dump \ - mcp251xfd/data/devcoredump-classic-can.dump \ - mcp251xfd/data/registers-canfd-v5.15.dump \ - mcp251xfd/data/registers-canfd.dump \ - mcp251xfd/data/registers-classic-can-v5.15.dump \ - mcp251xfd/data/registers-classic-can.dump \ - mcp251xfd/devcoredump \ - mcp251xfd/mcp251xfd-gen-testdata.sh - -lib_LTLIBRARIES = \ - libisobusfs.la - -libisobusfs_la_SOURCES = \ - isobusfs/isobusfs_cmn.c \ - isobusfs/isobusfs_cmn_dh.c - -bin_PROGRAMS = \ - asc2log \ - can-calc-bit-timing \ - canbusload \ - candump \ - canfdtest \ - cangen \ - cangw \ - canplayer \ - cansend \ - cansequence \ - cansniffer \ - isobusfs-cli \ - isobusfs-srv \ - isotpdump \ - isotpperf \ - isotprecv \ - isotpsend \ - isotpsniffer \ - isotptun \ - j1939acd \ - j1939cat \ - j1939spy \ - j1939sr \ - log2asc \ - log2long \ - mcp251xfd-dump \ - slcan_attach \ - slcand \ - slcanpty \ - testj1939 - -if HAVE_FORK -bin_PROGRAMS += \ - bcmserver \ - canlogserver \ - isotpserver -endif - -isobusfs_cli_SOURCES = \ - isobusfs/isobusfs_cli.c \ - isobusfs/isobusfs_cli_cm.c \ - isobusfs/isobusfs_cli_dh.c \ - isobusfs/isobusfs_cli_fa.c \ - isobusfs/isobusfs_cli_selftests.c \ - isobusfs/isobusfs_cli_int.c - -isobusfs_cli_LDADD = \ - libisobusfs.la \ - libcan.la - -isobusfs_srv_SOURCES = \ - isobusfs/isobusfs_srv.c \ - isobusfs/isobusfs_srv_cm.c \ - isobusfs/isobusfs_srv_cm_fss.c \ - isobusfs/isobusfs_srv_dh.c \ - isobusfs/isobusfs_srv_fa.c \ - isobusfs/isobusfs_srv_fh.c \ - isobusfs/isobusfs_srv_vh.c - -isobusfs_srv_LDADD = \ - libisobusfs.la \ - libcan.la - -EXTRA_DIST += \ - isobusfs/isobusfs_create_test_dirs.sh \ - isobusfs/isobusfs_create_test_file.sh - -j1939acd_LDADD = libj1939.la -j1939cat_LDADD = libj1939.la -j1939spy_LDADD = libj1939.la -j1939sr_LDADD = libj1939.la -testj1939_LDADD = libj1939.la - -EXTRA_DIST += \ - .travis.yml \ - Android.mk \ - README.md \ - autogen.sh \ - can-j1939-kickstart.md \ - can-j1939.md \ - can-tc-init-etf.sh - -MAINTAINERCLEANFILES = \ - configure \ - GNUmakefile.in \ - aclocal.m4 \ - config/autoconf/compile \ - config/autoconf/config.guess \ - config/autoconf/config.sub \ - config/autoconf/depcomp \ - config/autoconf/install-sh \ - config/autoconf/ltmain.sh \ - config/autoconf/mdate-sh \ - config/autoconf/missing \ - config/autoconf/texinfo.tex \ - config/m4/libtool.m4 \ - config/m4/ltoptions.m4 \ - config/m4/ltsugar.m4 \ - config/m4/ltversion.m4 \ - config/m4/lt~obsolete.m4 \ - $(DIST_ARCHIVES) - -maintainer-clean-local: - -chmod -R a+rw $(distdir) - -rm -fr $(distdir) diff --git a/autogen.sh b/autogen.sh deleted file mode 100755 index 6d1c20a2..00000000 --- a/autogen.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/bash - -# -# usage: -# -# banner -# -banner() { - echo - TG=`echo $1 | sed -e "s,/.*/,,g"` - LINE=`echo $TG |sed -e "s/./-/g"` - echo $LINE - echo $TG - echo $LINE - echo -} - -banner "autoreconf" - -autoreconf --force --install -Wall || exit $? - -banner "Finished" diff --git a/config/m4/.secret-world-domination-project b/config/m4/.secret-world-domination-project deleted file mode 100644 index e69de29b..00000000 diff --git a/configure.ac b/configure.ac deleted file mode 100644 index 9bf62a5c..00000000 --- a/configure.ac +++ /dev/null @@ -1,141 +0,0 @@ -# -*- Autoconf -*- -# Process this file with autoconf to produce a configure script. -AC_PREREQ([2.59]) - -AC_INIT([can-utils],[trunk],[linux-can@vger.kernel.org]) -AC_CONFIG_SRCDIR([lib.c]) -AC_CONFIG_MACRO_DIR([config/m4]) -AC_CONFIG_AUX_DIR([config/autoconf]) -AC_CANONICAL_BUILD -AC_CANONICAL_HOST - -# If possible, enable extensions to Posix -AC_USE_SYSTEM_EXTENSIONS - -#AM_MAINTAINER_MODE - -CFLAGS="${CFLAGS} -Wall" - -# -# Checks for programs. -# -AC_PROG_CC -LT_INIT(win32-dll) - -AM_INIT_AUTOMAKE([foreign no-exeext dist-bzip2 subdir-objects]) -m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) - -# -# Checks for header files. -# -AC_CHECK_HEADERS([ \ - fcntl.h \ - limits.h \ - locale.h \ - stdint.h \ - stdlib.h \ - string.h \ - syslog.h \ - termios.h \ - unistd.h \ - \ - netinet/in.h \ - \ - sys/ioctl.h \ - sys/socket.h \ - sys/time.h \ -]) - - -# -# Checks for typedefs, structures, and compiler characteristics. -# -AC_C_INLINE -AC_SYS_LARGEFILE -AC_TYPE_OFF_T -AC_TYPE_PID_T -AC_TYPE_UINT64_T - - -# -# Checks for library functions. -# -AC_FUNC_FORK -AC_FUNC_MKTIME -AC_CHECK_FUNCS([ \ - alarm \ - gettimeofday \ - localtime_r \ - memset \ - select \ - setlocale \ - socket \ - strchr \ - strerror \ - strstr \ - strtoul \ -]) - -AM_CONDITIONAL(HAVE_FORK, test "$ac_cv_func_fork_works" = "yes") - -# glibc versions before 2.17 needs to link with -lrt for clock_nanosleep -AC_SEARCH_LIBS([clock_nanosleep], [rt]) - -AC_CHECK_DECL(SO_RXQ_OVFL,, - [AC_DEFINE([SO_RXQ_OVFL], [40], [SO_RXQ_OVFL])], - [[#include ]] -) -AC_CHECK_DECL(PF_CAN,, - [AC_DEFINE([PF_CAN], [29], [PF_CAN])], - [[#include ]] -) -AC_CHECK_DECL(AF_CAN,, - [AC_DEFINE([AF_CAN], [PF_CAN], [AF_CAN])], - [[#include ]] -) -AC_CHECK_DECL(N_SLCAN,, - [AC_DEFINE([N_SLCAN], [17], [N_SLCAN])], - [[#include ]] -) -AC_CHECK_DECL(SCM_TIMESTAMPING_OPT_STATS,, - [AC_DEFINE([SCM_TIMESTAMPING_OPT_STATS], [54], [SCM_TIMESTAMPING_OPT_STATS])], - [[#include ]] -) -AC_CHECK_DECL(CLOCK_TAI,, - [AC_DEFINE([CLOCK_TAI], [11], [CLOCK_TAI])], - [[#include ]] -) -AC_CHECK_DECL(SO_TXTIME,, - [AC_DEFINE([SO_TXTIME], [61], [SO_TXTIME])], - [[#include ]] -) -AC_CHECK_DECL(SCM_TXTIME,, - [AC_DEFINE([SCM_TXTIME], [SO_TXTIME], [SCM_TXTIME])], - [[#include ]] -) - - -# -# Debugging -# -AC_MSG_CHECKING([whether to enable debugging]) -AC_ARG_ENABLE(debug, - AS_HELP_STRING([--enable-debug], [enable debugging [[default=no]]]), - [case "$enableval" in - (y | yes) CONFIG_DEBUG=yes ;; - (*) CONFIG_DEBUG=no ;; - esac], - [CONFIG_DEBUG=no]) -AC_MSG_RESULT([${CONFIG_DEBUG}]) -if test "${CONFIG_DEBUG}" = "yes"; then - CFLAGS="${CFLAGS} -Wsign-compare -Wfloat-equal -Wformat-security -g -O1" - AC_DEFINE(DEBUG, 1, [debugging]) -else - CFLAGS="${CFLAGS} -O2" -fi - - -AC_CONFIG_FILES([ - GNUmakefile - ]) -AC_OUTPUT