github.com/kaydxh/golang@v0.0.131/pkg/gocv/cgo/third_path/graphics-magick/bin/GraphicsMagick-config (about) 1 #!/bin/sh 2 # 3 # Configure options script for re-calling GraphicsMagick compilation 4 # options required to use the GraphicsMagick library. 5 # 6 # Concept derived from gtk-config in the Gtk package except that Autoconf-style 7 # configuration information is presented instead so that it may be used more 8 # effectively in configure scripts. 9 # 10 usage='Usage: GraphicsMagick-config [--cflags] [--cppflags] [--exec-prefix] [--ldflags] [--libs] [--prefix] [--version] 11 12 For example, "example.c" may be compiled to produce "example" as follows: 13 14 "gcc -o example example.c `GraphicsMagick-config --cppflags --cflags --ldflags --libs`"' 15 16 if test $# -eq 0; then 17 echo "${usage}" 1>&2 18 exit 1 19 fi 20 21 while test $# -gt 0; do 22 case $1 in 23 --prefix) 24 echo /root/pinwoodxu/GraphicsMagick-source/release 25 ;; 26 --exec-prefix) 27 echo /root/pinwoodxu/GraphicsMagick-source/release 28 ;; 29 --version) 30 echo 1.3.35 31 ;; 32 --cflags) 33 echo '-fopenmp -g -O2 -Wall -pthread' 34 ;; 35 --cppflags) 36 echo '-I/root/pinwoodxu/GraphicsMagick-source/release/include/GraphicsMagick' 37 ;; 38 --ldflags) 39 echo '-L/root/pinwoodxu/GraphicsMagick-source/release/lib ' 40 ;; 41 --libs) 42 echo '-lGraphicsMagick -lwebp -lwebpmux -ltiff -ljpeg -lpng15 -lbz2 -lz -lm -lpthread -lgomp' 43 ;; 44 *) 45 echo "${usage}" 1>&2 46 exit 1 47 ;; 48 esac 49 shift 50 done 51