/js/lib/Socket.IO-node/support/expresso/deps/jscoverage/js/js-config.in

http://github.com/onedayitwillmake/RealtimeMultiplayerNodeJs · Autoconf · 111 lines · 97 code · 12 blank · 2 comment · 11 complexity · 6d3caa90ce0243b3027cfcd2c1d3bcb0 MD5 · raw file

  1. #!/bin/sh
  2. prefix='@prefix@'
  3. mozilla_version='@MOZILLA_VERSION@'
  4. LIBRARY_NAME='@LIBRARY_NAME@'
  5. NSPR_CFLAGS='@NSPR_CFLAGS@'
  6. JS_CONFIG_LIBS='@JS_CONFIG_LIBS@'
  7. MOZ_JS_LIBS='@MOZ_JS_LIBS@'
  8. usage()
  9. {
  10. cat <<EOF
  11. Usage: js-config [OPTIONS]
  12. Options:
  13. [--prefix[=DIR]]
  14. [--exec-prefix[=DIR]]
  15. [--includedir[=DIR]]
  16. [--libdir[=DIR]]
  17. [--version]
  18. [--libs]
  19. [--cflags]
  20. [--lib-filenames]
  21. EOF
  22. exit $1
  23. }
  24. if test $# -eq 0; then
  25. usage 1 1>&2
  26. fi
  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. ;;
  36. --prefix)
  37. echo_prefix=yes
  38. ;;
  39. --exec-prefix=*)
  40. exec_prefix=$optarg
  41. ;;
  42. --exec-prefix)
  43. echo_exec_prefix=yes
  44. ;;
  45. --includedir=*)
  46. includedir=$optarg
  47. ;;
  48. --includedir)
  49. echo_includedir=yes
  50. ;;
  51. --libdir=*)
  52. libdir=$optarg
  53. ;;
  54. --libdir)
  55. echo_libdir=yes
  56. ;;
  57. --version)
  58. echo "$mozilla_version"
  59. ;;
  60. --cflags)
  61. echo_cflags=yes
  62. ;;
  63. --libs)
  64. echo_libs=yes
  65. ;;
  66. *)
  67. usage 1 1>&2
  68. ;;
  69. esac
  70. shift
  71. done
  72. # Set variables that may be dependent upon other variables
  73. if test -z "$exec_prefix"; then
  74. exec_prefix=@exec_prefix@
  75. fi
  76. if test -z "$includedir"; then
  77. includedir=@includedir@
  78. fi
  79. if test -z "$libdir"; then
  80. libdir=@libdir@
  81. fi
  82. if test "$echo_prefix" = "yes"; then
  83. echo $prefix
  84. fi
  85. if test "$echo_exec_prefix" = "yes"; then
  86. echo $exec_prefix
  87. fi
  88. if test "$echo_includedir" = "yes"; then
  89. echo $includedir
  90. fi
  91. if test "$echo_libdir" = "yes"; then
  92. echo $libdir
  93. fi
  94. if test "$echo_cflags" = "yes"; then
  95. echo "-I$includedir/js $NSPR_CFLAGS"
  96. fi
  97. if test "$echo_libs" = "yes"; then
  98. echo "$MOZ_JS_LIBS $JS_CONFIG_LIBS"
  99. fi