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.

119 lines
2.0 KiB

  1. #!/bin/sh
  2. # @configure_input@
  3. prefix="@prefix@"
  4. exec_prefix="@exec_prefix@"
  5. includedir="@includedir@"
  6. libdir="@libdir@"
  7. bindir="@bindir@"
  8. datadir="@datadir@"
  9. mandir="@mandir@"
  10. sysconfdir="@sysconfdir@"
  11. sharedstatedir="@sharedstatedir@"
  12. srcdir="@abs_top_srcdir@"
  13. builddir="@abs_top_builddir@"
  14. build_CXXFLAGS="@CXXFLAGS@"
  15. build_LDFLAGS="@LDFLAGS@"
  16. CXX="@CXX@"
  17. LDFLAGS="@LIBS@"
  18. STATICLDFLAGS="@LIBS@"
  19. LALDFLAGS="@LIBS@"
  20. SRC_LDFLAGS="@LIBS@"
  21. SRC_LALDFLAGS="@LIBS@"
  22. SRC_STATICLDFLAGS="@LIBS@"
  23. CFLAGS="@CPPFLAGS@ -I$includedir"
  24. SRC_CFLAGS="-I$srcdir/src -I$builddir/src @CPPFLAGS@"
  25. build="@BUILDER@-@BUILDDATE@"
  26. configure_args="@CONFIGURE_ARGS@"
  27. from_source=0
  28. usage()
  29. {
  30. cat <<EOF
  31. Usage: gmm-config [OPTIONS]
  32. Options:
  33. [--src]
  34. [--prefix]
  35. [--exec-prefix]
  36. [--version]
  37. [--libs-la]
  38. [--libs]
  39. [--cflags]
  40. [--cxx]
  41. [--build-flags]
  42. [--build-libs]
  43. [--configure-args]
  44. EOF
  45. exit $1
  46. }
  47. while test $# -gt 0; do
  48. case "$1" in
  49. -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  50. *) optarg= ;;
  51. esac
  52. case $1 in
  53. --src)
  54. from_source=1
  55. ;;
  56. --prefix)
  57. echo $prefix
  58. ;;
  59. --exec-prefix)
  60. echo $exec_prefix
  61. ;;
  62. --version)
  63. echo @VERSION@
  64. ;;
  65. --cflags)
  66. if test $from_source -eq 0; then
  67. echo $CFLAGS
  68. else
  69. echo $SRC_CFLAGS
  70. fi;
  71. ;;
  72. --libs-la)
  73. if test $from_source -eq 0; then
  74. echo $LALDFLAGS
  75. else
  76. echo $SRC_LALDFLAGS
  77. fi;
  78. ;;
  79. --libs)
  80. if test $from_source -eq 0; then
  81. echo $LDFLAGS
  82. else
  83. echo $SRC_LDFLAGS
  84. fi;
  85. ;;
  86. --static-libs)
  87. if test $from_source -eq 0; then
  88. echo $STATICLDFLAGS
  89. else
  90. echo $SRC_STATICLDFLAGS
  91. fi;
  92. ;;
  93. --build)
  94. echo $build
  95. ;;
  96. --build-flags)
  97. echo $build_CXXFLAGS
  98. ;;
  99. --build-libs)
  100. echo $build_LDFLAGS
  101. ;;
  102. --cxx)
  103. echo $CXX
  104. ;;
  105. --configure-args)
  106. echo $configure_args
  107. ;;
  108. *)
  109. usage 1 1>&2
  110. ;;
  111. esac
  112. shift
  113. done