]>
Commit | Line | Data |
---|---|---|
fe91a5dd AM |
1 | diff -urP libnl-1.1.orig/configure libnl-1.1/configure |
2 | --- libnl-1.1.orig/configure 2008-01-14 10:48:45.000000000 -0500 | |
3 | +++ libnl-1.1/configure 2010-05-24 13:59:10.898510656 -0400 | |
4 | @@ -1,62 +1,85 @@ | |
5 | #! /bin/sh | |
6 | # Guess values for system-dependent variables and create Makefiles. | |
7 | -# Generated by GNU Autoconf 2.61 for libnl 1.1. | |
8 | +# Generated by GNU Autoconf 2.65 for libnl 1.1. | |
9 | # | |
10 | # Report bugs to <tgraf@suug.ch>. | |
11 | # | |
12 | +# | |
13 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
14 | -# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
15 | +# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, | |
16 | +# Inc. | |
17 | +# | |
18 | +# | |
19 | # This configure script is free software; the Free Software Foundation | |
20 | # gives unlimited permission to copy, distribute and modify it. | |
21 | -## --------------------- ## | |
22 | -## M4sh Initialization. ## | |
23 | -## --------------------- ## | |
24 | +## -------------------- ## | |
25 | +## M4sh Initialization. ## | |
26 | +## -------------------- ## | |
27 | ||
28 | # Be more Bourne compatible | |
29 | DUALCASE=1; export DUALCASE # for MKS sh | |
30 | -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
31 | +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
32 | emulate sh | |
33 | NULLCMD=: | |
34 | - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
35 | + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
36 | # is contrary to our usage. Disable this feature. | |
37 | alias -g '${1+"$@"}'='"$@"' | |
38 | setopt NO_GLOB_SUBST | |
39 | else | |
40 | - case `(set -o) 2>/dev/null` in | |
41 | - *posix*) set -o posix ;; | |
42 | + case `(set -o) 2>/dev/null` in #( | |
43 | + *posix*) : | |
44 | + set -o posix ;; #( | |
45 | + *) : | |
46 | + ;; | |
47 | esac | |
48 | - | |
49 | fi | |
50 | ||
51 | ||
52 | - | |
53 | - | |
54 | -# PATH needs CR | |
55 | -# Avoid depending upon Character Ranges. | |
56 | -as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
57 | -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
58 | -as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
59 | -as_cr_digits='0123456789' | |
60 | -as_cr_alnum=$as_cr_Letters$as_cr_digits | |
61 | - | |
62 | -# The user is always right. | |
63 | -if test "${PATH_SEPARATOR+set}" != set; then | |
64 | - echo "#! /bin/sh" >conf$$.sh | |
65 | - echo "exit 0" >>conf$$.sh | |
66 | - chmod +x conf$$.sh | |
67 | - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
68 | - PATH_SEPARATOR=';' | |
69 | +as_nl=' | |
70 | +' | |
71 | +export as_nl | |
72 | +# Printing a long string crashes Solaris 7 /usr/bin/printf. | |
73 | +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
74 | +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
75 | +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
76 | +# Prefer a ksh shell builtin over an external printf program on Solaris, | |
77 | +# but without wasting forks for bash or zsh. | |
78 | +if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
79 | + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
80 | + as_echo='print -r --' | |
81 | + as_echo_n='print -rn --' | |
82 | +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
83 | + as_echo='printf %s\n' | |
84 | + as_echo_n='printf %s' | |
85 | +else | |
86 | + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
87 | + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
88 | + as_echo_n='/usr/ucb/echo -n' | |
89 | else | |
90 | - PATH_SEPARATOR=: | |
91 | + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
92 | + as_echo_n_body='eval | |
93 | + arg=$1; | |
94 | + case $arg in #( | |
95 | + *"$as_nl"*) | |
96 | + expr "X$arg" : "X\\(.*\\)$as_nl"; | |
97 | + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
98 | + esac; | |
99 | + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
100 | + ' | |
101 | + export as_echo_n_body | |
102 | + as_echo_n='sh -c $as_echo_n_body as_echo' | |
103 | fi | |
104 | - rm -f conf$$.sh | |
105 | + export as_echo_body | |
106 | + as_echo='sh -c $as_echo_body as_echo' | |
107 | fi | |
108 | ||
109 | -# Support unset when possible. | |
110 | -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
111 | - as_unset=unset | |
112 | -else | |
113 | - as_unset=false | |
114 | +# The user is always right. | |
115 | +if test "${PATH_SEPARATOR+set}" != set; then | |
116 | + PATH_SEPARATOR=: | |
117 | + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
118 | + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
119 | + PATH_SEPARATOR=';' | |
120 | + } | |
121 | fi | |
122 | ||
123 | ||
124 | @@ -65,20 +88,18 @@ | |
125 | # there to prevent editors from complaining about space-tab. | |
126 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
127 | # splitting by setting IFS to empty value.) | |
128 | -as_nl=' | |
129 | -' | |
130 | IFS=" "" $as_nl" | |
131 | ||
132 | # Find who we are. Look in the path if we contain no directory separator. | |
133 | -case $0 in | |
134 | +case $0 in #(( | |
135 | *[\\/]* ) as_myself=$0 ;; | |
136 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
137 | for as_dir in $PATH | |
138 | do | |
139 | IFS=$as_save_IFS | |
140 | test -z "$as_dir" && as_dir=. | |
141 | - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
142 | -done | |
143 | + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
144 | + done | |
145 | IFS=$as_save_IFS | |
146 | ||
147 | ;; | |
148 | @@ -89,354 +110,321 @@ | |
149 | as_myself=$0 | |
150 | fi | |
151 | if test ! -f "$as_myself"; then | |
152 | - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
153 | - { (exit 1); exit 1; } | |
154 | + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
155 | + exit 1 | |
156 | fi | |
157 | ||
158 | -# Work around bugs in pre-3.0 UWIN ksh. | |
159 | -for as_var in ENV MAIL MAILPATH | |
160 | -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
161 | +# Unset variables that we do not need and which cause bugs (e.g. in | |
162 | +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
163 | +# suppresses any "Segmentation fault" message there. '((' could | |
164 | +# trigger a bug in pdksh 5.2.14. | |
165 | +for as_var in BASH_ENV ENV MAIL MAILPATH | |
166 | +do eval test x\${$as_var+set} = xset \ | |
167 | + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
168 | done | |
169 | PS1='$ ' | |
170 | PS2='> ' | |
171 | PS4='+ ' | |
172 | ||
173 | # NLS nuisances. | |
174 | -for as_var in \ | |
175 | - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
176 | - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
177 | - LC_TELEPHONE LC_TIME | |
178 | -do | |
179 | - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
180 | - eval $as_var=C; export $as_var | |
181 | - else | |
182 | - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
183 | - fi | |
184 | -done | |
185 | - | |
186 | -# Required to use basename. | |
187 | -if expr a : '\(a\)' >/dev/null 2>&1 && | |
188 | - test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
189 | - as_expr=expr | |
190 | -else | |
191 | - as_expr=false | |
192 | -fi | |
193 | - | |
194 | -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
195 | - as_basename=basename | |
196 | -else | |
197 | - as_basename=false | |
198 | -fi | |
199 | - | |
200 | - | |
201 | -# Name of the executable. | |
202 | -as_me=`$as_basename -- "$0" || | |
203 | -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
204 | - X"$0" : 'X\(//\)$' \| \ | |
205 | - X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
206 | -echo X/"$0" | | |
207 | - sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
208 | - s//\1/ | |
209 | - q | |
210 | - } | |
211 | - /^X\/\(\/\/\)$/{ | |
212 | - s//\1/ | |
213 | - q | |
214 | - } | |
215 | - /^X\/\(\/\).*/{ | |
216 | - s//\1/ | |
217 | - q | |
218 | - } | |
219 | - s/.*/./; q'` | |
220 | +LC_ALL=C | |
221 | +export LC_ALL | |
222 | +LANGUAGE=C | |
223 | +export LANGUAGE | |
224 | ||
225 | # CDPATH. | |
226 | -$as_unset CDPATH | |
227 | - | |
228 | +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
229 | ||
230 | if test "x$CONFIG_SHELL" = x; then | |
231 | - if (eval ":") 2>/dev/null; then | |
232 | - as_have_required=yes | |
233 | + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
234 | + emulate sh | |
235 | + NULLCMD=: | |
236 | + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
237 | + # is contrary to our usage. Disable this feature. | |
238 | + alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
239 | + setopt NO_GLOB_SUBST | |
240 | else | |
241 | - as_have_required=no | |
242 | + case \`(set -o) 2>/dev/null\` in #( | |
243 | + *posix*) : | |
244 | + set -o posix ;; #( | |
245 | + *) : | |
246 | + ;; | |
247 | +esac | |
248 | fi | |
249 | - | |
250 | - if test $as_have_required = yes && (eval ": | |
251 | -(as_func_return () { | |
252 | - (exit \$1) | |
253 | -} | |
254 | -as_func_success () { | |
255 | - as_func_return 0 | |
256 | -} | |
257 | -as_func_failure () { | |
258 | - as_func_return 1 | |
259 | -} | |
260 | -as_func_ret_success () { | |
261 | - return 0 | |
262 | -} | |
263 | -as_func_ret_failure () { | |
264 | - return 1 | |
265 | -} | |
266 | +" | |
267 | + as_required="as_fn_return () { (exit \$1); } | |
268 | +as_fn_success () { as_fn_return 0; } | |
269 | +as_fn_failure () { as_fn_return 1; } | |
270 | +as_fn_ret_success () { return 0; } | |
271 | +as_fn_ret_failure () { return 1; } | |
272 | ||
273 | exitcode=0 | |
274 | -if as_func_success; then | |
275 | - : | |
276 | -else | |
277 | - exitcode=1 | |
278 | - echo as_func_success failed. | |
279 | -fi | |
280 | +as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
281 | +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
282 | +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
283 | +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
284 | +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
285 | ||
286 | -if as_func_failure; then | |
287 | - exitcode=1 | |
288 | - echo as_func_failure succeeded. | |
289 | -fi | |
290 | - | |
291 | -if as_func_ret_success; then | |
292 | - : | |
293 | else | |
294 | - exitcode=1 | |
295 | - echo as_func_ret_success failed. | |
296 | -fi | |
297 | - | |
298 | -if as_func_ret_failure; then | |
299 | - exitcode=1 | |
300 | - echo as_func_ret_failure succeeded. | |
301 | -fi | |
302 | - | |
303 | -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
304 | - : | |
305 | + exitcode=1; echo positional parameters were not saved. | |
306 | +fi | |
307 | +test x\$exitcode = x0 || exit 1" | |
308 | + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
309 | + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
310 | + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
311 | + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" | |
312 | + if (eval "$as_required") 2>/dev/null; then : | |
313 | + as_have_required=yes | |
314 | else | |
315 | - exitcode=1 | |
316 | - echo positional parameters were not saved. | |
317 | + as_have_required=no | |
318 | fi | |
319 | + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
320 | ||
321 | -test \$exitcode = 0) || { (exit 1); exit 1; } | |
322 | - | |
323 | -( | |
324 | - as_lineno_1=\$LINENO | |
325 | - as_lineno_2=\$LINENO | |
326 | - test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
327 | - test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
328 | -") 2> /dev/null; then | |
329 | - : | |
330 | else | |
331 | - as_candidate_shells= | |
332 | - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
333 | + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
334 | +as_found=false | |
335 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
336 | do | |
337 | IFS=$as_save_IFS | |
338 | test -z "$as_dir" && as_dir=. | |
339 | - case $as_dir in | |
340 | + as_found=: | |
341 | + case $as_dir in #( | |
342 | /*) | |
343 | for as_base in sh bash ksh sh5; do | |
344 | - as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
345 | + # Try only shells that exist, to save several forks. | |
346 | + as_shell=$as_dir/$as_base | |
347 | + if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
348 | + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
349 | + CONFIG_SHELL=$as_shell as_have_required=yes | |
350 | + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
351 | + break 2 | |
352 | +fi | |
353 | +fi | |
354 | done;; | |
355 | esac | |
356 | + as_found=false | |
357 | done | |
358 | +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
359 | + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
360 | + CONFIG_SHELL=$SHELL as_have_required=yes | |
361 | +fi; } | |
362 | IFS=$as_save_IFS | |
363 | ||
364 | ||
365 | - for as_shell in $as_candidate_shells $SHELL; do | |
366 | - # Try only shells that exist, to save several forks. | |
367 | - if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
368 | - { ("$as_shell") 2> /dev/null <<\_ASEOF | |
369 | -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
370 | - emulate sh | |
371 | - NULLCMD=: | |
372 | - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
373 | - # is contrary to our usage. Disable this feature. | |
374 | - alias -g '${1+"$@"}'='"$@"' | |
375 | - setopt NO_GLOB_SUBST | |
376 | -else | |
377 | - case `(set -o) 2>/dev/null` in | |
378 | - *posix*) set -o posix ;; | |
379 | -esac | |
380 | - | |
381 | + if test "x$CONFIG_SHELL" != x; then : | |
382 | + # We cannot yet assume a decent shell, so we have to provide a | |
383 | + # neutralization value for shells without unset; and this also | |
384 | + # works around shells that cannot unset nonexistent variables. | |
385 | + BASH_ENV=/dev/null | |
386 | + ENV=/dev/null | |
387 | + (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
388 | + export CONFIG_SHELL | |
389 | + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
390 | +fi | |
391 | + | |
392 | + if test x$as_have_required = xno; then : | |
393 | + $as_echo "$0: This script requires a shell more modern than all" | |
394 | + $as_echo "$0: the shells that I found on your system." | |
395 | + if test x${ZSH_VERSION+set} = xset ; then | |
396 | + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
397 | + $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
398 | + else | |
399 | + $as_echo "$0: Please tell bug-autoconf@gnu.org and tgraf@suug.ch | |
400 | +$0: about your system, including any error possibly output | |
401 | +$0: before this message. Then install a modern shell, or | |
402 | +$0: manually run the script under such a shell if you do | |
403 | +$0: have one." | |
404 | + fi | |
405 | + exit 1 | |
406 | fi | |
407 | - | |
408 | - | |
409 | -: | |
410 | -_ASEOF | |
411 | -}; then | |
412 | - CONFIG_SHELL=$as_shell | |
413 | - as_have_required=yes | |
414 | - if { "$as_shell" 2> /dev/null <<\_ASEOF | |
415 | -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
416 | - emulate sh | |
417 | - NULLCMD=: | |
418 | - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
419 | - # is contrary to our usage. Disable this feature. | |
420 | - alias -g '${1+"$@"}'='"$@"' | |
421 | - setopt NO_GLOB_SUBST | |
422 | -else | |
423 | - case `(set -o) 2>/dev/null` in | |
424 | - *posix*) set -o posix ;; | |
425 | -esac | |
426 | - | |
427 | fi | |
428 | +fi | |
429 | +SHELL=${CONFIG_SHELL-/bin/sh} | |
430 | +export SHELL | |
431 | +# Unset more variables known to interfere with behavior of common tools. | |
432 | +CLICOLOR_FORCE= GREP_OPTIONS= | |
433 | +unset CLICOLOR_FORCE GREP_OPTIONS | |
434 | ||
435 | - | |
436 | -: | |
437 | -(as_func_return () { | |
438 | - (exit $1) | |
439 | -} | |
440 | -as_func_success () { | |
441 | - as_func_return 0 | |
442 | -} | |
443 | -as_func_failure () { | |
444 | - as_func_return 1 | |
445 | -} | |
446 | -as_func_ret_success () { | |
447 | - return 0 | |
448 | -} | |
449 | -as_func_ret_failure () { | |
450 | - return 1 | |
451 | +## --------------------- ## | |
452 | +## M4sh Shell Functions. ## | |
453 | +## --------------------- ## | |
454 | +# as_fn_unset VAR | |
455 | +# --------------- | |
456 | +# Portably unset VAR. | |
457 | +as_fn_unset () | |
458 | +{ | |
459 | + { eval $1=; unset $1;} | |
460 | } | |
461 | +as_unset=as_fn_unset | |
462 | ||
463 | -exitcode=0 | |
464 | -if as_func_success; then | |
465 | - : | |
466 | -else | |
467 | - exitcode=1 | |
468 | - echo as_func_success failed. | |
469 | -fi | |
470 | +# as_fn_set_status STATUS | |
471 | +# ----------------------- | |
472 | +# Set $? to STATUS, without forking. | |
473 | +as_fn_set_status () | |
474 | +{ | |
475 | + return $1 | |
476 | +} # as_fn_set_status | |
477 | ||
478 | -if as_func_failure; then | |
479 | - exitcode=1 | |
480 | - echo as_func_failure succeeded. | |
481 | -fi | |
482 | +# as_fn_exit STATUS | |
483 | +# ----------------- | |
484 | +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
485 | +as_fn_exit () | |
486 | +{ | |
487 | + set +e | |
488 | + as_fn_set_status $1 | |
489 | + exit $1 | |
490 | +} # as_fn_exit | |
491 | + | |
492 | +# as_fn_mkdir_p | |
493 | +# ------------- | |
494 | +# Create "$as_dir" as a directory, including parents if necessary. | |
495 | +as_fn_mkdir_p () | |
496 | +{ | |
497 | ||
498 | -if as_func_ret_success; then | |
499 | - : | |
500 | -else | |
501 | - exitcode=1 | |
502 | - echo as_func_ret_success failed. | |
503 | -fi | |
504 | + case $as_dir in #( | |
505 | + -*) as_dir=./$as_dir;; | |
506 | + esac | |
507 | + test -d "$as_dir" || eval $as_mkdir_p || { | |
508 | + as_dirs= | |
509 | + while :; do | |
510 | + case $as_dir in #( | |
511 | + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
512 | + *) as_qdir=$as_dir;; | |
513 | + esac | |
514 | + as_dirs="'$as_qdir' $as_dirs" | |
515 | + as_dir=`$as_dirname -- "$as_dir" || | |
516 | +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
517 | + X"$as_dir" : 'X\(//\)[^/]' \| \ | |
518 | + X"$as_dir" : 'X\(//\)$' \| \ | |
519 | + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
520 | +$as_echo X"$as_dir" | | |
521 | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
522 | + s//\1/ | |
523 | + q | |
524 | + } | |
525 | + /^X\(\/\/\)[^/].*/{ | |
526 | + s//\1/ | |
527 | + q | |
528 | + } | |
529 | + /^X\(\/\/\)$/{ | |
530 | + s//\1/ | |
531 | + q | |
532 | + } | |
533 | + /^X\(\/\).*/{ | |
534 | + s//\1/ | |
535 | + q | |
536 | + } | |
537 | + s/.*/./; q'` | |
538 | + test -d "$as_dir" && break | |
539 | + done | |
540 | + test -z "$as_dirs" || eval "mkdir $as_dirs" | |
541 | + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
542 | ||
543 | -if as_func_ret_failure; then | |
544 | - exitcode=1 | |
545 | - echo as_func_ret_failure succeeded. | |
546 | -fi | |
547 | ||
548 | -if ( set x; as_func_ret_success y && test x = "$1" ); then | |
549 | - : | |
550 | +} # as_fn_mkdir_p | |
551 | +# as_fn_append VAR VALUE | |
552 | +# ---------------------- | |
553 | +# Append the text in VALUE to the end of the definition contained in VAR. Take | |
554 | +# advantage of any shell optimizations that allow amortized linear growth over | |
555 | +# repeated appends, instead of the typical quadratic growth present in naive | |
556 | +# implementations. | |
557 | +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
558 | + eval 'as_fn_append () | |
559 | + { | |
560 | + eval $1+=\$2 | |
561 | + }' | |
562 | else | |
563 | - exitcode=1 | |
564 | - echo positional parameters were not saved. | |
565 | -fi | |
566 | - | |
567 | -test $exitcode = 0) || { (exit 1); exit 1; } | |
568 | - | |
569 | -( | |
570 | - as_lineno_1=$LINENO | |
571 | - as_lineno_2=$LINENO | |
572 | - test "x$as_lineno_1" != "x$as_lineno_2" && | |
573 | - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } | |
574 | - | |
575 | -_ASEOF | |
576 | -}; then | |
577 | - break | |
578 | -fi | |
579 | - | |
580 | -fi | |
581 | - | |
582 | - done | |
583 | - | |
584 | - if test "x$CONFIG_SHELL" != x; then | |
585 | - for as_var in BASH_ENV ENV | |
586 | - do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
587 | - done | |
588 | - export CONFIG_SHELL | |
589 | - exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
590 | -fi | |
591 | - | |
592 | - | |
593 | - if test $as_have_required = no; then | |
594 | - echo This script requires a shell more modern than all the | |
595 | - echo shells that I found on your system. Please install a | |
596 | - echo modern shell, or manually run the script under such a | |
597 | - echo shell if you do have one. | |
598 | - { (exit 1); exit 1; } | |
599 | -fi | |
600 | - | |
601 | - | |
602 | -fi | |
603 | - | |
604 | -fi | |
605 | + as_fn_append () | |
606 | + { | |
607 | + eval $1=\$$1\$2 | |
608 | + } | |
609 | +fi # as_fn_append | |
610 | ||
611 | +# as_fn_arith ARG... | |
612 | +# ------------------ | |
613 | +# Perform arithmetic evaluation on the ARGs, and store the result in the | |
614 | +# global $as_val. Take advantage of shells that can avoid forks. The arguments | |
615 | +# must be portable across $(()) and expr. | |
616 | +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
617 | + eval 'as_fn_arith () | |
618 | + { | |
619 | + as_val=$(( $* )) | |
620 | + }' | |
621 | +else | |
622 | + as_fn_arith () | |
623 | + { | |
624 | + as_val=`expr "$@" || test $? -eq 1` | |
625 | + } | |
626 | +fi # as_fn_arith | |
627 | ||
628 | ||
629 | -(eval "as_func_return () { | |
630 | - (exit \$1) | |
631 | -} | |
632 | -as_func_success () { | |
633 | - as_func_return 0 | |
634 | -} | |
635 | -as_func_failure () { | |
636 | - as_func_return 1 | |
637 | -} | |
638 | -as_func_ret_success () { | |
639 | - return 0 | |
640 | -} | |
641 | -as_func_ret_failure () { | |
642 | - return 1 | |
643 | -} | |
644 | +# as_fn_error ERROR [LINENO LOG_FD] | |
645 | +# --------------------------------- | |
646 | +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
647 | +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
648 | +# script with status $?, using 1 if that was 0. | |
649 | +as_fn_error () | |
650 | +{ | |
651 | + as_status=$?; test $as_status -eq 0 && as_status=1 | |
652 | + if test "$3"; then | |
653 | + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
654 | + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
655 | + fi | |
656 | + $as_echo "$as_me: error: $1" >&2 | |
657 | + as_fn_exit $as_status | |
658 | +} # as_fn_error | |
659 | ||
660 | -exitcode=0 | |
661 | -if as_func_success; then | |
662 | - : | |
663 | +if expr a : '\(a\)' >/dev/null 2>&1 && | |
664 | + test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
665 | + as_expr=expr | |
666 | else | |
667 | - exitcode=1 | |
668 | - echo as_func_success failed. | |
669 | -fi | |
670 | - | |
671 | -if as_func_failure; then | |
672 | - exitcode=1 | |
673 | - echo as_func_failure succeeded. | |
674 | + as_expr=false | |
675 | fi | |
676 | ||
677 | -if as_func_ret_success; then | |
678 | - : | |
679 | +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
680 | + as_basename=basename | |
681 | else | |
682 | - exitcode=1 | |
683 | - echo as_func_ret_success failed. | |
684 | -fi | |
685 | - | |
686 | -if as_func_ret_failure; then | |
687 | - exitcode=1 | |
688 | - echo as_func_ret_failure succeeded. | |
689 | + as_basename=false | |
690 | fi | |
691 | ||
692 | -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
693 | - : | |
694 | +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
695 | + as_dirname=dirname | |
696 | else | |
697 | - exitcode=1 | |
698 | - echo positional parameters were not saved. | |
699 | + as_dirname=false | |
700 | fi | |
701 | ||
702 | -test \$exitcode = 0") || { | |
703 | - echo No shell found that supports shell functions. | |
704 | - echo Please tell autoconf@gnu.org about your system, | |
705 | - echo including any error possibly output before this | |
706 | - echo message | |
707 | -} | |
708 | - | |
709 | +as_me=`$as_basename -- "$0" || | |
710 | +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
711 | + X"$0" : 'X\(//\)$' \| \ | |
712 | + X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
713 | +$as_echo X/"$0" | | |
714 | + sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
715 | + s//\1/ | |
716 | + q | |
717 | + } | |
718 | + /^X\/\(\/\/\)$/{ | |
719 | + s//\1/ | |
720 | + q | |
721 | + } | |
722 | + /^X\/\(\/\).*/{ | |
723 | + s//\1/ | |
724 | + q | |
725 | + } | |
726 | + s/.*/./; q'` | |
727 | ||
728 | +# Avoid depending upon Character Ranges. | |
729 | +as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
730 | +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
731 | +as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
732 | +as_cr_digits='0123456789' | |
733 | +as_cr_alnum=$as_cr_Letters$as_cr_digits | |
734 | ||
735 | - as_lineno_1=$LINENO | |
736 | - as_lineno_2=$LINENO | |
737 | - test "x$as_lineno_1" != "x$as_lineno_2" && | |
738 | - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
739 | ||
740 | - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
741 | - # uniformly replaced by the line number. The first 'sed' inserts a | |
742 | - # line-number line after each line using $LINENO; the second 'sed' | |
743 | - # does the real work. The second script uses 'N' to pair each | |
744 | - # line-number line with the line containing $LINENO, and appends | |
745 | - # trailing '-' during substitution so that $LINENO is not a special | |
746 | - # case at line end. | |
747 | - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
748 | - # scripts with optimization help from Paolo Bonzini. Blame Lee | |
749 | - # E. McMahon (1931-1989) for sed's syntax. :-) | |
750 | + as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
751 | + as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
752 | + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
753 | + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
754 | + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
755 | sed -n ' | |
756 | p | |
757 | /[$]LINENO/= | |
758 | @@ -453,8 +441,7 @@ | |
759 | s/-\n.*// | |
760 | ' >$as_me.lineno && | |
761 | chmod +x "$as_me.lineno" || | |
762 | - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
763 | - { (exit 1); exit 1; }; } | |
764 | + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
765 | ||
766 | # Don't try to exec as it changes $[0], causing all sort of problems | |
767 | # (the dirname of $[0] is not the place where we might find the | |
768 | @@ -464,49 +451,40 @@ | |
769 | exit | |
770 | } | |
771 | ||
772 | - | |
773 | -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
774 | - as_dirname=dirname | |
775 | -else | |
776 | - as_dirname=false | |
777 | -fi | |
778 | - | |
779 | ECHO_C= ECHO_N= ECHO_T= | |
780 | -case `echo -n x` in | |
781 | +case `echo -n x` in #((((( | |
782 | -n*) | |
783 | - case `echo 'x\c'` in | |
784 | + case `echo 'xy\c'` in | |
785 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
786 | - *) ECHO_C='\c';; | |
787 | + xy) ECHO_C='\c';; | |
788 | + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
789 | + ECHO_T=' ';; | |
790 | esac;; | |
791 | *) | |
792 | ECHO_N='-n';; | |
793 | esac | |
794 | ||
795 | -if expr a : '\(a\)' >/dev/null 2>&1 && | |
796 | - test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
797 | - as_expr=expr | |
798 | -else | |
799 | - as_expr=false | |
800 | -fi | |
801 | - | |
802 | rm -f conf$$ conf$$.exe conf$$.file | |
803 | if test -d conf$$.dir; then | |
804 | rm -f conf$$.dir/conf$$.file | |
805 | else | |
806 | rm -f conf$$.dir | |
807 | - mkdir conf$$.dir | |
808 | + mkdir conf$$.dir 2>/dev/null | |
809 | fi | |
810 | -echo >conf$$.file | |
811 | -if ln -s conf$$.file conf$$ 2>/dev/null; then | |
812 | - as_ln_s='ln -s' | |
813 | - # ... but there are two gotchas: | |
814 | - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
815 | - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
816 | - # In both cases, we have to default to `cp -p'. | |
817 | - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
818 | +if (echo >conf$$.file) 2>/dev/null; then | |
819 | + if ln -s conf$$.file conf$$ 2>/dev/null; then | |
820 | + as_ln_s='ln -s' | |
821 | + # ... but there are two gotchas: | |
822 | + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
823 | + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
824 | + # In both cases, we have to default to `cp -p'. | |
825 | + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
826 | + as_ln_s='cp -p' | |
827 | + elif ln conf$$.file conf$$ 2>/dev/null; then | |
828 | + as_ln_s=ln | |
829 | + else | |
830 | as_ln_s='cp -p' | |
831 | -elif ln conf$$.file conf$$ 2>/dev/null; then | |
832 | - as_ln_s=ln | |
833 | + fi | |
834 | else | |
835 | as_ln_s='cp -p' | |
836 | fi | |
837 | @@ -514,7 +492,7 @@ | |
838 | rmdir conf$$.dir 2>/dev/null | |
839 | ||
840 | if mkdir -p . 2>/dev/null; then | |
841 | - as_mkdir_p=: | |
842 | + as_mkdir_p='mkdir -p "$as_dir"' | |
843 | else | |
844 | test -d ./-p && rmdir ./-p | |
845 | as_mkdir_p=false | |
846 | @@ -531,12 +509,12 @@ | |
847 | as_test_x=' | |
848 | eval sh -c '\'' | |
849 | if test -d "$1"; then | |
850 | - test -d "$1/."; | |
851 | + test -d "$1/."; | |
852 | else | |
853 | - case $1 in | |
854 | - -*)set "./$1";; | |
855 | + case $1 in #( | |
856 | + -*)set "./$1";; | |
857 | esac; | |
858 | - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
859 | + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
860 | ???[sx]*):;;*)false;;esac;fi | |
861 | '\'' sh | |
862 | ' | |
863 | @@ -550,8 +528,8 @@ | |
864 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
865 | ||
866 | ||
867 | - | |
868 | -exec 7<&0 </dev/null 6>&1 | |
869 | +test -n "$DJDIR" || exec 7<&0 </dev/null | |
870 | +exec 6>&1 | |
871 | ||
872 | # Name of the host. | |
873 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
874 | @@ -569,7 +547,6 @@ | |
875 | subdirs= | |
876 | MFLAGS= | |
877 | MAKEFLAGS= | |
878 | -SHELL=${CONFIG_SHELL-/bin/sh} | |
879 | ||
880 | # Identity of this package. | |
881 | PACKAGE_NAME='libnl' | |
882 | @@ -577,58 +554,66 @@ | |
883 | PACKAGE_VERSION='1.1' | |
884 | PACKAGE_STRING='libnl 1.1' | |
885 | PACKAGE_BUGREPORT='tgraf@suug.ch' | |
886 | +PACKAGE_URL='' | |
887 | ||
888 | -ac_subst_vars='SHELL | |
889 | -PATH_SEPARATOR | |
890 | -PACKAGE_NAME | |
891 | -PACKAGE_TARNAME | |
892 | -PACKAGE_VERSION | |
893 | -PACKAGE_STRING | |
894 | -PACKAGE_BUGREPORT | |
895 | -exec_prefix | |
896 | -prefix | |
897 | -program_transform_name | |
898 | -bindir | |
899 | -sbindir | |
900 | -libexecdir | |
901 | -datarootdir | |
902 | -datadir | |
903 | -sysconfdir | |
904 | -sharedstatedir | |
905 | -localstatedir | |
906 | -includedir | |
907 | -oldincludedir | |
908 | -docdir | |
909 | -infodir | |
910 | -htmldir | |
911 | -dvidir | |
912 | -pdfdir | |
913 | -psdir | |
914 | -libdir | |
915 | -localedir | |
916 | -mandir | |
917 | -DEFS | |
918 | -ECHO_C | |
919 | -ECHO_N | |
920 | -ECHO_T | |
921 | -LIBS | |
922 | -build_alias | |
923 | -host_alias | |
924 | -target_alias | |
925 | -CC | |
926 | -CFLAGS | |
927 | -LDFLAGS | |
928 | -CPPFLAGS | |
929 | -ac_ct_CC | |
930 | -EXEEXT | |
931 | -OBJEXT | |
932 | -INSTALL_PROGRAM | |
933 | -INSTALL_SCRIPT | |
934 | -INSTALL_DATA | |
935 | -LIBNL_LIB | |
936 | +ac_subst_vars='LTLIBOBJS | |
937 | LIBOBJS | |
938 | -LTLIBOBJS' | |
939 | +LIBNL_LIB | |
940 | +STATIC_LIB | |
941 | +INSTALL_DATA | |
942 | +INSTALL_SCRIPT | |
943 | +INSTALL_PROGRAM | |
944 | +OBJEXT | |
945 | +EXEEXT | |
946 | +ac_ct_CC | |
947 | +CPPFLAGS | |
948 | +LDFLAGS | |
949 | +CFLAGS | |
950 | +CC | |
951 | +target_alias | |
952 | +host_alias | |
953 | +build_alias | |
954 | +LIBS | |
955 | +ECHO_T | |
956 | +ECHO_N | |
957 | +ECHO_C | |
958 | +DEFS | |
959 | +mandir | |
960 | +localedir | |
961 | +libdir | |
962 | +psdir | |
963 | +pdfdir | |
964 | +dvidir | |
965 | +htmldir | |
966 | +infodir | |
967 | +docdir | |
968 | +oldincludedir | |
969 | +includedir | |
970 | +localstatedir | |
971 | +sharedstatedir | |
972 | +sysconfdir | |
973 | +datadir | |
974 | +datarootdir | |
975 | +libexecdir | |
976 | +sbindir | |
977 | +bindir | |
978 | +program_transform_name | |
979 | +prefix | |
980 | +exec_prefix | |
981 | +PACKAGE_URL | |
982 | +PACKAGE_BUGREPORT | |
983 | +PACKAGE_STRING | |
984 | +PACKAGE_VERSION | |
985 | +PACKAGE_TARNAME | |
986 | +PACKAGE_NAME | |
987 | +PATH_SEPARATOR | |
988 | +SHELL' | |
989 | ac_subst_files='' | |
990 | +ac_user_opts=' | |
991 | +enable_option_checking | |
992 | +enable_verbose_errors | |
993 | +enable_static | |
994 | +' | |
995 | ac_precious_vars='build_alias | |
996 | host_alias | |
997 | target_alias | |
998 | @@ -642,6 +627,8 @@ | |
999 | # Initialize some variables set by options. | |
1000 | ac_init_help= | |
1001 | ac_init_version=false | |
1002 | +ac_unrecognized_opts= | |
1003 | +ac_unrecognized_sep= | |
1004 | # The variables have the same names as the options, with | |
1005 | # dashes changed to underlines. | |
1006 | cache_file=/dev/null | |
1007 | @@ -740,13 +727,20 @@ | |
1008 | datarootdir=$ac_optarg ;; | |
1009 | ||
1010 | -disable-* | --disable-*) | |
1011 | - ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
1012 | + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
1013 | # Reject names that are not valid shell variable names. | |
1014 | - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1015 | - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
1016 | - { (exit 1); exit 1; }; } | |
1017 | - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` | |
1018 | - eval enable_$ac_feature=no ;; | |
1019 | + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1020 | + as_fn_error "invalid feature name: $ac_useropt" | |
1021 | + ac_useropt_orig=$ac_useropt | |
1022 | + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1023 | + case $ac_user_opts in | |
1024 | + *" | |
1025 | +"enable_$ac_useropt" | |
1026 | +"*) ;; | |
1027 | + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1028 | + ac_unrecognized_sep=', ';; | |
1029 | + esac | |
1030 | + eval enable_$ac_useropt=no ;; | |
1031 | ||
1032 | -docdir | --docdir | --docdi | --doc | --do) | |
1033 | ac_prev=docdir ;; | |
1034 | @@ -759,13 +753,20 @@ | |
1035 | dvidir=$ac_optarg ;; | |
1036 | ||
1037 | -enable-* | --enable-*) | |
1038 | - ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
1039 | + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
1040 | # Reject names that are not valid shell variable names. | |
1041 | - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1042 | - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
1043 | - { (exit 1); exit 1; }; } | |
1044 | - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` | |
1045 | - eval enable_$ac_feature=\$ac_optarg ;; | |
1046 | + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1047 | + as_fn_error "invalid feature name: $ac_useropt" | |
1048 | + ac_useropt_orig=$ac_useropt | |
1049 | + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1050 | + case $ac_user_opts in | |
1051 | + *" | |
1052 | +"enable_$ac_useropt" | |
1053 | +"*) ;; | |
1054 | + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1055 | + ac_unrecognized_sep=', ';; | |
1056 | + esac | |
1057 | + eval enable_$ac_useropt=\$ac_optarg ;; | |
1058 | ||
1059 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1060 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1061 | @@ -956,22 +957,36 @@ | |
1062 | ac_init_version=: ;; | |
1063 | ||
1064 | -with-* | --with-*) | |
1065 | - ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1066 | + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1067 | # Reject names that are not valid shell variable names. | |
1068 | - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1069 | - { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
1070 | - { (exit 1); exit 1; }; } | |
1071 | - ac_package=`echo $ac_package | sed 's/[-.]/_/g'` | |
1072 | - eval with_$ac_package=\$ac_optarg ;; | |
1073 | + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1074 | + as_fn_error "invalid package name: $ac_useropt" | |
1075 | + ac_useropt_orig=$ac_useropt | |
1076 | + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1077 | + case $ac_user_opts in | |
1078 | + *" | |
1079 | +"with_$ac_useropt" | |
1080 | +"*) ;; | |
1081 | + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1082 | + ac_unrecognized_sep=', ';; | |
1083 | + esac | |
1084 | + eval with_$ac_useropt=\$ac_optarg ;; | |
1085 | ||
1086 | -without-* | --without-*) | |
1087 | - ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1088 | + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1089 | # Reject names that are not valid shell variable names. | |
1090 | - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1091 | - { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
1092 | - { (exit 1); exit 1; }; } | |
1093 | - ac_package=`echo $ac_package | sed 's/[-.]/_/g'` | |
1094 | - eval with_$ac_package=no ;; | |
1095 | + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1096 | + as_fn_error "invalid package name: $ac_useropt" | |
1097 | + ac_useropt_orig=$ac_useropt | |
1098 | + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1099 | + case $ac_user_opts in | |
1100 | + *" | |
1101 | +"with_$ac_useropt" | |
1102 | +"*) ;; | |
1103 | + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1104 | + ac_unrecognized_sep=', ';; | |
1105 | + esac | |
1106 | + eval with_$ac_useropt=no ;; | |
1107 | ||
1108 | --x) | |
1109 | # Obsolete; use --with-x. | |
1110 | @@ -991,25 +1006,25 @@ | |
1111 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1112 | x_libraries=$ac_optarg ;; | |
1113 | ||
1114 | - -*) { echo "$as_me: error: unrecognized option: $ac_option | |
1115 | -Try \`$0 --help' for more information." >&2 | |
1116 | - { (exit 1); exit 1; }; } | |
1117 | + -*) as_fn_error "unrecognized option: \`$ac_option' | |
1118 | +Try \`$0 --help' for more information." | |
1119 | ;; | |
1120 | ||
1121 | *=*) | |
1122 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1123 | # Reject names that are not valid shell variable names. | |
1124 | - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
1125 | - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
1126 | - { (exit 1); exit 1; }; } | |
1127 | + case $ac_envvar in #( | |
1128 | + '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1129 | + as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1130 | + esac | |
1131 | eval $ac_envvar=\$ac_optarg | |
1132 | export $ac_envvar ;; | |
1133 | ||
1134 | *) | |
1135 | # FIXME: should be removed in autoconf 3.0. | |
1136 | - echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1137 | + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1138 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1139 | - echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1140 | + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1141 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
1142 | ;; | |
1143 | ||
1144 | @@ -1018,23 +1033,36 @@ | |
1145 | ||
1146 | if test -n "$ac_prev"; then | |
1147 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1148 | - { echo "$as_me: error: missing argument to $ac_option" >&2 | |
1149 | - { (exit 1); exit 1; }; } | |
1150 | + as_fn_error "missing argument to $ac_option" | |
1151 | +fi | |
1152 | + | |
1153 | +if test -n "$ac_unrecognized_opts"; then | |
1154 | + case $enable_option_checking in | |
1155 | + no) ;; | |
1156 | + fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1157 | + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1158 | + esac | |
1159 | fi | |
1160 | ||
1161 | -# Be sure to have absolute directory names. | |
1162 | +# Check all directory arguments for consistency. | |
1163 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1164 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1165 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1166 | libdir localedir mandir | |
1167 | do | |
1168 | eval ac_val=\$$ac_var | |
1169 | + # Remove trailing slashes. | |
1170 | + case $ac_val in | |
1171 | + */ ) | |
1172 | + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1173 | + eval $ac_var=\$ac_val;; | |
1174 | + esac | |
1175 | + # Be sure to have absolute directory names. | |
1176 | case $ac_val in | |
1177 | [\\/$]* | ?:[\\/]* ) continue;; | |
1178 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1179 | esac | |
1180 | - { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
1181 | - { (exit 1); exit 1; }; } | |
1182 | + as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" | |
1183 | done | |
1184 | ||
1185 | # There might be people who depend on the old broken behavior: `$host' | |
1186 | @@ -1048,7 +1076,7 @@ | |
1187 | if test "x$host_alias" != x; then | |
1188 | if test "x$build_alias" = x; then | |
1189 | cross_compiling=maybe | |
1190 | - echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1191 | + $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1192 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
1193 | elif test "x$build_alias" != "x$host_alias"; then | |
1194 | cross_compiling=yes | |
1195 | @@ -1064,23 +1092,21 @@ | |
1196 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1197 | ac_ls_di=`ls -di .` && | |
1198 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1199 | - { echo "$as_me: error: Working directory cannot be determined" >&2 | |
1200 | - { (exit 1); exit 1; }; } | |
1201 | + as_fn_error "working directory cannot be determined" | |
1202 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1203 | - { echo "$as_me: error: pwd does not report name of working directory" >&2 | |
1204 | - { (exit 1); exit 1; }; } | |
1205 | + as_fn_error "pwd does not report name of working directory" | |
1206 | ||
1207 | ||
1208 | # Find the source files, if location was not specified. | |
1209 | if test -z "$srcdir"; then | |
1210 | ac_srcdir_defaulted=yes | |
1211 | # Try the directory containing this script, then the parent directory. | |
1212 | - ac_confdir=`$as_dirname -- "$0" || | |
1213 | -$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1214 | - X"$0" : 'X\(//\)[^/]' \| \ | |
1215 | - X"$0" : 'X\(//\)$' \| \ | |
1216 | - X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
1217 | -echo X"$0" | | |
1218 | + ac_confdir=`$as_dirname -- "$as_myself" || | |
1219 | +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1220 | + X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1221 | + X"$as_myself" : 'X\(//\)$' \| \ | |
1222 | + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1223 | +$as_echo X"$as_myself" | | |
1224 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1225 | s//\1/ | |
1226 | q | |
1227 | @@ -1107,13 +1133,11 @@ | |
1228 | fi | |
1229 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1230 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1231 | - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
1232 | - { (exit 1); exit 1; }; } | |
1233 | + as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1234 | fi | |
1235 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1236 | ac_abs_confdir=`( | |
1237 | - cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 | |
1238 | - { (exit 1); exit 1; }; } | |
1239 | + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1240 | pwd)` | |
1241 | # When building in place, set srcdir=. | |
1242 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1243 | @@ -1161,9 +1185,9 @@ | |
1244 | ||
1245 | Installation directories: | |
1246 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1247 | - [$ac_default_prefix] | |
1248 | + [$ac_default_prefix] | |
1249 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1250 | - [PREFIX] | |
1251 | + [PREFIX] | |
1252 | ||
1253 | By default, \`make install' will install all the files in | |
1254 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1255 | @@ -1173,25 +1197,25 @@ | |
1256 | For better control, use the options below. | |
1257 | ||
1258 | Fine tuning of the installation directories: | |
1259 | - --bindir=DIR user executables [EPREFIX/bin] | |
1260 | - --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1261 | - --libexecdir=DIR program executables [EPREFIX/libexec] | |
1262 | - --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1263 | - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1264 | - --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1265 | - --libdir=DIR object code libraries [EPREFIX/lib] | |
1266 | - --includedir=DIR C header files [PREFIX/include] | |
1267 | - --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1268 | - --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1269 | - --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1270 | - --infodir=DIR info documentation [DATAROOTDIR/info] | |
1271 | - --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1272 | - --mandir=DIR man documentation [DATAROOTDIR/man] | |
1273 | - --docdir=DIR documentation root [DATAROOTDIR/doc/libnl] | |
1274 | - --htmldir=DIR html documentation [DOCDIR] | |
1275 | - --dvidir=DIR dvi documentation [DOCDIR] | |
1276 | - --pdfdir=DIR pdf documentation [DOCDIR] | |
1277 | - --psdir=DIR ps documentation [DOCDIR] | |
1278 | + --bindir=DIR user executables [EPREFIX/bin] | |
1279 | + --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1280 | + --libexecdir=DIR program executables [EPREFIX/libexec] | |
1281 | + --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1282 | + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1283 | + --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1284 | + --libdir=DIR object code libraries [EPREFIX/lib] | |
1285 | + --includedir=DIR C header files [PREFIX/include] | |
1286 | + --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1287 | + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1288 | + --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1289 | + --infodir=DIR info documentation [DATAROOTDIR/info] | |
1290 | + --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1291 | + --mandir=DIR man documentation [DATAROOTDIR/man] | |
1292 | + --docdir=DIR documentation root [DATAROOTDIR/doc/libnl] | |
1293 | + --htmldir=DIR html documentation [DOCDIR] | |
1294 | + --dvidir=DIR dvi documentation [DOCDIR] | |
1295 | + --pdfdir=DIR pdf documentation [DOCDIR] | |
1296 | + --psdir=DIR ps documentation [DOCDIR] | |
1297 | _ACEOF | |
1298 | ||
1299 | cat <<\_ACEOF | |
1300 | @@ -1205,9 +1229,11 @@ | |
1301 | cat <<\_ACEOF | |
1302 | ||
1303 | Optional Features: | |
1304 | + --disable-option-checking ignore unrecognized --enable/--with options | |
1305 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1306 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1307 | --enable-verbose-errors enable verbose errors (debugging) | |
1308 | + --enable-static make static library default=no | |
1309 | ||
1310 | Some influential environment variables: | |
1311 | CC C compiler command | |
1312 | @@ -1215,7 +1241,7 @@ | |
1313 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1314 | nonstandard directory <lib dir> | |
1315 | LIBS libraries to pass to the linker, e.g. -l<library> | |
1316 | - CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1317 | + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | |
1318 | you have headers in a nonstandard directory <include dir> | |
1319 | ||
1320 | Use these variables to override the choices made by `configure' or to help | |
1321 | @@ -1229,15 +1255,17 @@ | |
1322 | if test "$ac_init_help" = "recursive"; then | |
1323 | # If there are subdirs, report their specific --help. | |
1324 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1325 | - test -d "$ac_dir" || continue | |
1326 | + test -d "$ac_dir" || | |
1327 | + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1328 | + continue | |
1329 | ac_builddir=. | |
1330 | ||
1331 | case "$ac_dir" in | |
1332 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1333 | *) | |
1334 | - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1335 | + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1336 | # A ".." for each directory in $ac_dir_suffix. | |
1337 | - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
1338 | + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1339 | case $ac_top_builddir_sub in | |
1340 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1341 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1342 | @@ -1273,7 +1301,7 @@ | |
1343 | echo && | |
1344 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1345 | else | |
1346 | - echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1347 | + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1348 | fi || ac_status=$? | |
1349 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1350 | done | |
1351 | @@ -1283,21 +1311,108 @@ | |
1352 | if $ac_init_version; then | |
1353 | cat <<\_ACEOF | |
1354 | libnl configure 1.1 | |
1355 | -generated by GNU Autoconf 2.61 | |
1356 | +generated by GNU Autoconf 2.65 | |
1357 | + | |
1358 | +Copyright (C) 2009 Free Software Foundation, Inc. | |
1359 | +This configure script is free software; the Free Software Foundation | |
1360 | +gives unlimited permission to copy, distribute and modify it. | |
1361 | +_ACEOF | |
1362 | + exit | |
1363 | +fi | |
1364 | + | |
1365 | +## ------------------------ ## | |
1366 | +## Autoconf initialization. ## | |
1367 | +## ------------------------ ## | |
1368 | + | |
1369 | +# ac_fn_c_try_compile LINENO | |
1370 | +# -------------------------- | |
1371 | +# Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1372 | +ac_fn_c_try_compile () | |
1373 | +{ | |
1374 | + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1375 | + rm -f conftest.$ac_objext | |
1376 | + if { { ac_try="$ac_compile" | |
1377 | +case "(($ac_try" in | |
1378 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1379 | + *) ac_try_echo=$ac_try;; | |
1380 | +esac | |
1381 | +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1382 | +$as_echo "$ac_try_echo"; } >&5 | |
1383 | + (eval "$ac_compile") 2>conftest.err | |
1384 | + ac_status=$? | |
1385 | + if test -s conftest.err; then | |
1386 | + grep -v '^ *+' conftest.err >conftest.er1 | |
1387 | + cat conftest.er1 >&5 | |
1388 | + mv -f conftest.er1 conftest.err | |
1389 | + fi | |
1390 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1391 | + test $ac_status = 0; } && { | |
1392 | + test -z "$ac_c_werror_flag" || | |
1393 | + test ! -s conftest.err | |
1394 | + } && test -s conftest.$ac_objext; then : | |
1395 | + ac_retval=0 | |
1396 | +else | |
1397 | + $as_echo "$as_me: failed program was:" >&5 | |
1398 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
1399 | + | |
1400 | + ac_retval=1 | |
1401 | +fi | |
1402 | + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1403 | + as_fn_set_status $ac_retval | |
1404 | + | |
1405 | +} # ac_fn_c_try_compile | |
1406 | + | |
1407 | +# ac_fn_c_try_link LINENO | |
1408 | +# ----------------------- | |
1409 | +# Try to link conftest.$ac_ext, and return whether this succeeded. | |
1410 | +ac_fn_c_try_link () | |
1411 | +{ | |
1412 | + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1413 | + rm -f conftest.$ac_objext conftest$ac_exeext | |
1414 | + if { { ac_try="$ac_link" | |
1415 | +case "(($ac_try" in | |
1416 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1417 | + *) ac_try_echo=$ac_try;; | |
1418 | +esac | |
1419 | +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1420 | +$as_echo "$ac_try_echo"; } >&5 | |
1421 | + (eval "$ac_link") 2>conftest.err | |
1422 | + ac_status=$? | |
1423 | + if test -s conftest.err; then | |
1424 | + grep -v '^ *+' conftest.err >conftest.er1 | |
1425 | + cat conftest.er1 >&5 | |
1426 | + mv -f conftest.er1 conftest.err | |
1427 | + fi | |
1428 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1429 | + test $ac_status = 0; } && { | |
1430 | + test -z "$ac_c_werror_flag" || | |
1431 | + test ! -s conftest.err | |
1432 | + } && test -s conftest$ac_exeext && { | |
1433 | + test "$cross_compiling" = yes || | |
1434 | + $as_test_x conftest$ac_exeext | |
1435 | + }; then : | |
1436 | + ac_retval=0 | |
1437 | +else | |
1438 | + $as_echo "$as_me: failed program was:" >&5 | |
1439 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
1440 | ||
1441 | -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
1442 | -2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
1443 | -This configure script is free software; the Free Software Foundation | |
1444 | -gives unlimited permission to copy, distribute and modify it. | |
1445 | -_ACEOF | |
1446 | - exit | |
1447 | + ac_retval=1 | |
1448 | fi | |
1449 | + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1450 | + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1451 | + # interfere with the next link command; also delete a directory that is | |
1452 | + # left behind by Apple's compiler. We do this before executing the actions. | |
1453 | + rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1454 | + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1455 | + as_fn_set_status $ac_retval | |
1456 | + | |
1457 | +} # ac_fn_c_try_link | |
1458 | cat >config.log <<_ACEOF | |
1459 | This file contains any messages produced by compilers while | |
1460 | running configure, to aid debugging if configure makes a mistake. | |
1461 | ||
1462 | It was created by libnl $as_me 1.1, which was | |
1463 | -generated by GNU Autoconf 2.61. Invocation command line was | |
1464 | +generated by GNU Autoconf 2.65. Invocation command line was | |
1465 | ||
1466 | $ $0 $@ | |
1467 | ||
1468 | @@ -1333,8 +1448,8 @@ | |
1469 | do | |
1470 | IFS=$as_save_IFS | |
1471 | test -z "$as_dir" && as_dir=. | |
1472 | - echo "PATH: $as_dir" | |
1473 | -done | |
1474 | + $as_echo "PATH: $as_dir" | |
1475 | + done | |
1476 | IFS=$as_save_IFS | |
1477 | ||
1478 | } >&5 | |
1479 | @@ -1368,12 +1483,12 @@ | |
1480 | | -silent | --silent | --silen | --sile | --sil) | |
1481 | continue ;; | |
1482 | *\'*) | |
1483 | - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1484 | + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1485 | esac | |
1486 | case $ac_pass in | |
1487 | - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1488 | + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
1489 | 2) | |
1490 | - ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1491 | + as_fn_append ac_configure_args1 " '$ac_arg'" | |
1492 | if test $ac_must_keep_next = true; then | |
1493 | ac_must_keep_next=false # Got value, back to normal. | |
1494 | else | |
1495 | @@ -1389,13 +1504,13 @@ | |
1496 | -* ) ac_must_keep_next=true ;; | |
1497 | esac | |
1498 | fi | |
1499 | - ac_configure_args="$ac_configure_args '$ac_arg'" | |
1500 | + as_fn_append ac_configure_args " '$ac_arg'" | |
1501 | ;; | |
1502 | esac | |
1503 | done | |
1504 | done | |
1505 | -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1506 | -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1507 | +{ ac_configure_args0=; unset ac_configure_args0;} | |
1508 | +{ ac_configure_args1=; unset ac_configure_args1;} | |
1509 | ||
1510 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1511 | # config.log. We remove comments because anyway the quotes in there | |
1512 | @@ -1420,12 +1535,13 @@ | |
1513 | case $ac_val in #( | |
1514 | *${as_nl}*) | |
1515 | case $ac_var in #( | |
1516 | - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
1517 | -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
1518 | + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
1519 | +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
1520 | esac | |
1521 | case $ac_var in #( | |
1522 | _ | IFS | as_nl) ;; #( | |
1523 | - *) $as_unset $ac_var ;; | |
1524 | + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
1525 | + *) { eval $ac_var=; unset $ac_var;} ;; | |
1526 | esac ;; | |
1527 | esac | |
1528 | done | |
1529 | @@ -1454,9 +1570,9 @@ | |
1530 | do | |
1531 | eval ac_val=\$$ac_var | |
1532 | case $ac_val in | |
1533 | - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1534 | + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1535 | esac | |
1536 | - echo "$ac_var='\''$ac_val'\''" | |
1537 | + $as_echo "$ac_var='\''$ac_val'\''" | |
1538 | done | sort | |
1539 | echo | |
1540 | ||
1541 | @@ -1471,9 +1587,9 @@ | |
1542 | do | |
1543 | eval ac_val=\$$ac_var | |
1544 | case $ac_val in | |
1545 | - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1546 | + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1547 | esac | |
1548 | - echo "$ac_var='\''$ac_val'\''" | |
1549 | + $as_echo "$ac_var='\''$ac_val'\''" | |
1550 | done | sort | |
1551 | echo | |
1552 | fi | |
1553 | @@ -1489,83 +1605,88 @@ | |
1554 | echo | |
1555 | fi | |
1556 | test "$ac_signal" != 0 && | |
1557 | - echo "$as_me: caught signal $ac_signal" | |
1558 | - echo "$as_me: exit $exit_status" | |
1559 | + $as_echo "$as_me: caught signal $ac_signal" | |
1560 | + $as_echo "$as_me: exit $exit_status" | |
1561 | } >&5 | |
1562 | rm -f core *.core core.conftest.* && | |
1563 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
1564 | exit $exit_status | |
1565 | ' 0 | |
1566 | for ac_signal in 1 2 13 15; do | |
1567 | - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1568 | + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
1569 | done | |
1570 | ac_signal=0 | |
1571 | ||
1572 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1573 | rm -f -r conftest* confdefs.h | |
1574 | ||
1575 | +$as_echo "/* confdefs.h */" > confdefs.h | |
1576 | + | |
1577 | # Predefined preprocessor variables. | |
1578 | ||
1579 | cat >>confdefs.h <<_ACEOF | |
1580 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1581 | _ACEOF | |
1582 | ||
1583 | - | |
1584 | cat >>confdefs.h <<_ACEOF | |
1585 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1586 | _ACEOF | |
1587 | ||
1588 | - | |
1589 | cat >>confdefs.h <<_ACEOF | |
1590 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1591 | _ACEOF | |
1592 | ||
1593 | - | |
1594 | cat >>confdefs.h <<_ACEOF | |
1595 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1596 | _ACEOF | |
1597 | ||
1598 | - | |
1599 | cat >>confdefs.h <<_ACEOF | |
1600 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1601 | _ACEOF | |
1602 | ||
1603 | +cat >>confdefs.h <<_ACEOF | |
1604 | +#define PACKAGE_URL "$PACKAGE_URL" | |
1605 | +_ACEOF | |
1606 | + | |
1607 | ||
1608 | # Let the site file select an alternate cache file if it wants to. | |
1609 | -# Prefer explicitly selected file to automatically selected ones. | |
1610 | +# Prefer an explicitly selected file to automatically selected ones. | |
1611 | +ac_site_file1=NONE | |
1612 | +ac_site_file2=NONE | |
1613 | if test -n "$CONFIG_SITE"; then | |
1614 | - set x "$CONFIG_SITE" | |
1615 | + ac_site_file1=$CONFIG_SITE | |
1616 | elif test "x$prefix" != xNONE; then | |
1617 | - set x "$prefix/share/config.site" "$prefix/etc/config.site" | |
1618 | + ac_site_file1=$prefix/share/config.site | |
1619 | + ac_site_file2=$prefix/etc/config.site | |
1620 | else | |
1621 | - set x "$ac_default_prefix/share/config.site" \ | |
1622 | - "$ac_default_prefix/etc/config.site" | |
1623 | + ac_site_file1=$ac_default_prefix/share/config.site | |
1624 | + ac_site_file2=$ac_default_prefix/etc/config.site | |
1625 | fi | |
1626 | -shift | |
1627 | -for ac_site_file | |
1628 | +for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
1629 | do | |
1630 | - if test -r "$ac_site_file"; then | |
1631 | - { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1632 | -echo "$as_me: loading site script $ac_site_file" >&6;} | |
1633 | + test "x$ac_site_file" = xNONE && continue | |
1634 | + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
1635 | + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
1636 | +$as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
1637 | sed 's/^/| /' "$ac_site_file" >&5 | |
1638 | . "$ac_site_file" | |
1639 | fi | |
1640 | done | |
1641 | ||
1642 | if test -r "$cache_file"; then | |
1643 | - # Some versions of bash will fail to source /dev/null (special | |
1644 | - # files actually), so we avoid doing that. | |
1645 | - if test -f "$cache_file"; then | |
1646 | - { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1647 | -echo "$as_me: loading cache $cache_file" >&6;} | |
1648 | + # Some versions of bash will fail to source /dev/null (special files | |
1649 | + # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
1650 | + if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
1651 | + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
1652 | +$as_echo "$as_me: loading cache $cache_file" >&6;} | |
1653 | case $cache_file in | |
1654 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
1655 | *) . "./$cache_file";; | |
1656 | esac | |
1657 | fi | |
1658 | else | |
1659 | - { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1660 | -echo "$as_me: creating cache $cache_file" >&6;} | |
1661 | + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
1662 | +$as_echo "$as_me: creating cache $cache_file" >&6;} | |
1663 | >$cache_file | |
1664 | fi | |
1665 | ||
1666 | @@ -1579,68 +1700,56 @@ | |
1667 | eval ac_new_val=\$ac_env_${ac_var}_value | |
1668 | case $ac_old_set,$ac_new_set in | |
1669 | set,) | |
1670 | - { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1671 | -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1672 | + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1673 | +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1674 | ac_cache_corrupted=: ;; | |
1675 | ,set) | |
1676 | - { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1677 | -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1678 | + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
1679 | +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1680 | ac_cache_corrupted=: ;; | |
1681 | ,);; | |
1682 | *) | |
1683 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1684 | - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1685 | -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1686 | - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1687 | -echo "$as_me: former value: $ac_old_val" >&2;} | |
1688 | - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1689 | -echo "$as_me: current value: $ac_new_val" >&2;} | |
1690 | - ac_cache_corrupted=: | |
1691 | + # differences in whitespace do not lead to failure. | |
1692 | + ac_old_val_w=`echo x $ac_old_val` | |
1693 | + ac_new_val_w=`echo x $ac_new_val` | |
1694 | + if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1695 | + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
1696 | +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1697 | + ac_cache_corrupted=: | |
1698 | + else | |
1699 | + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1700 | +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1701 | + eval $ac_var=\$ac_old_val | |
1702 | + fi | |
1703 | + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
1704 | +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
1705 | + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
1706 | +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
1707 | fi;; | |
1708 | esac | |
1709 | # Pass precious variables to config.status. | |
1710 | if test "$ac_new_set" = set; then | |
1711 | case $ac_new_val in | |
1712 | - *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1713 | + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1714 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1715 | esac | |
1716 | case " $ac_configure_args " in | |
1717 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1718 | - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1719 | + *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
1720 | esac | |
1721 | fi | |
1722 | done | |
1723 | if $ac_cache_corrupted; then | |
1724 | - { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1725 | -echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1726 | - { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1727 | -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1728 | - { (exit 1); exit 1; }; } | |
1729 | -fi | |
1730 | - | |
1731 | - | |
1732 | - | |
1733 | - | |
1734 | - | |
1735 | - | |
1736 | - | |
1737 | - | |
1738 | - | |
1739 | - | |
1740 | - | |
1741 | - | |
1742 | - | |
1743 | - | |
1744 | - | |
1745 | - | |
1746 | - | |
1747 | - | |
1748 | - | |
1749 | - | |
1750 | - | |
1751 | - | |
1752 | - | |
1753 | - | |
1754 | + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
1755 | +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1756 | + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
1757 | +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1758 | + as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
1759 | +fi | |
1760 | +## -------------------- ## | |
1761 | +## Main body of script. ## | |
1762 | +## -------------------- ## | |
1763 | ||
1764 | ac_ext=c | |
1765 | ac_cpp='$CPP $CPPFLAGS' | |
1766 | @@ -1664,10 +1773,10 @@ | |
1767 | if test -n "$ac_tool_prefix"; then | |
1768 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1769 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1770 | -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1771 | -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1772 | -if test "${ac_cv_prog_CC+set}" = set; then | |
1773 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1774 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
1775 | +$as_echo_n "checking for $ac_word... " >&6; } | |
1776 | +if test "${ac_cv_prog_CC+set}" = set; then : | |
1777 | + $as_echo_n "(cached) " >&6 | |
1778 | else | |
1779 | if test -n "$CC"; then | |
1780 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1781 | @@ -1677,25 +1786,25 @@ | |
1782 | do | |
1783 | IFS=$as_save_IFS | |
1784 | test -z "$as_dir" && as_dir=. | |
1785 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
1786 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
1787 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1788 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1789 | - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1790 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1791 | break 2 | |
1792 | fi | |
1793 | done | |
1794 | -done | |
1795 | + done | |
1796 | IFS=$as_save_IFS | |
1797 | ||
1798 | fi | |
1799 | fi | |
1800 | CC=$ac_cv_prog_CC | |
1801 | if test -n "$CC"; then | |
1802 | - { echo "$as_me:$LINENO: result: $CC" >&5 | |
1803 | -echo "${ECHO_T}$CC" >&6; } | |
1804 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
1805 | +$as_echo "$CC" >&6; } | |
1806 | else | |
1807 | - { echo "$as_me:$LINENO: result: no" >&5 | |
1808 | -echo "${ECHO_T}no" >&6; } | |
1809 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
1810 | +$as_echo "no" >&6; } | |
1811 | fi | |
1812 | ||
1813 | ||
1814 | @@ -1704,10 +1813,10 @@ | |
1815 | ac_ct_CC=$CC | |
1816 | # Extract the first word of "gcc", so it can be a program name with args. | |
1817 | set dummy gcc; ac_word=$2 | |
1818 | -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1819 | -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1820 | -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1821 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1822 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
1823 | +$as_echo_n "checking for $ac_word... " >&6; } | |
1824 | +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
1825 | + $as_echo_n "(cached) " >&6 | |
1826 | else | |
1827 | if test -n "$ac_ct_CC"; then | |
1828 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1829 | @@ -1717,25 +1826,25 @@ | |
1830 | do | |
1831 | IFS=$as_save_IFS | |
1832 | test -z "$as_dir" && as_dir=. | |
1833 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
1834 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
1835 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1836 | ac_cv_prog_ac_ct_CC="gcc" | |
1837 | - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1838 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1839 | break 2 | |
1840 | fi | |
1841 | done | |
1842 | -done | |
1843 | + done | |
1844 | IFS=$as_save_IFS | |
1845 | ||
1846 | fi | |
1847 | fi | |
1848 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1849 | if test -n "$ac_ct_CC"; then | |
1850 | - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1851 | -echo "${ECHO_T}$ac_ct_CC" >&6; } | |
1852 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
1853 | +$as_echo "$ac_ct_CC" >&6; } | |
1854 | else | |
1855 | - { echo "$as_me:$LINENO: result: no" >&5 | |
1856 | -echo "${ECHO_T}no" >&6; } | |
1857 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
1858 | +$as_echo "no" >&6; } | |
1859 | fi | |
1860 | ||
1861 | if test "x$ac_ct_CC" = x; then | |
1862 | @@ -1743,12 +1852,8 @@ | |
1863 | else | |
1864 | case $cross_compiling:$ac_tool_warned in | |
1865 | yes:) | |
1866 | -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
1867 | -whose name does not start with the host triplet. If you think this | |
1868 | -configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
1869 | -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
1870 | -whose name does not start with the host triplet. If you think this | |
1871 | -configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
1872 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
1873 | +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
1874 | ac_tool_warned=yes ;; | |
1875 | esac | |
1876 | CC=$ac_ct_CC | |
1877 | @@ -1761,10 +1866,10 @@ | |
1878 | if test -n "$ac_tool_prefix"; then | |
1879 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1880 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1881 | -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1882 | -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1883 | -if test "${ac_cv_prog_CC+set}" = set; then | |
1884 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1885 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
1886 | +$as_echo_n "checking for $ac_word... " >&6; } | |
1887 | +if test "${ac_cv_prog_CC+set}" = set; then : | |
1888 | + $as_echo_n "(cached) " >&6 | |
1889 | else | |
1890 | if test -n "$CC"; then | |
1891 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1892 | @@ -1774,25 +1879,25 @@ | |
1893 | do | |
1894 | IFS=$as_save_IFS | |
1895 | test -z "$as_dir" && as_dir=. | |
1896 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
1897 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
1898 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1899 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1900 | - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1901 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1902 | break 2 | |
1903 | fi | |
1904 | done | |
1905 | -done | |
1906 | + done | |
1907 | IFS=$as_save_IFS | |
1908 | ||
1909 | fi | |
1910 | fi | |
1911 | CC=$ac_cv_prog_CC | |
1912 | if test -n "$CC"; then | |
1913 | - { echo "$as_me:$LINENO: result: $CC" >&5 | |
1914 | -echo "${ECHO_T}$CC" >&6; } | |
1915 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
1916 | +$as_echo "$CC" >&6; } | |
1917 | else | |
1918 | - { echo "$as_me:$LINENO: result: no" >&5 | |
1919 | -echo "${ECHO_T}no" >&6; } | |
1920 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
1921 | +$as_echo "no" >&6; } | |
1922 | fi | |
1923 | ||
1924 | ||
1925 | @@ -1801,10 +1906,10 @@ | |
1926 | if test -z "$CC"; then | |
1927 | # Extract the first word of "cc", so it can be a program name with args. | |
1928 | set dummy cc; ac_word=$2 | |
1929 | -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1930 | -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1931 | -if test "${ac_cv_prog_CC+set}" = set; then | |
1932 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1933 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
1934 | +$as_echo_n "checking for $ac_word... " >&6; } | |
1935 | +if test "${ac_cv_prog_CC+set}" = set; then : | |
1936 | + $as_echo_n "(cached) " >&6 | |
1937 | else | |
1938 | if test -n "$CC"; then | |
1939 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1940 | @@ -1815,18 +1920,18 @@ | |
1941 | do | |
1942 | IFS=$as_save_IFS | |
1943 | test -z "$as_dir" && as_dir=. | |
1944 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
1945 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
1946 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1947 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
1948 | ac_prog_rejected=yes | |
1949 | continue | |
1950 | fi | |
1951 | ac_cv_prog_CC="cc" | |
1952 | - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1953 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1954 | break 2 | |
1955 | fi | |
1956 | done | |
1957 | -done | |
1958 | + done | |
1959 | IFS=$as_save_IFS | |
1960 | ||
1961 | if test $ac_prog_rejected = yes; then | |
1962 | @@ -1845,11 +1950,11 @@ | |
1963 | fi | |
1964 | CC=$ac_cv_prog_CC | |
1965 | if test -n "$CC"; then | |
1966 | - { echo "$as_me:$LINENO: result: $CC" >&5 | |
1967 | -echo "${ECHO_T}$CC" >&6; } | |
1968 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
1969 | +$as_echo "$CC" >&6; } | |
1970 | else | |
1971 | - { echo "$as_me:$LINENO: result: no" >&5 | |
1972 | -echo "${ECHO_T}no" >&6; } | |
1973 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
1974 | +$as_echo "no" >&6; } | |
1975 | fi | |
1976 | ||
1977 | ||
1978 | @@ -1860,10 +1965,10 @@ | |
1979 | do | |
1980 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1981 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1982 | -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1983 | -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1984 | -if test "${ac_cv_prog_CC+set}" = set; then | |
1985 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1986 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
1987 | +$as_echo_n "checking for $ac_word... " >&6; } | |
1988 | +if test "${ac_cv_prog_CC+set}" = set; then : | |
1989 | + $as_echo_n "(cached) " >&6 | |
1990 | else | |
1991 | if test -n "$CC"; then | |
1992 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1993 | @@ -1873,25 +1978,25 @@ | |
1994 | do | |
1995 | IFS=$as_save_IFS | |
1996 | test -z "$as_dir" && as_dir=. | |
1997 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
1998 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
1999 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2000 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2001 | - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2002 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2003 | break 2 | |
2004 | fi | |
2005 | done | |
2006 | -done | |
2007 | + done | |
2008 | IFS=$as_save_IFS | |
2009 | ||
2010 | fi | |
2011 | fi | |
2012 | CC=$ac_cv_prog_CC | |
2013 | if test -n "$CC"; then | |
2014 | - { echo "$as_me:$LINENO: result: $CC" >&5 | |
2015 | -echo "${ECHO_T}$CC" >&6; } | |
2016 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2017 | +$as_echo "$CC" >&6; } | |
2018 | else | |
2019 | - { echo "$as_me:$LINENO: result: no" >&5 | |
2020 | -echo "${ECHO_T}no" >&6; } | |
2021 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2022 | +$as_echo "no" >&6; } | |
2023 | fi | |
2024 | ||
2025 | ||
2026 | @@ -1904,10 +2009,10 @@ | |
2027 | do | |
2028 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2029 | set dummy $ac_prog; ac_word=$2 | |
2030 | -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2031 | -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2032 | -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2033 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2034 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2035 | +$as_echo_n "checking for $ac_word... " >&6; } | |
2036 | +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2037 | + $as_echo_n "(cached) " >&6 | |
2038 | else | |
2039 | if test -n "$ac_ct_CC"; then | |
2040 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2041 | @@ -1917,25 +2022,25 @@ | |
2042 | do | |
2043 | IFS=$as_save_IFS | |
2044 | test -z "$as_dir" && as_dir=. | |
2045 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
2046 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
2047 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2048 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2049 | - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2050 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2051 | break 2 | |
2052 | fi | |
2053 | done | |
2054 | -done | |
2055 | + done | |
2056 | IFS=$as_save_IFS | |
2057 | ||
2058 | fi | |
2059 | fi | |
2060 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2061 | if test -n "$ac_ct_CC"; then | |
2062 | - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2063 | -echo "${ECHO_T}$ac_ct_CC" >&6; } | |
2064 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2065 | +$as_echo "$ac_ct_CC" >&6; } | |
2066 | else | |
2067 | - { echo "$as_me:$LINENO: result: no" >&5 | |
2068 | -echo "${ECHO_T}no" >&6; } | |
2069 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2070 | +$as_echo "no" >&6; } | |
2071 | fi | |
2072 | ||
2073 | ||
2074 | @@ -1947,12 +2052,8 @@ | |
2075 | else | |
2076 | case $cross_compiling:$ac_tool_warned in | |
2077 | yes:) | |
2078 | -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2079 | -whose name does not start with the host triplet. If you think this | |
2080 | -configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2081 | -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2082 | -whose name does not start with the host triplet. If you think this | |
2083 | -configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2084 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2085 | +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2086 | ac_tool_warned=yes ;; | |
2087 | esac | |
2088 | CC=$ac_ct_CC | |
2089 | @@ -1962,51 +2063,37 @@ | |
2090 | fi | |
2091 | ||
2092 | ||
2093 | -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2094 | -See \`config.log' for more details." >&5 | |
2095 | -echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2096 | -See \`config.log' for more details." >&2;} | |
2097 | - { (exit 1); exit 1; }; } | |
2098 | +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2099 | +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2100 | +as_fn_error "no acceptable C compiler found in \$PATH | |
2101 | +See \`config.log' for more details." "$LINENO" 5; } | |
2102 | ||
2103 | # Provide some information about the compiler. | |
2104 | -echo "$as_me:$LINENO: checking for C compiler version" >&5 | |
2105 | -ac_compiler=`set X $ac_compile; echo $2` | |
2106 | -{ (ac_try="$ac_compiler --version >&5" | |
2107 | -case "(($ac_try" in | |
2108 | - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2109 | - *) ac_try_echo=$ac_try;; | |
2110 | -esac | |
2111 | -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2112 | - (eval "$ac_compiler --version >&5") 2>&5 | |
2113 | - ac_status=$? | |
2114 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2115 | - (exit $ac_status); } | |
2116 | -{ (ac_try="$ac_compiler -v >&5" | |
2117 | -case "(($ac_try" in | |
2118 | - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2119 | - *) ac_try_echo=$ac_try;; | |
2120 | -esac | |
2121 | -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2122 | - (eval "$ac_compiler -v >&5") 2>&5 | |
2123 | - ac_status=$? | |
2124 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2125 | - (exit $ac_status); } | |
2126 | -{ (ac_try="$ac_compiler -V >&5" | |
2127 | +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
2128 | +set X $ac_compile | |
2129 | +ac_compiler=$2 | |
2130 | +for ac_option in --version -v -V -qversion; do | |
2131 | + { { ac_try="$ac_compiler $ac_option >&5" | |
2132 | case "(($ac_try" in | |
2133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2134 | *) ac_try_echo=$ac_try;; | |
2135 | esac | |
2136 | -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2137 | - (eval "$ac_compiler -V >&5") 2>&5 | |
2138 | +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2139 | +$as_echo "$ac_try_echo"; } >&5 | |
2140 | + (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
2141 | ac_status=$? | |
2142 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2143 | - (exit $ac_status); } | |
2144 | + if test -s conftest.err; then | |
2145 | + sed '10a\ | |
2146 | +... rest of stderr output deleted ... | |
2147 | + 10q' conftest.err >conftest.er1 | |
2148 | + cat conftest.er1 >&5 | |
2149 | + fi | |
2150 | + rm -f conftest.er1 conftest.err | |
2151 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2152 | + test $ac_status = 0; } | |
2153 | +done | |
2154 | ||
2155 | -cat >conftest.$ac_ext <<_ACEOF | |
2156 | -/* confdefs.h. */ | |
2157 | -_ACEOF | |
2158 | -cat confdefs.h >>conftest.$ac_ext | |
2159 | -cat >>conftest.$ac_ext <<_ACEOF | |
2160 | +cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2161 | /* end confdefs.h. */ | |
2162 | ||
2163 | int | |
2164 | @@ -2018,42 +2105,38 @@ | |
2165 | } | |
2166 | _ACEOF | |
2167 | ac_clean_files_save=$ac_clean_files | |
2168 | -ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
2169 | +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
2170 | # Try to create an executable without -o first, disregard a.out. | |
2171 | # It will help us diagnose broken compilers, and finding out an intuition | |
2172 | # of exeext. | |
2173 | -{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
2174 | -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | |
2175 | -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2176 | -# | |
2177 | -# List of possible output files, starting from the most likely. | |
2178 | -# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | |
2179 | -# only as a last resort. b.out is created by i960 compilers. | |
2180 | -ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | |
2181 | -# | |
2182 | -# The IRIX 6 linker writes into existing files which may not be | |
2183 | -# executable, retaining their permissions. Remove them first so a | |
2184 | -# subsequent execution test works. | |
2185 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
2186 | +$as_echo_n "checking whether the C compiler works... " >&6; } | |
2187 | +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2188 | + | |
2189 | +# The possible output files: | |
2190 | +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2191 | + | |
2192 | ac_rmfiles= | |
2193 | for ac_file in $ac_files | |
2194 | do | |
2195 | case $ac_file in | |
2196 | - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | |
2197 | + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2198 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2199 | esac | |
2200 | done | |
2201 | rm -f $ac_rmfiles | |
2202 | ||
2203 | -if { (ac_try="$ac_link_default" | |
2204 | +if { { ac_try="$ac_link_default" | |
2205 | case "(($ac_try" in | |
2206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2207 | *) ac_try_echo=$ac_try;; | |
2208 | esac | |
2209 | -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2210 | +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2211 | +$as_echo "$ac_try_echo"; } >&5 | |
2212 | (eval "$ac_link_default") 2>&5 | |
2213 | ac_status=$? | |
2214 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2215 | - (exit $ac_status); }; then | |
2216 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2217 | + test $ac_status = 0; }; then : | |
2218 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2219 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2220 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2221 | @@ -2063,14 +2146,14 @@ | |
2222 | do | |
2223 | test -f "$ac_file" || continue | |
2224 | case $ac_file in | |
2225 | - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) | |
2226 | + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
2227 | ;; | |
2228 | [ab].out ) | |
2229 | # We found the default executable, but exeext='' is most | |
2230 | # certainly right. | |
2231 | break;; | |
2232 | *.* ) | |
2233 | - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
2234 | + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
2235 | then :; else | |
2236 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2237 | fi | |
2238 | @@ -2089,78 +2172,42 @@ | |
2239 | else | |
2240 | ac_file='' | |
2241 | fi | |
2242 | - | |
2243 | -{ echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2244 | -echo "${ECHO_T}$ac_file" >&6; } | |
2245 | -if test -z "$ac_file"; then | |
2246 | - echo "$as_me: failed program was:" >&5 | |
2247 | +if test -z "$ac_file"; then : | |
2248 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2249 | +$as_echo "no" >&6; } | |
2250 | +$as_echo "$as_me: failed program was:" >&5 | |
2251 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2252 | ||
2253 | -{ { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2254 | -See \`config.log' for more details." >&5 | |
2255 | -echo "$as_me: error: C compiler cannot create executables | |
2256 | -See \`config.log' for more details." >&2;} | |
2257 | - { (exit 77); exit 77; }; } | |
2258 | -fi | |
2259 | - | |
2260 | +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2261 | +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2262 | +{ as_fn_set_status 77 | |
2263 | +as_fn_error "C compiler cannot create executables | |
2264 | +See \`config.log' for more details." "$LINENO" 5; }; } | |
2265 | +else | |
2266 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2267 | +$as_echo "yes" >&6; } | |
2268 | +fi | |
2269 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
2270 | +$as_echo_n "checking for C compiler default output file name... " >&6; } | |
2271 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
2272 | +$as_echo "$ac_file" >&6; } | |
2273 | ac_exeext=$ac_cv_exeext | |
2274 | ||
2275 | -# Check that the compiler produces executables we can run. If not, either | |
2276 | -# the compiler is broken, or we cross compile. | |
2277 | -{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
2278 | -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | |
2279 | -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2280 | -# If not cross compiling, check that we can run a simple program. | |
2281 | -if test "$cross_compiling" != yes; then | |
2282 | - if { ac_try='./$ac_file' | |
2283 | - { (case "(($ac_try" in | |
2284 | - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2285 | - *) ac_try_echo=$ac_try;; | |
2286 | -esac | |
2287 | -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2288 | - (eval "$ac_try") 2>&5 | |
2289 | - ac_status=$? | |
2290 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2291 | - (exit $ac_status); }; }; then | |
2292 | - cross_compiling=no | |
2293 | - else | |
2294 | - if test "$cross_compiling" = maybe; then | |
2295 | - cross_compiling=yes | |
2296 | - else | |
2297 | - { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2298 | -If you meant to cross compile, use \`--host'. | |
2299 | -See \`config.log' for more details." >&5 | |
2300 | -echo "$as_me: error: cannot run C compiled programs. | |
2301 | -If you meant to cross compile, use \`--host'. | |
2302 | -See \`config.log' for more details." >&2;} | |
2303 | - { (exit 1); exit 1; }; } | |
2304 | - fi | |
2305 | - fi | |
2306 | -fi | |
2307 | -{ echo "$as_me:$LINENO: result: yes" >&5 | |
2308 | -echo "${ECHO_T}yes" >&6; } | |
2309 | - | |
2310 | -rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2311 | +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
2312 | ac_clean_files=$ac_clean_files_save | |
2313 | -# Check that the compiler produces executables we can run. If not, either | |
2314 | -# the compiler is broken, or we cross compile. | |
2315 | -{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
2316 | -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | |
2317 | -{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2318 | -echo "${ECHO_T}$cross_compiling" >&6; } | |
2319 | - | |
2320 | -{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2321 | -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | |
2322 | -if { (ac_try="$ac_link" | |
2323 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
2324 | +$as_echo_n "checking for suffix of executables... " >&6; } | |
2325 | +if { { ac_try="$ac_link" | |
2326 | case "(($ac_try" in | |
2327 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2328 | *) ac_try_echo=$ac_try;; | |
2329 | esac | |
2330 | -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2331 | +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2332 | +$as_echo "$ac_try_echo"; } >&5 | |
2333 | (eval "$ac_link") 2>&5 | |
2334 | ac_status=$? | |
2335 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2336 | - (exit $ac_status); }; then | |
2337 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2338 | + test $ac_status = 0; }; then : | |
2339 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2340 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2341 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2342 | @@ -2168,37 +2215,90 @@ | |
2343 | for ac_file in conftest.exe conftest conftest.*; do | |
2344 | test -f "$ac_file" || continue | |
2345 | case $ac_file in | |
2346 | - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | |
2347 | + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2348 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2349 | break;; | |
2350 | * ) break;; | |
2351 | esac | |
2352 | done | |
2353 | else | |
2354 | - { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
2355 | -See \`config.log' for more details." >&5 | |
2356 | -echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2357 | -See \`config.log' for more details." >&2;} | |
2358 | - { (exit 1); exit 1; }; } | |
2359 | -fi | |
2360 | - | |
2361 | -rm -f conftest$ac_cv_exeext | |
2362 | -{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
2363 | -echo "${ECHO_T}$ac_cv_exeext" >&6; } | |
2364 | + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2365 | +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2366 | +as_fn_error "cannot compute suffix of executables: cannot compile and link | |
2367 | +See \`config.log' for more details." "$LINENO" 5; } | |
2368 | +fi | |
2369 | +rm -f conftest conftest$ac_cv_exeext | |
2370 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
2371 | +$as_echo "$ac_cv_exeext" >&6; } | |
2372 | ||
2373 | rm -f conftest.$ac_ext | |
2374 | EXEEXT=$ac_cv_exeext | |
2375 | ac_exeext=$EXEEXT | |
2376 | -{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
2377 | -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | |
2378 | -if test "${ac_cv_objext+set}" = set; then | |
2379 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2380 | -else | |
2381 | - cat >conftest.$ac_ext <<_ACEOF | |
2382 | -/* confdefs.h. */ | |
2383 | +cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2384 | +/* end confdefs.h. */ | |
2385 | +#include <stdio.h> | |
2386 | +int | |
2387 | +main () | |
2388 | +{ | |
2389 | +FILE *f = fopen ("conftest.out", "w"); | |
2390 | + return ferror (f) || fclose (f) != 0; | |
2391 | + | |
2392 | + ; | |
2393 | + return 0; | |
2394 | +} | |
2395 | _ACEOF | |
2396 | -cat confdefs.h >>conftest.$ac_ext | |
2397 | -cat >>conftest.$ac_ext <<_ACEOF | |
2398 | +ac_clean_files="$ac_clean_files conftest.out" | |
2399 | +# Check that the compiler produces executables we can run. If not, either | |
2400 | +# the compiler is broken, or we cross compile. | |
2401 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
2402 | +$as_echo_n "checking whether we are cross compiling... " >&6; } | |
2403 | +if test "$cross_compiling" != yes; then | |
2404 | + { { ac_try="$ac_link" | |
2405 | +case "(($ac_try" in | |
2406 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2407 | + *) ac_try_echo=$ac_try;; | |
2408 | +esac | |
2409 | +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2410 | +$as_echo "$ac_try_echo"; } >&5 | |
2411 | + (eval "$ac_link") 2>&5 | |
2412 | + ac_status=$? | |
2413 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2414 | + test $ac_status = 0; } | |
2415 | + if { ac_try='./conftest$ac_cv_exeext' | |
2416 | + { { case "(($ac_try" in | |
2417 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2418 | + *) ac_try_echo=$ac_try;; | |
2419 | +esac | |
2420 | +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2421 | +$as_echo "$ac_try_echo"; } >&5 | |
2422 | + (eval "$ac_try") 2>&5 | |
2423 | + ac_status=$? | |
2424 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2425 | + test $ac_status = 0; }; }; then | |
2426 | + cross_compiling=no | |
2427 | + else | |
2428 | + if test "$cross_compiling" = maybe; then | |
2429 | + cross_compiling=yes | |
2430 | + else | |
2431 | + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2432 | +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2433 | +as_fn_error "cannot run C compiled programs. | |
2434 | +If you meant to cross compile, use \`--host'. | |
2435 | +See \`config.log' for more details." "$LINENO" 5; } | |
2436 | + fi | |
2437 | + fi | |
2438 | +fi | |
2439 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
2440 | +$as_echo "$cross_compiling" >&6; } | |
2441 | + | |
2442 | +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
2443 | +ac_clean_files=$ac_clean_files_save | |
2444 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
2445 | +$as_echo_n "checking for suffix of object files... " >&6; } | |
2446 | +if test "${ac_cv_objext+set}" = set; then : | |
2447 | + $as_echo_n "(cached) " >&6 | |
2448 | +else | |
2449 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2450 | /* end confdefs.h. */ | |
2451 | ||
2452 | int | |
2453 | @@ -2210,51 +2310,46 @@ | |
2454 | } | |
2455 | _ACEOF | |
2456 | rm -f conftest.o conftest.obj | |
2457 | -if { (ac_try="$ac_compile" | |
2458 | +if { { ac_try="$ac_compile" | |
2459 | case "(($ac_try" in | |
2460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2461 | *) ac_try_echo=$ac_try;; | |
2462 | esac | |
2463 | -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2464 | +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2465 | +$as_echo "$ac_try_echo"; } >&5 | |
2466 | (eval "$ac_compile") 2>&5 | |
2467 | ac_status=$? | |
2468 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2469 | - (exit $ac_status); }; then | |
2470 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2471 | + test $ac_status = 0; }; then : | |
2472 | for ac_file in conftest.o conftest.obj conftest.*; do | |
2473 | test -f "$ac_file" || continue; | |
2474 | case $ac_file in | |
2475 | - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; | |
2476 | + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
2477 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2478 | break;; | |
2479 | esac | |
2480 | done | |
2481 | else | |
2482 | - echo "$as_me: failed program was:" >&5 | |
2483 | + $as_echo "$as_me: failed program was:" >&5 | |
2484 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2485 | ||
2486 | -{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2487 | -See \`config.log' for more details." >&5 | |
2488 | -echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2489 | -See \`config.log' for more details." >&2;} | |
2490 | - { (exit 1); exit 1; }; } | |
2491 | +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2492 | +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2493 | +as_fn_error "cannot compute suffix of object files: cannot compile | |
2494 | +See \`config.log' for more details." "$LINENO" 5; } | |
2495 | fi | |
2496 | - | |
2497 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2498 | fi | |
2499 | -{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
2500 | -echo "${ECHO_T}$ac_cv_objext" >&6; } | |
2501 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
2502 | +$as_echo "$ac_cv_objext" >&6; } | |
2503 | OBJEXT=$ac_cv_objext | |
2504 | ac_objext=$OBJEXT | |
2505 | -{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2506 | -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | |
2507 | -if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2508 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2509 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
2510 | +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
2511 | +if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
2512 | + $as_echo_n "(cached) " >&6 | |
2513 | else | |
2514 | - cat >conftest.$ac_ext <<_ACEOF | |
2515 | -/* confdefs.h. */ | |
2516 | -_ACEOF | |
2517 | -cat confdefs.h >>conftest.$ac_ext | |
2518 | -cat >>conftest.$ac_ext <<_ACEOF | |
2519 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2520 | /* end confdefs.h. */ | |
2521 | ||
2522 | int | |
2523 | @@ -2268,54 +2363,34 @@ | |
2524 | return 0; | |
2525 | } | |
2526 | _ACEOF | |
2527 | -rm -f conftest.$ac_objext | |
2528 | -if { (ac_try="$ac_compile" | |
2529 | -case "(($ac_try" in | |
2530 | - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2531 | - *) ac_try_echo=$ac_try;; | |
2532 | -esac | |
2533 | -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2534 | - (eval "$ac_compile") 2>conftest.er1 | |
2535 | - ac_status=$? | |
2536 | - grep -v '^ *+' conftest.er1 >conftest.err | |
2537 | - rm -f conftest.er1 | |
2538 | - cat conftest.err >&5 | |
2539 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2540 | - (exit $ac_status); } && { | |
2541 | - test -z "$ac_c_werror_flag" || | |
2542 | - test ! -s conftest.err | |
2543 | - } && test -s conftest.$ac_objext; then | |
2544 | +if ac_fn_c_try_compile "$LINENO"; then : | |
2545 | ac_compiler_gnu=yes | |
2546 | else | |
2547 | - echo "$as_me: failed program was:" >&5 | |
2548 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
2549 | - | |
2550 | - ac_compiler_gnu=no | |
2551 | + ac_compiler_gnu=no | |
2552 | fi | |
2553 | - | |
2554 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2555 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2556 | ||
2557 | fi | |
2558 | -{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2559 | -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | |
2560 | -GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2561 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
2562 | +$as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
2563 | +if test $ac_compiler_gnu = yes; then | |
2564 | + GCC=yes | |
2565 | +else | |
2566 | + GCC= | |
2567 | +fi | |
2568 | ac_test_CFLAGS=${CFLAGS+set} | |
2569 | ac_save_CFLAGS=$CFLAGS | |
2570 | -{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2571 | -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | |
2572 | -if test "${ac_cv_prog_cc_g+set}" = set; then | |
2573 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2574 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
2575 | +$as_echo_n "checking whether $CC accepts -g... " >&6; } | |
2576 | +if test "${ac_cv_prog_cc_g+set}" = set; then : | |
2577 | + $as_echo_n "(cached) " >&6 | |
2578 | else | |
2579 | ac_save_c_werror_flag=$ac_c_werror_flag | |
2580 | ac_c_werror_flag=yes | |
2581 | ac_cv_prog_cc_g=no | |
2582 | CFLAGS="-g" | |
2583 | - cat >conftest.$ac_ext <<_ACEOF | |
2584 | -/* confdefs.h. */ | |
2585 | -_ACEOF | |
2586 | -cat confdefs.h >>conftest.$ac_ext | |
2587 | -cat >>conftest.$ac_ext <<_ACEOF | |
2588 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2589 | /* end confdefs.h. */ | |
2590 | ||
2591 | int | |
2592 | @@ -2326,34 +2401,11 @@ | |
2593 | return 0; | |
2594 | } | |
2595 | _ACEOF | |
2596 | -rm -f conftest.$ac_objext | |
2597 | -if { (ac_try="$ac_compile" | |
2598 | -case "(($ac_try" in | |
2599 | - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2600 | - *) ac_try_echo=$ac_try;; | |
2601 | -esac | |
2602 | -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2603 | - (eval "$ac_compile") 2>conftest.er1 | |
2604 | - ac_status=$? | |
2605 | - grep -v '^ *+' conftest.er1 >conftest.err | |
2606 | - rm -f conftest.er1 | |
2607 | - cat conftest.err >&5 | |
2608 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2609 | - (exit $ac_status); } && { | |
2610 | - test -z "$ac_c_werror_flag" || | |
2611 | - test ! -s conftest.err | |
2612 | - } && test -s conftest.$ac_objext; then | |
2613 | +if ac_fn_c_try_compile "$LINENO"; then : | |
2614 | ac_cv_prog_cc_g=yes | |
2615 | else | |
2616 | - echo "$as_me: failed program was:" >&5 | |
2617 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
2618 | - | |
2619 | - CFLAGS="" | |
2620 | - cat >conftest.$ac_ext <<_ACEOF | |
2621 | -/* confdefs.h. */ | |
2622 | -_ACEOF | |
2623 | -cat confdefs.h >>conftest.$ac_ext | |
2624 | -cat >>conftest.$ac_ext <<_ACEOF | |
2625 | + CFLAGS="" | |
2626 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2627 | /* end confdefs.h. */ | |
2628 | ||
2629 | int | |
2630 | @@ -2364,35 +2416,12 @@ | |
2631 | return 0; | |
2632 | } | |
2633 | _ACEOF | |
2634 | -rm -f conftest.$ac_objext | |
2635 | -if { (ac_try="$ac_compile" | |
2636 | -case "(($ac_try" in | |
2637 | - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2638 | - *) ac_try_echo=$ac_try;; | |
2639 | -esac | |
2640 | -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2641 | - (eval "$ac_compile") 2>conftest.er1 | |
2642 | - ac_status=$? | |
2643 | - grep -v '^ *+' conftest.er1 >conftest.err | |
2644 | - rm -f conftest.er1 | |
2645 | - cat conftest.err >&5 | |
2646 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2647 | - (exit $ac_status); } && { | |
2648 | - test -z "$ac_c_werror_flag" || | |
2649 | - test ! -s conftest.err | |
2650 | - } && test -s conftest.$ac_objext; then | |
2651 | - : | |
2652 | -else | |
2653 | - echo "$as_me: failed program was:" >&5 | |
2654 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
2655 | +if ac_fn_c_try_compile "$LINENO"; then : | |
2656 | ||
2657 | - ac_c_werror_flag=$ac_save_c_werror_flag | |
2658 | +else | |
2659 | + ac_c_werror_flag=$ac_save_c_werror_flag | |
2660 | CFLAGS="-g" | |
2661 | - cat >conftest.$ac_ext <<_ACEOF | |
2662 | -/* confdefs.h. */ | |
2663 | -_ACEOF | |
2664 | -cat confdefs.h >>conftest.$ac_ext | |
2665 | -cat >>conftest.$ac_ext <<_ACEOF | |
2666 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2667 | /* end confdefs.h. */ | |
2668 | ||
2669 | int | |
2670 | @@ -2403,42 +2432,18 @@ | |
2671 | return 0; | |
2672 | } | |
2673 | _ACEOF | |
2674 | -rm -f conftest.$ac_objext | |
2675 | -if { (ac_try="$ac_compile" | |
2676 | -case "(($ac_try" in | |
2677 | - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2678 | - *) ac_try_echo=$ac_try;; | |
2679 | -esac | |
2680 | -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2681 | - (eval "$ac_compile") 2>conftest.er1 | |
2682 | - ac_status=$? | |
2683 | - grep -v '^ *+' conftest.er1 >conftest.err | |
2684 | - rm -f conftest.er1 | |
2685 | - cat conftest.err >&5 | |
2686 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2687 | - (exit $ac_status); } && { | |
2688 | - test -z "$ac_c_werror_flag" || | |
2689 | - test ! -s conftest.err | |
2690 | - } && test -s conftest.$ac_objext; then | |
2691 | +if ac_fn_c_try_compile "$LINENO"; then : | |
2692 | ac_cv_prog_cc_g=yes | |
2693 | -else | |
2694 | - echo "$as_me: failed program was:" >&5 | |
2695 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
2696 | - | |
2697 | - | |
2698 | fi | |
2699 | - | |
2700 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2701 | fi | |
2702 | - | |
2703 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2704 | fi | |
2705 | - | |
2706 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2707 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2708 | fi | |
2709 | -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2710 | -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | |
2711 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
2712 | +$as_echo "$ac_cv_prog_cc_g" >&6; } | |
2713 | if test "$ac_test_CFLAGS" = set; then | |
2714 | CFLAGS=$ac_save_CFLAGS | |
2715 | elif test $ac_cv_prog_cc_g = yes; then | |
2716 | @@ -2454,18 +2459,14 @@ | |
2717 | CFLAGS= | |
2718 | fi | |
2719 | fi | |
2720 | -{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 | |
2721 | -echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | |
2722 | -if test "${ac_cv_prog_cc_c89+set}" = set; then | |
2723 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2724 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
2725 | +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
2726 | +if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
2727 | + $as_echo_n "(cached) " >&6 | |
2728 | else | |
2729 | ac_cv_prog_cc_c89=no | |
2730 | ac_save_CC=$CC | |
2731 | -cat >conftest.$ac_ext <<_ACEOF | |
2732 | -/* confdefs.h. */ | |
2733 | -_ACEOF | |
2734 | -cat confdefs.h >>conftest.$ac_ext | |
2735 | -cat >>conftest.$ac_ext <<_ACEOF | |
2736 | +cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2737 | /* end confdefs.h. */ | |
2738 | #include <stdarg.h> | |
2739 | #include <stdio.h> | |
2740 | @@ -2522,31 +2523,9 @@ | |
2741 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2742 | do | |
2743 | CC="$ac_save_CC $ac_arg" | |
2744 | - rm -f conftest.$ac_objext | |
2745 | -if { (ac_try="$ac_compile" | |
2746 | -case "(($ac_try" in | |
2747 | - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2748 | - *) ac_try_echo=$ac_try;; | |
2749 | -esac | |
2750 | -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2751 | - (eval "$ac_compile") 2>conftest.er1 | |
2752 | - ac_status=$? | |
2753 | - grep -v '^ *+' conftest.er1 >conftest.err | |
2754 | - rm -f conftest.er1 | |
2755 | - cat conftest.err >&5 | |
2756 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2757 | - (exit $ac_status); } && { | |
2758 | - test -z "$ac_c_werror_flag" || | |
2759 | - test ! -s conftest.err | |
2760 | - } && test -s conftest.$ac_objext; then | |
2761 | + if ac_fn_c_try_compile "$LINENO"; then : | |
2762 | ac_cv_prog_cc_c89=$ac_arg | |
2763 | -else | |
2764 | - echo "$as_me: failed program was:" >&5 | |
2765 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
2766 | - | |
2767 | - | |
2768 | fi | |
2769 | - | |
2770 | rm -f core conftest.err conftest.$ac_objext | |
2771 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
2772 | done | |
2773 | @@ -2557,17 +2536,19 @@ | |
2774 | # AC_CACHE_VAL | |
2775 | case "x$ac_cv_prog_cc_c89" in | |
2776 | x) | |
2777 | - { echo "$as_me:$LINENO: result: none needed" >&5 | |
2778 | -echo "${ECHO_T}none needed" >&6; } ;; | |
2779 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
2780 | +$as_echo "none needed" >&6; } ;; | |
2781 | xno) | |
2782 | - { echo "$as_me:$LINENO: result: unsupported" >&5 | |
2783 | -echo "${ECHO_T}unsupported" >&6; } ;; | |
2784 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
2785 | +$as_echo "unsupported" >&6; } ;; | |
2786 | *) | |
2787 | CC="$CC $ac_cv_prog_cc_c89" | |
2788 | - { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | |
2789 | -echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | |
2790 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
2791 | +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
2792 | esac | |
2793 | +if test "x$ac_cv_prog_cc_c89" != xno; then : | |
2794 | ||
2795 | +fi | |
2796 | ||
2797 | ac_ext=c | |
2798 | ac_cpp='$CPP $CPPFLAGS' | |
2799 | @@ -2577,24 +2558,16 @@ | |
2800 | ||
2801 | ac_aux_dir= | |
2802 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
2803 | - if test -f "$ac_dir/install-sh"; then | |
2804 | - ac_aux_dir=$ac_dir | |
2805 | - ac_install_sh="$ac_aux_dir/install-sh -c" | |
2806 | - break | |
2807 | - elif test -f "$ac_dir/install.sh"; then | |
2808 | - ac_aux_dir=$ac_dir | |
2809 | - ac_install_sh="$ac_aux_dir/install.sh -c" | |
2810 | - break | |
2811 | - elif test -f "$ac_dir/shtool"; then | |
2812 | - ac_aux_dir=$ac_dir | |
2813 | - ac_install_sh="$ac_aux_dir/shtool install -c" | |
2814 | - break | |
2815 | - fi | |
2816 | + for ac_t in install-sh install.sh shtool; do | |
2817 | + if test -f "$ac_dir/$ac_t"; then | |
2818 | + ac_aux_dir=$ac_dir | |
2819 | + ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2820 | + break 2 | |
2821 | + fi | |
2822 | + done | |
2823 | done | |
2824 | if test -z "$ac_aux_dir"; then | |
2825 | - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 | |
2826 | -echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | |
2827 | - { (exit 1); exit 1; }; } | |
2828 | + as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
2829 | fi | |
2830 | ||
2831 | # These three variables are undocumented and unsupported, | |
2832 | @@ -2619,22 +2592,23 @@ | |
2833 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2834 | # OS/2's system install, which has a completely different semantic | |
2835 | # ./install, which can be erroneously created by make from ./install.sh. | |
2836 | -{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
2837 | -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | |
2838 | +# Reject install programs that cannot install multiple files. | |
2839 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
2840 | +$as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2841 | if test -z "$INSTALL"; then | |
2842 | -if test "${ac_cv_path_install+set}" = set; then | |
2843 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2844 | +if test "${ac_cv_path_install+set}" = set; then : | |
2845 | + $as_echo_n "(cached) " >&6 | |
2846 | else | |
2847 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2848 | for as_dir in $PATH | |
2849 | do | |
2850 | IFS=$as_save_IFS | |
2851 | test -z "$as_dir" && as_dir=. | |
2852 | - # Account for people who put trailing slashes in PATH elements. | |
2853 | -case $as_dir/ in | |
2854 | - ./ | .// | /cC/* | \ | |
2855 | + # Account for people who put trailing slashes in PATH elements. | |
2856 | +case $as_dir/ in #(( | |
2857 | + ./ | .// | /[cC]/* | \ | |
2858 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2859 | - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
2860 | + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
2861 | /usr/ucb/* ) ;; | |
2862 | *) | |
2863 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2864 | @@ -2652,17 +2626,29 @@ | |
2865 | # program-specific install script used by HP pwplus--don't use. | |
2866 | : | |
2867 | else | |
2868 | - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2869 | - break 3 | |
2870 | + rm -rf conftest.one conftest.two conftest.dir | |
2871 | + echo one > conftest.one | |
2872 | + echo two > conftest.two | |
2873 | + mkdir conftest.dir | |
2874 | + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2875 | + test -s conftest.one && test -s conftest.two && | |
2876 | + test -s conftest.dir/conftest.one && | |
2877 | + test -s conftest.dir/conftest.two | |
2878 | + then | |
2879 | + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2880 | + break 3 | |
2881 | + fi | |
2882 | fi | |
2883 | fi | |
2884 | done | |
2885 | done | |
2886 | ;; | |
2887 | esac | |
2888 | -done | |
2889 | + | |
2890 | + done | |
2891 | IFS=$as_save_IFS | |
2892 | ||
2893 | +rm -rf conftest.one conftest.two conftest.dir | |
2894 | ||
2895 | fi | |
2896 | if test "${ac_cv_path_install+set}" = set; then | |
2897 | @@ -2675,8 +2661,8 @@ | |
2898 | INSTALL=$ac_install_sh | |
2899 | fi | |
2900 | fi | |
2901 | -{ echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
2902 | -echo "${ECHO_T}$INSTALL" >&6; } | |
2903 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
2904 | +$as_echo "$INSTALL" >&6; } | |
2905 | ||
2906 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2907 | # It thinks the first close brace ends the variable substitution. | |
2908 | @@ -2688,16 +2674,12 @@ | |
2909 | ||
2910 | ||
2911 | ||
2912 | -{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
2913 | -echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } | |
2914 | -if test "${ac_cv_c_const+set}" = set; then | |
2915 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2916 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | |
2917 | +$as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
2918 | +if test "${ac_cv_c_const+set}" = set; then : | |
2919 | + $as_echo_n "(cached) " >&6 | |
2920 | else | |
2921 | - cat >conftest.$ac_ext <<_ACEOF | |
2922 | -/* confdefs.h. */ | |
2923 | -_ACEOF | |
2924 | -cat confdefs.h >>conftest.$ac_ext | |
2925 | -cat >>conftest.$ac_ext <<_ACEOF | |
2926 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2927 | /* end confdefs.h. */ | |
2928 | ||
2929 | int | |
2930 | @@ -2757,55 +2739,29 @@ | |
2931 | return 0; | |
2932 | } | |
2933 | _ACEOF | |
2934 | -rm -f conftest.$ac_objext | |
2935 | -if { (ac_try="$ac_compile" | |
2936 | -case "(($ac_try" in | |
2937 | - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2938 | - *) ac_try_echo=$ac_try;; | |
2939 | -esac | |
2940 | -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2941 | - (eval "$ac_compile") 2>conftest.er1 | |
2942 | - ac_status=$? | |
2943 | - grep -v '^ *+' conftest.er1 >conftest.err | |
2944 | - rm -f conftest.er1 | |
2945 | - cat conftest.err >&5 | |
2946 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2947 | - (exit $ac_status); } && { | |
2948 | - test -z "$ac_c_werror_flag" || | |
2949 | - test ! -s conftest.err | |
2950 | - } && test -s conftest.$ac_objext; then | |
2951 | +if ac_fn_c_try_compile "$LINENO"; then : | |
2952 | ac_cv_c_const=yes | |
2953 | else | |
2954 | - echo "$as_me: failed program was:" >&5 | |
2955 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
2956 | - | |
2957 | - ac_cv_c_const=no | |
2958 | + ac_cv_c_const=no | |
2959 | fi | |
2960 | - | |
2961 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2962 | fi | |
2963 | -{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
2964 | -echo "${ECHO_T}$ac_cv_c_const" >&6; } | |
2965 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 | |
2966 | +$as_echo "$ac_cv_c_const" >&6; } | |
2967 | if test $ac_cv_c_const = no; then | |
2968 | ||
2969 | -cat >>confdefs.h <<\_ACEOF | |
2970 | -#define const | |
2971 | -_ACEOF | |
2972 | +$as_echo "#define const /**/" >>confdefs.h | |
2973 | ||
2974 | fi | |
2975 | ||
2976 | -{ echo "$as_me:$LINENO: checking for inline" >&5 | |
2977 | -echo $ECHO_N "checking for inline... $ECHO_C" >&6; } | |
2978 | -if test "${ac_cv_c_inline+set}" = set; then | |
2979 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2980 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 | |
2981 | +$as_echo_n "checking for inline... " >&6; } | |
2982 | +if test "${ac_cv_c_inline+set}" = set; then : | |
2983 | + $as_echo_n "(cached) " >&6 | |
2984 | else | |
2985 | ac_cv_c_inline=no | |
2986 | for ac_kw in inline __inline__ __inline; do | |
2987 | - cat >conftest.$ac_ext <<_ACEOF | |
2988 | -/* confdefs.h. */ | |
2989 | -_ACEOF | |
2990 | -cat confdefs.h >>conftest.$ac_ext | |
2991 | -cat >>conftest.$ac_ext <<_ACEOF | |
2992 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2993 | /* end confdefs.h. */ | |
2994 | #ifndef __cplusplus | |
2995 | typedef int foo_t; | |
2996 | @@ -2814,39 +2770,16 @@ | |
2997 | #endif | |
2998 | ||
2999 | _ACEOF | |
3000 | -rm -f conftest.$ac_objext | |
3001 | -if { (ac_try="$ac_compile" | |
3002 | -case "(($ac_try" in | |
3003 | - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3004 | - *) ac_try_echo=$ac_try;; | |
3005 | -esac | |
3006 | -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3007 | - (eval "$ac_compile") 2>conftest.er1 | |
3008 | - ac_status=$? | |
3009 | - grep -v '^ *+' conftest.er1 >conftest.err | |
3010 | - rm -f conftest.er1 | |
3011 | - cat conftest.err >&5 | |
3012 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3013 | - (exit $ac_status); } && { | |
3014 | - test -z "$ac_c_werror_flag" || | |
3015 | - test ! -s conftest.err | |
3016 | - } && test -s conftest.$ac_objext; then | |
3017 | +if ac_fn_c_try_compile "$LINENO"; then : | |
3018 | ac_cv_c_inline=$ac_kw | |
3019 | -else | |
3020 | - echo "$as_me: failed program was:" >&5 | |
3021 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
3022 | - | |
3023 | - | |
3024 | fi | |
3025 | - | |
3026 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3027 | test "$ac_cv_c_inline" != no && break | |
3028 | done | |
3029 | ||
3030 | fi | |
3031 | -{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
3032 | -echo "${ECHO_T}$ac_cv_c_inline" >&6; } | |
3033 | - | |
3034 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | |
3035 | +$as_echo "$ac_cv_c_inline" >&6; } | |
3036 | ||
3037 | case $ac_cv_c_inline in | |
3038 | inline | yes) ;; | |
3039 | @@ -2870,18 +2803,14 @@ | |
3040 | ## | |
3041 | ##################################################################### | |
3042 | M="No " | |
3043 | -{ echo "$as_me:$LINENO: checking for pow in -lm" >&5 | |
3044 | -echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; } | |
3045 | -if test "${ac_cv_lib_m_pow+set}" = set; then | |
3046 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3047 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 | |
3048 | +$as_echo_n "checking for pow in -lm... " >&6; } | |
3049 | +if test "${ac_cv_lib_m_pow+set}" = set; then : | |
3050 | + $as_echo_n "(cached) " >&6 | |
3051 | else | |
3052 | ac_check_lib_save_LIBS=$LIBS | |
3053 | LIBS="-lm $LIBS" | |
3054 | -cat >conftest.$ac_ext <<_ACEOF | |
3055 | -/* confdefs.h. */ | |
3056 | -_ACEOF | |
3057 | -cat confdefs.h >>conftest.$ac_ext | |
3058 | -cat >>conftest.$ac_ext <<_ACEOF | |
3059 | +cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3060 | /* end confdefs.h. */ | |
3061 | ||
3062 | /* Override any GCC internal prototype to avoid an error. | |
3063 | @@ -2899,39 +2828,18 @@ | |
3064 | return 0; | |
3065 | } | |
3066 | _ACEOF | |
3067 | -rm -f conftest.$ac_objext conftest$ac_exeext | |
3068 | -if { (ac_try="$ac_link" | |
3069 | -case "(($ac_try" in | |
3070 | - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3071 | - *) ac_try_echo=$ac_try;; | |
3072 | -esac | |
3073 | -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3074 | - (eval "$ac_link") 2>conftest.er1 | |
3075 | - ac_status=$? | |
3076 | - grep -v '^ *+' conftest.er1 >conftest.err | |
3077 | - rm -f conftest.er1 | |
3078 | - cat conftest.err >&5 | |
3079 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3080 | - (exit $ac_status); } && { | |
3081 | - test -z "$ac_c_werror_flag" || | |
3082 | - test ! -s conftest.err | |
3083 | - } && test -s conftest$ac_exeext && | |
3084 | - $as_test_x conftest$ac_exeext; then | |
3085 | +if ac_fn_c_try_link "$LINENO"; then : | |
3086 | ac_cv_lib_m_pow=yes | |
3087 | else | |
3088 | - echo "$as_me: failed program was:" >&5 | |
3089 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
3090 | - | |
3091 | - ac_cv_lib_m_pow=no | |
3092 | + ac_cv_lib_m_pow=no | |
3093 | fi | |
3094 | - | |
3095 | -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
3096 | - conftest$ac_exeext conftest.$ac_ext | |
3097 | +rm -f core conftest.err conftest.$ac_objext \ | |
3098 | + conftest$ac_exeext conftest.$ac_ext | |
3099 | LIBS=$ac_check_lib_save_LIBS | |
3100 | fi | |
3101 | -{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 | |
3102 | -echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; } | |
3103 | -if test $ac_cv_lib_m_pow = yes; then | |
3104 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 | |
3105 | +$as_echo "$ac_cv_lib_m_pow" >&6; } | |
3106 | +if test "x$ac_cv_lib_m_pow" = x""yes; then : | |
3107 | ||
3108 | LIBM="-lm" | |
3109 | M="Yes" | |
3110 | @@ -2952,7 +2860,7 @@ | |
3111 | ## | |
3112 | ##################################################################### | |
3113 | # Check whether --enable-verbose-errors was given. | |
3114 | -if test "${enable_verbose_errors+set}" = set; then | |
3115 | +if test "${enable_verbose_errors+set}" = set; then : | |
3116 | enableval=$enable_verbose_errors; | |
3117 | if test x$enableval = xyes; then | |
3118 | ||
3119 | @@ -2960,10 +2868,24 @@ | |
3120 | #define VERBOSE_ERRORS "1" | |
3121 | _ACEOF | |
3122 | ||
3123 | - fi | |
3124 | + fi | |
3125 | + | |
3126 | +fi | |
3127 | + | |
3128 | ||
3129 | +# Check whether --enable-static was given. | |
3130 | +if test "${enable_static+set}" = set; then : | |
3131 | + enableval=$enable_static; | |
3132 | +else | |
3133 | + enable_static="no" | |
3134 | fi | |
3135 | ||
3136 | + if test "x$enable_static" = "xyes"; then | |
3137 | + STATIC_LIB="True" | |
3138 | + else | |
3139 | + STATIC_LIB= | |
3140 | + fi | |
3141 | + | |
3142 | ||
3143 | ##################################################################### | |
3144 | ## | |
3145 | @@ -3004,12 +2926,13 @@ | |
3146 | case $ac_val in #( | |
3147 | *${as_nl}*) | |
3148 | case $ac_var in #( | |
3149 | - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
3150 | -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
3151 | + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
3152 | +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
3153 | esac | |
3154 | case $ac_var in #( | |
3155 | _ | IFS | as_nl) ;; #( | |
3156 | - *) $as_unset $ac_var ;; | |
3157 | + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
3158 | + *) { eval $ac_var=; unset $ac_var;} ;; | |
3159 | esac ;; | |
3160 | esac | |
3161 | done | |
3162 | @@ -3017,8 +2940,8 @@ | |
3163 | (set) 2>&1 | | |
3164 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
3165 | *${as_nl}ac_space=\ *) | |
3166 | - # `set' does not quote correctly, so add quotes (double-quote | |
3167 | - # substitution turns \\\\ into \\, and sed turns \\ into \). | |
3168 | + # `set' does not quote correctly, so add quotes: double-quote | |
3169 | + # substitution turns \\\\ into \\, and sed turns \\ into \. | |
3170 | sed -n \ | |
3171 | "s/'/'\\\\''/g; | |
3172 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
3173 | @@ -3041,12 +2964,12 @@ | |
3174 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
3175 | if test -w "$cache_file"; then | |
3176 | test "x$cache_file" != "x/dev/null" && | |
3177 | - { echo "$as_me:$LINENO: updating cache $cache_file" >&5 | |
3178 | -echo "$as_me: updating cache $cache_file" >&6;} | |
3179 | + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
3180 | +$as_echo "$as_me: updating cache $cache_file" >&6;} | |
3181 | cat confcache >$cache_file | |
3182 | else | |
3183 | - { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 | |
3184 | -echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
3185 | + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
3186 | +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
3187 | fi | |
3188 | fi | |
3189 | rm -f confcache | |
3190 | @@ -3062,11 +2985,11 @@ | |
3191 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
3192 | # 1. Remove the extension, and $U if already installed. | |
3193 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
3194 | - ac_i=`echo "$ac_i" | sed "$ac_script"` | |
3195 | + ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
3196 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
3197 | # will be set to the directory where LIBOBJS objects are built. | |
3198 | - ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
3199 | - ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
3200 | + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
3201 | + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
3202 | done | |
3203 | LIBOBJS=$ac_libobjs | |
3204 | ||
3205 | @@ -3075,11 +2998,13 @@ | |
3206 | ||
3207 | ||
3208 | : ${CONFIG_STATUS=./config.status} | |
3209 | +ac_write_fail=0 | |
3210 | ac_clean_files_save=$ac_clean_files | |
3211 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
3212 | -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
3213 | -echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
3214 | -cat >$CONFIG_STATUS <<_ACEOF | |
3215 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
3216 | +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
3217 | +as_write_fail=0 | |
3218 | +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
3219 | #! $SHELL | |
3220 | # Generated by $as_me. | |
3221 | # Run this file to recreate the current configuration. | |
3222 | @@ -3089,59 +3014,79 @@ | |
3223 | debug=false | |
3224 | ac_cs_recheck=false | |
3225 | ac_cs_silent=false | |
3226 | -SHELL=\${CONFIG_SHELL-$SHELL} | |
3227 | -_ACEOF | |
3228 | ||
3229 | -cat >>$CONFIG_STATUS <<\_ACEOF | |
3230 | -## --------------------- ## | |
3231 | -## M4sh Initialization. ## | |
3232 | -## --------------------- ## | |
3233 | +SHELL=\${CONFIG_SHELL-$SHELL} | |
3234 | +export SHELL | |
3235 | +_ASEOF | |
3236 | +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
3237 | +## -------------------- ## | |
3238 | +## M4sh Initialization. ## | |
3239 | +## -------------------- ## | |
3240 | ||
3241 | # Be more Bourne compatible | |
3242 | DUALCASE=1; export DUALCASE # for MKS sh | |
3243 | -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
3244 | +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
3245 | emulate sh | |
3246 | NULLCMD=: | |
3247 | - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
3248 | + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
3249 | # is contrary to our usage. Disable this feature. | |
3250 | alias -g '${1+"$@"}'='"$@"' | |
3251 | setopt NO_GLOB_SUBST | |
3252 | else | |
3253 | - case `(set -o) 2>/dev/null` in | |
3254 | - *posix*) set -o posix ;; | |
3255 | + case `(set -o) 2>/dev/null` in #( | |
3256 | + *posix*) : | |
3257 | + set -o posix ;; #( | |
3258 | + *) : | |
3259 | + ;; | |
3260 | esac | |
3261 | - | |
3262 | fi | |
3263 | ||
3264 | ||
3265 | - | |
3266 | - | |
3267 | -# PATH needs CR | |
3268 | -# Avoid depending upon Character Ranges. | |
3269 | -as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
3270 | -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
3271 | -as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
3272 | -as_cr_digits='0123456789' | |
3273 | -as_cr_alnum=$as_cr_Letters$as_cr_digits | |
3274 | - | |
3275 | -# The user is always right. | |
3276 | -if test "${PATH_SEPARATOR+set}" != set; then | |
3277 | - echo "#! /bin/sh" >conf$$.sh | |
3278 | - echo "exit 0" >>conf$$.sh | |
3279 | - chmod +x conf$$.sh | |
3280 | - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
3281 | - PATH_SEPARATOR=';' | |
3282 | +as_nl=' | |
3283 | +' | |
3284 | +export as_nl | |
3285 | +# Printing a long string crashes Solaris 7 /usr/bin/printf. | |
3286 | +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
3287 | +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
3288 | +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
3289 | +# Prefer a ksh shell builtin over an external printf program on Solaris, | |
3290 | +# but without wasting forks for bash or zsh. | |
3291 | +if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
3292 | + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
3293 | + as_echo='print -r --' | |
3294 | + as_echo_n='print -rn --' | |
3295 | +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
3296 | + as_echo='printf %s\n' | |
3297 | + as_echo_n='printf %s' | |
3298 | +else | |
3299 | + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
3300 | + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
3301 | + as_echo_n='/usr/ucb/echo -n' | |
3302 | else | |
3303 | - PATH_SEPARATOR=: | |
3304 | + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
3305 | + as_echo_n_body='eval | |
3306 | + arg=$1; | |
3307 | + case $arg in #( | |
3308 | + *"$as_nl"*) | |
3309 | + expr "X$arg" : "X\\(.*\\)$as_nl"; | |
3310 | + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
3311 | + esac; | |
3312 | + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
3313 | + ' | |
3314 | + export as_echo_n_body | |
3315 | + as_echo_n='sh -c $as_echo_n_body as_echo' | |
3316 | fi | |
3317 | - rm -f conf$$.sh | |
3318 | + export as_echo_body | |
3319 | + as_echo='sh -c $as_echo_body as_echo' | |
3320 | fi | |
3321 | ||
3322 | -# Support unset when possible. | |
3323 | -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
3324 | - as_unset=unset | |
3325 | -else | |
3326 | - as_unset=false | |
3327 | +# The user is always right. | |
3328 | +if test "${PATH_SEPARATOR+set}" != set; then | |
3329 | + PATH_SEPARATOR=: | |
3330 | + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
3331 | + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
3332 | + PATH_SEPARATOR=';' | |
3333 | + } | |
3334 | fi | |
3335 | ||
3336 | ||
3337 | @@ -3150,20 +3095,18 @@ | |
3338 | # there to prevent editors from complaining about space-tab. | |
3339 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
3340 | # splitting by setting IFS to empty value.) | |
3341 | -as_nl=' | |
3342 | -' | |
3343 | IFS=" "" $as_nl" | |
3344 | ||
3345 | # Find who we are. Look in the path if we contain no directory separator. | |
3346 | -case $0 in | |
3347 | +case $0 in #(( | |
3348 | *[\\/]* ) as_myself=$0 ;; | |
3349 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3350 | for as_dir in $PATH | |
3351 | do | |
3352 | IFS=$as_save_IFS | |
3353 | test -z "$as_dir" && as_dir=. | |
3354 | - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
3355 | -done | |
3356 | + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
3357 | + done | |
3358 | IFS=$as_save_IFS | |
3359 | ||
3360 | ;; | |
3361 | @@ -3174,32 +3117,111 @@ | |
3362 | as_myself=$0 | |
3363 | fi | |
3364 | if test ! -f "$as_myself"; then | |
3365 | - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
3366 | - { (exit 1); exit 1; } | |
3367 | + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
3368 | + exit 1 | |
3369 | fi | |
3370 | ||
3371 | -# Work around bugs in pre-3.0 UWIN ksh. | |
3372 | -for as_var in ENV MAIL MAILPATH | |
3373 | -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
3374 | +# Unset variables that we do not need and which cause bugs (e.g. in | |
3375 | +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
3376 | +# suppresses any "Segmentation fault" message there. '((' could | |
3377 | +# trigger a bug in pdksh 5.2.14. | |
3378 | +for as_var in BASH_ENV ENV MAIL MAILPATH | |
3379 | +do eval test x\${$as_var+set} = xset \ | |
3380 | + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
3381 | done | |
3382 | PS1='$ ' | |
3383 | PS2='> ' | |
3384 | PS4='+ ' | |
3385 | ||
3386 | # NLS nuisances. | |
3387 | -for as_var in \ | |
3388 | - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
3389 | - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
3390 | - LC_TELEPHONE LC_TIME | |
3391 | -do | |
3392 | - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
3393 | - eval $as_var=C; export $as_var | |
3394 | - else | |
3395 | - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
3396 | +LC_ALL=C | |
3397 | +export LC_ALL | |
3398 | +LANGUAGE=C | |
3399 | +export LANGUAGE | |
3400 | + | |
3401 | +# CDPATH. | |
3402 | +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
3403 | + | |
3404 | + | |
3405 | +# as_fn_error ERROR [LINENO LOG_FD] | |
3406 | +# --------------------------------- | |
3407 | +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
3408 | +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
3409 | +# script with status $?, using 1 if that was 0. | |
3410 | +as_fn_error () | |
3411 | +{ | |
3412 | + as_status=$?; test $as_status -eq 0 && as_status=1 | |
3413 | + if test "$3"; then | |
3414 | + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
3415 | + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
3416 | fi | |
3417 | -done | |
3418 | + $as_echo "$as_me: error: $1" >&2 | |
3419 | + as_fn_exit $as_status | |
3420 | +} # as_fn_error | |
3421 | + | |
3422 | + | |
3423 | +# as_fn_set_status STATUS | |
3424 | +# ----------------------- | |
3425 | +# Set $? to STATUS, without forking. | |
3426 | +as_fn_set_status () | |
3427 | +{ | |
3428 | + return $1 | |
3429 | +} # as_fn_set_status | |
3430 | + | |
3431 | +# as_fn_exit STATUS | |
3432 | +# ----------------- | |
3433 | +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
3434 | +as_fn_exit () | |
3435 | +{ | |
3436 | + set +e | |
3437 | + as_fn_set_status $1 | |
3438 | + exit $1 | |
3439 | +} # as_fn_exit | |
3440 | + | |
3441 | +# as_fn_unset VAR | |
3442 | +# --------------- | |
3443 | +# Portably unset VAR. | |
3444 | +as_fn_unset () | |
3445 | +{ | |
3446 | + { eval $1=; unset $1;} | |
3447 | +} | |
3448 | +as_unset=as_fn_unset | |
3449 | +# as_fn_append VAR VALUE | |
3450 | +# ---------------------- | |
3451 | +# Append the text in VALUE to the end of the definition contained in VAR. Take | |
3452 | +# advantage of any shell optimizations that allow amortized linear growth over | |
3453 | +# repeated appends, instead of the typical quadratic growth present in naive | |
3454 | +# implementations. | |
3455 | +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
3456 | + eval 'as_fn_append () | |
3457 | + { | |
3458 | + eval $1+=\$2 | |
3459 | + }' | |
3460 | +else | |
3461 | + as_fn_append () | |
3462 | + { | |
3463 | + eval $1=\$$1\$2 | |
3464 | + } | |
3465 | +fi # as_fn_append | |
3466 | + | |
3467 | +# as_fn_arith ARG... | |
3468 | +# ------------------ | |
3469 | +# Perform arithmetic evaluation on the ARGs, and store the result in the | |
3470 | +# global $as_val. Take advantage of shells that can avoid forks. The arguments | |
3471 | +# must be portable across $(()) and expr. | |
3472 | +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
3473 | + eval 'as_fn_arith () | |
3474 | + { | |
3475 | + as_val=$(( $* )) | |
3476 | + }' | |
3477 | +else | |
3478 | + as_fn_arith () | |
3479 | + { | |
3480 | + as_val=`expr "$@" || test $? -eq 1` | |
3481 | + } | |
3482 | +fi # as_fn_arith | |
3483 | + | |
3484 | ||
3485 | -# Required to use basename. | |
3486 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
3487 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
3488 | as_expr=expr | |
3489 | @@ -3213,13 +3235,17 @@ | |
3490 | as_basename=false | |
3491 | fi | |
3492 | ||
3493 | +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
3494 | + as_dirname=dirname | |
3495 | +else | |
3496 | + as_dirname=false | |
3497 | +fi | |
3498 | ||
3499 | -# Name of the executable. | |
3500 | as_me=`$as_basename -- "$0" || | |
3501 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
3502 | X"$0" : 'X\(//\)$' \| \ | |
3503 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
3504 | -echo X/"$0" | | |
3505 | +$as_echo X/"$0" | | |
3506 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
3507 | s//\1/ | |
3508 | q | |
3509 | @@ -3234,104 +3260,103 @@ | |
3510 | } | |
3511 | s/.*/./; q'` | |
3512 | ||
3513 | -# CDPATH. | |
3514 | -$as_unset CDPATH | |
3515 | - | |
3516 | - | |
3517 | - | |
3518 | - as_lineno_1=$LINENO | |
3519 | - as_lineno_2=$LINENO | |
3520 | - test "x$as_lineno_1" != "x$as_lineno_2" && | |
3521 | - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
3522 | - | |
3523 | - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
3524 | - # uniformly replaced by the line number. The first 'sed' inserts a | |
3525 | - # line-number line after each line using $LINENO; the second 'sed' | |
3526 | - # does the real work. The second script uses 'N' to pair each | |
3527 | - # line-number line with the line containing $LINENO, and appends | |
3528 | - # trailing '-' during substitution so that $LINENO is not a special | |
3529 | - # case at line end. | |
3530 | - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
3531 | - # scripts with optimization help from Paolo Bonzini. Blame Lee | |
3532 | - # E. McMahon (1931-1989) for sed's syntax. :-) | |
3533 | - sed -n ' | |
3534 | - p | |
3535 | - /[$]LINENO/= | |
3536 | - ' <$as_myself | | |
3537 | - sed ' | |
3538 | - s/[$]LINENO.*/&-/ | |
3539 | - t lineno | |
3540 | - b | |
3541 | - :lineno | |
3542 | - N | |
3543 | - :loop | |
3544 | - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
3545 | - t loop | |
3546 | - s/-\n.*// | |
3547 | - ' >$as_me.lineno && | |
3548 | - chmod +x "$as_me.lineno" || | |
3549 | - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
3550 | - { (exit 1); exit 1; }; } | |
3551 | - | |
3552 | - # Don't try to exec as it changes $[0], causing all sort of problems | |
3553 | - # (the dirname of $[0] is not the place where we might find the | |
3554 | - # original and so on. Autoconf is especially sensitive to this). | |
3555 | - . "./$as_me.lineno" | |
3556 | - # Exit status is that of the last command. | |
3557 | - exit | |
3558 | -} | |
3559 | - | |
3560 | - | |
3561 | -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
3562 | - as_dirname=dirname | |
3563 | -else | |
3564 | - as_dirname=false | |
3565 | -fi | |
3566 | +# Avoid depending upon Character Ranges. | |
3567 | +as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
3568 | +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
3569 | +as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
3570 | +as_cr_digits='0123456789' | |
3571 | +as_cr_alnum=$as_cr_Letters$as_cr_digits | |
3572 | ||
3573 | ECHO_C= ECHO_N= ECHO_T= | |
3574 | -case `echo -n x` in | |
3575 | +case `echo -n x` in #((((( | |
3576 | -n*) | |
3577 | - case `echo 'x\c'` in | |
3578 | + case `echo 'xy\c'` in | |
3579 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
3580 | - *) ECHO_C='\c';; | |
3581 | + xy) ECHO_C='\c';; | |
3582 | + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
3583 | + ECHO_T=' ';; | |
3584 | esac;; | |
3585 | *) | |
3586 | ECHO_N='-n';; | |
3587 | esac | |
3588 | ||
3589 | -if expr a : '\(a\)' >/dev/null 2>&1 && | |
3590 | - test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
3591 | - as_expr=expr | |
3592 | -else | |
3593 | - as_expr=false | |
3594 | -fi | |
3595 | - | |
3596 | rm -f conf$$ conf$$.exe conf$$.file | |
3597 | if test -d conf$$.dir; then | |
3598 | rm -f conf$$.dir/conf$$.file | |
3599 | else | |
3600 | rm -f conf$$.dir | |
3601 | - mkdir conf$$.dir | |
3602 | + mkdir conf$$.dir 2>/dev/null | |
3603 | fi | |
3604 | -echo >conf$$.file | |
3605 | -if ln -s conf$$.file conf$$ 2>/dev/null; then | |
3606 | - as_ln_s='ln -s' | |
3607 | - # ... but there are two gotchas: | |
3608 | - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
3609 | - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
3610 | - # In both cases, we have to default to `cp -p'. | |
3611 | - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
3612 | +if (echo >conf$$.file) 2>/dev/null; then | |
3613 | + if ln -s conf$$.file conf$$ 2>/dev/null; then | |
3614 | + as_ln_s='ln -s' | |
3615 | + # ... but there are two gotchas: | |
3616 | + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
3617 | + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
3618 | + # In both cases, we have to default to `cp -p'. | |
3619 | + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
3620 | + as_ln_s='cp -p' | |
3621 | + elif ln conf$$.file conf$$ 2>/dev/null; then | |
3622 | + as_ln_s=ln | |
3623 | + else | |
3624 | as_ln_s='cp -p' | |
3625 | -elif ln conf$$.file conf$$ 2>/dev/null; then | |
3626 | - as_ln_s=ln | |
3627 | + fi | |
3628 | else | |
3629 | as_ln_s='cp -p' | |
3630 | fi | |
3631 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
3632 | rmdir conf$$.dir 2>/dev/null | |
3633 | ||
3634 | + | |
3635 | +# as_fn_mkdir_p | |
3636 | +# ------------- | |
3637 | +# Create "$as_dir" as a directory, including parents if necessary. | |
3638 | +as_fn_mkdir_p () | |
3639 | +{ | |
3640 | + | |
3641 | + case $as_dir in #( | |
3642 | + -*) as_dir=./$as_dir;; | |
3643 | + esac | |
3644 | + test -d "$as_dir" || eval $as_mkdir_p || { | |
3645 | + as_dirs= | |
3646 | + while :; do | |
3647 | + case $as_dir in #( | |
3648 | + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
3649 | + *) as_qdir=$as_dir;; | |
3650 | + esac | |
3651 | + as_dirs="'$as_qdir' $as_dirs" | |
3652 | + as_dir=`$as_dirname -- "$as_dir" || | |
3653 | +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
3654 | + X"$as_dir" : 'X\(//\)[^/]' \| \ | |
3655 | + X"$as_dir" : 'X\(//\)$' \| \ | |
3656 | + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
3657 | +$as_echo X"$as_dir" | | |
3658 | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
3659 | + s//\1/ | |
3660 | + q | |
3661 | + } | |
3662 | + /^X\(\/\/\)[^/].*/{ | |
3663 | + s//\1/ | |
3664 | + q | |
3665 | + } | |
3666 | + /^X\(\/\/\)$/{ | |
3667 | + s//\1/ | |
3668 | + q | |
3669 | + } | |
3670 | + /^X\(\/\).*/{ | |
3671 | + s//\1/ | |
3672 | + q | |
3673 | + } | |
3674 | + s/.*/./; q'` | |
3675 | + test -d "$as_dir" && break | |
3676 | + done | |
3677 | + test -z "$as_dirs" || eval "mkdir $as_dirs" | |
3678 | + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
3679 | + | |
3680 | + | |
3681 | +} # as_fn_mkdir_p | |
3682 | if mkdir -p . 2>/dev/null; then | |
3683 | - as_mkdir_p=: | |
3684 | + as_mkdir_p='mkdir -p "$as_dir"' | |
3685 | else | |
3686 | test -d ./-p && rmdir ./-p | |
3687 | as_mkdir_p=false | |
3688 | @@ -3348,12 +3373,12 @@ | |
3689 | as_test_x=' | |
3690 | eval sh -c '\'' | |
3691 | if test -d "$1"; then | |
3692 | - test -d "$1/."; | |
3693 | + test -d "$1/."; | |
3694 | else | |
3695 | - case $1 in | |
3696 | - -*)set "./$1";; | |
3697 | + case $1 in #( | |
3698 | + -*)set "./$1";; | |
3699 | esac; | |
3700 | - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
3701 | + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
3702 | ???[sx]*):;;*)false;;esac;fi | |
3703 | '\'' sh | |
3704 | ' | |
3705 | @@ -3368,13 +3393,19 @@ | |
3706 | ||
3707 | ||
3708 | exec 6>&1 | |
3709 | +## ----------------------------------- ## | |
3710 | +## Main body of $CONFIG_STATUS script. ## | |
3711 | +## ----------------------------------- ## | |
3712 | +_ASEOF | |
3713 | +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
3714 | ||
3715 | -# Save the log message, to keep $[0] and so on meaningful, and to | |
3716 | +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
3717 | +# Save the log message, to keep $0 and so on meaningful, and to | |
3718 | # report actual input values of CONFIG_FILES etc. instead of their | |
3719 | # values after options handling. | |
3720 | ac_log=" | |
3721 | This file was extended by libnl $as_me 1.1, which was | |
3722 | -generated by GNU Autoconf 2.61. Invocation command line was | |
3723 | +generated by GNU Autoconf 2.65. Invocation command line was | |
3724 | ||
3725 | CONFIG_FILES = $CONFIG_FILES | |
3726 | CONFIG_HEADERS = $CONFIG_HEADERS | |
3727 | @@ -3387,29 +3418,41 @@ | |
3728 | ||
3729 | _ACEOF | |
3730 | ||
3731 | -cat >>$CONFIG_STATUS <<_ACEOF | |
3732 | +case $ac_config_files in *" | |
3733 | +"*) set x $ac_config_files; shift; ac_config_files=$*;; | |
3734 | +esac | |
3735 | + | |
3736 | +case $ac_config_headers in *" | |
3737 | +"*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
3738 | +esac | |
3739 | + | |
3740 | + | |
3741 | +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3742 | # Files that config.status was made for. | |
3743 | config_files="$ac_config_files" | |
3744 | config_headers="$ac_config_headers" | |
3745 | ||
3746 | _ACEOF | |
3747 | ||
3748 | -cat >>$CONFIG_STATUS <<\_ACEOF | |
3749 | +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
3750 | ac_cs_usage="\ | |
3751 | -\`$as_me' instantiates files from templates according to the | |
3752 | -current configuration. | |
3753 | +\`$as_me' instantiates files and other configuration actions | |
3754 | +from templates according to the current configuration. Unless the files | |
3755 | +and actions are specified as TAGs, all are instantiated by default. | |
3756 | ||
3757 | -Usage: $0 [OPTIONS] [FILE]... | |
3758 | +Usage: $0 [OPTION]... [TAG]... | |
3759 | ||
3760 | -h, --help print this help, then exit | |
3761 | -V, --version print version number and configuration settings, then exit | |
3762 | - -q, --quiet do not print progress messages | |
3763 | + --config print configuration, then exit | |
3764 | + -q, --quiet, --silent | |
3765 | + do not print progress messages | |
3766 | -d, --debug don't remove temporary files | |
3767 | --recheck update $as_me by reconfiguring in the same conditions | |
3768 | - --file=FILE[:TEMPLATE] | |
3769 | - instantiate the configuration file FILE | |
3770 | - --header=FILE[:TEMPLATE] | |
3771 | - instantiate the configuration header FILE | |
3772 | + --file=FILE[:TEMPLATE] | |
3773 | + instantiate the configuration file FILE | |
3774 | + --header=FILE[:TEMPLATE] | |
3775 | + instantiate the configuration header FILE | |
3776 | ||
3777 | Configuration files: | |
3778 | $config_files | |
3779 | @@ -3417,27 +3460,28 @@ | |
3780 | Configuration headers: | |
3781 | $config_headers | |
3782 | ||
3783 | -Report bugs to <bug-autoconf@gnu.org>." | |
3784 | +Report bugs to <tgraf@suug.ch>." | |
3785 | ||
3786 | _ACEOF | |
3787 | -cat >>$CONFIG_STATUS <<_ACEOF | |
3788 | +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3789 | +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
3790 | ac_cs_version="\\ | |
3791 | libnl config.status 1.1 | |
3792 | -configured by $0, generated by GNU Autoconf 2.61, | |
3793 | - with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
3794 | +configured by $0, generated by GNU Autoconf 2.65, | |
3795 | + with options \\"\$ac_cs_config\\" | |
3796 | ||
3797 | -Copyright (C) 2006 Free Software Foundation, Inc. | |
3798 | +Copyright (C) 2009 Free Software Foundation, Inc. | |
3799 | This config.status script is free software; the Free Software Foundation | |
3800 | gives unlimited permission to copy, distribute and modify it." | |
3801 | ||
3802 | ac_pwd='$ac_pwd' | |
3803 | srcdir='$srcdir' | |
3804 | INSTALL='$INSTALL' | |
3805 | +test -n "\$AWK" || AWK=awk | |
3806 | _ACEOF | |
3807 | ||
3808 | -cat >>$CONFIG_STATUS <<\_ACEOF | |
3809 | -# If no file are specified by the user, then we need to provide default | |
3810 | -# value. By we need to know if files were specified by the user. | |
3811 | +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
3812 | +# The default lists apply if the user does not specify any file. | |
3813 | ac_need_defaults=: | |
3814 | while test $# != 0 | |
3815 | do | |
3816 | @@ -3459,34 +3503,40 @@ | |
3817 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
3818 | ac_cs_recheck=: ;; | |
3819 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
3820 | - echo "$ac_cs_version"; exit ;; | |
3821 | + $as_echo "$ac_cs_version"; exit ;; | |
3822 | + --config | --confi | --conf | --con | --co | --c ) | |
3823 | + $as_echo "$ac_cs_config"; exit ;; | |
3824 | --debug | --debu | --deb | --de | --d | -d ) | |
3825 | debug=: ;; | |
3826 | --file | --fil | --fi | --f ) | |
3827 | $ac_shift | |
3828 | - CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
3829 | + case $ac_optarg in | |
3830 | + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
3831 | + esac | |
3832 | + as_fn_append CONFIG_FILES " '$ac_optarg'" | |
3833 | ac_need_defaults=false;; | |
3834 | --header | --heade | --head | --hea ) | |
3835 | $ac_shift | |
3836 | - CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
3837 | + case $ac_optarg in | |
3838 | + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
3839 | + esac | |
3840 | + as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
3841 | ac_need_defaults=false;; | |
3842 | --he | --h) | |
3843 | # Conflict between --help and --header | |
3844 | - { echo "$as_me: error: ambiguous option: $1 | |
3845 | -Try \`$0 --help' for more information." >&2 | |
3846 | - { (exit 1); exit 1; }; };; | |
3847 | + as_fn_error "ambiguous option: \`$1' | |
3848 | +Try \`$0 --help' for more information.";; | |
3849 | --help | --hel | -h ) | |
3850 | - echo "$ac_cs_usage"; exit ;; | |
3851 | + $as_echo "$ac_cs_usage"; exit ;; | |
3852 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
3853 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
3854 | ac_cs_silent=: ;; | |
3855 | ||
3856 | # This is an error. | |
3857 | - -*) { echo "$as_me: error: unrecognized option: $1 | |
3858 | -Try \`$0 --help' for more information." >&2 | |
3859 | - { (exit 1); exit 1; }; } ;; | |
3860 | + -*) as_fn_error "unrecognized option: \`$1' | |
3861 | +Try \`$0 --help' for more information." ;; | |
3862 | ||
3863 | - *) ac_config_targets="$ac_config_targets $1" | |
3864 | + *) as_fn_append ac_config_targets " $1" | |
3865 | ac_need_defaults=false ;; | |
3866 | ||
3867 | esac | |
3868 | @@ -3501,30 +3551,32 @@ | |
3869 | fi | |
3870 | ||
3871 | _ACEOF | |
3872 | -cat >>$CONFIG_STATUS <<_ACEOF | |
3873 | +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3874 | if \$ac_cs_recheck; then | |
3875 | - echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
3876 | - CONFIG_SHELL=$SHELL | |
3877 | + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
3878 | + shift | |
3879 | + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
3880 | + CONFIG_SHELL='$SHELL' | |
3881 | export CONFIG_SHELL | |
3882 | - exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
3883 | + exec "\$@" | |
3884 | fi | |
3885 | ||
3886 | _ACEOF | |
3887 | -cat >>$CONFIG_STATUS <<\_ACEOF | |
3888 | +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
3889 | exec 5>>config.log | |
3890 | { | |
3891 | echo | |
3892 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
3893 | ## Running $as_me. ## | |
3894 | _ASBOX | |
3895 | - echo "$ac_log" | |
3896 | + $as_echo "$ac_log" | |
3897 | } >&5 | |
3898 | ||
3899 | _ACEOF | |
3900 | -cat >>$CONFIG_STATUS <<_ACEOF | |
3901 | +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3902 | _ACEOF | |
3903 | ||
3904 | -cat >>$CONFIG_STATUS <<\_ACEOF | |
3905 | +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
3906 | ||
3907 | # Handling of arguments. | |
3908 | for ac_config_target in $ac_config_targets | |
3909 | @@ -3535,9 +3587,7 @@ | |
3910 | "libnl-1.pc") CONFIG_FILES="$CONFIG_FILES libnl-1.pc" ;; | |
3911 | "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;; | |
3912 | ||
3913 | - *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
3914 | -echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
3915 | - { (exit 1); exit 1; }; };; | |
3916 | + *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
3917 | esac | |
3918 | done | |
3919 | ||
3920 | @@ -3563,7 +3613,7 @@ | |
3921 | trap 'exit_status=$? | |
3922 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
3923 | ' 0 | |
3924 | - trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
3925 | + trap 'as_fn_exit 1' 1 2 13 15 | |
3926 | } | |
3927 | # Create a (secure) tmp directory for tmp files. | |
3928 | ||
3929 | @@ -3574,116 +3624,139 @@ | |
3930 | { | |
3931 | tmp=./conf$$-$RANDOM | |
3932 | (umask 077 && mkdir "$tmp") | |
3933 | -} || | |
3934 | -{ | |
3935 | - echo "$me: cannot create a temporary directory in ." >&2 | |
3936 | - { (exit 1); exit 1; } | |
3937 | -} | |
3938 | +} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
3939 | ||
3940 | -# | |
3941 | -# Set up the sed scripts for CONFIG_FILES section. | |
3942 | -# | |
3943 | - | |
3944 | -# No need to generate the scripts if there are no CONFIG_FILES. | |
3945 | -# This happens for instance when ./config.status config.h | |
3946 | +# Set up the scripts for CONFIG_FILES section. | |
3947 | +# No need to generate them if there are no CONFIG_FILES. | |
3948 | +# This happens for instance with `./config.status config.h'. | |
3949 | if test -n "$CONFIG_FILES"; then | |
3950 | ||
3951 | -_ACEOF | |
3952 | ||
3953 | +ac_cr=`echo X | tr X '\015'` | |
3954 | +# On cygwin, bash can eat \r inside `` if the user requested igncr. | |
3955 | +# But we know of no other shell where ac_cr would be empty at this | |
3956 | +# point, so we can use a bashism as a fallback. | |
3957 | +if test "x$ac_cr" = x; then | |
3958 | + eval ac_cr=\$\'\\r\' | |
3959 | +fi | |
3960 | +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
3961 | +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
3962 | + ac_cs_awk_cr='\r' | |
3963 | +else | |
3964 | + ac_cs_awk_cr=$ac_cr | |
3965 | +fi | |
3966 | + | |
3967 | +echo 'BEGIN {' >"$tmp/subs1.awk" && | |
3968 | +_ACEOF | |
3969 | ||
3970 | ||
3971 | +{ | |
3972 | + echo "cat >conf$$subs.awk <<_ACEOF" && | |
3973 | + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
3974 | + echo "_ACEOF" | |
3975 | +} >conf$$subs.sh || | |
3976 | + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
3977 | +ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
3978 | ac_delim='%!_!# ' | |
3979 | for ac_last_try in false false false false false :; do | |
3980 | - cat >conf$$subs.sed <<_ACEOF | |
3981 | -SHELL!$SHELL$ac_delim | |
3982 | -PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | |
3983 | -PACKAGE_NAME!$PACKAGE_NAME$ac_delim | |
3984 | -PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | |
3985 | -PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | |
3986 | -PACKAGE_STRING!$PACKAGE_STRING$ac_delim | |
3987 | -PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | |
3988 | -exec_prefix!$exec_prefix$ac_delim | |
3989 | -prefix!$prefix$ac_delim | |
3990 | -program_transform_name!$program_transform_name$ac_delim | |
3991 | -bindir!$bindir$ac_delim | |
3992 | -sbindir!$sbindir$ac_delim | |
3993 | -libexecdir!$libexecdir$ac_delim | |
3994 | -datarootdir!$datarootdir$ac_delim | |
3995 | -datadir!$datadir$ac_delim | |
3996 | -sysconfdir!$sysconfdir$ac_delim | |
3997 | -sharedstatedir!$sharedstatedir$ac_delim | |
3998 | -localstatedir!$localstatedir$ac_delim | |
3999 | -includedir!$includedir$ac_delim | |
4000 | -oldincludedir!$oldincludedir$ac_delim | |
4001 | -docdir!$docdir$ac_delim | |
4002 | -infodir!$infodir$ac_delim | |
4003 | -htmldir!$htmldir$ac_delim | |
4004 | -dvidir!$dvidir$ac_delim | |
4005 | -pdfdir!$pdfdir$ac_delim | |
4006 | -psdir!$psdir$ac_delim | |
4007 | -libdir!$libdir$ac_delim | |
4008 | -localedir!$localedir$ac_delim | |
4009 | -mandir!$mandir$ac_delim | |
4010 | -DEFS!$DEFS$ac_delim | |
4011 | -ECHO_C!$ECHO_C$ac_delim | |
4012 | -ECHO_N!$ECHO_N$ac_delim | |
4013 | -ECHO_T!$ECHO_T$ac_delim | |
4014 | -LIBS!$LIBS$ac_delim | |
4015 | -build_alias!$build_alias$ac_delim | |
4016 | -host_alias!$host_alias$ac_delim | |
4017 | -target_alias!$target_alias$ac_delim | |
4018 | -CC!$CC$ac_delim | |
4019 | -CFLAGS!$CFLAGS$ac_delim | |
4020 | -LDFLAGS!$LDFLAGS$ac_delim | |
4021 | -CPPFLAGS!$CPPFLAGS$ac_delim | |
4022 | -ac_ct_CC!$ac_ct_CC$ac_delim | |
4023 | -EXEEXT!$EXEEXT$ac_delim | |
4024 | -OBJEXT!$OBJEXT$ac_delim | |
4025 | -INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | |
4026 | -INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | |
4027 | -INSTALL_DATA!$INSTALL_DATA$ac_delim | |
4028 | -LIBNL_LIB!$LIBNL_LIB$ac_delim | |
4029 | -LIBOBJS!$LIBOBJS$ac_delim | |
4030 | -LTLIBOBJS!$LTLIBOBJS$ac_delim | |
4031 | -_ACEOF | |
4032 | + . ./conf$$subs.sh || | |
4033 | + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
4034 | ||
4035 | - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 50; then | |
4036 | + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
4037 | + if test $ac_delim_n = $ac_delim_num; then | |
4038 | break | |
4039 | elif $ac_last_try; then | |
4040 | - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
4041 | -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
4042 | - { (exit 1); exit 1; }; } | |
4043 | + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
4044 | else | |
4045 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
4046 | fi | |
4047 | done | |
4048 | +rm -f conf$$subs.sh | |
4049 | ||
4050 | -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | |
4051 | -if test -n "$ac_eof"; then | |
4052 | - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
4053 | - ac_eof=`expr $ac_eof + 1` | |
4054 | -fi | |
4055 | - | |
4056 | -cat >>$CONFIG_STATUS <<_ACEOF | |
4057 | -cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | |
4058 | -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | |
4059 | -_ACEOF | |
4060 | -sed ' | |
4061 | -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
4062 | -s/^/s,@/; s/!/@,|#_!!_#|/ | |
4063 | -:n | |
4064 | -t n | |
4065 | -s/'"$ac_delim"'$/,g/; t | |
4066 | -s/$/\\/; p | |
4067 | -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
4068 | -' >>$CONFIG_STATUS <conf$$subs.sed | |
4069 | -rm -f conf$$subs.sed | |
4070 | -cat >>$CONFIG_STATUS <<_ACEOF | |
4071 | -:end | |
4072 | -s/|#_!!_#|//g | |
4073 | -CEOF$ac_eof | |
4074 | +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4075 | +cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
4076 | _ACEOF | |
4077 | +sed -n ' | |
4078 | +h | |
4079 | +s/^/S["/; s/!.*/"]=/ | |
4080 | +p | |
4081 | +g | |
4082 | +s/^[^!]*!// | |
4083 | +:repl | |
4084 | +t repl | |
4085 | +s/'"$ac_delim"'$// | |
4086 | +t delim | |
4087 | +:nl | |
4088 | +h | |
4089 | +s/\(.\{148\}\)..*/\1/ | |
4090 | +t more1 | |
4091 | +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
4092 | +p | |
4093 | +n | |
4094 | +b repl | |
4095 | +:more1 | |
4096 | +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
4097 | +p | |
4098 | +g | |
4099 | +s/.\{148\}// | |
4100 | +t nl | |
4101 | +:delim | |
4102 | +h | |
4103 | +s/\(.\{148\}\)..*/\1/ | |
4104 | +t more2 | |
4105 | +s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
4106 | +p | |
4107 | +b | |
4108 | +:more2 | |
4109 | +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
4110 | +p | |
4111 | +g | |
4112 | +s/.\{148\}// | |
4113 | +t delim | |
4114 | +' <conf$$subs.awk | sed ' | |
4115 | +/^[^""]/{ | |
4116 | + N | |
4117 | + s/\n// | |
4118 | +} | |
4119 | +' >>$CONFIG_STATUS || ac_write_fail=1 | |
4120 | +rm -f conf$$subs.awk | |
4121 | +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4122 | +_ACAWK | |
4123 | +cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
4124 | + for (key in S) S_is_set[key] = 1 | |
4125 | + FS = "\a" | |
4126 | + | |
4127 | +} | |
4128 | +{ | |
4129 | + line = $ 0 | |
4130 | + nfields = split(line, field, "@") | |
4131 | + substed = 0 | |
4132 | + len = length(field[1]) | |
4133 | + for (i = 2; i < nfields; i++) { | |
4134 | + key = field[i] | |
4135 | + keylen = length(key) | |
4136 | + if (S_is_set[key]) { | |
4137 | + value = S[key] | |
4138 | + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
4139 | + len += length(value) + length(field[++i]) | |
4140 | + substed = 1 | |
4141 | + } else | |
4142 | + len += 1 + keylen | |
4143 | + } | |
4144 | + | |
4145 | + print line | |
4146 | +} | |
4147 | ||
4148 | +_ACAWK | |
4149 | +_ACEOF | |
4150 | +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4151 | +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
4152 | + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
4153 | +else | |
4154 | + cat | |
4155 | +fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
4156 | + || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
4157 | +_ACEOF | |
4158 | ||
4159 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
4160 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
4161 | @@ -3700,20 +3773,128 @@ | |
4162 | }' | |
4163 | fi | |
4164 | ||
4165 | -cat >>$CONFIG_STATUS <<\_ACEOF | |
4166 | +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4167 | fi # test -n "$CONFIG_FILES" | |
4168 | ||
4169 | +# Set up the scripts for CONFIG_HEADERS section. | |
4170 | +# No need to generate them if there are no CONFIG_HEADERS. | |
4171 | +# This happens for instance with `./config.status Makefile'. | |
4172 | +if test -n "$CONFIG_HEADERS"; then | |
4173 | +cat >"$tmp/defines.awk" <<\_ACAWK || | |
4174 | +BEGIN { | |
4175 | +_ACEOF | |
4176 | + | |
4177 | +# Transform confdefs.h into an awk script `defines.awk', embedded as | |
4178 | +# here-document in config.status, that substitutes the proper values into | |
4179 | +# config.h.in to produce config.h. | |
4180 | + | |
4181 | +# Create a delimiter string that does not exist in confdefs.h, to ease | |
4182 | +# handling of long lines. | |
4183 | +ac_delim='%!_!# ' | |
4184 | +for ac_last_try in false false :; do | |
4185 | + ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
4186 | + if test -z "$ac_t"; then | |
4187 | + break | |
4188 | + elif $ac_last_try; then | |
4189 | + as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
4190 | + else | |
4191 | + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
4192 | + fi | |
4193 | +done | |
4194 | + | |
4195 | +# For the awk script, D is an array of macro values keyed by name, | |
4196 | +# likewise P contains macro parameters if any. Preserve backslash | |
4197 | +# newline sequences. | |
4198 | + | |
4199 | +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
4200 | +sed -n ' | |
4201 | +s/.\{148\}/&'"$ac_delim"'/g | |
4202 | +t rset | |
4203 | +:rset | |
4204 | +s/^[ ]*#[ ]*define[ ][ ]*/ / | |
4205 | +t def | |
4206 | +d | |
4207 | +:def | |
4208 | +s/\\$// | |
4209 | +t bsnl | |
4210 | +s/["\\]/\\&/g | |
4211 | +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
4212 | +D["\1"]=" \3"/p | |
4213 | +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
4214 | +d | |
4215 | +:bsnl | |
4216 | +s/["\\]/\\&/g | |
4217 | +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
4218 | +D["\1"]=" \3\\\\\\n"\\/p | |
4219 | +t cont | |
4220 | +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
4221 | +t cont | |
4222 | +d | |
4223 | +:cont | |
4224 | +n | |
4225 | +s/.\{148\}/&'"$ac_delim"'/g | |
4226 | +t clear | |
4227 | +:clear | |
4228 | +s/\\$// | |
4229 | +t bsnlc | |
4230 | +s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
4231 | +d | |
4232 | +:bsnlc | |
4233 | +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
4234 | +b cont | |
4235 | +' <confdefs.h | sed ' | |
4236 | +s/'"$ac_delim"'/"\\\ | |
4237 | +"/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
4238 | + | |
4239 | +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4240 | + for (key in D) D_is_set[key] = 1 | |
4241 | + FS = "\a" | |
4242 | +} | |
4243 | +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
4244 | + line = \$ 0 | |
4245 | + split(line, arg, " ") | |
4246 | + if (arg[1] == "#") { | |
4247 | + defundef = arg[2] | |
4248 | + mac1 = arg[3] | |
4249 | + } else { | |
4250 | + defundef = substr(arg[1], 2) | |
4251 | + mac1 = arg[2] | |
4252 | + } | |
4253 | + split(mac1, mac2, "(") #) | |
4254 | + macro = mac2[1] | |
4255 | + prefix = substr(line, 1, index(line, defundef) - 1) | |
4256 | + if (D_is_set[macro]) { | |
4257 | + # Preserve the white space surrounding the "#". | |
4258 | + print prefix "define", macro P[macro] D[macro] | |
4259 | + next | |
4260 | + } else { | |
4261 | + # Replace #undef with comments. This is necessary, for example, | |
4262 | + # in the case of _POSIX_SOURCE, which is predefined and required | |
4263 | + # on some systems where configure will not decide to define it. | |
4264 | + if (defundef == "undef") { | |
4265 | + print "/*", prefix defundef, macro, "*/" | |
4266 | + next | |
4267 | + } | |
4268 | + } | |
4269 | +} | |
4270 | +{ print } | |
4271 | +_ACAWK | |
4272 | +_ACEOF | |
4273 | +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4274 | + as_fn_error "could not setup config headers machinery" "$LINENO" 5 | |
4275 | +fi # test -n "$CONFIG_HEADERS" | |
4276 | + | |
4277 | ||
4278 | -for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS | |
4279 | +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " | |
4280 | +shift | |
4281 | +for ac_tag | |
4282 | do | |
4283 | case $ac_tag in | |
4284 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
4285 | esac | |
4286 | case $ac_mode$ac_tag in | |
4287 | :[FHL]*:*);; | |
4288 | - :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | |
4289 | -echo "$as_me: error: Invalid tag $ac_tag." >&2;} | |
4290 | - { (exit 1); exit 1; }; };; | |
4291 | + :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
4292 | :[FH]-) ac_tag=-:-;; | |
4293 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
4294 | esac | |
4295 | @@ -3741,26 +3922,34 @@ | |
4296 | [\\/$]*) false;; | |
4297 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
4298 | esac || | |
4299 | - { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | |
4300 | -echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
4301 | - { (exit 1); exit 1; }; };; | |
4302 | + as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
4303 | esac | |
4304 | - ac_file_inputs="$ac_file_inputs $ac_f" | |
4305 | + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
4306 | + as_fn_append ac_file_inputs " '$ac_f'" | |
4307 | done | |
4308 | ||
4309 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
4310 | # use $as_me), people would be surprised to read: | |
4311 | # /* config.h. Generated by config.status. */ | |
4312 | - configure_input="Generated from "`IFS=: | |
4313 | - echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | |
4314 | + configure_input='Generated from '` | |
4315 | + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
4316 | + `' by configure.' | |
4317 | if test x"$ac_file" != x-; then | |
4318 | configure_input="$ac_file. $configure_input" | |
4319 | - { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
4320 | -echo "$as_me: creating $ac_file" >&6;} | |
4321 | + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
4322 | +$as_echo "$as_me: creating $ac_file" >&6;} | |
4323 | fi | |
4324 | + # Neutralize special characters interpreted by sed in replacement strings. | |
4325 | + case $configure_input in #( | |
4326 | + *\&* | *\|* | *\\* ) | |
4327 | + ac_sed_conf_input=`$as_echo "$configure_input" | | |
4328 | + sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
4329 | + *) ac_sed_conf_input=$configure_input;; | |
4330 | + esac | |
4331 | ||
4332 | case $ac_tag in | |
4333 | - *:-:* | *:-) cat >"$tmp/stdin";; | |
4334 | + *:-:* | *:-) cat >"$tmp/stdin" \ | |
4335 | + || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
4336 | esac | |
4337 | ;; | |
4338 | esac | |
4339 | @@ -3770,42 +3959,7 @@ | |
4340 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
4341 | X"$ac_file" : 'X\(//\)$' \| \ | |
4342 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
4343 | -echo X"$ac_file" | | |
4344 | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
4345 | - s//\1/ | |
4346 | - q | |
4347 | - } | |
4348 | - /^X\(\/\/\)[^/].*/{ | |
4349 | - s//\1/ | |
4350 | - q | |
4351 | - } | |
4352 | - /^X\(\/\/\)$/{ | |
4353 | - s//\1/ | |
4354 | - q | |
4355 | - } | |
4356 | - /^X\(\/\).*/{ | |
4357 | - s//\1/ | |
4358 | - q | |
4359 | - } | |
4360 | - s/.*/./; q'` | |
4361 | - { as_dir="$ac_dir" | |
4362 | - case $as_dir in #( | |
4363 | - -*) as_dir=./$as_dir;; | |
4364 | - esac | |
4365 | - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
4366 | - as_dirs= | |
4367 | - while :; do | |
4368 | - case $as_dir in #( | |
4369 | - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | |
4370 | - *) as_qdir=$as_dir;; | |
4371 | - esac | |
4372 | - as_dirs="'$as_qdir' $as_dirs" | |
4373 | - as_dir=`$as_dirname -- "$as_dir" || | |
4374 | -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
4375 | - X"$as_dir" : 'X\(//\)[^/]' \| \ | |
4376 | - X"$as_dir" : 'X\(//\)$' \| \ | |
4377 | - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
4378 | -echo X"$as_dir" | | |
4379 | +$as_echo X"$ac_file" | | |
4380 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
4381 | s//\1/ | |
4382 | q | |
4383 | @@ -3823,20 +3977,15 @@ | |
4384 | q | |
4385 | } | |
4386 | s/.*/./; q'` | |
4387 | - test -d "$as_dir" && break | |
4388 | - done | |
4389 | - test -z "$as_dirs" || eval "mkdir $as_dirs" | |
4390 | - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
4391 | -echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
4392 | - { (exit 1); exit 1; }; }; } | |
4393 | + as_dir="$ac_dir"; as_fn_mkdir_p | |
4394 | ac_builddir=. | |
4395 | ||
4396 | case "$ac_dir" in | |
4397 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
4398 | *) | |
4399 | - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
4400 | + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
4401 | # A ".." for each directory in $ac_dir_suffix. | |
4402 | - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
4403 | + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
4404 | case $ac_top_builddir_sub in | |
4405 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
4406 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
4407 | @@ -3876,12 +4025,12 @@ | |
4408 | esac | |
4409 | _ACEOF | |
4410 | ||
4411 | -cat >>$CONFIG_STATUS <<\_ACEOF | |
4412 | +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4413 | # If the template does not know about datarootdir, expand it. | |
4414 | # FIXME: This hack should be removed a few years after 2.60. | |
4415 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
4416 | - | |
4417 | -case `sed -n '/datarootdir/ { | |
4418 | +ac_sed_dataroot=' | |
4419 | +/datarootdir/ { | |
4420 | p | |
4421 | q | |
4422 | } | |
4423 | @@ -3889,36 +4038,37 @@ | |
4424 | /@docdir@/p | |
4425 | /@infodir@/p | |
4426 | /@localedir@/p | |
4427 | -/@mandir@/p | |
4428 | -' $ac_file_inputs` in | |
4429 | +/@mandir@/p' | |
4430 | +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
4431 | *datarootdir*) ac_datarootdir_seen=yes;; | |
4432 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
4433 | - { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
4434 | -echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
4435 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
4436 | +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
4437 | _ACEOF | |
4438 | -cat >>$CONFIG_STATUS <<_ACEOF | |
4439 | +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4440 | ac_datarootdir_hack=' | |
4441 | s&@datadir@&$datadir&g | |
4442 | s&@docdir@&$docdir&g | |
4443 | s&@infodir@&$infodir&g | |
4444 | s&@localedir@&$localedir&g | |
4445 | s&@mandir@&$mandir&g | |
4446 | - s&\\\${datarootdir}&$datarootdir&g' ;; | |
4447 | + s&\\\${datarootdir}&$datarootdir&g' ;; | |
4448 | esac | |
4449 | _ACEOF | |
4450 | ||
4451 | # Neutralize VPATH when `$srcdir' = `.'. | |
4452 | # Shell code in configure.ac might set extrasub. | |
4453 | # FIXME: do we really want to maintain this feature? | |
4454 | -cat >>$CONFIG_STATUS <<_ACEOF | |
4455 | - sed "$ac_vpsub | |
4456 | +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4457 | +ac_sed_extra="$ac_vpsub | |
4458 | $extrasub | |
4459 | _ACEOF | |
4460 | -cat >>$CONFIG_STATUS <<\_ACEOF | |
4461 | +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4462 | :t | |
4463 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
4464 | -s&@configure_input@&$configure_input&;t t | |
4465 | +s|@configure_input@|$ac_sed_conf_input|;t t | |
4466 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
4467 | +s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
4468 | s&@srcdir@&$ac_srcdir&;t t | |
4469 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
4470 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
4471 | @@ -3928,119 +4078,48 @@ | |
4472 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
4473 | s&@INSTALL@&$ac_INSTALL&;t t | |
4474 | $ac_datarootdir_hack | |
4475 | -" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out | |
4476 | +" | |
4477 | +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
4478 | + || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
4479 | ||
4480 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
4481 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
4482 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
4483 | - { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
4484 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
4485 | which seems to be undefined. Please make sure it is defined." >&5 | |
4486 | -echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
4487 | +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
4488 | which seems to be undefined. Please make sure it is defined." >&2;} | |
4489 | ||
4490 | rm -f "$tmp/stdin" | |
4491 | case $ac_file in | |
4492 | - -) cat "$tmp/out"; rm -f "$tmp/out";; | |
4493 | - *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | |
4494 | - esac | |
4495 | + -) cat "$tmp/out" && rm -f "$tmp/out";; | |
4496 | + *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
4497 | + esac \ | |
4498 | + || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
4499 | ;; | |
4500 | :H) | |
4501 | # | |
4502 | # CONFIG_HEADER | |
4503 | # | |
4504 | -_ACEOF | |
4505 | - | |
4506 | -# Transform confdefs.h into a sed script `conftest.defines', that | |
4507 | -# substitutes the proper values into config.h.in to produce config.h. | |
4508 | -rm -f conftest.defines conftest.tail | |
4509 | -# First, append a space to every undef/define line, to ease matching. | |
4510 | -echo 's/$/ /' >conftest.defines | |
4511 | -# Then, protect against being on the right side of a sed subst, or in | |
4512 | -# an unquoted here document, in config.status. If some macros were | |
4513 | -# called several times there might be several #defines for the same | |
4514 | -# symbol, which is useless. But do not sort them, since the last | |
4515 | -# AC_DEFINE must be honored. | |
4516 | -ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
4517 | -# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | |
4518 | -# NAME is the cpp macro being defined, VALUE is the value it is being given. | |
4519 | -# PARAMS is the parameter list in the macro definition--in most cases, it's | |
4520 | -# just an empty string. | |
4521 | -ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | |
4522 | -ac_dB='\\)[ (].*,\\1define\\2' | |
4523 | -ac_dC=' ' | |
4524 | -ac_dD=' ,' | |
4525 | - | |
4526 | -uniq confdefs.h | | |
4527 | - sed -n ' | |
4528 | - t rset | |
4529 | - :rset | |
4530 | - s/^[ ]*#[ ]*define[ ][ ]*// | |
4531 | - t ok | |
4532 | - d | |
4533 | - :ok | |
4534 | - s/[\\&,]/\\&/g | |
4535 | - s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | |
4536 | - s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | |
4537 | - ' >>conftest.defines | |
4538 | - | |
4539 | -# Remove the space that was appended to ease matching. | |
4540 | -# Then replace #undef with comments. This is necessary, for | |
4541 | -# example, in the case of _POSIX_SOURCE, which is predefined and required | |
4542 | -# on some systems where configure will not decide to define it. | |
4543 | -# (The regexp can be short, since the line contains either #define or #undef.) | |
4544 | -echo 's/ $// | |
4545 | -s,^[ #]*u.*,/* & */,' >>conftest.defines | |
4546 | - | |
4547 | -# Break up conftest.defines: | |
4548 | -ac_max_sed_lines=50 | |
4549 | - | |
4550 | -# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | |
4551 | -# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | |
4552 | -# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | |
4553 | -# et cetera. | |
4554 | -ac_in='$ac_file_inputs' | |
4555 | -ac_out='"$tmp/out1"' | |
4556 | -ac_nxt='"$tmp/out2"' | |
4557 | - | |
4558 | -while : | |
4559 | -do | |
4560 | - # Write a here document: | |
4561 | - cat >>$CONFIG_STATUS <<_ACEOF | |
4562 | - # First, check the format of the line: | |
4563 | - cat >"\$tmp/defines.sed" <<\\CEOF | |
4564 | -/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | |
4565 | -/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | |
4566 | -b | |
4567 | -:def | |
4568 | -_ACEOF | |
4569 | - sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | |
4570 | - echo 'CEOF | |
4571 | - sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS | |
4572 | - ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | |
4573 | - sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | |
4574 | - grep . conftest.tail >/dev/null || break | |
4575 | - rm -f conftest.defines | |
4576 | - mv conftest.tail conftest.defines | |
4577 | -done | |
4578 | -rm -f conftest.defines conftest.tail | |
4579 | - | |
4580 | -echo "ac_result=$ac_in" >>$CONFIG_STATUS | |
4581 | -cat >>$CONFIG_STATUS <<\_ACEOF | |
4582 | if test x"$ac_file" != x-; then | |
4583 | - echo "/* $configure_input */" >"$tmp/config.h" | |
4584 | - cat "$ac_result" >>"$tmp/config.h" | |
4585 | - if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | |
4586 | - { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
4587 | -echo "$as_me: $ac_file is unchanged" >&6;} | |
4588 | + { | |
4589 | + $as_echo "/* $configure_input */" \ | |
4590 | + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
4591 | + } >"$tmp/config.h" \ | |
4592 | + || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
4593 | + if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
4594 | + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
4595 | +$as_echo "$as_me: $ac_file is unchanged" >&6;} | |
4596 | else | |
4597 | - rm -f $ac_file | |
4598 | - mv "$tmp/config.h" $ac_file | |
4599 | + rm -f "$ac_file" | |
4600 | + mv "$tmp/config.h" "$ac_file" \ | |
4601 | + || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
4602 | fi | |
4603 | else | |
4604 | - echo "/* $configure_input */" | |
4605 | - cat "$ac_result" | |
4606 | + $as_echo "/* $configure_input */" \ | |
4607 | + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
4608 | + || as_fn_error "could not create -" "$LINENO" 5 | |
4609 | fi | |
4610 | - rm -f "$tmp/out12" | |
4611 | ;; | |
4612 | ||
4613 | ||
4614 | @@ -4049,11 +4128,13 @@ | |
4615 | done # for ac_tag | |
4616 | ||
4617 | ||
4618 | -{ (exit 0); exit 0; } | |
4619 | +as_fn_exit 0 | |
4620 | _ACEOF | |
4621 | -chmod +x $CONFIG_STATUS | |
4622 | ac_clean_files=$ac_clean_files_save | |
4623 | ||
4624 | +test $ac_write_fail = 0 || | |
4625 | + as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
4626 | + | |
4627 | ||
4628 | # configure is writing to config.log, and then calls config.status. | |
4629 | # config.status does its own redirection, appending to config.log. | |
4630 | @@ -4073,7 +4154,11 @@ | |
4631 | exec 5>>config.log | |
4632 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
4633 | # would make configure fail if this is the last instruction. | |
4634 | - $ac_cs_success || { (exit 1); exit 1; } | |
4635 | + $ac_cs_success || as_fn_exit $? | |
4636 | +fi | |
4637 | +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
4638 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
4639 | +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
4640 | fi | |
4641 | ||
4642 | ||
4643 | diff -urP libnl-1.1.orig/configure.in libnl-1.1/configure.in | |
4644 | --- libnl-1.1.orig/configure.in 2010-05-24 14:24:10.821385918 -0400 | |
4645 | +++ libnl-1.1/configure.in 2010-05-24 13:59:03.544399112 -0400 | |
4646 | @@ -51,6 +51,15 @@ | |
4647 | fi | |
4648 | ]) | |
4649 | ||
4650 | +AC_ARG_ENABLE(static, | |
4651 | +[ --enable-static make static library [default=no]],, enable_static="no") | |
4652 | + if test "x$enable_static" = "xyes"; then | |
4653 | + STATIC_LIB="True" | |
4654 | + else | |
4655 | + STATIC_LIB= | |
4656 | + fi | |
4657 | + AC_SUBST(STATIC_LIB) | |
4658 | + | |
4659 | ##################################################################### | |
4660 | ## | |
4661 | ## compile decisions | |
4662 | Binary files libnl-1.1.orig/lib/libnl.a and libnl-1.1/lib/libnl.a differ | |
4663 | diff -urP libnl-1.1.orig/lib/Makefile libnl-1.1/lib/Makefile | |
4664 | --- libnl-1.1.orig/lib/Makefile 2010-05-24 13:33:47.121512192 -0400 | |
4665 | +++ libnl-1.1/lib/Makefile 2010-05-24 14:25:07.710391644 -0400 | |
4666 | @@ -38,14 +38,19 @@ | |
4667 | LN_SLIB := $(PACKAGE_NAME).so | |
4668 | LN1_SLIB := $(LN_SLIB).1 | |
4669 | ||
4670 | +ifeq ($(STATIC_LIB),True) | |
4671 | + targets=$(OUT_SLIB) $(OUT_AR) | |
4672 | +else | |
4673 | + targets=$(OUT_SLIB) | |
4674 | +endif | |
4675 | + | |
4676 | export | |
4677 | ||
4678 | .PHONY: all clean install librtn.a $(OUT_SLIB) | |
4679 | ||
4680 | ||
4681 | all: | |
4682 | - $(MAKE) $(OUT_SLIB); \ | |
4683 | - $(MAKE) $(OUT_AR) | |
4684 | + $(MAKE) $(targets) | |
4685 | ||
4686 | $(OUT_SLIB): ../Makefile.opts $(OBJ) | |
4687 | $(CC) -shared -Wl,-soname,libnl.so.1 -o $(OUT_SLIB) $(OBJ) $(LIBNL_LIB) -lc | |
4688 | @@ -69,7 +74,9 @@ | |
4689 | $(LN) -s $(OUT_SLIB) $(DESTDIR)$(libdir)/$(LN1_SLIB) | |
4690 | rm -f $(DESTDIR)$(libdir)/$(LN_SLIB) | |
4691 | $(LN) -s $(LN1_SLIB) $(DESTDIR)$(libdir)/$(LN_SLIB) | |
4692 | +ifeq ($(STATIC_LIB),True) | |
4693 | install -m 0644 $(OUT_AR) $(DESTDIR)$(libdir) | |
4694 | +endif | |
4695 | ||
4696 | $(DEPS): ../Makefile.opts | |
4697 | ||
4698 | diff -urP libnl-1.1.orig/Makefile.opts.in libnl-1.1/Makefile.opts.in | |
4699 | --- libnl-1.1.orig/Makefile.opts.in 2008-01-14 10:48:45.000000000 -0500 | |
4700 | +++ libnl-1.1/Makefile.opts.in 2010-05-24 13:58:13.465385987 -0400 | |
4701 | @@ -29,6 +29,8 @@ | |
4702 | RM := rm | |
4703 | LN := ln | |
4704 | ||
4705 | +STATIC_LIB := @STATIC_LIB@ | |
4706 | + | |
4707 | DEPFLAGS += -M -I../include/ -I. $(CPPFLAGS) | |
4708 | CFLAGS += -g -I./include -I../include -I. $(CPPFLAGS) -D_GNU_SOURCE | |
4709 | MAKEFLAGS += --no-print-directory |