Skip to content

Commit

Permalink
Replace custom configure script with Autotools
Browse files Browse the repository at this point in the history
  • Loading branch information
HolyWu committed Mar 4, 2017
1 parent cac6c47 commit 296d76b
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 289 deletions.
46 changes: 0 additions & 46 deletions GNUmakefile

This file was deleted.

11 changes: 11 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
warning_flags = -Wall -Wextra -Wshadow -Wno-unused-parameter
common_cflags = -O3 -ffast-math $(MFLAGS) $(warning_flags)
AM_CXXFLAGS = -std=c++11 $(common_cflags)

AM_CPPFLAGS = $(VapourSynth_CFLAGS)

lib_LTLIBRARIES = libeedi2.la

libeedi2_la_SOURCES = EEDI2/EEDI2.cpp

libeedi2_la_LDFLAGS = -no-undefined -avoid-version $(PLUGINLDFLAGS)
3 changes: 3 additions & 0 deletions autogen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

autoreconf --verbose --install --force
243 changes: 0 additions & 243 deletions configure

This file was deleted.

51 changes: 51 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
AC_INIT([EEDI2], [7], [https://github.com/HomeOfVapourSynthEvolution/VapourSynth-EEDI2/issues], [EEDI2], [https://github.com/HomeOfVapourSynthEvolution/VapourSynth-EEDI2/])

: ${CXXFLAGS=""}

AM_INIT_AUTOMAKE([foreign no-dist-gzip dist-xz subdir-objects no-define])
AM_SILENT_RULES([yes])

LT_INIT([disable-static win32-dll])

AC_PROG_CXX

AC_CANONICAL_HOST


X86="false"
PPC="false"
ARM="false"

AS_CASE(
[$host_cpu],
[i?86], [BITS="32" X86="true"],
[x86_64], [BITS="64" X86="true"],
[powerpc*], [PPC="true"],
[arm*], [ARM="true"]
)

AS_CASE(
[$host_os],
[cygwin*|mingw*],
[
AS_IF(
[test "x$BITS" = "x32"],
[
AC_SUBST([PLUGINLDFLAGS], ["-Wl,--kill-at"])
]
)
]
)

AS_IF(
[test "x$X86" = "xtrue"],
[
AC_SUBST([MFLAGS], ["-mfpmath=sse -msse2"])
]
)


PKG_CHECK_MODULES([VapourSynth], [vapoursynth])

AC_CONFIG_FILES([Makefile])
AC_OUTPUT

0 comments on commit 296d76b

Please sign in to comment.