Description: Clean libpreludedb-config Author: Thomas Andrejak Last-Update: 2020-09-20 --- a/libpreludedb-config.in 2020-09-09 16:36:50.110000000 +0200 +++ b/libpreludedb-config.in 2020-09-20 23:30:02.097649400 +0200 @@ -3,6 +3,7 @@ prefix=@prefix@ exec_prefix=@exec_prefix@ exec_prefix_set=no +cpp_set=no want_cflags=no want_libs=no thread_set=no @@ -54,6 +55,10 @@ echo @LIBPRELUDE_LDFLAGS@ ;; + --c++) + cpp_set=yes + ;; + --libs) want_libs=yes ;; @@ -90,7 +95,14 @@ if test $want_libs = yes; then - libdirs=-L@libdir@ + libdirs= + if test @libdir@ != /usr/lib -a @libdir@ != /usr/lib64 ; then + libdirs=-L@libdir@ + fi + cpplibs="" + if test $cpp_set = yes; then + cpplibs="-lpreludedbcpp" + fi if test $thread_set = yes; then thrlibs=@LTLIBMULTITHREAD@ @@ -98,7 +110,7 @@ thrlibs=@LTLIBTHREAD@ fi - echo $libdirs -lpreludedb @LIBPRELUDE_LIBS@ $thrlibs + echo $cpplibs $libdirs -lpreludedb $thrlibs fi exit 0