summaryrefslogtreecommitdiff
path: root/www/nspluginwrapper/files/patch-configure
blob: 80b7d96123932f42f856f76036523cf83ece47d3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
--- ./configure.orig	Sun Mar  4 23:01:22 2007
+++ ./configure	Wed Apr  4 20:20:59 2007
@@ -6,13 +6,8 @@
 PACKAGE=nspluginwrapper
 
 # set temporary file name
-if test ! -z "$TMPDIR" ; then
-    TMPDIR1="${TMPDIR}"
-elif test ! -z "$TEMPDIR" ; then
-    TMPDIR1="${TEMPDIR}"
-else
-    TMPDIR1="/tmp"
-fi
+mkdir -p tmp
+TMPDIR1="./tmp"
 
 TMPC="${TMPDIR1}/npw-conf-${RANDOM}-$$-${RANDOM}.c"
 TMPO="${TMPDIR1}/npw-conf-${RANDOM}-$$-${RANDOM}.o"
@@ -75,6 +70,9 @@
 --prefix=*)
     prefix=`echo $opt | cut -d '=' -f 2`
     ;;
+--x11=*)
+    x_base_dirs=`echo $opt | cut -d '=' -f 2`
+    ;;
 --pkglibdir=*)
     pkglibdir=`echo $opt | cut -d '=' -f 2`
     ;;
@@ -279,10 +277,12 @@
 fi
 
 # check for X11 base dir
-x_base_dirs='
-/usr
-/usr/X11R6
-/usr/local/X11R6'
+if test -z "$x_base_dirs"; then
+	x_base_dirs='
+	/usr
+	/usr/X11R6
+	/usr/local'
+fi
 for dir in $x_base_dirs; do
     x_include_dir="$dir/include"
     if test -f $x_include_dir/X11/Intrinsic.h; then
@@ -407,6 +407,7 @@
 echo "  --target-os=OS              build plugin support for target OS [$target_os]"
 echo "  --target-cpu=CPU            build plugin support for target CPU [$target_cpu]"
 echo "  --with-viewer               build viewer [$build_viewer]"
+echo "  --x11=PREFIX                path to X11 base"
 echo ""
 echo "Advanced options (experts only):"
 echo "  --source-path=PATH          path of source code [$source_path]"