generate a libssh2_config.h in the example dir
buildconf copies the template to example/ and configure makes sure to generate a proper file from it and the direct_tcpip.c example is the first one to use it - to make sure it builds fine on more paltforms
Этот коммит содержится в:
родитель
11a114ee7c
Коммит
e3d8c1cfed
@ -22,6 +22,6 @@ ${AUTOHEADER:-autoheader}
|
|||||||
# copy the private libssh2_config.h.in to the examples dir so that
|
# copy the private libssh2_config.h.in to the examples dir so that
|
||||||
# it can be included without pointing the include path to the private
|
# it can be included without pointing the include path to the private
|
||||||
# source dir
|
# source dir
|
||||||
cp src/libssh2_config.h.in example/config.h.in
|
cp src/libssh2_config.h.in example/libssh2_config.h.in
|
||||||
${AUTOCONF:-autoconf}
|
${AUTOCONF:-autoconf}
|
||||||
${AUTOMAKE:-automake} --add-missing --copy
|
${AUTOMAKE:-automake} --add-missing --copy
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
AC_INIT(libssh2, [-], libssh2-devel@lists.sourceforge.net)
|
AC_INIT(libssh2, [-], libssh2-devel@lists.sourceforge.net)
|
||||||
AC_CONFIG_MACRO_DIR([m4])
|
AC_CONFIG_MACRO_DIR([m4])
|
||||||
AC_CONFIG_SRCDIR([src])
|
AC_CONFIG_SRCDIR([src])
|
||||||
AC_CONFIG_HEADER([src/libssh2_config.h])
|
AM_CONFIG_HEADER([src/libssh2_config.h example/libssh2_config.h])
|
||||||
AM_MAINTAINER_MODE
|
AM_MAINTAINER_MODE
|
||||||
|
|
||||||
dnl SED is needed by some of the tools
|
dnl SED is needed by some of the tools
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
#include <libssh2.h>
|
#include <libssh2.h>
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include "libssh2_config.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
#ifdef HAVE_WINSOCK2_H
|
#ifdef HAVE_WINSOCK2_H
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user