summaryrefslogtreecommitdiff
path: root/www/nspluginwrapper-devel/files/patch-configure
blob: 88e6d7733b5d7ee56f2fd7edad80809c72225f0f (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
--- configure.orig	2009-01-02 11:54:10.000000000 +0300
+++ configure	2009-01-09 05:42:24.000000000 +0300
@@ -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"
@@ -728,7 +723,7 @@
 elif test "$host_cpu" = "x86_64" ; then
     echo "ARCH=x86_64" >> $config_mak
     echo "#define HOST_X86_64 1" >> $config_h
-    echo "#define HOST_ARCH \"x86_64\"" >> $config_h
+    echo "#define HOST_ARCH \"amd64\"" >> $config_h
 elif test "$host_cpu" = "ppc" ; then
     echo "ARCH=ppc" >> $config_mak
     echo "#define HOST_PPC 1" >> $config_h