summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-01-31 22:24:26 -0800
committerKaz Kylheku <kaz@kylheku.com>2015-01-31 22:24:26 -0800
commit5431f3f9ab2f41df5f702f31b19a27e5061fd730 (patch)
tree899dd65a9ab78cad4bbf7ab1085d2bfcf7995a0e /configure
parent9bb7ffe3ee931bbfebe38fec4f2b24d1b851aece (diff)
downloadtxr-5431f3f9ab2f41df5f702f31b19a27e5061fd730.tar.gz
txr-5431f3f9ab2f41df5f702f31b19a27e5061fd730.tar.bz2
txr-5431f3f9ab2f41df5f702f31b19a27e5061fd730.zip
On Windows, add icon and identifying meta-data to executable.
* Makefile (EXTRA_OBJS-y): New variable. (WINDRES): New recipe. * configure: Check for presence of windres, and generate add_win_res variable in config.make. * win/txr.xcf: New file: GIMP project for icon. * win/txr.ico: New file: icon with three sizes generated from GIMP project. * win/txr.rc: New file.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure14
1 files changed, 13 insertions, 1 deletions
diff --git a/configure b/configure
index 35112107..19f81957 100755
--- a/configure
+++ b/configure
@@ -119,6 +119,7 @@ have_timegm=
have_syslog=
have_glob=
have_windows_h=
+have_windres=
have_posix_sigs=
need_darwin_c_source=
have_git=
@@ -555,7 +556,7 @@ case "$top_srcdir" in
esac
if [ "$source_dir" != "." ] ; then
- for x in Makefile share tests; do
+ for x in Makefile share tests win; do
printf "Symlinking %s -> $source_dir/%s\n" $x $x
ln -sf "$source_dir/$x" .
done
@@ -641,6 +642,8 @@ EXE := $exe
have_git := $have_git
+add_win_res := $([ -n "$have_windows_h" -a -n "$have_windres" ] && echo "y")
+
CC := $cc
LEX := $lex
YACC := $yacc
@@ -1930,6 +1933,15 @@ else
printf "no\n"
fi
+printf "Checking for windres ... "
+
+if output=$(windres -V 2> /dev/null) ; then
+ printf "yes\n"
+ have_windres=y
+else
+ printf "no\n"
+fi
+
#
# Dependent variables
#