mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-10-20 22:31:34 +02:00
Compare commits
7 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
918a4dba4a | ||
![]() |
444bd1fbb8 | ||
![]() |
1d69ae1cd5 | ||
![]() |
14524b545d | ||
![]() |
c21d788fea | ||
![]() |
fdcae57707 | ||
![]() |
e9e4a60d7e |
@@ -11,6 +11,9 @@ AM_INIT_AUTOMAKE([1.8 foreign nostdinc])
|
|||||||
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])],
|
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])],
|
||||||
[AC_SUBST([AM_DEFAULT_VERBOSITY], [1])])
|
[AC_SUBST([AM_DEFAULT_VERBOSITY], [1])])
|
||||||
|
|
||||||
|
# Check and store if we got user supplied variables
|
||||||
|
user_CFLAGS=${CFLAGS-unset}
|
||||||
|
|
||||||
# Checks for operating system services and capabilities.
|
# Checks for operating system services and capabilities.
|
||||||
AC_USE_SYSTEM_EXTENSIONS
|
AC_USE_SYSTEM_EXTENSIONS
|
||||||
AC_SYS_LARGEFILE
|
AC_SYS_LARGEFILE
|
||||||
@@ -22,6 +25,11 @@ AC_PROG_CC
|
|||||||
AC_PROG_INSTALL
|
AC_PROG_INSTALL
|
||||||
AC_PROG_LN_S
|
AC_PROG_LN_S
|
||||||
|
|
||||||
|
# Set default compiler variables
|
||||||
|
if test "$user_CFLAGS" = unset && test "$GCC" = yes; then
|
||||||
|
CFLAGS="$CFLAGS -Wall -Wextra -Wno-unused-variable -Wno-unused-parameter"
|
||||||
|
fi
|
||||||
|
|
||||||
# Checks for libraries.
|
# Checks for libraries.
|
||||||
|
|
||||||
# Checks for header files.
|
# Checks for header files.
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
.\"-
|
.\"-
|
||||||
.\" Copyright (c) 2007 Dag-Erling Co<EFBFBD>dan Sm<EFBFBD>rgrav
|
.\" Copyright (c) 2007 Dag-Erling Coïdan Smørgrav
|
||||||
.\" All rights reserved.
|
.\" All rights reserved.
|
||||||
.\"
|
.\"
|
||||||
.\" Redistribution and use in source and binary forms, with or without
|
.\" Redistribution and use in source and binary forms, with or without
|
||||||
@@ -84,7 +84,7 @@ includes
|
|||||||
If successful,
|
If successful,
|
||||||
.Fn flopen
|
.Fn flopen
|
||||||
returns a valid file descriptor.
|
returns a valid file descriptor.
|
||||||
Otherwise, it returns -1, and sets
|
Otherwise, it returns \-1, and sets
|
||||||
.Va errno
|
.Va errno
|
||||||
as described in
|
as described in
|
||||||
.Xr flock 2
|
.Xr flock 2
|
||||||
|
@@ -126,7 +126,7 @@ if (pfh == NULL) {
|
|||||||
warn("Cannot open or create pidfile");
|
warn("Cannot open or create pidfile");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (daemon(0, 0) == -1) {
|
if (daemon(0, 0) == \-1) {
|
||||||
warn("Cannot daemonize");
|
warn("Cannot daemonize");
|
||||||
pidfile_remove(pfh);
|
pidfile_remove(pfh);
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
@@ -138,7 +138,7 @@ for (;;) {
|
|||||||
/* Do work. */
|
/* Do work. */
|
||||||
childpid = fork();
|
childpid = fork();
|
||||||
switch (childpid) {
|
switch (childpid) {
|
||||||
case -1:
|
case \-1:
|
||||||
syslog(LOG_ERR, "Cannot fork(): %s.", strerror(errno));
|
syslog(LOG_ERR, "Cannot fork(): %s.", strerror(errno));
|
||||||
break;
|
break;
|
||||||
case 0:
|
case 0:
|
||||||
|
@@ -1,8 +1,5 @@
|
|||||||
## Process this file with automake to produce Makefile.in
|
## Process this file with automake to produce Makefile.in
|
||||||
|
|
||||||
# Set default values for user variables
|
|
||||||
CFLAGS = -Wall -Wextra -Wno-unused-variable -Wno-unused-parameter
|
|
||||||
|
|
||||||
AM_CPPFLAGS = \
|
AM_CPPFLAGS = \
|
||||||
-I$(top_builddir) \
|
-I$(top_builddir) \
|
||||||
-isystem $(top_srcdir)/include/bsd/ \
|
-isystem $(top_srcdir)/include/bsd/ \
|
||||||
@@ -37,7 +34,7 @@ libbsd_la_DEPENDENCIES = \
|
|||||||
libbsd.map
|
libbsd.map
|
||||||
libbsd_la_LDFLAGS = \
|
libbsd_la_LDFLAGS = \
|
||||||
-Wl,--version-script=$(srcdir)/libbsd.map \
|
-Wl,--version-script=$(srcdir)/libbsd.map \
|
||||||
-version-number 0:4:0
|
-version-number 0:4:2
|
||||||
libbsd_la_SOURCES = \
|
libbsd_la_SOURCES = \
|
||||||
arc4random.c \
|
arc4random.c \
|
||||||
bsd_getopt.c \
|
bsd_getopt.c \
|
||||||
@@ -73,9 +70,11 @@ libbsd_la_SOURCES = \
|
|||||||
vis.c \
|
vis.c \
|
||||||
$(nil)
|
$(nil)
|
||||||
|
|
||||||
|
runtimelibdir = $(libdir)
|
||||||
|
|
||||||
install-exec-hook:
|
install-exec-hook:
|
||||||
if [ "$(libdir)" != "$(runtimelibdir)" ]; then \
|
if [ "$(libdir)" != "$(runtimelibdir)" ]; then \
|
||||||
mkdir -p $(DESTDIR)$(runtimelibdir); \
|
$(MKDIR_P) $(DESTDIR)$(runtimelibdir); \
|
||||||
mv $(DESTDIR)$(libdir)/libbsd*.so.* \
|
mv $(DESTDIR)$(libdir)/libbsd*.so.* \
|
||||||
$(DESTDIR)$(runtimelibdir)/; \
|
$(DESTDIR)$(runtimelibdir)/; \
|
||||||
soname=`readlink $(DESTDIR)$(libdir)/libbsd.so`; \
|
soname=`readlink $(DESTDIR)$(libdir)/libbsd.so`; \
|
||||||
|
@@ -1,8 +1,5 @@
|
|||||||
## Process this file with automake to produce Makefile.in
|
## Process this file with automake to produce Makefile.in
|
||||||
|
|
||||||
# Set default values for user variables
|
|
||||||
CFLAGS = -Wall -Wextra -Wno-unused-variable -Wno-unused-parameter
|
|
||||||
|
|
||||||
AM_CPPFLAGS = \
|
AM_CPPFLAGS = \
|
||||||
-I$(top_builddir) \
|
-I$(top_builddir) \
|
||||||
-isystem $(top_srcdir)/include/bsd/ \
|
-isystem $(top_srcdir)/include/bsd/ \
|
||||||
|
Reference in New Issue
Block a user