🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
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.

60 lines
1.4 KiB

  1. #!/bin/sh
  2. prefix=@prefix@
  3. exec_prefix=@exec_prefix@
  4. exec_prefix_set=no
  5. libdir=@libdir@
  6. @ENABLE_STATIC_FALSE@usage="\
  7. @ENABLE_STATIC_FALSE@Usage: $0 [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--cflags] [--libs]"
  8. @ENABLE_STATIC_TRUE@usage="\
  9. @ENABLE_STATIC_TRUE@Usage: $0 [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--cflags] [--libs] [--static-libs]"
  10. if test $# -eq 0; then
  11. echo "${usage}" 1>&2
  12. exit 1
  13. fi
  14. while test $# -gt 0; do
  15. case "$1" in
  16. -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  17. *) optarg= ;;
  18. esac
  19. case $1 in
  20. --prefix=*)
  21. prefix=$optarg
  22. if test $exec_prefix_set = no ; then
  23. exec_prefix=$optarg
  24. fi
  25. ;;
  26. --prefix)
  27. echo $prefix
  28. ;;
  29. --exec-prefix=*)
  30. exec_prefix=$optarg
  31. exec_prefix_set=yes
  32. ;;
  33. --exec-prefix)
  34. echo $exec_prefix
  35. ;;
  36. --version)
  37. echo @SDL_VERSION@
  38. ;;
  39. --cflags)
  40. echo -I@includedir@/SDL2 @SDL_CFLAGS@
  41. ;;
  42. @ENABLE_SHARED_TRUE@ --libs)
  43. @ENABLE_SHARED_TRUE@ echo -L@libdir@ @SDL_RLD_FLAGS@ @SDL_LIBS@
  44. @ENABLE_SHARED_TRUE@ ;;
  45. @ENABLE_STATIC_TRUE@@ENABLE_SHARED_TRUE@ --static-libs)
  46. @ENABLE_STATIC_TRUE@@ENABLE_SHARED_FALSE@ --libs|--static-libs)
  47. @ENABLE_STATIC_TRUE@ echo -L@libdir@ @SDL_LIBS@ @SDL_STATIC_LIBS@
  48. @ENABLE_STATIC_TRUE@ ;;
  49. *)
  50. echo "${usage}" 1>&2
  51. exit 1
  52. ;;
  53. esac
  54. shift
  55. done