pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmocom-bb/+/30991 )
Change subject: layer23: generate config.h ...................................................................... layer23: generate config.h Follow-up commits will add some extra checks we want to have in config.h Include config.h in files using PACKAGE_VERSION. Change-Id: Ic779a3168012780feef8d173371387d09d383bfd --- M src/host/layer23/configure.ac M src/host/layer23/src/common/main.c M src/host/layer23/src/mobile/app_mobile.c M src/host/layer23/src/modem/app_modem.c 4 files changed, 9 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/91/30991/1 diff --git a/src/host/layer23/configure.ac b/src/host/layer23/configure.ac index 85765ae..81c0e65 100644 --- a/src/host/layer23/configure.ac +++ b/src/host/layer23/configure.ac @@ -89,6 +89,9 @@ AC_MSG_RESULT([CFLAGS="$CFLAGS"]) AC_MSG_RESULT([CPPFLAGS="$CPPFLAGS"]) +dnl Generate the output +AM_CONFIG_HEADER(config.h) + AC_OUTPUT( src/Makefile src/common/Makefile diff --git a/src/host/layer23/src/common/main.c b/src/host/layer23/src/common/main.c index eecd29f..2cdf5d4 100644 --- a/src/host/layer23/src/common/main.c +++ b/src/host/layer23/src/common/main.c @@ -50,6 +50,8 @@ #include <fcntl.h> #include <signal.h> +#include "config.h" + void *l23_ctx = NULL; static char *sap_socket_path = "/tmp/osmocom_sap"; diff --git a/src/host/layer23/src/mobile/app_mobile.c b/src/host/layer23/src/mobile/app_mobile.c index ae4845d..5bb1920 100644 --- a/src/host/layer23/src/mobile/app_mobile.c +++ b/src/host/layer23/src/mobile/app_mobile.c @@ -54,6 +54,8 @@ #include <l1ctl_proto.h> +#include "config.h" + extern void *l23_ctx; extern struct llist_head ms_list; extern int vty_reading; diff --git a/src/host/layer23/src/modem/app_modem.c b/src/host/layer23/src/modem/app_modem.c index 93f3b54..7dcda17 100644 --- a/src/host/layer23/src/modem/app_modem.c +++ b/src/host/layer23/src/modem/app_modem.c @@ -46,6 +46,8 @@ #include <l1ctl_proto.h> +#include "config.h" + static struct { struct osmocom_ms *ms; enum ccch_mode ccch_mode; -- To view, visit https://gerrit.osmocom.org/c/osmocom-bb/+/30991 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmocom-bb Gerrit-Branch: master Gerrit-Change-Id: Ic779a3168012780feef8d173371387d09d383bfd Gerrit-Change-Number: 30991 Gerrit-PatchSet: 1 Gerrit-Owner: pespin <pes...@sysmocom.de> Gerrit-MessageType: newchange