2 ** \file Sockets-config.cpp
4 ** \author grymse@alhem.net
7 Copyright (C) 2007 Anders Hedstrom
9 This program is free software; you can redistribute it and/or
10 modify it under the terms of the GNU General Public License
11 as published by the Free Software Foundation; either version 2
12 of the License, or (at your option) any later version.
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 #include "sockets-config.h"
26 #include "socket_include.h"
28 int main(int argc
,char *argv
[])
30 if (argc
> 1 && !strcmp(argv
[1], "-info"))
33 printf("SSL support\n");
36 printf("IPv6 support\n");
40 printf("SCTP support\n");
42 printf(" HAVE_SCTP: yes\n");
44 printf(" HAVE_SCTP: no\n");
46 # ifdef HAVE_KERNEL_SCTP
47 printf(" HAVE_KERNEL_SCTP: yes\n");
49 printf(" HAVE_KERNEL_SCTP: no\n");
51 # ifdef HAVE_SCTP_PRSCTP
52 printf(" HAVE_SCTP_PRSCTP: yes\n");
54 printf(" HAVE_SCTP_PRSCTP: no\n");
56 # ifdef HAVE_SCTP_ADDIP
57 printf(" HAVE_SCTP_ADDIP: yes\n");
59 printf(" HAVE_SCTP_ADDIP: no\n");
61 # ifdef HAVE_SCTP_CANSET_PRIMARY
62 printf(" HAVE_SCTP_CANSETPRIMARY: yes\n");
64 printf(" HAVE_SCTP_CANSETPRIMARY: no\n");
66 # ifdef HAVE_SCTP_SAT_NETWORK_CAPABILITY
67 printf(" HAVE_SCTP_SAT_NETWORK_CAPABILITY: yes\n");
69 printf(" HAVE_SCTP_SAT_NETWORK_CAPABILITY: no\n");
71 # ifdef HAVE_SCTP_MULTIBUF
72 printf(" HAVE_SCTP_MULTIBUF: yes\n");
74 printf(" HAVE_SCTP_MULTIBUF: no\n");
76 # ifdef HAVE_SCTP_NOCONNECT
77 printf(" HAVE_SCTP_NOCONNECT: yes\n");
79 printf(" HAVE_SCTP_NOCONNECT: no\n");
81 # ifdef HAVE_SCTP_EXT_RCVINFO
82 printf(" HAVE_SCTP_EXT_RCVINFO: yes\n");
84 printf(" HAVE_SCTP_EXT_RCVINFO: no\n");
87 printf("No SCTP support\n");
92 printf(" -D_VERSION='\"%s\"'", _VERSION
);
101 printf(" -DSOLARIS");
104 printf(" -DSOLARIS8");
110 printf(" -D__CYGWIN__");
112 #ifdef SOCKETS_NAMESPACE
113 printf(" -DSOCKETS_NAMESPACE=%s", SOCKETS_NAMESPACE_STR
);