Skip to content

Commit 7a76b66

Browse files
author
antma
committed
remove printf from signal handlers
use AC_SEARCH_LIB in configure.ac (shorter code) replace '-lm -lcrypto -lz' by @libs@ in Makefile.in and AC_CHECK_LIB macros in configure.ac replace NO_BACKTRACE by HAVE_EXECINFO_H
1 parent c0e5258 commit 7a76b66

File tree

6 files changed

+244
-187
lines changed

6 files changed

+244
-187
lines changed

‎Makefile.in

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ CPPFLAGS=@CPPFLAGS@
66
DEFS=@DEFS@
77
COMPILE_FLAGS=${CFLAGS} ${CPPFLAGS} ${DEFS} -Wall -Wextra -Werror -Wno-deprecated -fno-strict-aliasing -fno-omit-frame-pointer -ggdb
88

9-
EXTRA_LIBS=@EXTRA_LIBS@
10-
LOCAL_LDFLAGS=-lm -lcrypto -lz -lssl -rdynamic -ggdb ${EXTRA_LIBS}
9+
EXTRA_LIBS=-lssl @LIBS@ @EXTRA_LIBS@
10+
LOCAL_LDFLAGS=-rdynamic -ggdb ${EXTRA_LIBS}
1111
LINK_FLAGS=${LDFLAGS} ${LOCAL_LDFLAGS}
1212

1313
HEADERS= ${srcdir}/constants.h ${srcdir}/include.h ${srcdir}/interface.h ${srcdir}/LICENSE.h ${srcdir}/loop.h ${srcdir}/mtproto-client.h ${srcdir}/mtproto-common.h ${srcdir}/net.h ${srcdir}/no-preview.h ${srcdir}/queries.h ${srcdir}/structures.h ${srcdir}/telegram.h ${srcdir}/tree.h ${srcdir}/config.h ${srcdir}/binlog.h ${srcdir}/tools.h ${srcdir}/lua-tg.h

‎config.h

+6
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
/* Define to 1 if you have the `endpwent' function. */
1414
#define HAVE_ENDPWENT 1
1515

16+
/* Define to 1 if you have the <execinfo.h> header file. */
17+
#define HAVE_EXECINFO_H 1
18+
1619
/* Define to 1 if you have the <fcntl.h> header file. */
1720
#define HAVE_FCNTL_H 1
1821

@@ -31,6 +34,9 @@
3134
/* Define to 1 if you have the `m' library (-lm). */
3235
#define HAVE_LIBM 1
3336

37+
/* Define to 1 if you have the `z' library (-lz). */
38+
#define HAVE_LIBZ 1
39+
3440
/* Define to 1 if you have the <luaconf.h> header file. */
3541
#define HAVE_LUACONF_H 1
3642

‎config.h.in

+6
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
/* Define to 1 if you have the `endpwent' function. */
1313
#undef HAVE_ENDPWENT
1414

15+
/* Define to 1 if you have the <execinfo.h> header file. */
16+
#undef HAVE_EXECINFO_H
17+
1518
/* Define to 1 if you have the <fcntl.h> header file. */
1619
#undef HAVE_FCNTL_H
1720

@@ -30,6 +33,9 @@
3033
/* Define to 1 if you have the `m' library (-lm). */
3134
#undef HAVE_LIBM
3235

36+
/* Define to 1 if you have the `z' library (-lz). */
37+
#undef HAVE_LIBZ
38+
3339
/* Define to 1 if you have the <luaconf.h> header file. */
3440
#undef HAVE_LUACONF_H
3541

0 commit comments

Comments
 (0)