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