#!/bin/sh # @configure_input@ #Adapted from gnome-config prefix=@prefix@ exec_prefix=@exec_prefix@ bindir=@bindir@ sbindir=@sbindir@ libexecdir=@libexecdir@ datadir=@prefix@/lib/flowdesigner/toolbox sysconfdir=@sysconfdir@ sharedstatedir=@sharedstatedir@ localstatedir=@localstatedir@ libdir=@libdir@ infodir=@infodir@ mandir=@mandir@ includedir=@includedir@/flowdesigner toolboxdir=@libdir@/flowdesigner/toolbox pkgdatadir=${datadir}/@PACKAGE@ pkglibdir=${libdir}/@PACKAGE@ pkgincludedir=${includedir}/@PACKAGE@ MODULE_VERSION=@PACKAGE@-@VERSION@ module_dirs="$libdir" DEFS="@DEFS@" LIBS="@LIBS@" LDFLAGS="@LDFLAGS@" # stolen from autoconf if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then ac_n= ac_c=' ' ac_t=' ' else ac_n=-n ac_c= ac_t= fi else ac_n= ac_c='\c' ac_t= fi usage() { exit_code=$1 cat <&2 fi ;; esac shift done if $cflags; then all_flags="$the_flags" fi if $libs_L || $libs_l; then all_flags="$all_flags $the_libs" fi if $modversion; then echo $MODULE_VERSION exit 0 fi if test -z "$all_flags" || test "x$all_flags" = "x "; then exit 1 fi # Straight out any possible duplicates, but be careful to # get `-lfoo -lbar -lbaz' for `-lfoo -lbaz -lbar -lbaz' other_flags= lib_L_flags= rev_libs= for i in $all_flags; do case "$i" in # a library, save it for later, in reverse order -l*) rev_libs="$i $rev_libs" ;; -L*|-R*) if $libs_L; then case " $lib_L_flags " in *\ $i\ *) ;; # already there *) lib_L_flags="$lib_L_flags $i" ;; # add it to output esac fi;; *) case " $other_flags " in *\ $i\ *) ;; # already there *) other_flags="$other_flags $i" ;; # add it to output esac ;; esac done ord_libs= if $libs_l; then for i in $rev_libs; do case " $ord_libs " in *\ $i\ *) ;; # already there *) ord_libs="$i $ord_libs" ;; # add it to output in reverse order esac done fi echo $other_flags $lib_L_flags $ord_libs exit 0