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

xml/soap/webservice

开发平台:

C/C++

  1. dnl Process this file with autoconf to produce a configure script
  2. AC_INIT(DOM/DOMTest/DTest.h)
  3. dnl Checks for programs
  4. AC_PROG_CC
  5. AC_PROG_CXX
  6. AC_PROG_INSTALL
  7. AC_CHECK_PROG(AUTOCONF, autoconf, autoconf, true)
  8. dnl Checks for libraries
  9. AC_CHECK_LIB(m, floor)
  10. dnl special pthread handling (AIX uses pthreads instead of pthread)
  11. AC_CHECK_LIB(pthread, pthread_create)
  12. if test $ac_cv_lib_pthread_pthread_create = no; then
  13. AC_CHECK_LIB(pthreads, pthread_create)
  14. fi
  15. dnl Checks for header files
  16. AC_CHECK_HEADERS(inttypes.h)
  17. if test $ac_cv_header_inttypes_h = no; then
  18. HAVE_INTTYPES_H=0
  19. else
  20. HAVE_INTTYPES_H=1
  21. fi
  22. AC_SUBST(HAVE_INTTYPES_H)
  23. dnl Determine the host system and Makefile fragment
  24. AC_CANONICAL_HOST
  25. dnl Platform-specific Makefile setup
  26. case "${host}" in
  27.         *-*-solaris*)   platform=SOLARIS ;;
  28.         *-*-sysv5*)     platform=UNIXWARE ;;
  29.         *-*-UnixWare*)  platform=UNIXWARE ;;
  30.         *-*-*unixware*)  platform=UNIXWARE ;;
  31.         *-*-sysv5uw7*)  platform=UNIXWARE ;;
  32.         *-*-linux*)     platform=LINUX ;;
  33. *-*-freebsd*) platform=FREEBSD ;;
  34.         *-*-irix*)      platform=IRIX ;;
  35.         *-*-aix*)       platform=AIX ;;
  36.         *-*-hp*)        platform=HPUX ;
  37.                         case "${host}" in
  38.                             *-*-hpux11*)  osver=HPUX11;;
  39.                             *-*-hpux10*)  osver=HPUX10;;
  40.                             *)            osver=HPUX11;;
  41.                         esac;;
  42.         *-*-mvs*)       platform=OS390 ;;
  43.         *-*-os400*)     platform=OS400 ;;
  44.         *-*-OS400*)     platform=OS400 ;;
  45. *-*-osf*) platform=TRU64 ;;
  46.         *-apple-*) platform=MACOSX ;;
  47.         *)              platform=UNKNOWN ;;
  48. esac
  49. AC_SUBST(platform)
  50. compiler=${CXX}
  51. AC_SUBST(compiler)
  52. # prefix=${prefix}
  53. AC_SUBST(prefix)
  54. cxxflags=${CXXFLAGS}
  55. AC_SUBST(cxxflags)
  56. cflags=${CFLAGS}
  57. AC_SUBST(cflags)
  58. ldflags=${LDFLAGS}
  59. AC_SUBST(ldflags)
  60. dnl output the Makefiles
  61. AC_OUTPUT([Makefile 
  62. DOM/DOMTest/Makefile 
  63. IDom/IDOMTest/Makefile 
  64. DOM/DOMIDTest/Makefile 
  65. DOM/DOMMemTest/Makefile 
  66. DOM/Traversal/Makefile 
  67. IDom/ITraversal/Makefile 
  68. EncodingTest/Makefile 
  69. DOM/RangeTest/Makefile 
  70. IDom/IRangeTest/Makefile 
  71. InitTermTest/Makefile 
  72. ThreadTest/Makefile 
  73. IThreadTest/Makefile])
  74. echo
  75. echo Having build problems? Read instructions at http://xml.apache.org/xerces-c/build.html