Merge lp:~ubuntu-branches/ubuntu/oneiric/lxc/oneiric-201108112013 into lp:ubuntu/oneiric/lxc
- Oneiric (11.10)
- oneiric-201108112013
- Merge into oneiric
Status: | Rejected |
---|---|
Rejected by: | Martin Pitt |
Proposed branch: | lp:~ubuntu-branches/ubuntu/oneiric/lxc/oneiric-201108112013 |
Merge into: | lp:ubuntu/oneiric/lxc |
Diff against target: |
11197 lines (+11072/-0) (has conflicts) 18 files modified
.pc/.quilt_patches (+1/-0) .pc/.quilt_series (+1/-0) .pc/0015-monitor-support-quit.patch/src/lxc/arguments.h (+89/-0) .pc/0015-monitor-support-quit.patch/src/lxc/lxc_monitor.c (+109/-0) .pc/01-libdir.patch/configure (+6620/-0) .pc/01-libdir.patch/configure.ac (+190/-0) .pc/01-libdir.patch/src/lxc/Makefile.am (+134/-0) .pc/01-libdir.patch/src/lxc/Makefile.in (+1345/-0) .pc/02-distclean.patch/config/Makefile.am (+2/-0) .pc/02-distclean.patch/config/Makefile.in (+343/-0) .pc/03-module-init-tools.patch/templates/lxc-debian.in (+319/-0) .pc/04-configuration-path.patch/src/lxc/lxc-create.in (+186/-0) .pc/06-debian.patch/templates/lxc-debian.in (+320/-0) .pc/07-debian2.patch/templates/lxc-debian.in (+332/-0) .pc/applied-patches (+7/-0) src/lxc/lxc-clone.in (+208/-0) templates/lxc-opensuse.in (+368/-0) templates/lxc-ubuntu.in (+498/-0) Conflict adding file .pc/0015-monitor-support-quit.patch. Moved existing file to .pc/0015-monitor-support-quit.patch.moved. Conflict adding file .pc/01-libdir.patch. Moved existing file to .pc/01-libdir.patch.moved. Conflict adding file .pc/02-distclean.patch. Moved existing file to .pc/02-distclean.patch.moved. Conflict adding file .pc/03-module-init-tools.patch. Moved existing file to .pc/03-module-init-tools.patch.moved. Conflict adding file .pc/04-configuration-path.patch. Moved existing file to .pc/04-configuration-path.patch.moved. Conflict adding file .pc/06-debian.patch. Moved existing file to .pc/06-debian.patch.moved. Conflict adding file .pc/07-debian2.patch. Moved existing file to .pc/07-debian2.patch.moved. Conflict adding file .pc/applied-patches. Moved existing file to .pc/applied-patches.moved. Conflict adding file src/lxc/lxc-clone.in. Moved existing file to src/lxc/lxc-clone.in.moved. Conflict adding file templates/lxc-opensuse.in. Moved existing file to templates/lxc-opensuse.in.moved. Conflict adding file templates/lxc-ubuntu.in. Moved existing file to templates/lxc-ubuntu.in.moved. |
To merge this branch: | bzr merge lp:~ubuntu-branches/ubuntu/oneiric/lxc/oneiric-201108112013 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Didier Roche-Tolomelli | Disapprove | ||
Ubuntu branches | Pending | ||
Review via email: mp+73921@code.launchpad.net |
Commit message
Description of the change
The package importer has detected a possible inconsistency between the package history in the archve and the history in bzr. As the archive is authoritative the importer has made lp:ubuntu/oneiric/lxc reflect what is in the archive and the old bzr branch has been pushed to lp:~ubuntu-branches/ubuntu/oneiric/lxc/oneiric-201108112013. This merge proposal was created so that an Ubuntu developer can review the situations and perform a merge/upload if necessary. There are three typical cases where this can happen.
1. Where someone pushes a change to bzr and someone else uploads the package without that change. This is the reason that this check is done by the importer. If this appears to be the case then a merge/upload should be done if the changes that were in bzr are still desirable.
2. The importer incorrectly detected the above situation when someone made a change in bzr and then uploaded it.
3. The importer incorrectly detected the above situation when someone just uploaded a package and didn't touch bzr.
If this case doesn't appear to be the first situation then set the status of the merge proposal to "Rejected" and help avoid the problem in future by filing a bug at https:/
(this is an automatically generated message)
Unmerged revisions
- 36. By Stéphane Graber
-
Remove files that shouldn't exist anymore
- 35. By Stéphane Graber
-
Remove all patches that aren't applied anymore
- 34. By Stéphane Graber
-
Merge branch from Serge Hallyn
- 33. By Stéphane Graber
-
Update changelog
- 32. By Stéphane Graber
-
Re-apply all patches
- 31. By Stéphane Graber
-
Merge 0.7.5
- 30. By Stéphane Graber
-
Unapply all patches
Preview Diff
1 | === added file '.pc/.quilt_patches' | |||
2 | --- .pc/.quilt_patches 1970-01-01 00:00:00 +0000 | |||
3 | +++ .pc/.quilt_patches 2011-09-02 23:10:35 +0000 | |||
4 | @@ -0,0 +1,1 @@ | |||
5 | 1 | debian/patches | ||
6 | 0 | 2 | ||
7 | === added file '.pc/.quilt_series' | |||
8 | --- .pc/.quilt_series 1970-01-01 00:00:00 +0000 | |||
9 | +++ .pc/.quilt_series 2011-09-02 23:10:35 +0000 | |||
10 | @@ -0,0 +1,1 @@ | |||
11 | 1 | series | ||
12 | 0 | 2 | ||
13 | === added directory '.pc/0015-monitor-support-quit.patch' | |||
14 | === renamed directory '.pc/0015-monitor-support-quit.patch' => '.pc/0015-monitor-support-quit.patch.moved' | |||
15 | === added file '.pc/0015-monitor-support-quit.patch/.timestamp' | |||
16 | === added directory '.pc/0015-monitor-support-quit.patch/src' | |||
17 | === added directory '.pc/0015-monitor-support-quit.patch/src/lxc' | |||
18 | === added file '.pc/0015-monitor-support-quit.patch/src/lxc/arguments.h' | |||
19 | --- .pc/0015-monitor-support-quit.patch/src/lxc/arguments.h 1970-01-01 00:00:00 +0000 | |||
20 | +++ .pc/0015-monitor-support-quit.patch/src/lxc/arguments.h 2011-09-02 23:10:35 +0000 | |||
21 | @@ -0,0 +1,89 @@ | |||
22 | 1 | /* | ||
23 | 2 | * lxc: linux Container library | ||
24 | 3 | * | ||
25 | 4 | * (C) Copyright IBM Corp. 2007, 2008 | ||
26 | 5 | * | ||
27 | 6 | * Authors: | ||
28 | 7 | * Daniel Lezcano <dlezcano at fr.ibm.com> | ||
29 | 8 | * Michel Normand <normand at fr.ibm.com> | ||
30 | 9 | * | ||
31 | 10 | * This library is free software; you can redistribute it and/or | ||
32 | 11 | * modify it under the terms of the GNU Lesser General Public | ||
33 | 12 | * License as published by the Free Software Foundation; either | ||
34 | 13 | * version 2.1 of the License, or (at your option) any later version. | ||
35 | 14 | * | ||
36 | 15 | * This library is distributed in the hope that it will be useful, | ||
37 | 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
38 | 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
39 | 18 | * Lesser General Public License for more details. | ||
40 | 19 | * | ||
41 | 20 | * You should have received a copy of the GNU Lesser General Public | ||
42 | 21 | * License along with this library; if not, write to the Free Software | ||
43 | 22 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
44 | 23 | */ | ||
45 | 24 | #ifndef __arguments_h | ||
46 | 25 | #define __arguments_h | ||
47 | 26 | |||
48 | 27 | #include <getopt.h> | ||
49 | 28 | |||
50 | 29 | struct lxc_arguments; | ||
51 | 30 | |||
52 | 31 | typedef int (*lxc_arguments_parser_t) (struct lxc_arguments *, int, char*); | ||
53 | 32 | typedef int (*lxc_arguments_checker_t) (const struct lxc_arguments *); | ||
54 | 33 | |||
55 | 34 | struct lxc_arguments { | ||
56 | 35 | const char *help; | ||
57 | 36 | const char *progname; | ||
58 | 37 | const struct option* options; | ||
59 | 38 | lxc_arguments_parser_t parser; | ||
60 | 39 | lxc_arguments_checker_t checker; | ||
61 | 40 | |||
62 | 41 | const char *name; | ||
63 | 42 | char *log_file; | ||
64 | 43 | char *log_priority; | ||
65 | 44 | int quiet; | ||
66 | 45 | int daemonize; | ||
67 | 46 | const char *rcfile; | ||
68 | 47 | const char *console; | ||
69 | 48 | |||
70 | 49 | /* for lxc-checkpoint/restart */ | ||
71 | 50 | const char *statefile; | ||
72 | 51 | int statefd; | ||
73 | 52 | int flags; | ||
74 | 53 | |||
75 | 54 | /* for lxc-console */ | ||
76 | 55 | int ttynum; | ||
77 | 56 | char escape; | ||
78 | 57 | |||
79 | 58 | /* for lxc-wait */ | ||
80 | 59 | char *states; | ||
81 | 60 | |||
82 | 61 | /* remaining arguments */ | ||
83 | 62 | char *const *argv; | ||
84 | 63 | int argc; | ||
85 | 64 | }; | ||
86 | 65 | |||
87 | 66 | #define LXC_COMMON_OPTIONS \ | ||
88 | 67 | {"name", required_argument, 0, 'n'}, \ | ||
89 | 68 | {"help", no_argument, 0, 'h'}, \ | ||
90 | 69 | {"usage", no_argument, 0, OPT_USAGE}, \ | ||
91 | 70 | {"quiet", no_argument, 0, 'q'}, \ | ||
92 | 71 | {"logfile", required_argument, 0, 'o'}, \ | ||
93 | 72 | {"logpriority", required_argument, 0, 'l'}, \ | ||
94 | 73 | {0, 0, 0, 0} | ||
95 | 74 | |||
96 | 75 | /* option keys for long only options */ | ||
97 | 76 | #define OPT_USAGE 0x1000 | ||
98 | 77 | |||
99 | 78 | extern int lxc_arguments_parse(struct lxc_arguments *args, | ||
100 | 79 | int argc, char *const argv[]); | ||
101 | 80 | |||
102 | 81 | extern char **lxc_arguments_dup(const char *file, struct lxc_arguments *args); | ||
103 | 82 | extern int lxc_arguments_str_to_int(struct lxc_arguments *args, const char *str); | ||
104 | 83 | |||
105 | 84 | extern const char *lxc_strerror(int errnum); | ||
106 | 85 | |||
107 | 86 | #define lxc_error(arg, fmt, args...) if (!(arg)->quiet) \ | ||
108 | 87 | fprintf(stderr, "%s: " fmt "\n", (arg)->progname, ## args) | ||
109 | 88 | |||
110 | 89 | #endif | ||
111 | 0 | 90 | ||
112 | === added file '.pc/0015-monitor-support-quit.patch/src/lxc/lxc_monitor.c' | |||
113 | --- .pc/0015-monitor-support-quit.patch/src/lxc/lxc_monitor.c 1970-01-01 00:00:00 +0000 | |||
114 | +++ .pc/0015-monitor-support-quit.patch/src/lxc/lxc_monitor.c 2011-09-02 23:10:35 +0000 | |||
115 | @@ -0,0 +1,109 @@ | |||
116 | 1 | /* | ||
117 | 2 | * lxc: linux Container library | ||
118 | 3 | * | ||
119 | 4 | * (C) Copyright IBM Corp. 2007, 2008 | ||
120 | 5 | * | ||
121 | 6 | * Authors: | ||
122 | 7 | * Daniel Lezcano <dlezcano at fr.ibm.com> | ||
123 | 8 | * | ||
124 | 9 | * This library is free software; you can redistribute it and/or | ||
125 | 10 | * modify it under the terms of the GNU Lesser General Public | ||
126 | 11 | * License as published by the Free Software Foundation; either | ||
127 | 12 | * version 2.1 of the License, or (at your option) any later version. | ||
128 | 13 | * | ||
129 | 14 | * This library is distributed in the hope that it will be useful, | ||
130 | 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
131 | 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
132 | 17 | * Lesser General Public License for more details. | ||
133 | 18 | * | ||
134 | 19 | * You should have received a copy of the GNU Lesser General Public | ||
135 | 20 | * License along with this library; if not, write to the Free Software | ||
136 | 21 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
137 | 22 | */ | ||
138 | 23 | #include <stdio.h> | ||
139 | 24 | #include <stdlib.h> | ||
140 | 25 | #include <string.h> | ||
141 | 26 | #include <libgen.h> | ||
142 | 27 | #include <unistd.h> | ||
143 | 28 | #include <regex.h> | ||
144 | 29 | #include <sys/types.h> | ||
145 | 30 | |||
146 | 31 | #include <lxc/lxc.h> | ||
147 | 32 | #include <lxc/log.h> | ||
148 | 33 | #include <lxc/monitor.h> | ||
149 | 34 | #include "arguments.h" | ||
150 | 35 | |||
151 | 36 | lxc_log_define(lxc_monitor_ui, lxc_monitor); | ||
152 | 37 | |||
153 | 38 | static const struct option my_longopts[] = { | ||
154 | 39 | LXC_COMMON_OPTIONS | ||
155 | 40 | }; | ||
156 | 41 | |||
157 | 42 | static struct lxc_arguments my_args = { | ||
158 | 43 | .progname = "lxc-monitor", | ||
159 | 44 | .help = "\ | ||
160 | 45 | --name=NAME\n\ | ||
161 | 46 | \n\ | ||
162 | 47 | lxc-monitor monitors the state of the NAME container\n\ | ||
163 | 48 | \n\ | ||
164 | 49 | Options :\n\ | ||
165 | 50 | -n, --name=NAME NAME for name of the container\n\ | ||
166 | 51 | NAME may be a regular expression", | ||
167 | 52 | .options = my_longopts, | ||
168 | 53 | .parser = NULL, | ||
169 | 54 | .checker = NULL, | ||
170 | 55 | }; | ||
171 | 56 | |||
172 | 57 | int main(int argc, char *argv[]) | ||
173 | 58 | { | ||
174 | 59 | char *regexp; | ||
175 | 60 | struct lxc_msg msg; | ||
176 | 61 | regex_t preg; | ||
177 | 62 | int fd; | ||
178 | 63 | |||
179 | 64 | if (lxc_arguments_parse(&my_args, argc, argv)) | ||
180 | 65 | return -1; | ||
181 | 66 | |||
182 | 67 | if (lxc_log_init(my_args.log_file, my_args.log_priority, | ||
183 | 68 | my_args.progname, my_args.quiet)) | ||
184 | 69 | return -1; | ||
185 | 70 | |||
186 | 71 | regexp = malloc(strlen(my_args.name) + 3); | ||
187 | 72 | if (!regexp) { | ||
188 | 73 | ERROR("failed to allocate memory"); | ||
189 | 74 | return -1; | ||
190 | 75 | } | ||
191 | 76 | sprintf(regexp, "^%s$", my_args.name); | ||
192 | 77 | |||
193 | 78 | if (regcomp(&preg, regexp, REG_NOSUB|REG_EXTENDED)) { | ||
194 | 79 | ERROR("failed to compile the regex '%s'", my_args.name); | ||
195 | 80 | return -1; | ||
196 | 81 | } | ||
197 | 82 | |||
198 | 83 | fd = lxc_monitor_open(); | ||
199 | 84 | if (fd < 0) | ||
200 | 85 | return -1; | ||
201 | 86 | |||
202 | 87 | for (;;) { | ||
203 | 88 | if (lxc_monitor_read(fd, &msg) < 0) | ||
204 | 89 | return -1; | ||
205 | 90 | |||
206 | 91 | if (regexec(&preg, msg.name, 0, NULL, 0)) | ||
207 | 92 | continue; | ||
208 | 93 | |||
209 | 94 | switch (msg.type) { | ||
210 | 95 | case lxc_msg_state: | ||
211 | 96 | printf("'%s' changed state to [%s]\n", | ||
212 | 97 | msg.name, lxc_state2str(msg.value)); | ||
213 | 98 | break; | ||
214 | 99 | default: | ||
215 | 100 | /* ignore garbage */ | ||
216 | 101 | break; | ||
217 | 102 | } | ||
218 | 103 | } | ||
219 | 104 | |||
220 | 105 | regfree(&preg); | ||
221 | 106 | |||
222 | 107 | return 0; | ||
223 | 108 | } | ||
224 | 109 | |||
225 | 0 | 110 | ||
226 | === added directory '.pc/01-libdir.patch' | |||
227 | === renamed directory '.pc/01-libdir.patch' => '.pc/01-libdir.patch.moved' | |||
228 | === added file '.pc/01-libdir.patch/.timestamp' | |||
229 | === added file '.pc/01-libdir.patch/configure' | |||
230 | --- .pc/01-libdir.patch/configure 1970-01-01 00:00:00 +0000 | |||
231 | +++ .pc/01-libdir.patch/configure 2011-09-02 23:10:35 +0000 | |||
232 | @@ -0,0 +1,6620 @@ | |||
233 | 1 | #! /bin/sh | ||
234 | 2 | # Guess values for system-dependent variables and create Makefiles. | ||
235 | 3 | # Generated by GNU Autoconf 2.67 for lxc 0.7.5. | ||
236 | 4 | # | ||
237 | 5 | # | ||
238 | 6 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | ||
239 | 7 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software | ||
240 | 8 | # Foundation, Inc. | ||
241 | 9 | # | ||
242 | 10 | # | ||
243 | 11 | # This configure script is free software; the Free Software Foundation | ||
244 | 12 | # gives unlimited permission to copy, distribute and modify it. | ||
245 | 13 | ## -------------------- ## | ||
246 | 14 | ## M4sh Initialization. ## | ||
247 | 15 | ## -------------------- ## | ||
248 | 16 | |||
249 | 17 | # Be more Bourne compatible | ||
250 | 18 | DUALCASE=1; export DUALCASE # for MKS sh | ||
251 | 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | ||
252 | 20 | emulate sh | ||
253 | 21 | NULLCMD=: | ||
254 | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | ||
255 | 23 | # is contrary to our usage. Disable this feature. | ||
256 | 24 | alias -g '${1+"$@"}'='"$@"' | ||
257 | 25 | setopt NO_GLOB_SUBST | ||
258 | 26 | else | ||
259 | 27 | case `(set -o) 2>/dev/null` in #( | ||
260 | 28 | *posix*) : | ||
261 | 29 | set -o posix ;; #( | ||
262 | 30 | *) : | ||
263 | 31 | ;; | ||
264 | 32 | esac | ||
265 | 33 | fi | ||
266 | 34 | |||
267 | 35 | |||
268 | 36 | as_nl=' | ||
269 | 37 | ' | ||
270 | 38 | export as_nl | ||
271 | 39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | ||
272 | 40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
273 | 41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | ||
274 | 42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | ||
275 | 43 | # Prefer a ksh shell builtin over an external printf program on Solaris, | ||
276 | 44 | # but without wasting forks for bash or zsh. | ||
277 | 45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | ||
278 | 46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
279 | 47 | as_echo='print -r --' | ||
280 | 48 | as_echo_n='print -rn --' | ||
281 | 49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
282 | 50 | as_echo='printf %s\n' | ||
283 | 51 | as_echo_n='printf %s' | ||
284 | 52 | else | ||
285 | 53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | ||
286 | 54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | ||
287 | 55 | as_echo_n='/usr/ucb/echo -n' | ||
288 | 56 | else | ||
289 | 57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | ||
290 | 58 | as_echo_n_body='eval | ||
291 | 59 | arg=$1; | ||
292 | 60 | case $arg in #( | ||
293 | 61 | *"$as_nl"*) | ||
294 | 62 | expr "X$arg" : "X\\(.*\\)$as_nl"; | ||
295 | 63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | ||
296 | 64 | esac; | ||
297 | 65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | ||
298 | 66 | ' | ||
299 | 67 | export as_echo_n_body | ||
300 | 68 | as_echo_n='sh -c $as_echo_n_body as_echo' | ||
301 | 69 | fi | ||
302 | 70 | export as_echo_body | ||
303 | 71 | as_echo='sh -c $as_echo_body as_echo' | ||
304 | 72 | fi | ||
305 | 73 | |||
306 | 74 | # The user is always right. | ||
307 | 75 | if test "${PATH_SEPARATOR+set}" != set; then | ||
308 | 76 | PATH_SEPARATOR=: | ||
309 | 77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | ||
310 | 78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | ||
311 | 79 | PATH_SEPARATOR=';' | ||
312 | 80 | } | ||
313 | 81 | fi | ||
314 | 82 | |||
315 | 83 | |||
316 | 84 | # IFS | ||
317 | 85 | # We need space, tab and new line, in precisely that order. Quoting is | ||
318 | 86 | # there to prevent editors from complaining about space-tab. | ||
319 | 87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
320 | 88 | # splitting by setting IFS to empty value.) | ||
321 | 89 | IFS=" "" $as_nl" | ||
322 | 90 | |||
323 | 91 | # Find who we are. Look in the path if we contain no directory separator. | ||
324 | 92 | case $0 in #(( | ||
325 | 93 | *[\\/]* ) as_myself=$0 ;; | ||
326 | 94 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
327 | 95 | for as_dir in $PATH | ||
328 | 96 | do | ||
329 | 97 | IFS=$as_save_IFS | ||
330 | 98 | test -z "$as_dir" && as_dir=. | ||
331 | 99 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
332 | 100 | done | ||
333 | 101 | IFS=$as_save_IFS | ||
334 | 102 | |||
335 | 103 | ;; | ||
336 | 104 | esac | ||
337 | 105 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
338 | 106 | # in which case we are not to be found in the path. | ||
339 | 107 | if test "x$as_myself" = x; then | ||
340 | 108 | as_myself=$0 | ||
341 | 109 | fi | ||
342 | 110 | if test ! -f "$as_myself"; then | ||
343 | 111 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
344 | 112 | exit 1 | ||
345 | 113 | fi | ||
346 | 114 | |||
347 | 115 | # Unset variables that we do not need and which cause bugs (e.g. in | ||
348 | 116 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | ||
349 | 117 | # suppresses any "Segmentation fault" message there. '((' could | ||
350 | 118 | # trigger a bug in pdksh 5.2.14. | ||
351 | 119 | for as_var in BASH_ENV ENV MAIL MAILPATH | ||
352 | 120 | do eval test x\${$as_var+set} = xset \ | ||
353 | 121 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | ||
354 | 122 | done | ||
355 | 123 | PS1='$ ' | ||
356 | 124 | PS2='> ' | ||
357 | 125 | PS4='+ ' | ||
358 | 126 | |||
359 | 127 | # NLS nuisances. | ||
360 | 128 | LC_ALL=C | ||
361 | 129 | export LC_ALL | ||
362 | 130 | LANGUAGE=C | ||
363 | 131 | export LANGUAGE | ||
364 | 132 | |||
365 | 133 | # CDPATH. | ||
366 | 134 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
367 | 135 | |||
368 | 136 | if test "x$CONFIG_SHELL" = x; then | ||
369 | 137 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | ||
370 | 138 | emulate sh | ||
371 | 139 | NULLCMD=: | ||
372 | 140 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | ||
373 | 141 | # is contrary to our usage. Disable this feature. | ||
374 | 142 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | ||
375 | 143 | setopt NO_GLOB_SUBST | ||
376 | 144 | else | ||
377 | 145 | case \`(set -o) 2>/dev/null\` in #( | ||
378 | 146 | *posix*) : | ||
379 | 147 | set -o posix ;; #( | ||
380 | 148 | *) : | ||
381 | 149 | ;; | ||
382 | 150 | esac | ||
383 | 151 | fi | ||
384 | 152 | " | ||
385 | 153 | as_required="as_fn_return () { (exit \$1); } | ||
386 | 154 | as_fn_success () { as_fn_return 0; } | ||
387 | 155 | as_fn_failure () { as_fn_return 1; } | ||
388 | 156 | as_fn_ret_success () { return 0; } | ||
389 | 157 | as_fn_ret_failure () { return 1; } | ||
390 | 158 | |||
391 | 159 | exitcode=0 | ||
392 | 160 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | ||
393 | 161 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | ||
394 | 162 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | ||
395 | 163 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | ||
396 | 164 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | ||
397 | 165 | |||
398 | 166 | else | ||
399 | 167 | exitcode=1; echo positional parameters were not saved. | ||
400 | 168 | fi | ||
401 | 169 | test x\$exitcode = x0 || exit 1" | ||
402 | 170 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | ||
403 | 171 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | ||
404 | 172 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | ||
405 | 173 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | ||
406 | 174 | test \$(( 1 + 1 )) = 2 || exit 1" | ||
407 | 175 | if (eval "$as_required") 2>/dev/null; then : | ||
408 | 176 | as_have_required=yes | ||
409 | 177 | else | ||
410 | 178 | as_have_required=no | ||
411 | 179 | fi | ||
412 | 180 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | ||
413 | 181 | |||
414 | 182 | else | ||
415 | 183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
416 | 184 | as_found=false | ||
417 | 185 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | ||
418 | 186 | do | ||
419 | 187 | IFS=$as_save_IFS | ||
420 | 188 | test -z "$as_dir" && as_dir=. | ||
421 | 189 | as_found=: | ||
422 | 190 | case $as_dir in #( | ||
423 | 191 | /*) | ||
424 | 192 | for as_base in sh bash ksh sh5; do | ||
425 | 193 | # Try only shells that exist, to save several forks. | ||
426 | 194 | as_shell=$as_dir/$as_base | ||
427 | 195 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | ||
428 | 196 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | ||
429 | 197 | CONFIG_SHELL=$as_shell as_have_required=yes | ||
430 | 198 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | ||
431 | 199 | break 2 | ||
432 | 200 | fi | ||
433 | 201 | fi | ||
434 | 202 | done;; | ||
435 | 203 | esac | ||
436 | 204 | as_found=false | ||
437 | 205 | done | ||
438 | 206 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | ||
439 | 207 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | ||
440 | 208 | CONFIG_SHELL=$SHELL as_have_required=yes | ||
441 | 209 | fi; } | ||
442 | 210 | IFS=$as_save_IFS | ||
443 | 211 | |||
444 | 212 | |||
445 | 213 | if test "x$CONFIG_SHELL" != x; then : | ||
446 | 214 | # We cannot yet assume a decent shell, so we have to provide a | ||
447 | 215 | # neutralization value for shells without unset; and this also | ||
448 | 216 | # works around shells that cannot unset nonexistent variables. | ||
449 | 217 | BASH_ENV=/dev/null | ||
450 | 218 | ENV=/dev/null | ||
451 | 219 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | ||
452 | 220 | export CONFIG_SHELL | ||
453 | 221 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | ||
454 | 222 | fi | ||
455 | 223 | |||
456 | 224 | if test x$as_have_required = xno; then : | ||
457 | 225 | $as_echo "$0: This script requires a shell more modern than all" | ||
458 | 226 | $as_echo "$0: the shells that I found on your system." | ||
459 | 227 | if test x${ZSH_VERSION+set} = xset ; then | ||
460 | 228 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | ||
461 | 229 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | ||
462 | 230 | else | ||
463 | 231 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, | ||
464 | 232 | $0: including any error possibly output before this | ||
465 | 233 | $0: message. Then install a modern shell, or manually run | ||
466 | 234 | $0: the script under such a shell if you do have one." | ||
467 | 235 | fi | ||
468 | 236 | exit 1 | ||
469 | 237 | fi | ||
470 | 238 | fi | ||
471 | 239 | fi | ||
472 | 240 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
473 | 241 | export SHELL | ||
474 | 242 | # Unset more variables known to interfere with behavior of common tools. | ||
475 | 243 | CLICOLOR_FORCE= GREP_OPTIONS= | ||
476 | 244 | unset CLICOLOR_FORCE GREP_OPTIONS | ||
477 | 245 | |||
478 | 246 | ## --------------------- ## | ||
479 | 247 | ## M4sh Shell Functions. ## | ||
480 | 248 | ## --------------------- ## | ||
481 | 249 | # as_fn_unset VAR | ||
482 | 250 | # --------------- | ||
483 | 251 | # Portably unset VAR. | ||
484 | 252 | as_fn_unset () | ||
485 | 253 | { | ||
486 | 254 | { eval $1=; unset $1;} | ||
487 | 255 | } | ||
488 | 256 | as_unset=as_fn_unset | ||
489 | 257 | |||
490 | 258 | # as_fn_set_status STATUS | ||
491 | 259 | # ----------------------- | ||
492 | 260 | # Set $? to STATUS, without forking. | ||
493 | 261 | as_fn_set_status () | ||
494 | 262 | { | ||
495 | 263 | return $1 | ||
496 | 264 | } # as_fn_set_status | ||
497 | 265 | |||
498 | 266 | # as_fn_exit STATUS | ||
499 | 267 | # ----------------- | ||
500 | 268 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | ||
501 | 269 | as_fn_exit () | ||
502 | 270 | { | ||
503 | 271 | set +e | ||
504 | 272 | as_fn_set_status $1 | ||
505 | 273 | exit $1 | ||
506 | 274 | } # as_fn_exit | ||
507 | 275 | |||
508 | 276 | # as_fn_mkdir_p | ||
509 | 277 | # ------------- | ||
510 | 278 | # Create "$as_dir" as a directory, including parents if necessary. | ||
511 | 279 | as_fn_mkdir_p () | ||
512 | 280 | { | ||
513 | 281 | |||
514 | 282 | case $as_dir in #( | ||
515 | 283 | -*) as_dir=./$as_dir;; | ||
516 | 284 | esac | ||
517 | 285 | test -d "$as_dir" || eval $as_mkdir_p || { | ||
518 | 286 | as_dirs= | ||
519 | 287 | while :; do | ||
520 | 288 | case $as_dir in #( | ||
521 | 289 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | ||
522 | 290 | *) as_qdir=$as_dir;; | ||
523 | 291 | esac | ||
524 | 292 | as_dirs="'$as_qdir' $as_dirs" | ||
525 | 293 | as_dir=`$as_dirname -- "$as_dir" || | ||
526 | 294 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
527 | 295 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
528 | 296 | X"$as_dir" : 'X\(//\)$' \| \ | ||
529 | 297 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||
530 | 298 | $as_echo X"$as_dir" | | ||
531 | 299 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
532 | 300 | s//\1/ | ||
533 | 301 | q | ||
534 | 302 | } | ||
535 | 303 | /^X\(\/\/\)[^/].*/{ | ||
536 | 304 | s//\1/ | ||
537 | 305 | q | ||
538 | 306 | } | ||
539 | 307 | /^X\(\/\/\)$/{ | ||
540 | 308 | s//\1/ | ||
541 | 309 | q | ||
542 | 310 | } | ||
543 | 311 | /^X\(\/\).*/{ | ||
544 | 312 | s//\1/ | ||
545 | 313 | q | ||
546 | 314 | } | ||
547 | 315 | s/.*/./; q'` | ||
548 | 316 | test -d "$as_dir" && break | ||
549 | 317 | done | ||
550 | 318 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||
551 | 319 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | ||
552 | 320 | |||
553 | 321 | |||
554 | 322 | } # as_fn_mkdir_p | ||
555 | 323 | # as_fn_append VAR VALUE | ||
556 | 324 | # ---------------------- | ||
557 | 325 | # Append the text in VALUE to the end of the definition contained in VAR. Take | ||
558 | 326 | # advantage of any shell optimizations that allow amortized linear growth over | ||
559 | 327 | # repeated appends, instead of the typical quadratic growth present in naive | ||
560 | 328 | # implementations. | ||
561 | 329 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | ||
562 | 330 | eval 'as_fn_append () | ||
563 | 331 | { | ||
564 | 332 | eval $1+=\$2 | ||
565 | 333 | }' | ||
566 | 334 | else | ||
567 | 335 | as_fn_append () | ||
568 | 336 | { | ||
569 | 337 | eval $1=\$$1\$2 | ||
570 | 338 | } | ||
571 | 339 | fi # as_fn_append | ||
572 | 340 | |||
573 | 341 | # as_fn_arith ARG... | ||
574 | 342 | # ------------------ | ||
575 | 343 | # Perform arithmetic evaluation on the ARGs, and store the result in the | ||
576 | 344 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | ||
577 | 345 | # must be portable across $(()) and expr. | ||
578 | 346 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | ||
579 | 347 | eval 'as_fn_arith () | ||
580 | 348 | { | ||
581 | 349 | as_val=$(( $* )) | ||
582 | 350 | }' | ||
583 | 351 | else | ||
584 | 352 | as_fn_arith () | ||
585 | 353 | { | ||
586 | 354 | as_val=`expr "$@" || test $? -eq 1` | ||
587 | 355 | } | ||
588 | 356 | fi # as_fn_arith | ||
589 | 357 | |||
590 | 358 | |||
591 | 359 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | ||
592 | 360 | # ---------------------------------------- | ||
593 | 361 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | ||
594 | 362 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | ||
595 | 363 | # script with STATUS, using 1 if that was 0. | ||
596 | 364 | as_fn_error () | ||
597 | 365 | { | ||
598 | 366 | as_status=$1; test $as_status -eq 0 && as_status=1 | ||
599 | 367 | if test "$4"; then | ||
600 | 368 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
601 | 369 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | ||
602 | 370 | fi | ||
603 | 371 | $as_echo "$as_me: error: $2" >&2 | ||
604 | 372 | as_fn_exit $as_status | ||
605 | 373 | } # as_fn_error | ||
606 | 374 | |||
607 | 375 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
608 | 376 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
609 | 377 | as_expr=expr | ||
610 | 378 | else | ||
611 | 379 | as_expr=false | ||
612 | 380 | fi | ||
613 | 381 | |||
614 | 382 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
615 | 383 | as_basename=basename | ||
616 | 384 | else | ||
617 | 385 | as_basename=false | ||
618 | 386 | fi | ||
619 | 387 | |||
620 | 388 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
621 | 389 | as_dirname=dirname | ||
622 | 390 | else | ||
623 | 391 | as_dirname=false | ||
624 | 392 | fi | ||
625 | 393 | |||
626 | 394 | as_me=`$as_basename -- "$0" || | ||
627 | 395 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
628 | 396 | X"$0" : 'X\(//\)$' \| \ | ||
629 | 397 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
630 | 398 | $as_echo X/"$0" | | ||
631 | 399 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
632 | 400 | s//\1/ | ||
633 | 401 | q | ||
634 | 402 | } | ||
635 | 403 | /^X\/\(\/\/\)$/{ | ||
636 | 404 | s//\1/ | ||
637 | 405 | q | ||
638 | 406 | } | ||
639 | 407 | /^X\/\(\/\).*/{ | ||
640 | 408 | s//\1/ | ||
641 | 409 | q | ||
642 | 410 | } | ||
643 | 411 | s/.*/./; q'` | ||
644 | 412 | |||
645 | 413 | # Avoid depending upon Character Ranges. | ||
646 | 414 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
647 | 415 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
648 | 416 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
649 | 417 | as_cr_digits='0123456789' | ||
650 | 418 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
651 | 419 | |||
652 | 420 | |||
653 | 421 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | ||
654 | 422 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | ||
655 | 423 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | ||
656 | 424 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | ||
657 | 425 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | ||
658 | 426 | sed -n ' | ||
659 | 427 | p | ||
660 | 428 | /[$]LINENO/= | ||
661 | 429 | ' <$as_myself | | ||
662 | 430 | sed ' | ||
663 | 431 | s/[$]LINENO.*/&-/ | ||
664 | 432 | t lineno | ||
665 | 433 | b | ||
666 | 434 | :lineno | ||
667 | 435 | N | ||
668 | 436 | :loop | ||
669 | 437 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | ||
670 | 438 | t loop | ||
671 | 439 | s/-\n.*// | ||
672 | 440 | ' >$as_me.lineno && | ||
673 | 441 | chmod +x "$as_me.lineno" || | ||
674 | 442 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | ||
675 | 443 | |||
676 | 444 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
677 | 445 | # (the dirname of $[0] is not the place where we might find the | ||
678 | 446 | # original and so on. Autoconf is especially sensitive to this). | ||
679 | 447 | . "./$as_me.lineno" | ||
680 | 448 | # Exit status is that of the last command. | ||
681 | 449 | exit | ||
682 | 450 | } | ||
683 | 451 | |||
684 | 452 | ECHO_C= ECHO_N= ECHO_T= | ||
685 | 453 | case `echo -n x` in #((((( | ||
686 | 454 | -n*) | ||
687 | 455 | case `echo 'xy\c'` in | ||
688 | 456 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
689 | 457 | xy) ECHO_C='\c';; | ||
690 | 458 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | ||
691 | 459 | ECHO_T=' ';; | ||
692 | 460 | esac;; | ||
693 | 461 | *) | ||
694 | 462 | ECHO_N='-n';; | ||
695 | 463 | esac | ||
696 | 464 | |||
697 | 465 | rm -f conf$$ conf$$.exe conf$$.file | ||
698 | 466 | if test -d conf$$.dir; then | ||
699 | 467 | rm -f conf$$.dir/conf$$.file | ||
700 | 468 | else | ||
701 | 469 | rm -f conf$$.dir | ||
702 | 470 | mkdir conf$$.dir 2>/dev/null | ||
703 | 471 | fi | ||
704 | 472 | if (echo >conf$$.file) 2>/dev/null; then | ||
705 | 473 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
706 | 474 | as_ln_s='ln -s' | ||
707 | 475 | # ... but there are two gotchas: | ||
708 | 476 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
709 | 477 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
710 | 478 | # In both cases, we have to default to `cp -p'. | ||
711 | 479 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
712 | 480 | as_ln_s='cp -p' | ||
713 | 481 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
714 | 482 | as_ln_s=ln | ||
715 | 483 | else | ||
716 | 484 | as_ln_s='cp -p' | ||
717 | 485 | fi | ||
718 | 486 | else | ||
719 | 487 | as_ln_s='cp -p' | ||
720 | 488 | fi | ||
721 | 489 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
722 | 490 | rmdir conf$$.dir 2>/dev/null | ||
723 | 491 | |||
724 | 492 | if mkdir -p . 2>/dev/null; then | ||
725 | 493 | as_mkdir_p='mkdir -p "$as_dir"' | ||
726 | 494 | else | ||
727 | 495 | test -d ./-p && rmdir ./-p | ||
728 | 496 | as_mkdir_p=false | ||
729 | 497 | fi | ||
730 | 498 | |||
731 | 499 | if test -x / >/dev/null 2>&1; then | ||
732 | 500 | as_test_x='test -x' | ||
733 | 501 | else | ||
734 | 502 | if ls -dL / >/dev/null 2>&1; then | ||
735 | 503 | as_ls_L_option=L | ||
736 | 504 | else | ||
737 | 505 | as_ls_L_option= | ||
738 | 506 | fi | ||
739 | 507 | as_test_x=' | ||
740 | 508 | eval sh -c '\'' | ||
741 | 509 | if test -d "$1"; then | ||
742 | 510 | test -d "$1/."; | ||
743 | 511 | else | ||
744 | 512 | case $1 in #( | ||
745 | 513 | -*)set "./$1";; | ||
746 | 514 | esac; | ||
747 | 515 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | ||
748 | 516 | ???[sx]*):;;*)false;;esac;fi | ||
749 | 517 | '\'' sh | ||
750 | 518 | ' | ||
751 | 519 | fi | ||
752 | 520 | as_executable_p=$as_test_x | ||
753 | 521 | |||
754 | 522 | # Sed expression to map a string onto a valid CPP name. | ||
755 | 523 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
756 | 524 | |||
757 | 525 | # Sed expression to map a string onto a valid variable name. | ||
758 | 526 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
759 | 527 | |||
760 | 528 | |||
761 | 529 | test -n "$DJDIR" || exec 7<&0 </dev/null | ||
762 | 530 | exec 6>&1 | ||
763 | 531 | |||
764 | 532 | # Name of the host. | ||
765 | 533 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | ||
766 | 534 | # so uname gets run too. | ||
767 | 535 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | ||
768 | 536 | |||
769 | 537 | # | ||
770 | 538 | # Initializations. | ||
771 | 539 | # | ||
772 | 540 | ac_default_prefix=/usr/local | ||
773 | 541 | ac_clean_files= | ||
774 | 542 | ac_config_libobj_dir=. | ||
775 | 543 | LIBOBJS= | ||
776 | 544 | cross_compiling=no | ||
777 | 545 | subdirs= | ||
778 | 546 | MFLAGS= | ||
779 | 547 | MAKEFLAGS= | ||
780 | 548 | |||
781 | 549 | # Identity of this package. | ||
782 | 550 | PACKAGE_NAME='lxc' | ||
783 | 551 | PACKAGE_TARNAME='lxc' | ||
784 | 552 | PACKAGE_VERSION='0.7.5' | ||
785 | 553 | PACKAGE_STRING='lxc 0.7.5' | ||
786 | 554 | PACKAGE_BUGREPORT='' | ||
787 | 555 | PACKAGE_URL='' | ||
788 | 556 | |||
789 | 557 | ac_unique_file="configure.ac" | ||
790 | 558 | # Factoring default headers for most tests. | ||
791 | 559 | ac_includes_default="\ | ||
792 | 560 | #include <stdio.h> | ||
793 | 561 | #ifdef HAVE_SYS_TYPES_H | ||
794 | 562 | # include <sys/types.h> | ||
795 | 563 | #endif | ||
796 | 564 | #ifdef HAVE_SYS_STAT_H | ||
797 | 565 | # include <sys/stat.h> | ||
798 | 566 | #endif | ||
799 | 567 | #ifdef STDC_HEADERS | ||
800 | 568 | # include <stdlib.h> | ||
801 | 569 | # include <stddef.h> | ||
802 | 570 | #else | ||
803 | 571 | # ifdef HAVE_STDLIB_H | ||
804 | 572 | # include <stdlib.h> | ||
805 | 573 | # endif | ||
806 | 574 | #endif | ||
807 | 575 | #ifdef HAVE_STRING_H | ||
808 | 576 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | ||
809 | 577 | # include <memory.h> | ||
810 | 578 | # endif | ||
811 | 579 | # include <string.h> | ||
812 | 580 | #endif | ||
813 | 581 | #ifdef HAVE_STRINGS_H | ||
814 | 582 | # include <strings.h> | ||
815 | 583 | #endif | ||
816 | 584 | #ifdef HAVE_INTTYPES_H | ||
817 | 585 | # include <inttypes.h> | ||
818 | 586 | #endif | ||
819 | 587 | #ifdef HAVE_STDINT_H | ||
820 | 588 | # include <stdint.h> | ||
821 | 589 | #endif | ||
822 | 590 | #ifdef HAVE_UNISTD_H | ||
823 | 591 | # include <unistd.h> | ||
824 | 592 | #endif" | ||
825 | 593 | |||
826 | 594 | ac_subst_vars='am__EXEEXT_FALSE | ||
827 | 595 | am__EXEEXT_TRUE | ||
828 | 596 | LTLIBOBJS | ||
829 | 597 | LIBOBJS | ||
830 | 598 | LINUX_SRCARCH | ||
831 | 599 | LINUX_DIR | ||
832 | 600 | CAP_LIBS | ||
833 | 601 | LXCTEMPLATEDIR | ||
834 | 602 | LXCINITDIR | ||
835 | 603 | LXCROOTFSMOUNT | ||
836 | 604 | LXCPATH | ||
837 | 605 | LXC_GENERATE_DATE | ||
838 | 606 | DOCDIR | ||
839 | 607 | LOCALSTATEDIR | ||
840 | 608 | DATADIR | ||
841 | 609 | SYSCONFDIR | ||
842 | 610 | INCLUDEDIR | ||
843 | 611 | BINDIR | ||
844 | 612 | LIBDIR | ||
845 | 613 | PREFIX | ||
846 | 614 | ENABLE_EXAMPLES_FALSE | ||
847 | 615 | ENABLE_EXAMPLES_TRUE | ||
848 | 616 | ENABLE_DOCBOOK_FALSE | ||
849 | 617 | ENABLE_DOCBOOK_TRUE | ||
850 | 618 | have_docbook | ||
851 | 619 | SETCAP | ||
852 | 620 | EGREP | ||
853 | 621 | GREP | ||
854 | 622 | CPP | ||
855 | 623 | am__fastdepCC_FALSE | ||
856 | 624 | am__fastdepCC_TRUE | ||
857 | 625 | CCDEPMODE | ||
858 | 626 | AMDEPBACKSLASH | ||
859 | 627 | AMDEP_FALSE | ||
860 | 628 | AMDEP_TRUE | ||
861 | 629 | am__quote | ||
862 | 630 | am__include | ||
863 | 631 | DEPDIR | ||
864 | 632 | OBJEXT | ||
865 | 633 | EXEEXT | ||
866 | 634 | ac_ct_CC | ||
867 | 635 | CPPFLAGS | ||
868 | 636 | LDFLAGS | ||
869 | 637 | CFLAGS | ||
870 | 638 | CC | ||
871 | 639 | host_os | ||
872 | 640 | host_vendor | ||
873 | 641 | host_cpu | ||
874 | 642 | host | ||
875 | 643 | build_os | ||
876 | 644 | build_vendor | ||
877 | 645 | build_cpu | ||
878 | 646 | build | ||
879 | 647 | am__untar | ||
880 | 648 | am__tar | ||
881 | 649 | AMTAR | ||
882 | 650 | am__leading_dot | ||
883 | 651 | SET_MAKE | ||
884 | 652 | AWK | ||
885 | 653 | mkdir_p | ||
886 | 654 | MKDIR_P | ||
887 | 655 | INSTALL_STRIP_PROGRAM | ||
888 | 656 | STRIP | ||
889 | 657 | install_sh | ||
890 | 658 | MAKEINFO | ||
891 | 659 | AUTOHEADER | ||
892 | 660 | AUTOMAKE | ||
893 | 661 | AUTOCONF | ||
894 | 662 | ACLOCAL | ||
895 | 663 | VERSION | ||
896 | 664 | PACKAGE | ||
897 | 665 | CYGPATH_W | ||
898 | 666 | am__isrc | ||
899 | 667 | INSTALL_DATA | ||
900 | 668 | INSTALL_SCRIPT | ||
901 | 669 | INSTALL_PROGRAM | ||
902 | 670 | target_alias | ||
903 | 671 | host_alias | ||
904 | 672 | build_alias | ||
905 | 673 | LIBS | ||
906 | 674 | ECHO_T | ||
907 | 675 | ECHO_N | ||
908 | 676 | ECHO_C | ||
909 | 677 | DEFS | ||
910 | 678 | mandir | ||
911 | 679 | localedir | ||
912 | 680 | libdir | ||
913 | 681 | psdir | ||
914 | 682 | pdfdir | ||
915 | 683 | dvidir | ||
916 | 684 | htmldir | ||
917 | 685 | infodir | ||
918 | 686 | docdir | ||
919 | 687 | oldincludedir | ||
920 | 688 | includedir | ||
921 | 689 | localstatedir | ||
922 | 690 | sharedstatedir | ||
923 | 691 | sysconfdir | ||
924 | 692 | datadir | ||
925 | 693 | datarootdir | ||
926 | 694 | libexecdir | ||
927 | 695 | sbindir | ||
928 | 696 | bindir | ||
929 | 697 | program_transform_name | ||
930 | 698 | prefix | ||
931 | 699 | exec_prefix | ||
932 | 700 | PACKAGE_URL | ||
933 | 701 | PACKAGE_BUGREPORT | ||
934 | 702 | PACKAGE_STRING | ||
935 | 703 | PACKAGE_VERSION | ||
936 | 704 | PACKAGE_TARNAME | ||
937 | 705 | PACKAGE_NAME | ||
938 | 706 | PATH_SEPARATOR | ||
939 | 707 | SHELL' | ||
940 | 708 | ac_subst_files='' | ||
941 | 709 | ac_user_opts=' | ||
942 | 710 | enable_option_checking | ||
943 | 711 | enable_dependency_tracking | ||
944 | 712 | enable_doc | ||
945 | 713 | enable_examples | ||
946 | 714 | with_config_path | ||
947 | 715 | with_rootfs_path | ||
948 | 716 | with_linuxdir | ||
949 | 717 | ' | ||
950 | 718 | ac_precious_vars='build_alias | ||
951 | 719 | host_alias | ||
952 | 720 | target_alias | ||
953 | 721 | CC | ||
954 | 722 | CFLAGS | ||
955 | 723 | LDFLAGS | ||
956 | 724 | LIBS | ||
957 | 725 | CPPFLAGS | ||
958 | 726 | CPP' | ||
959 | 727 | |||
960 | 728 | |||
961 | 729 | # Initialize some variables set by options. | ||
962 | 730 | ac_init_help= | ||
963 | 731 | ac_init_version=false | ||
964 | 732 | ac_unrecognized_opts= | ||
965 | 733 | ac_unrecognized_sep= | ||
966 | 734 | # The variables have the same names as the options, with | ||
967 | 735 | # dashes changed to underlines. | ||
968 | 736 | cache_file=/dev/null | ||
969 | 737 | exec_prefix=NONE | ||
970 | 738 | no_create= | ||
971 | 739 | no_recursion= | ||
972 | 740 | prefix=NONE | ||
973 | 741 | program_prefix=NONE | ||
974 | 742 | program_suffix=NONE | ||
975 | 743 | program_transform_name=s,x,x, | ||
976 | 744 | silent= | ||
977 | 745 | site= | ||
978 | 746 | srcdir= | ||
979 | 747 | verbose= | ||
980 | 748 | x_includes=NONE | ||
981 | 749 | x_libraries=NONE | ||
982 | 750 | |||
983 | 751 | # Installation directory options. | ||
984 | 752 | # These are left unexpanded so users can "make install exec_prefix=/foo" | ||
985 | 753 | # and all the variables that are supposed to be based on exec_prefix | ||
986 | 754 | # by default will actually change. | ||
987 | 755 | # Use braces instead of parens because sh, perl, etc. also accept them. | ||
988 | 756 | # (The list follows the same order as the GNU Coding Standards.) | ||
989 | 757 | bindir='${exec_prefix}/bin' | ||
990 | 758 | sbindir='${exec_prefix}/sbin' | ||
991 | 759 | libexecdir='${exec_prefix}/libexec' | ||
992 | 760 | datarootdir='${prefix}/share' | ||
993 | 761 | datadir='${datarootdir}' | ||
994 | 762 | sysconfdir='${prefix}/etc' | ||
995 | 763 | sharedstatedir='${prefix}/com' | ||
996 | 764 | localstatedir='${prefix}/var' | ||
997 | 765 | includedir='${prefix}/include' | ||
998 | 766 | oldincludedir='/usr/include' | ||
999 | 767 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | ||
1000 | 768 | infodir='${datarootdir}/info' | ||
1001 | 769 | htmldir='${docdir}' | ||
1002 | 770 | dvidir='${docdir}' | ||
1003 | 771 | pdfdir='${docdir}' | ||
1004 | 772 | psdir='${docdir}' | ||
1005 | 773 | libdir='${exec_prefix}/lib' | ||
1006 | 774 | localedir='${datarootdir}/locale' | ||
1007 | 775 | mandir='${datarootdir}/man' | ||
1008 | 776 | |||
1009 | 777 | ac_prev= | ||
1010 | 778 | ac_dashdash= | ||
1011 | 779 | for ac_option | ||
1012 | 780 | do | ||
1013 | 781 | # If the previous option needs an argument, assign it. | ||
1014 | 782 | if test -n "$ac_prev"; then | ||
1015 | 783 | eval $ac_prev=\$ac_option | ||
1016 | 784 | ac_prev= | ||
1017 | 785 | continue | ||
1018 | 786 | fi | ||
1019 | 787 | |||
1020 | 788 | case $ac_option in | ||
1021 | 789 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | ||
1022 | 790 | *=) ac_optarg= ;; | ||
1023 | 791 | *) ac_optarg=yes ;; | ||
1024 | 792 | esac | ||
1025 | 793 | |||
1026 | 794 | # Accept the important Cygnus configure options, so we can diagnose typos. | ||
1027 | 795 | |||
1028 | 796 | case $ac_dashdash$ac_option in | ||
1029 | 797 | --) | ||
1030 | 798 | ac_dashdash=yes ;; | ||
1031 | 799 | |||
1032 | 800 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | ||
1033 | 801 | ac_prev=bindir ;; | ||
1034 | 802 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||
1035 | 803 | bindir=$ac_optarg ;; | ||
1036 | 804 | |||
1037 | 805 | -build | --build | --buil | --bui | --bu) | ||
1038 | 806 | ac_prev=build_alias ;; | ||
1039 | 807 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | ||
1040 | 808 | build_alias=$ac_optarg ;; | ||
1041 | 809 | |||
1042 | 810 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | ||
1043 | 811 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||
1044 | 812 | ac_prev=cache_file ;; | ||
1045 | 813 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||
1046 | 814 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||
1047 | 815 | cache_file=$ac_optarg ;; | ||
1048 | 816 | |||
1049 | 817 | --config-cache | -C) | ||
1050 | 818 | cache_file=config.cache ;; | ||
1051 | 819 | |||
1052 | 820 | -datadir | --datadir | --datadi | --datad) | ||
1053 | 821 | ac_prev=datadir ;; | ||
1054 | 822 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | ||
1055 | 823 | datadir=$ac_optarg ;; | ||
1056 | 824 | |||
1057 | 825 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | ||
1058 | 826 | | --dataroo | --dataro | --datar) | ||
1059 | 827 | ac_prev=datarootdir ;; | ||
1060 | 828 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | ||
1061 | 829 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | ||
1062 | 830 | datarootdir=$ac_optarg ;; | ||
1063 | 831 | |||
1064 | 832 | -disable-* | --disable-*) | ||
1065 | 833 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | ||
1066 | 834 | # Reject names that are not valid shell variable names. | ||
1067 | 835 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1068 | 836 | as_fn_error $? "invalid feature name: $ac_useropt" | ||
1069 | 837 | ac_useropt_orig=$ac_useropt | ||
1070 | 838 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1071 | 839 | case $ac_user_opts in | ||
1072 | 840 | *" | ||
1073 | 841 | "enable_$ac_useropt" | ||
1074 | 842 | "*) ;; | ||
1075 | 843 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | ||
1076 | 844 | ac_unrecognized_sep=', ';; | ||
1077 | 845 | esac | ||
1078 | 846 | eval enable_$ac_useropt=no ;; | ||
1079 | 847 | |||
1080 | 848 | -docdir | --docdir | --docdi | --doc | --do) | ||
1081 | 849 | ac_prev=docdir ;; | ||
1082 | 850 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | ||
1083 | 851 | docdir=$ac_optarg ;; | ||
1084 | 852 | |||
1085 | 853 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | ||
1086 | 854 | ac_prev=dvidir ;; | ||
1087 | 855 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | ||
1088 | 856 | dvidir=$ac_optarg ;; | ||
1089 | 857 | |||
1090 | 858 | -enable-* | --enable-*) | ||
1091 | 859 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | ||
1092 | 860 | # Reject names that are not valid shell variable names. | ||
1093 | 861 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1094 | 862 | as_fn_error $? "invalid feature name: $ac_useropt" | ||
1095 | 863 | ac_useropt_orig=$ac_useropt | ||
1096 | 864 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1097 | 865 | case $ac_user_opts in | ||
1098 | 866 | *" | ||
1099 | 867 | "enable_$ac_useropt" | ||
1100 | 868 | "*) ;; | ||
1101 | 869 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | ||
1102 | 870 | ac_unrecognized_sep=', ';; | ||
1103 | 871 | esac | ||
1104 | 872 | eval enable_$ac_useropt=\$ac_optarg ;; | ||
1105 | 873 | |||
1106 | 874 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | ||
1107 | 875 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||
1108 | 876 | | --exec | --exe | --ex) | ||
1109 | 877 | ac_prev=exec_prefix ;; | ||
1110 | 878 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||
1111 | 879 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||
1112 | 880 | | --exec=* | --exe=* | --ex=*) | ||
1113 | 881 | exec_prefix=$ac_optarg ;; | ||
1114 | 882 | |||
1115 | 883 | -gas | --gas | --ga | --g) | ||
1116 | 884 | # Obsolete; use --with-gas. | ||
1117 | 885 | with_gas=yes ;; | ||
1118 | 886 | |||
1119 | 887 | -help | --help | --hel | --he | -h) | ||
1120 | 888 | ac_init_help=long ;; | ||
1121 | 889 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | ||
1122 | 890 | ac_init_help=recursive ;; | ||
1123 | 891 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | ||
1124 | 892 | ac_init_help=short ;; | ||
1125 | 893 | |||
1126 | 894 | -host | --host | --hos | --ho) | ||
1127 | 895 | ac_prev=host_alias ;; | ||
1128 | 896 | -host=* | --host=* | --hos=* | --ho=*) | ||
1129 | 897 | host_alias=$ac_optarg ;; | ||
1130 | 898 | |||
1131 | 899 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | ||
1132 | 900 | ac_prev=htmldir ;; | ||
1133 | 901 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | ||
1134 | 902 | | --ht=*) | ||
1135 | 903 | htmldir=$ac_optarg ;; | ||
1136 | 904 | |||
1137 | 905 | -includedir | --includedir | --includedi | --included | --include \ | ||
1138 | 906 | | --includ | --inclu | --incl | --inc) | ||
1139 | 907 | ac_prev=includedir ;; | ||
1140 | 908 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||
1141 | 909 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||
1142 | 910 | includedir=$ac_optarg ;; | ||
1143 | 911 | |||
1144 | 912 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||
1145 | 913 | ac_prev=infodir ;; | ||
1146 | 914 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||
1147 | 915 | infodir=$ac_optarg ;; | ||
1148 | 916 | |||
1149 | 917 | -libdir | --libdir | --libdi | --libd) | ||
1150 | 918 | ac_prev=libdir ;; | ||
1151 | 919 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||
1152 | 920 | libdir=$ac_optarg ;; | ||
1153 | 921 | |||
1154 | 922 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||
1155 | 923 | | --libexe | --libex | --libe) | ||
1156 | 924 | ac_prev=libexecdir ;; | ||
1157 | 925 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||
1158 | 926 | | --libexe=* | --libex=* | --libe=*) | ||
1159 | 927 | libexecdir=$ac_optarg ;; | ||
1160 | 928 | |||
1161 | 929 | -localedir | --localedir | --localedi | --localed | --locale) | ||
1162 | 930 | ac_prev=localedir ;; | ||
1163 | 931 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | ||
1164 | 932 | localedir=$ac_optarg ;; | ||
1165 | 933 | |||
1166 | 934 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | ||
1167 | 935 | | --localstate | --localstat | --localsta | --localst | --locals) | ||
1168 | 936 | ac_prev=localstatedir ;; | ||
1169 | 937 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||
1170 | 938 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | ||
1171 | 939 | localstatedir=$ac_optarg ;; | ||
1172 | 940 | |||
1173 | 941 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||
1174 | 942 | ac_prev=mandir ;; | ||
1175 | 943 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||
1176 | 944 | mandir=$ac_optarg ;; | ||
1177 | 945 | |||
1178 | 946 | -nfp | --nfp | --nf) | ||
1179 | 947 | # Obsolete; use --without-fp. | ||
1180 | 948 | with_fp=no ;; | ||
1181 | 949 | |||
1182 | 950 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
1183 | 951 | | --no-cr | --no-c | -n) | ||
1184 | 952 | no_create=yes ;; | ||
1185 | 953 | |||
1186 | 954 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
1187 | 955 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||
1188 | 956 | no_recursion=yes ;; | ||
1189 | 957 | |||
1190 | 958 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | ||
1191 | 959 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||
1192 | 960 | | --oldin | --oldi | --old | --ol | --o) | ||
1193 | 961 | ac_prev=oldincludedir ;; | ||
1194 | 962 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||
1195 | 963 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||
1196 | 964 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||
1197 | 965 | oldincludedir=$ac_optarg ;; | ||
1198 | 966 | |||
1199 | 967 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | ||
1200 | 968 | ac_prev=prefix ;; | ||
1201 | 969 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||
1202 | 970 | prefix=$ac_optarg ;; | ||
1203 | 971 | |||
1204 | 972 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||
1205 | 973 | | --program-pre | --program-pr | --program-p) | ||
1206 | 974 | ac_prev=program_prefix ;; | ||
1207 | 975 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||
1208 | 976 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||
1209 | 977 | program_prefix=$ac_optarg ;; | ||
1210 | 978 | |||
1211 | 979 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||
1212 | 980 | | --program-suf | --program-su | --program-s) | ||
1213 | 981 | ac_prev=program_suffix ;; | ||
1214 | 982 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||
1215 | 983 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||
1216 | 984 | program_suffix=$ac_optarg ;; | ||
1217 | 985 | |||
1218 | 986 | -program-transform-name | --program-transform-name \ | ||
1219 | 987 | | --program-transform-nam | --program-transform-na \ | ||
1220 | 988 | | --program-transform-n | --program-transform- \ | ||
1221 | 989 | | --program-transform | --program-transfor \ | ||
1222 | 990 | | --program-transfo | --program-transf \ | ||
1223 | 991 | | --program-trans | --program-tran \ | ||
1224 | 992 | | --progr-tra | --program-tr | --program-t) | ||
1225 | 993 | ac_prev=program_transform_name ;; | ||
1226 | 994 | -program-transform-name=* | --program-transform-name=* \ | ||
1227 | 995 | | --program-transform-nam=* | --program-transform-na=* \ | ||
1228 | 996 | | --program-transform-n=* | --program-transform-=* \ | ||
1229 | 997 | | --program-transform=* | --program-transfor=* \ | ||
1230 | 998 | | --program-transfo=* | --program-transf=* \ | ||
1231 | 999 | | --program-trans=* | --program-tran=* \ | ||
1232 | 1000 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||
1233 | 1001 | program_transform_name=$ac_optarg ;; | ||
1234 | 1002 | |||
1235 | 1003 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | ||
1236 | 1004 | ac_prev=pdfdir ;; | ||
1237 | 1005 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | ||
1238 | 1006 | pdfdir=$ac_optarg ;; | ||
1239 | 1007 | |||
1240 | 1008 | -psdir | --psdir | --psdi | --psd | --ps) | ||
1241 | 1009 | ac_prev=psdir ;; | ||
1242 | 1010 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | ||
1243 | 1011 | psdir=$ac_optarg ;; | ||
1244 | 1012 | |||
1245 | 1013 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
1246 | 1014 | | -silent | --silent | --silen | --sile | --sil) | ||
1247 | 1015 | silent=yes ;; | ||
1248 | 1016 | |||
1249 | 1017 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | ||
1250 | 1018 | ac_prev=sbindir ;; | ||
1251 | 1019 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||
1252 | 1020 | | --sbi=* | --sb=*) | ||
1253 | 1021 | sbindir=$ac_optarg ;; | ||
1254 | 1022 | |||
1255 | 1023 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||
1256 | 1024 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||
1257 | 1025 | | --sharedst | --shareds | --shared | --share | --shar \ | ||
1258 | 1026 | | --sha | --sh) | ||
1259 | 1027 | ac_prev=sharedstatedir ;; | ||
1260 | 1028 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||
1261 | 1029 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||
1262 | 1030 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||
1263 | 1031 | | --sha=* | --sh=*) | ||
1264 | 1032 | sharedstatedir=$ac_optarg ;; | ||
1265 | 1033 | |||
1266 | 1034 | -site | --site | --sit) | ||
1267 | 1035 | ac_prev=site ;; | ||
1268 | 1036 | -site=* | --site=* | --sit=*) | ||
1269 | 1037 | site=$ac_optarg ;; | ||
1270 | 1038 | |||
1271 | 1039 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | ||
1272 | 1040 | ac_prev=srcdir ;; | ||
1273 | 1041 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||
1274 | 1042 | srcdir=$ac_optarg ;; | ||
1275 | 1043 | |||
1276 | 1044 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | ||
1277 | 1045 | | --syscon | --sysco | --sysc | --sys | --sy) | ||
1278 | 1046 | ac_prev=sysconfdir ;; | ||
1279 | 1047 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||
1280 | 1048 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||
1281 | 1049 | sysconfdir=$ac_optarg ;; | ||
1282 | 1050 | |||
1283 | 1051 | -target | --target | --targe | --targ | --tar | --ta | --t) | ||
1284 | 1052 | ac_prev=target_alias ;; | ||
1285 | 1053 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | ||
1286 | 1054 | target_alias=$ac_optarg ;; | ||
1287 | 1055 | |||
1288 | 1056 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||
1289 | 1057 | verbose=yes ;; | ||
1290 | 1058 | |||
1291 | 1059 | -version | --version | --versio | --versi | --vers | -V) | ||
1292 | 1060 | ac_init_version=: ;; | ||
1293 | 1061 | |||
1294 | 1062 | -with-* | --with-*) | ||
1295 | 1063 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | ||
1296 | 1064 | # Reject names that are not valid shell variable names. | ||
1297 | 1065 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1298 | 1066 | as_fn_error $? "invalid package name: $ac_useropt" | ||
1299 | 1067 | ac_useropt_orig=$ac_useropt | ||
1300 | 1068 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1301 | 1069 | case $ac_user_opts in | ||
1302 | 1070 | *" | ||
1303 | 1071 | "with_$ac_useropt" | ||
1304 | 1072 | "*) ;; | ||
1305 | 1073 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | ||
1306 | 1074 | ac_unrecognized_sep=', ';; | ||
1307 | 1075 | esac | ||
1308 | 1076 | eval with_$ac_useropt=\$ac_optarg ;; | ||
1309 | 1077 | |||
1310 | 1078 | -without-* | --without-*) | ||
1311 | 1079 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | ||
1312 | 1080 | # Reject names that are not valid shell variable names. | ||
1313 | 1081 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1314 | 1082 | as_fn_error $? "invalid package name: $ac_useropt" | ||
1315 | 1083 | ac_useropt_orig=$ac_useropt | ||
1316 | 1084 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1317 | 1085 | case $ac_user_opts in | ||
1318 | 1086 | *" | ||
1319 | 1087 | "with_$ac_useropt" | ||
1320 | 1088 | "*) ;; | ||
1321 | 1089 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | ||
1322 | 1090 | ac_unrecognized_sep=', ';; | ||
1323 | 1091 | esac | ||
1324 | 1092 | eval with_$ac_useropt=no ;; | ||
1325 | 1093 | |||
1326 | 1094 | --x) | ||
1327 | 1095 | # Obsolete; use --with-x. | ||
1328 | 1096 | with_x=yes ;; | ||
1329 | 1097 | |||
1330 | 1098 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||
1331 | 1099 | | --x-incl | --x-inc | --x-in | --x-i) | ||
1332 | 1100 | ac_prev=x_includes ;; | ||
1333 | 1101 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||
1334 | 1102 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||
1335 | 1103 | x_includes=$ac_optarg ;; | ||
1336 | 1104 | |||
1337 | 1105 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||
1338 | 1106 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||
1339 | 1107 | ac_prev=x_libraries ;; | ||
1340 | 1108 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||
1341 | 1109 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||
1342 | 1110 | x_libraries=$ac_optarg ;; | ||
1343 | 1111 | |||
1344 | 1112 | -*) as_fn_error $? "unrecognized option: \`$ac_option' | ||
1345 | 1113 | Try \`$0 --help' for more information" | ||
1346 | 1114 | ;; | ||
1347 | 1115 | |||
1348 | 1116 | *=*) | ||
1349 | 1117 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | ||
1350 | 1118 | # Reject names that are not valid shell variable names. | ||
1351 | 1119 | case $ac_envvar in #( | ||
1352 | 1120 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | ||
1353 | 1121 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | ||
1354 | 1122 | esac | ||
1355 | 1123 | eval $ac_envvar=\$ac_optarg | ||
1356 | 1124 | export $ac_envvar ;; | ||
1357 | 1125 | |||
1358 | 1126 | *) | ||
1359 | 1127 | # FIXME: should be removed in autoconf 3.0. | ||
1360 | 1128 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | ||
1361 | 1129 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
1362 | 1130 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | ||
1363 | 1131 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | ||
1364 | 1132 | ;; | ||
1365 | 1133 | |||
1366 | 1134 | esac | ||
1367 | 1135 | done | ||
1368 | 1136 | |||
1369 | 1137 | if test -n "$ac_prev"; then | ||
1370 | 1138 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | ||
1371 | 1139 | as_fn_error $? "missing argument to $ac_option" | ||
1372 | 1140 | fi | ||
1373 | 1141 | |||
1374 | 1142 | if test -n "$ac_unrecognized_opts"; then | ||
1375 | 1143 | case $enable_option_checking in | ||
1376 | 1144 | no) ;; | ||
1377 | 1145 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | ||
1378 | 1146 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | ||
1379 | 1147 | esac | ||
1380 | 1148 | fi | ||
1381 | 1149 | |||
1382 | 1150 | # Check all directory arguments for consistency. | ||
1383 | 1151 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | ||
1384 | 1152 | datadir sysconfdir sharedstatedir localstatedir includedir \ | ||
1385 | 1153 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | ||
1386 | 1154 | libdir localedir mandir | ||
1387 | 1155 | do | ||
1388 | 1156 | eval ac_val=\$$ac_var | ||
1389 | 1157 | # Remove trailing slashes. | ||
1390 | 1158 | case $ac_val in | ||
1391 | 1159 | */ ) | ||
1392 | 1160 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | ||
1393 | 1161 | eval $ac_var=\$ac_val;; | ||
1394 | 1162 | esac | ||
1395 | 1163 | # Be sure to have absolute directory names. | ||
1396 | 1164 | case $ac_val in | ||
1397 | 1165 | [\\/$]* | ?:[\\/]* ) continue;; | ||
1398 | 1166 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | ||
1399 | 1167 | esac | ||
1400 | 1168 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | ||
1401 | 1169 | done | ||
1402 | 1170 | |||
1403 | 1171 | # There might be people who depend on the old broken behavior: `$host' | ||
1404 | 1172 | # used to hold the argument of --host etc. | ||
1405 | 1173 | # FIXME: To remove some day. | ||
1406 | 1174 | build=$build_alias | ||
1407 | 1175 | host=$host_alias | ||
1408 | 1176 | target=$target_alias | ||
1409 | 1177 | |||
1410 | 1178 | # FIXME: To remove some day. | ||
1411 | 1179 | if test "x$host_alias" != x; then | ||
1412 | 1180 | if test "x$build_alias" = x; then | ||
1413 | 1181 | cross_compiling=maybe | ||
1414 | 1182 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. | ||
1415 | 1183 | If a cross compiler is detected then cross compile mode will be used" >&2 | ||
1416 | 1184 | elif test "x$build_alias" != "x$host_alias"; then | ||
1417 | 1185 | cross_compiling=yes | ||
1418 | 1186 | fi | ||
1419 | 1187 | fi | ||
1420 | 1188 | |||
1421 | 1189 | ac_tool_prefix= | ||
1422 | 1190 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | ||
1423 | 1191 | |||
1424 | 1192 | test "$silent" = yes && exec 6>/dev/null | ||
1425 | 1193 | |||
1426 | 1194 | |||
1427 | 1195 | ac_pwd=`pwd` && test -n "$ac_pwd" && | ||
1428 | 1196 | ac_ls_di=`ls -di .` && | ||
1429 | 1197 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | ||
1430 | 1198 | as_fn_error $? "working directory cannot be determined" | ||
1431 | 1199 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | ||
1432 | 1200 | as_fn_error $? "pwd does not report name of working directory" | ||
1433 | 1201 | |||
1434 | 1202 | |||
1435 | 1203 | # Find the source files, if location was not specified. | ||
1436 | 1204 | if test -z "$srcdir"; then | ||
1437 | 1205 | ac_srcdir_defaulted=yes | ||
1438 | 1206 | # Try the directory containing this script, then the parent directory. | ||
1439 | 1207 | ac_confdir=`$as_dirname -- "$as_myself" || | ||
1440 | 1208 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
1441 | 1209 | X"$as_myself" : 'X\(//\)[^/]' \| \ | ||
1442 | 1210 | X"$as_myself" : 'X\(//\)$' \| \ | ||
1443 | 1211 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | ||
1444 | 1212 | $as_echo X"$as_myself" | | ||
1445 | 1213 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
1446 | 1214 | s//\1/ | ||
1447 | 1215 | q | ||
1448 | 1216 | } | ||
1449 | 1217 | /^X\(\/\/\)[^/].*/{ | ||
1450 | 1218 | s//\1/ | ||
1451 | 1219 | q | ||
1452 | 1220 | } | ||
1453 | 1221 | /^X\(\/\/\)$/{ | ||
1454 | 1222 | s//\1/ | ||
1455 | 1223 | q | ||
1456 | 1224 | } | ||
1457 | 1225 | /^X\(\/\).*/{ | ||
1458 | 1226 | s//\1/ | ||
1459 | 1227 | q | ||
1460 | 1228 | } | ||
1461 | 1229 | s/.*/./; q'` | ||
1462 | 1230 | srcdir=$ac_confdir | ||
1463 | 1231 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1464 | 1232 | srcdir=.. | ||
1465 | 1233 | fi | ||
1466 | 1234 | else | ||
1467 | 1235 | ac_srcdir_defaulted=no | ||
1468 | 1236 | fi | ||
1469 | 1237 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1470 | 1238 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | ||
1471 | 1239 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | ||
1472 | 1240 | fi | ||
1473 | 1241 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | ||
1474 | 1242 | ac_abs_confdir=`( | ||
1475 | 1243 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | ||
1476 | 1244 | pwd)` | ||
1477 | 1245 | # When building in place, set srcdir=. | ||
1478 | 1246 | if test "$ac_abs_confdir" = "$ac_pwd"; then | ||
1479 | 1247 | srcdir=. | ||
1480 | 1248 | fi | ||
1481 | 1249 | # Remove unnecessary trailing slashes from srcdir. | ||
1482 | 1250 | # Double slashes in file names in object file debugging info | ||
1483 | 1251 | # mess up M-x gdb in Emacs. | ||
1484 | 1252 | case $srcdir in | ||
1485 | 1253 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | ||
1486 | 1254 | esac | ||
1487 | 1255 | for ac_var in $ac_precious_vars; do | ||
1488 | 1256 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | ||
1489 | 1257 | eval ac_env_${ac_var}_value=\$${ac_var} | ||
1490 | 1258 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | ||
1491 | 1259 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | ||
1492 | 1260 | done | ||
1493 | 1261 | |||
1494 | 1262 | # | ||
1495 | 1263 | # Report the --help message. | ||
1496 | 1264 | # | ||
1497 | 1265 | if test "$ac_init_help" = "long"; then | ||
1498 | 1266 | # Omit some internal or obsolete options to make the list less imposing. | ||
1499 | 1267 | # This message is too long to be a string in the A/UX 3.1 sh. | ||
1500 | 1268 | cat <<_ACEOF | ||
1501 | 1269 | \`configure' configures lxc 0.7.5 to adapt to many kinds of systems. | ||
1502 | 1270 | |||
1503 | 1271 | Usage: $0 [OPTION]... [VAR=VALUE]... | ||
1504 | 1272 | |||
1505 | 1273 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | ||
1506 | 1274 | VAR=VALUE. See below for descriptions of some of the useful variables. | ||
1507 | 1275 | |||
1508 | 1276 | Defaults for the options are specified in brackets. | ||
1509 | 1277 | |||
1510 | 1278 | Configuration: | ||
1511 | 1279 | -h, --help display this help and exit | ||
1512 | 1280 | --help=short display options specific to this package | ||
1513 | 1281 | --help=recursive display the short help of all the included packages | ||
1514 | 1282 | -V, --version display version information and exit | ||
1515 | 1283 | -q, --quiet, --silent do not print \`checking ...' messages | ||
1516 | 1284 | --cache-file=FILE cache test results in FILE [disabled] | ||
1517 | 1285 | -C, --config-cache alias for \`--cache-file=config.cache' | ||
1518 | 1286 | -n, --no-create do not create output files | ||
1519 | 1287 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | ||
1520 | 1288 | |||
1521 | 1289 | Installation directories: | ||
1522 | 1290 | --prefix=PREFIX install architecture-independent files in PREFIX | ||
1523 | 1291 | [$ac_default_prefix] | ||
1524 | 1292 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | ||
1525 | 1293 | [PREFIX] | ||
1526 | 1294 | |||
1527 | 1295 | By default, \`make install' will install all the files in | ||
1528 | 1296 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | ||
1529 | 1297 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | ||
1530 | 1298 | for instance \`--prefix=\$HOME'. | ||
1531 | 1299 | |||
1532 | 1300 | For better control, use the options below. | ||
1533 | 1301 | |||
1534 | 1302 | Fine tuning of the installation directories: | ||
1535 | 1303 | --bindir=DIR user executables [EPREFIX/bin] | ||
1536 | 1304 | --sbindir=DIR system admin executables [EPREFIX/sbin] | ||
1537 | 1305 | --libexecdir=DIR program executables [EPREFIX/libexec] | ||
1538 | 1306 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | ||
1539 | 1307 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | ||
1540 | 1308 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | ||
1541 | 1309 | --libdir=DIR object code libraries [EPREFIX/lib] | ||
1542 | 1310 | --includedir=DIR C header files [PREFIX/include] | ||
1543 | 1311 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | ||
1544 | 1312 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | ||
1545 | 1313 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | ||
1546 | 1314 | --infodir=DIR info documentation [DATAROOTDIR/info] | ||
1547 | 1315 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | ||
1548 | 1316 | --mandir=DIR man documentation [DATAROOTDIR/man] | ||
1549 | 1317 | --docdir=DIR documentation root [DATAROOTDIR/doc/lxc] | ||
1550 | 1318 | --htmldir=DIR html documentation [DOCDIR] | ||
1551 | 1319 | --dvidir=DIR dvi documentation [DOCDIR] | ||
1552 | 1320 | --pdfdir=DIR pdf documentation [DOCDIR] | ||
1553 | 1321 | --psdir=DIR ps documentation [DOCDIR] | ||
1554 | 1322 | _ACEOF | ||
1555 | 1323 | |||
1556 | 1324 | cat <<\_ACEOF | ||
1557 | 1325 | |||
1558 | 1326 | Program names: | ||
1559 | 1327 | --program-prefix=PREFIX prepend PREFIX to installed program names | ||
1560 | 1328 | --program-suffix=SUFFIX append SUFFIX to installed program names | ||
1561 | 1329 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | ||
1562 | 1330 | |||
1563 | 1331 | System types: | ||
1564 | 1332 | --build=BUILD configure for building on BUILD [guessed] | ||
1565 | 1333 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | ||
1566 | 1334 | _ACEOF | ||
1567 | 1335 | fi | ||
1568 | 1336 | |||
1569 | 1337 | if test -n "$ac_init_help"; then | ||
1570 | 1338 | case $ac_init_help in | ||
1571 | 1339 | short | recursive ) echo "Configuration of lxc 0.7.5:";; | ||
1572 | 1340 | esac | ||
1573 | 1341 | cat <<\_ACEOF | ||
1574 | 1342 | |||
1575 | 1343 | Optional Features: | ||
1576 | 1344 | --disable-option-checking ignore unrecognized --enable/--with options | ||
1577 | 1345 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | ||
1578 | 1346 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||
1579 | 1347 | --disable-dependency-tracking speeds up one-time build | ||
1580 | 1348 | --enable-dependency-tracking do not reject slow dependency extractors | ||
1581 | 1349 | --enable-doc make mans (require docbook2man installed) | ||
1582 | 1350 | [default=auto] | ||
1583 | 1351 | --disable-examples do not install configuration examples | ||
1584 | 1352 | |||
1585 | 1353 | Optional Packages: | ||
1586 | 1354 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
1587 | 1355 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||
1588 | 1356 | --with-config-path=dir lxc configuration repository path | ||
1589 | 1357 | --with-rootfs-path=dir lxc rootfs mount point | ||
1590 | 1358 | --with-linuxdir=DIR specify path to Linux source directory | ||
1591 | 1359 | |||
1592 | 1360 | Some influential environment variables: | ||
1593 | 1361 | CC C compiler command | ||
1594 | 1362 | CFLAGS C compiler flags | ||
1595 | 1363 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||
1596 | 1364 | nonstandard directory <lib dir> | ||
1597 | 1365 | LIBS libraries to pass to the linker, e.g. -l<library> | ||
1598 | 1366 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | ||
1599 | 1367 | you have headers in a nonstandard directory <include dir> | ||
1600 | 1368 | CPP C preprocessor | ||
1601 | 1369 | |||
1602 | 1370 | Use these variables to override the choices made by `configure' or to help | ||
1603 | 1371 | it to find libraries and programs with nonstandard names/locations. | ||
1604 | 1372 | |||
1605 | 1373 | Report bugs to the package provider. | ||
1606 | 1374 | _ACEOF | ||
1607 | 1375 | ac_status=$? | ||
1608 | 1376 | fi | ||
1609 | 1377 | |||
1610 | 1378 | if test "$ac_init_help" = "recursive"; then | ||
1611 | 1379 | # If there are subdirs, report their specific --help. | ||
1612 | 1380 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | ||
1613 | 1381 | test -d "$ac_dir" || | ||
1614 | 1382 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | ||
1615 | 1383 | continue | ||
1616 | 1384 | ac_builddir=. | ||
1617 | 1385 | |||
1618 | 1386 | case "$ac_dir" in | ||
1619 | 1387 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1620 | 1388 | *) | ||
1621 | 1389 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | ||
1622 | 1390 | # A ".." for each directory in $ac_dir_suffix. | ||
1623 | 1391 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | ||
1624 | 1392 | case $ac_top_builddir_sub in | ||
1625 | 1393 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1626 | 1394 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
1627 | 1395 | esac ;; | ||
1628 | 1396 | esac | ||
1629 | 1397 | ac_abs_top_builddir=$ac_pwd | ||
1630 | 1398 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
1631 | 1399 | # for backward compatibility: | ||
1632 | 1400 | ac_top_builddir=$ac_top_build_prefix | ||
1633 | 1401 | |||
1634 | 1402 | case $srcdir in | ||
1635 | 1403 | .) # We are building in place. | ||
1636 | 1404 | ac_srcdir=. | ||
1637 | 1405 | ac_top_srcdir=$ac_top_builddir_sub | ||
1638 | 1406 | ac_abs_top_srcdir=$ac_pwd ;; | ||
1639 | 1407 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
1640 | 1408 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
1641 | 1409 | ac_top_srcdir=$srcdir | ||
1642 | 1410 | ac_abs_top_srcdir=$srcdir ;; | ||
1643 | 1411 | *) # Relative name. | ||
1644 | 1412 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
1645 | 1413 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
1646 | 1414 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
1647 | 1415 | esac | ||
1648 | 1416 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
1649 | 1417 | |||
1650 | 1418 | cd "$ac_dir" || { ac_status=$?; continue; } | ||
1651 | 1419 | # Check for guested configure. | ||
1652 | 1420 | if test -f "$ac_srcdir/configure.gnu"; then | ||
1653 | 1421 | echo && | ||
1654 | 1422 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | ||
1655 | 1423 | elif test -f "$ac_srcdir/configure"; then | ||
1656 | 1424 | echo && | ||
1657 | 1425 | $SHELL "$ac_srcdir/configure" --help=recursive | ||
1658 | 1426 | else | ||
1659 | 1427 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | ||
1660 | 1428 | fi || ac_status=$? | ||
1661 | 1429 | cd "$ac_pwd" || { ac_status=$?; break; } | ||
1662 | 1430 | done | ||
1663 | 1431 | fi | ||
1664 | 1432 | |||
1665 | 1433 | test -n "$ac_init_help" && exit $ac_status | ||
1666 | 1434 | if $ac_init_version; then | ||
1667 | 1435 | cat <<\_ACEOF | ||
1668 | 1436 | lxc configure 0.7.5 | ||
1669 | 1437 | generated by GNU Autoconf 2.67 | ||
1670 | 1438 | |||
1671 | 1439 | Copyright (C) 2010 Free Software Foundation, Inc. | ||
1672 | 1440 | This configure script is free software; the Free Software Foundation | ||
1673 | 1441 | gives unlimited permission to copy, distribute and modify it. | ||
1674 | 1442 | _ACEOF | ||
1675 | 1443 | exit | ||
1676 | 1444 | fi | ||
1677 | 1445 | |||
1678 | 1446 | ## ------------------------ ## | ||
1679 | 1447 | ## Autoconf initialization. ## | ||
1680 | 1448 | ## ------------------------ ## | ||
1681 | 1449 | |||
1682 | 1450 | # ac_fn_c_try_compile LINENO | ||
1683 | 1451 | # -------------------------- | ||
1684 | 1452 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | ||
1685 | 1453 | ac_fn_c_try_compile () | ||
1686 | 1454 | { | ||
1687 | 1455 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1688 | 1456 | rm -f conftest.$ac_objext | ||
1689 | 1457 | if { { ac_try="$ac_compile" | ||
1690 | 1458 | case "(($ac_try" in | ||
1691 | 1459 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1692 | 1460 | *) ac_try_echo=$ac_try;; | ||
1693 | 1461 | esac | ||
1694 | 1462 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1695 | 1463 | $as_echo "$ac_try_echo"; } >&5 | ||
1696 | 1464 | (eval "$ac_compile") 2>conftest.err | ||
1697 | 1465 | ac_status=$? | ||
1698 | 1466 | if test -s conftest.err; then | ||
1699 | 1467 | grep -v '^ *+' conftest.err >conftest.er1 | ||
1700 | 1468 | cat conftest.er1 >&5 | ||
1701 | 1469 | mv -f conftest.er1 conftest.err | ||
1702 | 1470 | fi | ||
1703 | 1471 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1704 | 1472 | test $ac_status = 0; } && { | ||
1705 | 1473 | test -z "$ac_c_werror_flag" || | ||
1706 | 1474 | test ! -s conftest.err | ||
1707 | 1475 | } && test -s conftest.$ac_objext; then : | ||
1708 | 1476 | ac_retval=0 | ||
1709 | 1477 | else | ||
1710 | 1478 | $as_echo "$as_me: failed program was:" >&5 | ||
1711 | 1479 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1712 | 1480 | |||
1713 | 1481 | ac_retval=1 | ||
1714 | 1482 | fi | ||
1715 | 1483 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
1716 | 1484 | as_fn_set_status $ac_retval | ||
1717 | 1485 | |||
1718 | 1486 | } # ac_fn_c_try_compile | ||
1719 | 1487 | |||
1720 | 1488 | # ac_fn_c_try_cpp LINENO | ||
1721 | 1489 | # ---------------------- | ||
1722 | 1490 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | ||
1723 | 1491 | ac_fn_c_try_cpp () | ||
1724 | 1492 | { | ||
1725 | 1493 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1726 | 1494 | if { { ac_try="$ac_cpp conftest.$ac_ext" | ||
1727 | 1495 | case "(($ac_try" in | ||
1728 | 1496 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1729 | 1497 | *) ac_try_echo=$ac_try;; | ||
1730 | 1498 | esac | ||
1731 | 1499 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1732 | 1500 | $as_echo "$ac_try_echo"; } >&5 | ||
1733 | 1501 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | ||
1734 | 1502 | ac_status=$? | ||
1735 | 1503 | if test -s conftest.err; then | ||
1736 | 1504 | grep -v '^ *+' conftest.err >conftest.er1 | ||
1737 | 1505 | cat conftest.er1 >&5 | ||
1738 | 1506 | mv -f conftest.er1 conftest.err | ||
1739 | 1507 | fi | ||
1740 | 1508 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1741 | 1509 | test $ac_status = 0; } > conftest.i && { | ||
1742 | 1510 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
1743 | 1511 | test ! -s conftest.err | ||
1744 | 1512 | }; then : | ||
1745 | 1513 | ac_retval=0 | ||
1746 | 1514 | else | ||
1747 | 1515 | $as_echo "$as_me: failed program was:" >&5 | ||
1748 | 1516 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1749 | 1517 | |||
1750 | 1518 | ac_retval=1 | ||
1751 | 1519 | fi | ||
1752 | 1520 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
1753 | 1521 | as_fn_set_status $ac_retval | ||
1754 | 1522 | |||
1755 | 1523 | } # ac_fn_c_try_cpp | ||
1756 | 1524 | |||
1757 | 1525 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | ||
1758 | 1526 | # ------------------------------------------------------- | ||
1759 | 1527 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | ||
1760 | 1528 | # the include files in INCLUDES and setting the cache variable VAR | ||
1761 | 1529 | # accordingly. | ||
1762 | 1530 | ac_fn_c_check_header_mongrel () | ||
1763 | 1531 | { | ||
1764 | 1532 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1765 | 1533 | if eval "test \"\${$3+set}\"" = set; then : | ||
1766 | 1534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
1767 | 1535 | $as_echo_n "checking for $2... " >&6; } | ||
1768 | 1536 | if eval "test \"\${$3+set}\"" = set; then : | ||
1769 | 1537 | $as_echo_n "(cached) " >&6 | ||
1770 | 1538 | fi | ||
1771 | 1539 | eval ac_res=\$$3 | ||
1772 | 1540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
1773 | 1541 | $as_echo "$ac_res" >&6; } | ||
1774 | 1542 | else | ||
1775 | 1543 | # Is the header compilable? | ||
1776 | 1544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | ||
1777 | 1545 | $as_echo_n "checking $2 usability... " >&6; } | ||
1778 | 1546 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1779 | 1547 | /* end confdefs.h. */ | ||
1780 | 1548 | $4 | ||
1781 | 1549 | #include <$2> | ||
1782 | 1550 | _ACEOF | ||
1783 | 1551 | if ac_fn_c_try_compile "$LINENO"; then : | ||
1784 | 1552 | ac_header_compiler=yes | ||
1785 | 1553 | else | ||
1786 | 1554 | ac_header_compiler=no | ||
1787 | 1555 | fi | ||
1788 | 1556 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
1789 | 1557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | ||
1790 | 1558 | $as_echo "$ac_header_compiler" >&6; } | ||
1791 | 1559 | |||
1792 | 1560 | # Is the header present? | ||
1793 | 1561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | ||
1794 | 1562 | $as_echo_n "checking $2 presence... " >&6; } | ||
1795 | 1563 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1796 | 1564 | /* end confdefs.h. */ | ||
1797 | 1565 | #include <$2> | ||
1798 | 1566 | _ACEOF | ||
1799 | 1567 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
1800 | 1568 | ac_header_preproc=yes | ||
1801 | 1569 | else | ||
1802 | 1570 | ac_header_preproc=no | ||
1803 | 1571 | fi | ||
1804 | 1572 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
1805 | 1573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | ||
1806 | 1574 | $as_echo "$ac_header_preproc" >&6; } | ||
1807 | 1575 | |||
1808 | 1576 | # So? What about this header? | ||
1809 | 1577 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | ||
1810 | 1578 | yes:no: ) | ||
1811 | 1579 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
1812 | 1580 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
1813 | 1581 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | ||
1814 | 1582 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | ||
1815 | 1583 | ;; | ||
1816 | 1584 | no:yes:* ) | ||
1817 | 1585 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | ||
1818 | 1586 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | ||
1819 | 1587 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | ||
1820 | 1588 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | ||
1821 | 1589 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | ||
1822 | 1590 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | ||
1823 | 1591 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | ||
1824 | 1592 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | ||
1825 | 1593 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | ||
1826 | 1594 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | ||
1827 | 1595 | ;; | ||
1828 | 1596 | esac | ||
1829 | 1597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
1830 | 1598 | $as_echo_n "checking for $2... " >&6; } | ||
1831 | 1599 | if eval "test \"\${$3+set}\"" = set; then : | ||
1832 | 1600 | $as_echo_n "(cached) " >&6 | ||
1833 | 1601 | else | ||
1834 | 1602 | eval "$3=\$ac_header_compiler" | ||
1835 | 1603 | fi | ||
1836 | 1604 | eval ac_res=\$$3 | ||
1837 | 1605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
1838 | 1606 | $as_echo "$ac_res" >&6; } | ||
1839 | 1607 | fi | ||
1840 | 1608 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
1841 | 1609 | |||
1842 | 1610 | } # ac_fn_c_check_header_mongrel | ||
1843 | 1611 | |||
1844 | 1612 | # ac_fn_c_try_run LINENO | ||
1845 | 1613 | # ---------------------- | ||
1846 | 1614 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | ||
1847 | 1615 | # that executables *can* be run. | ||
1848 | 1616 | ac_fn_c_try_run () | ||
1849 | 1617 | { | ||
1850 | 1618 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1851 | 1619 | if { { ac_try="$ac_link" | ||
1852 | 1620 | case "(($ac_try" in | ||
1853 | 1621 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1854 | 1622 | *) ac_try_echo=$ac_try;; | ||
1855 | 1623 | esac | ||
1856 | 1624 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1857 | 1625 | $as_echo "$ac_try_echo"; } >&5 | ||
1858 | 1626 | (eval "$ac_link") 2>&5 | ||
1859 | 1627 | ac_status=$? | ||
1860 | 1628 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1861 | 1629 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | ||
1862 | 1630 | { { case "(($ac_try" in | ||
1863 | 1631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1864 | 1632 | *) ac_try_echo=$ac_try;; | ||
1865 | 1633 | esac | ||
1866 | 1634 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1867 | 1635 | $as_echo "$ac_try_echo"; } >&5 | ||
1868 | 1636 | (eval "$ac_try") 2>&5 | ||
1869 | 1637 | ac_status=$? | ||
1870 | 1638 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1871 | 1639 | test $ac_status = 0; }; }; then : | ||
1872 | 1640 | ac_retval=0 | ||
1873 | 1641 | else | ||
1874 | 1642 | $as_echo "$as_me: program exited with status $ac_status" >&5 | ||
1875 | 1643 | $as_echo "$as_me: failed program was:" >&5 | ||
1876 | 1644 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1877 | 1645 | |||
1878 | 1646 | ac_retval=$ac_status | ||
1879 | 1647 | fi | ||
1880 | 1648 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
1881 | 1649 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
1882 | 1650 | as_fn_set_status $ac_retval | ||
1883 | 1651 | |||
1884 | 1652 | } # ac_fn_c_try_run | ||
1885 | 1653 | |||
1886 | 1654 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | ||
1887 | 1655 | # ------------------------------------------------------- | ||
1888 | 1656 | # Tests whether HEADER exists and can be compiled using the include files in | ||
1889 | 1657 | # INCLUDES, setting the cache variable VAR accordingly. | ||
1890 | 1658 | ac_fn_c_check_header_compile () | ||
1891 | 1659 | { | ||
1892 | 1660 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1893 | 1661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
1894 | 1662 | $as_echo_n "checking for $2... " >&6; } | ||
1895 | 1663 | if eval "test \"\${$3+set}\"" = set; then : | ||
1896 | 1664 | $as_echo_n "(cached) " >&6 | ||
1897 | 1665 | else | ||
1898 | 1666 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1899 | 1667 | /* end confdefs.h. */ | ||
1900 | 1668 | $4 | ||
1901 | 1669 | #include <$2> | ||
1902 | 1670 | _ACEOF | ||
1903 | 1671 | if ac_fn_c_try_compile "$LINENO"; then : | ||
1904 | 1672 | eval "$3=yes" | ||
1905 | 1673 | else | ||
1906 | 1674 | eval "$3=no" | ||
1907 | 1675 | fi | ||
1908 | 1676 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
1909 | 1677 | fi | ||
1910 | 1678 | eval ac_res=\$$3 | ||
1911 | 1679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
1912 | 1680 | $as_echo "$ac_res" >&6; } | ||
1913 | 1681 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
1914 | 1682 | |||
1915 | 1683 | } # ac_fn_c_check_header_compile | ||
1916 | 1684 | |||
1917 | 1685 | # ac_fn_c_try_link LINENO | ||
1918 | 1686 | # ----------------------- | ||
1919 | 1687 | # Try to link conftest.$ac_ext, and return whether this succeeded. | ||
1920 | 1688 | ac_fn_c_try_link () | ||
1921 | 1689 | { | ||
1922 | 1690 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1923 | 1691 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
1924 | 1692 | if { { ac_try="$ac_link" | ||
1925 | 1693 | case "(($ac_try" in | ||
1926 | 1694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1927 | 1695 | *) ac_try_echo=$ac_try;; | ||
1928 | 1696 | esac | ||
1929 | 1697 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1930 | 1698 | $as_echo "$ac_try_echo"; } >&5 | ||
1931 | 1699 | (eval "$ac_link") 2>conftest.err | ||
1932 | 1700 | ac_status=$? | ||
1933 | 1701 | if test -s conftest.err; then | ||
1934 | 1702 | grep -v '^ *+' conftest.err >conftest.er1 | ||
1935 | 1703 | cat conftest.er1 >&5 | ||
1936 | 1704 | mv -f conftest.er1 conftest.err | ||
1937 | 1705 | fi | ||
1938 | 1706 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1939 | 1707 | test $ac_status = 0; } && { | ||
1940 | 1708 | test -z "$ac_c_werror_flag" || | ||
1941 | 1709 | test ! -s conftest.err | ||
1942 | 1710 | } && test -s conftest$ac_exeext && { | ||
1943 | 1711 | test "$cross_compiling" = yes || | ||
1944 | 1712 | $as_test_x conftest$ac_exeext | ||
1945 | 1713 | }; then : | ||
1946 | 1714 | ac_retval=0 | ||
1947 | 1715 | else | ||
1948 | 1716 | $as_echo "$as_me: failed program was:" >&5 | ||
1949 | 1717 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1950 | 1718 | |||
1951 | 1719 | ac_retval=1 | ||
1952 | 1720 | fi | ||
1953 | 1721 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | ||
1954 | 1722 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | ||
1955 | 1723 | # interfere with the next link command; also delete a directory that is | ||
1956 | 1724 | # left behind by Apple's compiler. We do this before executing the actions. | ||
1957 | 1725 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
1958 | 1726 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
1959 | 1727 | as_fn_set_status $ac_retval | ||
1960 | 1728 | |||
1961 | 1729 | } # ac_fn_c_try_link | ||
1962 | 1730 | |||
1963 | 1731 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES | ||
1964 | 1732 | # --------------------------------------------- | ||
1965 | 1733 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | ||
1966 | 1734 | # accordingly. | ||
1967 | 1735 | ac_fn_c_check_decl () | ||
1968 | 1736 | { | ||
1969 | 1737 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1970 | 1738 | as_decl_name=`echo $2|sed 's/ *(.*//'` | ||
1971 | 1739 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | ||
1972 | 1740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | ||
1973 | 1741 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | ||
1974 | 1742 | if eval "test \"\${$3+set}\"" = set; then : | ||
1975 | 1743 | $as_echo_n "(cached) " >&6 | ||
1976 | 1744 | else | ||
1977 | 1745 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1978 | 1746 | /* end confdefs.h. */ | ||
1979 | 1747 | $4 | ||
1980 | 1748 | int | ||
1981 | 1749 | main () | ||
1982 | 1750 | { | ||
1983 | 1751 | #ifndef $as_decl_name | ||
1984 | 1752 | #ifdef __cplusplus | ||
1985 | 1753 | (void) $as_decl_use; | ||
1986 | 1754 | #else | ||
1987 | 1755 | (void) $as_decl_name; | ||
1988 | 1756 | #endif | ||
1989 | 1757 | #endif | ||
1990 | 1758 | |||
1991 | 1759 | ; | ||
1992 | 1760 | return 0; | ||
1993 | 1761 | } | ||
1994 | 1762 | _ACEOF | ||
1995 | 1763 | if ac_fn_c_try_compile "$LINENO"; then : | ||
1996 | 1764 | eval "$3=yes" | ||
1997 | 1765 | else | ||
1998 | 1766 | eval "$3=no" | ||
1999 | 1767 | fi | ||
2000 | 1768 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2001 | 1769 | fi | ||
2002 | 1770 | eval ac_res=\$$3 | ||
2003 | 1771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
2004 | 1772 | $as_echo "$ac_res" >&6; } | ||
2005 | 1773 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2006 | 1774 | |||
2007 | 1775 | } # ac_fn_c_check_decl | ||
2008 | 1776 | cat >config.log <<_ACEOF | ||
2009 | 1777 | This file contains any messages produced by compilers while | ||
2010 | 1778 | running configure, to aid debugging if configure makes a mistake. | ||
2011 | 1779 | |||
2012 | 1780 | It was created by lxc $as_me 0.7.5, which was | ||
2013 | 1781 | generated by GNU Autoconf 2.67. Invocation command line was | ||
2014 | 1782 | |||
2015 | 1783 | $ $0 $@ | ||
2016 | 1784 | |||
2017 | 1785 | _ACEOF | ||
2018 | 1786 | exec 5>>config.log | ||
2019 | 1787 | { | ||
2020 | 1788 | cat <<_ASUNAME | ||
2021 | 1789 | ## --------- ## | ||
2022 | 1790 | ## Platform. ## | ||
2023 | 1791 | ## --------- ## | ||
2024 | 1792 | |||
2025 | 1793 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
2026 | 1794 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||
2027 | 1795 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||
2028 | 1796 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||
2029 | 1797 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||
2030 | 1798 | |||
2031 | 1799 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||
2032 | 1800 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||
2033 | 1801 | |||
2034 | 1802 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||
2035 | 1803 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||
2036 | 1804 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||
2037 | 1805 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | ||
2038 | 1806 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | ||
2039 | 1807 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||
2040 | 1808 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||
2041 | 1809 | |||
2042 | 1810 | _ASUNAME | ||
2043 | 1811 | |||
2044 | 1812 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2045 | 1813 | for as_dir in $PATH | ||
2046 | 1814 | do | ||
2047 | 1815 | IFS=$as_save_IFS | ||
2048 | 1816 | test -z "$as_dir" && as_dir=. | ||
2049 | 1817 | $as_echo "PATH: $as_dir" | ||
2050 | 1818 | done | ||
2051 | 1819 | IFS=$as_save_IFS | ||
2052 | 1820 | |||
2053 | 1821 | } >&5 | ||
2054 | 1822 | |||
2055 | 1823 | cat >&5 <<_ACEOF | ||
2056 | 1824 | |||
2057 | 1825 | |||
2058 | 1826 | ## ----------- ## | ||
2059 | 1827 | ## Core tests. ## | ||
2060 | 1828 | ## ----------- ## | ||
2061 | 1829 | |||
2062 | 1830 | _ACEOF | ||
2063 | 1831 | |||
2064 | 1832 | |||
2065 | 1833 | # Keep a trace of the command line. | ||
2066 | 1834 | # Strip out --no-create and --no-recursion so they do not pile up. | ||
2067 | 1835 | # Strip out --silent because we don't want to record it for future runs. | ||
2068 | 1836 | # Also quote any args containing shell meta-characters. | ||
2069 | 1837 | # Make two passes to allow for proper duplicate-argument suppression. | ||
2070 | 1838 | ac_configure_args= | ||
2071 | 1839 | ac_configure_args0= | ||
2072 | 1840 | ac_configure_args1= | ||
2073 | 1841 | ac_must_keep_next=false | ||
2074 | 1842 | for ac_pass in 1 2 | ||
2075 | 1843 | do | ||
2076 | 1844 | for ac_arg | ||
2077 | 1845 | do | ||
2078 | 1846 | case $ac_arg in | ||
2079 | 1847 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | ||
2080 | 1848 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
2081 | 1849 | | -silent | --silent | --silen | --sile | --sil) | ||
2082 | 1850 | continue ;; | ||
2083 | 1851 | *\'*) | ||
2084 | 1852 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
2085 | 1853 | esac | ||
2086 | 1854 | case $ac_pass in | ||
2087 | 1855 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | ||
2088 | 1856 | 2) | ||
2089 | 1857 | as_fn_append ac_configure_args1 " '$ac_arg'" | ||
2090 | 1858 | if test $ac_must_keep_next = true; then | ||
2091 | 1859 | ac_must_keep_next=false # Got value, back to normal. | ||
2092 | 1860 | else | ||
2093 | 1861 | case $ac_arg in | ||
2094 | 1862 | *=* | --config-cache | -C | -disable-* | --disable-* \ | ||
2095 | 1863 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | ||
2096 | 1864 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | ||
2097 | 1865 | | -with-* | --with-* | -without-* | --without-* | --x) | ||
2098 | 1866 | case "$ac_configure_args0 " in | ||
2099 | 1867 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | ||
2100 | 1868 | esac | ||
2101 | 1869 | ;; | ||
2102 | 1870 | -* ) ac_must_keep_next=true ;; | ||
2103 | 1871 | esac | ||
2104 | 1872 | fi | ||
2105 | 1873 | as_fn_append ac_configure_args " '$ac_arg'" | ||
2106 | 1874 | ;; | ||
2107 | 1875 | esac | ||
2108 | 1876 | done | ||
2109 | 1877 | done | ||
2110 | 1878 | { ac_configure_args0=; unset ac_configure_args0;} | ||
2111 | 1879 | { ac_configure_args1=; unset ac_configure_args1;} | ||
2112 | 1880 | |||
2113 | 1881 | # When interrupted or exit'd, cleanup temporary files, and complete | ||
2114 | 1882 | # config.log. We remove comments because anyway the quotes in there | ||
2115 | 1883 | # would cause problems or look ugly. | ||
2116 | 1884 | # WARNING: Use '\'' to represent an apostrophe within the trap. | ||
2117 | 1885 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | ||
2118 | 1886 | trap 'exit_status=$? | ||
2119 | 1887 | # Save into config.log some information that might help in debugging. | ||
2120 | 1888 | { | ||
2121 | 1889 | echo | ||
2122 | 1890 | |||
2123 | 1891 | $as_echo "## ---------------- ## | ||
2124 | 1892 | ## Cache variables. ## | ||
2125 | 1893 | ## ---------------- ##" | ||
2126 | 1894 | echo | ||
2127 | 1895 | # The following way of writing the cache mishandles newlines in values, | ||
2128 | 1896 | ( | ||
2129 | 1897 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | ||
2130 | 1898 | eval ac_val=\$$ac_var | ||
2131 | 1899 | case $ac_val in #( | ||
2132 | 1900 | *${as_nl}*) | ||
2133 | 1901 | case $ac_var in #( | ||
2134 | 1902 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | ||
2135 | 1903 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||
2136 | 1904 | esac | ||
2137 | 1905 | case $ac_var in #( | ||
2138 | 1906 | _ | IFS | as_nl) ;; #( | ||
2139 | 1907 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | ||
2140 | 1908 | *) { eval $ac_var=; unset $ac_var;} ;; | ||
2141 | 1909 | esac ;; | ||
2142 | 1910 | esac | ||
2143 | 1911 | done | ||
2144 | 1912 | (set) 2>&1 | | ||
2145 | 1913 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | ||
2146 | 1914 | *${as_nl}ac_space=\ *) | ||
2147 | 1915 | sed -n \ | ||
2148 | 1916 | "s/'\''/'\''\\\\'\'''\''/g; | ||
2149 | 1917 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | ||
2150 | 1918 | ;; #( | ||
2151 | 1919 | *) | ||
2152 | 1920 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
2153 | 1921 | ;; | ||
2154 | 1922 | esac | | ||
2155 | 1923 | sort | ||
2156 | 1924 | ) | ||
2157 | 1925 | echo | ||
2158 | 1926 | |||
2159 | 1927 | $as_echo "## ----------------- ## | ||
2160 | 1928 | ## Output variables. ## | ||
2161 | 1929 | ## ----------------- ##" | ||
2162 | 1930 | echo | ||
2163 | 1931 | for ac_var in $ac_subst_vars | ||
2164 | 1932 | do | ||
2165 | 1933 | eval ac_val=\$$ac_var | ||
2166 | 1934 | case $ac_val in | ||
2167 | 1935 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
2168 | 1936 | esac | ||
2169 | 1937 | $as_echo "$ac_var='\''$ac_val'\''" | ||
2170 | 1938 | done | sort | ||
2171 | 1939 | echo | ||
2172 | 1940 | |||
2173 | 1941 | if test -n "$ac_subst_files"; then | ||
2174 | 1942 | $as_echo "## ------------------- ## | ||
2175 | 1943 | ## File substitutions. ## | ||
2176 | 1944 | ## ------------------- ##" | ||
2177 | 1945 | echo | ||
2178 | 1946 | for ac_var in $ac_subst_files | ||
2179 | 1947 | do | ||
2180 | 1948 | eval ac_val=\$$ac_var | ||
2181 | 1949 | case $ac_val in | ||
2182 | 1950 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
2183 | 1951 | esac | ||
2184 | 1952 | $as_echo "$ac_var='\''$ac_val'\''" | ||
2185 | 1953 | done | sort | ||
2186 | 1954 | echo | ||
2187 | 1955 | fi | ||
2188 | 1956 | |||
2189 | 1957 | if test -s confdefs.h; then | ||
2190 | 1958 | $as_echo "## ----------- ## | ||
2191 | 1959 | ## confdefs.h. ## | ||
2192 | 1960 | ## ----------- ##" | ||
2193 | 1961 | echo | ||
2194 | 1962 | cat confdefs.h | ||
2195 | 1963 | echo | ||
2196 | 1964 | fi | ||
2197 | 1965 | test "$ac_signal" != 0 && | ||
2198 | 1966 | $as_echo "$as_me: caught signal $ac_signal" | ||
2199 | 1967 | $as_echo "$as_me: exit $exit_status" | ||
2200 | 1968 | } >&5 | ||
2201 | 1969 | rm -f core *.core core.conftest.* && | ||
2202 | 1970 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | ||
2203 | 1971 | exit $exit_status | ||
2204 | 1972 | ' 0 | ||
2205 | 1973 | for ac_signal in 1 2 13 15; do | ||
2206 | 1974 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | ||
2207 | 1975 | done | ||
2208 | 1976 | ac_signal=0 | ||
2209 | 1977 | |||
2210 | 1978 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
2211 | 1979 | rm -f -r conftest* confdefs.h | ||
2212 | 1980 | |||
2213 | 1981 | $as_echo "/* confdefs.h */" > confdefs.h | ||
2214 | 1982 | |||
2215 | 1983 | # Predefined preprocessor variables. | ||
2216 | 1984 | |||
2217 | 1985 | cat >>confdefs.h <<_ACEOF | ||
2218 | 1986 | #define PACKAGE_NAME "$PACKAGE_NAME" | ||
2219 | 1987 | _ACEOF | ||
2220 | 1988 | |||
2221 | 1989 | cat >>confdefs.h <<_ACEOF | ||
2222 | 1990 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | ||
2223 | 1991 | _ACEOF | ||
2224 | 1992 | |||
2225 | 1993 | cat >>confdefs.h <<_ACEOF | ||
2226 | 1994 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | ||
2227 | 1995 | _ACEOF | ||
2228 | 1996 | |||
2229 | 1997 | cat >>confdefs.h <<_ACEOF | ||
2230 | 1998 | #define PACKAGE_STRING "$PACKAGE_STRING" | ||
2231 | 1999 | _ACEOF | ||
2232 | 2000 | |||
2233 | 2001 | cat >>confdefs.h <<_ACEOF | ||
2234 | 2002 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | ||
2235 | 2003 | _ACEOF | ||
2236 | 2004 | |||
2237 | 2005 | cat >>confdefs.h <<_ACEOF | ||
2238 | 2006 | #define PACKAGE_URL "$PACKAGE_URL" | ||
2239 | 2007 | _ACEOF | ||
2240 | 2008 | |||
2241 | 2009 | |||
2242 | 2010 | # Let the site file select an alternate cache file if it wants to. | ||
2243 | 2011 | # Prefer an explicitly selected file to automatically selected ones. | ||
2244 | 2012 | ac_site_file1=NONE | ||
2245 | 2013 | ac_site_file2=NONE | ||
2246 | 2014 | if test -n "$CONFIG_SITE"; then | ||
2247 | 2015 | # We do not want a PATH search for config.site. | ||
2248 | 2016 | case $CONFIG_SITE in #(( | ||
2249 | 2017 | -*) ac_site_file1=./$CONFIG_SITE;; | ||
2250 | 2018 | */*) ac_site_file1=$CONFIG_SITE;; | ||
2251 | 2019 | *) ac_site_file1=./$CONFIG_SITE;; | ||
2252 | 2020 | esac | ||
2253 | 2021 | elif test "x$prefix" != xNONE; then | ||
2254 | 2022 | ac_site_file1=$prefix/share/config.site | ||
2255 | 2023 | ac_site_file2=$prefix/etc/config.site | ||
2256 | 2024 | else | ||
2257 | 2025 | ac_site_file1=$ac_default_prefix/share/config.site | ||
2258 | 2026 | ac_site_file2=$ac_default_prefix/etc/config.site | ||
2259 | 2027 | fi | ||
2260 | 2028 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | ||
2261 | 2029 | do | ||
2262 | 2030 | test "x$ac_site_file" = xNONE && continue | ||
2263 | 2031 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | ||
2264 | 2032 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | ||
2265 | 2033 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | ||
2266 | 2034 | sed 's/^/| /' "$ac_site_file" >&5 | ||
2267 | 2035 | . "$ac_site_file" \ | ||
2268 | 2036 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
2269 | 2037 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
2270 | 2038 | as_fn_error $? "failed to load site script $ac_site_file | ||
2271 | 2039 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
2272 | 2040 | fi | ||
2273 | 2041 | done | ||
2274 | 2042 | |||
2275 | 2043 | if test -r "$cache_file"; then | ||
2276 | 2044 | # Some versions of bash will fail to source /dev/null (special files | ||
2277 | 2045 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | ||
2278 | 2046 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | ||
2279 | 2047 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | ||
2280 | 2048 | $as_echo "$as_me: loading cache $cache_file" >&6;} | ||
2281 | 2049 | case $cache_file in | ||
2282 | 2050 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | ||
2283 | 2051 | *) . "./$cache_file";; | ||
2284 | 2052 | esac | ||
2285 | 2053 | fi | ||
2286 | 2054 | else | ||
2287 | 2055 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | ||
2288 | 2056 | $as_echo "$as_me: creating cache $cache_file" >&6;} | ||
2289 | 2057 | >$cache_file | ||
2290 | 2058 | fi | ||
2291 | 2059 | |||
2292 | 2060 | # Check that the precious variables saved in the cache have kept the same | ||
2293 | 2061 | # value. | ||
2294 | 2062 | ac_cache_corrupted=false | ||
2295 | 2063 | for ac_var in $ac_precious_vars; do | ||
2296 | 2064 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | ||
2297 | 2065 | eval ac_new_set=\$ac_env_${ac_var}_set | ||
2298 | 2066 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | ||
2299 | 2067 | eval ac_new_val=\$ac_env_${ac_var}_value | ||
2300 | 2068 | case $ac_old_set,$ac_new_set in | ||
2301 | 2069 | set,) | ||
2302 | 2070 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | ||
2303 | 2071 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | ||
2304 | 2072 | ac_cache_corrupted=: ;; | ||
2305 | 2073 | ,set) | ||
2306 | 2074 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | ||
2307 | 2075 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | ||
2308 | 2076 | ac_cache_corrupted=: ;; | ||
2309 | 2077 | ,);; | ||
2310 | 2078 | *) | ||
2311 | 2079 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||
2312 | 2080 | # differences in whitespace do not lead to failure. | ||
2313 | 2081 | ac_old_val_w=`echo x $ac_old_val` | ||
2314 | 2082 | ac_new_val_w=`echo x $ac_new_val` | ||
2315 | 2083 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | ||
2316 | 2084 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | ||
2317 | 2085 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||
2318 | 2086 | ac_cache_corrupted=: | ||
2319 | 2087 | else | ||
2320 | 2088 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | ||
2321 | 2089 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | ||
2322 | 2090 | eval $ac_var=\$ac_old_val | ||
2323 | 2091 | fi | ||
2324 | 2092 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | ||
2325 | 2093 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | ||
2326 | 2094 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | ||
2327 | 2095 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | ||
2328 | 2096 | fi;; | ||
2329 | 2097 | esac | ||
2330 | 2098 | # Pass precious variables to config.status. | ||
2331 | 2099 | if test "$ac_new_set" = set; then | ||
2332 | 2100 | case $ac_new_val in | ||
2333 | 2101 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
2334 | 2102 | *) ac_arg=$ac_var=$ac_new_val ;; | ||
2335 | 2103 | esac | ||
2336 | 2104 | case " $ac_configure_args " in | ||
2337 | 2105 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||
2338 | 2106 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | ||
2339 | 2107 | esac | ||
2340 | 2108 | fi | ||
2341 | 2109 | done | ||
2342 | 2110 | if $ac_cache_corrupted; then | ||
2343 | 2111 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
2344 | 2112 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
2345 | 2113 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | ||
2346 | 2114 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||
2347 | 2115 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | ||
2348 | 2116 | fi | ||
2349 | 2117 | ## -------------------- ## | ||
2350 | 2118 | ## Main body of script. ## | ||
2351 | 2119 | ## -------------------- ## | ||
2352 | 2120 | |||
2353 | 2121 | ac_ext=c | ||
2354 | 2122 | ac_cpp='$CPP $CPPFLAGS' | ||
2355 | 2123 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2356 | 2124 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2357 | 2125 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2358 | 2126 | |||
2359 | 2127 | |||
2360 | 2128 | |||
2361 | 2129 | |||
2362 | 2130 | ac_aux_dir= | ||
2363 | 2131 | for ac_dir in config "$srcdir"/config; do | ||
2364 | 2132 | if test -f "$ac_dir/install-sh"; then | ||
2365 | 2133 | ac_aux_dir=$ac_dir | ||
2366 | 2134 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||
2367 | 2135 | break | ||
2368 | 2136 | elif test -f "$ac_dir/install.sh"; then | ||
2369 | 2137 | ac_aux_dir=$ac_dir | ||
2370 | 2138 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||
2371 | 2139 | break | ||
2372 | 2140 | elif test -f "$ac_dir/shtool"; then | ||
2373 | 2141 | ac_aux_dir=$ac_dir | ||
2374 | 2142 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||
2375 | 2143 | break | ||
2376 | 2144 | fi | ||
2377 | 2145 | done | ||
2378 | 2146 | if test -z "$ac_aux_dir"; then | ||
2379 | 2147 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 | ||
2380 | 2148 | fi | ||
2381 | 2149 | |||
2382 | 2150 | # These three variables are undocumented and unsupported, | ||
2383 | 2151 | # and are intended to be withdrawn in a future Autoconf release. | ||
2384 | 2152 | # They can cause serious problems if a builder's source tree is in a directory | ||
2385 | 2153 | # whose full name contains unusual characters. | ||
2386 | 2154 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | ||
2387 | 2155 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | ||
2388 | 2156 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | ||
2389 | 2157 | |||
2390 | 2158 | |||
2391 | 2159 | ac_config_headers="$ac_config_headers src/config.h" | ||
2392 | 2160 | |||
2393 | 2161 | am__api_version='1.11' | ||
2394 | 2162 | |||
2395 | 2163 | # Find a good install program. We prefer a C program (faster), | ||
2396 | 2164 | # so one script is as good as another. But avoid the broken or | ||
2397 | 2165 | # incompatible versions: | ||
2398 | 2166 | # SysV /etc/install, /usr/sbin/install | ||
2399 | 2167 | # SunOS /usr/etc/install | ||
2400 | 2168 | # IRIX /sbin/install | ||
2401 | 2169 | # AIX /bin/install | ||
2402 | 2170 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||
2403 | 2171 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||
2404 | 2172 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||
2405 | 2173 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||
2406 | 2174 | # OS/2's system install, which has a completely different semantic | ||
2407 | 2175 | # ./install, which can be erroneously created by make from ./install.sh. | ||
2408 | 2176 | # Reject install programs that cannot install multiple files. | ||
2409 | 2177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | ||
2410 | 2178 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | ||
2411 | 2179 | if test -z "$INSTALL"; then | ||
2412 | 2180 | if test "${ac_cv_path_install+set}" = set; then : | ||
2413 | 2181 | $as_echo_n "(cached) " >&6 | ||
2414 | 2182 | else | ||
2415 | 2183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2416 | 2184 | for as_dir in $PATH | ||
2417 | 2185 | do | ||
2418 | 2186 | IFS=$as_save_IFS | ||
2419 | 2187 | test -z "$as_dir" && as_dir=. | ||
2420 | 2188 | # Account for people who put trailing slashes in PATH elements. | ||
2421 | 2189 | case $as_dir/ in #(( | ||
2422 | 2190 | ./ | .// | /[cC]/* | \ | ||
2423 | 2191 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | ||
2424 | 2192 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | ||
2425 | 2193 | /usr/ucb/* ) ;; | ||
2426 | 2194 | *) | ||
2427 | 2195 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||
2428 | 2196 | # Don't use installbsd from OSF since it installs stuff as root | ||
2429 | 2197 | # by default. | ||
2430 | 2198 | for ac_prog in ginstall scoinst install; do | ||
2431 | 2199 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2432 | 2200 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | ||
2433 | 2201 | if test $ac_prog = install && | ||
2434 | 2202 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
2435 | 2203 | # AIX install. It has an incompatible calling convention. | ||
2436 | 2204 | : | ||
2437 | 2205 | elif test $ac_prog = install && | ||
2438 | 2206 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
2439 | 2207 | # program-specific install script used by HP pwplus--don't use. | ||
2440 | 2208 | : | ||
2441 | 2209 | else | ||
2442 | 2210 | rm -rf conftest.one conftest.two conftest.dir | ||
2443 | 2211 | echo one > conftest.one | ||
2444 | 2212 | echo two > conftest.two | ||
2445 | 2213 | mkdir conftest.dir | ||
2446 | 2214 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | ||
2447 | 2215 | test -s conftest.one && test -s conftest.two && | ||
2448 | 2216 | test -s conftest.dir/conftest.one && | ||
2449 | 2217 | test -s conftest.dir/conftest.two | ||
2450 | 2218 | then | ||
2451 | 2219 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | ||
2452 | 2220 | break 3 | ||
2453 | 2221 | fi | ||
2454 | 2222 | fi | ||
2455 | 2223 | fi | ||
2456 | 2224 | done | ||
2457 | 2225 | done | ||
2458 | 2226 | ;; | ||
2459 | 2227 | esac | ||
2460 | 2228 | |||
2461 | 2229 | done | ||
2462 | 2230 | IFS=$as_save_IFS | ||
2463 | 2231 | |||
2464 | 2232 | rm -rf conftest.one conftest.two conftest.dir | ||
2465 | 2233 | |||
2466 | 2234 | fi | ||
2467 | 2235 | if test "${ac_cv_path_install+set}" = set; then | ||
2468 | 2236 | INSTALL=$ac_cv_path_install | ||
2469 | 2237 | else | ||
2470 | 2238 | # As a last resort, use the slow shell script. Don't cache a | ||
2471 | 2239 | # value for INSTALL within a source directory, because that will | ||
2472 | 2240 | # break other packages using the cache if that directory is | ||
2473 | 2241 | # removed, or if the value is a relative name. | ||
2474 | 2242 | INSTALL=$ac_install_sh | ||
2475 | 2243 | fi | ||
2476 | 2244 | fi | ||
2477 | 2245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | ||
2478 | 2246 | $as_echo "$INSTALL" >&6; } | ||
2479 | 2247 | |||
2480 | 2248 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||
2481 | 2249 | # It thinks the first close brace ends the variable substitution. | ||
2482 | 2250 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||
2483 | 2251 | |||
2484 | 2252 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||
2485 | 2253 | |||
2486 | 2254 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||
2487 | 2255 | |||
2488 | 2256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | ||
2489 | 2257 | $as_echo_n "checking whether build environment is sane... " >&6; } | ||
2490 | 2258 | # Just in case | ||
2491 | 2259 | sleep 1 | ||
2492 | 2260 | echo timestamp > conftest.file | ||
2493 | 2261 | # Reject unsafe characters in $srcdir or the absolute working directory | ||
2494 | 2262 | # name. Accept space and tab only in the latter. | ||
2495 | 2263 | am_lf=' | ||
2496 | 2264 | ' | ||
2497 | 2265 | case `pwd` in | ||
2498 | 2266 | *[\\\"\#\$\&\'\`$am_lf]*) | ||
2499 | 2267 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;; | ||
2500 | 2268 | esac | ||
2501 | 2269 | case $srcdir in | ||
2502 | 2270 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | ||
2503 | 2271 | as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;; | ||
2504 | 2272 | esac | ||
2505 | 2273 | |||
2506 | 2274 | # Do `set' in a subshell so we don't clobber the current shell's | ||
2507 | 2275 | # arguments. Must try -L first in case configure is actually a | ||
2508 | 2276 | # symlink; some systems play weird games with the mod time of symlinks | ||
2509 | 2277 | # (eg FreeBSD returns the mod time of the symlink's containing | ||
2510 | 2278 | # directory). | ||
2511 | 2279 | if ( | ||
2512 | 2280 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | ||
2513 | 2281 | if test "$*" = "X"; then | ||
2514 | 2282 | # -L didn't work. | ||
2515 | 2283 | set X `ls -t "$srcdir/configure" conftest.file` | ||
2516 | 2284 | fi | ||
2517 | 2285 | rm -f conftest.file | ||
2518 | 2286 | if test "$*" != "X $srcdir/configure conftest.file" \ | ||
2519 | 2287 | && test "$*" != "X conftest.file $srcdir/configure"; then | ||
2520 | 2288 | |||
2521 | 2289 | # If neither matched, then we have a broken ls. This can happen | ||
2522 | 2290 | # if, for instance, CONFIG_SHELL is bash and it inherits a | ||
2523 | 2291 | # broken ls alias from the environment. This has actually | ||
2524 | 2292 | # happened. Such a system could not be considered "sane". | ||
2525 | 2293 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | ||
2526 | 2294 | alias in your environment" "$LINENO" 5 | ||
2527 | 2295 | fi | ||
2528 | 2296 | |||
2529 | 2297 | test "$2" = conftest.file | ||
2530 | 2298 | ) | ||
2531 | 2299 | then | ||
2532 | 2300 | # Ok. | ||
2533 | 2301 | : | ||
2534 | 2302 | else | ||
2535 | 2303 | as_fn_error $? "newly created file is older than distributed files! | ||
2536 | 2304 | Check your system clock" "$LINENO" 5 | ||
2537 | 2305 | fi | ||
2538 | 2306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
2539 | 2307 | $as_echo "yes" >&6; } | ||
2540 | 2308 | test "$program_prefix" != NONE && | ||
2541 | 2309 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | ||
2542 | 2310 | # Use a double $ so make ignores it. | ||
2543 | 2311 | test "$program_suffix" != NONE && | ||
2544 | 2312 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | ||
2545 | 2313 | # Double any \ or $. | ||
2546 | 2314 | # By default was `s,x,x', remove it if useless. | ||
2547 | 2315 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | ||
2548 | 2316 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | ||
2549 | 2317 | |||
2550 | 2318 | # expand $ac_aux_dir to an absolute path | ||
2551 | 2319 | am_aux_dir=`cd $ac_aux_dir && pwd` | ||
2552 | 2320 | |||
2553 | 2321 | if test x"${MISSING+set}" != xset; then | ||
2554 | 2322 | case $am_aux_dir in | ||
2555 | 2323 | *\ * | *\ *) | ||
2556 | 2324 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | ||
2557 | 2325 | *) | ||
2558 | 2326 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | ||
2559 | 2327 | esac | ||
2560 | 2328 | fi | ||
2561 | 2329 | # Use eval to expand $SHELL | ||
2562 | 2330 | if eval "$MISSING --run true"; then | ||
2563 | 2331 | am_missing_run="$MISSING --run " | ||
2564 | 2332 | else | ||
2565 | 2333 | am_missing_run= | ||
2566 | 2334 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 | ||
2567 | 2335 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | ||
2568 | 2336 | fi | ||
2569 | 2337 | |||
2570 | 2338 | if test x"${install_sh}" != xset; then | ||
2571 | 2339 | case $am_aux_dir in | ||
2572 | 2340 | *\ * | *\ *) | ||
2573 | 2341 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | ||
2574 | 2342 | *) | ||
2575 | 2343 | install_sh="\${SHELL} $am_aux_dir/install-sh" | ||
2576 | 2344 | esac | ||
2577 | 2345 | fi | ||
2578 | 2346 | |||
2579 | 2347 | # Installed binaries are usually stripped using `strip' when the user | ||
2580 | 2348 | # run `make install-strip'. However `strip' might not be the right | ||
2581 | 2349 | # tool to use in cross-compilation environments, therefore Automake | ||
2582 | 2350 | # will honor the `STRIP' environment variable to overrule this program. | ||
2583 | 2351 | if test "$cross_compiling" != no; then | ||
2584 | 2352 | if test -n "$ac_tool_prefix"; then | ||
2585 | 2353 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | ||
2586 | 2354 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | ||
2587 | 2355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2588 | 2356 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2589 | 2357 | if test "${ac_cv_prog_STRIP+set}" = set; then : | ||
2590 | 2358 | $as_echo_n "(cached) " >&6 | ||
2591 | 2359 | else | ||
2592 | 2360 | if test -n "$STRIP"; then | ||
2593 | 2361 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | ||
2594 | 2362 | else | ||
2595 | 2363 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2596 | 2364 | for as_dir in $PATH | ||
2597 | 2365 | do | ||
2598 | 2366 | IFS=$as_save_IFS | ||
2599 | 2367 | test -z "$as_dir" && as_dir=. | ||
2600 | 2368 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2601 | 2369 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2602 | 2370 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | ||
2603 | 2371 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2604 | 2372 | break 2 | ||
2605 | 2373 | fi | ||
2606 | 2374 | done | ||
2607 | 2375 | done | ||
2608 | 2376 | IFS=$as_save_IFS | ||
2609 | 2377 | |||
2610 | 2378 | fi | ||
2611 | 2379 | fi | ||
2612 | 2380 | STRIP=$ac_cv_prog_STRIP | ||
2613 | 2381 | if test -n "$STRIP"; then | ||
2614 | 2382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | ||
2615 | 2383 | $as_echo "$STRIP" >&6; } | ||
2616 | 2384 | else | ||
2617 | 2385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2618 | 2386 | $as_echo "no" >&6; } | ||
2619 | 2387 | fi | ||
2620 | 2388 | |||
2621 | 2389 | |||
2622 | 2390 | fi | ||
2623 | 2391 | if test -z "$ac_cv_prog_STRIP"; then | ||
2624 | 2392 | ac_ct_STRIP=$STRIP | ||
2625 | 2393 | # Extract the first word of "strip", so it can be a program name with args. | ||
2626 | 2394 | set dummy strip; ac_word=$2 | ||
2627 | 2395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2628 | 2396 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2629 | 2397 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | ||
2630 | 2398 | $as_echo_n "(cached) " >&6 | ||
2631 | 2399 | else | ||
2632 | 2400 | if test -n "$ac_ct_STRIP"; then | ||
2633 | 2401 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | ||
2634 | 2402 | else | ||
2635 | 2403 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2636 | 2404 | for as_dir in $PATH | ||
2637 | 2405 | do | ||
2638 | 2406 | IFS=$as_save_IFS | ||
2639 | 2407 | test -z "$as_dir" && as_dir=. | ||
2640 | 2408 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2641 | 2409 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2642 | 2410 | ac_cv_prog_ac_ct_STRIP="strip" | ||
2643 | 2411 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2644 | 2412 | break 2 | ||
2645 | 2413 | fi | ||
2646 | 2414 | done | ||
2647 | 2415 | done | ||
2648 | 2416 | IFS=$as_save_IFS | ||
2649 | 2417 | |||
2650 | 2418 | fi | ||
2651 | 2419 | fi | ||
2652 | 2420 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | ||
2653 | 2421 | if test -n "$ac_ct_STRIP"; then | ||
2654 | 2422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | ||
2655 | 2423 | $as_echo "$ac_ct_STRIP" >&6; } | ||
2656 | 2424 | else | ||
2657 | 2425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2658 | 2426 | $as_echo "no" >&6; } | ||
2659 | 2427 | fi | ||
2660 | 2428 | |||
2661 | 2429 | if test "x$ac_ct_STRIP" = x; then | ||
2662 | 2430 | STRIP=":" | ||
2663 | 2431 | else | ||
2664 | 2432 | case $cross_compiling:$ac_tool_warned in | ||
2665 | 2433 | yes:) | ||
2666 | 2434 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
2667 | 2435 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
2668 | 2436 | ac_tool_warned=yes ;; | ||
2669 | 2437 | esac | ||
2670 | 2438 | STRIP=$ac_ct_STRIP | ||
2671 | 2439 | fi | ||
2672 | 2440 | else | ||
2673 | 2441 | STRIP="$ac_cv_prog_STRIP" | ||
2674 | 2442 | fi | ||
2675 | 2443 | |||
2676 | 2444 | fi | ||
2677 | 2445 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | ||
2678 | 2446 | |||
2679 | 2447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | ||
2680 | 2448 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | ||
2681 | 2449 | if test -z "$MKDIR_P"; then | ||
2682 | 2450 | if test "${ac_cv_path_mkdir+set}" = set; then : | ||
2683 | 2451 | $as_echo_n "(cached) " >&6 | ||
2684 | 2452 | else | ||
2685 | 2453 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2686 | 2454 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | ||
2687 | 2455 | do | ||
2688 | 2456 | IFS=$as_save_IFS | ||
2689 | 2457 | test -z "$as_dir" && as_dir=. | ||
2690 | 2458 | for ac_prog in mkdir gmkdir; do | ||
2691 | 2459 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2692 | 2460 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | ||
2693 | 2461 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | ||
2694 | 2462 | 'mkdir (GNU coreutils) '* | \ | ||
2695 | 2463 | 'mkdir (coreutils) '* | \ | ||
2696 | 2464 | 'mkdir (fileutils) '4.1*) | ||
2697 | 2465 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | ||
2698 | 2466 | break 3;; | ||
2699 | 2467 | esac | ||
2700 | 2468 | done | ||
2701 | 2469 | done | ||
2702 | 2470 | done | ||
2703 | 2471 | IFS=$as_save_IFS | ||
2704 | 2472 | |||
2705 | 2473 | fi | ||
2706 | 2474 | |||
2707 | 2475 | test -d ./--version && rmdir ./--version | ||
2708 | 2476 | if test "${ac_cv_path_mkdir+set}" = set; then | ||
2709 | 2477 | MKDIR_P="$ac_cv_path_mkdir -p" | ||
2710 | 2478 | else | ||
2711 | 2479 | # As a last resort, use the slow shell script. Don't cache a | ||
2712 | 2480 | # value for MKDIR_P within a source directory, because that will | ||
2713 | 2481 | # break other packages using the cache if that directory is | ||
2714 | 2482 | # removed, or if the value is a relative name. | ||
2715 | 2483 | MKDIR_P="$ac_install_sh -d" | ||
2716 | 2484 | fi | ||
2717 | 2485 | fi | ||
2718 | 2486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | ||
2719 | 2487 | $as_echo "$MKDIR_P" >&6; } | ||
2720 | 2488 | |||
2721 | 2489 | mkdir_p="$MKDIR_P" | ||
2722 | 2490 | case $mkdir_p in | ||
2723 | 2491 | [\\/$]* | ?:[\\/]*) ;; | ||
2724 | 2492 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | ||
2725 | 2493 | esac | ||
2726 | 2494 | |||
2727 | 2495 | for ac_prog in gawk mawk nawk awk | ||
2728 | 2496 | do | ||
2729 | 2497 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
2730 | 2498 | set dummy $ac_prog; ac_word=$2 | ||
2731 | 2499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2732 | 2500 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2733 | 2501 | if test "${ac_cv_prog_AWK+set}" = set; then : | ||
2734 | 2502 | $as_echo_n "(cached) " >&6 | ||
2735 | 2503 | else | ||
2736 | 2504 | if test -n "$AWK"; then | ||
2737 | 2505 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | ||
2738 | 2506 | else | ||
2739 | 2507 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2740 | 2508 | for as_dir in $PATH | ||
2741 | 2509 | do | ||
2742 | 2510 | IFS=$as_save_IFS | ||
2743 | 2511 | test -z "$as_dir" && as_dir=. | ||
2744 | 2512 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2745 | 2513 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2746 | 2514 | ac_cv_prog_AWK="$ac_prog" | ||
2747 | 2515 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2748 | 2516 | break 2 | ||
2749 | 2517 | fi | ||
2750 | 2518 | done | ||
2751 | 2519 | done | ||
2752 | 2520 | IFS=$as_save_IFS | ||
2753 | 2521 | |||
2754 | 2522 | fi | ||
2755 | 2523 | fi | ||
2756 | 2524 | AWK=$ac_cv_prog_AWK | ||
2757 | 2525 | if test -n "$AWK"; then | ||
2758 | 2526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | ||
2759 | 2527 | $as_echo "$AWK" >&6; } | ||
2760 | 2528 | else | ||
2761 | 2529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2762 | 2530 | $as_echo "no" >&6; } | ||
2763 | 2531 | fi | ||
2764 | 2532 | |||
2765 | 2533 | |||
2766 | 2534 | test -n "$AWK" && break | ||
2767 | 2535 | done | ||
2768 | 2536 | |||
2769 | 2537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | ||
2770 | 2538 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | ||
2771 | 2539 | set x ${MAKE-make} | ||
2772 | 2540 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | ||
2773 | 2541 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : | ||
2774 | 2542 | $as_echo_n "(cached) " >&6 | ||
2775 | 2543 | else | ||
2776 | 2544 | cat >conftest.make <<\_ACEOF | ||
2777 | 2545 | SHELL = /bin/sh | ||
2778 | 2546 | all: | ||
2779 | 2547 | @echo '@@@%%%=$(MAKE)=@@@%%%' | ||
2780 | 2548 | _ACEOF | ||
2781 | 2549 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | ||
2782 | 2550 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | ||
2783 | 2551 | *@@@%%%=?*=@@@%%%*) | ||
2784 | 2552 | eval ac_cv_prog_make_${ac_make}_set=yes;; | ||
2785 | 2553 | *) | ||
2786 | 2554 | eval ac_cv_prog_make_${ac_make}_set=no;; | ||
2787 | 2555 | esac | ||
2788 | 2556 | rm -f conftest.make | ||
2789 | 2557 | fi | ||
2790 | 2558 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | ||
2791 | 2559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
2792 | 2560 | $as_echo "yes" >&6; } | ||
2793 | 2561 | SET_MAKE= | ||
2794 | 2562 | else | ||
2795 | 2563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2796 | 2564 | $as_echo "no" >&6; } | ||
2797 | 2565 | SET_MAKE="MAKE=${MAKE-make}" | ||
2798 | 2566 | fi | ||
2799 | 2567 | |||
2800 | 2568 | rm -rf .tst 2>/dev/null | ||
2801 | 2569 | mkdir .tst 2>/dev/null | ||
2802 | 2570 | if test -d .tst; then | ||
2803 | 2571 | am__leading_dot=. | ||
2804 | 2572 | else | ||
2805 | 2573 | am__leading_dot=_ | ||
2806 | 2574 | fi | ||
2807 | 2575 | rmdir .tst 2>/dev/null | ||
2808 | 2576 | |||
2809 | 2577 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | ||
2810 | 2578 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | ||
2811 | 2579 | # is not polluted with repeated "-I." | ||
2812 | 2580 | am__isrc=' -I$(srcdir)' | ||
2813 | 2581 | # test to see if srcdir already configured | ||
2814 | 2582 | if test -f $srcdir/config.status; then | ||
2815 | 2583 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | ||
2816 | 2584 | fi | ||
2817 | 2585 | fi | ||
2818 | 2586 | |||
2819 | 2587 | # test whether we have cygpath | ||
2820 | 2588 | if test -z "$CYGPATH_W"; then | ||
2821 | 2589 | if (cygpath --version) >/dev/null 2>/dev/null; then | ||
2822 | 2590 | CYGPATH_W='cygpath -w' | ||
2823 | 2591 | else | ||
2824 | 2592 | CYGPATH_W=echo | ||
2825 | 2593 | fi | ||
2826 | 2594 | fi | ||
2827 | 2595 | |||
2828 | 2596 | |||
2829 | 2597 | # Define the identity of the package. | ||
2830 | 2598 | PACKAGE='lxc' | ||
2831 | 2599 | VERSION='0.7.5' | ||
2832 | 2600 | |||
2833 | 2601 | |||
2834 | 2602 | cat >>confdefs.h <<_ACEOF | ||
2835 | 2603 | #define PACKAGE "$PACKAGE" | ||
2836 | 2604 | _ACEOF | ||
2837 | 2605 | |||
2838 | 2606 | |||
2839 | 2607 | cat >>confdefs.h <<_ACEOF | ||
2840 | 2608 | #define VERSION "$VERSION" | ||
2841 | 2609 | _ACEOF | ||
2842 | 2610 | |||
2843 | 2611 | # Some tools Automake needs. | ||
2844 | 2612 | |||
2845 | 2613 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | ||
2846 | 2614 | |||
2847 | 2615 | |||
2848 | 2616 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | ||
2849 | 2617 | |||
2850 | 2618 | |||
2851 | 2619 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | ||
2852 | 2620 | |||
2853 | 2621 | |||
2854 | 2622 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | ||
2855 | 2623 | |||
2856 | 2624 | |||
2857 | 2625 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | ||
2858 | 2626 | |||
2859 | 2627 | # We need awk for the "check" target. The system "awk" is bad on | ||
2860 | 2628 | # some platforms. | ||
2861 | 2629 | # Always define AMTAR for backward compatibility. | ||
2862 | 2630 | |||
2863 | 2631 | AMTAR=${AMTAR-"${am_missing_run}tar"} | ||
2864 | 2632 | |||
2865 | 2633 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | ||
2866 | 2634 | |||
2867 | 2635 | |||
2868 | 2636 | |||
2869 | 2637 | |||
2870 | 2638 | |||
2871 | 2639 | # Make sure we can run config.sub. | ||
2872 | 2640 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | ||
2873 | 2641 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | ||
2874 | 2642 | |||
2875 | 2643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | ||
2876 | 2644 | $as_echo_n "checking build system type... " >&6; } | ||
2877 | 2645 | if test "${ac_cv_build+set}" = set; then : | ||
2878 | 2646 | $as_echo_n "(cached) " >&6 | ||
2879 | 2647 | else | ||
2880 | 2648 | ac_build_alias=$build_alias | ||
2881 | 2649 | test "x$ac_build_alias" = x && | ||
2882 | 2650 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | ||
2883 | 2651 | test "x$ac_build_alias" = x && | ||
2884 | 2652 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | ||
2885 | 2653 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | ||
2886 | 2654 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | ||
2887 | 2655 | |||
2888 | 2656 | fi | ||
2889 | 2657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | ||
2890 | 2658 | $as_echo "$ac_cv_build" >&6; } | ||
2891 | 2659 | case $ac_cv_build in | ||
2892 | 2660 | *-*-*) ;; | ||
2893 | 2661 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;; | ||
2894 | 2662 | esac | ||
2895 | 2663 | build=$ac_cv_build | ||
2896 | 2664 | ac_save_IFS=$IFS; IFS='-' | ||
2897 | 2665 | set x $ac_cv_build | ||
2898 | 2666 | shift | ||
2899 | 2667 | build_cpu=$1 | ||
2900 | 2668 | build_vendor=$2 | ||
2901 | 2669 | shift; shift | ||
2902 | 2670 | # Remember, the first character of IFS is used to create $*, | ||
2903 | 2671 | # except with old shells: | ||
2904 | 2672 | build_os=$* | ||
2905 | 2673 | IFS=$ac_save_IFS | ||
2906 | 2674 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | ||
2907 | 2675 | |||
2908 | 2676 | |||
2909 | 2677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | ||
2910 | 2678 | $as_echo_n "checking host system type... " >&6; } | ||
2911 | 2679 | if test "${ac_cv_host+set}" = set; then : | ||
2912 | 2680 | $as_echo_n "(cached) " >&6 | ||
2913 | 2681 | else | ||
2914 | 2682 | if test "x$host_alias" = x; then | ||
2915 | 2683 | ac_cv_host=$ac_cv_build | ||
2916 | 2684 | else | ||
2917 | 2685 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | ||
2918 | 2686 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | ||
2919 | 2687 | fi | ||
2920 | 2688 | |||
2921 | 2689 | fi | ||
2922 | 2690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | ||
2923 | 2691 | $as_echo "$ac_cv_host" >&6; } | ||
2924 | 2692 | case $ac_cv_host in | ||
2925 | 2693 | *-*-*) ;; | ||
2926 | 2694 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;; | ||
2927 | 2695 | esac | ||
2928 | 2696 | host=$ac_cv_host | ||
2929 | 2697 | ac_save_IFS=$IFS; IFS='-' | ||
2930 | 2698 | set x $ac_cv_host | ||
2931 | 2699 | shift | ||
2932 | 2700 | host_cpu=$1 | ||
2933 | 2701 | host_vendor=$2 | ||
2934 | 2702 | shift; shift | ||
2935 | 2703 | # Remember, the first character of IFS is used to create $*, | ||
2936 | 2704 | # except with old shells: | ||
2937 | 2705 | host_os=$* | ||
2938 | 2706 | IFS=$ac_save_IFS | ||
2939 | 2707 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | ||
2940 | 2708 | |||
2941 | 2709 | |||
2942 | 2710 | DEPDIR="${am__leading_dot}deps" | ||
2943 | 2711 | |||
2944 | 2712 | ac_config_commands="$ac_config_commands depfiles" | ||
2945 | 2713 | |||
2946 | 2714 | |||
2947 | 2715 | am_make=${MAKE-make} | ||
2948 | 2716 | cat > confinc << 'END' | ||
2949 | 2717 | am__doit: | ||
2950 | 2718 | @echo this is the am__doit target | ||
2951 | 2719 | .PHONY: am__doit | ||
2952 | 2720 | END | ||
2953 | 2721 | # If we don't find an include directive, just comment out the code. | ||
2954 | 2722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | ||
2955 | 2723 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | ||
2956 | 2724 | am__include="#" | ||
2957 | 2725 | am__quote= | ||
2958 | 2726 | _am_result=none | ||
2959 | 2727 | # First try GNU make style include. | ||
2960 | 2728 | echo "include confinc" > confmf | ||
2961 | 2729 | # Ignore all kinds of additional output from `make'. | ||
2962 | 2730 | case `$am_make -s -f confmf 2> /dev/null` in #( | ||
2963 | 2731 | *the\ am__doit\ target*) | ||
2964 | 2732 | am__include=include | ||
2965 | 2733 | am__quote= | ||
2966 | 2734 | _am_result=GNU | ||
2967 | 2735 | ;; | ||
2968 | 2736 | esac | ||
2969 | 2737 | # Now try BSD make style include. | ||
2970 | 2738 | if test "$am__include" = "#"; then | ||
2971 | 2739 | echo '.include "confinc"' > confmf | ||
2972 | 2740 | case `$am_make -s -f confmf 2> /dev/null` in #( | ||
2973 | 2741 | *the\ am__doit\ target*) | ||
2974 | 2742 | am__include=.include | ||
2975 | 2743 | am__quote="\"" | ||
2976 | 2744 | _am_result=BSD | ||
2977 | 2745 | ;; | ||
2978 | 2746 | esac | ||
2979 | 2747 | fi | ||
2980 | 2748 | |||
2981 | 2749 | |||
2982 | 2750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | ||
2983 | 2751 | $as_echo "$_am_result" >&6; } | ||
2984 | 2752 | rm -f confinc confmf | ||
2985 | 2753 | |||
2986 | 2754 | # Check whether --enable-dependency-tracking was given. | ||
2987 | 2755 | if test "${enable_dependency_tracking+set}" = set; then : | ||
2988 | 2756 | enableval=$enable_dependency_tracking; | ||
2989 | 2757 | fi | ||
2990 | 2758 | |||
2991 | 2759 | if test "x$enable_dependency_tracking" != xno; then | ||
2992 | 2760 | am_depcomp="$ac_aux_dir/depcomp" | ||
2993 | 2761 | AMDEPBACKSLASH='\' | ||
2994 | 2762 | fi | ||
2995 | 2763 | if test "x$enable_dependency_tracking" != xno; then | ||
2996 | 2764 | AMDEP_TRUE= | ||
2997 | 2765 | AMDEP_FALSE='#' | ||
2998 | 2766 | else | ||
2999 | 2767 | AMDEP_TRUE='#' | ||
3000 | 2768 | AMDEP_FALSE= | ||
3001 | 2769 | fi | ||
3002 | 2770 | |||
3003 | 2771 | |||
3004 | 2772 | ac_ext=c | ||
3005 | 2773 | ac_cpp='$CPP $CPPFLAGS' | ||
3006 | 2774 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3007 | 2775 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3008 | 2776 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3009 | 2777 | if test -n "$ac_tool_prefix"; then | ||
3010 | 2778 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
3011 | 2779 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
3012 | 2780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3013 | 2781 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3014 | 2782 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
3015 | 2783 | $as_echo_n "(cached) " >&6 | ||
3016 | 2784 | else | ||
3017 | 2785 | if test -n "$CC"; then | ||
3018 | 2786 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
3019 | 2787 | else | ||
3020 | 2788 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3021 | 2789 | for as_dir in $PATH | ||
3022 | 2790 | do | ||
3023 | 2791 | IFS=$as_save_IFS | ||
3024 | 2792 | test -z "$as_dir" && as_dir=. | ||
3025 | 2793 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3026 | 2794 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3027 | 2795 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
3028 | 2796 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3029 | 2797 | break 2 | ||
3030 | 2798 | fi | ||
3031 | 2799 | done | ||
3032 | 2800 | done | ||
3033 | 2801 | IFS=$as_save_IFS | ||
3034 | 2802 | |||
3035 | 2803 | fi | ||
3036 | 2804 | fi | ||
3037 | 2805 | CC=$ac_cv_prog_CC | ||
3038 | 2806 | if test -n "$CC"; then | ||
3039 | 2807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
3040 | 2808 | $as_echo "$CC" >&6; } | ||
3041 | 2809 | else | ||
3042 | 2810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3043 | 2811 | $as_echo "no" >&6; } | ||
3044 | 2812 | fi | ||
3045 | 2813 | |||
3046 | 2814 | |||
3047 | 2815 | fi | ||
3048 | 2816 | if test -z "$ac_cv_prog_CC"; then | ||
3049 | 2817 | ac_ct_CC=$CC | ||
3050 | 2818 | # Extract the first word of "gcc", so it can be a program name with args. | ||
3051 | 2819 | set dummy gcc; ac_word=$2 | ||
3052 | 2820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3053 | 2821 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3054 | 2822 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | ||
3055 | 2823 | $as_echo_n "(cached) " >&6 | ||
3056 | 2824 | else | ||
3057 | 2825 | if test -n "$ac_ct_CC"; then | ||
3058 | 2826 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
3059 | 2827 | else | ||
3060 | 2828 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3061 | 2829 | for as_dir in $PATH | ||
3062 | 2830 | do | ||
3063 | 2831 | IFS=$as_save_IFS | ||
3064 | 2832 | test -z "$as_dir" && as_dir=. | ||
3065 | 2833 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3066 | 2834 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3067 | 2835 | ac_cv_prog_ac_ct_CC="gcc" | ||
3068 | 2836 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3069 | 2837 | break 2 | ||
3070 | 2838 | fi | ||
3071 | 2839 | done | ||
3072 | 2840 | done | ||
3073 | 2841 | IFS=$as_save_IFS | ||
3074 | 2842 | |||
3075 | 2843 | fi | ||
3076 | 2844 | fi | ||
3077 | 2845 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
3078 | 2846 | if test -n "$ac_ct_CC"; then | ||
3079 | 2847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
3080 | 2848 | $as_echo "$ac_ct_CC" >&6; } | ||
3081 | 2849 | else | ||
3082 | 2850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3083 | 2851 | $as_echo "no" >&6; } | ||
3084 | 2852 | fi | ||
3085 | 2853 | |||
3086 | 2854 | if test "x$ac_ct_CC" = x; then | ||
3087 | 2855 | CC="" | ||
3088 | 2856 | else | ||
3089 | 2857 | case $cross_compiling:$ac_tool_warned in | ||
3090 | 2858 | yes:) | ||
3091 | 2859 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
3092 | 2860 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
3093 | 2861 | ac_tool_warned=yes ;; | ||
3094 | 2862 | esac | ||
3095 | 2863 | CC=$ac_ct_CC | ||
3096 | 2864 | fi | ||
3097 | 2865 | else | ||
3098 | 2866 | CC="$ac_cv_prog_CC" | ||
3099 | 2867 | fi | ||
3100 | 2868 | |||
3101 | 2869 | if test -z "$CC"; then | ||
3102 | 2870 | if test -n "$ac_tool_prefix"; then | ||
3103 | 2871 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
3104 | 2872 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
3105 | 2873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3106 | 2874 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3107 | 2875 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
3108 | 2876 | $as_echo_n "(cached) " >&6 | ||
3109 | 2877 | else | ||
3110 | 2878 | if test -n "$CC"; then | ||
3111 | 2879 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
3112 | 2880 | else | ||
3113 | 2881 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3114 | 2882 | for as_dir in $PATH | ||
3115 | 2883 | do | ||
3116 | 2884 | IFS=$as_save_IFS | ||
3117 | 2885 | test -z "$as_dir" && as_dir=. | ||
3118 | 2886 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3119 | 2887 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3120 | 2888 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
3121 | 2889 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3122 | 2890 | break 2 | ||
3123 | 2891 | fi | ||
3124 | 2892 | done | ||
3125 | 2893 | done | ||
3126 | 2894 | IFS=$as_save_IFS | ||
3127 | 2895 | |||
3128 | 2896 | fi | ||
3129 | 2897 | fi | ||
3130 | 2898 | CC=$ac_cv_prog_CC | ||
3131 | 2899 | if test -n "$CC"; then | ||
3132 | 2900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
3133 | 2901 | $as_echo "$CC" >&6; } | ||
3134 | 2902 | else | ||
3135 | 2903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3136 | 2904 | $as_echo "no" >&6; } | ||
3137 | 2905 | fi | ||
3138 | 2906 | |||
3139 | 2907 | |||
3140 | 2908 | fi | ||
3141 | 2909 | fi | ||
3142 | 2910 | if test -z "$CC"; then | ||
3143 | 2911 | # Extract the first word of "cc", so it can be a program name with args. | ||
3144 | 2912 | set dummy cc; ac_word=$2 | ||
3145 | 2913 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3146 | 2914 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3147 | 2915 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
3148 | 2916 | $as_echo_n "(cached) " >&6 | ||
3149 | 2917 | else | ||
3150 | 2918 | if test -n "$CC"; then | ||
3151 | 2919 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
3152 | 2920 | else | ||
3153 | 2921 | ac_prog_rejected=no | ||
3154 | 2922 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3155 | 2923 | for as_dir in $PATH | ||
3156 | 2924 | do | ||
3157 | 2925 | IFS=$as_save_IFS | ||
3158 | 2926 | test -z "$as_dir" && as_dir=. | ||
3159 | 2927 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3160 | 2928 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3161 | 2929 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
3162 | 2930 | ac_prog_rejected=yes | ||
3163 | 2931 | continue | ||
3164 | 2932 | fi | ||
3165 | 2933 | ac_cv_prog_CC="cc" | ||
3166 | 2934 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3167 | 2935 | break 2 | ||
3168 | 2936 | fi | ||
3169 | 2937 | done | ||
3170 | 2938 | done | ||
3171 | 2939 | IFS=$as_save_IFS | ||
3172 | 2940 | |||
3173 | 2941 | if test $ac_prog_rejected = yes; then | ||
3174 | 2942 | # We found a bogon in the path, so make sure we never use it. | ||
3175 | 2943 | set dummy $ac_cv_prog_CC | ||
3176 | 2944 | shift | ||
3177 | 2945 | if test $# != 0; then | ||
3178 | 2946 | # We chose a different compiler from the bogus one. | ||
3179 | 2947 | # However, it has the same basename, so the bogon will be chosen | ||
3180 | 2948 | # first if we set CC to just the basename; use the full file name. | ||
3181 | 2949 | shift | ||
3182 | 2950 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | ||
3183 | 2951 | fi | ||
3184 | 2952 | fi | ||
3185 | 2953 | fi | ||
3186 | 2954 | fi | ||
3187 | 2955 | CC=$ac_cv_prog_CC | ||
3188 | 2956 | if test -n "$CC"; then | ||
3189 | 2957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
3190 | 2958 | $as_echo "$CC" >&6; } | ||
3191 | 2959 | else | ||
3192 | 2960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3193 | 2961 | $as_echo "no" >&6; } | ||
3194 | 2962 | fi | ||
3195 | 2963 | |||
3196 | 2964 | |||
3197 | 2965 | fi | ||
3198 | 2966 | if test -z "$CC"; then | ||
3199 | 2967 | if test -n "$ac_tool_prefix"; then | ||
3200 | 2968 | for ac_prog in cl.exe | ||
3201 | 2969 | do | ||
3202 | 2970 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
3203 | 2971 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
3204 | 2972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3205 | 2973 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3206 | 2974 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
3207 | 2975 | $as_echo_n "(cached) " >&6 | ||
3208 | 2976 | else | ||
3209 | 2977 | if test -n "$CC"; then | ||
3210 | 2978 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
3211 | 2979 | else | ||
3212 | 2980 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3213 | 2981 | for as_dir in $PATH | ||
3214 | 2982 | do | ||
3215 | 2983 | IFS=$as_save_IFS | ||
3216 | 2984 | test -z "$as_dir" && as_dir=. | ||
3217 | 2985 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3218 | 2986 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3219 | 2987 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
3220 | 2988 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3221 | 2989 | break 2 | ||
3222 | 2990 | fi | ||
3223 | 2991 | done | ||
3224 | 2992 | done | ||
3225 | 2993 | IFS=$as_save_IFS | ||
3226 | 2994 | |||
3227 | 2995 | fi | ||
3228 | 2996 | fi | ||
3229 | 2997 | CC=$ac_cv_prog_CC | ||
3230 | 2998 | if test -n "$CC"; then | ||
3231 | 2999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
3232 | 3000 | $as_echo "$CC" >&6; } | ||
3233 | 3001 | else | ||
3234 | 3002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3235 | 3003 | $as_echo "no" >&6; } | ||
3236 | 3004 | fi | ||
3237 | 3005 | |||
3238 | 3006 | |||
3239 | 3007 | test -n "$CC" && break | ||
3240 | 3008 | done | ||
3241 | 3009 | fi | ||
3242 | 3010 | if test -z "$CC"; then | ||
3243 | 3011 | ac_ct_CC=$CC | ||
3244 | 3012 | for ac_prog in cl.exe | ||
3245 | 3013 | do | ||
3246 | 3014 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
3247 | 3015 | set dummy $ac_prog; ac_word=$2 | ||
3248 | 3016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3249 | 3017 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3250 | 3018 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | ||
3251 | 3019 | $as_echo_n "(cached) " >&6 | ||
3252 | 3020 | else | ||
3253 | 3021 | if test -n "$ac_ct_CC"; then | ||
3254 | 3022 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
3255 | 3023 | else | ||
3256 | 3024 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3257 | 3025 | for as_dir in $PATH | ||
3258 | 3026 | do | ||
3259 | 3027 | IFS=$as_save_IFS | ||
3260 | 3028 | test -z "$as_dir" && as_dir=. | ||
3261 | 3029 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3262 | 3030 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3263 | 3031 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
3264 | 3032 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3265 | 3033 | break 2 | ||
3266 | 3034 | fi | ||
3267 | 3035 | done | ||
3268 | 3036 | done | ||
3269 | 3037 | IFS=$as_save_IFS | ||
3270 | 3038 | |||
3271 | 3039 | fi | ||
3272 | 3040 | fi | ||
3273 | 3041 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
3274 | 3042 | if test -n "$ac_ct_CC"; then | ||
3275 | 3043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
3276 | 3044 | $as_echo "$ac_ct_CC" >&6; } | ||
3277 | 3045 | else | ||
3278 | 3046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3279 | 3047 | $as_echo "no" >&6; } | ||
3280 | 3048 | fi | ||
3281 | 3049 | |||
3282 | 3050 | |||
3283 | 3051 | test -n "$ac_ct_CC" && break | ||
3284 | 3052 | done | ||
3285 | 3053 | |||
3286 | 3054 | if test "x$ac_ct_CC" = x; then | ||
3287 | 3055 | CC="" | ||
3288 | 3056 | else | ||
3289 | 3057 | case $cross_compiling:$ac_tool_warned in | ||
3290 | 3058 | yes:) | ||
3291 | 3059 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
3292 | 3060 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
3293 | 3061 | ac_tool_warned=yes ;; | ||
3294 | 3062 | esac | ||
3295 | 3063 | CC=$ac_ct_CC | ||
3296 | 3064 | fi | ||
3297 | 3065 | fi | ||
3298 | 3066 | |||
3299 | 3067 | fi | ||
3300 | 3068 | |||
3301 | 3069 | |||
3302 | 3070 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3303 | 3071 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3304 | 3072 | as_fn_error $? "no acceptable C compiler found in \$PATH | ||
3305 | 3073 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
3306 | 3074 | |||
3307 | 3075 | # Provide some information about the compiler. | ||
3308 | 3076 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | ||
3309 | 3077 | set X $ac_compile | ||
3310 | 3078 | ac_compiler=$2 | ||
3311 | 3079 | for ac_option in --version -v -V -qversion; do | ||
3312 | 3080 | { { ac_try="$ac_compiler $ac_option >&5" | ||
3313 | 3081 | case "(($ac_try" in | ||
3314 | 3082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3315 | 3083 | *) ac_try_echo=$ac_try;; | ||
3316 | 3084 | esac | ||
3317 | 3085 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3318 | 3086 | $as_echo "$ac_try_echo"; } >&5 | ||
3319 | 3087 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | ||
3320 | 3088 | ac_status=$? | ||
3321 | 3089 | if test -s conftest.err; then | ||
3322 | 3090 | sed '10a\ | ||
3323 | 3091 | ... rest of stderr output deleted ... | ||
3324 | 3092 | 10q' conftest.err >conftest.er1 | ||
3325 | 3093 | cat conftest.er1 >&5 | ||
3326 | 3094 | fi | ||
3327 | 3095 | rm -f conftest.er1 conftest.err | ||
3328 | 3096 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3329 | 3097 | test $ac_status = 0; } | ||
3330 | 3098 | done | ||
3331 | 3099 | |||
3332 | 3100 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3333 | 3101 | /* end confdefs.h. */ | ||
3334 | 3102 | |||
3335 | 3103 | int | ||
3336 | 3104 | main () | ||
3337 | 3105 | { | ||
3338 | 3106 | |||
3339 | 3107 | ; | ||
3340 | 3108 | return 0; | ||
3341 | 3109 | } | ||
3342 | 3110 | _ACEOF | ||
3343 | 3111 | ac_clean_files_save=$ac_clean_files | ||
3344 | 3112 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | ||
3345 | 3113 | # Try to create an executable without -o first, disregard a.out. | ||
3346 | 3114 | # It will help us diagnose broken compilers, and finding out an intuition | ||
3347 | 3115 | # of exeext. | ||
3348 | 3116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | ||
3349 | 3117 | $as_echo_n "checking whether the C compiler works... " >&6; } | ||
3350 | 3118 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||
3351 | 3119 | |||
3352 | 3120 | # The possible output files: | ||
3353 | 3121 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | ||
3354 | 3122 | |||
3355 | 3123 | ac_rmfiles= | ||
3356 | 3124 | for ac_file in $ac_files | ||
3357 | 3125 | do | ||
3358 | 3126 | case $ac_file in | ||
3359 | 3127 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | ||
3360 | 3128 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | ||
3361 | 3129 | esac | ||
3362 | 3130 | done | ||
3363 | 3131 | rm -f $ac_rmfiles | ||
3364 | 3132 | |||
3365 | 3133 | if { { ac_try="$ac_link_default" | ||
3366 | 3134 | case "(($ac_try" in | ||
3367 | 3135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3368 | 3136 | *) ac_try_echo=$ac_try;; | ||
3369 | 3137 | esac | ||
3370 | 3138 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3371 | 3139 | $as_echo "$ac_try_echo"; } >&5 | ||
3372 | 3140 | (eval "$ac_link_default") 2>&5 | ||
3373 | 3141 | ac_status=$? | ||
3374 | 3142 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3375 | 3143 | test $ac_status = 0; }; then : | ||
3376 | 3144 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | ||
3377 | 3145 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | ||
3378 | 3146 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | ||
3379 | 3147 | # so that the user can short-circuit this test for compilers unknown to | ||
3380 | 3148 | # Autoconf. | ||
3381 | 3149 | for ac_file in $ac_files '' | ||
3382 | 3150 | do | ||
3383 | 3151 | test -f "$ac_file" || continue | ||
3384 | 3152 | case $ac_file in | ||
3385 | 3153 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | ||
3386 | 3154 | ;; | ||
3387 | 3155 | [ab].out ) | ||
3388 | 3156 | # We found the default executable, but exeext='' is most | ||
3389 | 3157 | # certainly right. | ||
3390 | 3158 | break;; | ||
3391 | 3159 | *.* ) | ||
3392 | 3160 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | ||
3393 | 3161 | then :; else | ||
3394 | 3162 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
3395 | 3163 | fi | ||
3396 | 3164 | # We set ac_cv_exeext here because the later test for it is not | ||
3397 | 3165 | # safe: cross compilers may not add the suffix if given an `-o' | ||
3398 | 3166 | # argument, so we may need to know it at that point already. | ||
3399 | 3167 | # Even if this section looks crufty: it has the advantage of | ||
3400 | 3168 | # actually working. | ||
3401 | 3169 | break;; | ||
3402 | 3170 | * ) | ||
3403 | 3171 | break;; | ||
3404 | 3172 | esac | ||
3405 | 3173 | done | ||
3406 | 3174 | test "$ac_cv_exeext" = no && ac_cv_exeext= | ||
3407 | 3175 | |||
3408 | 3176 | else | ||
3409 | 3177 | ac_file='' | ||
3410 | 3178 | fi | ||
3411 | 3179 | if test -z "$ac_file"; then : | ||
3412 | 3180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3413 | 3181 | $as_echo "no" >&6; } | ||
3414 | 3182 | $as_echo "$as_me: failed program was:" >&5 | ||
3415 | 3183 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3416 | 3184 | |||
3417 | 3185 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3418 | 3186 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3419 | 3187 | as_fn_error 77 "C compiler cannot create executables | ||
3420 | 3188 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
3421 | 3189 | else | ||
3422 | 3190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
3423 | 3191 | $as_echo "yes" >&6; } | ||
3424 | 3192 | fi | ||
3425 | 3193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | ||
3426 | 3194 | $as_echo_n "checking for C compiler default output file name... " >&6; } | ||
3427 | 3195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | ||
3428 | 3196 | $as_echo "$ac_file" >&6; } | ||
3429 | 3197 | ac_exeext=$ac_cv_exeext | ||
3430 | 3198 | |||
3431 | 3199 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | ||
3432 | 3200 | ac_clean_files=$ac_clean_files_save | ||
3433 | 3201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | ||
3434 | 3202 | $as_echo_n "checking for suffix of executables... " >&6; } | ||
3435 | 3203 | if { { ac_try="$ac_link" | ||
3436 | 3204 | case "(($ac_try" in | ||
3437 | 3205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3438 | 3206 | *) ac_try_echo=$ac_try;; | ||
3439 | 3207 | esac | ||
3440 | 3208 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3441 | 3209 | $as_echo "$ac_try_echo"; } >&5 | ||
3442 | 3210 | (eval "$ac_link") 2>&5 | ||
3443 | 3211 | ac_status=$? | ||
3444 | 3212 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3445 | 3213 | test $ac_status = 0; }; then : | ||
3446 | 3214 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | ||
3447 | 3215 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||
3448 | 3216 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||
3449 | 3217 | # `rm'. | ||
3450 | 3218 | for ac_file in conftest.exe conftest conftest.*; do | ||
3451 | 3219 | test -f "$ac_file" || continue | ||
3452 | 3220 | case $ac_file in | ||
3453 | 3221 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | ||
3454 | 3222 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
3455 | 3223 | break;; | ||
3456 | 3224 | * ) break;; | ||
3457 | 3225 | esac | ||
3458 | 3226 | done | ||
3459 | 3227 | else | ||
3460 | 3228 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3461 | 3229 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3462 | 3230 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | ||
3463 | 3231 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
3464 | 3232 | fi | ||
3465 | 3233 | rm -f conftest conftest$ac_cv_exeext | ||
3466 | 3234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | ||
3467 | 3235 | $as_echo "$ac_cv_exeext" >&6; } | ||
3468 | 3236 | |||
3469 | 3237 | rm -f conftest.$ac_ext | ||
3470 | 3238 | EXEEXT=$ac_cv_exeext | ||
3471 | 3239 | ac_exeext=$EXEEXT | ||
3472 | 3240 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3473 | 3241 | /* end confdefs.h. */ | ||
3474 | 3242 | #include <stdio.h> | ||
3475 | 3243 | int | ||
3476 | 3244 | main () | ||
3477 | 3245 | { | ||
3478 | 3246 | FILE *f = fopen ("conftest.out", "w"); | ||
3479 | 3247 | return ferror (f) || fclose (f) != 0; | ||
3480 | 3248 | |||
3481 | 3249 | ; | ||
3482 | 3250 | return 0; | ||
3483 | 3251 | } | ||
3484 | 3252 | _ACEOF | ||
3485 | 3253 | ac_clean_files="$ac_clean_files conftest.out" | ||
3486 | 3254 | # Check that the compiler produces executables we can run. If not, either | ||
3487 | 3255 | # the compiler is broken, or we cross compile. | ||
3488 | 3256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | ||
3489 | 3257 | $as_echo_n "checking whether we are cross compiling... " >&6; } | ||
3490 | 3258 | if test "$cross_compiling" != yes; then | ||
3491 | 3259 | { { ac_try="$ac_link" | ||
3492 | 3260 | case "(($ac_try" in | ||
3493 | 3261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3494 | 3262 | *) ac_try_echo=$ac_try;; | ||
3495 | 3263 | esac | ||
3496 | 3264 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3497 | 3265 | $as_echo "$ac_try_echo"; } >&5 | ||
3498 | 3266 | (eval "$ac_link") 2>&5 | ||
3499 | 3267 | ac_status=$? | ||
3500 | 3268 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3501 | 3269 | test $ac_status = 0; } | ||
3502 | 3270 | if { ac_try='./conftest$ac_cv_exeext' | ||
3503 | 3271 | { { case "(($ac_try" in | ||
3504 | 3272 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3505 | 3273 | *) ac_try_echo=$ac_try;; | ||
3506 | 3274 | esac | ||
3507 | 3275 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3508 | 3276 | $as_echo "$ac_try_echo"; } >&5 | ||
3509 | 3277 | (eval "$ac_try") 2>&5 | ||
3510 | 3278 | ac_status=$? | ||
3511 | 3279 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3512 | 3280 | test $ac_status = 0; }; }; then | ||
3513 | 3281 | cross_compiling=no | ||
3514 | 3282 | else | ||
3515 | 3283 | if test "$cross_compiling" = maybe; then | ||
3516 | 3284 | cross_compiling=yes | ||
3517 | 3285 | else | ||
3518 | 3286 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3519 | 3287 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3520 | 3288 | as_fn_error $? "cannot run C compiled programs. | ||
3521 | 3289 | If you meant to cross compile, use \`--host'. | ||
3522 | 3290 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
3523 | 3291 | fi | ||
3524 | 3292 | fi | ||
3525 | 3293 | fi | ||
3526 | 3294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | ||
3527 | 3295 | $as_echo "$cross_compiling" >&6; } | ||
3528 | 3296 | |||
3529 | 3297 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | ||
3530 | 3298 | ac_clean_files=$ac_clean_files_save | ||
3531 | 3299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | ||
3532 | 3300 | $as_echo_n "checking for suffix of object files... " >&6; } | ||
3533 | 3301 | if test "${ac_cv_objext+set}" = set; then : | ||
3534 | 3302 | $as_echo_n "(cached) " >&6 | ||
3535 | 3303 | else | ||
3536 | 3304 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3537 | 3305 | /* end confdefs.h. */ | ||
3538 | 3306 | |||
3539 | 3307 | int | ||
3540 | 3308 | main () | ||
3541 | 3309 | { | ||
3542 | 3310 | |||
3543 | 3311 | ; | ||
3544 | 3312 | return 0; | ||
3545 | 3313 | } | ||
3546 | 3314 | _ACEOF | ||
3547 | 3315 | rm -f conftest.o conftest.obj | ||
3548 | 3316 | if { { ac_try="$ac_compile" | ||
3549 | 3317 | case "(($ac_try" in | ||
3550 | 3318 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3551 | 3319 | *) ac_try_echo=$ac_try;; | ||
3552 | 3320 | esac | ||
3553 | 3321 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3554 | 3322 | $as_echo "$ac_try_echo"; } >&5 | ||
3555 | 3323 | (eval "$ac_compile") 2>&5 | ||
3556 | 3324 | ac_status=$? | ||
3557 | 3325 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3558 | 3326 | test $ac_status = 0; }; then : | ||
3559 | 3327 | for ac_file in conftest.o conftest.obj conftest.*; do | ||
3560 | 3328 | test -f "$ac_file" || continue; | ||
3561 | 3329 | case $ac_file in | ||
3562 | 3330 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | ||
3563 | 3331 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | ||
3564 | 3332 | break;; | ||
3565 | 3333 | esac | ||
3566 | 3334 | done | ||
3567 | 3335 | else | ||
3568 | 3336 | $as_echo "$as_me: failed program was:" >&5 | ||
3569 | 3337 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3570 | 3338 | |||
3571 | 3339 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3572 | 3340 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3573 | 3341 | as_fn_error $? "cannot compute suffix of object files: cannot compile | ||
3574 | 3342 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
3575 | 3343 | fi | ||
3576 | 3344 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | ||
3577 | 3345 | fi | ||
3578 | 3346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | ||
3579 | 3347 | $as_echo "$ac_cv_objext" >&6; } | ||
3580 | 3348 | OBJEXT=$ac_cv_objext | ||
3581 | 3349 | ac_objext=$OBJEXT | ||
3582 | 3350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | ||
3583 | 3351 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | ||
3584 | 3352 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | ||
3585 | 3353 | $as_echo_n "(cached) " >&6 | ||
3586 | 3354 | else | ||
3587 | 3355 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3588 | 3356 | /* end confdefs.h. */ | ||
3589 | 3357 | |||
3590 | 3358 | int | ||
3591 | 3359 | main () | ||
3592 | 3360 | { | ||
3593 | 3361 | #ifndef __GNUC__ | ||
3594 | 3362 | choke me | ||
3595 | 3363 | #endif | ||
3596 | 3364 | |||
3597 | 3365 | ; | ||
3598 | 3366 | return 0; | ||
3599 | 3367 | } | ||
3600 | 3368 | _ACEOF | ||
3601 | 3369 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3602 | 3370 | ac_compiler_gnu=yes | ||
3603 | 3371 | else | ||
3604 | 3372 | ac_compiler_gnu=no | ||
3605 | 3373 | fi | ||
3606 | 3374 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3607 | 3375 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
3608 | 3376 | |||
3609 | 3377 | fi | ||
3610 | 3378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | ||
3611 | 3379 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | ||
3612 | 3380 | if test $ac_compiler_gnu = yes; then | ||
3613 | 3381 | GCC=yes | ||
3614 | 3382 | else | ||
3615 | 3383 | GCC= | ||
3616 | 3384 | fi | ||
3617 | 3385 | ac_test_CFLAGS=${CFLAGS+set} | ||
3618 | 3386 | ac_save_CFLAGS=$CFLAGS | ||
3619 | 3387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | ||
3620 | 3388 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | ||
3621 | 3389 | if test "${ac_cv_prog_cc_g+set}" = set; then : | ||
3622 | 3390 | $as_echo_n "(cached) " >&6 | ||
3623 | 3391 | else | ||
3624 | 3392 | ac_save_c_werror_flag=$ac_c_werror_flag | ||
3625 | 3393 | ac_c_werror_flag=yes | ||
3626 | 3394 | ac_cv_prog_cc_g=no | ||
3627 | 3395 | CFLAGS="-g" | ||
3628 | 3396 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3629 | 3397 | /* end confdefs.h. */ | ||
3630 | 3398 | |||
3631 | 3399 | int | ||
3632 | 3400 | main () | ||
3633 | 3401 | { | ||
3634 | 3402 | |||
3635 | 3403 | ; | ||
3636 | 3404 | return 0; | ||
3637 | 3405 | } | ||
3638 | 3406 | _ACEOF | ||
3639 | 3407 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3640 | 3408 | ac_cv_prog_cc_g=yes | ||
3641 | 3409 | else | ||
3642 | 3410 | CFLAGS="" | ||
3643 | 3411 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3644 | 3412 | /* end confdefs.h. */ | ||
3645 | 3413 | |||
3646 | 3414 | int | ||
3647 | 3415 | main () | ||
3648 | 3416 | { | ||
3649 | 3417 | |||
3650 | 3418 | ; | ||
3651 | 3419 | return 0; | ||
3652 | 3420 | } | ||
3653 | 3421 | _ACEOF | ||
3654 | 3422 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3655 | 3423 | |||
3656 | 3424 | else | ||
3657 | 3425 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
3658 | 3426 | CFLAGS="-g" | ||
3659 | 3427 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3660 | 3428 | /* end confdefs.h. */ | ||
3661 | 3429 | |||
3662 | 3430 | int | ||
3663 | 3431 | main () | ||
3664 | 3432 | { | ||
3665 | 3433 | |||
3666 | 3434 | ; | ||
3667 | 3435 | return 0; | ||
3668 | 3436 | } | ||
3669 | 3437 | _ACEOF | ||
3670 | 3438 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3671 | 3439 | ac_cv_prog_cc_g=yes | ||
3672 | 3440 | fi | ||
3673 | 3441 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3674 | 3442 | fi | ||
3675 | 3443 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3676 | 3444 | fi | ||
3677 | 3445 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3678 | 3446 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
3679 | 3447 | fi | ||
3680 | 3448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | ||
3681 | 3449 | $as_echo "$ac_cv_prog_cc_g" >&6; } | ||
3682 | 3450 | if test "$ac_test_CFLAGS" = set; then | ||
3683 | 3451 | CFLAGS=$ac_save_CFLAGS | ||
3684 | 3452 | elif test $ac_cv_prog_cc_g = yes; then | ||
3685 | 3453 | if test "$GCC" = yes; then | ||
3686 | 3454 | CFLAGS="-g -O2" | ||
3687 | 3455 | else | ||
3688 | 3456 | CFLAGS="-g" | ||
3689 | 3457 | fi | ||
3690 | 3458 | else | ||
3691 | 3459 | if test "$GCC" = yes; then | ||
3692 | 3460 | CFLAGS="-O2" | ||
3693 | 3461 | else | ||
3694 | 3462 | CFLAGS= | ||
3695 | 3463 | fi | ||
3696 | 3464 | fi | ||
3697 | 3465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | ||
3698 | 3466 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | ||
3699 | 3467 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | ||
3700 | 3468 | $as_echo_n "(cached) " >&6 | ||
3701 | 3469 | else | ||
3702 | 3470 | ac_cv_prog_cc_c89=no | ||
3703 | 3471 | ac_save_CC=$CC | ||
3704 | 3472 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3705 | 3473 | /* end confdefs.h. */ | ||
3706 | 3474 | #include <stdarg.h> | ||
3707 | 3475 | #include <stdio.h> | ||
3708 | 3476 | #include <sys/types.h> | ||
3709 | 3477 | #include <sys/stat.h> | ||
3710 | 3478 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
3711 | 3479 | struct buf { int x; }; | ||
3712 | 3480 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
3713 | 3481 | static char *e (p, i) | ||
3714 | 3482 | char **p; | ||
3715 | 3483 | int i; | ||
3716 | 3484 | { | ||
3717 | 3485 | return p[i]; | ||
3718 | 3486 | } | ||
3719 | 3487 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
3720 | 3488 | { | ||
3721 | 3489 | char *s; | ||
3722 | 3490 | va_list v; | ||
3723 | 3491 | va_start (v,p); | ||
3724 | 3492 | s = g (p, va_arg (v,int)); | ||
3725 | 3493 | va_end (v); | ||
3726 | 3494 | return s; | ||
3727 | 3495 | } | ||
3728 | 3496 | |||
3729 | 3497 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
3730 | 3498 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
3731 | 3499 | These don't provoke an error unfortunately, instead are silently treated | ||
3732 | 3500 | as 'x'. The following induces an error, until -std is added to get | ||
3733 | 3501 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
3734 | 3502 | array size at least. It's necessary to write '\x00'==0 to get something | ||
3735 | 3503 | that's true only with -std. */ | ||
3736 | 3504 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
3737 | 3505 | |||
3738 | 3506 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
3739 | 3507 | inside strings and character constants. */ | ||
3740 | 3508 | #define FOO(x) 'x' | ||
3741 | 3509 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
3742 | 3510 | |||
3743 | 3511 | int test (int i, double x); | ||
3744 | 3512 | struct s1 {int (*f) (int a);}; | ||
3745 | 3513 | struct s2 {int (*f) (double a);}; | ||
3746 | 3514 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
3747 | 3515 | int argc; | ||
3748 | 3516 | char **argv; | ||
3749 | 3517 | int | ||
3750 | 3518 | main () | ||
3751 | 3519 | { | ||
3752 | 3520 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
3753 | 3521 | ; | ||
3754 | 3522 | return 0; | ||
3755 | 3523 | } | ||
3756 | 3524 | _ACEOF | ||
3757 | 3525 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
3758 | 3526 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
3759 | 3527 | do | ||
3760 | 3528 | CC="$ac_save_CC $ac_arg" | ||
3761 | 3529 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3762 | 3530 | ac_cv_prog_cc_c89=$ac_arg | ||
3763 | 3531 | fi | ||
3764 | 3532 | rm -f core conftest.err conftest.$ac_objext | ||
3765 | 3533 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
3766 | 3534 | done | ||
3767 | 3535 | rm -f conftest.$ac_ext | ||
3768 | 3536 | CC=$ac_save_CC | ||
3769 | 3537 | |||
3770 | 3538 | fi | ||
3771 | 3539 | # AC_CACHE_VAL | ||
3772 | 3540 | case "x$ac_cv_prog_cc_c89" in | ||
3773 | 3541 | x) | ||
3774 | 3542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
3775 | 3543 | $as_echo "none needed" >&6; } ;; | ||
3776 | 3544 | xno) | ||
3777 | 3545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
3778 | 3546 | $as_echo "unsupported" >&6; } ;; | ||
3779 | 3547 | *) | ||
3780 | 3548 | CC="$CC $ac_cv_prog_cc_c89" | ||
3781 | 3549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | ||
3782 | 3550 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | ||
3783 | 3551 | esac | ||
3784 | 3552 | if test "x$ac_cv_prog_cc_c89" != xno; then : | ||
3785 | 3553 | |||
3786 | 3554 | fi | ||
3787 | 3555 | |||
3788 | 3556 | ac_ext=c | ||
3789 | 3557 | ac_cpp='$CPP $CPPFLAGS' | ||
3790 | 3558 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3791 | 3559 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3792 | 3560 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3793 | 3561 | |||
3794 | 3562 | depcc="$CC" am_compiler_list= | ||
3795 | 3563 | |||
3796 | 3564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | ||
3797 | 3565 | $as_echo_n "checking dependency style of $depcc... " >&6; } | ||
3798 | 3566 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | ||
3799 | 3567 | $as_echo_n "(cached) " >&6 | ||
3800 | 3568 | else | ||
3801 | 3569 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
3802 | 3570 | # We make a subdir and do the tests there. Otherwise we can end up | ||
3803 | 3571 | # making bogus files that we don't know about and never remove. For | ||
3804 | 3572 | # instance it was reported that on HP-UX the gcc test will end up | ||
3805 | 3573 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
3806 | 3574 | # in D'. | ||
3807 | 3575 | mkdir conftest.dir | ||
3808 | 3576 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
3809 | 3577 | # using a relative directory. | ||
3810 | 3578 | cp "$am_depcomp" conftest.dir | ||
3811 | 3579 | cd conftest.dir | ||
3812 | 3580 | # We will build objects and dependencies in a subdirectory because | ||
3813 | 3581 | # it helps to detect inapplicable dependency modes. For instance | ||
3814 | 3582 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
3815 | 3583 | # side effect of compilation, but ICC will put the dependencies in | ||
3816 | 3584 | # the current directory while Tru64 will put them in the object | ||
3817 | 3585 | # directory. | ||
3818 | 3586 | mkdir sub | ||
3819 | 3587 | |||
3820 | 3588 | am_cv_CC_dependencies_compiler_type=none | ||
3821 | 3589 | if test "$am_compiler_list" = ""; then | ||
3822 | 3590 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | ||
3823 | 3591 | fi | ||
3824 | 3592 | am__universal=false | ||
3825 | 3593 | case " $depcc " in #( | ||
3826 | 3594 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | ||
3827 | 3595 | esac | ||
3828 | 3596 | |||
3829 | 3597 | for depmode in $am_compiler_list; do | ||
3830 | 3598 | # Setup a source with many dependencies, because some compilers | ||
3831 | 3599 | # like to wrap large dependency lists on column 80 (with \), and | ||
3832 | 3600 | # we should not choose a depcomp mode which is confused by this. | ||
3833 | 3601 | # | ||
3834 | 3602 | # We need to recreate these files for each test, as the compiler may | ||
3835 | 3603 | # overwrite some of them when testing with obscure command lines. | ||
3836 | 3604 | # This happens at least with the AIX C compiler. | ||
3837 | 3605 | : > sub/conftest.c | ||
3838 | 3606 | for i in 1 2 3 4 5 6; do | ||
3839 | 3607 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
3840 | 3608 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | ||
3841 | 3609 | # Solaris 8's {/usr,}/bin/sh. | ||
3842 | 3610 | touch sub/conftst$i.h | ||
3843 | 3611 | done | ||
3844 | 3612 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
3845 | 3613 | |||
3846 | 3614 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
3847 | 3615 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
3848 | 3616 | # handle `-M -o', and we need to detect this. Also, some Intel | ||
3849 | 3617 | # versions had trouble with output in subdirs | ||
3850 | 3618 | am__obj=sub/conftest.${OBJEXT-o} | ||
3851 | 3619 | am__minus_obj="-o $am__obj" | ||
3852 | 3620 | case $depmode in | ||
3853 | 3621 | gcc) | ||
3854 | 3622 | # This depmode causes a compiler race in universal mode. | ||
3855 | 3623 | test "$am__universal" = false || continue | ||
3856 | 3624 | ;; | ||
3857 | 3625 | nosideeffect) | ||
3858 | 3626 | # after this tag, mechanisms are not by side-effect, so they'll | ||
3859 | 3627 | # only be used when explicitly requested | ||
3860 | 3628 | if test "x$enable_dependency_tracking" = xyes; then | ||
3861 | 3629 | continue | ||
3862 | 3630 | else | ||
3863 | 3631 | break | ||
3864 | 3632 | fi | ||
3865 | 3633 | ;; | ||
3866 | 3634 | msvisualcpp | msvcmsys) | ||
3867 | 3635 | # This compiler won't grok `-c -o', but also, the minuso test has | ||
3868 | 3636 | # not run yet. These depmodes are late enough in the game, and | ||
3869 | 3637 | # so weak that their functioning should not be impacted. | ||
3870 | 3638 | am__obj=conftest.${OBJEXT-o} | ||
3871 | 3639 | am__minus_obj= | ||
3872 | 3640 | ;; | ||
3873 | 3641 | none) break ;; | ||
3874 | 3642 | esac | ||
3875 | 3643 | if depmode=$depmode \ | ||
3876 | 3644 | source=sub/conftest.c object=$am__obj \ | ||
3877 | 3645 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
3878 | 3646 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | ||
3879 | 3647 | >/dev/null 2>conftest.err && | ||
3880 | 3648 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | ||
3881 | 3649 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
3882 | 3650 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | ||
3883 | 3651 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
3884 | 3652 | # icc doesn't choke on unknown options, it will just issue warnings | ||
3885 | 3653 | # or remarks (even with -Werror). So we grep stderr for any message | ||
3886 | 3654 | # that says an option was ignored or not supported. | ||
3887 | 3655 | # When given -MP, icc 7.0 and 7.1 complain thusly: | ||
3888 | 3656 | # icc: Command line warning: ignoring option '-M'; no argument required | ||
3889 | 3657 | # The diagnosis changed in icc 8.0: | ||
3890 | 3658 | # icc: Command line remark: option '-MP' not supported | ||
3891 | 3659 | if (grep 'ignoring option' conftest.err || | ||
3892 | 3660 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | ||
3893 | 3661 | am_cv_CC_dependencies_compiler_type=$depmode | ||
3894 | 3662 | break | ||
3895 | 3663 | fi | ||
3896 | 3664 | fi | ||
3897 | 3665 | done | ||
3898 | 3666 | |||
3899 | 3667 | cd .. | ||
3900 | 3668 | rm -rf conftest.dir | ||
3901 | 3669 | else | ||
3902 | 3670 | am_cv_CC_dependencies_compiler_type=none | ||
3903 | 3671 | fi | ||
3904 | 3672 | |||
3905 | 3673 | fi | ||
3906 | 3674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | ||
3907 | 3675 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | ||
3908 | 3676 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | ||
3909 | 3677 | |||
3910 | 3678 | if | ||
3911 | 3679 | test "x$enable_dependency_tracking" != xno \ | ||
3912 | 3680 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | ||
3913 | 3681 | am__fastdepCC_TRUE= | ||
3914 | 3682 | am__fastdepCC_FALSE='#' | ||
3915 | 3683 | else | ||
3916 | 3684 | am__fastdepCC_TRUE='#' | ||
3917 | 3685 | am__fastdepCC_FALSE= | ||
3918 | 3686 | fi | ||
3919 | 3687 | |||
3920 | 3688 | |||
3921 | 3689 | if test "x$CC" != xcc; then | ||
3922 | 3690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 | ||
3923 | 3691 | $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } | ||
3924 | 3692 | else | ||
3925 | 3693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 | ||
3926 | 3694 | $as_echo_n "checking whether cc understands -c and -o together... " >&6; } | ||
3927 | 3695 | fi | ||
3928 | 3696 | set dummy $CC; ac_cc=`$as_echo "$2" | | ||
3929 | 3697 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | ||
3930 | 3698 | if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then : | ||
3931 | 3699 | $as_echo_n "(cached) " >&6 | ||
3932 | 3700 | else | ||
3933 | 3701 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3934 | 3702 | /* end confdefs.h. */ | ||
3935 | 3703 | |||
3936 | 3704 | int | ||
3937 | 3705 | main () | ||
3938 | 3706 | { | ||
3939 | 3707 | |||
3940 | 3708 | ; | ||
3941 | 3709 | return 0; | ||
3942 | 3710 | } | ||
3943 | 3711 | _ACEOF | ||
3944 | 3712 | # Make sure it works both with $CC and with simple cc. | ||
3945 | 3713 | # We do the test twice because some compilers refuse to overwrite an | ||
3946 | 3714 | # existing .o file with -o, though they will create one. | ||
3947 | 3715 | ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' | ||
3948 | 3716 | rm -f conftest2.* | ||
3949 | 3717 | if { { case "(($ac_try" in | ||
3950 | 3718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3951 | 3719 | *) ac_try_echo=$ac_try;; | ||
3952 | 3720 | esac | ||
3953 | 3721 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3954 | 3722 | $as_echo "$ac_try_echo"; } >&5 | ||
3955 | 3723 | (eval "$ac_try") 2>&5 | ||
3956 | 3724 | ac_status=$? | ||
3957 | 3725 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3958 | 3726 | test $ac_status = 0; } && | ||
3959 | 3727 | test -f conftest2.$ac_objext && { { case "(($ac_try" in | ||
3960 | 3728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3961 | 3729 | *) ac_try_echo=$ac_try;; | ||
3962 | 3730 | esac | ||
3963 | 3731 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3964 | 3732 | $as_echo "$ac_try_echo"; } >&5 | ||
3965 | 3733 | (eval "$ac_try") 2>&5 | ||
3966 | 3734 | ac_status=$? | ||
3967 | 3735 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3968 | 3736 | test $ac_status = 0; }; | ||
3969 | 3737 | then | ||
3970 | 3738 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes | ||
3971 | 3739 | if test "x$CC" != xcc; then | ||
3972 | 3740 | # Test first that cc exists at all. | ||
3973 | 3741 | if { ac_try='cc -c conftest.$ac_ext >&5' | ||
3974 | 3742 | { { case "(($ac_try" in | ||
3975 | 3743 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3976 | 3744 | *) ac_try_echo=$ac_try;; | ||
3977 | 3745 | esac | ||
3978 | 3746 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3979 | 3747 | $as_echo "$ac_try_echo"; } >&5 | ||
3980 | 3748 | (eval "$ac_try") 2>&5 | ||
3981 | 3749 | ac_status=$? | ||
3982 | 3750 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3983 | 3751 | test $ac_status = 0; }; }; then | ||
3984 | 3752 | ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' | ||
3985 | 3753 | rm -f conftest2.* | ||
3986 | 3754 | if { { case "(($ac_try" in | ||
3987 | 3755 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3988 | 3756 | *) ac_try_echo=$ac_try;; | ||
3989 | 3757 | esac | ||
3990 | 3758 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3991 | 3759 | $as_echo "$ac_try_echo"; } >&5 | ||
3992 | 3760 | (eval "$ac_try") 2>&5 | ||
3993 | 3761 | ac_status=$? | ||
3994 | 3762 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3995 | 3763 | test $ac_status = 0; } && | ||
3996 | 3764 | test -f conftest2.$ac_objext && { { case "(($ac_try" in | ||
3997 | 3765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3998 | 3766 | *) ac_try_echo=$ac_try;; | ||
3999 | 3767 | esac | ||
4000 | 3768 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
4001 | 3769 | $as_echo "$ac_try_echo"; } >&5 | ||
4002 | 3770 | (eval "$ac_try") 2>&5 | ||
4003 | 3771 | ac_status=$? | ||
4004 | 3772 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
4005 | 3773 | test $ac_status = 0; }; | ||
4006 | 3774 | then | ||
4007 | 3775 | # cc works too. | ||
4008 | 3776 | : | ||
4009 | 3777 | else | ||
4010 | 3778 | # cc exists but doesn't like -o. | ||
4011 | 3779 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | ||
4012 | 3780 | fi | ||
4013 | 3781 | fi | ||
4014 | 3782 | fi | ||
4015 | 3783 | else | ||
4016 | 3784 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | ||
4017 | 3785 | fi | ||
4018 | 3786 | rm -f core conftest* | ||
4019 | 3787 | |||
4020 | 3788 | fi | ||
4021 | 3789 | if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then | ||
4022 | 3790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
4023 | 3791 | $as_echo "yes" >&6; } | ||
4024 | 3792 | else | ||
4025 | 3793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4026 | 3794 | $as_echo "no" >&6; } | ||
4027 | 3795 | |||
4028 | 3796 | $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h | ||
4029 | 3797 | |||
4030 | 3798 | fi | ||
4031 | 3799 | |||
4032 | 3800 | # FIXME: we rely on the cache variable name because | ||
4033 | 3801 | # there is no other way. | ||
4034 | 3802 | set dummy $CC | ||
4035 | 3803 | am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | ||
4036 | 3804 | eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o | ||
4037 | 3805 | if test "$am_t" != yes; then | ||
4038 | 3806 | # Losing compiler, so override with the script. | ||
4039 | 3807 | # FIXME: It is wrong to rewrite CC. | ||
4040 | 3808 | # But if we don't then we get into trouble of one sort or another. | ||
4041 | 3809 | # A longer-term fix would be to have automake use am__CC in this case, | ||
4042 | 3810 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | ||
4043 | 3811 | CC="$am_aux_dir/compile $CC" | ||
4044 | 3812 | fi | ||
4045 | 3813 | |||
4046 | 3814 | |||
4047 | 3815 | |||
4048 | 3816 | ac_ext=c | ||
4049 | 3817 | ac_cpp='$CPP $CPPFLAGS' | ||
4050 | 3818 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
4051 | 3819 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
4052 | 3820 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
4053 | 3821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | ||
4054 | 3822 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | ||
4055 | 3823 | # On Suns, sometimes $CPP names a directory. | ||
4056 | 3824 | if test -n "$CPP" && test -d "$CPP"; then | ||
4057 | 3825 | CPP= | ||
4058 | 3826 | fi | ||
4059 | 3827 | if test -z "$CPP"; then | ||
4060 | 3828 | if test "${ac_cv_prog_CPP+set}" = set; then : | ||
4061 | 3829 | $as_echo_n "(cached) " >&6 | ||
4062 | 3830 | else | ||
4063 | 3831 | # Double quotes because CPP needs to be expanded | ||
4064 | 3832 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
4065 | 3833 | do | ||
4066 | 3834 | ac_preproc_ok=false | ||
4067 | 3835 | for ac_c_preproc_warn_flag in '' yes | ||
4068 | 3836 | do | ||
4069 | 3837 | # Use a header file that comes with gcc, so configuring glibc | ||
4070 | 3838 | # with a fresh cross-compiler works. | ||
4071 | 3839 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
4072 | 3840 | # <limits.h> exists even on freestanding compilers. | ||
4073 | 3841 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
4074 | 3842 | # not just through cpp. "Syntax error" is here to catch this case. | ||
4075 | 3843 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4076 | 3844 | /* end confdefs.h. */ | ||
4077 | 3845 | #ifdef __STDC__ | ||
4078 | 3846 | # include <limits.h> | ||
4079 | 3847 | #else | ||
4080 | 3848 | # include <assert.h> | ||
4081 | 3849 | #endif | ||
4082 | 3850 | Syntax error | ||
4083 | 3851 | _ACEOF | ||
4084 | 3852 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
4085 | 3853 | |||
4086 | 3854 | else | ||
4087 | 3855 | # Broken: fails on valid input. | ||
4088 | 3856 | continue | ||
4089 | 3857 | fi | ||
4090 | 3858 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
4091 | 3859 | |||
4092 | 3860 | # OK, works on sane cases. Now check whether nonexistent headers | ||
4093 | 3861 | # can be detected and how. | ||
4094 | 3862 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4095 | 3863 | /* end confdefs.h. */ | ||
4096 | 3864 | #include <ac_nonexistent.h> | ||
4097 | 3865 | _ACEOF | ||
4098 | 3866 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
4099 | 3867 | # Broken: success on invalid input. | ||
4100 | 3868 | continue | ||
4101 | 3869 | else | ||
4102 | 3870 | # Passes both tests. | ||
4103 | 3871 | ac_preproc_ok=: | ||
4104 | 3872 | break | ||
4105 | 3873 | fi | ||
4106 | 3874 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
4107 | 3875 | |||
4108 | 3876 | done | ||
4109 | 3877 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
4110 | 3878 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
4111 | 3879 | if $ac_preproc_ok; then : | ||
4112 | 3880 | break | ||
4113 | 3881 | fi | ||
4114 | 3882 | |||
4115 | 3883 | done | ||
4116 | 3884 | ac_cv_prog_CPP=$CPP | ||
4117 | 3885 | |||
4118 | 3886 | fi | ||
4119 | 3887 | CPP=$ac_cv_prog_CPP | ||
4120 | 3888 | else | ||
4121 | 3889 | ac_cv_prog_CPP=$CPP | ||
4122 | 3890 | fi | ||
4123 | 3891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | ||
4124 | 3892 | $as_echo "$CPP" >&6; } | ||
4125 | 3893 | ac_preproc_ok=false | ||
4126 | 3894 | for ac_c_preproc_warn_flag in '' yes | ||
4127 | 3895 | do | ||
4128 | 3896 | # Use a header file that comes with gcc, so configuring glibc | ||
4129 | 3897 | # with a fresh cross-compiler works. | ||
4130 | 3898 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
4131 | 3899 | # <limits.h> exists even on freestanding compilers. | ||
4132 | 3900 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
4133 | 3901 | # not just through cpp. "Syntax error" is here to catch this case. | ||
4134 | 3902 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4135 | 3903 | /* end confdefs.h. */ | ||
4136 | 3904 | #ifdef __STDC__ | ||
4137 | 3905 | # include <limits.h> | ||
4138 | 3906 | #else | ||
4139 | 3907 | # include <assert.h> | ||
4140 | 3908 | #endif | ||
4141 | 3909 | Syntax error | ||
4142 | 3910 | _ACEOF | ||
4143 | 3911 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
4144 | 3912 | |||
4145 | 3913 | else | ||
4146 | 3914 | # Broken: fails on valid input. | ||
4147 | 3915 | continue | ||
4148 | 3916 | fi | ||
4149 | 3917 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
4150 | 3918 | |||
4151 | 3919 | # OK, works on sane cases. Now check whether nonexistent headers | ||
4152 | 3920 | # can be detected and how. | ||
4153 | 3921 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4154 | 3922 | /* end confdefs.h. */ | ||
4155 | 3923 | #include <ac_nonexistent.h> | ||
4156 | 3924 | _ACEOF | ||
4157 | 3925 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
4158 | 3926 | # Broken: success on invalid input. | ||
4159 | 3927 | continue | ||
4160 | 3928 | else | ||
4161 | 3929 | # Passes both tests. | ||
4162 | 3930 | ac_preproc_ok=: | ||
4163 | 3931 | break | ||
4164 | 3932 | fi | ||
4165 | 3933 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
4166 | 3934 | |||
4167 | 3935 | done | ||
4168 | 3936 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
4169 | 3937 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
4170 | 3938 | if $ac_preproc_ok; then : | ||
4171 | 3939 | |||
4172 | 3940 | else | ||
4173 | 3941 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
4174 | 3942 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
4175 | 3943 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | ||
4176 | 3944 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
4177 | 3945 | fi | ||
4178 | 3946 | |||
4179 | 3947 | ac_ext=c | ||
4180 | 3948 | ac_cpp='$CPP $CPPFLAGS' | ||
4181 | 3949 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
4182 | 3950 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
4183 | 3951 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
4184 | 3952 | |||
4185 | 3953 | |||
4186 | 3954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | ||
4187 | 3955 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | ||
4188 | 3956 | if test "${ac_cv_path_GREP+set}" = set; then : | ||
4189 | 3957 | $as_echo_n "(cached) " >&6 | ||
4190 | 3958 | else | ||
4191 | 3959 | if test -z "$GREP"; then | ||
4192 | 3960 | ac_path_GREP_found=false | ||
4193 | 3961 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
4194 | 3962 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4195 | 3963 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
4196 | 3964 | do | ||
4197 | 3965 | IFS=$as_save_IFS | ||
4198 | 3966 | test -z "$as_dir" && as_dir=. | ||
4199 | 3967 | for ac_prog in grep ggrep; do | ||
4200 | 3968 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4201 | 3969 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | ||
4202 | 3970 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | ||
4203 | 3971 | # Check for GNU ac_path_GREP and select it if it is found. | ||
4204 | 3972 | # Check for GNU $ac_path_GREP | ||
4205 | 3973 | case `"$ac_path_GREP" --version 2>&1` in | ||
4206 | 3974 | *GNU*) | ||
4207 | 3975 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | ||
4208 | 3976 | *) | ||
4209 | 3977 | ac_count=0 | ||
4210 | 3978 | $as_echo_n 0123456789 >"conftest.in" | ||
4211 | 3979 | while : | ||
4212 | 3980 | do | ||
4213 | 3981 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
4214 | 3982 | mv "conftest.tmp" "conftest.in" | ||
4215 | 3983 | cp "conftest.in" "conftest.nl" | ||
4216 | 3984 | $as_echo 'GREP' >> "conftest.nl" | ||
4217 | 3985 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
4218 | 3986 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
4219 | 3987 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
4220 | 3988 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | ||
4221 | 3989 | # Best one so far, save it but keep looking for a better one | ||
4222 | 3990 | ac_cv_path_GREP="$ac_path_GREP" | ||
4223 | 3991 | ac_path_GREP_max=$ac_count | ||
4224 | 3992 | fi | ||
4225 | 3993 | # 10*(2^10) chars as input seems more than enough | ||
4226 | 3994 | test $ac_count -gt 10 && break | ||
4227 | 3995 | done | ||
4228 | 3996 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
4229 | 3997 | esac | ||
4230 | 3998 | |||
4231 | 3999 | $ac_path_GREP_found && break 3 | ||
4232 | 4000 | done | ||
4233 | 4001 | done | ||
4234 | 4002 | done | ||
4235 | 4003 | IFS=$as_save_IFS | ||
4236 | 4004 | if test -z "$ac_cv_path_GREP"; then | ||
4237 | 4005 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||
4238 | 4006 | fi | ||
4239 | 4007 | else | ||
4240 | 4008 | ac_cv_path_GREP=$GREP | ||
4241 | 4009 | fi | ||
4242 | 4010 | |||
4243 | 4011 | fi | ||
4244 | 4012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | ||
4245 | 4013 | $as_echo "$ac_cv_path_GREP" >&6; } | ||
4246 | 4014 | GREP="$ac_cv_path_GREP" | ||
4247 | 4015 | |||
4248 | 4016 | |||
4249 | 4017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | ||
4250 | 4018 | $as_echo_n "checking for egrep... " >&6; } | ||
4251 | 4019 | if test "${ac_cv_path_EGREP+set}" = set; then : | ||
4252 | 4020 | $as_echo_n "(cached) " >&6 | ||
4253 | 4021 | else | ||
4254 | 4022 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||
4255 | 4023 | then ac_cv_path_EGREP="$GREP -E" | ||
4256 | 4024 | else | ||
4257 | 4025 | if test -z "$EGREP"; then | ||
4258 | 4026 | ac_path_EGREP_found=false | ||
4259 | 4027 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
4260 | 4028 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4261 | 4029 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
4262 | 4030 | do | ||
4263 | 4031 | IFS=$as_save_IFS | ||
4264 | 4032 | test -z "$as_dir" && as_dir=. | ||
4265 | 4033 | for ac_prog in egrep; do | ||
4266 | 4034 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4267 | 4035 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
4268 | 4036 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | ||
4269 | 4037 | # Check for GNU ac_path_EGREP and select it if it is found. | ||
4270 | 4038 | # Check for GNU $ac_path_EGREP | ||
4271 | 4039 | case `"$ac_path_EGREP" --version 2>&1` in | ||
4272 | 4040 | *GNU*) | ||
4273 | 4041 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||
4274 | 4042 | *) | ||
4275 | 4043 | ac_count=0 | ||
4276 | 4044 | $as_echo_n 0123456789 >"conftest.in" | ||
4277 | 4045 | while : | ||
4278 | 4046 | do | ||
4279 | 4047 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
4280 | 4048 | mv "conftest.tmp" "conftest.in" | ||
4281 | 4049 | cp "conftest.in" "conftest.nl" | ||
4282 | 4050 | $as_echo 'EGREP' >> "conftest.nl" | ||
4283 | 4051 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
4284 | 4052 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
4285 | 4053 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
4286 | 4054 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||
4287 | 4055 | # Best one so far, save it but keep looking for a better one | ||
4288 | 4056 | ac_cv_path_EGREP="$ac_path_EGREP" | ||
4289 | 4057 | ac_path_EGREP_max=$ac_count | ||
4290 | 4058 | fi | ||
4291 | 4059 | # 10*(2^10) chars as input seems more than enough | ||
4292 | 4060 | test $ac_count -gt 10 && break | ||
4293 | 4061 | done | ||
4294 | 4062 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
4295 | 4063 | esac | ||
4296 | 4064 | |||
4297 | 4065 | $ac_path_EGREP_found && break 3 | ||
4298 | 4066 | done | ||
4299 | 4067 | done | ||
4300 | 4068 | done | ||
4301 | 4069 | IFS=$as_save_IFS | ||
4302 | 4070 | if test -z "$ac_cv_path_EGREP"; then | ||
4303 | 4071 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||
4304 | 4072 | fi | ||
4305 | 4073 | else | ||
4306 | 4074 | ac_cv_path_EGREP=$EGREP | ||
4307 | 4075 | fi | ||
4308 | 4076 | |||
4309 | 4077 | fi | ||
4310 | 4078 | fi | ||
4311 | 4079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | ||
4312 | 4080 | $as_echo "$ac_cv_path_EGREP" >&6; } | ||
4313 | 4081 | EGREP="$ac_cv_path_EGREP" | ||
4314 | 4082 | |||
4315 | 4083 | |||
4316 | 4084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | ||
4317 | 4085 | $as_echo_n "checking for ANSI C header files... " >&6; } | ||
4318 | 4086 | if test "${ac_cv_header_stdc+set}" = set; then : | ||
4319 | 4087 | $as_echo_n "(cached) " >&6 | ||
4320 | 4088 | else | ||
4321 | 4089 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4322 | 4090 | /* end confdefs.h. */ | ||
4323 | 4091 | #include <stdlib.h> | ||
4324 | 4092 | #include <stdarg.h> | ||
4325 | 4093 | #include <string.h> | ||
4326 | 4094 | #include <float.h> | ||
4327 | 4095 | |||
4328 | 4096 | int | ||
4329 | 4097 | main () | ||
4330 | 4098 | { | ||
4331 | 4099 | |||
4332 | 4100 | ; | ||
4333 | 4101 | return 0; | ||
4334 | 4102 | } | ||
4335 | 4103 | _ACEOF | ||
4336 | 4104 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4337 | 4105 | ac_cv_header_stdc=yes | ||
4338 | 4106 | else | ||
4339 | 4107 | ac_cv_header_stdc=no | ||
4340 | 4108 | fi | ||
4341 | 4109 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4342 | 4110 | |||
4343 | 4111 | if test $ac_cv_header_stdc = yes; then | ||
4344 | 4112 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
4345 | 4113 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4346 | 4114 | /* end confdefs.h. */ | ||
4347 | 4115 | #include <string.h> | ||
4348 | 4116 | |||
4349 | 4117 | _ACEOF | ||
4350 | 4118 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
4351 | 4119 | $EGREP "memchr" >/dev/null 2>&1; then : | ||
4352 | 4120 | |||
4353 | 4121 | else | ||
4354 | 4122 | ac_cv_header_stdc=no | ||
4355 | 4123 | fi | ||
4356 | 4124 | rm -f conftest* | ||
4357 | 4125 | |||
4358 | 4126 | fi | ||
4359 | 4127 | |||
4360 | 4128 | if test $ac_cv_header_stdc = yes; then | ||
4361 | 4129 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
4362 | 4130 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4363 | 4131 | /* end confdefs.h. */ | ||
4364 | 4132 | #include <stdlib.h> | ||
4365 | 4133 | |||
4366 | 4134 | _ACEOF | ||
4367 | 4135 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
4368 | 4136 | $EGREP "free" >/dev/null 2>&1; then : | ||
4369 | 4137 | |||
4370 | 4138 | else | ||
4371 | 4139 | ac_cv_header_stdc=no | ||
4372 | 4140 | fi | ||
4373 | 4141 | rm -f conftest* | ||
4374 | 4142 | |||
4375 | 4143 | fi | ||
4376 | 4144 | |||
4377 | 4145 | if test $ac_cv_header_stdc = yes; then | ||
4378 | 4146 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
4379 | 4147 | if test "$cross_compiling" = yes; then : | ||
4380 | 4148 | : | ||
4381 | 4149 | else | ||
4382 | 4150 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4383 | 4151 | /* end confdefs.h. */ | ||
4384 | 4152 | #include <ctype.h> | ||
4385 | 4153 | #include <stdlib.h> | ||
4386 | 4154 | #if ((' ' & 0x0FF) == 0x020) | ||
4387 | 4155 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
4388 | 4156 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
4389 | 4157 | #else | ||
4390 | 4158 | # define ISLOWER(c) \ | ||
4391 | 4159 | (('a' <= (c) && (c) <= 'i') \ | ||
4392 | 4160 | || ('j' <= (c) && (c) <= 'r') \ | ||
4393 | 4161 | || ('s' <= (c) && (c) <= 'z')) | ||
4394 | 4162 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
4395 | 4163 | #endif | ||
4396 | 4164 | |||
4397 | 4165 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
4398 | 4166 | int | ||
4399 | 4167 | main () | ||
4400 | 4168 | { | ||
4401 | 4169 | int i; | ||
4402 | 4170 | for (i = 0; i < 256; i++) | ||
4403 | 4171 | if (XOR (islower (i), ISLOWER (i)) | ||
4404 | 4172 | || toupper (i) != TOUPPER (i)) | ||
4405 | 4173 | return 2; | ||
4406 | 4174 | return 0; | ||
4407 | 4175 | } | ||
4408 | 4176 | _ACEOF | ||
4409 | 4177 | if ac_fn_c_try_run "$LINENO"; then : | ||
4410 | 4178 | |||
4411 | 4179 | else | ||
4412 | 4180 | ac_cv_header_stdc=no | ||
4413 | 4181 | fi | ||
4414 | 4182 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
4415 | 4183 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
4416 | 4184 | fi | ||
4417 | 4185 | |||
4418 | 4186 | fi | ||
4419 | 4187 | fi | ||
4420 | 4188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | ||
4421 | 4189 | $as_echo "$ac_cv_header_stdc" >&6; } | ||
4422 | 4190 | if test $ac_cv_header_stdc = yes; then | ||
4423 | 4191 | |||
4424 | 4192 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | ||
4425 | 4193 | |||
4426 | 4194 | fi | ||
4427 | 4195 | |||
4428 | 4196 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||
4429 | 4197 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||
4430 | 4198 | inttypes.h stdint.h unistd.h | ||
4431 | 4199 | do : | ||
4432 | 4200 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
4433 | 4201 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | ||
4434 | 4202 | " | ||
4435 | 4203 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
4436 | 4204 | cat >>confdefs.h <<_ACEOF | ||
4437 | 4205 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
4438 | 4206 | _ACEOF | ||
4439 | 4207 | |||
4440 | 4208 | fi | ||
4441 | 4209 | |||
4442 | 4210 | done | ||
4443 | 4211 | |||
4444 | 4212 | |||
4445 | 4213 | |||
4446 | 4214 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | ||
4447 | 4215 | if test "x$ac_cv_header_minix_config_h" = x""yes; then : | ||
4448 | 4216 | MINIX=yes | ||
4449 | 4217 | else | ||
4450 | 4218 | MINIX= | ||
4451 | 4219 | fi | ||
4452 | 4220 | |||
4453 | 4221 | |||
4454 | 4222 | if test "$MINIX" = yes; then | ||
4455 | 4223 | |||
4456 | 4224 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | ||
4457 | 4225 | |||
4458 | 4226 | |||
4459 | 4227 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | ||
4460 | 4228 | |||
4461 | 4229 | |||
4462 | 4230 | $as_echo "#define _MINIX 1" >>confdefs.h | ||
4463 | 4231 | |||
4464 | 4232 | fi | ||
4465 | 4233 | |||
4466 | 4234 | |||
4467 | 4235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | ||
4468 | 4236 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | ||
4469 | 4237 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : | ||
4470 | 4238 | $as_echo_n "(cached) " >&6 | ||
4471 | 4239 | else | ||
4472 | 4240 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4473 | 4241 | /* end confdefs.h. */ | ||
4474 | 4242 | |||
4475 | 4243 | # define __EXTENSIONS__ 1 | ||
4476 | 4244 | $ac_includes_default | ||
4477 | 4245 | int | ||
4478 | 4246 | main () | ||
4479 | 4247 | { | ||
4480 | 4248 | |||
4481 | 4249 | ; | ||
4482 | 4250 | return 0; | ||
4483 | 4251 | } | ||
4484 | 4252 | _ACEOF | ||
4485 | 4253 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4486 | 4254 | ac_cv_safe_to_define___extensions__=yes | ||
4487 | 4255 | else | ||
4488 | 4256 | ac_cv_safe_to_define___extensions__=no | ||
4489 | 4257 | fi | ||
4490 | 4258 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4491 | 4259 | fi | ||
4492 | 4260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | ||
4493 | 4261 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | ||
4494 | 4262 | test $ac_cv_safe_to_define___extensions__ = yes && | ||
4495 | 4263 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | ||
4496 | 4264 | |||
4497 | 4265 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | ||
4498 | 4266 | |||
4499 | 4267 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | ||
4500 | 4268 | |||
4501 | 4269 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | ||
4502 | 4270 | |||
4503 | 4271 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | ||
4504 | 4272 | |||
4505 | 4273 | |||
4506 | 4274 | |||
4507 | 4275 | # Extract the first word of "setcap", so it can be a program name with args. | ||
4508 | 4276 | set dummy setcap; ac_word=$2 | ||
4509 | 4277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4510 | 4278 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4511 | 4279 | if test "${ac_cv_prog_SETCAP+set}" = set; then : | ||
4512 | 4280 | $as_echo_n "(cached) " >&6 | ||
4513 | 4281 | else | ||
4514 | 4282 | if test -n "$SETCAP"; then | ||
4515 | 4283 | ac_cv_prog_SETCAP="$SETCAP" # Let the user override the test. | ||
4516 | 4284 | else | ||
4517 | 4285 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4518 | 4286 | for as_dir in $PATH$PATH_SEPARATOR/sbin | ||
4519 | 4287 | do | ||
4520 | 4288 | IFS=$as_save_IFS | ||
4521 | 4289 | test -z "$as_dir" && as_dir=. | ||
4522 | 4290 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4523 | 4291 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4524 | 4292 | ac_cv_prog_SETCAP="yes" | ||
4525 | 4293 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4526 | 4294 | break 2 | ||
4527 | 4295 | fi | ||
4528 | 4296 | done | ||
4529 | 4297 | done | ||
4530 | 4298 | IFS=$as_save_IFS | ||
4531 | 4299 | |||
4532 | 4300 | test -z "$ac_cv_prog_SETCAP" && ac_cv_prog_SETCAP="no" | ||
4533 | 4301 | fi | ||
4534 | 4302 | fi | ||
4535 | 4303 | SETCAP=$ac_cv_prog_SETCAP | ||
4536 | 4304 | if test -n "$SETCAP"; then | ||
4537 | 4305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETCAP" >&5 | ||
4538 | 4306 | $as_echo "$SETCAP" >&6; } | ||
4539 | 4307 | else | ||
4540 | 4308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4541 | 4309 | $as_echo "no" >&6; } | ||
4542 | 4310 | fi | ||
4543 | 4311 | |||
4544 | 4312 | |||
4545 | 4313 | |||
4546 | 4314 | # Check whether --enable-doc was given. | ||
4547 | 4315 | if test "${enable_doc+set}" = set; then : | ||
4548 | 4316 | enableval=$enable_doc; | ||
4549 | 4317 | else | ||
4550 | 4318 | enable_doc=auto | ||
4551 | 4319 | fi | ||
4552 | 4320 | |||
4553 | 4321 | |||
4554 | 4322 | if test "x$enable_doc" = "xyes" -o "x$enable_doc" = "xauto"; then | ||
4555 | 4323 | # Extract the first word of "docbook2man", so it can be a program name with args. | ||
4556 | 4324 | set dummy docbook2man; ac_word=$2 | ||
4557 | 4325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4558 | 4326 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4559 | 4327 | if test "${ac_cv_prog_have_docbook+set}" = set; then : | ||
4560 | 4328 | $as_echo_n "(cached) " >&6 | ||
4561 | 4329 | else | ||
4562 | 4330 | if test -n "$have_docbook"; then | ||
4563 | 4331 | ac_cv_prog_have_docbook="$have_docbook" # Let the user override the test. | ||
4564 | 4332 | else | ||
4565 | 4333 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4566 | 4334 | for as_dir in $PATH | ||
4567 | 4335 | do | ||
4568 | 4336 | IFS=$as_save_IFS | ||
4569 | 4337 | test -z "$as_dir" && as_dir=. | ||
4570 | 4338 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4571 | 4339 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4572 | 4340 | ac_cv_prog_have_docbook="yes" | ||
4573 | 4341 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4574 | 4342 | break 2 | ||
4575 | 4343 | fi | ||
4576 | 4344 | done | ||
4577 | 4345 | done | ||
4578 | 4346 | IFS=$as_save_IFS | ||
4579 | 4347 | |||
4580 | 4348 | test -z "$ac_cv_prog_have_docbook" && ac_cv_prog_have_docbook="no" | ||
4581 | 4349 | fi | ||
4582 | 4350 | fi | ||
4583 | 4351 | have_docbook=$ac_cv_prog_have_docbook | ||
4584 | 4352 | if test -n "$have_docbook"; then | ||
4585 | 4353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_docbook" >&5 | ||
4586 | 4354 | $as_echo "$have_docbook" >&6; } | ||
4587 | 4355 | else | ||
4588 | 4356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4589 | 4357 | $as_echo "no" >&6; } | ||
4590 | 4358 | fi | ||
4591 | 4359 | |||
4592 | 4360 | |||
4593 | 4361 | |||
4594 | 4362 | test "x$have_docbook" = "xno" -a "x$enable_doc" = "xyes" && \ | ||
4595 | 4363 | as_fn_error $? "docbook2man required by man request, but not found" "$LINENO" 5 | ||
4596 | 4364 | fi | ||
4597 | 4365 | |||
4598 | 4366 | if test "x$have_docbook" = "xyes"; then | ||
4599 | 4367 | ENABLE_DOCBOOK_TRUE= | ||
4600 | 4368 | ENABLE_DOCBOOK_FALSE='#' | ||
4601 | 4369 | else | ||
4602 | 4370 | ENABLE_DOCBOOK_TRUE='#' | ||
4603 | 4371 | ENABLE_DOCBOOK_FALSE= | ||
4604 | 4372 | fi | ||
4605 | 4373 | |||
4606 | 4374 | |||
4607 | 4375 | # Check whether --enable-examples was given. | ||
4608 | 4376 | if test "${enable_examples+set}" = set; then : | ||
4609 | 4377 | enableval=$enable_examples; | ||
4610 | 4378 | else | ||
4611 | 4379 | enable_examples=yes | ||
4612 | 4380 | fi | ||
4613 | 4381 | |||
4614 | 4382 | |||
4615 | 4383 | if test "x$enable_examples" = "xyes"; then | ||
4616 | 4384 | ENABLE_EXAMPLES_TRUE= | ||
4617 | 4385 | ENABLE_EXAMPLES_FALSE='#' | ||
4618 | 4386 | else | ||
4619 | 4387 | ENABLE_EXAMPLES_TRUE='#' | ||
4620 | 4388 | ENABLE_EXAMPLES_FALSE= | ||
4621 | 4389 | fi | ||
4622 | 4390 | |||
4623 | 4391 | |||
4624 | 4392 | |||
4625 | 4393 | EXP_VAR=PREFIX | ||
4626 | 4394 | FROM_VAR=$prefix | ||
4627 | 4395 | |||
4628 | 4396 | prefix_save=$prefix | ||
4629 | 4397 | exec_prefix_save=$exec_prefix | ||
4630 | 4398 | |||
4631 | 4399 | if test "x$prefix" = "xNONE"; then | ||
4632 | 4400 | prefix="$ac_default_prefix" | ||
4633 | 4401 | fi | ||
4634 | 4402 | if test "x$exec_prefix" = "xNONE"; then | ||
4635 | 4403 | exec_prefix=$prefix | ||
4636 | 4404 | fi | ||
4637 | 4405 | |||
4638 | 4406 | full_var="$FROM_VAR" | ||
4639 | 4407 | while true; do | ||
4640 | 4408 | new_full_var="`eval echo $full_var`" | ||
4641 | 4409 | if test "x$new_full_var" = "x$full_var"; then break; fi | ||
4642 | 4410 | full_var=$new_full_var | ||
4643 | 4411 | done | ||
4644 | 4412 | |||
4645 | 4413 | full_var=$new_full_var | ||
4646 | 4414 | PREFIX="$full_var" | ||
4647 | 4415 | |||
4648 | 4416 | |||
4649 | 4417 | prefix=$prefix_save | ||
4650 | 4418 | exec_prefix=$exec_prefix_save | ||
4651 | 4419 | |||
4652 | 4420 | |||
4653 | 4421 | EXP_VAR=LIBDIR | ||
4654 | 4422 | FROM_VAR=$libdir | ||
4655 | 4423 | |||
4656 | 4424 | prefix_save=$prefix | ||
4657 | 4425 | exec_prefix_save=$exec_prefix | ||
4658 | 4426 | |||
4659 | 4427 | if test "x$prefix" = "xNONE"; then | ||
4660 | 4428 | prefix="$ac_default_prefix" | ||
4661 | 4429 | fi | ||
4662 | 4430 | if test "x$exec_prefix" = "xNONE"; then | ||
4663 | 4431 | exec_prefix=$prefix | ||
4664 | 4432 | fi | ||
4665 | 4433 | |||
4666 | 4434 | full_var="$FROM_VAR" | ||
4667 | 4435 | while true; do | ||
4668 | 4436 | new_full_var="`eval echo $full_var`" | ||
4669 | 4437 | if test "x$new_full_var" = "x$full_var"; then break; fi | ||
4670 | 4438 | full_var=$new_full_var | ||
4671 | 4439 | done | ||
4672 | 4440 | |||
4673 | 4441 | full_var=$new_full_var | ||
4674 | 4442 | LIBDIR="$full_var" | ||
4675 | 4443 | |||
4676 | 4444 | |||
4677 | 4445 | prefix=$prefix_save | ||
4678 | 4446 | exec_prefix=$exec_prefix_save | ||
4679 | 4447 | |||
4680 | 4448 | |||
4681 | 4449 | EXP_VAR=BINDIR | ||
4682 | 4450 | FROM_VAR=$bindir | ||
4683 | 4451 | |||
4684 | 4452 | prefix_save=$prefix | ||
4685 | 4453 | exec_prefix_save=$exec_prefix | ||
4686 | 4454 | |||
4687 | 4455 | if test "x$prefix" = "xNONE"; then | ||
4688 | 4456 | prefix="$ac_default_prefix" | ||
4689 | 4457 | fi | ||
4690 | 4458 | if test "x$exec_prefix" = "xNONE"; then | ||
4691 | 4459 | exec_prefix=$prefix | ||
4692 | 4460 | fi | ||
4693 | 4461 | |||
4694 | 4462 | full_var="$FROM_VAR" | ||
4695 | 4463 | while true; do | ||
4696 | 4464 | new_full_var="`eval echo $full_var`" | ||
4697 | 4465 | if test "x$new_full_var" = "x$full_var"; then break; fi | ||
4698 | 4466 | full_var=$new_full_var | ||
4699 | 4467 | done | ||
4700 | 4468 | |||
4701 | 4469 | full_var=$new_full_var | ||
4702 | 4470 | BINDIR="$full_var" | ||
4703 | 4471 | |||
4704 | 4472 | |||
4705 | 4473 | prefix=$prefix_save | ||
4706 | 4474 | exec_prefix=$exec_prefix_save | ||
4707 | 4475 | |||
4708 | 4476 | |||
4709 | 4477 | EXP_VAR=INCLUDEDIR | ||
4710 | 4478 | FROM_VAR=$includedir | ||
4711 | 4479 | |||
4712 | 4480 | prefix_save=$prefix | ||
4713 | 4481 | exec_prefix_save=$exec_prefix | ||
4714 | 4482 | |||
4715 | 4483 | if test "x$prefix" = "xNONE"; then | ||
4716 | 4484 | prefix="$ac_default_prefix" | ||
4717 | 4485 | fi | ||
4718 | 4486 | if test "x$exec_prefix" = "xNONE"; then | ||
4719 | 4487 | exec_prefix=$prefix | ||
4720 | 4488 | fi | ||
4721 | 4489 | |||
4722 | 4490 | full_var="$FROM_VAR" | ||
4723 | 4491 | while true; do | ||
4724 | 4492 | new_full_var="`eval echo $full_var`" | ||
4725 | 4493 | if test "x$new_full_var" = "x$full_var"; then break; fi | ||
4726 | 4494 | full_var=$new_full_var | ||
4727 | 4495 | done | ||
4728 | 4496 | |||
4729 | 4497 | full_var=$new_full_var | ||
4730 | 4498 | INCLUDEDIR="$full_var" | ||
4731 | 4499 | |||
4732 | 4500 | |||
4733 | 4501 | prefix=$prefix_save | ||
4734 | 4502 | exec_prefix=$exec_prefix_save | ||
4735 | 4503 | |||
4736 | 4504 | |||
4737 | 4505 | EXP_VAR=SYSCONFDIR | ||
4738 | 4506 | FROM_VAR=$sysconfdir | ||
4739 | 4507 | |||
4740 | 4508 | prefix_save=$prefix | ||
4741 | 4509 | exec_prefix_save=$exec_prefix | ||
4742 | 4510 | |||
4743 | 4511 | if test "x$prefix" = "xNONE"; then | ||
4744 | 4512 | prefix="$ac_default_prefix" | ||
4745 | 4513 | fi | ||
4746 | 4514 | if test "x$exec_prefix" = "xNONE"; then | ||
4747 | 4515 | exec_prefix=$prefix | ||
4748 | 4516 | fi | ||
4749 | 4517 | |||
4750 | 4518 | full_var="$FROM_VAR" | ||
4751 | 4519 | while true; do | ||
4752 | 4520 | new_full_var="`eval echo $full_var`" | ||
4753 | 4521 | if test "x$new_full_var" = "x$full_var"; then break; fi | ||
4754 | 4522 | full_var=$new_full_var | ||
4755 | 4523 | done | ||
4756 | 4524 | |||
4757 | 4525 | full_var=$new_full_var | ||
4758 | 4526 | SYSCONFDIR="$full_var" | ||
4759 | 4527 | |||
4760 | 4528 | |||
4761 | 4529 | prefix=$prefix_save | ||
4762 | 4530 | exec_prefix=$exec_prefix_save | ||
4763 | 4531 | |||
4764 | 4532 | |||
4765 | 4533 | EXP_VAR=DATADIR | ||
4766 | 4534 | FROM_VAR=$datadir | ||
4767 | 4535 | |||
4768 | 4536 | prefix_save=$prefix | ||
4769 | 4537 | exec_prefix_save=$exec_prefix | ||
4770 | 4538 | |||
4771 | 4539 | if test "x$prefix" = "xNONE"; then | ||
4772 | 4540 | prefix="$ac_default_prefix" | ||
4773 | 4541 | fi | ||
4774 | 4542 | if test "x$exec_prefix" = "xNONE"; then | ||
4775 | 4543 | exec_prefix=$prefix | ||
4776 | 4544 | fi | ||
4777 | 4545 | |||
4778 | 4546 | full_var="$FROM_VAR" | ||
4779 | 4547 | while true; do | ||
4780 | 4548 | new_full_var="`eval echo $full_var`" | ||
4781 | 4549 | if test "x$new_full_var" = "x$full_var"; then break; fi | ||
4782 | 4550 | full_var=$new_full_var | ||
4783 | 4551 | done | ||
4784 | 4552 | |||
4785 | 4553 | full_var=$new_full_var | ||
4786 | 4554 | DATADIR="$full_var" | ||
4787 | 4555 | |||
4788 | 4556 | |||
4789 | 4557 | prefix=$prefix_save | ||
4790 | 4558 | exec_prefix=$exec_prefix_save | ||
4791 | 4559 | |||
4792 | 4560 | |||
4793 | 4561 | EXP_VAR=LOCALSTATEDIR | ||
4794 | 4562 | FROM_VAR=$localstatedir | ||
4795 | 4563 | |||
4796 | 4564 | prefix_save=$prefix | ||
4797 | 4565 | exec_prefix_save=$exec_prefix | ||
4798 | 4566 | |||
4799 | 4567 | if test "x$prefix" = "xNONE"; then | ||
4800 | 4568 | prefix="$ac_default_prefix" | ||
4801 | 4569 | fi | ||
4802 | 4570 | if test "x$exec_prefix" = "xNONE"; then | ||
4803 | 4571 | exec_prefix=$prefix | ||
4804 | 4572 | fi | ||
4805 | 4573 | |||
4806 | 4574 | full_var="$FROM_VAR" | ||
4807 | 4575 | while true; do | ||
4808 | 4576 | new_full_var="`eval echo $full_var`" | ||
4809 | 4577 | if test "x$new_full_var" = "x$full_var"; then break; fi | ||
4810 | 4578 | full_var=$new_full_var | ||
4811 | 4579 | done | ||
4812 | 4580 | |||
4813 | 4581 | full_var=$new_full_var | ||
4814 | 4582 | LOCALSTATEDIR="$full_var" | ||
4815 | 4583 | |||
4816 | 4584 | |||
4817 | 4585 | prefix=$prefix_save | ||
4818 | 4586 | exec_prefix=$exec_prefix_save | ||
4819 | 4587 | |||
4820 | 4588 | |||
4821 | 4589 | EXP_VAR=DOCDIR | ||
4822 | 4590 | FROM_VAR=$docdir | ||
4823 | 4591 | |||
4824 | 4592 | prefix_save=$prefix | ||
4825 | 4593 | exec_prefix_save=$exec_prefix | ||
4826 | 4594 | |||
4827 | 4595 | if test "x$prefix" = "xNONE"; then | ||
4828 | 4596 | prefix="$ac_default_prefix" | ||
4829 | 4597 | fi | ||
4830 | 4598 | if test "x$exec_prefix" = "xNONE"; then | ||
4831 | 4599 | exec_prefix=$prefix | ||
4832 | 4600 | fi | ||
4833 | 4601 | |||
4834 | 4602 | full_var="$FROM_VAR" | ||
4835 | 4603 | while true; do | ||
4836 | 4604 | new_full_var="`eval echo $full_var`" | ||
4837 | 4605 | if test "x$new_full_var" = "x$full_var"; then break; fi | ||
4838 | 4606 | full_var=$new_full_var | ||
4839 | 4607 | done | ||
4840 | 4608 | |||
4841 | 4609 | full_var=$new_full_var | ||
4842 | 4610 | DOCDIR="$full_var" | ||
4843 | 4611 | |||
4844 | 4612 | |||
4845 | 4613 | prefix=$prefix_save | ||
4846 | 4614 | exec_prefix=$exec_prefix_save | ||
4847 | 4615 | |||
4848 | 4616 | |||
4849 | 4617 | |||
4850 | 4618 | # Check whether --with-config-path was given. | ||
4851 | 4619 | if test "${with_config_path+set}" = set; then : | ||
4852 | 4620 | withval=$with_config_path; | ||
4853 | 4621 | else | ||
4854 | 4622 | with_config_path="${localstatedir}/lib/lxc" | ||
4855 | 4623 | fi | ||
4856 | 4624 | |||
4857 | 4625 | |||
4858 | 4626 | |||
4859 | 4627 | # Check whether --with-rootfs-path was given. | ||
4860 | 4628 | if test "${with_rootfs_path+set}" = set; then : | ||
4861 | 4629 | withval=$with_rootfs_path; | ||
4862 | 4630 | else | ||
4863 | 4631 | with_rootfs_path="${libdir}/lxc/rootfs" | ||
4864 | 4632 | fi | ||
4865 | 4633 | |||
4866 | 4634 | |||
4867 | 4635 | |||
4868 | 4636 | EXP_VAR=LXC_GENERATE_DATE | ||
4869 | 4637 | FROM_VAR="$(date)" | ||
4870 | 4638 | |||
4871 | 4639 | prefix_save=$prefix | ||
4872 | 4640 | exec_prefix_save=$exec_prefix | ||
4873 | 4641 | |||
4874 | 4642 | if test "x$prefix" = "xNONE"; then | ||
4875 | 4643 | prefix="$ac_default_prefix" | ||
4876 | 4644 | fi | ||
4877 | 4645 | if test "x$exec_prefix" = "xNONE"; then | ||
4878 | 4646 | exec_prefix=$prefix | ||
4879 | 4647 | fi | ||
4880 | 4648 | |||
4881 | 4649 | full_var="$FROM_VAR" | ||
4882 | 4650 | while true; do | ||
4883 | 4651 | new_full_var="`eval echo $full_var`" | ||
4884 | 4652 | if test "x$new_full_var" = "x$full_var"; then break; fi | ||
4885 | 4653 | full_var=$new_full_var | ||
4886 | 4654 | done | ||
4887 | 4655 | |||
4888 | 4656 | full_var=$new_full_var | ||
4889 | 4657 | LXC_GENERATE_DATE="$full_var" | ||
4890 | 4658 | |||
4891 | 4659 | |||
4892 | 4660 | prefix=$prefix_save | ||
4893 | 4661 | exec_prefix=$exec_prefix_save | ||
4894 | 4662 | |||
4895 | 4663 | |||
4896 | 4664 | |||
4897 | 4665 | EXP_VAR=LXCPATH | ||
4898 | 4666 | FROM_VAR="${with_config_path}" | ||
4899 | 4667 | |||
4900 | 4668 | prefix_save=$prefix | ||
4901 | 4669 | exec_prefix_save=$exec_prefix | ||
4902 | 4670 | |||
4903 | 4671 | if test "x$prefix" = "xNONE"; then | ||
4904 | 4672 | prefix="$ac_default_prefix" | ||
4905 | 4673 | fi | ||
4906 | 4674 | if test "x$exec_prefix" = "xNONE"; then | ||
4907 | 4675 | exec_prefix=$prefix | ||
4908 | 4676 | fi | ||
4909 | 4677 | |||
4910 | 4678 | full_var="$FROM_VAR" | ||
4911 | 4679 | while true; do | ||
4912 | 4680 | new_full_var="`eval echo $full_var`" | ||
4913 | 4681 | if test "x$new_full_var" = "x$full_var"; then break; fi | ||
4914 | 4682 | full_var=$new_full_var | ||
4915 | 4683 | done | ||
4916 | 4684 | |||
4917 | 4685 | full_var=$new_full_var | ||
4918 | 4686 | LXCPATH="$full_var" | ||
4919 | 4687 | |||
4920 | 4688 | |||
4921 | 4689 | prefix=$prefix_save | ||
4922 | 4690 | exec_prefix=$exec_prefix_save | ||
4923 | 4691 | |||
4924 | 4692 | |||
4925 | 4693 | EXP_VAR=LXCROOTFSMOUNT | ||
4926 | 4694 | FROM_VAR="${with_rootfs_path}" | ||
4927 | 4695 | |||
4928 | 4696 | prefix_save=$prefix | ||
4929 | 4697 | exec_prefix_save=$exec_prefix | ||
4930 | 4698 | |||
4931 | 4699 | if test "x$prefix" = "xNONE"; then | ||
4932 | 4700 | prefix="$ac_default_prefix" | ||
4933 | 4701 | fi | ||
4934 | 4702 | if test "x$exec_prefix" = "xNONE"; then | ||
4935 | 4703 | exec_prefix=$prefix | ||
4936 | 4704 | fi | ||
4937 | 4705 | |||
4938 | 4706 | full_var="$FROM_VAR" | ||
4939 | 4707 | while true; do | ||
4940 | 4708 | new_full_var="`eval echo $full_var`" | ||
4941 | 4709 | if test "x$new_full_var" = "x$full_var"; then break; fi | ||
4942 | 4710 | full_var=$new_full_var | ||
4943 | 4711 | done | ||
4944 | 4712 | |||
4945 | 4713 | full_var=$new_full_var | ||
4946 | 4714 | LXCROOTFSMOUNT="$full_var" | ||
4947 | 4715 | |||
4948 | 4716 | |||
4949 | 4717 | prefix=$prefix_save | ||
4950 | 4718 | exec_prefix=$exec_prefix_save | ||
4951 | 4719 | |||
4952 | 4720 | |||
4953 | 4721 | EXP_VAR=LXCINITDIR | ||
4954 | 4722 | FROM_VAR=$libdir/lxc | ||
4955 | 4723 | |||
4956 | 4724 | prefix_save=$prefix | ||
4957 | 4725 | exec_prefix_save=$exec_prefix | ||
4958 | 4726 | |||
4959 | 4727 | if test "x$prefix" = "xNONE"; then | ||
4960 | 4728 | prefix="$ac_default_prefix" | ||
4961 | 4729 | fi | ||
4962 | 4730 | if test "x$exec_prefix" = "xNONE"; then | ||
4963 | 4731 | exec_prefix=$prefix | ||
4964 | 4732 | fi | ||
4965 | 4733 | |||
4966 | 4734 | full_var="$FROM_VAR" | ||
4967 | 4735 | while true; do | ||
4968 | 4736 | new_full_var="`eval echo $full_var`" | ||
4969 | 4737 | if test "x$new_full_var" = "x$full_var"; then break; fi | ||
4970 | 4738 | full_var=$new_full_var | ||
4971 | 4739 | done | ||
4972 | 4740 | |||
4973 | 4741 | full_var=$new_full_var | ||
4974 | 4742 | LXCINITDIR="$full_var" | ||
4975 | 4743 | |||
4976 | 4744 | |||
4977 | 4745 | prefix=$prefix_save | ||
4978 | 4746 | exec_prefix=$exec_prefix_save | ||
4979 | 4747 | |||
4980 | 4748 | |||
4981 | 4749 | EXP_VAR=LXCTEMPLATEDIR | ||
4982 | 4750 | FROM_VAR=$libdir/lxc/templates | ||
4983 | 4751 | |||
4984 | 4752 | prefix_save=$prefix | ||
4985 | 4753 | exec_prefix_save=$exec_prefix | ||
4986 | 4754 | |||
4987 | 4755 | if test "x$prefix" = "xNONE"; then | ||
4988 | 4756 | prefix="$ac_default_prefix" | ||
4989 | 4757 | fi | ||
4990 | 4758 | if test "x$exec_prefix" = "xNONE"; then | ||
4991 | 4759 | exec_prefix=$prefix | ||
4992 | 4760 | fi | ||
4993 | 4761 | |||
4994 | 4762 | full_var="$FROM_VAR" | ||
4995 | 4763 | while true; do | ||
4996 | 4764 | new_full_var="`eval echo $full_var`" | ||
4997 | 4765 | if test "x$new_full_var" = "x$full_var"; then break; fi | ||
4998 | 4766 | full_var=$new_full_var | ||
4999 | 4767 | done | ||
5000 | 4768 |
tradition format 3 (quilt) conflict