Logo
~Sockets~
~Examples~
~Contact~


Sockets-config.cpp

Go to the documentation of this file.
00001 
00006 /*
00007 Copyright (C) 2007  Anders Hedstrom
00008 
00009 This program is free software; you can redistribute it and/or
00010 modify it under the terms of the GNU General Public License
00011 as published by the Free Software Foundation; either version 2
00012 of the License, or (at your option) any later version.
00013 
00014 This program is distributed in the hope that it will be useful,
00015 but WITHOUT ANY WARRANTY; without even the implied warranty of
00016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017 GNU General Public License for more details.
00018 
00019 You should have received a copy of the GNU General Public License
00020 along with this program; if not, write to the Free Software
00021 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00022 */
00023 #include <stdio.h>
00024 #include <string.h>
00025 #include "sockets-config.h"
00026 #include "socket_include.h"
00027 
00028 int main(int argc,char *argv[])
00029 {
00030         if (argc > 1 && !strcmp(argv[1], "-info"))
00031         {
00032 #ifdef HAVE_OPENSSL
00033                 printf("SSL support\n");
00034 #endif
00035 #ifdef IPPROTO_IPV6
00036                 printf("IPv6 support\n");
00037 #endif
00038 #ifdef USE_SCTP
00039 #ifdef IPPROTO_SCTP
00040                 printf("SCTP support\n");
00041 #       ifdef HAVE_SCTP
00042                 printf("  HAVE_SCTP: yes\n");
00043 #       else
00044                 printf("  HAVE_SCTP: no\n");
00045 #       endif
00046 #       ifdef HAVE_KERNEL_SCTP
00047                 printf("  HAVE_KERNEL_SCTP: yes\n");
00048 #       else
00049                 printf("  HAVE_KERNEL_SCTP: no\n");
00050 #       endif
00051 #       ifdef HAVE_SCTP_PRSCTP
00052                 printf("  HAVE_SCTP_PRSCTP: yes\n");
00053 #       else
00054                 printf("  HAVE_SCTP_PRSCTP: no\n");
00055 #       endif
00056 #       ifdef HAVE_SCTP_ADDIP
00057                 printf("  HAVE_SCTP_ADDIP: yes\n");
00058 #       else
00059                 printf("  HAVE_SCTP_ADDIP: no\n");
00060 #       endif
00061 #       ifdef HAVE_SCTP_CANSET_PRIMARY
00062                 printf("  HAVE_SCTP_CANSETPRIMARY: yes\n");
00063 #       else
00064                 printf("  HAVE_SCTP_CANSETPRIMARY: no\n");
00065 #       endif
00066 #       ifdef HAVE_SCTP_SAT_NETWORK_CAPABILITY
00067                 printf("  HAVE_SCTP_SAT_NETWORK_CAPABILITY: yes\n");
00068 #       else
00069                 printf("  HAVE_SCTP_SAT_NETWORK_CAPABILITY: no\n");
00070 #       endif
00071 #       ifdef HAVE_SCTP_MULTIBUF
00072                 printf("  HAVE_SCTP_MULTIBUF: yes\n");
00073 #       else
00074                 printf("  HAVE_SCTP_MULTIBUF: no\n");
00075 #       endif
00076 #       ifdef HAVE_SCTP_NOCONNECT
00077                 printf("  HAVE_SCTP_NOCONNECT: yes\n");
00078 #       else
00079                 printf("  HAVE_SCTP_NOCONNECT: no\n");
00080 #       endif
00081 #       ifdef HAVE_SCTP_EXT_RCVINFO
00082                 printf("  HAVE_SCTP_EXT_RCVINFO: yes\n");
00083 #       else
00084                 printf("  HAVE_SCTP_EXT_RCVINFO: no\n");
00085 #       endif
00086 #else
00087                 printf("No SCTP support\n");
00088 #endif
00089 #endif
00090                 return 0;
00091         }
00092         printf(" -D_VERSION='\"%s\"'", _VERSION);
00093 
00094 #ifdef LINUX
00095         printf(" -DLINUX");
00096 #endif
00097 #ifdef MACOSX
00098         printf(" -DMACOSX");
00099 #endif
00100 #ifdef SOLARIS
00101         printf(" -DSOLARIS");
00102 #endif
00103 #ifdef SOLARIS8
00104         printf(" -DSOLARIS8");
00105 #endif
00106 #ifdef SOCKETS_NAMESPACE
00107         printf(" -DSOCKETS_NAMESPACE=%s", SOCKETS_NAMESPACE_STR);
00108 #endif
00109 #ifdef _DEBUG
00110         printf(" -D_DEBUG");
00111 #endif
00112 
00113 }
00114 
00115 
Page, code, and content Copyright (C) 2007 by Anders Hedström
Generated for C++ Sockets by  doxygen 1.4.4