Mercurial > hg > tony
comparison configure @ 0:158f40a613a5
Initial import of material from SV and Vect. This builds and runs, but does not yet have the layout we need
author | Chris Cannam |
---|---|
date | Fri, 16 Nov 2012 11:48:16 +0000 |
parents | |
children | ca1889e54806 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:158f40a613a5 |
---|---|
1 #! /bin/sh | |
2 # Guess values for system-dependent variables and create Makefiles. | |
3 # Generated by GNU Autoconf 2.69 for Tony 0.0. | |
4 # | |
5 # Report bugs to <cannam@all-day-breakfast.com>. | |
6 # | |
7 # | |
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
9 # | |
10 # | |
11 # This configure script is free software; the Free Software Foundation | |
12 # gives unlimited permission to copy, distribute and modify it. | |
13 ## -------------------- ## | |
14 ## M4sh Initialization. ## | |
15 ## -------------------- ## | |
16 | |
17 # Be more Bourne compatible | |
18 DUALCASE=1; export DUALCASE # for MKS sh | |
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
20 emulate sh | |
21 NULLCMD=: | |
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
23 # is contrary to our usage. Disable this feature. | |
24 alias -g '${1+"$@"}'='"$@"' | |
25 setopt NO_GLOB_SUBST | |
26 else | |
27 case `(set -o) 2>/dev/null` in #( | |
28 *posix*) : | |
29 set -o posix ;; #( | |
30 *) : | |
31 ;; | |
32 esac | |
33 fi | |
34 | |
35 | |
36 as_nl=' | |
37 ' | |
38 export as_nl | |
39 # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
43 # Prefer a ksh shell builtin over an external printf program on Solaris, | |
44 # but without wasting forks for bash or zsh. | |
45 if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
47 as_echo='print -r --' | |
48 as_echo_n='print -rn --' | |
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
50 as_echo='printf %s\n' | |
51 as_echo_n='printf %s' | |
52 else | |
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
55 as_echo_n='/usr/ucb/echo -n' | |
56 else | |
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
58 as_echo_n_body='eval | |
59 arg=$1; | |
60 case $arg in #( | |
61 *"$as_nl"*) | |
62 expr "X$arg" : "X\\(.*\\)$as_nl"; | |
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
64 esac; | |
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
66 ' | |
67 export as_echo_n_body | |
68 as_echo_n='sh -c $as_echo_n_body as_echo' | |
69 fi | |
70 export as_echo_body | |
71 as_echo='sh -c $as_echo_body as_echo' | |
72 fi | |
73 | |
74 # The user is always right. | |
75 if test "${PATH_SEPARATOR+set}" != set; then | |
76 PATH_SEPARATOR=: | |
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
79 PATH_SEPARATOR=';' | |
80 } | |
81 fi | |
82 | |
83 | |
84 # IFS | |
85 # We need space, tab and new line, in precisely that order. Quoting is | |
86 # there to prevent editors from complaining about space-tab. | |
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
88 # splitting by setting IFS to empty value.) | |
89 IFS=" "" $as_nl" | |
90 | |
91 # Find who we are. Look in the path if we contain no directory separator. | |
92 as_myself= | |
93 case $0 in #(( | |
94 *[\\/]* ) as_myself=$0 ;; | |
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
96 for as_dir in $PATH | |
97 do | |
98 IFS=$as_save_IFS | |
99 test -z "$as_dir" && as_dir=. | |
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
101 done | |
102 IFS=$as_save_IFS | |
103 | |
104 ;; | |
105 esac | |
106 # We did not find ourselves, most probably we were run as `sh COMMAND' | |
107 # in which case we are not to be found in the path. | |
108 if test "x$as_myself" = x; then | |
109 as_myself=$0 | |
110 fi | |
111 if test ! -f "$as_myself"; then | |
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
113 exit 1 | |
114 fi | |
115 | |
116 # Unset variables that we do not need and which cause bugs (e.g. in | |
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
118 # suppresses any "Segmentation fault" message there. '((' could | |
119 # trigger a bug in pdksh 5.2.14. | |
120 for as_var in BASH_ENV ENV MAIL MAILPATH | |
121 do eval test x\${$as_var+set} = xset \ | |
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
123 done | |
124 PS1='$ ' | |
125 PS2='> ' | |
126 PS4='+ ' | |
127 | |
128 # NLS nuisances. | |
129 LC_ALL=C | |
130 export LC_ALL | |
131 LANGUAGE=C | |
132 export LANGUAGE | |
133 | |
134 # CDPATH. | |
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
136 | |
137 # Use a proper internal environment variable to ensure we don't fall | |
138 # into an infinite loop, continuously re-executing ourselves. | |
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
140 _as_can_reexec=no; export _as_can_reexec; | |
141 # We cannot yet assume a decent shell, so we have to provide a | |
142 # neutralization value for shells without unset; and this also | |
143 # works around shells that cannot unset nonexistent variables. | |
144 # Preserve -v and -x to the replacement shell. | |
145 BASH_ENV=/dev/null | |
146 ENV=/dev/null | |
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
148 case $- in # (((( | |
149 *v*x* | *x*v* ) as_opts=-vx ;; | |
150 *v* ) as_opts=-v ;; | |
151 *x* ) as_opts=-x ;; | |
152 * ) as_opts= ;; | |
153 esac | |
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
155 # Admittedly, this is quite paranoid, since all the known shells bail | |
156 # out after a failed `exec'. | |
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
158 as_fn_exit 255 | |
159 fi | |
160 # We don't want this to propagate to other subprocesses. | |
161 { _as_can_reexec=; unset _as_can_reexec;} | |
162 if test "x$CONFIG_SHELL" = x; then | |
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
164 emulate sh | |
165 NULLCMD=: | |
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
167 # is contrary to our usage. Disable this feature. | |
168 alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
169 setopt NO_GLOB_SUBST | |
170 else | |
171 case \`(set -o) 2>/dev/null\` in #( | |
172 *posix*) : | |
173 set -o posix ;; #( | |
174 *) : | |
175 ;; | |
176 esac | |
177 fi | |
178 " | |
179 as_required="as_fn_return () { (exit \$1); } | |
180 as_fn_success () { as_fn_return 0; } | |
181 as_fn_failure () { as_fn_return 1; } | |
182 as_fn_ret_success () { return 0; } | |
183 as_fn_ret_failure () { return 1; } | |
184 | |
185 exitcode=0 | |
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
191 | |
192 else | |
193 exitcode=1; echo positional parameters were not saved. | |
194 fi | |
195 test x\$exitcode = x0 || exit 1 | |
196 test -x / || exit 1" | |
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
201 test \$(( 1 + 1 )) = 2 || exit 1" | |
202 if (eval "$as_required") 2>/dev/null; then : | |
203 as_have_required=yes | |
204 else | |
205 as_have_required=no | |
206 fi | |
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
208 | |
209 else | |
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
211 as_found=false | |
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
213 do | |
214 IFS=$as_save_IFS | |
215 test -z "$as_dir" && as_dir=. | |
216 as_found=: | |
217 case $as_dir in #( | |
218 /*) | |
219 for as_base in sh bash ksh sh5; do | |
220 # Try only shells that exist, to save several forks. | |
221 as_shell=$as_dir/$as_base | |
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
224 CONFIG_SHELL=$as_shell as_have_required=yes | |
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
226 break 2 | |
227 fi | |
228 fi | |
229 done;; | |
230 esac | |
231 as_found=false | |
232 done | |
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
235 CONFIG_SHELL=$SHELL as_have_required=yes | |
236 fi; } | |
237 IFS=$as_save_IFS | |
238 | |
239 | |
240 if test "x$CONFIG_SHELL" != x; then : | |
241 export CONFIG_SHELL | |
242 # We cannot yet assume a decent shell, so we have to provide a | |
243 # neutralization value for shells without unset; and this also | |
244 # works around shells that cannot unset nonexistent variables. | |
245 # Preserve -v and -x to the replacement shell. | |
246 BASH_ENV=/dev/null | |
247 ENV=/dev/null | |
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
249 case $- in # (((( | |
250 *v*x* | *x*v* ) as_opts=-vx ;; | |
251 *v* ) as_opts=-v ;; | |
252 *x* ) as_opts=-x ;; | |
253 * ) as_opts= ;; | |
254 esac | |
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
256 # Admittedly, this is quite paranoid, since all the known shells bail | |
257 # out after a failed `exec'. | |
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
259 exit 255 | |
260 fi | |
261 | |
262 if test x$as_have_required = xno; then : | |
263 $as_echo "$0: This script requires a shell more modern than all" | |
264 $as_echo "$0: the shells that I found on your system." | |
265 if test x${ZSH_VERSION+set} = xset ; then | |
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
268 else | |
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and | |
270 $0: cannam@all-day-breakfast.com about your system, | |
271 $0: including any error possibly output before this | |
272 $0: message. Then install a modern shell, or manually run | |
273 $0: the script under such a shell if you do have one." | |
274 fi | |
275 exit 1 | |
276 fi | |
277 fi | |
278 fi | |
279 SHELL=${CONFIG_SHELL-/bin/sh} | |
280 export SHELL | |
281 # Unset more variables known to interfere with behavior of common tools. | |
282 CLICOLOR_FORCE= GREP_OPTIONS= | |
283 unset CLICOLOR_FORCE GREP_OPTIONS | |
284 | |
285 ## --------------------- ## | |
286 ## M4sh Shell Functions. ## | |
287 ## --------------------- ## | |
288 # as_fn_unset VAR | |
289 # --------------- | |
290 # Portably unset VAR. | |
291 as_fn_unset () | |
292 { | |
293 { eval $1=; unset $1;} | |
294 } | |
295 as_unset=as_fn_unset | |
296 | |
297 # as_fn_set_status STATUS | |
298 # ----------------------- | |
299 # Set $? to STATUS, without forking. | |
300 as_fn_set_status () | |
301 { | |
302 return $1 | |
303 } # as_fn_set_status | |
304 | |
305 # as_fn_exit STATUS | |
306 # ----------------- | |
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
308 as_fn_exit () | |
309 { | |
310 set +e | |
311 as_fn_set_status $1 | |
312 exit $1 | |
313 } # as_fn_exit | |
314 | |
315 # as_fn_mkdir_p | |
316 # ------------- | |
317 # Create "$as_dir" as a directory, including parents if necessary. | |
318 as_fn_mkdir_p () | |
319 { | |
320 | |
321 case $as_dir in #( | |
322 -*) as_dir=./$as_dir;; | |
323 esac | |
324 test -d "$as_dir" || eval $as_mkdir_p || { | |
325 as_dirs= | |
326 while :; do | |
327 case $as_dir in #( | |
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
329 *) as_qdir=$as_dir;; | |
330 esac | |
331 as_dirs="'$as_qdir' $as_dirs" | |
332 as_dir=`$as_dirname -- "$as_dir" || | |
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
334 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
335 X"$as_dir" : 'X\(//\)$' \| \ | |
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
337 $as_echo X"$as_dir" | | |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
339 s//\1/ | |
340 q | |
341 } | |
342 /^X\(\/\/\)[^/].*/{ | |
343 s//\1/ | |
344 q | |
345 } | |
346 /^X\(\/\/\)$/{ | |
347 s//\1/ | |
348 q | |
349 } | |
350 /^X\(\/\).*/{ | |
351 s//\1/ | |
352 q | |
353 } | |
354 s/.*/./; q'` | |
355 test -d "$as_dir" && break | |
356 done | |
357 test -z "$as_dirs" || eval "mkdir $as_dirs" | |
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
359 | |
360 | |
361 } # as_fn_mkdir_p | |
362 | |
363 # as_fn_executable_p FILE | |
364 # ----------------------- | |
365 # Test if FILE is an executable regular file. | |
366 as_fn_executable_p () | |
367 { | |
368 test -f "$1" && test -x "$1" | |
369 } # as_fn_executable_p | |
370 # as_fn_append VAR VALUE | |
371 # ---------------------- | |
372 # Append the text in VALUE to the end of the definition contained in VAR. Take | |
373 # advantage of any shell optimizations that allow amortized linear growth over | |
374 # repeated appends, instead of the typical quadratic growth present in naive | |
375 # implementations. | |
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
377 eval 'as_fn_append () | |
378 { | |
379 eval $1+=\$2 | |
380 }' | |
381 else | |
382 as_fn_append () | |
383 { | |
384 eval $1=\$$1\$2 | |
385 } | |
386 fi # as_fn_append | |
387 | |
388 # as_fn_arith ARG... | |
389 # ------------------ | |
390 # Perform arithmetic evaluation on the ARGs, and store the result in the | |
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
392 # must be portable across $(()) and expr. | |
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
394 eval 'as_fn_arith () | |
395 { | |
396 as_val=$(( $* )) | |
397 }' | |
398 else | |
399 as_fn_arith () | |
400 { | |
401 as_val=`expr "$@" || test $? -eq 1` | |
402 } | |
403 fi # as_fn_arith | |
404 | |
405 | |
406 # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
407 # ---------------------------------------- | |
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
410 # script with STATUS, using 1 if that was 0. | |
411 as_fn_error () | |
412 { | |
413 as_status=$1; test $as_status -eq 0 && as_status=1 | |
414 if test "$4"; then | |
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
417 fi | |
418 $as_echo "$as_me: error: $2" >&2 | |
419 as_fn_exit $as_status | |
420 } # as_fn_error | |
421 | |
422 if expr a : '\(a\)' >/dev/null 2>&1 && | |
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
424 as_expr=expr | |
425 else | |
426 as_expr=false | |
427 fi | |
428 | |
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
430 as_basename=basename | |
431 else | |
432 as_basename=false | |
433 fi | |
434 | |
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
436 as_dirname=dirname | |
437 else | |
438 as_dirname=false | |
439 fi | |
440 | |
441 as_me=`$as_basename -- "$0" || | |
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
443 X"$0" : 'X\(//\)$' \| \ | |
444 X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
445 $as_echo X/"$0" | | |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
447 s//\1/ | |
448 q | |
449 } | |
450 /^X\/\(\/\/\)$/{ | |
451 s//\1/ | |
452 q | |
453 } | |
454 /^X\/\(\/\).*/{ | |
455 s//\1/ | |
456 q | |
457 } | |
458 s/.*/./; q'` | |
459 | |
460 # Avoid depending upon Character Ranges. | |
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
464 as_cr_digits='0123456789' | |
465 as_cr_alnum=$as_cr_Letters$as_cr_digits | |
466 | |
467 | |
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
473 sed -n ' | |
474 p | |
475 /[$]LINENO/= | |
476 ' <$as_myself | | |
477 sed ' | |
478 s/[$]LINENO.*/&-/ | |
479 t lineno | |
480 b | |
481 :lineno | |
482 N | |
483 :loop | |
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
485 t loop | |
486 s/-\n.*// | |
487 ' >$as_me.lineno && | |
488 chmod +x "$as_me.lineno" || | |
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
490 | |
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have | |
492 # already done that, so ensure we don't try to do so again and fall | |
493 # in an infinite loop. This has already happened in practice. | |
494 _as_can_reexec=no; export _as_can_reexec | |
495 # Don't try to exec as it changes $[0], causing all sort of problems | |
496 # (the dirname of $[0] is not the place where we might find the | |
497 # original and so on. Autoconf is especially sensitive to this). | |
498 . "./$as_me.lineno" | |
499 # Exit status is that of the last command. | |
500 exit | |
501 } | |
502 | |
503 ECHO_C= ECHO_N= ECHO_T= | |
504 case `echo -n x` in #((((( | |
505 -n*) | |
506 case `echo 'xy\c'` in | |
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
508 xy) ECHO_C='\c';; | |
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
510 ECHO_T=' ';; | |
511 esac;; | |
512 *) | |
513 ECHO_N='-n';; | |
514 esac | |
515 | |
516 rm -f conf$$ conf$$.exe conf$$.file | |
517 if test -d conf$$.dir; then | |
518 rm -f conf$$.dir/conf$$.file | |
519 else | |
520 rm -f conf$$.dir | |
521 mkdir conf$$.dir 2>/dev/null | |
522 fi | |
523 if (echo >conf$$.file) 2>/dev/null; then | |
524 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
525 as_ln_s='ln -s' | |
526 # ... but there are two gotchas: | |
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
529 # In both cases, we have to default to `cp -pR'. | |
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
531 as_ln_s='cp -pR' | |
532 elif ln conf$$.file conf$$ 2>/dev/null; then | |
533 as_ln_s=ln | |
534 else | |
535 as_ln_s='cp -pR' | |
536 fi | |
537 else | |
538 as_ln_s='cp -pR' | |
539 fi | |
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
541 rmdir conf$$.dir 2>/dev/null | |
542 | |
543 if mkdir -p . 2>/dev/null; then | |
544 as_mkdir_p='mkdir -p "$as_dir"' | |
545 else | |
546 test -d ./-p && rmdir ./-p | |
547 as_mkdir_p=false | |
548 fi | |
549 | |
550 as_test_x='test -x' | |
551 as_executable_p=as_fn_executable_p | |
552 | |
553 # Sed expression to map a string onto a valid CPP name. | |
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
555 | |
556 # Sed expression to map a string onto a valid variable name. | |
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
558 | |
559 | |
560 test -n "$DJDIR" || exec 7<&0 </dev/null | |
561 exec 6>&1 | |
562 | |
563 # Name of the host. | |
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | |
565 # so uname gets run too. | |
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
567 | |
568 # | |
569 # Initializations. | |
570 # | |
571 ac_default_prefix=/usr/local | |
572 ac_clean_files= | |
573 ac_config_libobj_dir=. | |
574 LIBOBJS= | |
575 cross_compiling=no | |
576 subdirs= | |
577 MFLAGS= | |
578 MAKEFLAGS= | |
579 | |
580 # Identity of this package. | |
581 PACKAGE_NAME='Tony' | |
582 PACKAGE_TARNAME='tony' | |
583 PACKAGE_VERSION='0.0' | |
584 PACKAGE_STRING='Tony 0.0' | |
585 PACKAGE_BUGREPORT='cannam@all-day-breakfast.com' | |
586 PACKAGE_URL='' | |
587 | |
588 ac_unique_file="src/main.cpp" | |
589 # Factoring default headers for most tests. | |
590 ac_includes_default="\ | |
591 #include <stdio.h> | |
592 #ifdef HAVE_SYS_TYPES_H | |
593 # include <sys/types.h> | |
594 #endif | |
595 #ifdef HAVE_SYS_STAT_H | |
596 # include <sys/stat.h> | |
597 #endif | |
598 #ifdef STDC_HEADERS | |
599 # include <stdlib.h> | |
600 # include <stddef.h> | |
601 #else | |
602 # ifdef HAVE_STDLIB_H | |
603 # include <stdlib.h> | |
604 # endif | |
605 #endif | |
606 #ifdef HAVE_STRING_H | |
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
608 # include <memory.h> | |
609 # endif | |
610 # include <string.h> | |
611 #endif | |
612 #ifdef HAVE_STRINGS_H | |
613 # include <strings.h> | |
614 #endif | |
615 #ifdef HAVE_INTTYPES_H | |
616 # include <inttypes.h> | |
617 #endif | |
618 #ifdef HAVE_STDINT_H | |
619 # include <stdint.h> | |
620 #endif | |
621 #ifdef HAVE_UNISTD_H | |
622 # include <unistd.h> | |
623 #endif" | |
624 | |
625 enable_option_checking=no | |
626 ac_subst_vars='LTLIBOBJS | |
627 LIBOBJS | |
628 subdirs | |
629 QMAKE_CONFIG | |
630 HAVES | |
631 CXXFLAGS_MINIMAL | |
632 CUT | |
633 SHA1SUM | |
634 MAKEDEPEND | |
635 XARGS | |
636 PERL | |
637 X11_LIBS | |
638 X11_CFLAGS | |
639 id3tag_LIBS | |
640 id3tag_CFLAGS | |
641 mad_LIBS | |
642 mad_CFLAGS | |
643 fishsound_LIBS | |
644 fishsound_CFLAGS | |
645 oggz_LIBS | |
646 oggz_CFLAGS | |
647 lrdf_LIBS | |
648 lrdf_CFLAGS | |
649 libpulse_LIBS | |
650 libpulse_CFLAGS | |
651 JACK_LIBS | |
652 JACK_CFLAGS | |
653 portaudio_2_0_LIBS | |
654 portaudio_2_0_CFLAGS | |
655 liblo_LIBS | |
656 liblo_CFLAGS | |
657 dataquay_LIBS | |
658 dataquay_CFLAGS | |
659 rubberband_LIBS | |
660 rubberband_CFLAGS | |
661 vamphostsdk_LIBS | |
662 vamphostsdk_CFLAGS | |
663 vamp_LIBS | |
664 vamp_CFLAGS | |
665 samplerate_LIBS | |
666 samplerate_CFLAGS | |
667 sndfile_LIBS | |
668 sndfile_CFLAGS | |
669 fftw3f_LIBS | |
670 fftw3f_CFLAGS | |
671 fftw3_LIBS | |
672 fftw3_CFLAGS | |
673 bz2_LIBS | |
674 bz2_CFLAGS | |
675 QMAKE | |
676 PKG_CONFIG_LIBDIR | |
677 PKG_CONFIG_PATH | |
678 PKG_CONFIG | |
679 EGREP | |
680 GREP | |
681 CXXCPP | |
682 MKDIR_P | |
683 INSTALL_DATA | |
684 INSTALL_SCRIPT | |
685 INSTALL_PROGRAM | |
686 ac_ct_CXX | |
687 CXXFLAGS | |
688 CXX | |
689 OBJEXT | |
690 EXEEXT | |
691 ac_ct_CC | |
692 CPPFLAGS | |
693 LDFLAGS | |
694 CFLAGS | |
695 CC | |
696 target_alias | |
697 host_alias | |
698 build_alias | |
699 LIBS | |
700 ECHO_T | |
701 ECHO_N | |
702 ECHO_C | |
703 DEFS | |
704 mandir | |
705 localedir | |
706 libdir | |
707 psdir | |
708 pdfdir | |
709 dvidir | |
710 htmldir | |
711 infodir | |
712 docdir | |
713 oldincludedir | |
714 includedir | |
715 localstatedir | |
716 sharedstatedir | |
717 sysconfdir | |
718 datadir | |
719 datarootdir | |
720 libexecdir | |
721 sbindir | |
722 bindir | |
723 program_transform_name | |
724 prefix | |
725 exec_prefix | |
726 PACKAGE_URL | |
727 PACKAGE_BUGREPORT | |
728 PACKAGE_STRING | |
729 PACKAGE_VERSION | |
730 PACKAGE_TARNAME | |
731 PACKAGE_NAME | |
732 PATH_SEPARATOR | |
733 SHELL' | |
734 ac_subst_files='' | |
735 ac_user_opts=' | |
736 enable_option_checking | |
737 enable_debug | |
738 ' | |
739 ac_precious_vars='build_alias | |
740 host_alias | |
741 target_alias | |
742 CC | |
743 CFLAGS | |
744 LDFLAGS | |
745 LIBS | |
746 CPPFLAGS | |
747 CXX | |
748 CXXFLAGS | |
749 CCC | |
750 CXXCPP | |
751 PKG_CONFIG | |
752 PKG_CONFIG_PATH | |
753 PKG_CONFIG_LIBDIR | |
754 bz2_CFLAGS | |
755 bz2_LIBS | |
756 fftw3_CFLAGS | |
757 fftw3_LIBS | |
758 fftw3f_CFLAGS | |
759 fftw3f_LIBS | |
760 sndfile_CFLAGS | |
761 sndfile_LIBS | |
762 samplerate_CFLAGS | |
763 samplerate_LIBS | |
764 vamp_CFLAGS | |
765 vamp_LIBS | |
766 vamphostsdk_CFLAGS | |
767 vamphostsdk_LIBS | |
768 rubberband_CFLAGS | |
769 rubberband_LIBS | |
770 dataquay_CFLAGS | |
771 dataquay_LIBS | |
772 liblo_CFLAGS | |
773 liblo_LIBS | |
774 portaudio_2_0_CFLAGS | |
775 portaudio_2_0_LIBS | |
776 JACK_CFLAGS | |
777 JACK_LIBS | |
778 libpulse_CFLAGS | |
779 libpulse_LIBS | |
780 lrdf_CFLAGS | |
781 lrdf_LIBS | |
782 oggz_CFLAGS | |
783 oggz_LIBS | |
784 fishsound_CFLAGS | |
785 fishsound_LIBS | |
786 mad_CFLAGS | |
787 mad_LIBS | |
788 id3tag_CFLAGS | |
789 id3tag_LIBS | |
790 X11_CFLAGS | |
791 X11_LIBS' | |
792 ac_subdirs_all='svcore svgui svapp' | |
793 | |
794 # Initialize some variables set by options. | |
795 ac_init_help= | |
796 ac_init_version=false | |
797 ac_unrecognized_opts= | |
798 ac_unrecognized_sep= | |
799 # The variables have the same names as the options, with | |
800 # dashes changed to underlines. | |
801 cache_file=/dev/null | |
802 exec_prefix=NONE | |
803 no_create= | |
804 no_recursion= | |
805 prefix=NONE | |
806 program_prefix=NONE | |
807 program_suffix=NONE | |
808 program_transform_name=s,x,x, | |
809 silent= | |
810 site= | |
811 srcdir= | |
812 verbose= | |
813 x_includes=NONE | |
814 x_libraries=NONE | |
815 | |
816 # Installation directory options. | |
817 # These are left unexpanded so users can "make install exec_prefix=/foo" | |
818 # and all the variables that are supposed to be based on exec_prefix | |
819 # by default will actually change. | |
820 # Use braces instead of parens because sh, perl, etc. also accept them. | |
821 # (The list follows the same order as the GNU Coding Standards.) | |
822 bindir='${exec_prefix}/bin' | |
823 sbindir='${exec_prefix}/sbin' | |
824 libexecdir='${exec_prefix}/libexec' | |
825 datarootdir='${prefix}/share' | |
826 datadir='${datarootdir}' | |
827 sysconfdir='${prefix}/etc' | |
828 sharedstatedir='${prefix}/com' | |
829 localstatedir='${prefix}/var' | |
830 includedir='${prefix}/include' | |
831 oldincludedir='/usr/include' | |
832 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
833 infodir='${datarootdir}/info' | |
834 htmldir='${docdir}' | |
835 dvidir='${docdir}' | |
836 pdfdir='${docdir}' | |
837 psdir='${docdir}' | |
838 libdir='${exec_prefix}/lib' | |
839 localedir='${datarootdir}/locale' | |
840 mandir='${datarootdir}/man' | |
841 | |
842 ac_prev= | |
843 ac_dashdash= | |
844 for ac_option | |
845 do | |
846 # If the previous option needs an argument, assign it. | |
847 if test -n "$ac_prev"; then | |
848 eval $ac_prev=\$ac_option | |
849 ac_prev= | |
850 continue | |
851 fi | |
852 | |
853 case $ac_option in | |
854 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
855 *=) ac_optarg= ;; | |
856 *) ac_optarg=yes ;; | |
857 esac | |
858 | |
859 # Accept the important Cygnus configure options, so we can diagnose typos. | |
860 | |
861 case $ac_dashdash$ac_option in | |
862 --) | |
863 ac_dashdash=yes ;; | |
864 | |
865 -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
866 ac_prev=bindir ;; | |
867 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
868 bindir=$ac_optarg ;; | |
869 | |
870 -build | --build | --buil | --bui | --bu) | |
871 ac_prev=build_alias ;; | |
872 -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
873 build_alias=$ac_optarg ;; | |
874 | |
875 -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
876 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
877 ac_prev=cache_file ;; | |
878 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
879 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
880 cache_file=$ac_optarg ;; | |
881 | |
882 --config-cache | -C) | |
883 cache_file=config.cache ;; | |
884 | |
885 -datadir | --datadir | --datadi | --datad) | |
886 ac_prev=datadir ;; | |
887 -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
888 datadir=$ac_optarg ;; | |
889 | |
890 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
891 | --dataroo | --dataro | --datar) | |
892 ac_prev=datarootdir ;; | |
893 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
894 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
895 datarootdir=$ac_optarg ;; | |
896 | |
897 -disable-* | --disable-*) | |
898 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
899 # Reject names that are not valid shell variable names. | |
900 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
901 as_fn_error $? "invalid feature name: $ac_useropt" | |
902 ac_useropt_orig=$ac_useropt | |
903 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
904 case $ac_user_opts in | |
905 *" | |
906 "enable_$ac_useropt" | |
907 "*) ;; | |
908 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
909 ac_unrecognized_sep=', ';; | |
910 esac | |
911 eval enable_$ac_useropt=no ;; | |
912 | |
913 -docdir | --docdir | --docdi | --doc | --do) | |
914 ac_prev=docdir ;; | |
915 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
916 docdir=$ac_optarg ;; | |
917 | |
918 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
919 ac_prev=dvidir ;; | |
920 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
921 dvidir=$ac_optarg ;; | |
922 | |
923 -enable-* | --enable-*) | |
924 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
925 # Reject names that are not valid shell variable names. | |
926 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
927 as_fn_error $? "invalid feature name: $ac_useropt" | |
928 ac_useropt_orig=$ac_useropt | |
929 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
930 case $ac_user_opts in | |
931 *" | |
932 "enable_$ac_useropt" | |
933 "*) ;; | |
934 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
935 ac_unrecognized_sep=', ';; | |
936 esac | |
937 eval enable_$ac_useropt=\$ac_optarg ;; | |
938 | |
939 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
940 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
941 | --exec | --exe | --ex) | |
942 ac_prev=exec_prefix ;; | |
943 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
944 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
945 | --exec=* | --exe=* | --ex=*) | |
946 exec_prefix=$ac_optarg ;; | |
947 | |
948 -gas | --gas | --ga | --g) | |
949 # Obsolete; use --with-gas. | |
950 with_gas=yes ;; | |
951 | |
952 -help | --help | --hel | --he | -h) | |
953 ac_init_help=long ;; | |
954 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
955 ac_init_help=recursive ;; | |
956 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
957 ac_init_help=short ;; | |
958 | |
959 -host | --host | --hos | --ho) | |
960 ac_prev=host_alias ;; | |
961 -host=* | --host=* | --hos=* | --ho=*) | |
962 host_alias=$ac_optarg ;; | |
963 | |
964 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
965 ac_prev=htmldir ;; | |
966 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
967 | --ht=*) | |
968 htmldir=$ac_optarg ;; | |
969 | |
970 -includedir | --includedir | --includedi | --included | --include \ | |
971 | --includ | --inclu | --incl | --inc) | |
972 ac_prev=includedir ;; | |
973 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
974 | --includ=* | --inclu=* | --incl=* | --inc=*) | |
975 includedir=$ac_optarg ;; | |
976 | |
977 -infodir | --infodir | --infodi | --infod | --info | --inf) | |
978 ac_prev=infodir ;; | |
979 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
980 infodir=$ac_optarg ;; | |
981 | |
982 -libdir | --libdir | --libdi | --libd) | |
983 ac_prev=libdir ;; | |
984 -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
985 libdir=$ac_optarg ;; | |
986 | |
987 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
988 | --libexe | --libex | --libe) | |
989 ac_prev=libexecdir ;; | |
990 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
991 | --libexe=* | --libex=* | --libe=*) | |
992 libexecdir=$ac_optarg ;; | |
993 | |
994 -localedir | --localedir | --localedi | --localed | --locale) | |
995 ac_prev=localedir ;; | |
996 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
997 localedir=$ac_optarg ;; | |
998 | |
999 -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1000 | --localstate | --localstat | --localsta | --localst | --locals) | |
1001 ac_prev=localstatedir ;; | |
1002 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1003 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1004 localstatedir=$ac_optarg ;; | |
1005 | |
1006 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1007 ac_prev=mandir ;; | |
1008 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1009 mandir=$ac_optarg ;; | |
1010 | |
1011 -nfp | --nfp | --nf) | |
1012 # Obsolete; use --without-fp. | |
1013 with_fp=no ;; | |
1014 | |
1015 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1016 | --no-cr | --no-c | -n) | |
1017 no_create=yes ;; | |
1018 | |
1019 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1020 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1021 no_recursion=yes ;; | |
1022 | |
1023 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1024 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1025 | --oldin | --oldi | --old | --ol | --o) | |
1026 ac_prev=oldincludedir ;; | |
1027 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1028 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1029 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1030 oldincludedir=$ac_optarg ;; | |
1031 | |
1032 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1033 ac_prev=prefix ;; | |
1034 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1035 prefix=$ac_optarg ;; | |
1036 | |
1037 -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1038 | --program-pre | --program-pr | --program-p) | |
1039 ac_prev=program_prefix ;; | |
1040 -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1041 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1042 program_prefix=$ac_optarg ;; | |
1043 | |
1044 -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1045 | --program-suf | --program-su | --program-s) | |
1046 ac_prev=program_suffix ;; | |
1047 -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1048 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1049 program_suffix=$ac_optarg ;; | |
1050 | |
1051 -program-transform-name | --program-transform-name \ | |
1052 | --program-transform-nam | --program-transform-na \ | |
1053 | --program-transform-n | --program-transform- \ | |
1054 | --program-transform | --program-transfor \ | |
1055 | --program-transfo | --program-transf \ | |
1056 | --program-trans | --program-tran \ | |
1057 | --progr-tra | --program-tr | --program-t) | |
1058 ac_prev=program_transform_name ;; | |
1059 -program-transform-name=* | --program-transform-name=* \ | |
1060 | --program-transform-nam=* | --program-transform-na=* \ | |
1061 | --program-transform-n=* | --program-transform-=* \ | |
1062 | --program-transform=* | --program-transfor=* \ | |
1063 | --program-transfo=* | --program-transf=* \ | |
1064 | --program-trans=* | --program-tran=* \ | |
1065 | --progr-tra=* | --program-tr=* | --program-t=*) | |
1066 program_transform_name=$ac_optarg ;; | |
1067 | |
1068 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1069 ac_prev=pdfdir ;; | |
1070 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1071 pdfdir=$ac_optarg ;; | |
1072 | |
1073 -psdir | --psdir | --psdi | --psd | --ps) | |
1074 ac_prev=psdir ;; | |
1075 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1076 psdir=$ac_optarg ;; | |
1077 | |
1078 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1079 | -silent | --silent | --silen | --sile | --sil) | |
1080 silent=yes ;; | |
1081 | |
1082 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1083 ac_prev=sbindir ;; | |
1084 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1085 | --sbi=* | --sb=*) | |
1086 sbindir=$ac_optarg ;; | |
1087 | |
1088 -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1089 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1090 | --sharedst | --shareds | --shared | --share | --shar \ | |
1091 | --sha | --sh) | |
1092 ac_prev=sharedstatedir ;; | |
1093 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1094 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1095 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1096 | --sha=* | --sh=*) | |
1097 sharedstatedir=$ac_optarg ;; | |
1098 | |
1099 -site | --site | --sit) | |
1100 ac_prev=site ;; | |
1101 -site=* | --site=* | --sit=*) | |
1102 site=$ac_optarg ;; | |
1103 | |
1104 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1105 ac_prev=srcdir ;; | |
1106 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1107 srcdir=$ac_optarg ;; | |
1108 | |
1109 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1110 | --syscon | --sysco | --sysc | --sys | --sy) | |
1111 ac_prev=sysconfdir ;; | |
1112 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1113 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1114 sysconfdir=$ac_optarg ;; | |
1115 | |
1116 -target | --target | --targe | --targ | --tar | --ta | --t) | |
1117 ac_prev=target_alias ;; | |
1118 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1119 target_alias=$ac_optarg ;; | |
1120 | |
1121 -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1122 verbose=yes ;; | |
1123 | |
1124 -version | --version | --versio | --versi | --vers | -V) | |
1125 ac_init_version=: ;; | |
1126 | |
1127 -with-* | --with-*) | |
1128 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1129 # Reject names that are not valid shell variable names. | |
1130 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1131 as_fn_error $? "invalid package name: $ac_useropt" | |
1132 ac_useropt_orig=$ac_useropt | |
1133 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1134 case $ac_user_opts in | |
1135 *" | |
1136 "with_$ac_useropt" | |
1137 "*) ;; | |
1138 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1139 ac_unrecognized_sep=', ';; | |
1140 esac | |
1141 eval with_$ac_useropt=\$ac_optarg ;; | |
1142 | |
1143 -without-* | --without-*) | |
1144 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1145 # Reject names that are not valid shell variable names. | |
1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1147 as_fn_error $? "invalid package name: $ac_useropt" | |
1148 ac_useropt_orig=$ac_useropt | |
1149 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1150 case $ac_user_opts in | |
1151 *" | |
1152 "with_$ac_useropt" | |
1153 "*) ;; | |
1154 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1155 ac_unrecognized_sep=', ';; | |
1156 esac | |
1157 eval with_$ac_useropt=no ;; | |
1158 | |
1159 --x) | |
1160 # Obsolete; use --with-x. | |
1161 with_x=yes ;; | |
1162 | |
1163 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1164 | --x-incl | --x-inc | --x-in | --x-i) | |
1165 ac_prev=x_includes ;; | |
1166 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1167 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1168 x_includes=$ac_optarg ;; | |
1169 | |
1170 -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1171 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1172 ac_prev=x_libraries ;; | |
1173 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1174 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1175 x_libraries=$ac_optarg ;; | |
1176 | |
1177 -*) as_fn_error $? "unrecognized option: \`$ac_option' | |
1178 Try \`$0 --help' for more information" | |
1179 ;; | |
1180 | |
1181 *=*) | |
1182 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1183 # Reject names that are not valid shell variable names. | |
1184 case $ac_envvar in #( | |
1185 '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1186 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1187 esac | |
1188 eval $ac_envvar=\$ac_optarg | |
1189 export $ac_envvar ;; | |
1190 | |
1191 *) | |
1192 # FIXME: should be removed in autoconf 3.0. | |
1193 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1194 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1195 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1196 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | |
1197 ;; | |
1198 | |
1199 esac | |
1200 done | |
1201 | |
1202 if test -n "$ac_prev"; then | |
1203 ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1204 as_fn_error $? "missing argument to $ac_option" | |
1205 fi | |
1206 | |
1207 if test -n "$ac_unrecognized_opts"; then | |
1208 case $enable_option_checking in | |
1209 no) ;; | |
1210 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | |
1211 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1212 esac | |
1213 fi | |
1214 | |
1215 # Check all directory arguments for consistency. | |
1216 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1217 datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1218 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1219 libdir localedir mandir | |
1220 do | |
1221 eval ac_val=\$$ac_var | |
1222 # Remove trailing slashes. | |
1223 case $ac_val in | |
1224 */ ) | |
1225 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1226 eval $ac_var=\$ac_val;; | |
1227 esac | |
1228 # Be sure to have absolute directory names. | |
1229 case $ac_val in | |
1230 [\\/$]* | ?:[\\/]* ) continue;; | |
1231 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1232 esac | |
1233 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | |
1234 done | |
1235 | |
1236 # There might be people who depend on the old broken behavior: `$host' | |
1237 # used to hold the argument of --host etc. | |
1238 # FIXME: To remove some day. | |
1239 build=$build_alias | |
1240 host=$host_alias | |
1241 target=$target_alias | |
1242 | |
1243 # FIXME: To remove some day. | |
1244 if test "x$host_alias" != x; then | |
1245 if test "x$build_alias" = x; then | |
1246 cross_compiling=maybe | |
1247 elif test "x$build_alias" != "x$host_alias"; then | |
1248 cross_compiling=yes | |
1249 fi | |
1250 fi | |
1251 | |
1252 ac_tool_prefix= | |
1253 test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1254 | |
1255 test "$silent" = yes && exec 6>/dev/null | |
1256 | |
1257 | |
1258 ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1259 ac_ls_di=`ls -di .` && | |
1260 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1261 as_fn_error $? "working directory cannot be determined" | |
1262 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1263 as_fn_error $? "pwd does not report name of working directory" | |
1264 | |
1265 | |
1266 # Find the source files, if location was not specified. | |
1267 if test -z "$srcdir"; then | |
1268 ac_srcdir_defaulted=yes | |
1269 # Try the directory containing this script, then the parent directory. | |
1270 ac_confdir=`$as_dirname -- "$as_myself" || | |
1271 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1272 X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1273 X"$as_myself" : 'X\(//\)$' \| \ | |
1274 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1275 $as_echo X"$as_myself" | | |
1276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1277 s//\1/ | |
1278 q | |
1279 } | |
1280 /^X\(\/\/\)[^/].*/{ | |
1281 s//\1/ | |
1282 q | |
1283 } | |
1284 /^X\(\/\/\)$/{ | |
1285 s//\1/ | |
1286 q | |
1287 } | |
1288 /^X\(\/\).*/{ | |
1289 s//\1/ | |
1290 q | |
1291 } | |
1292 s/.*/./; q'` | |
1293 srcdir=$ac_confdir | |
1294 if test ! -r "$srcdir/$ac_unique_file"; then | |
1295 srcdir=.. | |
1296 fi | |
1297 else | |
1298 ac_srcdir_defaulted=no | |
1299 fi | |
1300 if test ! -r "$srcdir/$ac_unique_file"; then | |
1301 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1302 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | |
1303 fi | |
1304 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1305 ac_abs_confdir=`( | |
1306 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | |
1307 pwd)` | |
1308 # When building in place, set srcdir=. | |
1309 if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1310 srcdir=. | |
1311 fi | |
1312 # Remove unnecessary trailing slashes from srcdir. | |
1313 # Double slashes in file names in object file debugging info | |
1314 # mess up M-x gdb in Emacs. | |
1315 case $srcdir in | |
1316 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1317 esac | |
1318 for ac_var in $ac_precious_vars; do | |
1319 eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1320 eval ac_env_${ac_var}_value=\$${ac_var} | |
1321 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1322 eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1323 done | |
1324 | |
1325 # | |
1326 # Report the --help message. | |
1327 # | |
1328 if test "$ac_init_help" = "long"; then | |
1329 # Omit some internal or obsolete options to make the list less imposing. | |
1330 # This message is too long to be a string in the A/UX 3.1 sh. | |
1331 cat <<_ACEOF | |
1332 \`configure' configures Tony 0.0 to adapt to many kinds of systems. | |
1333 | |
1334 Usage: $0 [OPTION]... [VAR=VALUE]... | |
1335 | |
1336 To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1337 VAR=VALUE. See below for descriptions of some of the useful variables. | |
1338 | |
1339 Defaults for the options are specified in brackets. | |
1340 | |
1341 Configuration: | |
1342 -h, --help display this help and exit | |
1343 --help=short display options specific to this package | |
1344 --help=recursive display the short help of all the included packages | |
1345 -V, --version display version information and exit | |
1346 -q, --quiet, --silent do not print \`checking ...' messages | |
1347 --cache-file=FILE cache test results in FILE [disabled] | |
1348 -C, --config-cache alias for \`--cache-file=config.cache' | |
1349 -n, --no-create do not create output files | |
1350 --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1351 | |
1352 Installation directories: | |
1353 --prefix=PREFIX install architecture-independent files in PREFIX | |
1354 [$ac_default_prefix] | |
1355 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1356 [PREFIX] | |
1357 | |
1358 By default, \`make install' will install all the files in | |
1359 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1360 an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1361 for instance \`--prefix=\$HOME'. | |
1362 | |
1363 For better control, use the options below. | |
1364 | |
1365 Fine tuning of the installation directories: | |
1366 --bindir=DIR user executables [EPREFIX/bin] | |
1367 --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1368 --libexecdir=DIR program executables [EPREFIX/libexec] | |
1369 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1370 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1371 --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1372 --libdir=DIR object code libraries [EPREFIX/lib] | |
1373 --includedir=DIR C header files [PREFIX/include] | |
1374 --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1375 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1376 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1377 --infodir=DIR info documentation [DATAROOTDIR/info] | |
1378 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1379 --mandir=DIR man documentation [DATAROOTDIR/man] | |
1380 --docdir=DIR documentation root [DATAROOTDIR/doc/tony] | |
1381 --htmldir=DIR html documentation [DOCDIR] | |
1382 --dvidir=DIR dvi documentation [DOCDIR] | |
1383 --pdfdir=DIR pdf documentation [DOCDIR] | |
1384 --psdir=DIR ps documentation [DOCDIR] | |
1385 _ACEOF | |
1386 | |
1387 cat <<\_ACEOF | |
1388 _ACEOF | |
1389 fi | |
1390 | |
1391 if test -n "$ac_init_help"; then | |
1392 case $ac_init_help in | |
1393 short | recursive ) echo "Configuration of Tony 0.0:";; | |
1394 esac | |
1395 cat <<\_ACEOF | |
1396 | |
1397 Optional Features: | |
1398 --disable-option-checking ignore unrecognized --enable/--with options | |
1399 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1400 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1401 --enable-debug enable debug support [default=no] | |
1402 | |
1403 Some influential environment variables: | |
1404 CC C compiler command | |
1405 CFLAGS C compiler flags | |
1406 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1407 nonstandard directory <lib dir> | |
1408 LIBS libraries to pass to the linker, e.g. -l<library> | |
1409 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | |
1410 you have headers in a nonstandard directory <include dir> | |
1411 CXX C++ compiler command | |
1412 CXXFLAGS C++ compiler flags | |
1413 CXXCPP C++ preprocessor | |
1414 PKG_CONFIG path to pkg-config utility | |
1415 PKG_CONFIG_PATH | |
1416 directories to add to pkg-config's search path | |
1417 PKG_CONFIG_LIBDIR | |
1418 path overriding pkg-config's built-in search path | |
1419 bz2_CFLAGS C compiler flags for bz2, overriding pkg-config | |
1420 bz2_LIBS linker flags for bz2, overriding pkg-config | |
1421 fftw3_CFLAGS | |
1422 C compiler flags for fftw3, overriding pkg-config | |
1423 fftw3_LIBS linker flags for fftw3, overriding pkg-config | |
1424 fftw3f_CFLAGS | |
1425 C compiler flags for fftw3f, overriding pkg-config | |
1426 fftw3f_LIBS linker flags for fftw3f, overriding pkg-config | |
1427 sndfile_CFLAGS | |
1428 C compiler flags for sndfile, overriding pkg-config | |
1429 sndfile_LIBS | |
1430 linker flags for sndfile, overriding pkg-config | |
1431 samplerate_CFLAGS | |
1432 C compiler flags for samplerate, overriding pkg-config | |
1433 samplerate_LIBS | |
1434 linker flags for samplerate, overriding pkg-config | |
1435 vamp_CFLAGS C compiler flags for vamp, overriding pkg-config | |
1436 vamp_LIBS linker flags for vamp, overriding pkg-config | |
1437 vamphostsdk_CFLAGS | |
1438 C compiler flags for vamphostsdk, overriding pkg-config | |
1439 vamphostsdk_LIBS | |
1440 linker flags for vamphostsdk, overriding pkg-config | |
1441 rubberband_CFLAGS | |
1442 C compiler flags for rubberband, overriding pkg-config | |
1443 rubberband_LIBS | |
1444 linker flags for rubberband, overriding pkg-config | |
1445 dataquay_CFLAGS | |
1446 C compiler flags for dataquay, overriding pkg-config | |
1447 dataquay_LIBS | |
1448 linker flags for dataquay, overriding pkg-config | |
1449 liblo_CFLAGS | |
1450 C compiler flags for liblo, overriding pkg-config | |
1451 liblo_LIBS linker flags for liblo, overriding pkg-config | |
1452 portaudio_2_0_CFLAGS | |
1453 C compiler flags for portaudio_2_0, overriding pkg-config | |
1454 portaudio_2_0_LIBS | |
1455 linker flags for portaudio_2_0, overriding pkg-config | |
1456 JACK_CFLAGS C compiler flags for JACK, overriding pkg-config | |
1457 JACK_LIBS linker flags for JACK, overriding pkg-config | |
1458 libpulse_CFLAGS | |
1459 C compiler flags for libpulse, overriding pkg-config | |
1460 libpulse_LIBS | |
1461 linker flags for libpulse, overriding pkg-config | |
1462 lrdf_CFLAGS C compiler flags for lrdf, overriding pkg-config | |
1463 lrdf_LIBS linker flags for lrdf, overriding pkg-config | |
1464 oggz_CFLAGS C compiler flags for oggz, overriding pkg-config | |
1465 oggz_LIBS linker flags for oggz, overriding pkg-config | |
1466 fishsound_CFLAGS | |
1467 C compiler flags for fishsound, overriding pkg-config | |
1468 fishsound_LIBS | |
1469 linker flags for fishsound, overriding pkg-config | |
1470 mad_CFLAGS C compiler flags for mad, overriding pkg-config | |
1471 mad_LIBS linker flags for mad, overriding pkg-config | |
1472 id3tag_CFLAGS | |
1473 C compiler flags for id3tag, overriding pkg-config | |
1474 id3tag_LIBS linker flags for id3tag, overriding pkg-config | |
1475 X11_CFLAGS C compiler flags for X11, overriding pkg-config | |
1476 X11_LIBS linker flags for X11, overriding pkg-config | |
1477 | |
1478 Use these variables to override the choices made by `configure' or to help | |
1479 it to find libraries and programs with nonstandard names/locations. | |
1480 | |
1481 Report bugs to <cannam@all-day-breakfast.com>. | |
1482 _ACEOF | |
1483 ac_status=$? | |
1484 fi | |
1485 | |
1486 if test "$ac_init_help" = "recursive"; then | |
1487 # If there are subdirs, report their specific --help. | |
1488 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1489 test -d "$ac_dir" || | |
1490 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1491 continue | |
1492 ac_builddir=. | |
1493 | |
1494 case "$ac_dir" in | |
1495 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1496 *) | |
1497 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1498 # A ".." for each directory in $ac_dir_suffix. | |
1499 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1500 case $ac_top_builddir_sub in | |
1501 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1502 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1503 esac ;; | |
1504 esac | |
1505 ac_abs_top_builddir=$ac_pwd | |
1506 ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1507 # for backward compatibility: | |
1508 ac_top_builddir=$ac_top_build_prefix | |
1509 | |
1510 case $srcdir in | |
1511 .) # We are building in place. | |
1512 ac_srcdir=. | |
1513 ac_top_srcdir=$ac_top_builddir_sub | |
1514 ac_abs_top_srcdir=$ac_pwd ;; | |
1515 [\\/]* | ?:[\\/]* ) # Absolute name. | |
1516 ac_srcdir=$srcdir$ac_dir_suffix; | |
1517 ac_top_srcdir=$srcdir | |
1518 ac_abs_top_srcdir=$srcdir ;; | |
1519 *) # Relative name. | |
1520 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1521 ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1522 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1523 esac | |
1524 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1525 | |
1526 cd "$ac_dir" || { ac_status=$?; continue; } | |
1527 # Check for guested configure. | |
1528 if test -f "$ac_srcdir/configure.gnu"; then | |
1529 echo && | |
1530 $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1531 elif test -f "$ac_srcdir/configure"; then | |
1532 echo && | |
1533 $SHELL "$ac_srcdir/configure" --help=recursive | |
1534 else | |
1535 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1536 fi || ac_status=$? | |
1537 cd "$ac_pwd" || { ac_status=$?; break; } | |
1538 done | |
1539 fi | |
1540 | |
1541 test -n "$ac_init_help" && exit $ac_status | |
1542 if $ac_init_version; then | |
1543 cat <<\_ACEOF | |
1544 Tony configure 0.0 | |
1545 generated by GNU Autoconf 2.69 | |
1546 | |
1547 Copyright (C) 2012 Free Software Foundation, Inc. | |
1548 This configure script is free software; the Free Software Foundation | |
1549 gives unlimited permission to copy, distribute and modify it. | |
1550 _ACEOF | |
1551 exit | |
1552 fi | |
1553 | |
1554 ## ------------------------ ## | |
1555 ## Autoconf initialization. ## | |
1556 ## ------------------------ ## | |
1557 | |
1558 # ac_fn_c_try_compile LINENO | |
1559 # -------------------------- | |
1560 # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1561 ac_fn_c_try_compile () | |
1562 { | |
1563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1564 rm -f conftest.$ac_objext | |
1565 if { { ac_try="$ac_compile" | |
1566 case "(($ac_try" in | |
1567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1568 *) ac_try_echo=$ac_try;; | |
1569 esac | |
1570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1571 $as_echo "$ac_try_echo"; } >&5 | |
1572 (eval "$ac_compile") 2>conftest.err | |
1573 ac_status=$? | |
1574 if test -s conftest.err; then | |
1575 grep -v '^ *+' conftest.err >conftest.er1 | |
1576 cat conftest.er1 >&5 | |
1577 mv -f conftest.er1 conftest.err | |
1578 fi | |
1579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1580 test $ac_status = 0; } && { | |
1581 test -z "$ac_c_werror_flag" || | |
1582 test ! -s conftest.err | |
1583 } && test -s conftest.$ac_objext; then : | |
1584 ac_retval=0 | |
1585 else | |
1586 $as_echo "$as_me: failed program was:" >&5 | |
1587 sed 's/^/| /' conftest.$ac_ext >&5 | |
1588 | |
1589 ac_retval=1 | |
1590 fi | |
1591 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1592 as_fn_set_status $ac_retval | |
1593 | |
1594 } # ac_fn_c_try_compile | |
1595 | |
1596 # ac_fn_cxx_try_compile LINENO | |
1597 # ---------------------------- | |
1598 # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1599 ac_fn_cxx_try_compile () | |
1600 { | |
1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1602 rm -f conftest.$ac_objext | |
1603 if { { ac_try="$ac_compile" | |
1604 case "(($ac_try" in | |
1605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1606 *) ac_try_echo=$ac_try;; | |
1607 esac | |
1608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1609 $as_echo "$ac_try_echo"; } >&5 | |
1610 (eval "$ac_compile") 2>conftest.err | |
1611 ac_status=$? | |
1612 if test -s conftest.err; then | |
1613 grep -v '^ *+' conftest.err >conftest.er1 | |
1614 cat conftest.er1 >&5 | |
1615 mv -f conftest.er1 conftest.err | |
1616 fi | |
1617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1618 test $ac_status = 0; } && { | |
1619 test -z "$ac_cxx_werror_flag" || | |
1620 test ! -s conftest.err | |
1621 } && test -s conftest.$ac_objext; then : | |
1622 ac_retval=0 | |
1623 else | |
1624 $as_echo "$as_me: failed program was:" >&5 | |
1625 sed 's/^/| /' conftest.$ac_ext >&5 | |
1626 | |
1627 ac_retval=1 | |
1628 fi | |
1629 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1630 as_fn_set_status $ac_retval | |
1631 | |
1632 } # ac_fn_cxx_try_compile | |
1633 | |
1634 # ac_fn_cxx_try_cpp LINENO | |
1635 # ------------------------ | |
1636 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1637 ac_fn_cxx_try_cpp () | |
1638 { | |
1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1640 if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1641 case "(($ac_try" in | |
1642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1643 *) ac_try_echo=$ac_try;; | |
1644 esac | |
1645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1646 $as_echo "$ac_try_echo"; } >&5 | |
1647 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1648 ac_status=$? | |
1649 if test -s conftest.err; then | |
1650 grep -v '^ *+' conftest.err >conftest.er1 | |
1651 cat conftest.er1 >&5 | |
1652 mv -f conftest.er1 conftest.err | |
1653 fi | |
1654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1655 test $ac_status = 0; } > conftest.i && { | |
1656 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
1657 test ! -s conftest.err | |
1658 }; then : | |
1659 ac_retval=0 | |
1660 else | |
1661 $as_echo "$as_me: failed program was:" >&5 | |
1662 sed 's/^/| /' conftest.$ac_ext >&5 | |
1663 | |
1664 ac_retval=1 | |
1665 fi | |
1666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1667 as_fn_set_status $ac_retval | |
1668 | |
1669 } # ac_fn_cxx_try_cpp | |
1670 | |
1671 # ac_fn_cxx_try_run LINENO | |
1672 # ------------------------ | |
1673 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1674 # that executables *can* be run. | |
1675 ac_fn_cxx_try_run () | |
1676 { | |
1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1678 if { { ac_try="$ac_link" | |
1679 case "(($ac_try" in | |
1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1681 *) ac_try_echo=$ac_try;; | |
1682 esac | |
1683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1684 $as_echo "$ac_try_echo"; } >&5 | |
1685 (eval "$ac_link") 2>&5 | |
1686 ac_status=$? | |
1687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1688 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1689 { { case "(($ac_try" in | |
1690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1691 *) ac_try_echo=$ac_try;; | |
1692 esac | |
1693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1694 $as_echo "$ac_try_echo"; } >&5 | |
1695 (eval "$ac_try") 2>&5 | |
1696 ac_status=$? | |
1697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1698 test $ac_status = 0; }; }; then : | |
1699 ac_retval=0 | |
1700 else | |
1701 $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1702 $as_echo "$as_me: failed program was:" >&5 | |
1703 sed 's/^/| /' conftest.$ac_ext >&5 | |
1704 | |
1705 ac_retval=$ac_status | |
1706 fi | |
1707 rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1709 as_fn_set_status $ac_retval | |
1710 | |
1711 } # ac_fn_cxx_try_run | |
1712 | |
1713 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1714 # --------------------------------------------------------- | |
1715 # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1716 # the include files in INCLUDES and setting the cache variable VAR | |
1717 # accordingly. | |
1718 ac_fn_cxx_check_header_mongrel () | |
1719 { | |
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1721 if eval \${$3+:} false; then : | |
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1723 $as_echo_n "checking for $2... " >&6; } | |
1724 if eval \${$3+:} false; then : | |
1725 $as_echo_n "(cached) " >&6 | |
1726 fi | |
1727 eval ac_res=\$$3 | |
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1729 $as_echo "$ac_res" >&6; } | |
1730 else | |
1731 # Is the header compilable? | |
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1733 $as_echo_n "checking $2 usability... " >&6; } | |
1734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1735 /* end confdefs.h. */ | |
1736 $4 | |
1737 #include <$2> | |
1738 _ACEOF | |
1739 if ac_fn_cxx_try_compile "$LINENO"; then : | |
1740 ac_header_compiler=yes | |
1741 else | |
1742 ac_header_compiler=no | |
1743 fi | |
1744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1746 $as_echo "$ac_header_compiler" >&6; } | |
1747 | |
1748 # Is the header present? | |
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1750 $as_echo_n "checking $2 presence... " >&6; } | |
1751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1752 /* end confdefs.h. */ | |
1753 #include <$2> | |
1754 _ACEOF | |
1755 if ac_fn_cxx_try_cpp "$LINENO"; then : | |
1756 ac_header_preproc=yes | |
1757 else | |
1758 ac_header_preproc=no | |
1759 fi | |
1760 rm -f conftest.err conftest.i conftest.$ac_ext | |
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1762 $as_echo "$ac_header_preproc" >&6; } | |
1763 | |
1764 # So? What about this header? | |
1765 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( | |
1766 yes:no: ) | |
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1768 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1770 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1771 ;; | |
1772 no:yes:* ) | |
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1774 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1776 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1778 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1780 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1782 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1783 ( $as_echo "## ------------------------------------------- ## | |
1784 ## Report this to cannam@all-day-breakfast.com ## | |
1785 ## ------------------------------------------- ##" | |
1786 ) | sed "s/^/$as_me: WARNING: /" >&2 | |
1787 ;; | |
1788 esac | |
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1790 $as_echo_n "checking for $2... " >&6; } | |
1791 if eval \${$3+:} false; then : | |
1792 $as_echo_n "(cached) " >&6 | |
1793 else | |
1794 eval "$3=\$ac_header_compiler" | |
1795 fi | |
1796 eval ac_res=\$$3 | |
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1798 $as_echo "$ac_res" >&6; } | |
1799 fi | |
1800 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1801 | |
1802 } # ac_fn_cxx_check_header_mongrel | |
1803 | |
1804 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES | |
1805 # --------------------------------------------------------- | |
1806 # Tests whether HEADER exists and can be compiled using the include files in | |
1807 # INCLUDES, setting the cache variable VAR accordingly. | |
1808 ac_fn_cxx_check_header_compile () | |
1809 { | |
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1812 $as_echo_n "checking for $2... " >&6; } | |
1813 if eval \${$3+:} false; then : | |
1814 $as_echo_n "(cached) " >&6 | |
1815 else | |
1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1817 /* end confdefs.h. */ | |
1818 $4 | |
1819 #include <$2> | |
1820 _ACEOF | |
1821 if ac_fn_cxx_try_compile "$LINENO"; then : | |
1822 eval "$3=yes" | |
1823 else | |
1824 eval "$3=no" | |
1825 fi | |
1826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1827 fi | |
1828 eval ac_res=\$$3 | |
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1830 $as_echo "$ac_res" >&6; } | |
1831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1832 | |
1833 } # ac_fn_cxx_check_header_compile | |
1834 | |
1835 # ac_fn_cxx_try_link LINENO | |
1836 # ------------------------- | |
1837 # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1838 ac_fn_cxx_try_link () | |
1839 { | |
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1841 rm -f conftest.$ac_objext conftest$ac_exeext | |
1842 if { { ac_try="$ac_link" | |
1843 case "(($ac_try" in | |
1844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1845 *) ac_try_echo=$ac_try;; | |
1846 esac | |
1847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1848 $as_echo "$ac_try_echo"; } >&5 | |
1849 (eval "$ac_link") 2>conftest.err | |
1850 ac_status=$? | |
1851 if test -s conftest.err; then | |
1852 grep -v '^ *+' conftest.err >conftest.er1 | |
1853 cat conftest.er1 >&5 | |
1854 mv -f conftest.er1 conftest.err | |
1855 fi | |
1856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1857 test $ac_status = 0; } && { | |
1858 test -z "$ac_cxx_werror_flag" || | |
1859 test ! -s conftest.err | |
1860 } && test -s conftest$ac_exeext && { | |
1861 test "$cross_compiling" = yes || | |
1862 test -x conftest$ac_exeext | |
1863 }; then : | |
1864 ac_retval=0 | |
1865 else | |
1866 $as_echo "$as_me: failed program was:" >&5 | |
1867 sed 's/^/| /' conftest.$ac_ext >&5 | |
1868 | |
1869 ac_retval=1 | |
1870 fi | |
1871 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1872 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1873 # interfere with the next link command; also delete a directory that is | |
1874 # left behind by Apple's compiler. We do this before executing the actions. | |
1875 rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1877 as_fn_set_status $ac_retval | |
1878 | |
1879 } # ac_fn_cxx_try_link | |
1880 cat >config.log <<_ACEOF | |
1881 This file contains any messages produced by compilers while | |
1882 running configure, to aid debugging if configure makes a mistake. | |
1883 | |
1884 It was created by Tony $as_me 0.0, which was | |
1885 generated by GNU Autoconf 2.69. Invocation command line was | |
1886 | |
1887 $ $0 $@ | |
1888 | |
1889 _ACEOF | |
1890 exec 5>>config.log | |
1891 { | |
1892 cat <<_ASUNAME | |
1893 ## --------- ## | |
1894 ## Platform. ## | |
1895 ## --------- ## | |
1896 | |
1897 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1898 uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1899 uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1900 uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1901 uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1902 | |
1903 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1904 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1905 | |
1906 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1907 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1908 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1909 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1910 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1911 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1912 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1913 | |
1914 _ASUNAME | |
1915 | |
1916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1917 for as_dir in $PATH | |
1918 do | |
1919 IFS=$as_save_IFS | |
1920 test -z "$as_dir" && as_dir=. | |
1921 $as_echo "PATH: $as_dir" | |
1922 done | |
1923 IFS=$as_save_IFS | |
1924 | |
1925 } >&5 | |
1926 | |
1927 cat >&5 <<_ACEOF | |
1928 | |
1929 | |
1930 ## ----------- ## | |
1931 ## Core tests. ## | |
1932 ## ----------- ## | |
1933 | |
1934 _ACEOF | |
1935 | |
1936 | |
1937 # Keep a trace of the command line. | |
1938 # Strip out --no-create and --no-recursion so they do not pile up. | |
1939 # Strip out --silent because we don't want to record it for future runs. | |
1940 # Also quote any args containing shell meta-characters. | |
1941 # Make two passes to allow for proper duplicate-argument suppression. | |
1942 ac_configure_args= | |
1943 ac_configure_args0= | |
1944 ac_configure_args1= | |
1945 ac_must_keep_next=false | |
1946 for ac_pass in 1 2 | |
1947 do | |
1948 for ac_arg | |
1949 do | |
1950 case $ac_arg in | |
1951 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1952 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1953 | -silent | --silent | --silen | --sile | --sil) | |
1954 continue ;; | |
1955 *\'*) | |
1956 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1957 esac | |
1958 case $ac_pass in | |
1959 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
1960 2) | |
1961 as_fn_append ac_configure_args1 " '$ac_arg'" | |
1962 if test $ac_must_keep_next = true; then | |
1963 ac_must_keep_next=false # Got value, back to normal. | |
1964 else | |
1965 case $ac_arg in | |
1966 *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1967 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1968 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1969 | -with-* | --with-* | -without-* | --without-* | --x) | |
1970 case "$ac_configure_args0 " in | |
1971 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1972 esac | |
1973 ;; | |
1974 -* ) ac_must_keep_next=true ;; | |
1975 esac | |
1976 fi | |
1977 as_fn_append ac_configure_args " '$ac_arg'" | |
1978 ;; | |
1979 esac | |
1980 done | |
1981 done | |
1982 { ac_configure_args0=; unset ac_configure_args0;} | |
1983 { ac_configure_args1=; unset ac_configure_args1;} | |
1984 | |
1985 # When interrupted or exit'd, cleanup temporary files, and complete | |
1986 # config.log. We remove comments because anyway the quotes in there | |
1987 # would cause problems or look ugly. | |
1988 # WARNING: Use '\'' to represent an apostrophe within the trap. | |
1989 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
1990 trap 'exit_status=$? | |
1991 # Save into config.log some information that might help in debugging. | |
1992 { | |
1993 echo | |
1994 | |
1995 $as_echo "## ---------------- ## | |
1996 ## Cache variables. ## | |
1997 ## ---------------- ##" | |
1998 echo | |
1999 # The following way of writing the cache mishandles newlines in values, | |
2000 ( | |
2001 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2002 eval ac_val=\$$ac_var | |
2003 case $ac_val in #( | |
2004 *${as_nl}*) | |
2005 case $ac_var in #( | |
2006 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2007 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2008 esac | |
2009 case $ac_var in #( | |
2010 _ | IFS | as_nl) ;; #( | |
2011 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2012 *) { eval $ac_var=; unset $ac_var;} ;; | |
2013 esac ;; | |
2014 esac | |
2015 done | |
2016 (set) 2>&1 | | |
2017 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2018 *${as_nl}ac_space=\ *) | |
2019 sed -n \ | |
2020 "s/'\''/'\''\\\\'\'''\''/g; | |
2021 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2022 ;; #( | |
2023 *) | |
2024 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2025 ;; | |
2026 esac | | |
2027 sort | |
2028 ) | |
2029 echo | |
2030 | |
2031 $as_echo "## ----------------- ## | |
2032 ## Output variables. ## | |
2033 ## ----------------- ##" | |
2034 echo | |
2035 for ac_var in $ac_subst_vars | |
2036 do | |
2037 eval ac_val=\$$ac_var | |
2038 case $ac_val in | |
2039 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2040 esac | |
2041 $as_echo "$ac_var='\''$ac_val'\''" | |
2042 done | sort | |
2043 echo | |
2044 | |
2045 if test -n "$ac_subst_files"; then | |
2046 $as_echo "## ------------------- ## | |
2047 ## File substitutions. ## | |
2048 ## ------------------- ##" | |
2049 echo | |
2050 for ac_var in $ac_subst_files | |
2051 do | |
2052 eval ac_val=\$$ac_var | |
2053 case $ac_val in | |
2054 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2055 esac | |
2056 $as_echo "$ac_var='\''$ac_val'\''" | |
2057 done | sort | |
2058 echo | |
2059 fi | |
2060 | |
2061 if test -s confdefs.h; then | |
2062 $as_echo "## ----------- ## | |
2063 ## confdefs.h. ## | |
2064 ## ----------- ##" | |
2065 echo | |
2066 cat confdefs.h | |
2067 echo | |
2068 fi | |
2069 test "$ac_signal" != 0 && | |
2070 $as_echo "$as_me: caught signal $ac_signal" | |
2071 $as_echo "$as_me: exit $exit_status" | |
2072 } >&5 | |
2073 rm -f core *.core core.conftest.* && | |
2074 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2075 exit $exit_status | |
2076 ' 0 | |
2077 for ac_signal in 1 2 13 15; do | |
2078 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2079 done | |
2080 ac_signal=0 | |
2081 | |
2082 # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2083 rm -f -r conftest* confdefs.h | |
2084 | |
2085 $as_echo "/* confdefs.h */" > confdefs.h | |
2086 | |
2087 # Predefined preprocessor variables. | |
2088 | |
2089 cat >>confdefs.h <<_ACEOF | |
2090 #define PACKAGE_NAME "$PACKAGE_NAME" | |
2091 _ACEOF | |
2092 | |
2093 cat >>confdefs.h <<_ACEOF | |
2094 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2095 _ACEOF | |
2096 | |
2097 cat >>confdefs.h <<_ACEOF | |
2098 #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2099 _ACEOF | |
2100 | |
2101 cat >>confdefs.h <<_ACEOF | |
2102 #define PACKAGE_STRING "$PACKAGE_STRING" | |
2103 _ACEOF | |
2104 | |
2105 cat >>confdefs.h <<_ACEOF | |
2106 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2107 _ACEOF | |
2108 | |
2109 cat >>confdefs.h <<_ACEOF | |
2110 #define PACKAGE_URL "$PACKAGE_URL" | |
2111 _ACEOF | |
2112 | |
2113 | |
2114 # Let the site file select an alternate cache file if it wants to. | |
2115 # Prefer an explicitly selected file to automatically selected ones. | |
2116 ac_site_file1=NONE | |
2117 ac_site_file2=NONE | |
2118 if test -n "$CONFIG_SITE"; then | |
2119 # We do not want a PATH search for config.site. | |
2120 case $CONFIG_SITE in #(( | |
2121 -*) ac_site_file1=./$CONFIG_SITE;; | |
2122 */*) ac_site_file1=$CONFIG_SITE;; | |
2123 *) ac_site_file1=./$CONFIG_SITE;; | |
2124 esac | |
2125 elif test "x$prefix" != xNONE; then | |
2126 ac_site_file1=$prefix/share/config.site | |
2127 ac_site_file2=$prefix/etc/config.site | |
2128 else | |
2129 ac_site_file1=$ac_default_prefix/share/config.site | |
2130 ac_site_file2=$ac_default_prefix/etc/config.site | |
2131 fi | |
2132 for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2133 do | |
2134 test "x$ac_site_file" = xNONE && continue | |
2135 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2137 $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2138 sed 's/^/| /' "$ac_site_file" >&5 | |
2139 . "$ac_site_file" \ | |
2140 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2142 as_fn_error $? "failed to load site script $ac_site_file | |
2143 See \`config.log' for more details" "$LINENO" 5; } | |
2144 fi | |
2145 done | |
2146 | |
2147 if test -r "$cache_file"; then | |
2148 # Some versions of bash will fail to source /dev/null (special files | |
2149 # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2150 if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2152 $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2153 case $cache_file in | |
2154 [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2155 *) . "./$cache_file";; | |
2156 esac | |
2157 fi | |
2158 else | |
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2160 $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2161 >$cache_file | |
2162 fi | |
2163 | |
2164 # Check that the precious variables saved in the cache have kept the same | |
2165 # value. | |
2166 ac_cache_corrupted=false | |
2167 for ac_var in $ac_precious_vars; do | |
2168 eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2169 eval ac_new_set=\$ac_env_${ac_var}_set | |
2170 eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2171 eval ac_new_val=\$ac_env_${ac_var}_value | |
2172 case $ac_old_set,$ac_new_set in | |
2173 set,) | |
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2175 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2176 ac_cache_corrupted=: ;; | |
2177 ,set) | |
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2179 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2180 ac_cache_corrupted=: ;; | |
2181 ,);; | |
2182 *) | |
2183 if test "x$ac_old_val" != "x$ac_new_val"; then | |
2184 # differences in whitespace do not lead to failure. | |
2185 ac_old_val_w=`echo x $ac_old_val` | |
2186 ac_new_val_w=`echo x $ac_new_val` | |
2187 if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2189 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2190 ac_cache_corrupted=: | |
2191 else | |
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2193 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2194 eval $ac_var=\$ac_old_val | |
2195 fi | |
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2197 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2199 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2200 fi;; | |
2201 esac | |
2202 # Pass precious variables to config.status. | |
2203 if test "$ac_new_set" = set; then | |
2204 case $ac_new_val in | |
2205 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2206 *) ac_arg=$ac_var=$ac_new_val ;; | |
2207 esac | |
2208 case " $ac_configure_args " in | |
2209 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2210 *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2211 esac | |
2212 fi | |
2213 done | |
2214 if $ac_cache_corrupted; then | |
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2218 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2219 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2220 fi | |
2221 ## -------------------- ## | |
2222 ## Main body of script. ## | |
2223 ## -------------------- ## | |
2224 | |
2225 ac_ext=c | |
2226 ac_cpp='$CPP $CPPFLAGS' | |
2227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2229 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2230 | |
2231 | |
2232 | |
2233 | |
2234 | |
2235 # Autoconf will set CXXFLAGS; we don't usually want it to, because we | |
2236 # either define our own flags (at least if GCC is in use) or else use | |
2237 # the user's preferences. We need to ensure CXXFLAGS is only set if | |
2238 # the user has expressly set it. So, save the user's (or empty) | |
2239 # setting now and restore it after Autoconf has done its bit of | |
2240 # piddling about. | |
2241 USER_CXXFLAGS="$CXXFLAGS" | |
2242 | |
2243 # If the user supplied CFLAGS but not CXXFLAGS, use CFLAGS instead | |
2244 if test x"$USER_CXXFLAGS" = x; then | |
2245 if test x"$CFLAGS" != x; then | |
2246 USER_CXXFLAGS="$CFLAGS" | |
2247 fi | |
2248 fi | |
2249 | |
2250 ac_ext=cpp | |
2251 ac_cpp='$CXXCPP $CPPFLAGS' | |
2252 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2253 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2254 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
2255 | |
2256 | |
2257 ac_ext=c | |
2258 ac_cpp='$CPP $CPPFLAGS' | |
2259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2261 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2262 if test -n "$ac_tool_prefix"; then | |
2263 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2264 set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2266 $as_echo_n "checking for $ac_word... " >&6; } | |
2267 if ${ac_cv_prog_CC+:} false; then : | |
2268 $as_echo_n "(cached) " >&6 | |
2269 else | |
2270 if test -n "$CC"; then | |
2271 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2272 else | |
2273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2274 for as_dir in $PATH | |
2275 do | |
2276 IFS=$as_save_IFS | |
2277 test -z "$as_dir" && as_dir=. | |
2278 for ac_exec_ext in '' $ac_executable_extensions; do | |
2279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2280 ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2282 break 2 | |
2283 fi | |
2284 done | |
2285 done | |
2286 IFS=$as_save_IFS | |
2287 | |
2288 fi | |
2289 fi | |
2290 CC=$ac_cv_prog_CC | |
2291 if test -n "$CC"; then | |
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2293 $as_echo "$CC" >&6; } | |
2294 else | |
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2296 $as_echo "no" >&6; } | |
2297 fi | |
2298 | |
2299 | |
2300 fi | |
2301 if test -z "$ac_cv_prog_CC"; then | |
2302 ac_ct_CC=$CC | |
2303 # Extract the first word of "gcc", so it can be a program name with args. | |
2304 set dummy gcc; ac_word=$2 | |
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2306 $as_echo_n "checking for $ac_word... " >&6; } | |
2307 if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
2308 $as_echo_n "(cached) " >&6 | |
2309 else | |
2310 if test -n "$ac_ct_CC"; then | |
2311 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2312 else | |
2313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2314 for as_dir in $PATH | |
2315 do | |
2316 IFS=$as_save_IFS | |
2317 test -z "$as_dir" && as_dir=. | |
2318 for ac_exec_ext in '' $ac_executable_extensions; do | |
2319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2320 ac_cv_prog_ac_ct_CC="gcc" | |
2321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2322 break 2 | |
2323 fi | |
2324 done | |
2325 done | |
2326 IFS=$as_save_IFS | |
2327 | |
2328 fi | |
2329 fi | |
2330 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2331 if test -n "$ac_ct_CC"; then | |
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2333 $as_echo "$ac_ct_CC" >&6; } | |
2334 else | |
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2336 $as_echo "no" >&6; } | |
2337 fi | |
2338 | |
2339 if test "x$ac_ct_CC" = x; then | |
2340 CC="" | |
2341 else | |
2342 case $cross_compiling:$ac_tool_warned in | |
2343 yes:) | |
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2345 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2346 ac_tool_warned=yes ;; | |
2347 esac | |
2348 CC=$ac_ct_CC | |
2349 fi | |
2350 else | |
2351 CC="$ac_cv_prog_CC" | |
2352 fi | |
2353 | |
2354 if test -z "$CC"; then | |
2355 if test -n "$ac_tool_prefix"; then | |
2356 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2357 set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2359 $as_echo_n "checking for $ac_word... " >&6; } | |
2360 if ${ac_cv_prog_CC+:} false; then : | |
2361 $as_echo_n "(cached) " >&6 | |
2362 else | |
2363 if test -n "$CC"; then | |
2364 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2365 else | |
2366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2367 for as_dir in $PATH | |
2368 do | |
2369 IFS=$as_save_IFS | |
2370 test -z "$as_dir" && as_dir=. | |
2371 for ac_exec_ext in '' $ac_executable_extensions; do | |
2372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2373 ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2375 break 2 | |
2376 fi | |
2377 done | |
2378 done | |
2379 IFS=$as_save_IFS | |
2380 | |
2381 fi | |
2382 fi | |
2383 CC=$ac_cv_prog_CC | |
2384 if test -n "$CC"; then | |
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2386 $as_echo "$CC" >&6; } | |
2387 else | |
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2389 $as_echo "no" >&6; } | |
2390 fi | |
2391 | |
2392 | |
2393 fi | |
2394 fi | |
2395 if test -z "$CC"; then | |
2396 # Extract the first word of "cc", so it can be a program name with args. | |
2397 set dummy cc; ac_word=$2 | |
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2399 $as_echo_n "checking for $ac_word... " >&6; } | |
2400 if ${ac_cv_prog_CC+:} false; then : | |
2401 $as_echo_n "(cached) " >&6 | |
2402 else | |
2403 if test -n "$CC"; then | |
2404 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2405 else | |
2406 ac_prog_rejected=no | |
2407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2408 for as_dir in $PATH | |
2409 do | |
2410 IFS=$as_save_IFS | |
2411 test -z "$as_dir" && as_dir=. | |
2412 for ac_exec_ext in '' $ac_executable_extensions; do | |
2413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2414 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2415 ac_prog_rejected=yes | |
2416 continue | |
2417 fi | |
2418 ac_cv_prog_CC="cc" | |
2419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2420 break 2 | |
2421 fi | |
2422 done | |
2423 done | |
2424 IFS=$as_save_IFS | |
2425 | |
2426 if test $ac_prog_rejected = yes; then | |
2427 # We found a bogon in the path, so make sure we never use it. | |
2428 set dummy $ac_cv_prog_CC | |
2429 shift | |
2430 if test $# != 0; then | |
2431 # We chose a different compiler from the bogus one. | |
2432 # However, it has the same basename, so the bogon will be chosen | |
2433 # first if we set CC to just the basename; use the full file name. | |
2434 shift | |
2435 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2436 fi | |
2437 fi | |
2438 fi | |
2439 fi | |
2440 CC=$ac_cv_prog_CC | |
2441 if test -n "$CC"; then | |
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2443 $as_echo "$CC" >&6; } | |
2444 else | |
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2446 $as_echo "no" >&6; } | |
2447 fi | |
2448 | |
2449 | |
2450 fi | |
2451 if test -z "$CC"; then | |
2452 if test -n "$ac_tool_prefix"; then | |
2453 for ac_prog in cl.exe | |
2454 do | |
2455 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2456 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2458 $as_echo_n "checking for $ac_word... " >&6; } | |
2459 if ${ac_cv_prog_CC+:} false; then : | |
2460 $as_echo_n "(cached) " >&6 | |
2461 else | |
2462 if test -n "$CC"; then | |
2463 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2464 else | |
2465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2466 for as_dir in $PATH | |
2467 do | |
2468 IFS=$as_save_IFS | |
2469 test -z "$as_dir" && as_dir=. | |
2470 for ac_exec_ext in '' $ac_executable_extensions; do | |
2471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2472 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2474 break 2 | |
2475 fi | |
2476 done | |
2477 done | |
2478 IFS=$as_save_IFS | |
2479 | |
2480 fi | |
2481 fi | |
2482 CC=$ac_cv_prog_CC | |
2483 if test -n "$CC"; then | |
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2485 $as_echo "$CC" >&6; } | |
2486 else | |
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2488 $as_echo "no" >&6; } | |
2489 fi | |
2490 | |
2491 | |
2492 test -n "$CC" && break | |
2493 done | |
2494 fi | |
2495 if test -z "$CC"; then | |
2496 ac_ct_CC=$CC | |
2497 for ac_prog in cl.exe | |
2498 do | |
2499 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2500 set dummy $ac_prog; ac_word=$2 | |
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2502 $as_echo_n "checking for $ac_word... " >&6; } | |
2503 if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
2504 $as_echo_n "(cached) " >&6 | |
2505 else | |
2506 if test -n "$ac_ct_CC"; then | |
2507 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2508 else | |
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2510 for as_dir in $PATH | |
2511 do | |
2512 IFS=$as_save_IFS | |
2513 test -z "$as_dir" && as_dir=. | |
2514 for ac_exec_ext in '' $ac_executable_extensions; do | |
2515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2516 ac_cv_prog_ac_ct_CC="$ac_prog" | |
2517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2518 break 2 | |
2519 fi | |
2520 done | |
2521 done | |
2522 IFS=$as_save_IFS | |
2523 | |
2524 fi | |
2525 fi | |
2526 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2527 if test -n "$ac_ct_CC"; then | |
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2529 $as_echo "$ac_ct_CC" >&6; } | |
2530 else | |
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2532 $as_echo "no" >&6; } | |
2533 fi | |
2534 | |
2535 | |
2536 test -n "$ac_ct_CC" && break | |
2537 done | |
2538 | |
2539 if test "x$ac_ct_CC" = x; then | |
2540 CC="" | |
2541 else | |
2542 case $cross_compiling:$ac_tool_warned in | |
2543 yes:) | |
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2545 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2546 ac_tool_warned=yes ;; | |
2547 esac | |
2548 CC=$ac_ct_CC | |
2549 fi | |
2550 fi | |
2551 | |
2552 fi | |
2553 | |
2554 | |
2555 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2556 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2557 as_fn_error $? "no acceptable C compiler found in \$PATH | |
2558 See \`config.log' for more details" "$LINENO" 5; } | |
2559 | |
2560 # Provide some information about the compiler. | |
2561 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
2562 set X $ac_compile | |
2563 ac_compiler=$2 | |
2564 for ac_option in --version -v -V -qversion; do | |
2565 { { ac_try="$ac_compiler $ac_option >&5" | |
2566 case "(($ac_try" in | |
2567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2568 *) ac_try_echo=$ac_try;; | |
2569 esac | |
2570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2571 $as_echo "$ac_try_echo"; } >&5 | |
2572 (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
2573 ac_status=$? | |
2574 if test -s conftest.err; then | |
2575 sed '10a\ | |
2576 ... rest of stderr output deleted ... | |
2577 10q' conftest.err >conftest.er1 | |
2578 cat conftest.er1 >&5 | |
2579 fi | |
2580 rm -f conftest.er1 conftest.err | |
2581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2582 test $ac_status = 0; } | |
2583 done | |
2584 | |
2585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2586 /* end confdefs.h. */ | |
2587 | |
2588 int | |
2589 main () | |
2590 { | |
2591 | |
2592 ; | |
2593 return 0; | |
2594 } | |
2595 _ACEOF | |
2596 ac_clean_files_save=$ac_clean_files | |
2597 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
2598 # Try to create an executable without -o first, disregard a.out. | |
2599 # It will help us diagnose broken compilers, and finding out an intuition | |
2600 # of exeext. | |
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
2602 $as_echo_n "checking whether the C compiler works... " >&6; } | |
2603 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2604 | |
2605 # The possible output files: | |
2606 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2607 | |
2608 ac_rmfiles= | |
2609 for ac_file in $ac_files | |
2610 do | |
2611 case $ac_file in | |
2612 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2613 * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2614 esac | |
2615 done | |
2616 rm -f $ac_rmfiles | |
2617 | |
2618 if { { ac_try="$ac_link_default" | |
2619 case "(($ac_try" in | |
2620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2621 *) ac_try_echo=$ac_try;; | |
2622 esac | |
2623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2624 $as_echo "$ac_try_echo"; } >&5 | |
2625 (eval "$ac_link_default") 2>&5 | |
2626 ac_status=$? | |
2627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2628 test $ac_status = 0; }; then : | |
2629 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2630 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2631 # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2632 # so that the user can short-circuit this test for compilers unknown to | |
2633 # Autoconf. | |
2634 for ac_file in $ac_files '' | |
2635 do | |
2636 test -f "$ac_file" || continue | |
2637 case $ac_file in | |
2638 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
2639 ;; | |
2640 [ab].out ) | |
2641 # We found the default executable, but exeext='' is most | |
2642 # certainly right. | |
2643 break;; | |
2644 *.* ) | |
2645 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
2646 then :; else | |
2647 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2648 fi | |
2649 # We set ac_cv_exeext here because the later test for it is not | |
2650 # safe: cross compilers may not add the suffix if given an `-o' | |
2651 # argument, so we may need to know it at that point already. | |
2652 # Even if this section looks crufty: it has the advantage of | |
2653 # actually working. | |
2654 break;; | |
2655 * ) | |
2656 break;; | |
2657 esac | |
2658 done | |
2659 test "$ac_cv_exeext" = no && ac_cv_exeext= | |
2660 | |
2661 else | |
2662 ac_file='' | |
2663 fi | |
2664 if test -z "$ac_file"; then : | |
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2666 $as_echo "no" >&6; } | |
2667 $as_echo "$as_me: failed program was:" >&5 | |
2668 sed 's/^/| /' conftest.$ac_ext >&5 | |
2669 | |
2670 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2672 as_fn_error 77 "C compiler cannot create executables | |
2673 See \`config.log' for more details" "$LINENO" 5; } | |
2674 else | |
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2676 $as_echo "yes" >&6; } | |
2677 fi | |
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
2679 $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
2681 $as_echo "$ac_file" >&6; } | |
2682 ac_exeext=$ac_cv_exeext | |
2683 | |
2684 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
2685 ac_clean_files=$ac_clean_files_save | |
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
2687 $as_echo_n "checking for suffix of executables... " >&6; } | |
2688 if { { ac_try="$ac_link" | |
2689 case "(($ac_try" in | |
2690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2691 *) ac_try_echo=$ac_try;; | |
2692 esac | |
2693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2694 $as_echo "$ac_try_echo"; } >&5 | |
2695 (eval "$ac_link") 2>&5 | |
2696 ac_status=$? | |
2697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2698 test $ac_status = 0; }; then : | |
2699 # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2700 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2701 # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2702 # `rm'. | |
2703 for ac_file in conftest.exe conftest conftest.*; do | |
2704 test -f "$ac_file" || continue | |
2705 case $ac_file in | |
2706 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2707 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2708 break;; | |
2709 * ) break;; | |
2710 esac | |
2711 done | |
2712 else | |
2713 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2714 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2715 as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
2716 See \`config.log' for more details" "$LINENO" 5; } | |
2717 fi | |
2718 rm -f conftest conftest$ac_cv_exeext | |
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
2720 $as_echo "$ac_cv_exeext" >&6; } | |
2721 | |
2722 rm -f conftest.$ac_ext | |
2723 EXEEXT=$ac_cv_exeext | |
2724 ac_exeext=$EXEEXT | |
2725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2726 /* end confdefs.h. */ | |
2727 #include <stdio.h> | |
2728 int | |
2729 main () | |
2730 { | |
2731 FILE *f = fopen ("conftest.out", "w"); | |
2732 return ferror (f) || fclose (f) != 0; | |
2733 | |
2734 ; | |
2735 return 0; | |
2736 } | |
2737 _ACEOF | |
2738 ac_clean_files="$ac_clean_files conftest.out" | |
2739 # Check that the compiler produces executables we can run. If not, either | |
2740 # the compiler is broken, or we cross compile. | |
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
2742 $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2743 if test "$cross_compiling" != yes; then | |
2744 { { ac_try="$ac_link" | |
2745 case "(($ac_try" in | |
2746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2747 *) ac_try_echo=$ac_try;; | |
2748 esac | |
2749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2750 $as_echo "$ac_try_echo"; } >&5 | |
2751 (eval "$ac_link") 2>&5 | |
2752 ac_status=$? | |
2753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2754 test $ac_status = 0; } | |
2755 if { ac_try='./conftest$ac_cv_exeext' | |
2756 { { case "(($ac_try" in | |
2757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2758 *) ac_try_echo=$ac_try;; | |
2759 esac | |
2760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2761 $as_echo "$ac_try_echo"; } >&5 | |
2762 (eval "$ac_try") 2>&5 | |
2763 ac_status=$? | |
2764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2765 test $ac_status = 0; }; }; then | |
2766 cross_compiling=no | |
2767 else | |
2768 if test "$cross_compiling" = maybe; then | |
2769 cross_compiling=yes | |
2770 else | |
2771 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2772 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2773 as_fn_error $? "cannot run C compiled programs. | |
2774 If you meant to cross compile, use \`--host'. | |
2775 See \`config.log' for more details" "$LINENO" 5; } | |
2776 fi | |
2777 fi | |
2778 fi | |
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
2780 $as_echo "$cross_compiling" >&6; } | |
2781 | |
2782 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
2783 ac_clean_files=$ac_clean_files_save | |
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
2785 $as_echo_n "checking for suffix of object files... " >&6; } | |
2786 if ${ac_cv_objext+:} false; then : | |
2787 $as_echo_n "(cached) " >&6 | |
2788 else | |
2789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2790 /* end confdefs.h. */ | |
2791 | |
2792 int | |
2793 main () | |
2794 { | |
2795 | |
2796 ; | |
2797 return 0; | |
2798 } | |
2799 _ACEOF | |
2800 rm -f conftest.o conftest.obj | |
2801 if { { ac_try="$ac_compile" | |
2802 case "(($ac_try" in | |
2803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2804 *) ac_try_echo=$ac_try;; | |
2805 esac | |
2806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2807 $as_echo "$ac_try_echo"; } >&5 | |
2808 (eval "$ac_compile") 2>&5 | |
2809 ac_status=$? | |
2810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2811 test $ac_status = 0; }; then : | |
2812 for ac_file in conftest.o conftest.obj conftest.*; do | |
2813 test -f "$ac_file" || continue; | |
2814 case $ac_file in | |
2815 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
2816 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2817 break;; | |
2818 esac | |
2819 done | |
2820 else | |
2821 $as_echo "$as_me: failed program was:" >&5 | |
2822 sed 's/^/| /' conftest.$ac_ext >&5 | |
2823 | |
2824 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2825 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2826 as_fn_error $? "cannot compute suffix of object files: cannot compile | |
2827 See \`config.log' for more details" "$LINENO" 5; } | |
2828 fi | |
2829 rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2830 fi | |
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
2832 $as_echo "$ac_cv_objext" >&6; } | |
2833 OBJEXT=$ac_cv_objext | |
2834 ac_objext=$OBJEXT | |
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
2836 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
2837 if ${ac_cv_c_compiler_gnu+:} false; then : | |
2838 $as_echo_n "(cached) " >&6 | |
2839 else | |
2840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2841 /* end confdefs.h. */ | |
2842 | |
2843 int | |
2844 main () | |
2845 { | |
2846 #ifndef __GNUC__ | |
2847 choke me | |
2848 #endif | |
2849 | |
2850 ; | |
2851 return 0; | |
2852 } | |
2853 _ACEOF | |
2854 if ac_fn_c_try_compile "$LINENO"; then : | |
2855 ac_compiler_gnu=yes | |
2856 else | |
2857 ac_compiler_gnu=no | |
2858 fi | |
2859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2860 ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2861 | |
2862 fi | |
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
2864 $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
2865 if test $ac_compiler_gnu = yes; then | |
2866 GCC=yes | |
2867 else | |
2868 GCC= | |
2869 fi | |
2870 ac_test_CFLAGS=${CFLAGS+set} | |
2871 ac_save_CFLAGS=$CFLAGS | |
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
2873 $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
2874 if ${ac_cv_prog_cc_g+:} false; then : | |
2875 $as_echo_n "(cached) " >&6 | |
2876 else | |
2877 ac_save_c_werror_flag=$ac_c_werror_flag | |
2878 ac_c_werror_flag=yes | |
2879 ac_cv_prog_cc_g=no | |
2880 CFLAGS="-g" | |
2881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2882 /* end confdefs.h. */ | |
2883 | |
2884 int | |
2885 main () | |
2886 { | |
2887 | |
2888 ; | |
2889 return 0; | |
2890 } | |
2891 _ACEOF | |
2892 if ac_fn_c_try_compile "$LINENO"; then : | |
2893 ac_cv_prog_cc_g=yes | |
2894 else | |
2895 CFLAGS="" | |
2896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2897 /* end confdefs.h. */ | |
2898 | |
2899 int | |
2900 main () | |
2901 { | |
2902 | |
2903 ; | |
2904 return 0; | |
2905 } | |
2906 _ACEOF | |
2907 if ac_fn_c_try_compile "$LINENO"; then : | |
2908 | |
2909 else | |
2910 ac_c_werror_flag=$ac_save_c_werror_flag | |
2911 CFLAGS="-g" | |
2912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2913 /* end confdefs.h. */ | |
2914 | |
2915 int | |
2916 main () | |
2917 { | |
2918 | |
2919 ; | |
2920 return 0; | |
2921 } | |
2922 _ACEOF | |
2923 if ac_fn_c_try_compile "$LINENO"; then : | |
2924 ac_cv_prog_cc_g=yes | |
2925 fi | |
2926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2927 fi | |
2928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2929 fi | |
2930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2931 ac_c_werror_flag=$ac_save_c_werror_flag | |
2932 fi | |
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
2934 $as_echo "$ac_cv_prog_cc_g" >&6; } | |
2935 if test "$ac_test_CFLAGS" = set; then | |
2936 CFLAGS=$ac_save_CFLAGS | |
2937 elif test $ac_cv_prog_cc_g = yes; then | |
2938 if test "$GCC" = yes; then | |
2939 CFLAGS="-g -O2" | |
2940 else | |
2941 CFLAGS="-g" | |
2942 fi | |
2943 else | |
2944 if test "$GCC" = yes; then | |
2945 CFLAGS="-O2" | |
2946 else | |
2947 CFLAGS= | |
2948 fi | |
2949 fi | |
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
2951 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
2952 if ${ac_cv_prog_cc_c89+:} false; then : | |
2953 $as_echo_n "(cached) " >&6 | |
2954 else | |
2955 ac_cv_prog_cc_c89=no | |
2956 ac_save_CC=$CC | |
2957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2958 /* end confdefs.h. */ | |
2959 #include <stdarg.h> | |
2960 #include <stdio.h> | |
2961 struct stat; | |
2962 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2963 struct buf { int x; }; | |
2964 FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2965 static char *e (p, i) | |
2966 char **p; | |
2967 int i; | |
2968 { | |
2969 return p[i]; | |
2970 } | |
2971 static char *f (char * (*g) (char **, int), char **p, ...) | |
2972 { | |
2973 char *s; | |
2974 va_list v; | |
2975 va_start (v,p); | |
2976 s = g (p, va_arg (v,int)); | |
2977 va_end (v); | |
2978 return s; | |
2979 } | |
2980 | |
2981 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2982 function prototypes and stuff, but not '\xHH' hex character constants. | |
2983 These don't provoke an error unfortunately, instead are silently treated | |
2984 as 'x'. The following induces an error, until -std is added to get | |
2985 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2986 array size at least. It's necessary to write '\x00'==0 to get something | |
2987 that's true only with -std. */ | |
2988 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2989 | |
2990 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
2991 inside strings and character constants. */ | |
2992 #define FOO(x) 'x' | |
2993 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
2994 | |
2995 int test (int i, double x); | |
2996 struct s1 {int (*f) (int a);}; | |
2997 struct s2 {int (*f) (double a);}; | |
2998 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2999 int argc; | |
3000 char **argv; | |
3001 int | |
3002 main () | |
3003 { | |
3004 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3005 ; | |
3006 return 0; | |
3007 } | |
3008 _ACEOF | |
3009 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3010 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3011 do | |
3012 CC="$ac_save_CC $ac_arg" | |
3013 if ac_fn_c_try_compile "$LINENO"; then : | |
3014 ac_cv_prog_cc_c89=$ac_arg | |
3015 fi | |
3016 rm -f core conftest.err conftest.$ac_objext | |
3017 test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3018 done | |
3019 rm -f conftest.$ac_ext | |
3020 CC=$ac_save_CC | |
3021 | |
3022 fi | |
3023 # AC_CACHE_VAL | |
3024 case "x$ac_cv_prog_cc_c89" in | |
3025 x) | |
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3027 $as_echo "none needed" >&6; } ;; | |
3028 xno) | |
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3030 $as_echo "unsupported" >&6; } ;; | |
3031 *) | |
3032 CC="$CC $ac_cv_prog_cc_c89" | |
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3034 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
3035 esac | |
3036 if test "x$ac_cv_prog_cc_c89" != xno; then : | |
3037 | |
3038 fi | |
3039 | |
3040 ac_ext=cpp | |
3041 ac_cpp='$CXXCPP $CPPFLAGS' | |
3042 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3043 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3044 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3045 | |
3046 ac_ext=cpp | |
3047 ac_cpp='$CXXCPP $CPPFLAGS' | |
3048 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3049 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3050 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3051 if test -z "$CXX"; then | |
3052 if test -n "$CCC"; then | |
3053 CXX=$CCC | |
3054 else | |
3055 if test -n "$ac_tool_prefix"; then | |
3056 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
3057 do | |
3058 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3059 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3061 $as_echo_n "checking for $ac_word... " >&6; } | |
3062 if ${ac_cv_prog_CXX+:} false; then : | |
3063 $as_echo_n "(cached) " >&6 | |
3064 else | |
3065 if test -n "$CXX"; then | |
3066 ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
3067 else | |
3068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3069 for as_dir in $PATH | |
3070 do | |
3071 IFS=$as_save_IFS | |
3072 test -z "$as_dir" && as_dir=. | |
3073 for ac_exec_ext in '' $ac_executable_extensions; do | |
3074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3075 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
3076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3077 break 2 | |
3078 fi | |
3079 done | |
3080 done | |
3081 IFS=$as_save_IFS | |
3082 | |
3083 fi | |
3084 fi | |
3085 CXX=$ac_cv_prog_CXX | |
3086 if test -n "$CXX"; then | |
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
3088 $as_echo "$CXX" >&6; } | |
3089 else | |
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3091 $as_echo "no" >&6; } | |
3092 fi | |
3093 | |
3094 | |
3095 test -n "$CXX" && break | |
3096 done | |
3097 fi | |
3098 if test -z "$CXX"; then | |
3099 ac_ct_CXX=$CXX | |
3100 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
3101 do | |
3102 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3103 set dummy $ac_prog; ac_word=$2 | |
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3105 $as_echo_n "checking for $ac_word... " >&6; } | |
3106 if ${ac_cv_prog_ac_ct_CXX+:} false; then : | |
3107 $as_echo_n "(cached) " >&6 | |
3108 else | |
3109 if test -n "$ac_ct_CXX"; then | |
3110 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
3111 else | |
3112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3113 for as_dir in $PATH | |
3114 do | |
3115 IFS=$as_save_IFS | |
3116 test -z "$as_dir" && as_dir=. | |
3117 for ac_exec_ext in '' $ac_executable_extensions; do | |
3118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3119 ac_cv_prog_ac_ct_CXX="$ac_prog" | |
3120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3121 break 2 | |
3122 fi | |
3123 done | |
3124 done | |
3125 IFS=$as_save_IFS | |
3126 | |
3127 fi | |
3128 fi | |
3129 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
3130 if test -n "$ac_ct_CXX"; then | |
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
3132 $as_echo "$ac_ct_CXX" >&6; } | |
3133 else | |
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3135 $as_echo "no" >&6; } | |
3136 fi | |
3137 | |
3138 | |
3139 test -n "$ac_ct_CXX" && break | |
3140 done | |
3141 | |
3142 if test "x$ac_ct_CXX" = x; then | |
3143 CXX="g++" | |
3144 else | |
3145 case $cross_compiling:$ac_tool_warned in | |
3146 yes:) | |
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3148 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3149 ac_tool_warned=yes ;; | |
3150 esac | |
3151 CXX=$ac_ct_CXX | |
3152 fi | |
3153 fi | |
3154 | |
3155 fi | |
3156 fi | |
3157 # Provide some information about the compiler. | |
3158 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
3159 set X $ac_compile | |
3160 ac_compiler=$2 | |
3161 for ac_option in --version -v -V -qversion; do | |
3162 { { ac_try="$ac_compiler $ac_option >&5" | |
3163 case "(($ac_try" in | |
3164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3165 *) ac_try_echo=$ac_try;; | |
3166 esac | |
3167 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3168 $as_echo "$ac_try_echo"; } >&5 | |
3169 (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3170 ac_status=$? | |
3171 if test -s conftest.err; then | |
3172 sed '10a\ | |
3173 ... rest of stderr output deleted ... | |
3174 10q' conftest.err >conftest.er1 | |
3175 cat conftest.er1 >&5 | |
3176 fi | |
3177 rm -f conftest.er1 conftest.err | |
3178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3179 test $ac_status = 0; } | |
3180 done | |
3181 | |
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 | |
3183 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
3184 if ${ac_cv_cxx_compiler_gnu+:} false; then : | |
3185 $as_echo_n "(cached) " >&6 | |
3186 else | |
3187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3188 /* end confdefs.h. */ | |
3189 | |
3190 int | |
3191 main () | |
3192 { | |
3193 #ifndef __GNUC__ | |
3194 choke me | |
3195 #endif | |
3196 | |
3197 ; | |
3198 return 0; | |
3199 } | |
3200 _ACEOF | |
3201 if ac_fn_cxx_try_compile "$LINENO"; then : | |
3202 ac_compiler_gnu=yes | |
3203 else | |
3204 ac_compiler_gnu=no | |
3205 fi | |
3206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3207 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
3208 | |
3209 fi | |
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | |
3211 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
3212 if test $ac_compiler_gnu = yes; then | |
3213 GXX=yes | |
3214 else | |
3215 GXX= | |
3216 fi | |
3217 ac_test_CXXFLAGS=${CXXFLAGS+set} | |
3218 ac_save_CXXFLAGS=$CXXFLAGS | |
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
3220 $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
3221 if ${ac_cv_prog_cxx_g+:} false; then : | |
3222 $as_echo_n "(cached) " >&6 | |
3223 else | |
3224 ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
3225 ac_cxx_werror_flag=yes | |
3226 ac_cv_prog_cxx_g=no | |
3227 CXXFLAGS="-g" | |
3228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3229 /* end confdefs.h. */ | |
3230 | |
3231 int | |
3232 main () | |
3233 { | |
3234 | |
3235 ; | |
3236 return 0; | |
3237 } | |
3238 _ACEOF | |
3239 if ac_fn_cxx_try_compile "$LINENO"; then : | |
3240 ac_cv_prog_cxx_g=yes | |
3241 else | |
3242 CXXFLAGS="" | |
3243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3244 /* end confdefs.h. */ | |
3245 | |
3246 int | |
3247 main () | |
3248 { | |
3249 | |
3250 ; | |
3251 return 0; | |
3252 } | |
3253 _ACEOF | |
3254 if ac_fn_cxx_try_compile "$LINENO"; then : | |
3255 | |
3256 else | |
3257 ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
3258 CXXFLAGS="-g" | |
3259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3260 /* end confdefs.h. */ | |
3261 | |
3262 int | |
3263 main () | |
3264 { | |
3265 | |
3266 ; | |
3267 return 0; | |
3268 } | |
3269 _ACEOF | |
3270 if ac_fn_cxx_try_compile "$LINENO"; then : | |
3271 ac_cv_prog_cxx_g=yes | |
3272 fi | |
3273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3274 fi | |
3275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3276 fi | |
3277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3278 ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
3279 fi | |
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
3281 $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
3282 if test "$ac_test_CXXFLAGS" = set; then | |
3283 CXXFLAGS=$ac_save_CXXFLAGS | |
3284 elif test $ac_cv_prog_cxx_g = yes; then | |
3285 if test "$GXX" = yes; then | |
3286 CXXFLAGS="-g -O2" | |
3287 else | |
3288 CXXFLAGS="-g" | |
3289 fi | |
3290 else | |
3291 if test "$GXX" = yes; then | |
3292 CXXFLAGS="-O2" | |
3293 else | |
3294 CXXFLAGS= | |
3295 fi | |
3296 fi | |
3297 ac_ext=cpp | |
3298 ac_cpp='$CXXCPP $CPPFLAGS' | |
3299 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3300 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3301 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3302 | |
3303 ac_aux_dir= | |
3304 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
3305 if test -f "$ac_dir/install-sh"; then | |
3306 ac_aux_dir=$ac_dir | |
3307 ac_install_sh="$ac_aux_dir/install-sh -c" | |
3308 break | |
3309 elif test -f "$ac_dir/install.sh"; then | |
3310 ac_aux_dir=$ac_dir | |
3311 ac_install_sh="$ac_aux_dir/install.sh -c" | |
3312 break | |
3313 elif test -f "$ac_dir/shtool"; then | |
3314 ac_aux_dir=$ac_dir | |
3315 ac_install_sh="$ac_aux_dir/shtool install -c" | |
3316 break | |
3317 fi | |
3318 done | |
3319 if test -z "$ac_aux_dir"; then | |
3320 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
3321 fi | |
3322 | |
3323 # These three variables are undocumented and unsupported, | |
3324 # and are intended to be withdrawn in a future Autoconf release. | |
3325 # They can cause serious problems if a builder's source tree is in a directory | |
3326 # whose full name contains unusual characters. | |
3327 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
3328 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
3329 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
3330 | |
3331 | |
3332 # Find a good install program. We prefer a C program (faster), | |
3333 # so one script is as good as another. But avoid the broken or | |
3334 # incompatible versions: | |
3335 # SysV /etc/install, /usr/sbin/install | |
3336 # SunOS /usr/etc/install | |
3337 # IRIX /sbin/install | |
3338 # AIX /bin/install | |
3339 # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3340 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3341 # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3342 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3343 # OS/2's system install, which has a completely different semantic | |
3344 # ./install, which can be erroneously created by make from ./install.sh. | |
3345 # Reject install programs that cannot install multiple files. | |
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
3347 $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
3348 if test -z "$INSTALL"; then | |
3349 if ${ac_cv_path_install+:} false; then : | |
3350 $as_echo_n "(cached) " >&6 | |
3351 else | |
3352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3353 for as_dir in $PATH | |
3354 do | |
3355 IFS=$as_save_IFS | |
3356 test -z "$as_dir" && as_dir=. | |
3357 # Account for people who put trailing slashes in PATH elements. | |
3358 case $as_dir/ in #(( | |
3359 ./ | .// | /[cC]/* | \ | |
3360 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3361 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
3362 /usr/ucb/* ) ;; | |
3363 *) | |
3364 # OSF1 and SCO ODT 3.0 have their own names for install. | |
3365 # Don't use installbsd from OSF since it installs stuff as root | |
3366 # by default. | |
3367 for ac_prog in ginstall scoinst install; do | |
3368 for ac_exec_ext in '' $ac_executable_extensions; do | |
3369 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
3370 if test $ac_prog = install && | |
3371 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3372 # AIX install. It has an incompatible calling convention. | |
3373 : | |
3374 elif test $ac_prog = install && | |
3375 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3376 # program-specific install script used by HP pwplus--don't use. | |
3377 : | |
3378 else | |
3379 rm -rf conftest.one conftest.two conftest.dir | |
3380 echo one > conftest.one | |
3381 echo two > conftest.two | |
3382 mkdir conftest.dir | |
3383 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3384 test -s conftest.one && test -s conftest.two && | |
3385 test -s conftest.dir/conftest.one && | |
3386 test -s conftest.dir/conftest.two | |
3387 then | |
3388 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3389 break 3 | |
3390 fi | |
3391 fi | |
3392 fi | |
3393 done | |
3394 done | |
3395 ;; | |
3396 esac | |
3397 | |
3398 done | |
3399 IFS=$as_save_IFS | |
3400 | |
3401 rm -rf conftest.one conftest.two conftest.dir | |
3402 | |
3403 fi | |
3404 if test "${ac_cv_path_install+set}" = set; then | |
3405 INSTALL=$ac_cv_path_install | |
3406 else | |
3407 # As a last resort, use the slow shell script. Don't cache a | |
3408 # value for INSTALL within a source directory, because that will | |
3409 # break other packages using the cache if that directory is | |
3410 # removed, or if the value is a relative name. | |
3411 INSTALL=$ac_install_sh | |
3412 fi | |
3413 fi | |
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
3415 $as_echo "$INSTALL" >&6; } | |
3416 | |
3417 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3418 # It thinks the first close brace ends the variable substitution. | |
3419 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3420 | |
3421 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
3422 | |
3423 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3424 | |
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
3426 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
3427 if test -z "$MKDIR_P"; then | |
3428 if ${ac_cv_path_mkdir+:} false; then : | |
3429 $as_echo_n "(cached) " >&6 | |
3430 else | |
3431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3432 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3433 do | |
3434 IFS=$as_save_IFS | |
3435 test -z "$as_dir" && as_dir=. | |
3436 for ac_prog in mkdir gmkdir; do | |
3437 for ac_exec_ext in '' $ac_executable_extensions; do | |
3438 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | |
3439 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3440 'mkdir (GNU coreutils) '* | \ | |
3441 'mkdir (coreutils) '* | \ | |
3442 'mkdir (fileutils) '4.1*) | |
3443 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3444 break 3;; | |
3445 esac | |
3446 done | |
3447 done | |
3448 done | |
3449 IFS=$as_save_IFS | |
3450 | |
3451 fi | |
3452 | |
3453 test -d ./--version && rmdir ./--version | |
3454 if test "${ac_cv_path_mkdir+set}" = set; then | |
3455 MKDIR_P="$ac_cv_path_mkdir -p" | |
3456 else | |
3457 # As a last resort, use the slow shell script. Don't cache a | |
3458 # value for MKDIR_P within a source directory, because that will | |
3459 # break other packages using the cache if that directory is | |
3460 # removed, or if the value is a relative name. | |
3461 MKDIR_P="$ac_install_sh -d" | |
3462 fi | |
3463 fi | |
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
3465 $as_echo "$MKDIR_P" >&6; } | |
3466 | |
3467 | |
3468 | |
3469 ac_ext=cpp | |
3470 ac_cpp='$CXXCPP $CPPFLAGS' | |
3471 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3472 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3473 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | |
3475 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
3476 if test -z "$CXXCPP"; then | |
3477 if ${ac_cv_prog_CXXCPP+:} false; then : | |
3478 $as_echo_n "(cached) " >&6 | |
3479 else | |
3480 # Double quotes because CXXCPP needs to be expanded | |
3481 for CXXCPP in "$CXX -E" "/lib/cpp" | |
3482 do | |
3483 ac_preproc_ok=false | |
3484 for ac_cxx_preproc_warn_flag in '' yes | |
3485 do | |
3486 # Use a header file that comes with gcc, so configuring glibc | |
3487 # with a fresh cross-compiler works. | |
3488 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3489 # <limits.h> exists even on freestanding compilers. | |
3490 # On the NeXT, cc -E runs the code through the compiler's parser, | |
3491 # not just through cpp. "Syntax error" is here to catch this case. | |
3492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3493 /* end confdefs.h. */ | |
3494 #ifdef __STDC__ | |
3495 # include <limits.h> | |
3496 #else | |
3497 # include <assert.h> | |
3498 #endif | |
3499 Syntax error | |
3500 _ACEOF | |
3501 if ac_fn_cxx_try_cpp "$LINENO"; then : | |
3502 | |
3503 else | |
3504 # Broken: fails on valid input. | |
3505 continue | |
3506 fi | |
3507 rm -f conftest.err conftest.i conftest.$ac_ext | |
3508 | |
3509 # OK, works on sane cases. Now check whether nonexistent headers | |
3510 # can be detected and how. | |
3511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3512 /* end confdefs.h. */ | |
3513 #include <ac_nonexistent.h> | |
3514 _ACEOF | |
3515 if ac_fn_cxx_try_cpp "$LINENO"; then : | |
3516 # Broken: success on invalid input. | |
3517 continue | |
3518 else | |
3519 # Passes both tests. | |
3520 ac_preproc_ok=: | |
3521 break | |
3522 fi | |
3523 rm -f conftest.err conftest.i conftest.$ac_ext | |
3524 | |
3525 done | |
3526 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3527 rm -f conftest.i conftest.err conftest.$ac_ext | |
3528 if $ac_preproc_ok; then : | |
3529 break | |
3530 fi | |
3531 | |
3532 done | |
3533 ac_cv_prog_CXXCPP=$CXXCPP | |
3534 | |
3535 fi | |
3536 CXXCPP=$ac_cv_prog_CXXCPP | |
3537 else | |
3538 ac_cv_prog_CXXCPP=$CXXCPP | |
3539 fi | |
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | |
3541 $as_echo "$CXXCPP" >&6; } | |
3542 ac_preproc_ok=false | |
3543 for ac_cxx_preproc_warn_flag in '' yes | |
3544 do | |
3545 # Use a header file that comes with gcc, so configuring glibc | |
3546 # with a fresh cross-compiler works. | |
3547 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3548 # <limits.h> exists even on freestanding compilers. | |
3549 # On the NeXT, cc -E runs the code through the compiler's parser, | |
3550 # not just through cpp. "Syntax error" is here to catch this case. | |
3551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3552 /* end confdefs.h. */ | |
3553 #ifdef __STDC__ | |
3554 # include <limits.h> | |
3555 #else | |
3556 # include <assert.h> | |
3557 #endif | |
3558 Syntax error | |
3559 _ACEOF | |
3560 if ac_fn_cxx_try_cpp "$LINENO"; then : | |
3561 | |
3562 else | |
3563 # Broken: fails on valid input. | |
3564 continue | |
3565 fi | |
3566 rm -f conftest.err conftest.i conftest.$ac_ext | |
3567 | |
3568 # OK, works on sane cases. Now check whether nonexistent headers | |
3569 # can be detected and how. | |
3570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3571 /* end confdefs.h. */ | |
3572 #include <ac_nonexistent.h> | |
3573 _ACEOF | |
3574 if ac_fn_cxx_try_cpp "$LINENO"; then : | |
3575 # Broken: success on invalid input. | |
3576 continue | |
3577 else | |
3578 # Passes both tests. | |
3579 ac_preproc_ok=: | |
3580 break | |
3581 fi | |
3582 rm -f conftest.err conftest.i conftest.$ac_ext | |
3583 | |
3584 done | |
3585 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3586 rm -f conftest.i conftest.err conftest.$ac_ext | |
3587 if $ac_preproc_ok; then : | |
3588 | |
3589 else | |
3590 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3592 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check | |
3593 See \`config.log' for more details" "$LINENO" 5; } | |
3594 fi | |
3595 | |
3596 ac_ext=cpp | |
3597 ac_cpp='$CXXCPP $CPPFLAGS' | |
3598 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3599 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3600 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3601 | |
3602 | |
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
3604 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
3605 if ${ac_cv_path_GREP+:} false; then : | |
3606 $as_echo_n "(cached) " >&6 | |
3607 else | |
3608 if test -z "$GREP"; then | |
3609 ac_path_GREP_found=false | |
3610 # Loop through the user's path and test for each of PROGNAME-LIST | |
3611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3612 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3613 do | |
3614 IFS=$as_save_IFS | |
3615 test -z "$as_dir" && as_dir=. | |
3616 for ac_prog in grep ggrep; do | |
3617 for ac_exec_ext in '' $ac_executable_extensions; do | |
3618 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3619 as_fn_executable_p "$ac_path_GREP" || continue | |
3620 # Check for GNU ac_path_GREP and select it if it is found. | |
3621 # Check for GNU $ac_path_GREP | |
3622 case `"$ac_path_GREP" --version 2>&1` in | |
3623 *GNU*) | |
3624 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3625 *) | |
3626 ac_count=0 | |
3627 $as_echo_n 0123456789 >"conftest.in" | |
3628 while : | |
3629 do | |
3630 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3631 mv "conftest.tmp" "conftest.in" | |
3632 cp "conftest.in" "conftest.nl" | |
3633 $as_echo 'GREP' >> "conftest.nl" | |
3634 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3635 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3636 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3637 if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3638 # Best one so far, save it but keep looking for a better one | |
3639 ac_cv_path_GREP="$ac_path_GREP" | |
3640 ac_path_GREP_max=$ac_count | |
3641 fi | |
3642 # 10*(2^10) chars as input seems more than enough | |
3643 test $ac_count -gt 10 && break | |
3644 done | |
3645 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3646 esac | |
3647 | |
3648 $ac_path_GREP_found && break 3 | |
3649 done | |
3650 done | |
3651 done | |
3652 IFS=$as_save_IFS | |
3653 if test -z "$ac_cv_path_GREP"; then | |
3654 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3655 fi | |
3656 else | |
3657 ac_cv_path_GREP=$GREP | |
3658 fi | |
3659 | |
3660 fi | |
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
3662 $as_echo "$ac_cv_path_GREP" >&6; } | |
3663 GREP="$ac_cv_path_GREP" | |
3664 | |
3665 | |
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
3667 $as_echo_n "checking for egrep... " >&6; } | |
3668 if ${ac_cv_path_EGREP+:} false; then : | |
3669 $as_echo_n "(cached) " >&6 | |
3670 else | |
3671 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3672 then ac_cv_path_EGREP="$GREP -E" | |
3673 else | |
3674 if test -z "$EGREP"; then | |
3675 ac_path_EGREP_found=false | |
3676 # Loop through the user's path and test for each of PROGNAME-LIST | |
3677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3678 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3679 do | |
3680 IFS=$as_save_IFS | |
3681 test -z "$as_dir" && as_dir=. | |
3682 for ac_prog in egrep; do | |
3683 for ac_exec_ext in '' $ac_executable_extensions; do | |
3684 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3685 as_fn_executable_p "$ac_path_EGREP" || continue | |
3686 # Check for GNU ac_path_EGREP and select it if it is found. | |
3687 # Check for GNU $ac_path_EGREP | |
3688 case `"$ac_path_EGREP" --version 2>&1` in | |
3689 *GNU*) | |
3690 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3691 *) | |
3692 ac_count=0 | |
3693 $as_echo_n 0123456789 >"conftest.in" | |
3694 while : | |
3695 do | |
3696 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3697 mv "conftest.tmp" "conftest.in" | |
3698 cp "conftest.in" "conftest.nl" | |
3699 $as_echo 'EGREP' >> "conftest.nl" | |
3700 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3701 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3702 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3703 if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3704 # Best one so far, save it but keep looking for a better one | |
3705 ac_cv_path_EGREP="$ac_path_EGREP" | |
3706 ac_path_EGREP_max=$ac_count | |
3707 fi | |
3708 # 10*(2^10) chars as input seems more than enough | |
3709 test $ac_count -gt 10 && break | |
3710 done | |
3711 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3712 esac | |
3713 | |
3714 $ac_path_EGREP_found && break 3 | |
3715 done | |
3716 done | |
3717 done | |
3718 IFS=$as_save_IFS | |
3719 if test -z "$ac_cv_path_EGREP"; then | |
3720 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3721 fi | |
3722 else | |
3723 ac_cv_path_EGREP=$EGREP | |
3724 fi | |
3725 | |
3726 fi | |
3727 fi | |
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
3729 $as_echo "$ac_cv_path_EGREP" >&6; } | |
3730 EGREP="$ac_cv_path_EGREP" | |
3731 | |
3732 | |
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
3734 $as_echo_n "checking for ANSI C header files... " >&6; } | |
3735 if ${ac_cv_header_stdc+:} false; then : | |
3736 $as_echo_n "(cached) " >&6 | |
3737 else | |
3738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3739 /* end confdefs.h. */ | |
3740 #include <stdlib.h> | |
3741 #include <stdarg.h> | |
3742 #include <string.h> | |
3743 #include <float.h> | |
3744 | |
3745 int | |
3746 main () | |
3747 { | |
3748 | |
3749 ; | |
3750 return 0; | |
3751 } | |
3752 _ACEOF | |
3753 if ac_fn_cxx_try_compile "$LINENO"; then : | |
3754 ac_cv_header_stdc=yes | |
3755 else | |
3756 ac_cv_header_stdc=no | |
3757 fi | |
3758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3759 | |
3760 if test $ac_cv_header_stdc = yes; then | |
3761 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3763 /* end confdefs.h. */ | |
3764 #include <string.h> | |
3765 | |
3766 _ACEOF | |
3767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3768 $EGREP "memchr" >/dev/null 2>&1; then : | |
3769 | |
3770 else | |
3771 ac_cv_header_stdc=no | |
3772 fi | |
3773 rm -f conftest* | |
3774 | |
3775 fi | |
3776 | |
3777 if test $ac_cv_header_stdc = yes; then | |
3778 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3780 /* end confdefs.h. */ | |
3781 #include <stdlib.h> | |
3782 | |
3783 _ACEOF | |
3784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3785 $EGREP "free" >/dev/null 2>&1; then : | |
3786 | |
3787 else | |
3788 ac_cv_header_stdc=no | |
3789 fi | |
3790 rm -f conftest* | |
3791 | |
3792 fi | |
3793 | |
3794 if test $ac_cv_header_stdc = yes; then | |
3795 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3796 if test "$cross_compiling" = yes; then : | |
3797 : | |
3798 else | |
3799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3800 /* end confdefs.h. */ | |
3801 #include <ctype.h> | |
3802 #include <stdlib.h> | |
3803 #if ((' ' & 0x0FF) == 0x020) | |
3804 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3805 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3806 #else | |
3807 # define ISLOWER(c) \ | |
3808 (('a' <= (c) && (c) <= 'i') \ | |
3809 || ('j' <= (c) && (c) <= 'r') \ | |
3810 || ('s' <= (c) && (c) <= 'z')) | |
3811 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3812 #endif | |
3813 | |
3814 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3815 int | |
3816 main () | |
3817 { | |
3818 int i; | |
3819 for (i = 0; i < 256; i++) | |
3820 if (XOR (islower (i), ISLOWER (i)) | |
3821 || toupper (i) != TOUPPER (i)) | |
3822 return 2; | |
3823 return 0; | |
3824 } | |
3825 _ACEOF | |
3826 if ac_fn_cxx_try_run "$LINENO"; then : | |
3827 | |
3828 else | |
3829 ac_cv_header_stdc=no | |
3830 fi | |
3831 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
3832 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
3833 fi | |
3834 | |
3835 fi | |
3836 fi | |
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
3838 $as_echo "$ac_cv_header_stdc" >&6; } | |
3839 if test $ac_cv_header_stdc = yes; then | |
3840 | |
3841 $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
3842 | |
3843 fi | |
3844 | |
3845 | |
3846 # These are the flags Autoconf guesses for us; we use them later if | |
3847 # the user has set none and we are not using GCC (so lack our own | |
3848 # preferred flags) | |
3849 AUTOCONF_CXXFLAGS="$CXXFLAGS" | |
3850 | |
3851 | |
3852 | |
3853 | |
3854 | |
3855 | |
3856 | |
3857 | |
3858 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
3859 if test -n "$ac_tool_prefix"; then | |
3860 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
3861 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3863 $as_echo_n "checking for $ac_word... " >&6; } | |
3864 if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
3865 $as_echo_n "(cached) " >&6 | |
3866 else | |
3867 case $PKG_CONFIG in | |
3868 [\\/]* | ?:[\\/]*) | |
3869 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
3870 ;; | |
3871 *) | |
3872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3873 for as_dir in $PATH | |
3874 do | |
3875 IFS=$as_save_IFS | |
3876 test -z "$as_dir" && as_dir=. | |
3877 for ac_exec_ext in '' $ac_executable_extensions; do | |
3878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3879 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
3880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3881 break 2 | |
3882 fi | |
3883 done | |
3884 done | |
3885 IFS=$as_save_IFS | |
3886 | |
3887 ;; | |
3888 esac | |
3889 fi | |
3890 PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
3891 if test -n "$PKG_CONFIG"; then | |
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
3893 $as_echo "$PKG_CONFIG" >&6; } | |
3894 else | |
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3896 $as_echo "no" >&6; } | |
3897 fi | |
3898 | |
3899 | |
3900 fi | |
3901 if test -z "$ac_cv_path_PKG_CONFIG"; then | |
3902 ac_pt_PKG_CONFIG=$PKG_CONFIG | |
3903 # Extract the first word of "pkg-config", so it can be a program name with args. | |
3904 set dummy pkg-config; ac_word=$2 | |
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3906 $as_echo_n "checking for $ac_word... " >&6; } | |
3907 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
3908 $as_echo_n "(cached) " >&6 | |
3909 else | |
3910 case $ac_pt_PKG_CONFIG in | |
3911 [\\/]* | ?:[\\/]*) | |
3912 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
3913 ;; | |
3914 *) | |
3915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3916 for as_dir in $PATH | |
3917 do | |
3918 IFS=$as_save_IFS | |
3919 test -z "$as_dir" && as_dir=. | |
3920 for ac_exec_ext in '' $ac_executable_extensions; do | |
3921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3922 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
3923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3924 break 2 | |
3925 fi | |
3926 done | |
3927 done | |
3928 IFS=$as_save_IFS | |
3929 | |
3930 ;; | |
3931 esac | |
3932 fi | |
3933 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
3934 if test -n "$ac_pt_PKG_CONFIG"; then | |
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
3936 $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
3937 else | |
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3939 $as_echo "no" >&6; } | |
3940 fi | |
3941 | |
3942 if test "x$ac_pt_PKG_CONFIG" = x; then | |
3943 PKG_CONFIG="" | |
3944 else | |
3945 case $cross_compiling:$ac_tool_warned in | |
3946 yes:) | |
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3948 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3949 ac_tool_warned=yes ;; | |
3950 esac | |
3951 PKG_CONFIG=$ac_pt_PKG_CONFIG | |
3952 fi | |
3953 else | |
3954 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
3955 fi | |
3956 | |
3957 fi | |
3958 if test -n "$PKG_CONFIG"; then | |
3959 _pkg_min_version=0.9.0 | |
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
3961 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
3962 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3964 $as_echo "yes" >&6; } | |
3965 else | |
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3967 $as_echo "no" >&6; } | |
3968 PKG_CONFIG="" | |
3969 fi | |
3970 fi | |
3971 | |
3972 | |
3973 | |
3974 | |
3975 if test x$QMAKE = x ; then | |
3976 # Extract the first word of "qmake-qt4", so it can be a program name with args. | |
3977 set dummy qmake-qt4; ac_word=$2 | |
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3979 $as_echo_n "checking for $ac_word... " >&6; } | |
3980 if ${ac_cv_prog_QMAKE+:} false; then : | |
3981 $as_echo_n "(cached) " >&6 | |
3982 else | |
3983 if test -n "$QMAKE"; then | |
3984 ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test. | |
3985 else | |
3986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3987 for as_dir in $QTDIR/bin/ | |
3988 do | |
3989 IFS=$as_save_IFS | |
3990 test -z "$as_dir" && as_dir=. | |
3991 for ac_exec_ext in '' $ac_executable_extensions; do | |
3992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3993 ac_cv_prog_QMAKE="$QTDIR/bin/qmake-qt4" | |
3994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3995 break 2 | |
3996 fi | |
3997 done | |
3998 done | |
3999 IFS=$as_save_IFS | |
4000 | |
4001 fi | |
4002 fi | |
4003 QMAKE=$ac_cv_prog_QMAKE | |
4004 if test -n "$QMAKE"; then | |
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5 | |
4006 $as_echo "$QMAKE" >&6; } | |
4007 else | |
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4009 $as_echo "no" >&6; } | |
4010 fi | |
4011 | |
4012 | |
4013 fi | |
4014 if test x$QMAKE = x ; then | |
4015 # Extract the first word of "qmake", so it can be a program name with args. | |
4016 set dummy qmake; ac_word=$2 | |
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4018 $as_echo_n "checking for $ac_word... " >&6; } | |
4019 if ${ac_cv_prog_QMAKE+:} false; then : | |
4020 $as_echo_n "(cached) " >&6 | |
4021 else | |
4022 if test -n "$QMAKE"; then | |
4023 ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test. | |
4024 else | |
4025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4026 for as_dir in $QTDIR/bin/ | |
4027 do | |
4028 IFS=$as_save_IFS | |
4029 test -z "$as_dir" && as_dir=. | |
4030 for ac_exec_ext in '' $ac_executable_extensions; do | |
4031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4032 ac_cv_prog_QMAKE="$QTDIR/bin/qmake" | |
4033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4034 break 2 | |
4035 fi | |
4036 done | |
4037 done | |
4038 IFS=$as_save_IFS | |
4039 | |
4040 fi | |
4041 fi | |
4042 QMAKE=$ac_cv_prog_QMAKE | |
4043 if test -n "$QMAKE"; then | |
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5 | |
4045 $as_echo "$QMAKE" >&6; } | |
4046 else | |
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4048 $as_echo "no" >&6; } | |
4049 fi | |
4050 | |
4051 | |
4052 fi | |
4053 if test x$QMAKE = x ; then | |
4054 # Extract the first word of "qmake.exe", so it can be a program name with args. | |
4055 set dummy qmake.exe; ac_word=$2 | |
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4057 $as_echo_n "checking for $ac_word... " >&6; } | |
4058 if ${ac_cv_prog_QMAKE+:} false; then : | |
4059 $as_echo_n "(cached) " >&6 | |
4060 else | |
4061 if test -n "$QMAKE"; then | |
4062 ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test. | |
4063 else | |
4064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4065 for as_dir in $QTDIR/bin/ | |
4066 do | |
4067 IFS=$as_save_IFS | |
4068 test -z "$as_dir" && as_dir=. | |
4069 for ac_exec_ext in '' $ac_executable_extensions; do | |
4070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4071 ac_cv_prog_QMAKE="$QTDIR/bin/qmake.exe" | |
4072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4073 break 2 | |
4074 fi | |
4075 done | |
4076 done | |
4077 IFS=$as_save_IFS | |
4078 | |
4079 fi | |
4080 fi | |
4081 QMAKE=$ac_cv_prog_QMAKE | |
4082 if test -n "$QMAKE"; then | |
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5 | |
4084 $as_echo "$QMAKE" >&6; } | |
4085 else | |
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4087 $as_echo "no" >&6; } | |
4088 fi | |
4089 | |
4090 | |
4091 fi | |
4092 if test x$QMAKE = x ; then | |
4093 # Extract the first word of "qmake-qt4", so it can be a program name with args. | |
4094 set dummy qmake-qt4; ac_word=$2 | |
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4096 $as_echo_n "checking for $ac_word... " >&6; } | |
4097 if ${ac_cv_prog_QMAKE+:} false; then : | |
4098 $as_echo_n "(cached) " >&6 | |
4099 else | |
4100 if test -n "$QMAKE"; then | |
4101 ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test. | |
4102 else | |
4103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4104 for as_dir in $PATH | |
4105 do | |
4106 IFS=$as_save_IFS | |
4107 test -z "$as_dir" && as_dir=. | |
4108 for ac_exec_ext in '' $ac_executable_extensions; do | |
4109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4110 ac_cv_prog_QMAKE="qmake-qt4" | |
4111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4112 break 2 | |
4113 fi | |
4114 done | |
4115 done | |
4116 IFS=$as_save_IFS | |
4117 | |
4118 fi | |
4119 fi | |
4120 QMAKE=$ac_cv_prog_QMAKE | |
4121 if test -n "$QMAKE"; then | |
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5 | |
4123 $as_echo "$QMAKE" >&6; } | |
4124 else | |
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4126 $as_echo "no" >&6; } | |
4127 fi | |
4128 | |
4129 | |
4130 fi | |
4131 if test x$QMAKE = x ; then | |
4132 # Extract the first word of "qmake", so it can be a program name with args. | |
4133 set dummy qmake; ac_word=$2 | |
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4135 $as_echo_n "checking for $ac_word... " >&6; } | |
4136 if ${ac_cv_prog_QMAKE+:} false; then : | |
4137 $as_echo_n "(cached) " >&6 | |
4138 else | |
4139 if test -n "$QMAKE"; then | |
4140 ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test. | |
4141 else | |
4142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4143 for as_dir in $PATH | |
4144 do | |
4145 IFS=$as_save_IFS | |
4146 test -z "$as_dir" && as_dir=. | |
4147 for ac_exec_ext in '' $ac_executable_extensions; do | |
4148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4149 ac_cv_prog_QMAKE="qmake" | |
4150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4151 break 2 | |
4152 fi | |
4153 done | |
4154 done | |
4155 IFS=$as_save_IFS | |
4156 | |
4157 fi | |
4158 fi | |
4159 QMAKE=$ac_cv_prog_QMAKE | |
4160 if test -n "$QMAKE"; then | |
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5 | |
4162 $as_echo "$QMAKE" >&6; } | |
4163 else | |
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4165 $as_echo "no" >&6; } | |
4166 fi | |
4167 | |
4168 | |
4169 fi | |
4170 if test x$QMAKE = x ; then | |
4171 as_fn_error $? " | |
4172 Failed to find the required qmake-qt4 or qmake program. Please | |
4173 ensure you have the necessary Qt4 development files installed, and | |
4174 if necessary set QTDIR to the location of your Qt4 installation. | |
4175 " "$LINENO" 5 | |
4176 fi | |
4177 | |
4178 # Suitable versions of qmake should print out something like: | |
4179 # | |
4180 # QMake version 2.01a | |
4181 # Using Qt version 4.6.3 in /usr/lib | |
4182 # | |
4183 # This may be translated, so we check only for the numbers (2.x and 4.x | |
4184 # in that order). | |
4185 # | |
4186 QMAKE_VERSION_OUTPUT=`$QMAKE -v` | |
4187 case "$QMAKE_VERSION_OUTPUT" in | |
4188 *2.*4.*) ;; | |
4189 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | |
4190 *** The version of qmake found in \"$QMAKE\" looks like it might be | |
4191 from the wrong version of Qt (Qt4 is required). Please check | |
4192 that this is the correct version of qmake for Qt4 builds. | |
4193 " >&5 | |
4194 $as_echo "$as_me: WARNING: | |
4195 *** The version of qmake found in \"$QMAKE\" looks like it might be | |
4196 from the wrong version of Qt (Qt4 is required). Please check | |
4197 that this is the correct version of qmake for Qt4 builds. | |
4198 " >&2;} | |
4199 esac | |
4200 | |
4201 case "`uname`" in | |
4202 *Darwin*) QMAKE="$QMAKE -spec macx-g++";; | |
4203 esac | |
4204 | |
4205 | |
4206 | |
4207 SV_DEFINES_DEBUG="-DDEBUG -DBUILD_DEBUG -DWANT_TIMING" | |
4208 SV_DEFINES_RELEASE="-DNDEBUG -DBUILD_RELEASE -DNO_TIMING" | |
4209 SV_DEFINES_MINIMAL="$SV_DEFINES_RELEASE" | |
4210 | |
4211 # Now we have: USER_CXXFLAGS contains any flags the user set | |
4212 # explicitly; AUTOCONF_CXXFLAGS contains flags that Autoconf thought | |
4213 # we should use. If we have GCC, we override the latter but then | |
4214 # allow ourselves to be overridden (later) by the former | |
4215 | |
4216 CXXFLAGS_DEBUG="$AUTOCONF_CXXFLAGS" | |
4217 CXXFLAGS_RELEASE="$AUTOCONF_CXXFLAGS" | |
4218 CXXFLAGS_MINIMAL="$AUTOCONF_CXXFLAGS" | |
4219 | |
4220 if test "x$GCC" = "xyes"; then | |
4221 CXXFLAGS_DEBUG="-Wall -Woverloaded-virtual -Wextra -Wformat-nonliteral -Wformat-security -Winit-self -Wswitch-enum -g -pipe" | |
4222 CXXFLAGS_RELEASE="-g0 -O2 -Wall -pipe" | |
4223 CXXFLAGS_MINIMAL="-g0 -O0" | |
4224 fi | |
4225 | |
4226 CXXFLAGS_BUILD="$CXXFLAGS_RELEASE" | |
4227 SV_DEFINES_BUILD="$SV_DEFINES_RELEASE" | |
4228 | |
4229 QMAKE_CONFIG="release" | |
4230 | |
4231 # Check whether --enable-debug was given. | |
4232 if test "${enable_debug+set}" = set; then : | |
4233 enableval=$enable_debug; { $as_echo "$as_me:${as_lineno-$LINENO}: enabling debug build" >&5 | |
4234 $as_echo "$as_me: enabling debug build" >&6;} | |
4235 QMAKE_CONFIG="debug" | |
4236 CXXFLAGS_BUILD="$CXXFLAGS_DEBUG" | |
4237 SV_DEFINES_BUILD="$SV_DEFINES_DEBUG" | |
4238 fi | |
4239 | |
4240 | |
4241 if test x"$USER_CXXFLAGS" != x; then | |
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: The CXXFLAGS environment variable is set to \"$USER_CXXFLAGS\"." >&5 | |
4243 $as_echo "$as_me: The CXXFLAGS environment variable is set to \"$USER_CXXFLAGS\"." >&6;} | |
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: Overriding default compiler flags with the above user setting." >&5 | |
4245 $as_echo "$as_me: Overriding default compiler flags with the above user setting." >&6;} | |
4246 CXXFLAGS_BUILD="$USER_CXXFLAGS" | |
4247 CXXFLAGS_MINIMAL="$USER_CXXFLAGS" | |
4248 fi | |
4249 | |
4250 CXXFLAGS="$CXXFLAGS_BUILD $SV_DEFINES_BUILD" | |
4251 | |
4252 # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4253 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4254 inttypes.h stdint.h unistd.h | |
4255 do : | |
4256 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4257 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4258 " | |
4259 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4260 cat >>confdefs.h <<_ACEOF | |
4261 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4262 _ACEOF | |
4263 | |
4264 fi | |
4265 | |
4266 done | |
4267 | |
4268 | |
4269 | |
4270 SV_MODULE_MODULE=bz2 | |
4271 SV_MODULE_VERSION_TEST="" | |
4272 SV_MODULE_HEADER=bzlib.h | |
4273 SV_MODULE_LIB=bz2 | |
4274 SV_MODULE_FUNC=BZ2_bzReadOpen | |
4275 SV_MODULE_HAVE=HAVE_$(echo bz2 | tr 'a-z' 'A-Z') | |
4276 SV_MODULE_FAILED=1 | |
4277 if test -n "$bz2_LIBS" ; then | |
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 | |
4279 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} | |
4280 CXXFLAGS="$CXXFLAGS $bz2_CFLAGS" | |
4281 LIBS="$LIBS $bz2_LIBS" | |
4282 SV_MODULE_FAILED="" | |
4283 fi | |
4284 if test -z "$SV_MODULE_VERSION_TEST" ; then | |
4285 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE | |
4286 fi | |
4287 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then | |
4288 | |
4289 pkg_failed=no | |
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bz2" >&5 | |
4291 $as_echo_n "checking for bz2... " >&6; } | |
4292 | |
4293 if test -n "$bz2_CFLAGS"; then | |
4294 pkg_cv_bz2_CFLAGS="$bz2_CFLAGS" | |
4295 elif test -n "$PKG_CONFIG"; then | |
4296 if test -n "$PKG_CONFIG" && \ | |
4297 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 | |
4298 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 | |
4299 ac_status=$? | |
4300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4301 test $ac_status = 0; }; then | |
4302 pkg_cv_bz2_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null` | |
4303 test "x$?" != "x0" && pkg_failed=yes | |
4304 else | |
4305 pkg_failed=yes | |
4306 fi | |
4307 else | |
4308 pkg_failed=untried | |
4309 fi | |
4310 if test -n "$bz2_LIBS"; then | |
4311 pkg_cv_bz2_LIBS="$bz2_LIBS" | |
4312 elif test -n "$PKG_CONFIG"; then | |
4313 if test -n "$PKG_CONFIG" && \ | |
4314 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 | |
4315 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 | |
4316 ac_status=$? | |
4317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4318 test $ac_status = 0; }; then | |
4319 pkg_cv_bz2_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null` | |
4320 test "x$?" != "x0" && pkg_failed=yes | |
4321 else | |
4322 pkg_failed=yes | |
4323 fi | |
4324 else | |
4325 pkg_failed=untried | |
4326 fi | |
4327 | |
4328 | |
4329 | |
4330 if test $pkg_failed = yes; then | |
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4332 $as_echo "no" >&6; } | |
4333 | |
4334 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
4335 _pkg_short_errors_supported=yes | |
4336 else | |
4337 _pkg_short_errors_supported=no | |
4338 fi | |
4339 if test $_pkg_short_errors_supported = yes; then | |
4340 bz2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1` | |
4341 else | |
4342 bz2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1` | |
4343 fi | |
4344 # Put the nasty error message in config.log where it belongs | |
4345 echo "$bz2_PKG_ERRORS" >&5 | |
4346 | |
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5 | |
4348 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} | |
4349 elif test $pkg_failed = untried; then | |
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4351 $as_echo "no" >&6; } | |
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5 | |
4353 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} | |
4354 else | |
4355 bz2_CFLAGS=$pkg_cv_bz2_CFLAGS | |
4356 bz2_LIBS=$pkg_cv_bz2_LIBS | |
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4358 $as_echo "yes" >&6; } | |
4359 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $bz2_CFLAGS";LIBS="$LIBS $bz2_LIBS";SV_MODULE_FAILED="" | |
4360 fi | |
4361 fi | |
4362 if test -n "$SV_MODULE_FAILED"; then | |
4363 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` | |
4364 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default" | |
4365 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4366 HAVES="$HAVES $SV_MODULE_HAVE" | |
4367 else | |
4368 as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5 | |
4369 fi | |
4370 | |
4371 | |
4372 if test -n "$SV_MODULE_LIB"; then | |
4373 as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` | |
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 | |
4375 $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; } | |
4376 if eval \${$as_ac_Lib+:} false; then : | |
4377 $as_echo_n "(cached) " >&6 | |
4378 else | |
4379 ac_check_lib_save_LIBS=$LIBS | |
4380 LIBS="-l$SV_MODULE_LIB $LIBS" | |
4381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4382 /* end confdefs.h. */ | |
4383 | |
4384 /* Override any GCC internal prototype to avoid an error. | |
4385 Use char because int might match the return type of a GCC | |
4386 builtin and then its argument prototype would still apply. */ | |
4387 #ifdef __cplusplus | |
4388 extern "C" | |
4389 #endif | |
4390 char $SV_MODULE_FUNC (); | |
4391 int | |
4392 main () | |
4393 { | |
4394 return $SV_MODULE_FUNC (); | |
4395 ; | |
4396 return 0; | |
4397 } | |
4398 _ACEOF | |
4399 if ac_fn_cxx_try_link "$LINENO"; then : | |
4400 eval "$as_ac_Lib=yes" | |
4401 else | |
4402 eval "$as_ac_Lib=no" | |
4403 fi | |
4404 rm -f core conftest.err conftest.$ac_objext \ | |
4405 conftest$ac_exeext conftest.$ac_ext | |
4406 LIBS=$ac_check_lib_save_LIBS | |
4407 fi | |
4408 eval ac_res=\$$as_ac_Lib | |
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
4410 $as_echo "$ac_res" >&6; } | |
4411 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : | |
4412 LIBS="$LIBS -l$SV_MODULE_LIB" | |
4413 else | |
4414 as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5 | |
4415 fi | |
4416 | |
4417 fi | |
4418 fi | |
4419 | |
4420 | |
4421 SV_MODULE_MODULE=fftw3 | |
4422 SV_MODULE_VERSION_TEST="fftw3 >= 3.0.0" | |
4423 SV_MODULE_HEADER=fftw3.h | |
4424 SV_MODULE_LIB=fftw3 | |
4425 SV_MODULE_FUNC=fftw_execute | |
4426 SV_MODULE_HAVE=HAVE_$(echo fftw3 | tr 'a-z' 'A-Z') | |
4427 SV_MODULE_FAILED=1 | |
4428 if test -n "$fftw3_LIBS" ; then | |
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 | |
4430 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} | |
4431 CXXFLAGS="$CXXFLAGS $fftw3_CFLAGS" | |
4432 LIBS="$LIBS $fftw3_LIBS" | |
4433 SV_MODULE_FAILED="" | |
4434 fi | |
4435 if test -z "$SV_MODULE_VERSION_TEST" ; then | |
4436 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE | |
4437 fi | |
4438 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then | |
4439 | |
4440 pkg_failed=no | |
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw3" >&5 | |
4442 $as_echo_n "checking for fftw3... " >&6; } | |
4443 | |
4444 if test -n "$fftw3_CFLAGS"; then | |
4445 pkg_cv_fftw3_CFLAGS="$fftw3_CFLAGS" | |
4446 elif test -n "$PKG_CONFIG"; then | |
4447 if test -n "$PKG_CONFIG" && \ | |
4448 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 | |
4449 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 | |
4450 ac_status=$? | |
4451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4452 test $ac_status = 0; }; then | |
4453 pkg_cv_fftw3_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null` | |
4454 test "x$?" != "x0" && pkg_failed=yes | |
4455 else | |
4456 pkg_failed=yes | |
4457 fi | |
4458 else | |
4459 pkg_failed=untried | |
4460 fi | |
4461 if test -n "$fftw3_LIBS"; then | |
4462 pkg_cv_fftw3_LIBS="$fftw3_LIBS" | |
4463 elif test -n "$PKG_CONFIG"; then | |
4464 if test -n "$PKG_CONFIG" && \ | |
4465 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 | |
4466 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 | |
4467 ac_status=$? | |
4468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4469 test $ac_status = 0; }; then | |
4470 pkg_cv_fftw3_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null` | |
4471 test "x$?" != "x0" && pkg_failed=yes | |
4472 else | |
4473 pkg_failed=yes | |
4474 fi | |
4475 else | |
4476 pkg_failed=untried | |
4477 fi | |
4478 | |
4479 | |
4480 | |
4481 if test $pkg_failed = yes; then | |
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4483 $as_echo "no" >&6; } | |
4484 | |
4485 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
4486 _pkg_short_errors_supported=yes | |
4487 else | |
4488 _pkg_short_errors_supported=no | |
4489 fi | |
4490 if test $_pkg_short_errors_supported = yes; then | |
4491 fftw3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1` | |
4492 else | |
4493 fftw3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1` | |
4494 fi | |
4495 # Put the nasty error message in config.log where it belongs | |
4496 echo "$fftw3_PKG_ERRORS" >&5 | |
4497 | |
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5 | |
4499 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} | |
4500 elif test $pkg_failed = untried; then | |
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4502 $as_echo "no" >&6; } | |
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5 | |
4504 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} | |
4505 else | |
4506 fftw3_CFLAGS=$pkg_cv_fftw3_CFLAGS | |
4507 fftw3_LIBS=$pkg_cv_fftw3_LIBS | |
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4509 $as_echo "yes" >&6; } | |
4510 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $fftw3_CFLAGS";LIBS="$LIBS $fftw3_LIBS";SV_MODULE_FAILED="" | |
4511 fi | |
4512 fi | |
4513 if test -n "$SV_MODULE_FAILED"; then | |
4514 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` | |
4515 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default" | |
4516 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4517 HAVES="$HAVES $SV_MODULE_HAVE" | |
4518 else | |
4519 as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5 | |
4520 fi | |
4521 | |
4522 | |
4523 if test -n "$SV_MODULE_LIB"; then | |
4524 as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` | |
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 | |
4526 $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; } | |
4527 if eval \${$as_ac_Lib+:} false; then : | |
4528 $as_echo_n "(cached) " >&6 | |
4529 else | |
4530 ac_check_lib_save_LIBS=$LIBS | |
4531 LIBS="-l$SV_MODULE_LIB $LIBS" | |
4532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4533 /* end confdefs.h. */ | |
4534 | |
4535 /* Override any GCC internal prototype to avoid an error. | |
4536 Use char because int might match the return type of a GCC | |
4537 builtin and then its argument prototype would still apply. */ | |
4538 #ifdef __cplusplus | |
4539 extern "C" | |
4540 #endif | |
4541 char $SV_MODULE_FUNC (); | |
4542 int | |
4543 main () | |
4544 { | |
4545 return $SV_MODULE_FUNC (); | |
4546 ; | |
4547 return 0; | |
4548 } | |
4549 _ACEOF | |
4550 if ac_fn_cxx_try_link "$LINENO"; then : | |
4551 eval "$as_ac_Lib=yes" | |
4552 else | |
4553 eval "$as_ac_Lib=no" | |
4554 fi | |
4555 rm -f core conftest.err conftest.$ac_objext \ | |
4556 conftest$ac_exeext conftest.$ac_ext | |
4557 LIBS=$ac_check_lib_save_LIBS | |
4558 fi | |
4559 eval ac_res=\$$as_ac_Lib | |
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
4561 $as_echo "$ac_res" >&6; } | |
4562 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : | |
4563 LIBS="$LIBS -l$SV_MODULE_LIB" | |
4564 else | |
4565 as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5 | |
4566 fi | |
4567 | |
4568 fi | |
4569 fi | |
4570 | |
4571 | |
4572 SV_MODULE_MODULE=fftw3f | |
4573 SV_MODULE_VERSION_TEST="fftw3f >= 3.0.0" | |
4574 SV_MODULE_HEADER=fftw3.h | |
4575 SV_MODULE_LIB=fftw3f | |
4576 SV_MODULE_FUNC=fftwf_execute | |
4577 SV_MODULE_HAVE=HAVE_$(echo fftw3f | tr 'a-z' 'A-Z') | |
4578 SV_MODULE_FAILED=1 | |
4579 if test -n "$fftw3f_LIBS" ; then | |
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 | |
4581 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} | |
4582 CXXFLAGS="$CXXFLAGS $fftw3f_CFLAGS" | |
4583 LIBS="$LIBS $fftw3f_LIBS" | |
4584 SV_MODULE_FAILED="" | |
4585 fi | |
4586 if test -z "$SV_MODULE_VERSION_TEST" ; then | |
4587 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE | |
4588 fi | |
4589 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then | |
4590 | |
4591 pkg_failed=no | |
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw3f" >&5 | |
4593 $as_echo_n "checking for fftw3f... " >&6; } | |
4594 | |
4595 if test -n "$fftw3f_CFLAGS"; then | |
4596 pkg_cv_fftw3f_CFLAGS="$fftw3f_CFLAGS" | |
4597 elif test -n "$PKG_CONFIG"; then | |
4598 if test -n "$PKG_CONFIG" && \ | |
4599 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 | |
4600 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 | |
4601 ac_status=$? | |
4602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4603 test $ac_status = 0; }; then | |
4604 pkg_cv_fftw3f_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null` | |
4605 test "x$?" != "x0" && pkg_failed=yes | |
4606 else | |
4607 pkg_failed=yes | |
4608 fi | |
4609 else | |
4610 pkg_failed=untried | |
4611 fi | |
4612 if test -n "$fftw3f_LIBS"; then | |
4613 pkg_cv_fftw3f_LIBS="$fftw3f_LIBS" | |
4614 elif test -n "$PKG_CONFIG"; then | |
4615 if test -n "$PKG_CONFIG" && \ | |
4616 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 | |
4617 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 | |
4618 ac_status=$? | |
4619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4620 test $ac_status = 0; }; then | |
4621 pkg_cv_fftw3f_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null` | |
4622 test "x$?" != "x0" && pkg_failed=yes | |
4623 else | |
4624 pkg_failed=yes | |
4625 fi | |
4626 else | |
4627 pkg_failed=untried | |
4628 fi | |
4629 | |
4630 | |
4631 | |
4632 if test $pkg_failed = yes; then | |
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4634 $as_echo "no" >&6; } | |
4635 | |
4636 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
4637 _pkg_short_errors_supported=yes | |
4638 else | |
4639 _pkg_short_errors_supported=no | |
4640 fi | |
4641 if test $_pkg_short_errors_supported = yes; then | |
4642 fftw3f_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1` | |
4643 else | |
4644 fftw3f_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1` | |
4645 fi | |
4646 # Put the nasty error message in config.log where it belongs | |
4647 echo "$fftw3f_PKG_ERRORS" >&5 | |
4648 | |
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5 | |
4650 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} | |
4651 elif test $pkg_failed = untried; then | |
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4653 $as_echo "no" >&6; } | |
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5 | |
4655 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} | |
4656 else | |
4657 fftw3f_CFLAGS=$pkg_cv_fftw3f_CFLAGS | |
4658 fftw3f_LIBS=$pkg_cv_fftw3f_LIBS | |
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4660 $as_echo "yes" >&6; } | |
4661 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $fftw3f_CFLAGS";LIBS="$LIBS $fftw3f_LIBS";SV_MODULE_FAILED="" | |
4662 fi | |
4663 fi | |
4664 if test -n "$SV_MODULE_FAILED"; then | |
4665 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` | |
4666 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default" | |
4667 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4668 HAVES="$HAVES $SV_MODULE_HAVE" | |
4669 else | |
4670 as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5 | |
4671 fi | |
4672 | |
4673 | |
4674 if test -n "$SV_MODULE_LIB"; then | |
4675 as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` | |
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 | |
4677 $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; } | |
4678 if eval \${$as_ac_Lib+:} false; then : | |
4679 $as_echo_n "(cached) " >&6 | |
4680 else | |
4681 ac_check_lib_save_LIBS=$LIBS | |
4682 LIBS="-l$SV_MODULE_LIB $LIBS" | |
4683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4684 /* end confdefs.h. */ | |
4685 | |
4686 /* Override any GCC internal prototype to avoid an error. | |
4687 Use char because int might match the return type of a GCC | |
4688 builtin and then its argument prototype would still apply. */ | |
4689 #ifdef __cplusplus | |
4690 extern "C" | |
4691 #endif | |
4692 char $SV_MODULE_FUNC (); | |
4693 int | |
4694 main () | |
4695 { | |
4696 return $SV_MODULE_FUNC (); | |
4697 ; | |
4698 return 0; | |
4699 } | |
4700 _ACEOF | |
4701 if ac_fn_cxx_try_link "$LINENO"; then : | |
4702 eval "$as_ac_Lib=yes" | |
4703 else | |
4704 eval "$as_ac_Lib=no" | |
4705 fi | |
4706 rm -f core conftest.err conftest.$ac_objext \ | |
4707 conftest$ac_exeext conftest.$ac_ext | |
4708 LIBS=$ac_check_lib_save_LIBS | |
4709 fi | |
4710 eval ac_res=\$$as_ac_Lib | |
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
4712 $as_echo "$ac_res" >&6; } | |
4713 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : | |
4714 LIBS="$LIBS -l$SV_MODULE_LIB" | |
4715 else | |
4716 as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5 | |
4717 fi | |
4718 | |
4719 fi | |
4720 fi | |
4721 | |
4722 | |
4723 SV_MODULE_MODULE=sndfile | |
4724 SV_MODULE_VERSION_TEST="sndfile >= 1.0.16" | |
4725 SV_MODULE_HEADER=sndfile.h | |
4726 SV_MODULE_LIB=sndfile | |
4727 SV_MODULE_FUNC=sf_open | |
4728 SV_MODULE_HAVE=HAVE_$(echo sndfile | tr 'a-z' 'A-Z') | |
4729 SV_MODULE_FAILED=1 | |
4730 if test -n "$sndfile_LIBS" ; then | |
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 | |
4732 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} | |
4733 CXXFLAGS="$CXXFLAGS $sndfile_CFLAGS" | |
4734 LIBS="$LIBS $sndfile_LIBS" | |
4735 SV_MODULE_FAILED="" | |
4736 fi | |
4737 if test -z "$SV_MODULE_VERSION_TEST" ; then | |
4738 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE | |
4739 fi | |
4740 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then | |
4741 | |
4742 pkg_failed=no | |
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndfile" >&5 | |
4744 $as_echo_n "checking for sndfile... " >&6; } | |
4745 | |
4746 if test -n "$sndfile_CFLAGS"; then | |
4747 pkg_cv_sndfile_CFLAGS="$sndfile_CFLAGS" | |
4748 elif test -n "$PKG_CONFIG"; then | |
4749 if test -n "$PKG_CONFIG" && \ | |
4750 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 | |
4751 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 | |
4752 ac_status=$? | |
4753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4754 test $ac_status = 0; }; then | |
4755 pkg_cv_sndfile_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null` | |
4756 test "x$?" != "x0" && pkg_failed=yes | |
4757 else | |
4758 pkg_failed=yes | |
4759 fi | |
4760 else | |
4761 pkg_failed=untried | |
4762 fi | |
4763 if test -n "$sndfile_LIBS"; then | |
4764 pkg_cv_sndfile_LIBS="$sndfile_LIBS" | |
4765 elif test -n "$PKG_CONFIG"; then | |
4766 if test -n "$PKG_CONFIG" && \ | |
4767 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 | |
4768 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 | |
4769 ac_status=$? | |
4770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4771 test $ac_status = 0; }; then | |
4772 pkg_cv_sndfile_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null` | |
4773 test "x$?" != "x0" && pkg_failed=yes | |
4774 else | |
4775 pkg_failed=yes | |
4776 fi | |
4777 else | |
4778 pkg_failed=untried | |
4779 fi | |
4780 | |
4781 | |
4782 | |
4783 if test $pkg_failed = yes; then | |
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4785 $as_echo "no" >&6; } | |
4786 | |
4787 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
4788 _pkg_short_errors_supported=yes | |
4789 else | |
4790 _pkg_short_errors_supported=no | |
4791 fi | |
4792 if test $_pkg_short_errors_supported = yes; then | |
4793 sndfile_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1` | |
4794 else | |
4795 sndfile_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1` | |
4796 fi | |
4797 # Put the nasty error message in config.log where it belongs | |
4798 echo "$sndfile_PKG_ERRORS" >&5 | |
4799 | |
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5 | |
4801 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} | |
4802 elif test $pkg_failed = untried; then | |
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4804 $as_echo "no" >&6; } | |
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5 | |
4806 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} | |
4807 else | |
4808 sndfile_CFLAGS=$pkg_cv_sndfile_CFLAGS | |
4809 sndfile_LIBS=$pkg_cv_sndfile_LIBS | |
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4811 $as_echo "yes" >&6; } | |
4812 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $sndfile_CFLAGS";LIBS="$LIBS $sndfile_LIBS";SV_MODULE_FAILED="" | |
4813 fi | |
4814 fi | |
4815 if test -n "$SV_MODULE_FAILED"; then | |
4816 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` | |
4817 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default" | |
4818 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4819 HAVES="$HAVES $SV_MODULE_HAVE" | |
4820 else | |
4821 as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5 | |
4822 fi | |
4823 | |
4824 | |
4825 if test -n "$SV_MODULE_LIB"; then | |
4826 as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` | |
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 | |
4828 $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; } | |
4829 if eval \${$as_ac_Lib+:} false; then : | |
4830 $as_echo_n "(cached) " >&6 | |
4831 else | |
4832 ac_check_lib_save_LIBS=$LIBS | |
4833 LIBS="-l$SV_MODULE_LIB $LIBS" | |
4834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4835 /* end confdefs.h. */ | |
4836 | |
4837 /* Override any GCC internal prototype to avoid an error. | |
4838 Use char because int might match the return type of a GCC | |
4839 builtin and then its argument prototype would still apply. */ | |
4840 #ifdef __cplusplus | |
4841 extern "C" | |
4842 #endif | |
4843 char $SV_MODULE_FUNC (); | |
4844 int | |
4845 main () | |
4846 { | |
4847 return $SV_MODULE_FUNC (); | |
4848 ; | |
4849 return 0; | |
4850 } | |
4851 _ACEOF | |
4852 if ac_fn_cxx_try_link "$LINENO"; then : | |
4853 eval "$as_ac_Lib=yes" | |
4854 else | |
4855 eval "$as_ac_Lib=no" | |
4856 fi | |
4857 rm -f core conftest.err conftest.$ac_objext \ | |
4858 conftest$ac_exeext conftest.$ac_ext | |
4859 LIBS=$ac_check_lib_save_LIBS | |
4860 fi | |
4861 eval ac_res=\$$as_ac_Lib | |
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
4863 $as_echo "$ac_res" >&6; } | |
4864 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : | |
4865 LIBS="$LIBS -l$SV_MODULE_LIB" | |
4866 else | |
4867 as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5 | |
4868 fi | |
4869 | |
4870 fi | |
4871 fi | |
4872 | |
4873 | |
4874 SV_MODULE_MODULE=samplerate | |
4875 SV_MODULE_VERSION_TEST="samplerate >= 0.1.2" | |
4876 SV_MODULE_HEADER=samplerate.h | |
4877 SV_MODULE_LIB=samplerate | |
4878 SV_MODULE_FUNC=src_new | |
4879 SV_MODULE_HAVE=HAVE_$(echo samplerate | tr 'a-z' 'A-Z') | |
4880 SV_MODULE_FAILED=1 | |
4881 if test -n "$samplerate_LIBS" ; then | |
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 | |
4883 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} | |
4884 CXXFLAGS="$CXXFLAGS $samplerate_CFLAGS" | |
4885 LIBS="$LIBS $samplerate_LIBS" | |
4886 SV_MODULE_FAILED="" | |
4887 fi | |
4888 if test -z "$SV_MODULE_VERSION_TEST" ; then | |
4889 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE | |
4890 fi | |
4891 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then | |
4892 | |
4893 pkg_failed=no | |
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for samplerate" >&5 | |
4895 $as_echo_n "checking for samplerate... " >&6; } | |
4896 | |
4897 if test -n "$samplerate_CFLAGS"; then | |
4898 pkg_cv_samplerate_CFLAGS="$samplerate_CFLAGS" | |
4899 elif test -n "$PKG_CONFIG"; then | |
4900 if test -n "$PKG_CONFIG" && \ | |
4901 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 | |
4902 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 | |
4903 ac_status=$? | |
4904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4905 test $ac_status = 0; }; then | |
4906 pkg_cv_samplerate_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null` | |
4907 test "x$?" != "x0" && pkg_failed=yes | |
4908 else | |
4909 pkg_failed=yes | |
4910 fi | |
4911 else | |
4912 pkg_failed=untried | |
4913 fi | |
4914 if test -n "$samplerate_LIBS"; then | |
4915 pkg_cv_samplerate_LIBS="$samplerate_LIBS" | |
4916 elif test -n "$PKG_CONFIG"; then | |
4917 if test -n "$PKG_CONFIG" && \ | |
4918 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 | |
4919 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 | |
4920 ac_status=$? | |
4921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4922 test $ac_status = 0; }; then | |
4923 pkg_cv_samplerate_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null` | |
4924 test "x$?" != "x0" && pkg_failed=yes | |
4925 else | |
4926 pkg_failed=yes | |
4927 fi | |
4928 else | |
4929 pkg_failed=untried | |
4930 fi | |
4931 | |
4932 | |
4933 | |
4934 if test $pkg_failed = yes; then | |
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4936 $as_echo "no" >&6; } | |
4937 | |
4938 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
4939 _pkg_short_errors_supported=yes | |
4940 else | |
4941 _pkg_short_errors_supported=no | |
4942 fi | |
4943 if test $_pkg_short_errors_supported = yes; then | |
4944 samplerate_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1` | |
4945 else | |
4946 samplerate_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1` | |
4947 fi | |
4948 # Put the nasty error message in config.log where it belongs | |
4949 echo "$samplerate_PKG_ERRORS" >&5 | |
4950 | |
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5 | |
4952 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} | |
4953 elif test $pkg_failed = untried; then | |
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4955 $as_echo "no" >&6; } | |
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5 | |
4957 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} | |
4958 else | |
4959 samplerate_CFLAGS=$pkg_cv_samplerate_CFLAGS | |
4960 samplerate_LIBS=$pkg_cv_samplerate_LIBS | |
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4962 $as_echo "yes" >&6; } | |
4963 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $samplerate_CFLAGS";LIBS="$LIBS $samplerate_LIBS";SV_MODULE_FAILED="" | |
4964 fi | |
4965 fi | |
4966 if test -n "$SV_MODULE_FAILED"; then | |
4967 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` | |
4968 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default" | |
4969 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4970 HAVES="$HAVES $SV_MODULE_HAVE" | |
4971 else | |
4972 as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5 | |
4973 fi | |
4974 | |
4975 | |
4976 if test -n "$SV_MODULE_LIB"; then | |
4977 as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` | |
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 | |
4979 $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; } | |
4980 if eval \${$as_ac_Lib+:} false; then : | |
4981 $as_echo_n "(cached) " >&6 | |
4982 else | |
4983 ac_check_lib_save_LIBS=$LIBS | |
4984 LIBS="-l$SV_MODULE_LIB $LIBS" | |
4985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4986 /* end confdefs.h. */ | |
4987 | |
4988 /* Override any GCC internal prototype to avoid an error. | |
4989 Use char because int might match the return type of a GCC | |
4990 builtin and then its argument prototype would still apply. */ | |
4991 #ifdef __cplusplus | |
4992 extern "C" | |
4993 #endif | |
4994 char $SV_MODULE_FUNC (); | |
4995 int | |
4996 main () | |
4997 { | |
4998 return $SV_MODULE_FUNC (); | |
4999 ; | |
5000 return 0; | |
5001 } | |
5002 _ACEOF | |
5003 if ac_fn_cxx_try_link "$LINENO"; then : | |
5004 eval "$as_ac_Lib=yes" | |
5005 else | |
5006 eval "$as_ac_Lib=no" | |
5007 fi | |
5008 rm -f core conftest.err conftest.$ac_objext \ | |
5009 conftest$ac_exeext conftest.$ac_ext | |
5010 LIBS=$ac_check_lib_save_LIBS | |
5011 fi | |
5012 eval ac_res=\$$as_ac_Lib | |
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
5014 $as_echo "$ac_res" >&6; } | |
5015 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : | |
5016 LIBS="$LIBS -l$SV_MODULE_LIB" | |
5017 else | |
5018 as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5 | |
5019 fi | |
5020 | |
5021 fi | |
5022 fi | |
5023 | |
5024 | |
5025 SV_MODULE_MODULE=vamp | |
5026 SV_MODULE_VERSION_TEST="vamp >= 2.1" | |
5027 SV_MODULE_HEADER=vamp/vamp.h | |
5028 SV_MODULE_LIB= | |
5029 SV_MODULE_FUNC= | |
5030 SV_MODULE_HAVE=HAVE_$(echo vamp | tr 'a-z' 'A-Z') | |
5031 SV_MODULE_FAILED=1 | |
5032 if test -n "$vamp_LIBS" ; then | |
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 | |
5034 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} | |
5035 CXXFLAGS="$CXXFLAGS $vamp_CFLAGS" | |
5036 LIBS="$LIBS $vamp_LIBS" | |
5037 SV_MODULE_FAILED="" | |
5038 fi | |
5039 if test -z "$SV_MODULE_VERSION_TEST" ; then | |
5040 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE | |
5041 fi | |
5042 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then | |
5043 | |
5044 pkg_failed=no | |
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vamp" >&5 | |
5046 $as_echo_n "checking for vamp... " >&6; } | |
5047 | |
5048 if test -n "$vamp_CFLAGS"; then | |
5049 pkg_cv_vamp_CFLAGS="$vamp_CFLAGS" | |
5050 elif test -n "$PKG_CONFIG"; then | |
5051 if test -n "$PKG_CONFIG" && \ | |
5052 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 | |
5053 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 | |
5054 ac_status=$? | |
5055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5056 test $ac_status = 0; }; then | |
5057 pkg_cv_vamp_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null` | |
5058 test "x$?" != "x0" && pkg_failed=yes | |
5059 else | |
5060 pkg_failed=yes | |
5061 fi | |
5062 else | |
5063 pkg_failed=untried | |
5064 fi | |
5065 if test -n "$vamp_LIBS"; then | |
5066 pkg_cv_vamp_LIBS="$vamp_LIBS" | |
5067 elif test -n "$PKG_CONFIG"; then | |
5068 if test -n "$PKG_CONFIG" && \ | |
5069 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 | |
5070 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 | |
5071 ac_status=$? | |
5072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5073 test $ac_status = 0; }; then | |
5074 pkg_cv_vamp_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null` | |
5075 test "x$?" != "x0" && pkg_failed=yes | |
5076 else | |
5077 pkg_failed=yes | |
5078 fi | |
5079 else | |
5080 pkg_failed=untried | |
5081 fi | |
5082 | |
5083 | |
5084 | |
5085 if test $pkg_failed = yes; then | |
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5087 $as_echo "no" >&6; } | |
5088 | |
5089 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
5090 _pkg_short_errors_supported=yes | |
5091 else | |
5092 _pkg_short_errors_supported=no | |
5093 fi | |
5094 if test $_pkg_short_errors_supported = yes; then | |
5095 vamp_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1` | |
5096 else | |
5097 vamp_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1` | |
5098 fi | |
5099 # Put the nasty error message in config.log where it belongs | |
5100 echo "$vamp_PKG_ERRORS" >&5 | |
5101 | |
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5 | |
5103 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} | |
5104 elif test $pkg_failed = untried; then | |
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5106 $as_echo "no" >&6; } | |
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5 | |
5108 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} | |
5109 else | |
5110 vamp_CFLAGS=$pkg_cv_vamp_CFLAGS | |
5111 vamp_LIBS=$pkg_cv_vamp_LIBS | |
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5113 $as_echo "yes" >&6; } | |
5114 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $vamp_CFLAGS";LIBS="$LIBS $vamp_LIBS";SV_MODULE_FAILED="" | |
5115 fi | |
5116 fi | |
5117 if test -n "$SV_MODULE_FAILED"; then | |
5118 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` | |
5119 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default" | |
5120 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
5121 HAVES="$HAVES $SV_MODULE_HAVE" | |
5122 else | |
5123 as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5 | |
5124 fi | |
5125 | |
5126 | |
5127 if test -n "$SV_MODULE_LIB"; then | |
5128 as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` | |
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 | |
5130 $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; } | |
5131 if eval \${$as_ac_Lib+:} false; then : | |
5132 $as_echo_n "(cached) " >&6 | |
5133 else | |
5134 ac_check_lib_save_LIBS=$LIBS | |
5135 LIBS="-l$SV_MODULE_LIB $LIBS" | |
5136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5137 /* end confdefs.h. */ | |
5138 | |
5139 /* Override any GCC internal prototype to avoid an error. | |
5140 Use char because int might match the return type of a GCC | |
5141 builtin and then its argument prototype would still apply. */ | |
5142 #ifdef __cplusplus | |
5143 extern "C" | |
5144 #endif | |
5145 char $SV_MODULE_FUNC (); | |
5146 int | |
5147 main () | |
5148 { | |
5149 return $SV_MODULE_FUNC (); | |
5150 ; | |
5151 return 0; | |
5152 } | |
5153 _ACEOF | |
5154 if ac_fn_cxx_try_link "$LINENO"; then : | |
5155 eval "$as_ac_Lib=yes" | |
5156 else | |
5157 eval "$as_ac_Lib=no" | |
5158 fi | |
5159 rm -f core conftest.err conftest.$ac_objext \ | |
5160 conftest$ac_exeext conftest.$ac_ext | |
5161 LIBS=$ac_check_lib_save_LIBS | |
5162 fi | |
5163 eval ac_res=\$$as_ac_Lib | |
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
5165 $as_echo "$ac_res" >&6; } | |
5166 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : | |
5167 LIBS="$LIBS -l$SV_MODULE_LIB" | |
5168 else | |
5169 as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5 | |
5170 fi | |
5171 | |
5172 fi | |
5173 fi | |
5174 | |
5175 | |
5176 SV_MODULE_MODULE=vamphostsdk | |
5177 SV_MODULE_VERSION_TEST="vamp-hostsdk >= 2.3.1" | |
5178 SV_MODULE_HEADER=vamp-hostsdk/PluginLoader.h | |
5179 SV_MODULE_LIB=vamp-hostsdk | |
5180 SV_MODULE_FUNC=libvamphostsdk_v_2_3_1_present | |
5181 SV_MODULE_HAVE=HAVE_$(echo vamphostsdk | tr 'a-z' 'A-Z') | |
5182 SV_MODULE_FAILED=1 | |
5183 if test -n "$vamphostsdk_LIBS" ; then | |
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 | |
5185 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} | |
5186 CXXFLAGS="$CXXFLAGS $vamphostsdk_CFLAGS" | |
5187 LIBS="$LIBS $vamphostsdk_LIBS" | |
5188 SV_MODULE_FAILED="" | |
5189 fi | |
5190 if test -z "$SV_MODULE_VERSION_TEST" ; then | |
5191 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE | |
5192 fi | |
5193 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then | |
5194 | |
5195 pkg_failed=no | |
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vamphostsdk" >&5 | |
5197 $as_echo_n "checking for vamphostsdk... " >&6; } | |
5198 | |
5199 if test -n "$vamphostsdk_CFLAGS"; then | |
5200 pkg_cv_vamphostsdk_CFLAGS="$vamphostsdk_CFLAGS" | |
5201 elif test -n "$PKG_CONFIG"; then | |
5202 if test -n "$PKG_CONFIG" && \ | |
5203 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 | |
5204 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 | |
5205 ac_status=$? | |
5206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5207 test $ac_status = 0; }; then | |
5208 pkg_cv_vamphostsdk_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null` | |
5209 test "x$?" != "x0" && pkg_failed=yes | |
5210 else | |
5211 pkg_failed=yes | |
5212 fi | |
5213 else | |
5214 pkg_failed=untried | |
5215 fi | |
5216 if test -n "$vamphostsdk_LIBS"; then | |
5217 pkg_cv_vamphostsdk_LIBS="$vamphostsdk_LIBS" | |
5218 elif test -n "$PKG_CONFIG"; then | |
5219 if test -n "$PKG_CONFIG" && \ | |
5220 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 | |
5221 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 | |
5222 ac_status=$? | |
5223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5224 test $ac_status = 0; }; then | |
5225 pkg_cv_vamphostsdk_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null` | |
5226 test "x$?" != "x0" && pkg_failed=yes | |
5227 else | |
5228 pkg_failed=yes | |
5229 fi | |
5230 else | |
5231 pkg_failed=untried | |
5232 fi | |
5233 | |
5234 | |
5235 | |
5236 if test $pkg_failed = yes; then | |
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5238 $as_echo "no" >&6; } | |
5239 | |
5240 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
5241 _pkg_short_errors_supported=yes | |
5242 else | |
5243 _pkg_short_errors_supported=no | |
5244 fi | |
5245 if test $_pkg_short_errors_supported = yes; then | |
5246 vamphostsdk_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1` | |
5247 else | |
5248 vamphostsdk_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1` | |
5249 fi | |
5250 # Put the nasty error message in config.log where it belongs | |
5251 echo "$vamphostsdk_PKG_ERRORS" >&5 | |
5252 | |
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5 | |
5254 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} | |
5255 elif test $pkg_failed = untried; then | |
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5257 $as_echo "no" >&6; } | |
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5 | |
5259 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} | |
5260 else | |
5261 vamphostsdk_CFLAGS=$pkg_cv_vamphostsdk_CFLAGS | |
5262 vamphostsdk_LIBS=$pkg_cv_vamphostsdk_LIBS | |
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5264 $as_echo "yes" >&6; } | |
5265 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $vamphostsdk_CFLAGS";LIBS="$LIBS $vamphostsdk_LIBS";SV_MODULE_FAILED="" | |
5266 fi | |
5267 fi | |
5268 if test -n "$SV_MODULE_FAILED"; then | |
5269 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` | |
5270 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default" | |
5271 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
5272 HAVES="$HAVES $SV_MODULE_HAVE" | |
5273 else | |
5274 as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5 | |
5275 fi | |
5276 | |
5277 | |
5278 if test -n "$SV_MODULE_LIB"; then | |
5279 as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` | |
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 | |
5281 $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; } | |
5282 if eval \${$as_ac_Lib+:} false; then : | |
5283 $as_echo_n "(cached) " >&6 | |
5284 else | |
5285 ac_check_lib_save_LIBS=$LIBS | |
5286 LIBS="-l$SV_MODULE_LIB $LIBS" | |
5287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5288 /* end confdefs.h. */ | |
5289 | |
5290 /* Override any GCC internal prototype to avoid an error. | |
5291 Use char because int might match the return type of a GCC | |
5292 builtin and then its argument prototype would still apply. */ | |
5293 #ifdef __cplusplus | |
5294 extern "C" | |
5295 #endif | |
5296 char $SV_MODULE_FUNC (); | |
5297 int | |
5298 main () | |
5299 { | |
5300 return $SV_MODULE_FUNC (); | |
5301 ; | |
5302 return 0; | |
5303 } | |
5304 _ACEOF | |
5305 if ac_fn_cxx_try_link "$LINENO"; then : | |
5306 eval "$as_ac_Lib=yes" | |
5307 else | |
5308 eval "$as_ac_Lib=no" | |
5309 fi | |
5310 rm -f core conftest.err conftest.$ac_objext \ | |
5311 conftest$ac_exeext conftest.$ac_ext | |
5312 LIBS=$ac_check_lib_save_LIBS | |
5313 fi | |
5314 eval ac_res=\$$as_ac_Lib | |
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
5316 $as_echo "$ac_res" >&6; } | |
5317 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : | |
5318 LIBS="$LIBS -l$SV_MODULE_LIB" | |
5319 else | |
5320 as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5 | |
5321 fi | |
5322 | |
5323 fi | |
5324 fi | |
5325 | |
5326 | |
5327 SV_MODULE_MODULE=rubberband | |
5328 SV_MODULE_VERSION_TEST="rubberband" | |
5329 SV_MODULE_HEADER=rubberband/RubberBandStretcher.h | |
5330 SV_MODULE_LIB=rubberband | |
5331 SV_MODULE_FUNC=rubberband_new | |
5332 SV_MODULE_HAVE=HAVE_$(echo rubberband | tr 'a-z' 'A-Z') | |
5333 SV_MODULE_FAILED=1 | |
5334 if test -n "$rubberband_LIBS" ; then | |
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 | |
5336 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} | |
5337 CXXFLAGS="$CXXFLAGS $rubberband_CFLAGS" | |
5338 LIBS="$LIBS $rubberband_LIBS" | |
5339 SV_MODULE_FAILED="" | |
5340 fi | |
5341 if test -z "$SV_MODULE_VERSION_TEST" ; then | |
5342 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE | |
5343 fi | |
5344 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then | |
5345 | |
5346 pkg_failed=no | |
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rubberband" >&5 | |
5348 $as_echo_n "checking for rubberband... " >&6; } | |
5349 | |
5350 if test -n "$rubberband_CFLAGS"; then | |
5351 pkg_cv_rubberband_CFLAGS="$rubberband_CFLAGS" | |
5352 elif test -n "$PKG_CONFIG"; then | |
5353 if test -n "$PKG_CONFIG" && \ | |
5354 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 | |
5355 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 | |
5356 ac_status=$? | |
5357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5358 test $ac_status = 0; }; then | |
5359 pkg_cv_rubberband_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null` | |
5360 test "x$?" != "x0" && pkg_failed=yes | |
5361 else | |
5362 pkg_failed=yes | |
5363 fi | |
5364 else | |
5365 pkg_failed=untried | |
5366 fi | |
5367 if test -n "$rubberband_LIBS"; then | |
5368 pkg_cv_rubberband_LIBS="$rubberband_LIBS" | |
5369 elif test -n "$PKG_CONFIG"; then | |
5370 if test -n "$PKG_CONFIG" && \ | |
5371 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 | |
5372 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 | |
5373 ac_status=$? | |
5374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5375 test $ac_status = 0; }; then | |
5376 pkg_cv_rubberband_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null` | |
5377 test "x$?" != "x0" && pkg_failed=yes | |
5378 else | |
5379 pkg_failed=yes | |
5380 fi | |
5381 else | |
5382 pkg_failed=untried | |
5383 fi | |
5384 | |
5385 | |
5386 | |
5387 if test $pkg_failed = yes; then | |
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5389 $as_echo "no" >&6; } | |
5390 | |
5391 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
5392 _pkg_short_errors_supported=yes | |
5393 else | |
5394 _pkg_short_errors_supported=no | |
5395 fi | |
5396 if test $_pkg_short_errors_supported = yes; then | |
5397 rubberband_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1` | |
5398 else | |
5399 rubberband_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1` | |
5400 fi | |
5401 # Put the nasty error message in config.log where it belongs | |
5402 echo "$rubberband_PKG_ERRORS" >&5 | |
5403 | |
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5 | |
5405 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} | |
5406 elif test $pkg_failed = untried; then | |
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5408 $as_echo "no" >&6; } | |
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5 | |
5410 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} | |
5411 else | |
5412 rubberband_CFLAGS=$pkg_cv_rubberband_CFLAGS | |
5413 rubberband_LIBS=$pkg_cv_rubberband_LIBS | |
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5415 $as_echo "yes" >&6; } | |
5416 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $rubberband_CFLAGS";LIBS="$LIBS $rubberband_LIBS";SV_MODULE_FAILED="" | |
5417 fi | |
5418 fi | |
5419 if test -n "$SV_MODULE_FAILED"; then | |
5420 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` | |
5421 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default" | |
5422 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
5423 HAVES="$HAVES $SV_MODULE_HAVE" | |
5424 else | |
5425 as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5 | |
5426 fi | |
5427 | |
5428 | |
5429 if test -n "$SV_MODULE_LIB"; then | |
5430 as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` | |
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 | |
5432 $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; } | |
5433 if eval \${$as_ac_Lib+:} false; then : | |
5434 $as_echo_n "(cached) " >&6 | |
5435 else | |
5436 ac_check_lib_save_LIBS=$LIBS | |
5437 LIBS="-l$SV_MODULE_LIB $LIBS" | |
5438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5439 /* end confdefs.h. */ | |
5440 | |
5441 /* Override any GCC internal prototype to avoid an error. | |
5442 Use char because int might match the return type of a GCC | |
5443 builtin and then its argument prototype would still apply. */ | |
5444 #ifdef __cplusplus | |
5445 extern "C" | |
5446 #endif | |
5447 char $SV_MODULE_FUNC (); | |
5448 int | |
5449 main () | |
5450 { | |
5451 return $SV_MODULE_FUNC (); | |
5452 ; | |
5453 return 0; | |
5454 } | |
5455 _ACEOF | |
5456 if ac_fn_cxx_try_link "$LINENO"; then : | |
5457 eval "$as_ac_Lib=yes" | |
5458 else | |
5459 eval "$as_ac_Lib=no" | |
5460 fi | |
5461 rm -f core conftest.err conftest.$ac_objext \ | |
5462 conftest$ac_exeext conftest.$ac_ext | |
5463 LIBS=$ac_check_lib_save_LIBS | |
5464 fi | |
5465 eval ac_res=\$$as_ac_Lib | |
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
5467 $as_echo "$ac_res" >&6; } | |
5468 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : | |
5469 LIBS="$LIBS -l$SV_MODULE_LIB" | |
5470 else | |
5471 as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5 | |
5472 fi | |
5473 | |
5474 fi | |
5475 fi | |
5476 | |
5477 | |
5478 SV_MODULE_MODULE=dataquay | |
5479 SV_MODULE_VERSION_TEST="dataquay >= 0.9" | |
5480 SV_MODULE_HEADER=dataquay/Uri.h | |
5481 SV_MODULE_LIB=dataquay | |
5482 SV_MODULE_FUNC=dataquay_v_0_9_present | |
5483 SV_MODULE_HAVE=HAVE_$(echo dataquay | tr 'a-z' 'A-Z') | |
5484 SV_MODULE_FAILED=1 | |
5485 if test -n "$dataquay_LIBS" ; then | |
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 | |
5487 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} | |
5488 CXXFLAGS="$CXXFLAGS $dataquay_CFLAGS" | |
5489 LIBS="$LIBS $dataquay_LIBS" | |
5490 SV_MODULE_FAILED="" | |
5491 fi | |
5492 if test -z "$SV_MODULE_VERSION_TEST" ; then | |
5493 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE | |
5494 fi | |
5495 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then | |
5496 | |
5497 pkg_failed=no | |
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dataquay" >&5 | |
5499 $as_echo_n "checking for dataquay... " >&6; } | |
5500 | |
5501 if test -n "$dataquay_CFLAGS"; then | |
5502 pkg_cv_dataquay_CFLAGS="$dataquay_CFLAGS" | |
5503 elif test -n "$PKG_CONFIG"; then | |
5504 if test -n "$PKG_CONFIG" && \ | |
5505 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 | |
5506 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 | |
5507 ac_status=$? | |
5508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5509 test $ac_status = 0; }; then | |
5510 pkg_cv_dataquay_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null` | |
5511 test "x$?" != "x0" && pkg_failed=yes | |
5512 else | |
5513 pkg_failed=yes | |
5514 fi | |
5515 else | |
5516 pkg_failed=untried | |
5517 fi | |
5518 if test -n "$dataquay_LIBS"; then | |
5519 pkg_cv_dataquay_LIBS="$dataquay_LIBS" | |
5520 elif test -n "$PKG_CONFIG"; then | |
5521 if test -n "$PKG_CONFIG" && \ | |
5522 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 | |
5523 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 | |
5524 ac_status=$? | |
5525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5526 test $ac_status = 0; }; then | |
5527 pkg_cv_dataquay_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null` | |
5528 test "x$?" != "x0" && pkg_failed=yes | |
5529 else | |
5530 pkg_failed=yes | |
5531 fi | |
5532 else | |
5533 pkg_failed=untried | |
5534 fi | |
5535 | |
5536 | |
5537 | |
5538 if test $pkg_failed = yes; then | |
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5540 $as_echo "no" >&6; } | |
5541 | |
5542 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
5543 _pkg_short_errors_supported=yes | |
5544 else | |
5545 _pkg_short_errors_supported=no | |
5546 fi | |
5547 if test $_pkg_short_errors_supported = yes; then | |
5548 dataquay_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1` | |
5549 else | |
5550 dataquay_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1` | |
5551 fi | |
5552 # Put the nasty error message in config.log where it belongs | |
5553 echo "$dataquay_PKG_ERRORS" >&5 | |
5554 | |
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5 | |
5556 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} | |
5557 elif test $pkg_failed = untried; then | |
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5559 $as_echo "no" >&6; } | |
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5 | |
5561 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} | |
5562 else | |
5563 dataquay_CFLAGS=$pkg_cv_dataquay_CFLAGS | |
5564 dataquay_LIBS=$pkg_cv_dataquay_LIBS | |
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5566 $as_echo "yes" >&6; } | |
5567 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $dataquay_CFLAGS";LIBS="$LIBS $dataquay_LIBS";SV_MODULE_FAILED="" | |
5568 fi | |
5569 fi | |
5570 if test -n "$SV_MODULE_FAILED"; then | |
5571 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` | |
5572 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default" | |
5573 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
5574 HAVES="$HAVES $SV_MODULE_HAVE" | |
5575 else | |
5576 as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5 | |
5577 fi | |
5578 | |
5579 | |
5580 if test -n "$SV_MODULE_LIB"; then | |
5581 as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` | |
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 | |
5583 $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; } | |
5584 if eval \${$as_ac_Lib+:} false; then : | |
5585 $as_echo_n "(cached) " >&6 | |
5586 else | |
5587 ac_check_lib_save_LIBS=$LIBS | |
5588 LIBS="-l$SV_MODULE_LIB $LIBS" | |
5589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5590 /* end confdefs.h. */ | |
5591 | |
5592 /* Override any GCC internal prototype to avoid an error. | |
5593 Use char because int might match the return type of a GCC | |
5594 builtin and then its argument prototype would still apply. */ | |
5595 #ifdef __cplusplus | |
5596 extern "C" | |
5597 #endif | |
5598 char $SV_MODULE_FUNC (); | |
5599 int | |
5600 main () | |
5601 { | |
5602 return $SV_MODULE_FUNC (); | |
5603 ; | |
5604 return 0; | |
5605 } | |
5606 _ACEOF | |
5607 if ac_fn_cxx_try_link "$LINENO"; then : | |
5608 eval "$as_ac_Lib=yes" | |
5609 else | |
5610 eval "$as_ac_Lib=no" | |
5611 fi | |
5612 rm -f core conftest.err conftest.$ac_objext \ | |
5613 conftest$ac_exeext conftest.$ac_ext | |
5614 LIBS=$ac_check_lib_save_LIBS | |
5615 fi | |
5616 eval ac_res=\$$as_ac_Lib | |
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
5618 $as_echo "$ac_res" >&6; } | |
5619 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : | |
5620 LIBS="$LIBS -l$SV_MODULE_LIB" | |
5621 else | |
5622 as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5 | |
5623 fi | |
5624 | |
5625 fi | |
5626 fi | |
5627 | |
5628 | |
5629 | |
5630 SV_MODULE_MODULE=liblo | |
5631 SV_MODULE_VERSION_TEST="" | |
5632 SV_MODULE_HEADER=lo/lo.h | |
5633 SV_MODULE_LIB=lo | |
5634 SV_MODULE_FUNC=lo_address_new | |
5635 SV_MODULE_HAVE=HAVE_$(echo liblo | tr 'a-z' 'A-Z') | |
5636 SV_MODULE_FAILED=1 | |
5637 if test -n "$liblo_LIBS" ; then | |
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 | |
5639 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} | |
5640 CXXFLAGS="$CXXFLAGS $liblo_CFLAGS" | |
5641 LIBS="$LIBS $liblo_LIBS" | |
5642 SV_MODULE_FAILED="" | |
5643 fi | |
5644 if test -z "$SV_MODULE_VERSION_TEST" ; then | |
5645 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE | |
5646 fi | |
5647 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then | |
5648 | |
5649 pkg_failed=no | |
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblo" >&5 | |
5651 $as_echo_n "checking for liblo... " >&6; } | |
5652 | |
5653 if test -n "$liblo_CFLAGS"; then | |
5654 pkg_cv_liblo_CFLAGS="$liblo_CFLAGS" | |
5655 elif test -n "$PKG_CONFIG"; then | |
5656 if test -n "$PKG_CONFIG" && \ | |
5657 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 | |
5658 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 | |
5659 ac_status=$? | |
5660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5661 test $ac_status = 0; }; then | |
5662 pkg_cv_liblo_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null` | |
5663 test "x$?" != "x0" && pkg_failed=yes | |
5664 else | |
5665 pkg_failed=yes | |
5666 fi | |
5667 else | |
5668 pkg_failed=untried | |
5669 fi | |
5670 if test -n "$liblo_LIBS"; then | |
5671 pkg_cv_liblo_LIBS="$liblo_LIBS" | |
5672 elif test -n "$PKG_CONFIG"; then | |
5673 if test -n "$PKG_CONFIG" && \ | |
5674 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 | |
5675 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 | |
5676 ac_status=$? | |
5677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5678 test $ac_status = 0; }; then | |
5679 pkg_cv_liblo_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null` | |
5680 test "x$?" != "x0" && pkg_failed=yes | |
5681 else | |
5682 pkg_failed=yes | |
5683 fi | |
5684 else | |
5685 pkg_failed=untried | |
5686 fi | |
5687 | |
5688 | |
5689 | |
5690 if test $pkg_failed = yes; then | |
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5692 $as_echo "no" >&6; } | |
5693 | |
5694 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
5695 _pkg_short_errors_supported=yes | |
5696 else | |
5697 _pkg_short_errors_supported=no | |
5698 fi | |
5699 if test $_pkg_short_errors_supported = yes; then | |
5700 liblo_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1` | |
5701 else | |
5702 liblo_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1` | |
5703 fi | |
5704 # Put the nasty error message in config.log where it belongs | |
5705 echo "$liblo_PKG_ERRORS" >&5 | |
5706 | |
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5 | |
5708 $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} | |
5709 elif test $pkg_failed = untried; then | |
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5711 $as_echo "no" >&6; } | |
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5 | |
5713 $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} | |
5714 else | |
5715 liblo_CFLAGS=$pkg_cv_liblo_CFLAGS | |
5716 liblo_LIBS=$pkg_cv_liblo_LIBS | |
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5718 $as_echo "yes" >&6; } | |
5719 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $liblo_CFLAGS";LIBS="$LIBS $liblo_LIBS";SV_MODULE_FAILED="" | |
5720 fi | |
5721 fi | |
5722 if test -n "$SV_MODULE_FAILED"; then | |
5723 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` | |
5724 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default" | |
5725 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
5726 HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED="" | |
5727 else | |
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5 | |
5729 $as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;} | |
5730 fi | |
5731 | |
5732 | |
5733 if test -z "$SV_MODULE_FAILED"; then | |
5734 if test -n "$SV_MODULE_LIB"; then | |
5735 as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` | |
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 | |
5737 $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; } | |
5738 if eval \${$as_ac_Lib+:} false; then : | |
5739 $as_echo_n "(cached) " >&6 | |
5740 else | |
5741 ac_check_lib_save_LIBS=$LIBS | |
5742 LIBS="-l$SV_MODULE_LIB $LIBS" | |
5743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5744 /* end confdefs.h. */ | |
5745 | |
5746 /* Override any GCC internal prototype to avoid an error. | |
5747 Use char because int might match the return type of a GCC | |
5748 builtin and then its argument prototype would still apply. */ | |
5749 #ifdef __cplusplus | |
5750 extern "C" | |
5751 #endif | |
5752 char $SV_MODULE_FUNC (); | |
5753 int | |
5754 main () | |
5755 { | |
5756 return $SV_MODULE_FUNC (); | |
5757 ; | |
5758 return 0; | |
5759 } | |
5760 _ACEOF | |
5761 if ac_fn_cxx_try_link "$LINENO"; then : | |
5762 eval "$as_ac_Lib=yes" | |
5763 else | |
5764 eval "$as_ac_Lib=no" | |
5765 fi | |
5766 rm -f core conftest.err conftest.$ac_objext \ | |
5767 conftest$ac_exeext conftest.$ac_ext | |
5768 LIBS=$ac_check_lib_save_LIBS | |
5769 fi | |
5770 eval ac_res=\$$as_ac_Lib | |
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
5772 $as_echo "$ac_res" >&6; } | |
5773 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : | |
5774 LIBS="$LIBS -l$SV_MODULE_LIB" | |
5775 else | |
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5 | |
5777 $as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;} | |
5778 fi | |
5779 | |
5780 fi | |
5781 fi | |
5782 fi | |
5783 | |
5784 | |
5785 SV_MODULE_MODULE=portaudio_2_0 | |
5786 SV_MODULE_VERSION_TEST="portaudio-2.0 >= 19" | |
5787 SV_MODULE_HEADER=portaudio.h | |
5788 SV_MODULE_LIB=portaudio | |
5789 SV_MODULE_FUNC=Pa_IsFormatSupported | |
5790 SV_MODULE_HAVE=HAVE_$(echo portaudio_2_0 | tr 'a-z' 'A-Z') | |
5791 SV_MODULE_FAILED=1 | |
5792 if test -n "$portaudio_2_0_LIBS" ; then | |
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 | |
5794 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} | |
5795 CXXFLAGS="$CXXFLAGS $portaudio_2_0_CFLAGS" | |
5796 LIBS="$LIBS $portaudio_2_0_LIBS" | |
5797 SV_MODULE_FAILED="" | |
5798 fi | |
5799 if test -z "$SV_MODULE_VERSION_TEST" ; then | |
5800 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE | |
5801 fi | |
5802 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then | |
5803 | |
5804 pkg_failed=no | |
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for portaudio_2_0" >&5 | |
5806 $as_echo_n "checking for portaudio_2_0... " >&6; } | |
5807 | |
5808 if test -n "$portaudio_2_0_CFLAGS"; then | |
5809 pkg_cv_portaudio_2_0_CFLAGS="$portaudio_2_0_CFLAGS" | |
5810 elif test -n "$PKG_CONFIG"; then | |
5811 if test -n "$PKG_CONFIG" && \ | |
5812 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 | |
5813 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 | |
5814 ac_status=$? | |
5815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5816 test $ac_status = 0; }; then | |
5817 pkg_cv_portaudio_2_0_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null` | |
5818 test "x$?" != "x0" && pkg_failed=yes | |
5819 else | |
5820 pkg_failed=yes | |
5821 fi | |
5822 else | |
5823 pkg_failed=untried | |
5824 fi | |
5825 if test -n "$portaudio_2_0_LIBS"; then | |
5826 pkg_cv_portaudio_2_0_LIBS="$portaudio_2_0_LIBS" | |
5827 elif test -n "$PKG_CONFIG"; then | |
5828 if test -n "$PKG_CONFIG" && \ | |
5829 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 | |
5830 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 | |
5831 ac_status=$? | |
5832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5833 test $ac_status = 0; }; then | |
5834 pkg_cv_portaudio_2_0_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null` | |
5835 test "x$?" != "x0" && pkg_failed=yes | |
5836 else | |
5837 pkg_failed=yes | |
5838 fi | |
5839 else | |
5840 pkg_failed=untried | |
5841 fi | |
5842 | |
5843 | |
5844 | |
5845 if test $pkg_failed = yes; then | |
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5847 $as_echo "no" >&6; } | |
5848 | |
5849 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
5850 _pkg_short_errors_supported=yes | |
5851 else | |
5852 _pkg_short_errors_supported=no | |
5853 fi | |
5854 if test $_pkg_short_errors_supported = yes; then | |
5855 portaudio_2_0_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1` | |
5856 else | |
5857 portaudio_2_0_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1` | |
5858 fi | |
5859 # Put the nasty error message in config.log where it belongs | |
5860 echo "$portaudio_2_0_PKG_ERRORS" >&5 | |
5861 | |
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5 | |
5863 $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} | |
5864 elif test $pkg_failed = untried; then | |
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5866 $as_echo "no" >&6; } | |
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5 | |
5868 $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} | |
5869 else | |
5870 portaudio_2_0_CFLAGS=$pkg_cv_portaudio_2_0_CFLAGS | |
5871 portaudio_2_0_LIBS=$pkg_cv_portaudio_2_0_LIBS | |
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5873 $as_echo "yes" >&6; } | |
5874 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $portaudio_2_0_CFLAGS";LIBS="$LIBS $portaudio_2_0_LIBS";SV_MODULE_FAILED="" | |
5875 fi | |
5876 fi | |
5877 if test -n "$SV_MODULE_FAILED"; then | |
5878 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` | |
5879 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default" | |
5880 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
5881 HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED="" | |
5882 else | |
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5 | |
5884 $as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;} | |
5885 fi | |
5886 | |
5887 | |
5888 if test -z "$SV_MODULE_FAILED"; then | |
5889 if test -n "$SV_MODULE_LIB"; then | |
5890 as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` | |
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 | |
5892 $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; } | |
5893 if eval \${$as_ac_Lib+:} false; then : | |
5894 $as_echo_n "(cached) " >&6 | |
5895 else | |
5896 ac_check_lib_save_LIBS=$LIBS | |
5897 LIBS="-l$SV_MODULE_LIB $LIBS" | |
5898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5899 /* end confdefs.h. */ | |
5900 | |
5901 /* Override any GCC internal prototype to avoid an error. | |
5902 Use char because int might match the return type of a GCC | |
5903 builtin and then its argument prototype would still apply. */ | |
5904 #ifdef __cplusplus | |
5905 extern "C" | |
5906 #endif | |
5907 char $SV_MODULE_FUNC (); | |
5908 int | |
5909 main () | |
5910 { | |
5911 return $SV_MODULE_FUNC (); | |
5912 ; | |
5913 return 0; | |
5914 } | |
5915 _ACEOF | |
5916 if ac_fn_cxx_try_link "$LINENO"; then : | |
5917 eval "$as_ac_Lib=yes" | |
5918 else | |
5919 eval "$as_ac_Lib=no" | |
5920 fi | |
5921 rm -f core conftest.err conftest.$ac_objext \ | |
5922 conftest$ac_exeext conftest.$ac_ext | |
5923 LIBS=$ac_check_lib_save_LIBS | |
5924 fi | |
5925 eval ac_res=\$$as_ac_Lib | |
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
5927 $as_echo "$ac_res" >&6; } | |
5928 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : | |
5929 LIBS="$LIBS -l$SV_MODULE_LIB" | |
5930 else | |
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5 | |
5932 $as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;} | |
5933 fi | |
5934 | |
5935 fi | |
5936 fi | |
5937 fi | |
5938 | |
5939 | |
5940 SV_MODULE_MODULE=JACK | |
5941 SV_MODULE_VERSION_TEST="jack >= 0.100" | |
5942 SV_MODULE_HEADER=jack/jack.h | |
5943 SV_MODULE_LIB=jack | |
5944 SV_MODULE_FUNC=jack_client_open | |
5945 SV_MODULE_HAVE=HAVE_$(echo JACK | tr 'a-z' 'A-Z') | |
5946 SV_MODULE_FAILED=1 | |
5947 if test -n "$JACK_LIBS" ; then | |
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 | |
5949 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} | |
5950 CXXFLAGS="$CXXFLAGS $JACK_CFLAGS" | |
5951 LIBS="$LIBS $JACK_LIBS" | |
5952 SV_MODULE_FAILED="" | |
5953 fi | |
5954 if test -z "$SV_MODULE_VERSION_TEST" ; then | |
5955 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE | |
5956 fi | |
5957 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then | |
5958 | |
5959 pkg_failed=no | |
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK" >&5 | |
5961 $as_echo_n "checking for JACK... " >&6; } | |
5962 | |
5963 if test -n "$JACK_CFLAGS"; then | |
5964 pkg_cv_JACK_CFLAGS="$JACK_CFLAGS" | |
5965 elif test -n "$PKG_CONFIG"; then | |
5966 if test -n "$PKG_CONFIG" && \ | |
5967 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 | |
5968 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 | |
5969 ac_status=$? | |
5970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5971 test $ac_status = 0; }; then | |
5972 pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null` | |
5973 test "x$?" != "x0" && pkg_failed=yes | |
5974 else | |
5975 pkg_failed=yes | |
5976 fi | |
5977 else | |
5978 pkg_failed=untried | |
5979 fi | |
5980 if test -n "$JACK_LIBS"; then | |
5981 pkg_cv_JACK_LIBS="$JACK_LIBS" | |
5982 elif test -n "$PKG_CONFIG"; then | |
5983 if test -n "$PKG_CONFIG" && \ | |
5984 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 | |
5985 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 | |
5986 ac_status=$? | |
5987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5988 test $ac_status = 0; }; then | |
5989 pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null` | |
5990 test "x$?" != "x0" && pkg_failed=yes | |
5991 else | |
5992 pkg_failed=yes | |
5993 fi | |
5994 else | |
5995 pkg_failed=untried | |
5996 fi | |
5997 | |
5998 | |
5999 | |
6000 if test $pkg_failed = yes; then | |
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6002 $as_echo "no" >&6; } | |
6003 | |
6004 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
6005 _pkg_short_errors_supported=yes | |
6006 else | |
6007 _pkg_short_errors_supported=no | |
6008 fi | |
6009 if test $_pkg_short_errors_supported = yes; then | |
6010 JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1` | |
6011 else | |
6012 JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1` | |
6013 fi | |
6014 # Put the nasty error message in config.log where it belongs | |
6015 echo "$JACK_PKG_ERRORS" >&5 | |
6016 | |
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5 | |
6018 $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} | |
6019 elif test $pkg_failed = untried; then | |
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6021 $as_echo "no" >&6; } | |
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5 | |
6023 $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} | |
6024 else | |
6025 JACK_CFLAGS=$pkg_cv_JACK_CFLAGS | |
6026 JACK_LIBS=$pkg_cv_JACK_LIBS | |
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6028 $as_echo "yes" >&6; } | |
6029 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $JACK_CFLAGS";LIBS="$LIBS $JACK_LIBS";SV_MODULE_FAILED="" | |
6030 fi | |
6031 fi | |
6032 if test -n "$SV_MODULE_FAILED"; then | |
6033 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` | |
6034 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default" | |
6035 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
6036 HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED="" | |
6037 else | |
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5 | |
6039 $as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;} | |
6040 fi | |
6041 | |
6042 | |
6043 if test -z "$SV_MODULE_FAILED"; then | |
6044 if test -n "$SV_MODULE_LIB"; then | |
6045 as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` | |
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 | |
6047 $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; } | |
6048 if eval \${$as_ac_Lib+:} false; then : | |
6049 $as_echo_n "(cached) " >&6 | |
6050 else | |
6051 ac_check_lib_save_LIBS=$LIBS | |
6052 LIBS="-l$SV_MODULE_LIB $LIBS" | |
6053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6054 /* end confdefs.h. */ | |
6055 | |
6056 /* Override any GCC internal prototype to avoid an error. | |
6057 Use char because int might match the return type of a GCC | |
6058 builtin and then its argument prototype would still apply. */ | |
6059 #ifdef __cplusplus | |
6060 extern "C" | |
6061 #endif | |
6062 char $SV_MODULE_FUNC (); | |
6063 int | |
6064 main () | |
6065 { | |
6066 return $SV_MODULE_FUNC (); | |
6067 ; | |
6068 return 0; | |
6069 } | |
6070 _ACEOF | |
6071 if ac_fn_cxx_try_link "$LINENO"; then : | |
6072 eval "$as_ac_Lib=yes" | |
6073 else | |
6074 eval "$as_ac_Lib=no" | |
6075 fi | |
6076 rm -f core conftest.err conftest.$ac_objext \ | |
6077 conftest$ac_exeext conftest.$ac_ext | |
6078 LIBS=$ac_check_lib_save_LIBS | |
6079 fi | |
6080 eval ac_res=\$$as_ac_Lib | |
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
6082 $as_echo "$ac_res" >&6; } | |
6083 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : | |
6084 LIBS="$LIBS -l$SV_MODULE_LIB" | |
6085 else | |
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5 | |
6087 $as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;} | |
6088 fi | |
6089 | |
6090 fi | |
6091 fi | |
6092 fi | |
6093 | |
6094 | |
6095 SV_MODULE_MODULE=libpulse | |
6096 SV_MODULE_VERSION_TEST="libpulse >= 0.9" | |
6097 SV_MODULE_HEADER=pulse/pulseaudio.h | |
6098 SV_MODULE_LIB=pulse | |
6099 SV_MODULE_FUNC=pa_stream_new | |
6100 SV_MODULE_HAVE=HAVE_$(echo libpulse | tr 'a-z' 'A-Z') | |
6101 SV_MODULE_FAILED=1 | |
6102 if test -n "$libpulse_LIBS" ; then | |
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 | |
6104 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} | |
6105 CXXFLAGS="$CXXFLAGS $libpulse_CFLAGS" | |
6106 LIBS="$LIBS $libpulse_LIBS" | |
6107 SV_MODULE_FAILED="" | |
6108 fi | |
6109 if test -z "$SV_MODULE_VERSION_TEST" ; then | |
6110 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE | |
6111 fi | |
6112 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then | |
6113 | |
6114 pkg_failed=no | |
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpulse" >&5 | |
6116 $as_echo_n "checking for libpulse... " >&6; } | |
6117 | |
6118 if test -n "$libpulse_CFLAGS"; then | |
6119 pkg_cv_libpulse_CFLAGS="$libpulse_CFLAGS" | |
6120 elif test -n "$PKG_CONFIG"; then | |
6121 if test -n "$PKG_CONFIG" && \ | |
6122 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 | |
6123 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 | |
6124 ac_status=$? | |
6125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6126 test $ac_status = 0; }; then | |
6127 pkg_cv_libpulse_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null` | |
6128 test "x$?" != "x0" && pkg_failed=yes | |
6129 else | |
6130 pkg_failed=yes | |
6131 fi | |
6132 else | |
6133 pkg_failed=untried | |
6134 fi | |
6135 if test -n "$libpulse_LIBS"; then | |
6136 pkg_cv_libpulse_LIBS="$libpulse_LIBS" | |
6137 elif test -n "$PKG_CONFIG"; then | |
6138 if test -n "$PKG_CONFIG" && \ | |
6139 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 | |
6140 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 | |
6141 ac_status=$? | |
6142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6143 test $ac_status = 0; }; then | |
6144 pkg_cv_libpulse_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null` | |
6145 test "x$?" != "x0" && pkg_failed=yes | |
6146 else | |
6147 pkg_failed=yes | |
6148 fi | |
6149 else | |
6150 pkg_failed=untried | |
6151 fi | |
6152 | |
6153 | |
6154 | |
6155 if test $pkg_failed = yes; then | |
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6157 $as_echo "no" >&6; } | |
6158 | |
6159 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
6160 _pkg_short_errors_supported=yes | |
6161 else | |
6162 _pkg_short_errors_supported=no | |
6163 fi | |
6164 if test $_pkg_short_errors_supported = yes; then | |
6165 libpulse_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1` | |
6166 else | |
6167 libpulse_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1` | |
6168 fi | |
6169 # Put the nasty error message in config.log where it belongs | |
6170 echo "$libpulse_PKG_ERRORS" >&5 | |
6171 | |
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5 | |
6173 $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} | |
6174 elif test $pkg_failed = untried; then | |
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6176 $as_echo "no" >&6; } | |
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5 | |
6178 $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} | |
6179 else | |
6180 libpulse_CFLAGS=$pkg_cv_libpulse_CFLAGS | |
6181 libpulse_LIBS=$pkg_cv_libpulse_LIBS | |
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6183 $as_echo "yes" >&6; } | |
6184 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $libpulse_CFLAGS";LIBS="$LIBS $libpulse_LIBS";SV_MODULE_FAILED="" | |
6185 fi | |
6186 fi | |
6187 if test -n "$SV_MODULE_FAILED"; then | |
6188 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` | |
6189 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default" | |
6190 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
6191 HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED="" | |
6192 else | |
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5 | |
6194 $as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;} | |
6195 fi | |
6196 | |
6197 | |
6198 if test -z "$SV_MODULE_FAILED"; then | |
6199 if test -n "$SV_MODULE_LIB"; then | |
6200 as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` | |
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 | |
6202 $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; } | |
6203 if eval \${$as_ac_Lib+:} false; then : | |
6204 $as_echo_n "(cached) " >&6 | |
6205 else | |
6206 ac_check_lib_save_LIBS=$LIBS | |
6207 LIBS="-l$SV_MODULE_LIB $LIBS" | |
6208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6209 /* end confdefs.h. */ | |
6210 | |
6211 /* Override any GCC internal prototype to avoid an error. | |
6212 Use char because int might match the return type of a GCC | |
6213 builtin and then its argument prototype would still apply. */ | |
6214 #ifdef __cplusplus | |
6215 extern "C" | |
6216 #endif | |
6217 char $SV_MODULE_FUNC (); | |
6218 int | |
6219 main () | |
6220 { | |
6221 return $SV_MODULE_FUNC (); | |
6222 ; | |
6223 return 0; | |
6224 } | |
6225 _ACEOF | |
6226 if ac_fn_cxx_try_link "$LINENO"; then : | |
6227 eval "$as_ac_Lib=yes" | |
6228 else | |
6229 eval "$as_ac_Lib=no" | |
6230 fi | |
6231 rm -f core conftest.err conftest.$ac_objext \ | |
6232 conftest$ac_exeext conftest.$ac_ext | |
6233 LIBS=$ac_check_lib_save_LIBS | |
6234 fi | |
6235 eval ac_res=\$$as_ac_Lib | |
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
6237 $as_echo "$ac_res" >&6; } | |
6238 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : | |
6239 LIBS="$LIBS -l$SV_MODULE_LIB" | |
6240 else | |
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5 | |
6242 $as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;} | |
6243 fi | |
6244 | |
6245 fi | |
6246 fi | |
6247 fi | |
6248 | |
6249 | |
6250 SV_MODULE_MODULE=lrdf | |
6251 SV_MODULE_VERSION_TEST="lrdf >= 0.2" | |
6252 SV_MODULE_HEADER=lrdf.h | |
6253 SV_MODULE_LIB=lrdf | |
6254 SV_MODULE_FUNC=lrdf_init | |
6255 SV_MODULE_HAVE=HAVE_$(echo lrdf | tr 'a-z' 'A-Z') | |
6256 SV_MODULE_FAILED=1 | |
6257 if test -n "$lrdf_LIBS" ; then | |
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 | |
6259 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} | |
6260 CXXFLAGS="$CXXFLAGS $lrdf_CFLAGS" | |
6261 LIBS="$LIBS $lrdf_LIBS" | |
6262 SV_MODULE_FAILED="" | |
6263 fi | |
6264 if test -z "$SV_MODULE_VERSION_TEST" ; then | |
6265 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE | |
6266 fi | |
6267 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then | |
6268 | |
6269 pkg_failed=no | |
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lrdf" >&5 | |
6271 $as_echo_n "checking for lrdf... " >&6; } | |
6272 | |
6273 if test -n "$lrdf_CFLAGS"; then | |
6274 pkg_cv_lrdf_CFLAGS="$lrdf_CFLAGS" | |
6275 elif test -n "$PKG_CONFIG"; then | |
6276 if test -n "$PKG_CONFIG" && \ | |
6277 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 | |
6278 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 | |
6279 ac_status=$? | |
6280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6281 test $ac_status = 0; }; then | |
6282 pkg_cv_lrdf_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null` | |
6283 test "x$?" != "x0" && pkg_failed=yes | |
6284 else | |
6285 pkg_failed=yes | |
6286 fi | |
6287 else | |
6288 pkg_failed=untried | |
6289 fi | |
6290 if test -n "$lrdf_LIBS"; then | |
6291 pkg_cv_lrdf_LIBS="$lrdf_LIBS" | |
6292 elif test -n "$PKG_CONFIG"; then | |
6293 if test -n "$PKG_CONFIG" && \ | |
6294 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 | |
6295 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 | |
6296 ac_status=$? | |
6297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6298 test $ac_status = 0; }; then | |
6299 pkg_cv_lrdf_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null` | |
6300 test "x$?" != "x0" && pkg_failed=yes | |
6301 else | |
6302 pkg_failed=yes | |
6303 fi | |
6304 else | |
6305 pkg_failed=untried | |
6306 fi | |
6307 | |
6308 | |
6309 | |
6310 if test $pkg_failed = yes; then | |
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6312 $as_echo "no" >&6; } | |
6313 | |
6314 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
6315 _pkg_short_errors_supported=yes | |
6316 else | |
6317 _pkg_short_errors_supported=no | |
6318 fi | |
6319 if test $_pkg_short_errors_supported = yes; then | |
6320 lrdf_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1` | |
6321 else | |
6322 lrdf_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1` | |
6323 fi | |
6324 # Put the nasty error message in config.log where it belongs | |
6325 echo "$lrdf_PKG_ERRORS" >&5 | |
6326 | |
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5 | |
6328 $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} | |
6329 elif test $pkg_failed = untried; then | |
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6331 $as_echo "no" >&6; } | |
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5 | |
6333 $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} | |
6334 else | |
6335 lrdf_CFLAGS=$pkg_cv_lrdf_CFLAGS | |
6336 lrdf_LIBS=$pkg_cv_lrdf_LIBS | |
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6338 $as_echo "yes" >&6; } | |
6339 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $lrdf_CFLAGS";LIBS="$LIBS $lrdf_LIBS";SV_MODULE_FAILED="" | |
6340 fi | |
6341 fi | |
6342 if test -n "$SV_MODULE_FAILED"; then | |
6343 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` | |
6344 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default" | |
6345 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
6346 HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED="" | |
6347 else | |
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5 | |
6349 $as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;} | |
6350 fi | |
6351 | |
6352 | |
6353 if test -z "$SV_MODULE_FAILED"; then | |
6354 if test -n "$SV_MODULE_LIB"; then | |
6355 as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` | |
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 | |
6357 $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; } | |
6358 if eval \${$as_ac_Lib+:} false; then : | |
6359 $as_echo_n "(cached) " >&6 | |
6360 else | |
6361 ac_check_lib_save_LIBS=$LIBS | |
6362 LIBS="-l$SV_MODULE_LIB $LIBS" | |
6363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6364 /* end confdefs.h. */ | |
6365 | |
6366 /* Override any GCC internal prototype to avoid an error. | |
6367 Use char because int might match the return type of a GCC | |
6368 builtin and then its argument prototype would still apply. */ | |
6369 #ifdef __cplusplus | |
6370 extern "C" | |
6371 #endif | |
6372 char $SV_MODULE_FUNC (); | |
6373 int | |
6374 main () | |
6375 { | |
6376 return $SV_MODULE_FUNC (); | |
6377 ; | |
6378 return 0; | |
6379 } | |
6380 _ACEOF | |
6381 if ac_fn_cxx_try_link "$LINENO"; then : | |
6382 eval "$as_ac_Lib=yes" | |
6383 else | |
6384 eval "$as_ac_Lib=no" | |
6385 fi | |
6386 rm -f core conftest.err conftest.$ac_objext \ | |
6387 conftest$ac_exeext conftest.$ac_ext | |
6388 LIBS=$ac_check_lib_save_LIBS | |
6389 fi | |
6390 eval ac_res=\$$as_ac_Lib | |
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
6392 $as_echo "$ac_res" >&6; } | |
6393 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : | |
6394 LIBS="$LIBS -l$SV_MODULE_LIB" | |
6395 else | |
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5 | |
6397 $as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;} | |
6398 fi | |
6399 | |
6400 fi | |
6401 fi | |
6402 fi | |
6403 | |
6404 | |
6405 SV_MODULE_MODULE=oggz | |
6406 SV_MODULE_VERSION_TEST="oggz >= 1.0.0" | |
6407 SV_MODULE_HEADER=oggz/oggz.h | |
6408 SV_MODULE_LIB=oggz | |
6409 SV_MODULE_FUNC=oggz_run | |
6410 SV_MODULE_HAVE=HAVE_$(echo oggz | tr 'a-z' 'A-Z') | |
6411 SV_MODULE_FAILED=1 | |
6412 if test -n "$oggz_LIBS" ; then | |
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 | |
6414 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} | |
6415 CXXFLAGS="$CXXFLAGS $oggz_CFLAGS" | |
6416 LIBS="$LIBS $oggz_LIBS" | |
6417 SV_MODULE_FAILED="" | |
6418 fi | |
6419 if test -z "$SV_MODULE_VERSION_TEST" ; then | |
6420 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE | |
6421 fi | |
6422 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then | |
6423 | |
6424 pkg_failed=no | |
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for oggz" >&5 | |
6426 $as_echo_n "checking for oggz... " >&6; } | |
6427 | |
6428 if test -n "$oggz_CFLAGS"; then | |
6429 pkg_cv_oggz_CFLAGS="$oggz_CFLAGS" | |
6430 elif test -n "$PKG_CONFIG"; then | |
6431 if test -n "$PKG_CONFIG" && \ | |
6432 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 | |
6433 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 | |
6434 ac_status=$? | |
6435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6436 test $ac_status = 0; }; then | |
6437 pkg_cv_oggz_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null` | |
6438 test "x$?" != "x0" && pkg_failed=yes | |
6439 else | |
6440 pkg_failed=yes | |
6441 fi | |
6442 else | |
6443 pkg_failed=untried | |
6444 fi | |
6445 if test -n "$oggz_LIBS"; then | |
6446 pkg_cv_oggz_LIBS="$oggz_LIBS" | |
6447 elif test -n "$PKG_CONFIG"; then | |
6448 if test -n "$PKG_CONFIG" && \ | |
6449 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 | |
6450 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 | |
6451 ac_status=$? | |
6452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6453 test $ac_status = 0; }; then | |
6454 pkg_cv_oggz_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null` | |
6455 test "x$?" != "x0" && pkg_failed=yes | |
6456 else | |
6457 pkg_failed=yes | |
6458 fi | |
6459 else | |
6460 pkg_failed=untried | |
6461 fi | |
6462 | |
6463 | |
6464 | |
6465 if test $pkg_failed = yes; then | |
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6467 $as_echo "no" >&6; } | |
6468 | |
6469 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
6470 _pkg_short_errors_supported=yes | |
6471 else | |
6472 _pkg_short_errors_supported=no | |
6473 fi | |
6474 if test $_pkg_short_errors_supported = yes; then | |
6475 oggz_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1` | |
6476 else | |
6477 oggz_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1` | |
6478 fi | |
6479 # Put the nasty error message in config.log where it belongs | |
6480 echo "$oggz_PKG_ERRORS" >&5 | |
6481 | |
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5 | |
6483 $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} | |
6484 elif test $pkg_failed = untried; then | |
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6486 $as_echo "no" >&6; } | |
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5 | |
6488 $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} | |
6489 else | |
6490 oggz_CFLAGS=$pkg_cv_oggz_CFLAGS | |
6491 oggz_LIBS=$pkg_cv_oggz_LIBS | |
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6493 $as_echo "yes" >&6; } | |
6494 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $oggz_CFLAGS";LIBS="$LIBS $oggz_LIBS";SV_MODULE_FAILED="" | |
6495 fi | |
6496 fi | |
6497 if test -n "$SV_MODULE_FAILED"; then | |
6498 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` | |
6499 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default" | |
6500 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
6501 HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED="" | |
6502 else | |
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5 | |
6504 $as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;} | |
6505 fi | |
6506 | |
6507 | |
6508 if test -z "$SV_MODULE_FAILED"; then | |
6509 if test -n "$SV_MODULE_LIB"; then | |
6510 as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` | |
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 | |
6512 $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; } | |
6513 if eval \${$as_ac_Lib+:} false; then : | |
6514 $as_echo_n "(cached) " >&6 | |
6515 else | |
6516 ac_check_lib_save_LIBS=$LIBS | |
6517 LIBS="-l$SV_MODULE_LIB $LIBS" | |
6518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6519 /* end confdefs.h. */ | |
6520 | |
6521 /* Override any GCC internal prototype to avoid an error. | |
6522 Use char because int might match the return type of a GCC | |
6523 builtin and then its argument prototype would still apply. */ | |
6524 #ifdef __cplusplus | |
6525 extern "C" | |
6526 #endif | |
6527 char $SV_MODULE_FUNC (); | |
6528 int | |
6529 main () | |
6530 { | |
6531 return $SV_MODULE_FUNC (); | |
6532 ; | |
6533 return 0; | |
6534 } | |
6535 _ACEOF | |
6536 if ac_fn_cxx_try_link "$LINENO"; then : | |
6537 eval "$as_ac_Lib=yes" | |
6538 else | |
6539 eval "$as_ac_Lib=no" | |
6540 fi | |
6541 rm -f core conftest.err conftest.$ac_objext \ | |
6542 conftest$ac_exeext conftest.$ac_ext | |
6543 LIBS=$ac_check_lib_save_LIBS | |
6544 fi | |
6545 eval ac_res=\$$as_ac_Lib | |
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
6547 $as_echo "$ac_res" >&6; } | |
6548 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : | |
6549 LIBS="$LIBS -l$SV_MODULE_LIB" | |
6550 else | |
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5 | |
6552 $as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;} | |
6553 fi | |
6554 | |
6555 fi | |
6556 fi | |
6557 fi | |
6558 | |
6559 | |
6560 SV_MODULE_MODULE=fishsound | |
6561 SV_MODULE_VERSION_TEST="fishsound >= 1.0.0" | |
6562 SV_MODULE_HEADER=fishsound/fishsound.h | |
6563 SV_MODULE_LIB=fishsound | |
6564 SV_MODULE_FUNC=fish_sound_new | |
6565 SV_MODULE_HAVE=HAVE_$(echo fishsound | tr 'a-z' 'A-Z') | |
6566 SV_MODULE_FAILED=1 | |
6567 if test -n "$fishsound_LIBS" ; then | |
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 | |
6569 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} | |
6570 CXXFLAGS="$CXXFLAGS $fishsound_CFLAGS" | |
6571 LIBS="$LIBS $fishsound_LIBS" | |
6572 SV_MODULE_FAILED="" | |
6573 fi | |
6574 if test -z "$SV_MODULE_VERSION_TEST" ; then | |
6575 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE | |
6576 fi | |
6577 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then | |
6578 | |
6579 pkg_failed=no | |
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fishsound" >&5 | |
6581 $as_echo_n "checking for fishsound... " >&6; } | |
6582 | |
6583 if test -n "$fishsound_CFLAGS"; then | |
6584 pkg_cv_fishsound_CFLAGS="$fishsound_CFLAGS" | |
6585 elif test -n "$PKG_CONFIG"; then | |
6586 if test -n "$PKG_CONFIG" && \ | |
6587 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 | |
6588 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 | |
6589 ac_status=$? | |
6590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6591 test $ac_status = 0; }; then | |
6592 pkg_cv_fishsound_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null` | |
6593 test "x$?" != "x0" && pkg_failed=yes | |
6594 else | |
6595 pkg_failed=yes | |
6596 fi | |
6597 else | |
6598 pkg_failed=untried | |
6599 fi | |
6600 if test -n "$fishsound_LIBS"; then | |
6601 pkg_cv_fishsound_LIBS="$fishsound_LIBS" | |
6602 elif test -n "$PKG_CONFIG"; then | |
6603 if test -n "$PKG_CONFIG" && \ | |
6604 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 | |
6605 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 | |
6606 ac_status=$? | |
6607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6608 test $ac_status = 0; }; then | |
6609 pkg_cv_fishsound_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null` | |
6610 test "x$?" != "x0" && pkg_failed=yes | |
6611 else | |
6612 pkg_failed=yes | |
6613 fi | |
6614 else | |
6615 pkg_failed=untried | |
6616 fi | |
6617 | |
6618 | |
6619 | |
6620 if test $pkg_failed = yes; then | |
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6622 $as_echo "no" >&6; } | |
6623 | |
6624 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
6625 _pkg_short_errors_supported=yes | |
6626 else | |
6627 _pkg_short_errors_supported=no | |
6628 fi | |
6629 if test $_pkg_short_errors_supported = yes; then | |
6630 fishsound_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1` | |
6631 else | |
6632 fishsound_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1` | |
6633 fi | |
6634 # Put the nasty error message in config.log where it belongs | |
6635 echo "$fishsound_PKG_ERRORS" >&5 | |
6636 | |
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5 | |
6638 $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} | |
6639 elif test $pkg_failed = untried; then | |
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6641 $as_echo "no" >&6; } | |
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5 | |
6643 $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} | |
6644 else | |
6645 fishsound_CFLAGS=$pkg_cv_fishsound_CFLAGS | |
6646 fishsound_LIBS=$pkg_cv_fishsound_LIBS | |
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6648 $as_echo "yes" >&6; } | |
6649 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $fishsound_CFLAGS";LIBS="$LIBS $fishsound_LIBS";SV_MODULE_FAILED="" | |
6650 fi | |
6651 fi | |
6652 if test -n "$SV_MODULE_FAILED"; then | |
6653 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` | |
6654 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default" | |
6655 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
6656 HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED="" | |
6657 else | |
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5 | |
6659 $as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;} | |
6660 fi | |
6661 | |
6662 | |
6663 if test -z "$SV_MODULE_FAILED"; then | |
6664 if test -n "$SV_MODULE_LIB"; then | |
6665 as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` | |
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 | |
6667 $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; } | |
6668 if eval \${$as_ac_Lib+:} false; then : | |
6669 $as_echo_n "(cached) " >&6 | |
6670 else | |
6671 ac_check_lib_save_LIBS=$LIBS | |
6672 LIBS="-l$SV_MODULE_LIB $LIBS" | |
6673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6674 /* end confdefs.h. */ | |
6675 | |
6676 /* Override any GCC internal prototype to avoid an error. | |
6677 Use char because int might match the return type of a GCC | |
6678 builtin and then its argument prototype would still apply. */ | |
6679 #ifdef __cplusplus | |
6680 extern "C" | |
6681 #endif | |
6682 char $SV_MODULE_FUNC (); | |
6683 int | |
6684 main () | |
6685 { | |
6686 return $SV_MODULE_FUNC (); | |
6687 ; | |
6688 return 0; | |
6689 } | |
6690 _ACEOF | |
6691 if ac_fn_cxx_try_link "$LINENO"; then : | |
6692 eval "$as_ac_Lib=yes" | |
6693 else | |
6694 eval "$as_ac_Lib=no" | |
6695 fi | |
6696 rm -f core conftest.err conftest.$ac_objext \ | |
6697 conftest$ac_exeext conftest.$ac_ext | |
6698 LIBS=$ac_check_lib_save_LIBS | |
6699 fi | |
6700 eval ac_res=\$$as_ac_Lib | |
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
6702 $as_echo "$ac_res" >&6; } | |
6703 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : | |
6704 LIBS="$LIBS -l$SV_MODULE_LIB" | |
6705 else | |
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5 | |
6707 $as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;} | |
6708 fi | |
6709 | |
6710 fi | |
6711 fi | |
6712 fi | |
6713 | |
6714 | |
6715 SV_MODULE_MODULE=mad | |
6716 SV_MODULE_VERSION_TEST="mad >= 0.15.0" | |
6717 SV_MODULE_HEADER=mad.h | |
6718 SV_MODULE_LIB=mad | |
6719 SV_MODULE_FUNC=mad_decoder_init | |
6720 SV_MODULE_HAVE=HAVE_$(echo mad | tr 'a-z' 'A-Z') | |
6721 SV_MODULE_FAILED=1 | |
6722 if test -n "$mad_LIBS" ; then | |
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 | |
6724 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} | |
6725 CXXFLAGS="$CXXFLAGS $mad_CFLAGS" | |
6726 LIBS="$LIBS $mad_LIBS" | |
6727 SV_MODULE_FAILED="" | |
6728 fi | |
6729 if test -z "$SV_MODULE_VERSION_TEST" ; then | |
6730 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE | |
6731 fi | |
6732 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then | |
6733 | |
6734 pkg_failed=no | |
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mad" >&5 | |
6736 $as_echo_n "checking for mad... " >&6; } | |
6737 | |
6738 if test -n "$mad_CFLAGS"; then | |
6739 pkg_cv_mad_CFLAGS="$mad_CFLAGS" | |
6740 elif test -n "$PKG_CONFIG"; then | |
6741 if test -n "$PKG_CONFIG" && \ | |
6742 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 | |
6743 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 | |
6744 ac_status=$? | |
6745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6746 test $ac_status = 0; }; then | |
6747 pkg_cv_mad_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null` | |
6748 test "x$?" != "x0" && pkg_failed=yes | |
6749 else | |
6750 pkg_failed=yes | |
6751 fi | |
6752 else | |
6753 pkg_failed=untried | |
6754 fi | |
6755 if test -n "$mad_LIBS"; then | |
6756 pkg_cv_mad_LIBS="$mad_LIBS" | |
6757 elif test -n "$PKG_CONFIG"; then | |
6758 if test -n "$PKG_CONFIG" && \ | |
6759 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 | |
6760 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 | |
6761 ac_status=$? | |
6762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6763 test $ac_status = 0; }; then | |
6764 pkg_cv_mad_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null` | |
6765 test "x$?" != "x0" && pkg_failed=yes | |
6766 else | |
6767 pkg_failed=yes | |
6768 fi | |
6769 else | |
6770 pkg_failed=untried | |
6771 fi | |
6772 | |
6773 | |
6774 | |
6775 if test $pkg_failed = yes; then | |
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6777 $as_echo "no" >&6; } | |
6778 | |
6779 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
6780 _pkg_short_errors_supported=yes | |
6781 else | |
6782 _pkg_short_errors_supported=no | |
6783 fi | |
6784 if test $_pkg_short_errors_supported = yes; then | |
6785 mad_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1` | |
6786 else | |
6787 mad_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1` | |
6788 fi | |
6789 # Put the nasty error message in config.log where it belongs | |
6790 echo "$mad_PKG_ERRORS" >&5 | |
6791 | |
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5 | |
6793 $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} | |
6794 elif test $pkg_failed = untried; then | |
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6796 $as_echo "no" >&6; } | |
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5 | |
6798 $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} | |
6799 else | |
6800 mad_CFLAGS=$pkg_cv_mad_CFLAGS | |
6801 mad_LIBS=$pkg_cv_mad_LIBS | |
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6803 $as_echo "yes" >&6; } | |
6804 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $mad_CFLAGS";LIBS="$LIBS $mad_LIBS";SV_MODULE_FAILED="" | |
6805 fi | |
6806 fi | |
6807 if test -n "$SV_MODULE_FAILED"; then | |
6808 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` | |
6809 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default" | |
6810 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
6811 HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED="" | |
6812 else | |
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5 | |
6814 $as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;} | |
6815 fi | |
6816 | |
6817 | |
6818 if test -z "$SV_MODULE_FAILED"; then | |
6819 if test -n "$SV_MODULE_LIB"; then | |
6820 as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` | |
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 | |
6822 $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; } | |
6823 if eval \${$as_ac_Lib+:} false; then : | |
6824 $as_echo_n "(cached) " >&6 | |
6825 else | |
6826 ac_check_lib_save_LIBS=$LIBS | |
6827 LIBS="-l$SV_MODULE_LIB $LIBS" | |
6828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6829 /* end confdefs.h. */ | |
6830 | |
6831 /* Override any GCC internal prototype to avoid an error. | |
6832 Use char because int might match the return type of a GCC | |
6833 builtin and then its argument prototype would still apply. */ | |
6834 #ifdef __cplusplus | |
6835 extern "C" | |
6836 #endif | |
6837 char $SV_MODULE_FUNC (); | |
6838 int | |
6839 main () | |
6840 { | |
6841 return $SV_MODULE_FUNC (); | |
6842 ; | |
6843 return 0; | |
6844 } | |
6845 _ACEOF | |
6846 if ac_fn_cxx_try_link "$LINENO"; then : | |
6847 eval "$as_ac_Lib=yes" | |
6848 else | |
6849 eval "$as_ac_Lib=no" | |
6850 fi | |
6851 rm -f core conftest.err conftest.$ac_objext \ | |
6852 conftest$ac_exeext conftest.$ac_ext | |
6853 LIBS=$ac_check_lib_save_LIBS | |
6854 fi | |
6855 eval ac_res=\$$as_ac_Lib | |
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
6857 $as_echo "$ac_res" >&6; } | |
6858 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : | |
6859 LIBS="$LIBS -l$SV_MODULE_LIB" | |
6860 else | |
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5 | |
6862 $as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;} | |
6863 fi | |
6864 | |
6865 fi | |
6866 fi | |
6867 fi | |
6868 | |
6869 | |
6870 SV_MODULE_MODULE=id3tag | |
6871 SV_MODULE_VERSION_TEST="id3tag >= 0.15.0" | |
6872 SV_MODULE_HEADER=id3tag.h | |
6873 SV_MODULE_LIB=id3tag | |
6874 SV_MODULE_FUNC=id3_tag_new | |
6875 SV_MODULE_HAVE=HAVE_$(echo id3tag | tr 'a-z' 'A-Z') | |
6876 SV_MODULE_FAILED=1 | |
6877 if test -n "$id3tag_LIBS" ; then | |
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 | |
6879 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} | |
6880 CXXFLAGS="$CXXFLAGS $id3tag_CFLAGS" | |
6881 LIBS="$LIBS $id3tag_LIBS" | |
6882 SV_MODULE_FAILED="" | |
6883 fi | |
6884 if test -z "$SV_MODULE_VERSION_TEST" ; then | |
6885 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE | |
6886 fi | |
6887 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then | |
6888 | |
6889 pkg_failed=no | |
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for id3tag" >&5 | |
6891 $as_echo_n "checking for id3tag... " >&6; } | |
6892 | |
6893 if test -n "$id3tag_CFLAGS"; then | |
6894 pkg_cv_id3tag_CFLAGS="$id3tag_CFLAGS" | |
6895 elif test -n "$PKG_CONFIG"; then | |
6896 if test -n "$PKG_CONFIG" && \ | |
6897 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 | |
6898 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 | |
6899 ac_status=$? | |
6900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6901 test $ac_status = 0; }; then | |
6902 pkg_cv_id3tag_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null` | |
6903 test "x$?" != "x0" && pkg_failed=yes | |
6904 else | |
6905 pkg_failed=yes | |
6906 fi | |
6907 else | |
6908 pkg_failed=untried | |
6909 fi | |
6910 if test -n "$id3tag_LIBS"; then | |
6911 pkg_cv_id3tag_LIBS="$id3tag_LIBS" | |
6912 elif test -n "$PKG_CONFIG"; then | |
6913 if test -n "$PKG_CONFIG" && \ | |
6914 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 | |
6915 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 | |
6916 ac_status=$? | |
6917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6918 test $ac_status = 0; }; then | |
6919 pkg_cv_id3tag_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null` | |
6920 test "x$?" != "x0" && pkg_failed=yes | |
6921 else | |
6922 pkg_failed=yes | |
6923 fi | |
6924 else | |
6925 pkg_failed=untried | |
6926 fi | |
6927 | |
6928 | |
6929 | |
6930 if test $pkg_failed = yes; then | |
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6932 $as_echo "no" >&6; } | |
6933 | |
6934 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
6935 _pkg_short_errors_supported=yes | |
6936 else | |
6937 _pkg_short_errors_supported=no | |
6938 fi | |
6939 if test $_pkg_short_errors_supported = yes; then | |
6940 id3tag_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1` | |
6941 else | |
6942 id3tag_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1` | |
6943 fi | |
6944 # Put the nasty error message in config.log where it belongs | |
6945 echo "$id3tag_PKG_ERRORS" >&5 | |
6946 | |
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5 | |
6948 $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} | |
6949 elif test $pkg_failed = untried; then | |
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6951 $as_echo "no" >&6; } | |
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5 | |
6953 $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} | |
6954 else | |
6955 id3tag_CFLAGS=$pkg_cv_id3tag_CFLAGS | |
6956 id3tag_LIBS=$pkg_cv_id3tag_LIBS | |
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6958 $as_echo "yes" >&6; } | |
6959 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $id3tag_CFLAGS";LIBS="$LIBS $id3tag_LIBS";SV_MODULE_FAILED="" | |
6960 fi | |
6961 fi | |
6962 if test -n "$SV_MODULE_FAILED"; then | |
6963 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` | |
6964 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default" | |
6965 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
6966 HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED="" | |
6967 else | |
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5 | |
6969 $as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;} | |
6970 fi | |
6971 | |
6972 | |
6973 if test -z "$SV_MODULE_FAILED"; then | |
6974 if test -n "$SV_MODULE_LIB"; then | |
6975 as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` | |
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 | |
6977 $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; } | |
6978 if eval \${$as_ac_Lib+:} false; then : | |
6979 $as_echo_n "(cached) " >&6 | |
6980 else | |
6981 ac_check_lib_save_LIBS=$LIBS | |
6982 LIBS="-l$SV_MODULE_LIB $LIBS" | |
6983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6984 /* end confdefs.h. */ | |
6985 | |
6986 /* Override any GCC internal prototype to avoid an error. | |
6987 Use char because int might match the return type of a GCC | |
6988 builtin and then its argument prototype would still apply. */ | |
6989 #ifdef __cplusplus | |
6990 extern "C" | |
6991 #endif | |
6992 char $SV_MODULE_FUNC (); | |
6993 int | |
6994 main () | |
6995 { | |
6996 return $SV_MODULE_FUNC (); | |
6997 ; | |
6998 return 0; | |
6999 } | |
7000 _ACEOF | |
7001 if ac_fn_cxx_try_link "$LINENO"; then : | |
7002 eval "$as_ac_Lib=yes" | |
7003 else | |
7004 eval "$as_ac_Lib=no" | |
7005 fi | |
7006 rm -f core conftest.err conftest.$ac_objext \ | |
7007 conftest$ac_exeext conftest.$ac_ext | |
7008 LIBS=$ac_check_lib_save_LIBS | |
7009 fi | |
7010 eval ac_res=\$$as_ac_Lib | |
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
7012 $as_echo "$ac_res" >&6; } | |
7013 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : | |
7014 LIBS="$LIBS -l$SV_MODULE_LIB" | |
7015 else | |
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5 | |
7017 $as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;} | |
7018 fi | |
7019 | |
7020 fi | |
7021 fi | |
7022 fi | |
7023 | |
7024 | |
7025 # Link in -lX11 if it exists -- this is for the X error handler | |
7026 | |
7027 SV_MODULE_MODULE=X11 | |
7028 SV_MODULE_VERSION_TEST="x11 >= 1.0.0" | |
7029 SV_MODULE_HEADER=X11/X.h | |
7030 SV_MODULE_LIB=x11 | |
7031 SV_MODULE_FUNC=XGetErrorText | |
7032 SV_MODULE_HAVE=HAVE_$(echo X11 | tr 'a-z' 'A-Z') | |
7033 SV_MODULE_FAILED=1 | |
7034 if test -n "$X11_LIBS" ; then | |
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 | |
7036 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} | |
7037 CXXFLAGS="$CXXFLAGS $X11_CFLAGS" | |
7038 LIBS="$LIBS $X11_LIBS" | |
7039 SV_MODULE_FAILED="" | |
7040 fi | |
7041 if test -z "$SV_MODULE_VERSION_TEST" ; then | |
7042 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE | |
7043 fi | |
7044 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then | |
7045 | |
7046 pkg_failed=no | |
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5 | |
7048 $as_echo_n "checking for X11... " >&6; } | |
7049 | |
7050 if test -n "$X11_CFLAGS"; then | |
7051 pkg_cv_X11_CFLAGS="$X11_CFLAGS" | |
7052 elif test -n "$PKG_CONFIG"; then | |
7053 if test -n "$PKG_CONFIG" && \ | |
7054 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 | |
7055 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 | |
7056 ac_status=$? | |
7057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7058 test $ac_status = 0; }; then | |
7059 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null` | |
7060 test "x$?" != "x0" && pkg_failed=yes | |
7061 else | |
7062 pkg_failed=yes | |
7063 fi | |
7064 else | |
7065 pkg_failed=untried | |
7066 fi | |
7067 if test -n "$X11_LIBS"; then | |
7068 pkg_cv_X11_LIBS="$X11_LIBS" | |
7069 elif test -n "$PKG_CONFIG"; then | |
7070 if test -n "$PKG_CONFIG" && \ | |
7071 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 | |
7072 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 | |
7073 ac_status=$? | |
7074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7075 test $ac_status = 0; }; then | |
7076 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null` | |
7077 test "x$?" != "x0" && pkg_failed=yes | |
7078 else | |
7079 pkg_failed=yes | |
7080 fi | |
7081 else | |
7082 pkg_failed=untried | |
7083 fi | |
7084 | |
7085 | |
7086 | |
7087 if test $pkg_failed = yes; then | |
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7089 $as_echo "no" >&6; } | |
7090 | |
7091 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7092 _pkg_short_errors_supported=yes | |
7093 else | |
7094 _pkg_short_errors_supported=no | |
7095 fi | |
7096 if test $_pkg_short_errors_supported = yes; then | |
7097 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1` | |
7098 else | |
7099 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1` | |
7100 fi | |
7101 # Put the nasty error message in config.log where it belongs | |
7102 echo "$X11_PKG_ERRORS" >&5 | |
7103 | |
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5 | |
7105 $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} | |
7106 elif test $pkg_failed = untried; then | |
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7108 $as_echo "no" >&6; } | |
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5 | |
7110 $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} | |
7111 else | |
7112 X11_CFLAGS=$pkg_cv_X11_CFLAGS | |
7113 X11_LIBS=$pkg_cv_X11_LIBS | |
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7115 $as_echo "yes" >&6; } | |
7116 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $X11_CFLAGS";LIBS="$LIBS $X11_LIBS";SV_MODULE_FAILED="" | |
7117 fi | |
7118 fi | |
7119 if test -n "$SV_MODULE_FAILED"; then | |
7120 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` | |
7121 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default" | |
7122 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
7123 HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED="" | |
7124 else | |
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5 | |
7126 $as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;} | |
7127 fi | |
7128 | |
7129 | |
7130 if test -z "$SV_MODULE_FAILED"; then | |
7131 if test -n "$SV_MODULE_LIB"; then | |
7132 as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` | |
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 | |
7134 $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; } | |
7135 if eval \${$as_ac_Lib+:} false; then : | |
7136 $as_echo_n "(cached) " >&6 | |
7137 else | |
7138 ac_check_lib_save_LIBS=$LIBS | |
7139 LIBS="-l$SV_MODULE_LIB $LIBS" | |
7140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7141 /* end confdefs.h. */ | |
7142 | |
7143 /* Override any GCC internal prototype to avoid an error. | |
7144 Use char because int might match the return type of a GCC | |
7145 builtin and then its argument prototype would still apply. */ | |
7146 #ifdef __cplusplus | |
7147 extern "C" | |
7148 #endif | |
7149 char $SV_MODULE_FUNC (); | |
7150 int | |
7151 main () | |
7152 { | |
7153 return $SV_MODULE_FUNC (); | |
7154 ; | |
7155 return 0; | |
7156 } | |
7157 _ACEOF | |
7158 if ac_fn_cxx_try_link "$LINENO"; then : | |
7159 eval "$as_ac_Lib=yes" | |
7160 else | |
7161 eval "$as_ac_Lib=no" | |
7162 fi | |
7163 rm -f core conftest.err conftest.$ac_objext \ | |
7164 conftest$ac_exeext conftest.$ac_ext | |
7165 LIBS=$ac_check_lib_save_LIBS | |
7166 fi | |
7167 eval ac_res=\$$as_ac_Lib | |
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
7169 $as_echo "$ac_res" >&6; } | |
7170 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : | |
7171 LIBS="$LIBS -l$SV_MODULE_LIB" | |
7172 else | |
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5 | |
7174 $as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;} | |
7175 fi | |
7176 | |
7177 fi | |
7178 fi | |
7179 fi | |
7180 | |
7181 | |
7182 | |
7183 | |
7184 | |
7185 | |
7186 | |
7187 | |
7188 | |
7189 | |
7190 | |
7191 | |
7192 | |
7193 | |
7194 | |
7195 | |
7196 | |
7197 | |
7198 | |
7199 | |
7200 | |
7201 subdirs="$subdirs svcore svgui svapp" | |
7202 | |
7203 ac_config_files="$ac_config_files config.pri version.h" | |
7204 | |
7205 | |
7206 cat >confcache <<\_ACEOF | |
7207 # This file is a shell script that caches the results of configure | |
7208 # tests run on this system so they can be shared between configure | |
7209 # scripts and configure runs, see configure's option --config-cache. | |
7210 # It is not useful on other systems. If it contains results you don't | |
7211 # want to keep, you may remove or edit it. | |
7212 # | |
7213 # config.status only pays attention to the cache file if you give it | |
7214 # the --recheck option to rerun configure. | |
7215 # | |
7216 # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
7217 # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
7218 # following values. | |
7219 | |
7220 _ACEOF | |
7221 | |
7222 # The following way of writing the cache mishandles newlines in values, | |
7223 # but we know of no workaround that is simple, portable, and efficient. | |
7224 # So, we kill variables containing newlines. | |
7225 # Ultrix sh set writes to stderr and can't be redirected directly, | |
7226 # and sets the high bit in the cache file unless we assign to the vars. | |
7227 ( | |
7228 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
7229 eval ac_val=\$$ac_var | |
7230 case $ac_val in #( | |
7231 *${as_nl}*) | |
7232 case $ac_var in #( | |
7233 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
7234 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7235 esac | |
7236 case $ac_var in #( | |
7237 _ | IFS | as_nl) ;; #( | |
7238 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
7239 *) { eval $ac_var=; unset $ac_var;} ;; | |
7240 esac ;; | |
7241 esac | |
7242 done | |
7243 | |
7244 (set) 2>&1 | | |
7245 case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
7246 *${as_nl}ac_space=\ *) | |
7247 # `set' does not quote correctly, so add quotes: double-quote | |
7248 # substitution turns \\\\ into \\, and sed turns \\ into \. | |
7249 sed -n \ | |
7250 "s/'/'\\\\''/g; | |
7251 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7252 ;; #( | |
7253 *) | |
7254 # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7255 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
7256 ;; | |
7257 esac | | |
7258 sort | |
7259 ) | | |
7260 sed ' | |
7261 /^ac_cv_env_/b end | |
7262 t clear | |
7263 :clear | |
7264 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
7265 t end | |
7266 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
7267 :end' >>confcache | |
7268 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
7269 if test -w "$cache_file"; then | |
7270 if test "x$cache_file" != "x/dev/null"; then | |
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
7272 $as_echo "$as_me: updating cache $cache_file" >&6;} | |
7273 if test ! -f "$cache_file" || test -h "$cache_file"; then | |
7274 cat confcache >"$cache_file" | |
7275 else | |
7276 case $cache_file in #( | |
7277 */* | ?:*) | |
7278 mv -f confcache "$cache_file"$$ && | |
7279 mv -f "$cache_file"$$ "$cache_file" ;; #( | |
7280 *) | |
7281 mv -f confcache "$cache_file" ;; | |
7282 esac | |
7283 fi | |
7284 fi | |
7285 else | |
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
7287 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
7288 fi | |
7289 fi | |
7290 rm -f confcache | |
7291 | |
7292 test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
7293 # Let make expand exec_prefix. | |
7294 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
7295 | |
7296 # Transform confdefs.h into DEFS. | |
7297 # Protect against shell expansion while executing Makefile rules. | |
7298 # Protect against Makefile macro expansion. | |
7299 # | |
7300 # If the first sed substitution is executed (which looks for macros that | |
7301 # take arguments), then branch to the quote section. Otherwise, | |
7302 # look for a macro that doesn't take arguments. | |
7303 ac_script=' | |
7304 :mline | |
7305 /\\$/{ | |
7306 N | |
7307 s,\\\n,, | |
7308 b mline | |
7309 } | |
7310 t clear | |
7311 :clear | |
7312 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
7313 t quote | |
7314 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g | |
7315 t quote | |
7316 b any | |
7317 :quote | |
7318 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
7319 s/\[/\\&/g | |
7320 s/\]/\\&/g | |
7321 s/\$/$$/g | |
7322 H | |
7323 :any | |
7324 ${ | |
7325 g | |
7326 s/^\n// | |
7327 s/\n/ /g | |
7328 p | |
7329 } | |
7330 ' | |
7331 DEFS=`sed -n "$ac_script" confdefs.h` | |
7332 | |
7333 | |
7334 ac_libobjs= | |
7335 ac_ltlibobjs= | |
7336 U= | |
7337 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
7338 # 1. Remove the extension, and $U if already installed. | |
7339 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
7340 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
7341 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
7342 # will be set to the directory where LIBOBJS objects are built. | |
7343 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
7344 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
7345 done | |
7346 LIBOBJS=$ac_libobjs | |
7347 | |
7348 LTLIBOBJS=$ac_ltlibobjs | |
7349 | |
7350 | |
7351 | |
7352 : "${CONFIG_STATUS=./config.status}" | |
7353 ac_write_fail=0 | |
7354 ac_clean_files_save=$ac_clean_files | |
7355 ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
7357 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
7358 as_write_fail=0 | |
7359 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
7360 #! $SHELL | |
7361 # Generated by $as_me. | |
7362 # Run this file to recreate the current configuration. | |
7363 # Compiler output produced by configure, useful for debugging | |
7364 # configure, is in config.log if it exists. | |
7365 | |
7366 debug=false | |
7367 ac_cs_recheck=false | |
7368 ac_cs_silent=false | |
7369 | |
7370 SHELL=\${CONFIG_SHELL-$SHELL} | |
7371 export SHELL | |
7372 _ASEOF | |
7373 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
7374 ## -------------------- ## | |
7375 ## M4sh Initialization. ## | |
7376 ## -------------------- ## | |
7377 | |
7378 # Be more Bourne compatible | |
7379 DUALCASE=1; export DUALCASE # for MKS sh | |
7380 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
7381 emulate sh | |
7382 NULLCMD=: | |
7383 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
7384 # is contrary to our usage. Disable this feature. | |
7385 alias -g '${1+"$@"}'='"$@"' | |
7386 setopt NO_GLOB_SUBST | |
7387 else | |
7388 case `(set -o) 2>/dev/null` in #( | |
7389 *posix*) : | |
7390 set -o posix ;; #( | |
7391 *) : | |
7392 ;; | |
7393 esac | |
7394 fi | |
7395 | |
7396 | |
7397 as_nl=' | |
7398 ' | |
7399 export as_nl | |
7400 # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
7401 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
7402 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
7403 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
7404 # Prefer a ksh shell builtin over an external printf program on Solaris, | |
7405 # but without wasting forks for bash or zsh. | |
7406 if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
7407 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
7408 as_echo='print -r --' | |
7409 as_echo_n='print -rn --' | |
7410 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
7411 as_echo='printf %s\n' | |
7412 as_echo_n='printf %s' | |
7413 else | |
7414 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
7415 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
7416 as_echo_n='/usr/ucb/echo -n' | |
7417 else | |
7418 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
7419 as_echo_n_body='eval | |
7420 arg=$1; | |
7421 case $arg in #( | |
7422 *"$as_nl"*) | |
7423 expr "X$arg" : "X\\(.*\\)$as_nl"; | |
7424 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
7425 esac; | |
7426 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
7427 ' | |
7428 export as_echo_n_body | |
7429 as_echo_n='sh -c $as_echo_n_body as_echo' | |
7430 fi | |
7431 export as_echo_body | |
7432 as_echo='sh -c $as_echo_body as_echo' | |
7433 fi | |
7434 | |
7435 # The user is always right. | |
7436 if test "${PATH_SEPARATOR+set}" != set; then | |
7437 PATH_SEPARATOR=: | |
7438 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
7439 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
7440 PATH_SEPARATOR=';' | |
7441 } | |
7442 fi | |
7443 | |
7444 | |
7445 # IFS | |
7446 # We need space, tab and new line, in precisely that order. Quoting is | |
7447 # there to prevent editors from complaining about space-tab. | |
7448 # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
7449 # splitting by setting IFS to empty value.) | |
7450 IFS=" "" $as_nl" | |
7451 | |
7452 # Find who we are. Look in the path if we contain no directory separator. | |
7453 as_myself= | |
7454 case $0 in #(( | |
7455 *[\\/]* ) as_myself=$0 ;; | |
7456 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7457 for as_dir in $PATH | |
7458 do | |
7459 IFS=$as_save_IFS | |
7460 test -z "$as_dir" && as_dir=. | |
7461 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
7462 done | |
7463 IFS=$as_save_IFS | |
7464 | |
7465 ;; | |
7466 esac | |
7467 # We did not find ourselves, most probably we were run as `sh COMMAND' | |
7468 # in which case we are not to be found in the path. | |
7469 if test "x$as_myself" = x; then | |
7470 as_myself=$0 | |
7471 fi | |
7472 if test ! -f "$as_myself"; then | |
7473 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
7474 exit 1 | |
7475 fi | |
7476 | |
7477 # Unset variables that we do not need and which cause bugs (e.g. in | |
7478 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
7479 # suppresses any "Segmentation fault" message there. '((' could | |
7480 # trigger a bug in pdksh 5.2.14. | |
7481 for as_var in BASH_ENV ENV MAIL MAILPATH | |
7482 do eval test x\${$as_var+set} = xset \ | |
7483 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
7484 done | |
7485 PS1='$ ' | |
7486 PS2='> ' | |
7487 PS4='+ ' | |
7488 | |
7489 # NLS nuisances. | |
7490 LC_ALL=C | |
7491 export LC_ALL | |
7492 LANGUAGE=C | |
7493 export LANGUAGE | |
7494 | |
7495 # CDPATH. | |
7496 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
7497 | |
7498 | |
7499 # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
7500 # ---------------------------------------- | |
7501 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
7502 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
7503 # script with STATUS, using 1 if that was 0. | |
7504 as_fn_error () | |
7505 { | |
7506 as_status=$1; test $as_status -eq 0 && as_status=1 | |
7507 if test "$4"; then | |
7508 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
7509 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
7510 fi | |
7511 $as_echo "$as_me: error: $2" >&2 | |
7512 as_fn_exit $as_status | |
7513 } # as_fn_error | |
7514 | |
7515 | |
7516 # as_fn_set_status STATUS | |
7517 # ----------------------- | |
7518 # Set $? to STATUS, without forking. | |
7519 as_fn_set_status () | |
7520 { | |
7521 return $1 | |
7522 } # as_fn_set_status | |
7523 | |
7524 # as_fn_exit STATUS | |
7525 # ----------------- | |
7526 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
7527 as_fn_exit () | |
7528 { | |
7529 set +e | |
7530 as_fn_set_status $1 | |
7531 exit $1 | |
7532 } # as_fn_exit | |
7533 | |
7534 # as_fn_unset VAR | |
7535 # --------------- | |
7536 # Portably unset VAR. | |
7537 as_fn_unset () | |
7538 { | |
7539 { eval $1=; unset $1;} | |
7540 } | |
7541 as_unset=as_fn_unset | |
7542 # as_fn_append VAR VALUE | |
7543 # ---------------------- | |
7544 # Append the text in VALUE to the end of the definition contained in VAR. Take | |
7545 # advantage of any shell optimizations that allow amortized linear growth over | |
7546 # repeated appends, instead of the typical quadratic growth present in naive | |
7547 # implementations. | |
7548 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
7549 eval 'as_fn_append () | |
7550 { | |
7551 eval $1+=\$2 | |
7552 }' | |
7553 else | |
7554 as_fn_append () | |
7555 { | |
7556 eval $1=\$$1\$2 | |
7557 } | |
7558 fi # as_fn_append | |
7559 | |
7560 # as_fn_arith ARG... | |
7561 # ------------------ | |
7562 # Perform arithmetic evaluation on the ARGs, and store the result in the | |
7563 # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
7564 # must be portable across $(()) and expr. | |
7565 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
7566 eval 'as_fn_arith () | |
7567 { | |
7568 as_val=$(( $* )) | |
7569 }' | |
7570 else | |
7571 as_fn_arith () | |
7572 { | |
7573 as_val=`expr "$@" || test $? -eq 1` | |
7574 } | |
7575 fi # as_fn_arith | |
7576 | |
7577 | |
7578 if expr a : '\(a\)' >/dev/null 2>&1 && | |
7579 test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
7580 as_expr=expr | |
7581 else | |
7582 as_expr=false | |
7583 fi | |
7584 | |
7585 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
7586 as_basename=basename | |
7587 else | |
7588 as_basename=false | |
7589 fi | |
7590 | |
7591 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
7592 as_dirname=dirname | |
7593 else | |
7594 as_dirname=false | |
7595 fi | |
7596 | |
7597 as_me=`$as_basename -- "$0" || | |
7598 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
7599 X"$0" : 'X\(//\)$' \| \ | |
7600 X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
7601 $as_echo X/"$0" | | |
7602 sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
7603 s//\1/ | |
7604 q | |
7605 } | |
7606 /^X\/\(\/\/\)$/{ | |
7607 s//\1/ | |
7608 q | |
7609 } | |
7610 /^X\/\(\/\).*/{ | |
7611 s//\1/ | |
7612 q | |
7613 } | |
7614 s/.*/./; q'` | |
7615 | |
7616 # Avoid depending upon Character Ranges. | |
7617 as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
7618 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
7619 as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
7620 as_cr_digits='0123456789' | |
7621 as_cr_alnum=$as_cr_Letters$as_cr_digits | |
7622 | |
7623 ECHO_C= ECHO_N= ECHO_T= | |
7624 case `echo -n x` in #((((( | |
7625 -n*) | |
7626 case `echo 'xy\c'` in | |
7627 *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
7628 xy) ECHO_C='\c';; | |
7629 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
7630 ECHO_T=' ';; | |
7631 esac;; | |
7632 *) | |
7633 ECHO_N='-n';; | |
7634 esac | |
7635 | |
7636 rm -f conf$$ conf$$.exe conf$$.file | |
7637 if test -d conf$$.dir; then | |
7638 rm -f conf$$.dir/conf$$.file | |
7639 else | |
7640 rm -f conf$$.dir | |
7641 mkdir conf$$.dir 2>/dev/null | |
7642 fi | |
7643 if (echo >conf$$.file) 2>/dev/null; then | |
7644 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
7645 as_ln_s='ln -s' | |
7646 # ... but there are two gotchas: | |
7647 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
7648 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
7649 # In both cases, we have to default to `cp -pR'. | |
7650 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
7651 as_ln_s='cp -pR' | |
7652 elif ln conf$$.file conf$$ 2>/dev/null; then | |
7653 as_ln_s=ln | |
7654 else | |
7655 as_ln_s='cp -pR' | |
7656 fi | |
7657 else | |
7658 as_ln_s='cp -pR' | |
7659 fi | |
7660 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
7661 rmdir conf$$.dir 2>/dev/null | |
7662 | |
7663 | |
7664 # as_fn_mkdir_p | |
7665 # ------------- | |
7666 # Create "$as_dir" as a directory, including parents if necessary. | |
7667 as_fn_mkdir_p () | |
7668 { | |
7669 | |
7670 case $as_dir in #( | |
7671 -*) as_dir=./$as_dir;; | |
7672 esac | |
7673 test -d "$as_dir" || eval $as_mkdir_p || { | |
7674 as_dirs= | |
7675 while :; do | |
7676 case $as_dir in #( | |
7677 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
7678 *) as_qdir=$as_dir;; | |
7679 esac | |
7680 as_dirs="'$as_qdir' $as_dirs" | |
7681 as_dir=`$as_dirname -- "$as_dir" || | |
7682 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7683 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
7684 X"$as_dir" : 'X\(//\)$' \| \ | |
7685 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
7686 $as_echo X"$as_dir" | | |
7687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
7688 s//\1/ | |
7689 q | |
7690 } | |
7691 /^X\(\/\/\)[^/].*/{ | |
7692 s//\1/ | |
7693 q | |
7694 } | |
7695 /^X\(\/\/\)$/{ | |
7696 s//\1/ | |
7697 q | |
7698 } | |
7699 /^X\(\/\).*/{ | |
7700 s//\1/ | |
7701 q | |
7702 } | |
7703 s/.*/./; q'` | |
7704 test -d "$as_dir" && break | |
7705 done | |
7706 test -z "$as_dirs" || eval "mkdir $as_dirs" | |
7707 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
7708 | |
7709 | |
7710 } # as_fn_mkdir_p | |
7711 if mkdir -p . 2>/dev/null; then | |
7712 as_mkdir_p='mkdir -p "$as_dir"' | |
7713 else | |
7714 test -d ./-p && rmdir ./-p | |
7715 as_mkdir_p=false | |
7716 fi | |
7717 | |
7718 | |
7719 # as_fn_executable_p FILE | |
7720 # ----------------------- | |
7721 # Test if FILE is an executable regular file. | |
7722 as_fn_executable_p () | |
7723 { | |
7724 test -f "$1" && test -x "$1" | |
7725 } # as_fn_executable_p | |
7726 as_test_x='test -x' | |
7727 as_executable_p=as_fn_executable_p | |
7728 | |
7729 # Sed expression to map a string onto a valid CPP name. | |
7730 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
7731 | |
7732 # Sed expression to map a string onto a valid variable name. | |
7733 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
7734 | |
7735 | |
7736 exec 6>&1 | |
7737 ## ----------------------------------- ## | |
7738 ## Main body of $CONFIG_STATUS script. ## | |
7739 ## ----------------------------------- ## | |
7740 _ASEOF | |
7741 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
7742 | |
7743 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
7744 # Save the log message, to keep $0 and so on meaningful, and to | |
7745 # report actual input values of CONFIG_FILES etc. instead of their | |
7746 # values after options handling. | |
7747 ac_log=" | |
7748 This file was extended by Tony $as_me 0.0, which was | |
7749 generated by GNU Autoconf 2.69. Invocation command line was | |
7750 | |
7751 CONFIG_FILES = $CONFIG_FILES | |
7752 CONFIG_HEADERS = $CONFIG_HEADERS | |
7753 CONFIG_LINKS = $CONFIG_LINKS | |
7754 CONFIG_COMMANDS = $CONFIG_COMMANDS | |
7755 $ $0 $@ | |
7756 | |
7757 on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
7758 " | |
7759 | |
7760 _ACEOF | |
7761 | |
7762 case $ac_config_files in *" | |
7763 "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
7764 esac | |
7765 | |
7766 | |
7767 | |
7768 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7769 # Files that config.status was made for. | |
7770 config_files="$ac_config_files" | |
7771 | |
7772 _ACEOF | |
7773 | |
7774 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
7775 ac_cs_usage="\ | |
7776 \`$as_me' instantiates files and other configuration actions | |
7777 from templates according to the current configuration. Unless the files | |
7778 and actions are specified as TAGs, all are instantiated by default. | |
7779 | |
7780 Usage: $0 [OPTION]... [TAG]... | |
7781 | |
7782 -h, --help print this help, then exit | |
7783 -V, --version print version number and configuration settings, then exit | |
7784 --config print configuration, then exit | |
7785 -q, --quiet, --silent | |
7786 do not print progress messages | |
7787 -d, --debug don't remove temporary files | |
7788 --recheck update $as_me by reconfiguring in the same conditions | |
7789 --file=FILE[:TEMPLATE] | |
7790 instantiate the configuration file FILE | |
7791 | |
7792 Configuration files: | |
7793 $config_files | |
7794 | |
7795 Report bugs to <cannam@all-day-breakfast.com>." | |
7796 | |
7797 _ACEOF | |
7798 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7799 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
7800 ac_cs_version="\\ | |
7801 Tony config.status 0.0 | |
7802 configured by $0, generated by GNU Autoconf 2.69, | |
7803 with options \\"\$ac_cs_config\\" | |
7804 | |
7805 Copyright (C) 2012 Free Software Foundation, Inc. | |
7806 This config.status script is free software; the Free Software Foundation | |
7807 gives unlimited permission to copy, distribute and modify it." | |
7808 | |
7809 ac_pwd='$ac_pwd' | |
7810 srcdir='$srcdir' | |
7811 INSTALL='$INSTALL' | |
7812 MKDIR_P='$MKDIR_P' | |
7813 test -n "\$AWK" || AWK=awk | |
7814 _ACEOF | |
7815 | |
7816 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
7817 # The default lists apply if the user does not specify any file. | |
7818 ac_need_defaults=: | |
7819 while test $# != 0 | |
7820 do | |
7821 case $1 in | |
7822 --*=?*) | |
7823 ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
7824 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
7825 ac_shift=: | |
7826 ;; | |
7827 --*=) | |
7828 ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
7829 ac_optarg= | |
7830 ac_shift=: | |
7831 ;; | |
7832 *) | |
7833 ac_option=$1 | |
7834 ac_optarg=$2 | |
7835 ac_shift=shift | |
7836 ;; | |
7837 esac | |
7838 | |
7839 case $ac_option in | |
7840 # Handling of the options. | |
7841 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
7842 ac_cs_recheck=: ;; | |
7843 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
7844 $as_echo "$ac_cs_version"; exit ;; | |
7845 --config | --confi | --conf | --con | --co | --c ) | |
7846 $as_echo "$ac_cs_config"; exit ;; | |
7847 --debug | --debu | --deb | --de | --d | -d ) | |
7848 debug=: ;; | |
7849 --file | --fil | --fi | --f ) | |
7850 $ac_shift | |
7851 case $ac_optarg in | |
7852 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7853 '') as_fn_error $? "missing file argument" ;; | |
7854 esac | |
7855 as_fn_append CONFIG_FILES " '$ac_optarg'" | |
7856 ac_need_defaults=false;; | |
7857 --he | --h | --help | --hel | -h ) | |
7858 $as_echo "$ac_cs_usage"; exit ;; | |
7859 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
7860 | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
7861 ac_cs_silent=: ;; | |
7862 | |
7863 # This is an error. | |
7864 -*) as_fn_error $? "unrecognized option: \`$1' | |
7865 Try \`$0 --help' for more information." ;; | |
7866 | |
7867 *) as_fn_append ac_config_targets " $1" | |
7868 ac_need_defaults=false ;; | |
7869 | |
7870 esac | |
7871 shift | |
7872 done | |
7873 | |
7874 ac_configure_extra_args= | |
7875 | |
7876 if $ac_cs_silent; then | |
7877 exec 6>/dev/null | |
7878 ac_configure_extra_args="$ac_configure_extra_args --silent" | |
7879 fi | |
7880 | |
7881 _ACEOF | |
7882 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7883 if \$ac_cs_recheck; then | |
7884 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
7885 shift | |
7886 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
7887 CONFIG_SHELL='$SHELL' | |
7888 export CONFIG_SHELL | |
7889 exec "\$@" | |
7890 fi | |
7891 | |
7892 _ACEOF | |
7893 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
7894 exec 5>>config.log | |
7895 { | |
7896 echo | |
7897 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
7898 ## Running $as_me. ## | |
7899 _ASBOX | |
7900 $as_echo "$ac_log" | |
7901 } >&5 | |
7902 | |
7903 _ACEOF | |
7904 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7905 _ACEOF | |
7906 | |
7907 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
7908 | |
7909 # Handling of arguments. | |
7910 for ac_config_target in $ac_config_targets | |
7911 do | |
7912 case $ac_config_target in | |
7913 "config.pri") CONFIG_FILES="$CONFIG_FILES config.pri" ;; | |
7914 "version.h") CONFIG_FILES="$CONFIG_FILES version.h" ;; | |
7915 | |
7916 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
7917 esac | |
7918 done | |
7919 | |
7920 | |
7921 # If the user did not use the arguments to specify the items to instantiate, | |
7922 # then the envvar interface is used. Set only those that are not. | |
7923 # We use the long form for the default assignment because of an extremely | |
7924 # bizarre bug on SunOS 4.1.3. | |
7925 if $ac_need_defaults; then | |
7926 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
7927 fi | |
7928 | |
7929 # Have a temporary directory for convenience. Make it in the build tree | |
7930 # simply because there is no reason against having it here, and in addition, | |
7931 # creating and moving files from /tmp can sometimes cause problems. | |
7932 # Hook for its removal unless debugging. | |
7933 # Note that there is a small window in which the directory will not be cleaned: | |
7934 # after its creation but before its name has been assigned to `$tmp'. | |
7935 $debug || | |
7936 { | |
7937 tmp= ac_tmp= | |
7938 trap 'exit_status=$? | |
7939 : "${ac_tmp:=$tmp}" | |
7940 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
7941 ' 0 | |
7942 trap 'as_fn_exit 1' 1 2 13 15 | |
7943 } | |
7944 # Create a (secure) tmp directory for tmp files. | |
7945 | |
7946 { | |
7947 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
7948 test -d "$tmp" | |
7949 } || | |
7950 { | |
7951 tmp=./conf$$-$RANDOM | |
7952 (umask 077 && mkdir "$tmp") | |
7953 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | |
7954 ac_tmp=$tmp | |
7955 | |
7956 # Set up the scripts for CONFIG_FILES section. | |
7957 # No need to generate them if there are no CONFIG_FILES. | |
7958 # This happens for instance with `./config.status config.h'. | |
7959 if test -n "$CONFIG_FILES"; then | |
7960 | |
7961 | |
7962 ac_cr=`echo X | tr X '\015'` | |
7963 # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
7964 # But we know of no other shell where ac_cr would be empty at this | |
7965 # point, so we can use a bashism as a fallback. | |
7966 if test "x$ac_cr" = x; then | |
7967 eval ac_cr=\$\'\\r\' | |
7968 fi | |
7969 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
7970 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
7971 ac_cs_awk_cr='\\r' | |
7972 else | |
7973 ac_cs_awk_cr=$ac_cr | |
7974 fi | |
7975 | |
7976 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | |
7977 _ACEOF | |
7978 | |
7979 | |
7980 { | |
7981 echo "cat >conf$$subs.awk <<_ACEOF" && | |
7982 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
7983 echo "_ACEOF" | |
7984 } >conf$$subs.sh || | |
7985 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
7986 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
7987 ac_delim='%!_!# ' | |
7988 for ac_last_try in false false false false false :; do | |
7989 . ./conf$$subs.sh || | |
7990 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
7991 | |
7992 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
7993 if test $ac_delim_n = $ac_delim_num; then | |
7994 break | |
7995 elif $ac_last_try; then | |
7996 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
7997 else | |
7998 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
7999 fi | |
8000 done | |
8001 rm -f conf$$subs.sh | |
8002 | |
8003 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8004 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | |
8005 _ACEOF | |
8006 sed -n ' | |
8007 h | |
8008 s/^/S["/; s/!.*/"]=/ | |
8009 p | |
8010 g | |
8011 s/^[^!]*!// | |
8012 :repl | |
8013 t repl | |
8014 s/'"$ac_delim"'$// | |
8015 t delim | |
8016 :nl | |
8017 h | |
8018 s/\(.\{148\}\)..*/\1/ | |
8019 t more1 | |
8020 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
8021 p | |
8022 n | |
8023 b repl | |
8024 :more1 | |
8025 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
8026 p | |
8027 g | |
8028 s/.\{148\}// | |
8029 t nl | |
8030 :delim | |
8031 h | |
8032 s/\(.\{148\}\)..*/\1/ | |
8033 t more2 | |
8034 s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
8035 p | |
8036 b | |
8037 :more2 | |
8038 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
8039 p | |
8040 g | |
8041 s/.\{148\}// | |
8042 t delim | |
8043 ' <conf$$subs.awk | sed ' | |
8044 /^[^""]/{ | |
8045 N | |
8046 s/\n// | |
8047 } | |
8048 ' >>$CONFIG_STATUS || ac_write_fail=1 | |
8049 rm -f conf$$subs.awk | |
8050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8051 _ACAWK | |
8052 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | |
8053 for (key in S) S_is_set[key] = 1 | |
8054 FS = "" | |
8055 | |
8056 } | |
8057 { | |
8058 line = $ 0 | |
8059 nfields = split(line, field, "@") | |
8060 substed = 0 | |
8061 len = length(field[1]) | |
8062 for (i = 2; i < nfields; i++) { | |
8063 key = field[i] | |
8064 keylen = length(key) | |
8065 if (S_is_set[key]) { | |
8066 value = S[key] | |
8067 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
8068 len += length(value) + length(field[++i]) | |
8069 substed = 1 | |
8070 } else | |
8071 len += 1 + keylen | |
8072 } | |
8073 | |
8074 print line | |
8075 } | |
8076 | |
8077 _ACAWK | |
8078 _ACEOF | |
8079 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
8080 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
8081 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
8082 else | |
8083 cat | |
8084 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | |
8085 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
8086 _ACEOF | |
8087 | |
8088 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | |
8089 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
8090 # trailing colons and then remove the whole line if VPATH becomes empty | |
8091 # (actually we leave an empty line to preserve line numbers). | |
8092 if test "x$srcdir" = x.; then | |
8093 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | |
8094 h | |
8095 s/// | |
8096 s/^/:/ | |
8097 s/[ ]*$/:/ | |
8098 s/:\$(srcdir):/:/g | |
8099 s/:\${srcdir}:/:/g | |
8100 s/:@srcdir@:/:/g | |
8101 s/^:*// | |
8102 s/:*$// | |
8103 x | |
8104 s/\(=[ ]*\).*/\1/ | |
8105 G | |
8106 s/\n// | |
8107 s/^[^=]*=[ ]*$// | |
8108 }' | |
8109 fi | |
8110 | |
8111 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
8112 fi # test -n "$CONFIG_FILES" | |
8113 | |
8114 | |
8115 eval set X " :F $CONFIG_FILES " | |
8116 shift | |
8117 for ac_tag | |
8118 do | |
8119 case $ac_tag in | |
8120 :[FHLC]) ac_mode=$ac_tag; continue;; | |
8121 esac | |
8122 case $ac_mode$ac_tag in | |
8123 :[FHL]*:*);; | |
8124 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
8125 :[FH]-) ac_tag=-:-;; | |
8126 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
8127 esac | |
8128 ac_save_IFS=$IFS | |
8129 IFS=: | |
8130 set x $ac_tag | |
8131 IFS=$ac_save_IFS | |
8132 shift | |
8133 ac_file=$1 | |
8134 shift | |
8135 | |
8136 case $ac_mode in | |
8137 :L) ac_source=$1;; | |
8138 :[FH]) | |
8139 ac_file_inputs= | |
8140 for ac_f | |
8141 do | |
8142 case $ac_f in | |
8143 -) ac_f="$ac_tmp/stdin";; | |
8144 *) # Look for the file first in the build tree, then in the source tree | |
8145 # (if the path is not absolute). The absolute path cannot be DOS-style, | |
8146 # because $ac_f cannot contain `:'. | |
8147 test -f "$ac_f" || | |
8148 case $ac_f in | |
8149 [\\/$]*) false;; | |
8150 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
8151 esac || | |
8152 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
8153 esac | |
8154 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
8155 as_fn_append ac_file_inputs " '$ac_f'" | |
8156 done | |
8157 | |
8158 # Let's still pretend it is `configure' which instantiates (i.e., don't | |
8159 # use $as_me), people would be surprised to read: | |
8160 # /* config.h. Generated by config.status. */ | |
8161 configure_input='Generated from '` | |
8162 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
8163 `' by configure.' | |
8164 if test x"$ac_file" != x-; then | |
8165 configure_input="$ac_file. $configure_input" | |
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
8167 $as_echo "$as_me: creating $ac_file" >&6;} | |
8168 fi | |
8169 # Neutralize special characters interpreted by sed in replacement strings. | |
8170 case $configure_input in #( | |
8171 *\&* | *\|* | *\\* ) | |
8172 ac_sed_conf_input=`$as_echo "$configure_input" | | |
8173 sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
8174 *) ac_sed_conf_input=$configure_input;; | |
8175 esac | |
8176 | |
8177 case $ac_tag in | |
8178 *:-:* | *:-) cat >"$ac_tmp/stdin" \ | |
8179 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
8180 esac | |
8181 ;; | |
8182 esac | |
8183 | |
8184 ac_dir=`$as_dirname -- "$ac_file" || | |
8185 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8186 X"$ac_file" : 'X\(//\)[^/]' \| \ | |
8187 X"$ac_file" : 'X\(//\)$' \| \ | |
8188 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
8189 $as_echo X"$ac_file" | | |
8190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
8191 s//\1/ | |
8192 q | |
8193 } | |
8194 /^X\(\/\/\)[^/].*/{ | |
8195 s//\1/ | |
8196 q | |
8197 } | |
8198 /^X\(\/\/\)$/{ | |
8199 s//\1/ | |
8200 q | |
8201 } | |
8202 /^X\(\/\).*/{ | |
8203 s//\1/ | |
8204 q | |
8205 } | |
8206 s/.*/./; q'` | |
8207 as_dir="$ac_dir"; as_fn_mkdir_p | |
8208 ac_builddir=. | |
8209 | |
8210 case "$ac_dir" in | |
8211 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
8212 *) | |
8213 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
8214 # A ".." for each directory in $ac_dir_suffix. | |
8215 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
8216 case $ac_top_builddir_sub in | |
8217 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
8218 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
8219 esac ;; | |
8220 esac | |
8221 ac_abs_top_builddir=$ac_pwd | |
8222 ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
8223 # for backward compatibility: | |
8224 ac_top_builddir=$ac_top_build_prefix | |
8225 | |
8226 case $srcdir in | |
8227 .) # We are building in place. | |
8228 ac_srcdir=. | |
8229 ac_top_srcdir=$ac_top_builddir_sub | |
8230 ac_abs_top_srcdir=$ac_pwd ;; | |
8231 [\\/]* | ?:[\\/]* ) # Absolute name. | |
8232 ac_srcdir=$srcdir$ac_dir_suffix; | |
8233 ac_top_srcdir=$srcdir | |
8234 ac_abs_top_srcdir=$srcdir ;; | |
8235 *) # Relative name. | |
8236 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
8237 ac_top_srcdir=$ac_top_build_prefix$srcdir | |
8238 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
8239 esac | |
8240 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
8241 | |
8242 | |
8243 case $ac_mode in | |
8244 :F) | |
8245 # | |
8246 # CONFIG_FILE | |
8247 # | |
8248 | |
8249 case $INSTALL in | |
8250 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
8251 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
8252 esac | |
8253 ac_MKDIR_P=$MKDIR_P | |
8254 case $MKDIR_P in | |
8255 [\\/$]* | ?:[\\/]* ) ;; | |
8256 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
8257 esac | |
8258 _ACEOF | |
8259 | |
8260 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
8261 # If the template does not know about datarootdir, expand it. | |
8262 # FIXME: This hack should be removed a few years after 2.60. | |
8263 ac_datarootdir_hack=; ac_datarootdir_seen= | |
8264 ac_sed_dataroot=' | |
8265 /datarootdir/ { | |
8266 p | |
8267 q | |
8268 } | |
8269 /@datadir@/p | |
8270 /@docdir@/p | |
8271 /@infodir@/p | |
8272 /@localedir@/p | |
8273 /@mandir@/p' | |
8274 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
8275 *datarootdir*) ac_datarootdir_seen=yes;; | |
8276 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
8278 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
8279 _ACEOF | |
8280 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8281 ac_datarootdir_hack=' | |
8282 s&@datadir@&$datadir&g | |
8283 s&@docdir@&$docdir&g | |
8284 s&@infodir@&$infodir&g | |
8285 s&@localedir@&$localedir&g | |
8286 s&@mandir@&$mandir&g | |
8287 s&\\\${datarootdir}&$datarootdir&g' ;; | |
8288 esac | |
8289 _ACEOF | |
8290 | |
8291 # Neutralize VPATH when `$srcdir' = `.'. | |
8292 # Shell code in configure.ac might set extrasub. | |
8293 # FIXME: do we really want to maintain this feature? | |
8294 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8295 ac_sed_extra="$ac_vpsub | |
8296 $extrasub | |
8297 _ACEOF | |
8298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
8299 :t | |
8300 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
8301 s|@configure_input@|$ac_sed_conf_input|;t t | |
8302 s&@top_builddir@&$ac_top_builddir_sub&;t t | |
8303 s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
8304 s&@srcdir@&$ac_srcdir&;t t | |
8305 s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
8306 s&@top_srcdir@&$ac_top_srcdir&;t t | |
8307 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
8308 s&@builddir@&$ac_builddir&;t t | |
8309 s&@abs_builddir@&$ac_abs_builddir&;t t | |
8310 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
8311 s&@INSTALL@&$ac_INSTALL&;t t | |
8312 s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
8313 $ac_datarootdir_hack | |
8314 " | |
8315 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | |
8316 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
8317 | |
8318 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
8319 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | |
8320 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
8321 "$ac_tmp/out"`; test -z "$ac_out"; } && | |
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
8323 which seems to be undefined. Please make sure it is defined" >&5 | |
8324 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
8325 which seems to be undefined. Please make sure it is defined" >&2;} | |
8326 | |
8327 rm -f "$ac_tmp/stdin" | |
8328 case $ac_file in | |
8329 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | |
8330 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
8331 esac \ | |
8332 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
8333 ;; | |
8334 | |
8335 | |
8336 | |
8337 esac | |
8338 | |
8339 done # for ac_tag | |
8340 | |
8341 | |
8342 as_fn_exit 0 | |
8343 _ACEOF | |
8344 ac_clean_files=$ac_clean_files_save | |
8345 | |
8346 test $ac_write_fail = 0 || | |
8347 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
8348 | |
8349 | |
8350 # configure is writing to config.log, and then calls config.status. | |
8351 # config.status does its own redirection, appending to config.log. | |
8352 # Unfortunately, on DOS this fails, as config.log is still kept open | |
8353 # by configure, so config.status won't be able to write to it; its | |
8354 # output is simply discarded. So we exec the FD to /dev/null, | |
8355 # effectively closing config.log, so it can be properly (re)opened and | |
8356 # appended to by config.status. When coming back to configure, we | |
8357 # need to make the FD available again. | |
8358 if test "$no_create" != yes; then | |
8359 ac_cs_success=: | |
8360 ac_config_status_args= | |
8361 test "$silent" = yes && | |
8362 ac_config_status_args="$ac_config_status_args --quiet" | |
8363 exec 5>/dev/null | |
8364 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
8365 exec 5>>config.log | |
8366 # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
8367 # would make configure fail if this is the last instruction. | |
8368 $ac_cs_success || as_fn_exit 1 | |
8369 fi | |
8370 | |
8371 # | |
8372 # CONFIG_SUBDIRS section. | |
8373 # | |
8374 if test "$no_recursion" != yes; then | |
8375 | |
8376 # Remove --cache-file, --srcdir, and --disable-option-checking arguments | |
8377 # so they do not pile up. | |
8378 ac_sub_configure_args= | |
8379 ac_prev= | |
8380 eval "set x $ac_configure_args" | |
8381 shift | |
8382 for ac_arg | |
8383 do | |
8384 if test -n "$ac_prev"; then | |
8385 ac_prev= | |
8386 continue | |
8387 fi | |
8388 case $ac_arg in | |
8389 -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
8390 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
8391 ac_prev=cache_file ;; | |
8392 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
8393 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
8394 | --c=*) | |
8395 ;; | |
8396 --config-cache | -C) | |
8397 ;; | |
8398 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
8399 ac_prev=srcdir ;; | |
8400 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
8401 ;; | |
8402 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
8403 ac_prev=prefix ;; | |
8404 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
8405 ;; | |
8406 --disable-option-checking) | |
8407 ;; | |
8408 *) | |
8409 case $ac_arg in | |
8410 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
8411 esac | |
8412 as_fn_append ac_sub_configure_args " '$ac_arg'" ;; | |
8413 esac | |
8414 done | |
8415 | |
8416 # Always prepend --prefix to ensure using the same prefix | |
8417 # in subdir configurations. | |
8418 ac_arg="--prefix=$prefix" | |
8419 case $ac_arg in | |
8420 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
8421 esac | |
8422 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" | |
8423 | |
8424 # Pass --silent | |
8425 if test "$silent" = yes; then | |
8426 ac_sub_configure_args="--silent $ac_sub_configure_args" | |
8427 fi | |
8428 | |
8429 # Always prepend --disable-option-checking to silence warnings, since | |
8430 # different subdirs can have different --enable and --with options. | |
8431 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" | |
8432 | |
8433 ac_popdir=`pwd` | |
8434 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
8435 | |
8436 # Do not complain, so a configure script can configure whichever | |
8437 # parts of a large source tree are present. | |
8438 test -d "$srcdir/$ac_dir" || continue | |
8439 | |
8440 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" | |
8441 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 | |
8442 $as_echo "$ac_msg" >&6 | |
8443 as_dir="$ac_dir"; as_fn_mkdir_p | |
8444 ac_builddir=. | |
8445 | |
8446 case "$ac_dir" in | |
8447 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
8448 *) | |
8449 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
8450 # A ".." for each directory in $ac_dir_suffix. | |
8451 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
8452 case $ac_top_builddir_sub in | |
8453 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
8454 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
8455 esac ;; | |
8456 esac | |
8457 ac_abs_top_builddir=$ac_pwd | |
8458 ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
8459 # for backward compatibility: | |
8460 ac_top_builddir=$ac_top_build_prefix | |
8461 | |
8462 case $srcdir in | |
8463 .) # We are building in place. | |
8464 ac_srcdir=. | |
8465 ac_top_srcdir=$ac_top_builddir_sub | |
8466 ac_abs_top_srcdir=$ac_pwd ;; | |
8467 [\\/]* | ?:[\\/]* ) # Absolute name. | |
8468 ac_srcdir=$srcdir$ac_dir_suffix; | |
8469 ac_top_srcdir=$srcdir | |
8470 ac_abs_top_srcdir=$srcdir ;; | |
8471 *) # Relative name. | |
8472 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
8473 ac_top_srcdir=$ac_top_build_prefix$srcdir | |
8474 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
8475 esac | |
8476 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
8477 | |
8478 | |
8479 cd "$ac_dir" | |
8480 | |
8481 # Check for guested configure; otherwise get Cygnus style configure. | |
8482 if test -f "$ac_srcdir/configure.gnu"; then | |
8483 ac_sub_configure=$ac_srcdir/configure.gnu | |
8484 elif test -f "$ac_srcdir/configure"; then | |
8485 ac_sub_configure=$ac_srcdir/configure | |
8486 elif test -f "$ac_srcdir/configure.in"; then | |
8487 # This should be Cygnus configure. | |
8488 ac_sub_configure=$ac_aux_dir/configure | |
8489 else | |
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 | |
8491 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
8492 ac_sub_configure= | |
8493 fi | |
8494 | |
8495 # The recursion is here. | |
8496 if test -n "$ac_sub_configure"; then | |
8497 # Make the cache file name correct relative to the subdirectory. | |
8498 case $cache_file in | |
8499 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
8500 *) # Relative name. | |
8501 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; | |
8502 esac | |
8503 | |
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
8505 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
8506 # The eval makes quoting arguments work. | |
8507 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ | |
8508 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | |
8509 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 | |
8510 fi | |
8511 | |
8512 cd "$ac_popdir" | |
8513 done | |
8514 fi | |
8515 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
8517 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
8518 fi | |
8519 | |
8520 | |
8521 if ! $QMAKE -r; then | |
8522 as_fn_error $? "qmake failed: Command was \"$QMAKE -r\"" "$LINENO" 5 | |
8523 fi | |
8524 | |
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: | |
8526 | |
8527 Configuration complete. | |
8528 Please check the above messages for any warnings that you | |
8529 might care about, and then run \"make\". | |
8530 | |
8531 The file config.pri contains the configuration settings for | |
8532 qmake. If you want to adjust these by hand, edit config.pri | |
8533 and run \"qmake -r\" again to regenerate the Makefile. | |
8534 " >&5 | |
8535 $as_echo "$as_me: | |
8536 | |
8537 Configuration complete. | |
8538 Please check the above messages for any warnings that you | |
8539 might care about, and then run \"make\". | |
8540 | |
8541 The file config.pri contains the configuration settings for | |
8542 qmake. If you want to adjust these by hand, edit config.pri | |
8543 and run \"qmake -r\" again to regenerate the Makefile. | |
8544 " >&6;} |