Counter Strike : Global Offensive Source Code
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.

127 lines
2.3 KiB

  1. #! /bin/sh
  2. # libpng-config
  3. # provides configuration info for libpng.
  4. # Copyright (C) 2002, 2004, 2006, 2007 Glenn Randers-Pehrson
  5. # This code is released under the libpng license.
  6. # For conditions of distribution and use, see the disclaimer
  7. # and license in png.h
  8. # Modeled after libxml-config.
  9. version="@PNGLIB_VERSION@"
  10. prefix="@prefix@"
  11. exec_prefix="@exec_prefix@"
  12. libdir="@libdir@"
  13. includedir="@includedir@/libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@"
  14. libs="-lpng@PNGLIB_MAJOR@@PNGLIB_MINOR@"
  15. all_libs="-lpng@PNGLIB_MAJOR@@PNGLIB_MINOR@ @LIBS@"
  16. I_opts="-I${includedir}"
  17. L_opts="-L${libdir}"
  18. R_opts=""
  19. cppflags=""
  20. ccopts=""
  21. ldopts=""
  22. usage()
  23. {
  24. cat <<EOF
  25. Usage: $0 [OPTION] ...
  26. Known values for OPTION are:
  27. --prefix print libpng prefix
  28. --libdir print path to directory containing library
  29. --libs print library linking information
  30. --ccopts print compiler options
  31. --cppflags print pre-processor flags
  32. --cflags print preprocessor flags, I_opts, and compiler options
  33. --I_opts print "-I" include options
  34. --L_opts print linker "-L" flags for dynamic linking
  35. --R_opts print dynamic linker "-R" or "-rpath" flags
  36. --ldopts print linker options
  37. --ldflags print linker flags (ldopts, L_opts, R_opts, and libs)
  38. --static revise subsequent outputs for static linking
  39. --help print this help and exit
  40. --version print version information
  41. EOF
  42. exit $1
  43. }
  44. if test $# -eq 0; then
  45. usage 1
  46. fi
  47. while test $# -gt 0; do
  48. case "$1" in
  49. --prefix)
  50. echo ${prefix}
  51. ;;
  52. --version)
  53. echo ${version}
  54. exit 0
  55. ;;
  56. --help)
  57. usage 0
  58. ;;
  59. --ccopts)
  60. echo ${ccopts}
  61. ;;
  62. --cppflags)
  63. echo ${cppflags}
  64. ;;
  65. --cflags)
  66. echo ${I_opts} ${cppflags} ${ccopts}
  67. ;;
  68. --libdir)
  69. echo ${libdir}
  70. ;;
  71. --libs)
  72. echo ${libs}
  73. ;;
  74. --I_opts)
  75. echo ${I_opts}
  76. ;;
  77. --L_opts)
  78. echo ${L_opts}
  79. ;;
  80. --R_opts)
  81. echo ${R_opts}
  82. ;;
  83. --ldopts)
  84. echo ${ldopts}
  85. ;;
  86. --ldflags)
  87. echo ${ldopts} ${L_opts} ${R_opts} ${libs}
  88. ;;
  89. --static)
  90. R_opts=""
  91. libs=${all_libs}
  92. ;;
  93. *)
  94. usage
  95. exit 1
  96. ;;
  97. esac
  98. shift
  99. done
  100. exit 0