configure.in
上传用户:huihehuasu
上传日期:2007-01-10
资源大小:6948k
文件大小:4k
源码类别:

xml/soap/webservice

开发平台:

C/C++

  1. dnl Process this file with autoconf to produce a configure script
  2. AC_INIT(util/XercesDefs.hpp)
  3. dnl AC_CONFIG_HEADER(common/icucfg.h)
  4. dnl AM_INIT_AUTOMAKE(xerces-c,1.6.0)
  5. dnl Checks for programs
  6. AC_PROG_CC
  7. AC_PROG_CXX
  8. AC_PROG_INSTALL
  9. AC_CHECK_PROG(AUTOCONF, autoconf, autoconf, true)
  10. dnl
  11. dnl Do not know how to use this macro, so comment it out.
  12. dnl
  13. dnl special pthread handling (AIX uses pthreads instead of pthread)
  14. dnl AC_CHECK_LIB(pthread, pthread_create)
  15. dnl if test $ac_cv_lib_pthread_pthread_create = no; then
  16. dnl AC_CHECK_LIB(pthreads, pthread_create)
  17. dnl fi
  18. dnl
  19. dnl Checks for typedefs
  20. AC_CHECK_TYPE(XMLByte,unsigned char)
  21. dnl Determine the host system and Makefile fragment
  22. AC_CANONICAL_HOST
  23. dnl Platform-specific Makefile setup
  24. case "${host}" in
  25.         *-*-solaris*)   platform=SOLARIS ;;
  26.         *-*-sysv5*)     platform=UNIXWARE ;;
  27.         *-*-UnixWare*)  platform=UNIXWARE ;;
  28.         *-*-unixware*)  platform=UNIXWARE ;;
  29.         *-*-linux*)     platform=LINUX ;;
  30.         *-*-freebsd*)   platform=FREEBSD ;;
  31.         *-*-irix*)      platform=IRIX ;;
  32.         *-*-aix*)       platform=AIX
  33.                       case "${host}" in
  34.                          *-*-aix4.1*)   osver=AIX41;;
  35.                          *-*-aix4.2*)   osver=AIX42;;
  36.                          *-*-aix4.3*)   osver=AIX43;;
  37.                          *-*-aix4.*)    osver=AIX43;;
  38.                       esac;;
  39.         *-sequent-*)    platform=PTX ;;
  40.         *-*-hp*)        platform=HPUX ;
  41.                         case "${host}" in
  42.                             *-*-hpux11*)  osver=HPUX11;;
  43.                             *-*-hpux10*)  osver=HPUX10;;
  44.                             *)            osver=HPUX11;;
  45.                         esac;;
  46.         *-*-mvs*)       platform=OS390 ;;
  47.         *-*-os400*)     platform=OS400 ;;
  48.         *-*-OS400*)     platform=OS400 ;;
  49.         *-*-osf*) platform=TRU64 ;;
  50.         *-apple-*) platform=MACOSX ;;
  51.         *)              platform=UNKNOWN ;;
  52. esac
  53. AC_SUBST(platform)
  54. cxx=${CXX}
  55. AC_SUBST(cxx)
  56. cc=${CC}
  57. AC_SUBST(cc)
  58. AC_SUBST(prefix)
  59. prefix_include='${PREFIX}/include/xercesc'
  60. AC_SUBST(prefix_include)
  61. AC_SUBST(osver)
  62. cxxflags=${CXXFLAGS}
  63. AC_SUBST(cxxflags)
  64. cppflags=${CPPFLAGS}
  65. AC_SUBST(cppflags)
  66. cflags=${CFLAGS}
  67. AC_SUBST(cflags)
  68. ldflags=${LDFLAGS}
  69. AC_SUBST(ldflags)
  70. libs=${LIBS}
  71. AC_SUBST(libs)
  72. uselibwww=${USELIBWWW}
  73. AC_SUBST(uselibwww)
  74. messageloader=${MESSAGELOADER}
  75. AC_SUBST(messageloader)
  76. transcoder=${TRANSCODER}
  77. AC_SUBST(transcoder)
  78. netaccessor=${NETACCESSOR}
  79. AC_SUBST(netaccessor)
  80. threads=${THREADS}
  81. AC_SUBST(threads)
  82. dnl output the Makefiles
  83. AC_OUTPUT([Makefile 
  84. util/Makefile 
  85. util/Transcoders/ICU/Makefile 
  86. util/Transcoders/Iconv/Makefile 
  87. util/Transcoders/Iconv390/Makefile 
  88. util/Transcoders/Iconv400/Makefile 
  89. util/Transcoders/IconvFBSD/Makefile 
  90. util/Transcoders/MacOSUnicodeConverter/Makefile 
  91. util/Platforms/Makefile 
  92. util/Platforms/Solaris/Makefile 
  93. util/Platforms/AIX/Makefile 
  94. util/Platforms/Linux/Makefile 
  95. util/Platforms/FreeBSD/Makefile 
  96. util/Platforms/HPUX/Makefile 
  97. util/Platforms/OS390/Makefile 
  98. util/Platforms/OS400/Makefile 
  99. util/Platforms/IRIX/Makefile 
  100. util/Platforms/PTX/Makefile 
  101. util/Platforms/UnixWare/Makefile 
  102. util/Platforms/Tru64/Makefile 
  103. util/Platforms/MacOS/Makefile 
  104. util/Compilers/Makefile 
  105. util/MsgLoaders/InMemory/Makefile 
  106. util/MsgLoaders/ICU/Makefile 
  107. util/MsgLoaders/MsgCatalog/Makefile 
  108. util/MsgLoaders/MsgFile/Makefile 
  109. util/NetAccessors/Socket/Makefile 
  110. util/NetAccessors/libWWW/Makefile 
  111. util/NetAccessors/MacOSURLAccess/Makefile 
  112. util/regx/Makefile 
  113. validators/Makefile 
  114. validators/common/Makefile 
  115. validators/datatype/Makefile 
  116. validators/DTD/Makefile 
  117. validators/schema/Makefile 
  118. validators/schema/identity/Makefile 
  119. framework/Makefile 
  120. dom/Makefile 
  121. idom/Makefile 
  122. parsers/Makefile 
  123. internal/Makefile 
  124. sax/Makefile 
  125. sax2/Makefile 
  126. ../obj/Makefile],
  127. [chmod +x ./configure],
  128. [chmod +x ./runConfigure],)
  129. echo
  130. echo Having build problems? Read instructions at http://xml.apache.org/xerces-c/build.html
  131. echo Still cannot resolve it? Find out if someone else had the same problem before.
  132. echo Go to http://marc.theaimsgroup.com/?l=xerces-c-dev