You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

85 lines
1.4 KiB

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #! /bin/sh
  2. prefix=@prefix@
  3. exec_prefix=@exec_prefix@
  4. includedir=@includedir@
  5. libdir=@libdir@
  6. relcsoap=@csoap_release@
  7. relnanohttp=@nanohttp_release@
  8. usage()
  9. {
  10. cat <<EOF
  11. Usage: csoap-config [OPTION]
  12. Known values for OPTION are:
  13. --prefix=DIR change libcsoap prefix [default $prefix]
  14. --exec-prefix=DIR change libcsoap exec prefix [default $exec_prefix]
  15. --libs print library linking information
  16. --cflags print pre-processor and compiler flags
  17. --help display this help and exit
  18. --version output version information
  19. EOF
  20. exit $1
  21. }
  22. if test $# -eq 0; then
  23. usage 1
  24. fi
  25. cflags=false
  26. libs=false
  27. while test $# -gt 0; do
  28. case "$1" in
  29. -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  30. *) optarg= ;;
  31. esac
  32. case "$1" in
  33. --prefix=*)
  34. prefix=$optarg
  35. includedir=$prefix/include
  36. libdir=$prefix/lib
  37. ;;
  38. --prefix)
  39. echo $prefix
  40. ;;
  41. --exec-prefix=*)
  42. exec_prefix=$optarg
  43. libdir=$exec_prefix/lib
  44. ;;
  45. --exec-prefix)
  46. echo $exec_prefix
  47. ;;
  48. --version)
  49. echo @csoap_major@.@csoap_minor@.@csoap_patch@
  50. exit 0
  51. ;;
  52. --help)
  53. usage 0
  54. ;;
  55. --cflags)
  56. echo -I${includedir}/libcsoap-$relcsoap -I${includedir}/nanohttp-$relnanohttp @XML_CPPFLAGS@ @PTHREAD_CFLAGS@
  57. ;;
  58. --libs)
  59. echo -L${libdir} -lcsoap -lnanohttp @XML_LIBS@ @PTHREAD_LIBS@
  60. ;;
  61. *)
  62. usage
  63. exit 1
  64. ;;
  65. esac
  66. shift
  67. done
  68. exit 0