-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
38 lines (29 loc) · 1.02 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Process this file with autoconf to produce a configure script.
# Written by Salonia Matteo on 28/05/2021
AC_PREREQ([2.69])
AC_INIT([tp-xfan], [1.2], [[email protected]])
AC_CONFIG_SRCDIR([src])
# Checks for programs.
AC_PROG_CC
AC_CONFIG_HEADERS([config.h])
# Checks for header files.
AC_CHECK_HEADERS([errno.h forms.h limits.h stdio.h stdlib.h unistd.h pthread.h])
# Custom parameter
AC_ARG_ENABLE([cpuopts],
[AS_HELP_STRING([--enable-cpuopts=yes|no], [Enable or Disable -march=native and -mtune=native (Default: enabled)])],
[enable_cpuopts="$enableval"],
[enable_cpuopts="yes"])
# Check if "yes" has been passed
if test "x$enable_cpuopts" = "xno"; then
AC_SUBST([CPUOPTS], [""])
else
AC_SUBST([CPUOPTS], ["-march=native -mtune=native"])
fi
# Package info
AC_SUBST([AUTHOR], ["Matteo Salonia"])
AC_SUBST([PACKAGE_URL], ["https://github.com/saloniamatteo/tp-xfan"])
AC_SUBST([PACKAGE_DONATE], ["https://saloniamatteo.top/donate.html"])
# Automake
AM_INIT_AUTOMAKE([gnu subdir-objects])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT