annotate src/of-database-1-cross-fixes.patch @ 3892:b42e8f913ddc

of-database: added of package * src/of-database.mk: new file * dist-files.mk: add of-database.mk, of-database-1-cross-fixes.patch * Makefile.am: add database to octave forge packages * index.html: add of-database * build_packages.m: add of-database package * src/of-database-1-cross-fixes.patch: new file
author John Donoghue
date Fri, 10 Apr 2015 07:35:38 -0400
parents
children 07a298959dc3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3892
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
1 diff -ur database-2.3.1.orig/src/configure database-2.3.1/src/configure
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
2 --- database-2.3.1.orig/src/configure 2015-04-09 14:43:58.349514050 -0400
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
3 +++ database-2.3.1/src/configure 2015-04-09 14:55:44.447432890 -0400
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
4 @@ -591,6 +591,7 @@
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
5 CFLAGS
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
6 CC
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
7 PG_CONFIG
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
8 +OCTAVE_CONFIG
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
9 MKOCTFILE
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
10 OCTAVE
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
11 OBJEXT
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
12 @@ -2407,6 +2408,43 @@
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
13 else
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
14 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
15 $as_echo "no" >&6; }
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
16 +fi
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
17 +
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
18 +
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
19 +# Extract the first word of "octave-config", so it can be a program name with args.
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
20 +set dummy octave-config; ac_word=$2
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
21 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
22 +$as_echo_n "checking for $ac_word... " >&6; }
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
23 +if ${ac_cv_prog_OCTAVE_CONFIG+:} false; then :
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
24 + $as_echo_n "(cached) " >&6
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
25 +else
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
26 + if test -n "$OCTAVE_CONFIG"; then
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
27 + ac_cv_prog_OCTAVE_CONFIG="$OCTAVE_CONFIG" # Let the user override the test.
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
28 +else
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
29 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
30 +for as_dir in $PATH
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
31 +do
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
32 + IFS=$as_save_IFS
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
33 + test -z "$as_dir" && as_dir=.
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
34 + for ac_exec_ext in '' $ac_executable_extensions; do
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
35 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
36 + ac_cv_prog_OCTAVE_CONFIG="octave-config"
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
37 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
38 + break 2
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
39 + fi
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
40 +done
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
41 + done
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
42 +IFS=$as_save_IFS
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
43 +
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
44 +fi
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
45 +fi
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
46 +OCTAVE_CONFIG=$ac_cv_prog_OCTAVE_CONFIG
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
47 +if test -n "$OCTAVE_CONFIG"; then
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
48 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCTAVE_CONFIG" >&5
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
49 +$as_echo "$OCTAVE_CONFIG" >&6; }
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
50 +else
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
51 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
52 +$as_echo "no" >&6; }
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
53 fi
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
54
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
55
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
56 diff -ur database-2.3.1.orig/src/configure.ac database-2.3.1/src/configure.ac
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
57 --- database-2.3.1.orig/src/configure.ac 2015-04-09 14:43:58.346513991 -0400
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
58 +++ database-2.3.1/src/configure.ac 2015-04-09 14:49:01.101482292 -0400
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
59 @@ -13,6 +13,7 @@
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
60
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
61 AC_CHECK_PROG(OCTAVE, octave, octave)
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
62 AC_CHECK_PROG(MKOCTFILE, mkoctfile, mkoctfile)
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
63 +AC_CHECK_PROG(OCTAVE_CONFIG, octave-config, octave-config)
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
64 AC_CHECK_PROG(PG_CONFIG, pg_config, pg_config)
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
65 if test -z "$PG_CONFIG"; then
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
66 AC_MSG_ERROR([pg_config not found], 1);
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
67 diff -ur database-2.3.1.orig/src/Makefile.in database-2.3.1/src/Makefile.in
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
68 --- database-2.3.1.orig/src/Makefile.in 2015-04-09 14:43:58.348514031 -0400
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
69 +++ database-2.3.1/src/Makefile.in 2015-04-09 14:51:59.623001539 -0400
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
70 @@ -1,8 +1,10 @@
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
71 # We rely on g++ features, configure assures CXX=g++.
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
72 CXX := @CXX@
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
73
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
74 +CANONICAL_HOST_TYPE := $(shell $(OCTAVE_CONFIG) -p CANONICAL_HOST_TYPE))
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
75 +
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
76 EXTRALIBS =
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
77 -ifeq ($(OS),Windows_NT)
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
78 +ifneq (,$(findstring mingw,$(CANONICAL_HOST_TYPE)))
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
79 EXTRALIBS = -lws2_32
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
80 endif
b42e8f913ddc of-database: added of package
John Donoghue
parents:
diff changeset
81