diff options
author | Alex Xu (Hello71) <alex_y_xu@yahoo.ca> | 2018-09-06 10:41:18 -0400 |
---|---|---|
committer | Alex Xu (Hello71) <alex_y_xu@yahoo.ca> | 2018-09-06 10:43:32 -0400 |
commit | cba728f142fc7fa7219d1be49c8cb4aada4309f3 (patch) | |
tree | 062611d26fec0a47a07090865c632225e0947c8a /configure.ac | |
parent | 42cae09331fe54d0e2d720b671fee101322f9602 (diff) | |
download | random-seed-cba728f142fc7fa7219d1be49c8cb4aada4309f3.tar.xz random-seed-cba728f142fc7fa7219d1be49c8cb4aada4309f3.zip |
Stuff.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac index e3ceb75..b802932 100644 --- a/configure.ac +++ b/configure.ac @@ -10,8 +10,10 @@ AS_IF([test "$ac_cv_prog_cc_c99" = no], [ AC_MSG_ERROR([a C99 compatible compiler is required]) ]) +AX_GCC_FUNC_ATTRIBUTE(fallthrough) + AC_ARG_ENABLE(unity, - AC_HELP_STRING(--enable-unity, [enable unity build (similar to sqlite amalgamation) [yes]]), + AC_HELP_STRING(--enable-unity, [enable unity build (similar to sqlite amalgamation, increases performance) [yes]]), [enable_unity=$enableval], [enable_unity=yes] ) @@ -69,12 +71,11 @@ AS_IF([test "$with_util_linux" = yes], [ PKG_CHECK_VAR(SYSTEMDSYSTEMUNITDIR, systemd, systemdsystemunitdir) -machine_id_paths_default=/etc/machine-id:/var/lib/dbus/machine-id AC_ARG_VAR([MACHINE_ID_PATHS], - [manually specify machine-id location (colon separated list, values must not contain backslashes or quotes) [$machine_id_paths_default]] + [manually specify machine-id location (colon separated list, values must not contain backslashes or quotes) [/etc/machine-id:/var/lib/dbus/machine-id]] ) machine_id_paths_c=` - printf '%s\n' "${MACHINE_ID_PATHS-$machine_id_paths_default}" | + printf '%s\n' "${MACHINE_ID_PATHS-/etc/machine-id:/var/lib/dbus/machine-id}" | sed -e ' s/^/{"/ s/:/", "/g @@ -92,8 +93,6 @@ AC_DEFINE_UNQUOTED(DEFAULT_SEED_PATH, "$DEFAULT_SEED_PATH", [default seed path]) DEFAULT_SEED_PATH_DIR=${DEFAULT_SEED_PATH%/*} AC_SUBST(DEFAULT_SEED_PATH_DIR) -AX_GCC_FUNC_ATTRIBUTE(fallthrough) - AX_APPEND_FLAG(-D_GNU_SOURCE, CPPFLAGS) AX_APPEND_FLAG(-D_DEFAULT_SOURCE, CPPFLAGS) AX_APPEND_FLAG(-D_POSIX_C_SOURCE=200809L, CPPFLAGS) |