6 exec_prefix=@exec_prefix@
15 Usage: sigc-config [OPTIONS] [LIBRARIES]
17 --cflags print pre-processor and compiler flags
18 --libs print library linking information
19 --libs-dirs only print the -L/-R part of --libs
20 --libs-names only print the -l part of --libs
21 --help display this help and exit
22 --macros print the path to m4 macros
26 --version output sigc version information
38 # we must be called with at least one argument
39 if test $# -eq 0; then
43 # at least one option should be selected
52 # grab all -- arguments
53 while test $# -gt 0; do
55 -*=*) af_optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
78 echo -I @prefix@/include/sigc++/macros
90 exec_prefix=$af_optarg
91 af_exec_prefix_set=yes
94 af_echo_exec_prefix=yes
109 # if we have a default library use it
110 if test $# -eq 0; then
111 if test "X$af_lib_default" != "X"; then
112 af_lib__AF_LIB_DEFAULT=yes
117 while test $# -gt 0; do
132 if test "X$af_echo_cflags" = "Xyes"; then
133 af_all_flags="$af_cflags"
136 if test "X$af_echo_libs_L" = "Xyes" || test "X$af_echo_libs_l" = "Xyes"; then
137 af_all_flags="$af_all_flags $af_libs"
140 if test -z "$af_all_flags" || test "X$af_all_flags" = "X "; then
144 # Straight out any possible duplicates, but be careful to
145 # get `-lfoo -lbar -lbaz' for `-lfoo -lbaz -lbar -lbaz'
149 for i in $af_all_flags; do
151 # a library, save it for later, in reverse order
152 -l*) af_rev_libs="$i $af_rev_libs" ;;
154 if test "X$af_echo_libs_L" = "Xyes"; then
155 case " $af_lib_L_flags " in
156 *\ $i\ *) ;; # already there
157 *) af_lib_L_flags="$af_lib_L_flags $i" ;; # add it to output
161 case " $af_other_flags " in
162 *\ $i\ *) ;; # already there
163 *) af_other_flags="$af_other_flags $i" ;; # add it to output
169 if test "X$af_echo_libs_l" = "Xyes"; then
170 for i in $af_rev_libs; do
171 case " $af_ord_libs " in
172 *\ $i\ *) ;; # already there
173 *) af_ord_libs="$i $af_ord_libs" ;; # add it to output in reverse order
178 echo $af_other_flags $af_lib_L_flags $af_ord_libs
196 if test "X$af_echo_prefix" = "Xyes"; then
200 if test "X$af_echo_exec_prefix" = "Xyes"; then
204 if test "X$af_echo_version" = "Xyes"; then
214 #dummy because this should always be selected
217 if test "@includedir@" != /usr/include ; then
218 includes="-I@includedir@"
220 if test "@libdir@" != /usr/lib ; then
223 af_cflags="$af_cflags -I@libdir@/sigc++/include $includes"
224 af_libs="$libs -lsigc @THREAD_LIB@ $af_libs"