mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-04 08:55:40 +03:00
support for target --with-contiki in configure
This target is to avoid accidential overwriting of hard-coded Makefile and config.h by configure. When called with --with-contiki, the files Makefile.contiki and config.h.contiki are copied to Makefile and config.h, respectively.
This commit is contained in:
1 parent
d1e394bec8
commit
ec1d50f7c3
3 files changed
+10
-1
No files matched your search
File renamed without changes.
File renamed without changes.
+10
-1
@@ -7,9 +7,18 @@
|
||||
# README for terms of use.
|
||||
|
||||
AC_PREREQ([2.65])
|
||||
AC_INIT([libcoap], [0.6.0])
|
||||
AC_INIT([libcoap], [1.8.0])
|
||||
AC_CONFIG_SRCDIR([coap.h])
|
||||
|
||||
# First check for Contiki build to quit configure before any other test
|
||||
AC_ARG_WITH(contiki,
|
||||
[AS_HELP_STRING([--with-contiki],[build libcoap for the Contiki OS])],
|
||||
[cp -p Makefile.contiki Makefile
|
||||
cp -p config.h.contiki config.h
|
||||
AC_MSG_NOTICE([Contiki build prepared])
|
||||
exit 0],
|
||||
[])
|
||||
|
||||
# Checks for programs.
|
||||
AC_PROG_MAKE_SET
|
||||
AC_PROG_CC
|
||||
|
||||
Reference in new issue
Block a user