Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Updated build system to look for file and support for more Linux-based OSes.
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Tue, 20 Oct 2015 19:29:01 +0000 (20:29 +0100)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Tue, 20 Oct 2015 19:29:01 +0000 (20:29 +0100)
source/Makefile.in
source/configure
source/configure.ac

index 7edf2e0..a2b25c7 100644 (file)
@@ -1,6 +1,7 @@
 CPP=g++\r
 STRIP=strip\r
-CPPFLAGS=`xml2-config --cflags` `wx-config --cxxflags --libs` `curl-config --libs` -lmagic -lsfml-audio -lxml2 -std=c++11 @DBGOUT@\r
+CPPFLAGS=`xml2-config --cflags` `wx-config --cxxflags` -std=c++11 @DBGOUT@\r
+CPPLIBS=`wx-config --libs` `curl-config --libs` -lsfml-audio -lxml2\r
 \r
 @DBGSTATUS@\r
 XAB_OUT=xestiaab\r
@@ -96,7 +97,8 @@ BMCOOBJS=tools/bitmapcode.o
 xestiaab: bitmaphelper formobjs widgetobjs commonobjs vcardobjs carddavobjs \\r
        ceobjs mainobjs searchobjs imexobjs \r
        $(CPP) $(CPPFLAGS) $(FORMOBJS) $(WIDGETOBJS) $(COMMONOBJS) \\r
-       $(VCARDOBJS) $(CEOBJS) $(CARDDAVOBJS) $(SEARCHOBJS) $(MAINOBJS) $(IMEXOBJS) -o $(XAB_OUT)\r
+       $(VCARDOBJS) $(CEOBJS) $(CARDDAVOBJS) $(SEARCHOBJS) $(MAINOBJS) $(IMEXOBJS) -o $(XAB_OUT) \\r
+       $(CPPLIBS)\r
 ifeq ($(DEBUG), false)\r
        $(STRIP) -s $(XAB_OUT)\r
 endif\r
@@ -133,7 +135,7 @@ distclean: clean
 bitmaphelperobjs: $(BMCOOBJS)\r
 \r
 bitmaphelper: bitmaphelperobjs\r
-       $(CPP) $(CPPFLAGS) $(BMCOOBJS) -o $(BMCO_HELP)\r
+       $(CPP) $(CPPFLAGS) $(BMCOOBJS) -o $(BMCO_HELP) $(CPPLIBS)\r
        $(BMCO_HELP) bitmaps/\r
 \r
 install:\r
index 5dee0e5..8dff3da 100755 (executable)
@@ -630,6 +630,9 @@ DEBUG_TRUE
 FOUND_UUIDGEN_RES_FALSE
 FOUND_UUIDGEN_RES_TRUE
 FOUND_UUIDGEN
+FOUND_FILE_RES_FALSE
+FOUND_FILE_RES_TRUE
+FOUND_FILE
 FOUND_XML2CONFIG_RES_FALSE
 FOUND_XML2CONFIG_RES_TRUE
 FOUND_XML2CONFIG
@@ -4460,6 +4463,64 @@ variable before running configure again."
 
 fi
 
+# file application
+
+# Extract the first word of "file", so it can be a program name with args.
+set dummy file; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_FOUND_FILE+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$FOUND_FILE"; then
+  ac_cv_prog_FOUND_FILE="$FOUND_FILE" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_FOUND_FILE="yes"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+  test -z "$ac_cv_prog_FOUND_FILE" && ac_cv_prog_FOUND_FILE="no"
+fi
+fi
+FOUND_FILE=$ac_cv_prog_FOUND_FILE
+if test -n "$FOUND_FILE"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOUND_FILE" >&5
+$as_echo "$FOUND_FILE" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ if test x$FOUND_FILE = xyes; then
+  FOUND_FILE_RES_TRUE=
+  FOUND_FILE_RES_FALSE='#'
+else
+  FOUND_FILE_RES_TRUE='#'
+  FOUND_FILE_RES_FALSE=
+fi
+
+
+if test -z "$FOUND_FILE_RES_TRUE"; then :
+  else
+  echo "Cannot find the file program on your system.
+If it is installed on your system, adjust your PATH environment
+variable before running configure again."
+       exit -1
+
+fi
+
 # uuidgen application
 
 # Extract the first word of "uuidgen", so it can be a program name with args.
@@ -4867,6 +4928,10 @@ if test -z "${FOUND_XML2CONFIG_RES_TRUE}" && test -z "${FOUND_XML2CONFIG_RES_FAL
   as_fn_error $? "conditional \"FOUND_XML2CONFIG_RES\" was never defined.
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
 fi
+if test -z "${FOUND_FILE_RES_TRUE}" && test -z "${FOUND_FILE_RES_FALSE}"; then
+  as_fn_error $? "conditional \"FOUND_FILE_RES\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
 if test -z "${FOUND_UUIDGEN_RES_TRUE}" && test -z "${FOUND_UUIDGEN_RES_FALSE}"; then
   as_fn_error $? "conditional \"FOUND_UUIDGEN_RES\" was never defined.
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
index 16eb213..9a51688 100644 (file)
@@ -130,6 +130,17 @@ variable before running configure again."
        exit -1
        ])
 
+# file application
+
+AC_CHECK_PROG([FOUND_FILE], [file], [yes], [no]) 
+AM_CONDITIONAL([FOUND_FILE_RES], [test x$FOUND_FILE = xyes])
+
+AM_COND_IF([FOUND_FILE_RES], [], [echo "Cannot find the file program on your system.
+If it is installed on your system, adjust your PATH environment
+variable before running configure again."
+       exit -1
+       ])
+
 # uuidgen application
 
 AC_CHECK_PROG([FOUND_UUIDGEN], [uuidgen], [yes], [no]) 
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy