view modules/execinfo @ 17062:879fe335e7cb

execinfo: port to FreeBSD * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo if needed, as in FreeBSD. Reported by Bastien Roucariès in <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>. * modules/execinfo (Link): Add $(LIB_EXECINFO).
author Paul Eggert <eggert@cs.ucla.edu>
date Fri, 24 Aug 2012 03:29:39 -0700
parents a9db8a0359df
children
line wrap: on
line source

Description:
A GNU-like <execinfo.h>.

Files:
lib/execinfo.c
lib/execinfo.in.h
m4/execinfo.m4

Depends-on:
extern-inline

configure.ac:
gl_EXECINFO_H

Makefile.am:
BUILT_SOURCES += $(EXECINFO_H)

# We need the following in order to create <execinfo.h> when the system
# doesn't have one that works.
if GL_GENERATE_EXECINFO_H
execinfo.h: execinfo.in.h $(top_builddir)/config.status
	$(AM_V_GEN)rm -f $@-t $@ && \
	{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
	  cat $(srcdir)/execinfo.in.h; \
	} > $@-t && \
	mv $@-t $@
else
execinfo.h: $(top_builddir)/config.status
	rm -f $@
endif
MOSTLYCLEANFILES += execinfo.h execinfo.h-t

Include:
<execinfo.h>

Link:
$(LIB_EXECINFO)

License:
LGPLv2+

Maintainer:
all