1# $Id$ 2# Author of this file: Martin Preuss<martin@libchipcard.de> 3 4result="" 5 6for d in $*; do 7 case $d in 8 --includes) 9 result="$result `@PKG_CONFIG@ --cflags gwenhywfar`" 10 ;; 11 --libraries) 12 result="$result `@PKG_CONFIG@ --libs gwenhywfar`" 13 ;; 14 --bindir) 15 result="$result `@PKG_CONFIG@ --variable=bindir gwenhywfar`" 16 ;; 17 --headers) 18 result="`$result @PKG_CONFIG@ --variable=headerdir gwenhywfar`" 19 ;; 20 --plugins) 21 result="$result `@PKG_CONFIG@ --variable=plugindir gwenhywfar`" 22 ;; 23 --vmajor) 24 result="$result `@PKG_CONFIG@ --variable=vmajor gwenhywfar`" 25 ;; 26 --vminor) 27 result="$result `@PKG_CONFIG@ --variable=vminor gwenhywfar`" 28 ;; 29 --vpatchlevel) 30 result="$result `@PKG_CONFIG@ --variable=vpatchlevel gwenhywfar`" 31 ;; 32 --vbuild) 33 result="$result `@PKG_CONFIG@ --variable=vbuild gwenhywfar`" 34 ;; 35 --vtag) 36 result="$result `@PKG_CONFIG@ --variable=vtag gwenhywfar`" 37 ;; 38 --vstring) 39 result="$result `@PKG_CONFIG@ --variable=vstring gwenhywfar`" 40 ;; 41 --has-crypt) 42 # Keep this argument in order not to completely break 43 # the old gwenhywfar.m4 macro. 44 result="This argument is obsolete. See $0 --help for current arguments." 45 ;; 46 --has-ui) 47 # Keep this argument in order not to completely break 48 # the old gwenhywfar.m4 macro. 49 result="This argument is obsolete. See $0 --help for current arguments." 50 ;; 51 --libraries++) 52 # Keep this argument in order not to completely break 53 # the old gwenhywfar.m4 macro. 54 result="This argument is obsolete. See $0 --help for current arguments." 55 ;; 56 --libraries-ui) 57 # Keep this argument in order not to completely break 58 # the old gwenhywfar.m4 macro. 59 result="This argument is obsolete. See $0 --help for current arguments." 60 ;; 61 *) 62 echo "Usage:" 63 echo "$0 --includes gives you the include flags" 64 echo "$0 --libraries gives you the library flags" 65 echo "$0 --bindir returns the folder for binary tools" 66 echo "$0 --headers gives you the location of the header files" 67 echo "$0 --vmajor gives the major version of LibGwenhywfar" 68 echo "$0 --vminor gives the minor version of LibGwenhywfar" 69 echo "$0 --vpatchlevel gives the patchlevel of LibGwenhywfar" 70 echo "$0 --vbuild gives the build number of LibGwenhywfar" 71 echo "$0 --vtag gives the tag of LibGwenhywfar (cvs, beta or stable)" 72 echo "$0 --vstring returns a version string" 73 exit 1 74 ;; 75 esac 76done 77echo $result 78