log4c-config.in 871 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #! /bin/sh
  2. prefix=@prefix@
  3. exec_prefix=$prefix
  4. libdir=@libdir@
  5. libexecdir=@libexecdir@
  6. includedir=@includedir@
  7. usage()
  8. {
  9. cat <<EOF
  10. Usage: log4c-config [OPTION]
  11. Known values for OPTION are:
  12. --prefix show LOG4C installation prefix
  13. --libs print library linking information
  14. --cflags print pre-processor and compiler flags
  15. --help display this help and exit
  16. --version output version information
  17. EOF
  18. exit $1
  19. }
  20. if test $# -eq 0; then
  21. usage 1
  22. fi
  23. while test $# -gt 0; do
  24. case "$1" in
  25. -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  26. *) optarg= ;;
  27. esac
  28. case "$1" in
  29. --prefix=*) prefix=$optarg ;;
  30. --prefix) echo $prefix ;;
  31. --version) echo @VERSION@ ;;
  32. --cflags) echo -I$includedir ;;
  33. --libs) echo -L$libdir -llog4c ;;
  34. --help) usage 0 ;;
  35. *) usage 1 ;;
  36. esac
  37. shift
  38. done
  39. exit 0