summaryrefslogtreecommitdiff
path: root/package/xfsprogs/patches/patch-configure
blob: 7b788a7e5f7a7a91dda94cf1c5d504cbfcf9a0f6 (plain)
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
--- xfsprogs-3.1.5.orig/configure	2011-03-31 05:11:43.000000000 +0200
+++ xfsprogs-3.1.5/configure	2011-10-12 14:40:56.000000000 +0200
@@ -245,7 +245,7 @@ $0: the script under such a shell if you
 fi
 fi
 fi
-SHELL=${CONFIG_SHELL-/bin/sh}
+SHELL=${CONFIG_SHELL-/bin/bash}
 export SHELL
 # Unset more variables known to interfere with behavior of common tools.
 CLICOLOR_FORCE= GREP_OPTIONS=
@@ -6414,7 +6414,7 @@ fi
 LIBTOOL_DEPS="$ltmain"
 
 # Always use our own libtool.
-LIBTOOL='$(SHELL) $(top_builddir)/libtool'
+LIBTOOL='$(CONFIG_SHELL) $(top_builddir)/libtool'
 
 
 
@@ -10790,11 +10790,11 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
     test -z "$INSTALL_GROUP" || pkg_group="$INSTALL_GROUP"
 
 
-    pkg_distribution=`uname -s`
+    pkg_distribution=Linux
     test -z "$DISTRIBUTION" || pkg_distribution="$DISTRIBUTION"
 
 
-    pkg_platform=`uname -s | tr 'A-Z' 'a-z' | tr -d / | sed -e 's/irix64/irix/'`
+    pkg_platform=linux
     test -z "$PLATFORM" || pkg_platform="$PLATFORM"
 
 
@@ -12036,90 +12036,6 @@ fi
 
 
 
- for ac_header in aio.h
-do :
-  ac_fn_c_check_header_mongrel "$LINENO" "aio.h" "ac_cv_header_aio_h" "$ac_includes_default"
-if test "x$ac_cv_header_aio_h" = x""yes; then :
-  cat >>confdefs.h <<_ACEOF
-#define HAVE_AIO_H 1
-_ACEOF
-
-fi
-
-done
-
-    if test $ac_cv_header_aio_h = no; then
-	echo
-	echo 'FATAL ERROR: could not find a valid <aio.h> header.'
-	exit 1
-    fi
-
- for ac_func in lio_listio
-do :
-  ac_fn_c_check_func "$LINENO" "lio_listio" "ac_cv_func_lio_listio"
-if test "x$ac_cv_func_lio_listio" = x""yes; then :
-  cat >>confdefs.h <<_ACEOF
-#define HAVE_LIO_LISTIO 1
-_ACEOF
-
-fi
-done
-
-    if test $ac_cv_func_lio_listio = yes; then
-	librt=""
-    else
-	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lio_listio in -lrt" >&5
-$as_echo_n "checking for lio_listio in -lrt... " >&6; }
-if test "${ac_cv_lib_rt_lio_listio+set}" = set; then :
-  $as_echo_n "(cached) " >&6
-else
-  ac_check_lib_save_LIBS=$LIBS
-LIBS="-lrt -lpthread $LIBS"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-
-/* Override any GCC internal prototype to avoid an error.
-   Use char because int might match the return type of a GCC
-   builtin and then its argument prototype would still apply.  */
-#ifdef __cplusplus
-extern "C"
-#endif
-char lio_listio ();
-int
-main ()
-{
-return lio_listio ();
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_rt_lio_listio=yes
-else
-  ac_cv_lib_rt_lio_listio=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
-    conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_lio_listio" >&5
-$as_echo "$ac_cv_lib_rt_lio_listio" >&6; }
-if test "x$ac_cv_lib_rt_lio_listio" = x""yes; then :
-  cat >>confdefs.h <<_ACEOF
-#define HAVE_LIBRT 1
-_ACEOF
-
-  LIBS="-lrt $LIBS"
-
-else
-
-	    echo
-	    echo 'FATAL ERROR: could not find a library with lio_listio.'
-	    exit 1
-fi
-
-	librt="-lrt"
-    fi