comparison src/rubberband-1.8.1/configure @ 10:37bf6b4a2645

Add FFTW3
author Chris Cannam
date Wed, 20 Mar 2013 15:35:50 +0000
parents
children
comparison
equal deleted inserted replaced
9:c0fb53affa76 10:37bf6b4a2645
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for RubberBand 1.7.
4 #
5 # Report bugs to <chris.cannam@breakfastquay.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: chris.cannam@breakfastquay.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='RubberBand'
582 PACKAGE_TARNAME='rubberband'
583 PACKAGE_VERSION='1.7'
584 PACKAGE_STRING='RubberBand 1.7'
585 PACKAGE_BUGREPORT='chris.cannam@breakfastquay.com'
586 PACKAGE_URL=''
587
588 ac_unique_file="src/StretcherImpl.h"
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 ac_subst_vars='LTLIBOBJS
626 LIBOBJS
627 Vamp_LIBS
628 Vamp_CFLAGS
629 FFTW_LIBS
630 FFTW_CFLAGS
631 SNDFILE_LIBS
632 SNDFILE_CFLAGS
633 SRC_LIBS
634 SRC_CFLAGS
635 PKG_CONFIG_LIBDIR
636 PKG_CONFIG_PATH
637 PKG_CONFIG
638 EGREP
639 GREP
640 CPP
641 ac_ct_CC
642 CFLAGS
643 CC
644 OBJEXT
645 EXEEXT
646 ac_ct_CXX
647 CPPFLAGS
648 LDFLAGS
649 CXXFLAGS
650 CXX
651 target_alias
652 host_alias
653 build_alias
654 LIBS
655 ECHO_T
656 ECHO_N
657 ECHO_C
658 DEFS
659 mandir
660 localedir
661 libdir
662 psdir
663 pdfdir
664 dvidir
665 htmldir
666 infodir
667 docdir
668 oldincludedir
669 includedir
670 localstatedir
671 sharedstatedir
672 sysconfdir
673 datadir
674 datarootdir
675 libexecdir
676 sbindir
677 bindir
678 program_transform_name
679 prefix
680 exec_prefix
681 PACKAGE_URL
682 PACKAGE_BUGREPORT
683 PACKAGE_STRING
684 PACKAGE_VERSION
685 PACKAGE_TARNAME
686 PACKAGE_NAME
687 PATH_SEPARATOR
688 SHELL'
689 ac_subst_files=''
690 ac_user_opts='
691 enable_option_checking
692 '
693 ac_precious_vars='build_alias
694 host_alias
695 target_alias
696 CXX
697 CXXFLAGS
698 LDFLAGS
699 LIBS
700 CPPFLAGS
701 CCC
702 CC
703 CFLAGS
704 CPP
705 PKG_CONFIG
706 PKG_CONFIG_PATH
707 PKG_CONFIG_LIBDIR
708 SRC_CFLAGS
709 SRC_LIBS
710 SNDFILE_CFLAGS
711 SNDFILE_LIBS
712 FFTW_CFLAGS
713 FFTW_LIBS
714 Vamp_CFLAGS
715 Vamp_LIBS'
716
717
718 # Initialize some variables set by options.
719 ac_init_help=
720 ac_init_version=false
721 ac_unrecognized_opts=
722 ac_unrecognized_sep=
723 # The variables have the same names as the options, with
724 # dashes changed to underlines.
725 cache_file=/dev/null
726 exec_prefix=NONE
727 no_create=
728 no_recursion=
729 prefix=NONE
730 program_prefix=NONE
731 program_suffix=NONE
732 program_transform_name=s,x,x,
733 silent=
734 site=
735 srcdir=
736 verbose=
737 x_includes=NONE
738 x_libraries=NONE
739
740 # Installation directory options.
741 # These are left unexpanded so users can "make install exec_prefix=/foo"
742 # and all the variables that are supposed to be based on exec_prefix
743 # by default will actually change.
744 # Use braces instead of parens because sh, perl, etc. also accept them.
745 # (The list follows the same order as the GNU Coding Standards.)
746 bindir='${exec_prefix}/bin'
747 sbindir='${exec_prefix}/sbin'
748 libexecdir='${exec_prefix}/libexec'
749 datarootdir='${prefix}/share'
750 datadir='${datarootdir}'
751 sysconfdir='${prefix}/etc'
752 sharedstatedir='${prefix}/com'
753 localstatedir='${prefix}/var'
754 includedir='${prefix}/include'
755 oldincludedir='/usr/include'
756 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
757 infodir='${datarootdir}/info'
758 htmldir='${docdir}'
759 dvidir='${docdir}'
760 pdfdir='${docdir}'
761 psdir='${docdir}'
762 libdir='${exec_prefix}/lib'
763 localedir='${datarootdir}/locale'
764 mandir='${datarootdir}/man'
765
766 ac_prev=
767 ac_dashdash=
768 for ac_option
769 do
770 # If the previous option needs an argument, assign it.
771 if test -n "$ac_prev"; then
772 eval $ac_prev=\$ac_option
773 ac_prev=
774 continue
775 fi
776
777 case $ac_option in
778 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
779 *=) ac_optarg= ;;
780 *) ac_optarg=yes ;;
781 esac
782
783 # Accept the important Cygnus configure options, so we can diagnose typos.
784
785 case $ac_dashdash$ac_option in
786 --)
787 ac_dashdash=yes ;;
788
789 -bindir | --bindir | --bindi | --bind | --bin | --bi)
790 ac_prev=bindir ;;
791 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
792 bindir=$ac_optarg ;;
793
794 -build | --build | --buil | --bui | --bu)
795 ac_prev=build_alias ;;
796 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
797 build_alias=$ac_optarg ;;
798
799 -cache-file | --cache-file | --cache-fil | --cache-fi \
800 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
801 ac_prev=cache_file ;;
802 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
803 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
804 cache_file=$ac_optarg ;;
805
806 --config-cache | -C)
807 cache_file=config.cache ;;
808
809 -datadir | --datadir | --datadi | --datad)
810 ac_prev=datadir ;;
811 -datadir=* | --datadir=* | --datadi=* | --datad=*)
812 datadir=$ac_optarg ;;
813
814 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
815 | --dataroo | --dataro | --datar)
816 ac_prev=datarootdir ;;
817 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
818 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
819 datarootdir=$ac_optarg ;;
820
821 -disable-* | --disable-*)
822 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
823 # Reject names that are not valid shell variable names.
824 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
825 as_fn_error $? "invalid feature name: $ac_useropt"
826 ac_useropt_orig=$ac_useropt
827 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
828 case $ac_user_opts in
829 *"
830 "enable_$ac_useropt"
831 "*) ;;
832 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
833 ac_unrecognized_sep=', ';;
834 esac
835 eval enable_$ac_useropt=no ;;
836
837 -docdir | --docdir | --docdi | --doc | --do)
838 ac_prev=docdir ;;
839 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
840 docdir=$ac_optarg ;;
841
842 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
843 ac_prev=dvidir ;;
844 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
845 dvidir=$ac_optarg ;;
846
847 -enable-* | --enable-*)
848 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
849 # Reject names that are not valid shell variable names.
850 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
851 as_fn_error $? "invalid feature name: $ac_useropt"
852 ac_useropt_orig=$ac_useropt
853 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
854 case $ac_user_opts in
855 *"
856 "enable_$ac_useropt"
857 "*) ;;
858 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
859 ac_unrecognized_sep=', ';;
860 esac
861 eval enable_$ac_useropt=\$ac_optarg ;;
862
863 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
864 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
865 | --exec | --exe | --ex)
866 ac_prev=exec_prefix ;;
867 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
868 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
869 | --exec=* | --exe=* | --ex=*)
870 exec_prefix=$ac_optarg ;;
871
872 -gas | --gas | --ga | --g)
873 # Obsolete; use --with-gas.
874 with_gas=yes ;;
875
876 -help | --help | --hel | --he | -h)
877 ac_init_help=long ;;
878 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
879 ac_init_help=recursive ;;
880 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
881 ac_init_help=short ;;
882
883 -host | --host | --hos | --ho)
884 ac_prev=host_alias ;;
885 -host=* | --host=* | --hos=* | --ho=*)
886 host_alias=$ac_optarg ;;
887
888 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
889 ac_prev=htmldir ;;
890 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
891 | --ht=*)
892 htmldir=$ac_optarg ;;
893
894 -includedir | --includedir | --includedi | --included | --include \
895 | --includ | --inclu | --incl | --inc)
896 ac_prev=includedir ;;
897 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
898 | --includ=* | --inclu=* | --incl=* | --inc=*)
899 includedir=$ac_optarg ;;
900
901 -infodir | --infodir | --infodi | --infod | --info | --inf)
902 ac_prev=infodir ;;
903 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
904 infodir=$ac_optarg ;;
905
906 -libdir | --libdir | --libdi | --libd)
907 ac_prev=libdir ;;
908 -libdir=* | --libdir=* | --libdi=* | --libd=*)
909 libdir=$ac_optarg ;;
910
911 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
912 | --libexe | --libex | --libe)
913 ac_prev=libexecdir ;;
914 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
915 | --libexe=* | --libex=* | --libe=*)
916 libexecdir=$ac_optarg ;;
917
918 -localedir | --localedir | --localedi | --localed | --locale)
919 ac_prev=localedir ;;
920 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
921 localedir=$ac_optarg ;;
922
923 -localstatedir | --localstatedir | --localstatedi | --localstated \
924 | --localstate | --localstat | --localsta | --localst | --locals)
925 ac_prev=localstatedir ;;
926 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
927 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
928 localstatedir=$ac_optarg ;;
929
930 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
931 ac_prev=mandir ;;
932 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
933 mandir=$ac_optarg ;;
934
935 -nfp | --nfp | --nf)
936 # Obsolete; use --without-fp.
937 with_fp=no ;;
938
939 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
940 | --no-cr | --no-c | -n)
941 no_create=yes ;;
942
943 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
944 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
945 no_recursion=yes ;;
946
947 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
948 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
949 | --oldin | --oldi | --old | --ol | --o)
950 ac_prev=oldincludedir ;;
951 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
952 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
953 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
954 oldincludedir=$ac_optarg ;;
955
956 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
957 ac_prev=prefix ;;
958 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
959 prefix=$ac_optarg ;;
960
961 -program-prefix | --program-prefix | --program-prefi | --program-pref \
962 | --program-pre | --program-pr | --program-p)
963 ac_prev=program_prefix ;;
964 -program-prefix=* | --program-prefix=* | --program-prefi=* \
965 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
966 program_prefix=$ac_optarg ;;
967
968 -program-suffix | --program-suffix | --program-suffi | --program-suff \
969 | --program-suf | --program-su | --program-s)
970 ac_prev=program_suffix ;;
971 -program-suffix=* | --program-suffix=* | --program-suffi=* \
972 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
973 program_suffix=$ac_optarg ;;
974
975 -program-transform-name | --program-transform-name \
976 | --program-transform-nam | --program-transform-na \
977 | --program-transform-n | --program-transform- \
978 | --program-transform | --program-transfor \
979 | --program-transfo | --program-transf \
980 | --program-trans | --program-tran \
981 | --progr-tra | --program-tr | --program-t)
982 ac_prev=program_transform_name ;;
983 -program-transform-name=* | --program-transform-name=* \
984 | --program-transform-nam=* | --program-transform-na=* \
985 | --program-transform-n=* | --program-transform-=* \
986 | --program-transform=* | --program-transfor=* \
987 | --program-transfo=* | --program-transf=* \
988 | --program-trans=* | --program-tran=* \
989 | --progr-tra=* | --program-tr=* | --program-t=*)
990 program_transform_name=$ac_optarg ;;
991
992 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
993 ac_prev=pdfdir ;;
994 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
995 pdfdir=$ac_optarg ;;
996
997 -psdir | --psdir | --psdi | --psd | --ps)
998 ac_prev=psdir ;;
999 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1000 psdir=$ac_optarg ;;
1001
1002 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1003 | -silent | --silent | --silen | --sile | --sil)
1004 silent=yes ;;
1005
1006 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1007 ac_prev=sbindir ;;
1008 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1009 | --sbi=* | --sb=*)
1010 sbindir=$ac_optarg ;;
1011
1012 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1013 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1014 | --sharedst | --shareds | --shared | --share | --shar \
1015 | --sha | --sh)
1016 ac_prev=sharedstatedir ;;
1017 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1018 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1019 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1020 | --sha=* | --sh=*)
1021 sharedstatedir=$ac_optarg ;;
1022
1023 -site | --site | --sit)
1024 ac_prev=site ;;
1025 -site=* | --site=* | --sit=*)
1026 site=$ac_optarg ;;
1027
1028 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1029 ac_prev=srcdir ;;
1030 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1031 srcdir=$ac_optarg ;;
1032
1033 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1034 | --syscon | --sysco | --sysc | --sys | --sy)
1035 ac_prev=sysconfdir ;;
1036 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1037 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1038 sysconfdir=$ac_optarg ;;
1039
1040 -target | --target | --targe | --targ | --tar | --ta | --t)
1041 ac_prev=target_alias ;;
1042 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1043 target_alias=$ac_optarg ;;
1044
1045 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1046 verbose=yes ;;
1047
1048 -version | --version | --versio | --versi | --vers | -V)
1049 ac_init_version=: ;;
1050
1051 -with-* | --with-*)
1052 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055 as_fn_error $? "invalid package name: $ac_useropt"
1056 ac_useropt_orig=$ac_useropt
1057 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058 case $ac_user_opts in
1059 *"
1060 "with_$ac_useropt"
1061 "*) ;;
1062 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1063 ac_unrecognized_sep=', ';;
1064 esac
1065 eval with_$ac_useropt=\$ac_optarg ;;
1066
1067 -without-* | --without-*)
1068 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1071 as_fn_error $? "invalid package name: $ac_useropt"
1072 ac_useropt_orig=$ac_useropt
1073 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1074 case $ac_user_opts in
1075 *"
1076 "with_$ac_useropt"
1077 "*) ;;
1078 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1079 ac_unrecognized_sep=', ';;
1080 esac
1081 eval with_$ac_useropt=no ;;
1082
1083 --x)
1084 # Obsolete; use --with-x.
1085 with_x=yes ;;
1086
1087 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1088 | --x-incl | --x-inc | --x-in | --x-i)
1089 ac_prev=x_includes ;;
1090 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1091 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1092 x_includes=$ac_optarg ;;
1093
1094 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1095 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1096 ac_prev=x_libraries ;;
1097 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1098 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1099 x_libraries=$ac_optarg ;;
1100
1101 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1102 Try \`$0 --help' for more information"
1103 ;;
1104
1105 *=*)
1106 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1107 # Reject names that are not valid shell variable names.
1108 case $ac_envvar in #(
1109 '' | [0-9]* | *[!_$as_cr_alnum]* )
1110 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1111 esac
1112 eval $ac_envvar=\$ac_optarg
1113 export $ac_envvar ;;
1114
1115 *)
1116 # FIXME: should be removed in autoconf 3.0.
1117 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1118 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1119 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1120 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1121 ;;
1122
1123 esac
1124 done
1125
1126 if test -n "$ac_prev"; then
1127 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1128 as_fn_error $? "missing argument to $ac_option"
1129 fi
1130
1131 if test -n "$ac_unrecognized_opts"; then
1132 case $enable_option_checking in
1133 no) ;;
1134 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1135 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1136 esac
1137 fi
1138
1139 # Check all directory arguments for consistency.
1140 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1141 datadir sysconfdir sharedstatedir localstatedir includedir \
1142 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1143 libdir localedir mandir
1144 do
1145 eval ac_val=\$$ac_var
1146 # Remove trailing slashes.
1147 case $ac_val in
1148 */ )
1149 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1150 eval $ac_var=\$ac_val;;
1151 esac
1152 # Be sure to have absolute directory names.
1153 case $ac_val in
1154 [\\/$]* | ?:[\\/]* ) continue;;
1155 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1156 esac
1157 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1158 done
1159
1160 # There might be people who depend on the old broken behavior: `$host'
1161 # used to hold the argument of --host etc.
1162 # FIXME: To remove some day.
1163 build=$build_alias
1164 host=$host_alias
1165 target=$target_alias
1166
1167 # FIXME: To remove some day.
1168 if test "x$host_alias" != x; then
1169 if test "x$build_alias" = x; then
1170 cross_compiling=maybe
1171 elif test "x$build_alias" != "x$host_alias"; then
1172 cross_compiling=yes
1173 fi
1174 fi
1175
1176 ac_tool_prefix=
1177 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1178
1179 test "$silent" = yes && exec 6>/dev/null
1180
1181
1182 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1183 ac_ls_di=`ls -di .` &&
1184 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1185 as_fn_error $? "working directory cannot be determined"
1186 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1187 as_fn_error $? "pwd does not report name of working directory"
1188
1189
1190 # Find the source files, if location was not specified.
1191 if test -z "$srcdir"; then
1192 ac_srcdir_defaulted=yes
1193 # Try the directory containing this script, then the parent directory.
1194 ac_confdir=`$as_dirname -- "$as_myself" ||
1195 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1196 X"$as_myself" : 'X\(//\)[^/]' \| \
1197 X"$as_myself" : 'X\(//\)$' \| \
1198 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1199 $as_echo X"$as_myself" |
1200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1201 s//\1/
1202 q
1203 }
1204 /^X\(\/\/\)[^/].*/{
1205 s//\1/
1206 q
1207 }
1208 /^X\(\/\/\)$/{
1209 s//\1/
1210 q
1211 }
1212 /^X\(\/\).*/{
1213 s//\1/
1214 q
1215 }
1216 s/.*/./; q'`
1217 srcdir=$ac_confdir
1218 if test ! -r "$srcdir/$ac_unique_file"; then
1219 srcdir=..
1220 fi
1221 else
1222 ac_srcdir_defaulted=no
1223 fi
1224 if test ! -r "$srcdir/$ac_unique_file"; then
1225 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1226 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1227 fi
1228 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1229 ac_abs_confdir=`(
1230 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1231 pwd)`
1232 # When building in place, set srcdir=.
1233 if test "$ac_abs_confdir" = "$ac_pwd"; then
1234 srcdir=.
1235 fi
1236 # Remove unnecessary trailing slashes from srcdir.
1237 # Double slashes in file names in object file debugging info
1238 # mess up M-x gdb in Emacs.
1239 case $srcdir in
1240 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1241 esac
1242 for ac_var in $ac_precious_vars; do
1243 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1244 eval ac_env_${ac_var}_value=\$${ac_var}
1245 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1246 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1247 done
1248
1249 #
1250 # Report the --help message.
1251 #
1252 if test "$ac_init_help" = "long"; then
1253 # Omit some internal or obsolete options to make the list less imposing.
1254 # This message is too long to be a string in the A/UX 3.1 sh.
1255 cat <<_ACEOF
1256 \`configure' configures RubberBand 1.7 to adapt to many kinds of systems.
1257
1258 Usage: $0 [OPTION]... [VAR=VALUE]...
1259
1260 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1261 VAR=VALUE. See below for descriptions of some of the useful variables.
1262
1263 Defaults for the options are specified in brackets.
1264
1265 Configuration:
1266 -h, --help display this help and exit
1267 --help=short display options specific to this package
1268 --help=recursive display the short help of all the included packages
1269 -V, --version display version information and exit
1270 -q, --quiet, --silent do not print \`checking ...' messages
1271 --cache-file=FILE cache test results in FILE [disabled]
1272 -C, --config-cache alias for \`--cache-file=config.cache'
1273 -n, --no-create do not create output files
1274 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1275
1276 Installation directories:
1277 --prefix=PREFIX install architecture-independent files in PREFIX
1278 [$ac_default_prefix]
1279 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1280 [PREFIX]
1281
1282 By default, \`make install' will install all the files in
1283 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1284 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1285 for instance \`--prefix=\$HOME'.
1286
1287 For better control, use the options below.
1288
1289 Fine tuning of the installation directories:
1290 --bindir=DIR user executables [EPREFIX/bin]
1291 --sbindir=DIR system admin executables [EPREFIX/sbin]
1292 --libexecdir=DIR program executables [EPREFIX/libexec]
1293 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1294 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1295 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1296 --libdir=DIR object code libraries [EPREFIX/lib]
1297 --includedir=DIR C header files [PREFIX/include]
1298 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1299 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1300 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1301 --infodir=DIR info documentation [DATAROOTDIR/info]
1302 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1303 --mandir=DIR man documentation [DATAROOTDIR/man]
1304 --docdir=DIR documentation root [DATAROOTDIR/doc/rubberband]
1305 --htmldir=DIR html documentation [DOCDIR]
1306 --dvidir=DIR dvi documentation [DOCDIR]
1307 --pdfdir=DIR pdf documentation [DOCDIR]
1308 --psdir=DIR ps documentation [DOCDIR]
1309 _ACEOF
1310
1311 cat <<\_ACEOF
1312 _ACEOF
1313 fi
1314
1315 if test -n "$ac_init_help"; then
1316 case $ac_init_help in
1317 short | recursive ) echo "Configuration of RubberBand 1.7:";;
1318 esac
1319 cat <<\_ACEOF
1320
1321 Some influential environment variables:
1322 CXX C++ compiler command
1323 CXXFLAGS C++ compiler flags
1324 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1325 nonstandard directory <lib dir>
1326 LIBS libraries to pass to the linker, e.g. -l<library>
1327 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1328 you have headers in a nonstandard directory <include dir>
1329 CC C compiler command
1330 CFLAGS C compiler flags
1331 CPP C preprocessor
1332 PKG_CONFIG path to pkg-config utility
1333 PKG_CONFIG_PATH
1334 directories to add to pkg-config's search path
1335 PKG_CONFIG_LIBDIR
1336 path overriding pkg-config's built-in search path
1337 SRC_CFLAGS C compiler flags for SRC, overriding pkg-config
1338 SRC_LIBS linker flags for SRC, overriding pkg-config
1339 SNDFILE_CFLAGS
1340 C compiler flags for SNDFILE, overriding pkg-config
1341 SNDFILE_LIBS
1342 linker flags for SNDFILE, overriding pkg-config
1343 FFTW_CFLAGS C compiler flags for FFTW, overriding pkg-config
1344 FFTW_LIBS linker flags for FFTW, overriding pkg-config
1345 Vamp_CFLAGS C compiler flags for Vamp, overriding pkg-config
1346 Vamp_LIBS linker flags for Vamp, overriding pkg-config
1347
1348 Use these variables to override the choices made by `configure' or to help
1349 it to find libraries and programs with nonstandard names/locations.
1350
1351 Report bugs to <chris.cannam@breakfastquay.com>.
1352 _ACEOF
1353 ac_status=$?
1354 fi
1355
1356 if test "$ac_init_help" = "recursive"; then
1357 # If there are subdirs, report their specific --help.
1358 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1359 test -d "$ac_dir" ||
1360 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1361 continue
1362 ac_builddir=.
1363
1364 case "$ac_dir" in
1365 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1366 *)
1367 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1368 # A ".." for each directory in $ac_dir_suffix.
1369 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1370 case $ac_top_builddir_sub in
1371 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1372 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1373 esac ;;
1374 esac
1375 ac_abs_top_builddir=$ac_pwd
1376 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1377 # for backward compatibility:
1378 ac_top_builddir=$ac_top_build_prefix
1379
1380 case $srcdir in
1381 .) # We are building in place.
1382 ac_srcdir=.
1383 ac_top_srcdir=$ac_top_builddir_sub
1384 ac_abs_top_srcdir=$ac_pwd ;;
1385 [\\/]* | ?:[\\/]* ) # Absolute name.
1386 ac_srcdir=$srcdir$ac_dir_suffix;
1387 ac_top_srcdir=$srcdir
1388 ac_abs_top_srcdir=$srcdir ;;
1389 *) # Relative name.
1390 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1391 ac_top_srcdir=$ac_top_build_prefix$srcdir
1392 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1393 esac
1394 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1395
1396 cd "$ac_dir" || { ac_status=$?; continue; }
1397 # Check for guested configure.
1398 if test -f "$ac_srcdir/configure.gnu"; then
1399 echo &&
1400 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1401 elif test -f "$ac_srcdir/configure"; then
1402 echo &&
1403 $SHELL "$ac_srcdir/configure" --help=recursive
1404 else
1405 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1406 fi || ac_status=$?
1407 cd "$ac_pwd" || { ac_status=$?; break; }
1408 done
1409 fi
1410
1411 test -n "$ac_init_help" && exit $ac_status
1412 if $ac_init_version; then
1413 cat <<\_ACEOF
1414 RubberBand configure 1.7
1415 generated by GNU Autoconf 2.69
1416
1417 Copyright (C) 2012 Free Software Foundation, Inc.
1418 This configure script is free software; the Free Software Foundation
1419 gives unlimited permission to copy, distribute and modify it.
1420 _ACEOF
1421 exit
1422 fi
1423
1424 ## ------------------------ ##
1425 ## Autoconf initialization. ##
1426 ## ------------------------ ##
1427
1428 # ac_fn_cxx_try_compile LINENO
1429 # ----------------------------
1430 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1431 ac_fn_cxx_try_compile ()
1432 {
1433 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1434 rm -f conftest.$ac_objext
1435 if { { ac_try="$ac_compile"
1436 case "(($ac_try" in
1437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1438 *) ac_try_echo=$ac_try;;
1439 esac
1440 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1441 $as_echo "$ac_try_echo"; } >&5
1442 (eval "$ac_compile") 2>conftest.err
1443 ac_status=$?
1444 if test -s conftest.err; then
1445 grep -v '^ *+' conftest.err >conftest.er1
1446 cat conftest.er1 >&5
1447 mv -f conftest.er1 conftest.err
1448 fi
1449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1450 test $ac_status = 0; } && {
1451 test -z "$ac_cxx_werror_flag" ||
1452 test ! -s conftest.err
1453 } && test -s conftest.$ac_objext; then :
1454 ac_retval=0
1455 else
1456 $as_echo "$as_me: failed program was:" >&5
1457 sed 's/^/| /' conftest.$ac_ext >&5
1458
1459 ac_retval=1
1460 fi
1461 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1462 as_fn_set_status $ac_retval
1463
1464 } # ac_fn_cxx_try_compile
1465
1466 # ac_fn_c_try_compile LINENO
1467 # --------------------------
1468 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1469 ac_fn_c_try_compile ()
1470 {
1471 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1472 rm -f conftest.$ac_objext
1473 if { { ac_try="$ac_compile"
1474 case "(($ac_try" in
1475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1476 *) ac_try_echo=$ac_try;;
1477 esac
1478 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1479 $as_echo "$ac_try_echo"; } >&5
1480 (eval "$ac_compile") 2>conftest.err
1481 ac_status=$?
1482 if test -s conftest.err; then
1483 grep -v '^ *+' conftest.err >conftest.er1
1484 cat conftest.er1 >&5
1485 mv -f conftest.er1 conftest.err
1486 fi
1487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1488 test $ac_status = 0; } && {
1489 test -z "$ac_c_werror_flag" ||
1490 test ! -s conftest.err
1491 } && test -s conftest.$ac_objext; then :
1492 ac_retval=0
1493 else
1494 $as_echo "$as_me: failed program was:" >&5
1495 sed 's/^/| /' conftest.$ac_ext >&5
1496
1497 ac_retval=1
1498 fi
1499 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1500 as_fn_set_status $ac_retval
1501
1502 } # ac_fn_c_try_compile
1503
1504 # ac_fn_c_try_cpp LINENO
1505 # ----------------------
1506 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1507 ac_fn_c_try_cpp ()
1508 {
1509 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1510 if { { ac_try="$ac_cpp conftest.$ac_ext"
1511 case "(($ac_try" in
1512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1513 *) ac_try_echo=$ac_try;;
1514 esac
1515 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1516 $as_echo "$ac_try_echo"; } >&5
1517 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1518 ac_status=$?
1519 if test -s conftest.err; then
1520 grep -v '^ *+' conftest.err >conftest.er1
1521 cat conftest.er1 >&5
1522 mv -f conftest.er1 conftest.err
1523 fi
1524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1525 test $ac_status = 0; } > conftest.i && {
1526 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1527 test ! -s conftest.err
1528 }; then :
1529 ac_retval=0
1530 else
1531 $as_echo "$as_me: failed program was:" >&5
1532 sed 's/^/| /' conftest.$ac_ext >&5
1533
1534 ac_retval=1
1535 fi
1536 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1537 as_fn_set_status $ac_retval
1538
1539 } # ac_fn_c_try_cpp
1540
1541 # ac_fn_c_try_run LINENO
1542 # ----------------------
1543 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1544 # that executables *can* be run.
1545 ac_fn_c_try_run ()
1546 {
1547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1548 if { { ac_try="$ac_link"
1549 case "(($ac_try" in
1550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1551 *) ac_try_echo=$ac_try;;
1552 esac
1553 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1554 $as_echo "$ac_try_echo"; } >&5
1555 (eval "$ac_link") 2>&5
1556 ac_status=$?
1557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1558 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1559 { { case "(($ac_try" in
1560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1561 *) ac_try_echo=$ac_try;;
1562 esac
1563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1564 $as_echo "$ac_try_echo"; } >&5
1565 (eval "$ac_try") 2>&5
1566 ac_status=$?
1567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1568 test $ac_status = 0; }; }; then :
1569 ac_retval=0
1570 else
1571 $as_echo "$as_me: program exited with status $ac_status" >&5
1572 $as_echo "$as_me: failed program was:" >&5
1573 sed 's/^/| /' conftest.$ac_ext >&5
1574
1575 ac_retval=$ac_status
1576 fi
1577 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1578 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1579 as_fn_set_status $ac_retval
1580
1581 } # ac_fn_c_try_run
1582
1583 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1584 # -------------------------------------------------------
1585 # Tests whether HEADER exists and can be compiled using the include files in
1586 # INCLUDES, setting the cache variable VAR accordingly.
1587 ac_fn_c_check_header_compile ()
1588 {
1589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1591 $as_echo_n "checking for $2... " >&6; }
1592 if eval \${$3+:} false; then :
1593 $as_echo_n "(cached) " >&6
1594 else
1595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1596 /* end confdefs.h. */
1597 $4
1598 #include <$2>
1599 _ACEOF
1600 if ac_fn_c_try_compile "$LINENO"; then :
1601 eval "$3=yes"
1602 else
1603 eval "$3=no"
1604 fi
1605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1606 fi
1607 eval ac_res=\$$3
1608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1609 $as_echo "$ac_res" >&6; }
1610 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1611
1612 } # ac_fn_c_check_header_compile
1613
1614 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1615 # -------------------------------------------------------
1616 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1617 # the include files in INCLUDES and setting the cache variable VAR
1618 # accordingly.
1619 ac_fn_c_check_header_mongrel ()
1620 {
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622 if eval \${$3+:} false; then :
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1624 $as_echo_n "checking for $2... " >&6; }
1625 if eval \${$3+:} false; then :
1626 $as_echo_n "(cached) " >&6
1627 fi
1628 eval ac_res=\$$3
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1630 $as_echo "$ac_res" >&6; }
1631 else
1632 # Is the header compilable?
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1634 $as_echo_n "checking $2 usability... " >&6; }
1635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1636 /* end confdefs.h. */
1637 $4
1638 #include <$2>
1639 _ACEOF
1640 if ac_fn_c_try_compile "$LINENO"; then :
1641 ac_header_compiler=yes
1642 else
1643 ac_header_compiler=no
1644 fi
1645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1647 $as_echo "$ac_header_compiler" >&6; }
1648
1649 # Is the header present?
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1651 $as_echo_n "checking $2 presence... " >&6; }
1652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1653 /* end confdefs.h. */
1654 #include <$2>
1655 _ACEOF
1656 if ac_fn_c_try_cpp "$LINENO"; then :
1657 ac_header_preproc=yes
1658 else
1659 ac_header_preproc=no
1660 fi
1661 rm -f conftest.err conftest.i conftest.$ac_ext
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1663 $as_echo "$ac_header_preproc" >&6; }
1664
1665 # So? What about this header?
1666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1667 yes:no: )
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1669 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1671 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1672 ;;
1673 no:yes:* )
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1675 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1677 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1679 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1681 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1683 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1684 ( $as_echo "## --------------------------------------------- ##
1685 ## Report this to chris.cannam@breakfastquay.com ##
1686 ## --------------------------------------------- ##"
1687 ) | sed "s/^/$as_me: WARNING: /" >&2
1688 ;;
1689 esac
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1691 $as_echo_n "checking for $2... " >&6; }
1692 if eval \${$3+:} false; then :
1693 $as_echo_n "(cached) " >&6
1694 else
1695 eval "$3=\$ac_header_compiler"
1696 fi
1697 eval ac_res=\$$3
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1699 $as_echo "$ac_res" >&6; }
1700 fi
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702
1703 } # ac_fn_c_check_header_mongrel
1704 cat >config.log <<_ACEOF
1705 This file contains any messages produced by compilers while
1706 running configure, to aid debugging if configure makes a mistake.
1707
1708 It was created by RubberBand $as_me 1.7, which was
1709 generated by GNU Autoconf 2.69. Invocation command line was
1710
1711 $ $0 $@
1712
1713 _ACEOF
1714 exec 5>>config.log
1715 {
1716 cat <<_ASUNAME
1717 ## --------- ##
1718 ## Platform. ##
1719 ## --------- ##
1720
1721 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1722 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1723 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1724 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1725 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1726
1727 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1728 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1729
1730 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1731 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1732 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1733 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1734 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1735 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1736 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1737
1738 _ASUNAME
1739
1740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1741 for as_dir in $PATH
1742 do
1743 IFS=$as_save_IFS
1744 test -z "$as_dir" && as_dir=.
1745 $as_echo "PATH: $as_dir"
1746 done
1747 IFS=$as_save_IFS
1748
1749 } >&5
1750
1751 cat >&5 <<_ACEOF
1752
1753
1754 ## ----------- ##
1755 ## Core tests. ##
1756 ## ----------- ##
1757
1758 _ACEOF
1759
1760
1761 # Keep a trace of the command line.
1762 # Strip out --no-create and --no-recursion so they do not pile up.
1763 # Strip out --silent because we don't want to record it for future runs.
1764 # Also quote any args containing shell meta-characters.
1765 # Make two passes to allow for proper duplicate-argument suppression.
1766 ac_configure_args=
1767 ac_configure_args0=
1768 ac_configure_args1=
1769 ac_must_keep_next=false
1770 for ac_pass in 1 2
1771 do
1772 for ac_arg
1773 do
1774 case $ac_arg in
1775 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1776 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1777 | -silent | --silent | --silen | --sile | --sil)
1778 continue ;;
1779 *\'*)
1780 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1781 esac
1782 case $ac_pass in
1783 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1784 2)
1785 as_fn_append ac_configure_args1 " '$ac_arg'"
1786 if test $ac_must_keep_next = true; then
1787 ac_must_keep_next=false # Got value, back to normal.
1788 else
1789 case $ac_arg in
1790 *=* | --config-cache | -C | -disable-* | --disable-* \
1791 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1792 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1793 | -with-* | --with-* | -without-* | --without-* | --x)
1794 case "$ac_configure_args0 " in
1795 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1796 esac
1797 ;;
1798 -* ) ac_must_keep_next=true ;;
1799 esac
1800 fi
1801 as_fn_append ac_configure_args " '$ac_arg'"
1802 ;;
1803 esac
1804 done
1805 done
1806 { ac_configure_args0=; unset ac_configure_args0;}
1807 { ac_configure_args1=; unset ac_configure_args1;}
1808
1809 # When interrupted or exit'd, cleanup temporary files, and complete
1810 # config.log. We remove comments because anyway the quotes in there
1811 # would cause problems or look ugly.
1812 # WARNING: Use '\'' to represent an apostrophe within the trap.
1813 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1814 trap 'exit_status=$?
1815 # Save into config.log some information that might help in debugging.
1816 {
1817 echo
1818
1819 $as_echo "## ---------------- ##
1820 ## Cache variables. ##
1821 ## ---------------- ##"
1822 echo
1823 # The following way of writing the cache mishandles newlines in values,
1824 (
1825 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1826 eval ac_val=\$$ac_var
1827 case $ac_val in #(
1828 *${as_nl}*)
1829 case $ac_var in #(
1830 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1831 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1832 esac
1833 case $ac_var in #(
1834 _ | IFS | as_nl) ;; #(
1835 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1836 *) { eval $ac_var=; unset $ac_var;} ;;
1837 esac ;;
1838 esac
1839 done
1840 (set) 2>&1 |
1841 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1842 *${as_nl}ac_space=\ *)
1843 sed -n \
1844 "s/'\''/'\''\\\\'\'''\''/g;
1845 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1846 ;; #(
1847 *)
1848 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1849 ;;
1850 esac |
1851 sort
1852 )
1853 echo
1854
1855 $as_echo "## ----------------- ##
1856 ## Output variables. ##
1857 ## ----------------- ##"
1858 echo
1859 for ac_var in $ac_subst_vars
1860 do
1861 eval ac_val=\$$ac_var
1862 case $ac_val in
1863 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1864 esac
1865 $as_echo "$ac_var='\''$ac_val'\''"
1866 done | sort
1867 echo
1868
1869 if test -n "$ac_subst_files"; then
1870 $as_echo "## ------------------- ##
1871 ## File substitutions. ##
1872 ## ------------------- ##"
1873 echo
1874 for ac_var in $ac_subst_files
1875 do
1876 eval ac_val=\$$ac_var
1877 case $ac_val in
1878 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1879 esac
1880 $as_echo "$ac_var='\''$ac_val'\''"
1881 done | sort
1882 echo
1883 fi
1884
1885 if test -s confdefs.h; then
1886 $as_echo "## ----------- ##
1887 ## confdefs.h. ##
1888 ## ----------- ##"
1889 echo
1890 cat confdefs.h
1891 echo
1892 fi
1893 test "$ac_signal" != 0 &&
1894 $as_echo "$as_me: caught signal $ac_signal"
1895 $as_echo "$as_me: exit $exit_status"
1896 } >&5
1897 rm -f core *.core core.conftest.* &&
1898 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1899 exit $exit_status
1900 ' 0
1901 for ac_signal in 1 2 13 15; do
1902 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1903 done
1904 ac_signal=0
1905
1906 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1907 rm -f -r conftest* confdefs.h
1908
1909 $as_echo "/* confdefs.h */" > confdefs.h
1910
1911 # Predefined preprocessor variables.
1912
1913 cat >>confdefs.h <<_ACEOF
1914 #define PACKAGE_NAME "$PACKAGE_NAME"
1915 _ACEOF
1916
1917 cat >>confdefs.h <<_ACEOF
1918 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1919 _ACEOF
1920
1921 cat >>confdefs.h <<_ACEOF
1922 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1923 _ACEOF
1924
1925 cat >>confdefs.h <<_ACEOF
1926 #define PACKAGE_STRING "$PACKAGE_STRING"
1927 _ACEOF
1928
1929 cat >>confdefs.h <<_ACEOF
1930 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1931 _ACEOF
1932
1933 cat >>confdefs.h <<_ACEOF
1934 #define PACKAGE_URL "$PACKAGE_URL"
1935 _ACEOF
1936
1937
1938 # Let the site file select an alternate cache file if it wants to.
1939 # Prefer an explicitly selected file to automatically selected ones.
1940 ac_site_file1=NONE
1941 ac_site_file2=NONE
1942 if test -n "$CONFIG_SITE"; then
1943 # We do not want a PATH search for config.site.
1944 case $CONFIG_SITE in #((
1945 -*) ac_site_file1=./$CONFIG_SITE;;
1946 */*) ac_site_file1=$CONFIG_SITE;;
1947 *) ac_site_file1=./$CONFIG_SITE;;
1948 esac
1949 elif test "x$prefix" != xNONE; then
1950 ac_site_file1=$prefix/share/config.site
1951 ac_site_file2=$prefix/etc/config.site
1952 else
1953 ac_site_file1=$ac_default_prefix/share/config.site
1954 ac_site_file2=$ac_default_prefix/etc/config.site
1955 fi
1956 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1957 do
1958 test "x$ac_site_file" = xNONE && continue
1959 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1961 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1962 sed 's/^/| /' "$ac_site_file" >&5
1963 . "$ac_site_file" \
1964 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1966 as_fn_error $? "failed to load site script $ac_site_file
1967 See \`config.log' for more details" "$LINENO" 5; }
1968 fi
1969 done
1970
1971 if test -r "$cache_file"; then
1972 # Some versions of bash will fail to source /dev/null (special files
1973 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1974 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1976 $as_echo "$as_me: loading cache $cache_file" >&6;}
1977 case $cache_file in
1978 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1979 *) . "./$cache_file";;
1980 esac
1981 fi
1982 else
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1984 $as_echo "$as_me: creating cache $cache_file" >&6;}
1985 >$cache_file
1986 fi
1987
1988 # Check that the precious variables saved in the cache have kept the same
1989 # value.
1990 ac_cache_corrupted=false
1991 for ac_var in $ac_precious_vars; do
1992 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1993 eval ac_new_set=\$ac_env_${ac_var}_set
1994 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1995 eval ac_new_val=\$ac_env_${ac_var}_value
1996 case $ac_old_set,$ac_new_set in
1997 set,)
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1999 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2000 ac_cache_corrupted=: ;;
2001 ,set)
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2003 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2004 ac_cache_corrupted=: ;;
2005 ,);;
2006 *)
2007 if test "x$ac_old_val" != "x$ac_new_val"; then
2008 # differences in whitespace do not lead to failure.
2009 ac_old_val_w=`echo x $ac_old_val`
2010 ac_new_val_w=`echo x $ac_new_val`
2011 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2013 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2014 ac_cache_corrupted=:
2015 else
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2017 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2018 eval $ac_var=\$ac_old_val
2019 fi
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2021 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2023 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2024 fi;;
2025 esac
2026 # Pass precious variables to config.status.
2027 if test "$ac_new_set" = set; then
2028 case $ac_new_val in
2029 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2030 *) ac_arg=$ac_var=$ac_new_val ;;
2031 esac
2032 case " $ac_configure_args " in
2033 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2034 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2035 esac
2036 fi
2037 done
2038 if $ac_cache_corrupted; then
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2040 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2042 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2043 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2044 fi
2045 ## -------------------- ##
2046 ## Main body of script. ##
2047 ## -------------------- ##
2048
2049 ac_ext=c
2050 ac_cpp='$CPP $CPPFLAGS'
2051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2054
2055
2056
2057
2058 ac_ext=cpp
2059 ac_cpp='$CXXCPP $CPPFLAGS'
2060 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2061 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2062 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2063 if test -z "$CXX"; then
2064 if test -n "$CCC"; then
2065 CXX=$CCC
2066 else
2067 if test -n "$ac_tool_prefix"; then
2068 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2069 do
2070 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2071 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2073 $as_echo_n "checking for $ac_word... " >&6; }
2074 if ${ac_cv_prog_CXX+:} false; then :
2075 $as_echo_n "(cached) " >&6
2076 else
2077 if test -n "$CXX"; then
2078 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2079 else
2080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2081 for as_dir in $PATH
2082 do
2083 IFS=$as_save_IFS
2084 test -z "$as_dir" && as_dir=.
2085 for ac_exec_ext in '' $ac_executable_extensions; do
2086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2087 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2089 break 2
2090 fi
2091 done
2092 done
2093 IFS=$as_save_IFS
2094
2095 fi
2096 fi
2097 CXX=$ac_cv_prog_CXX
2098 if test -n "$CXX"; then
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2100 $as_echo "$CXX" >&6; }
2101 else
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2103 $as_echo "no" >&6; }
2104 fi
2105
2106
2107 test -n "$CXX" && break
2108 done
2109 fi
2110 if test -z "$CXX"; then
2111 ac_ct_CXX=$CXX
2112 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2113 do
2114 # Extract the first word of "$ac_prog", so it can be a program name with args.
2115 set dummy $ac_prog; ac_word=$2
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2117 $as_echo_n "checking for $ac_word... " >&6; }
2118 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2119 $as_echo_n "(cached) " >&6
2120 else
2121 if test -n "$ac_ct_CXX"; then
2122 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2123 else
2124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2125 for as_dir in $PATH
2126 do
2127 IFS=$as_save_IFS
2128 test -z "$as_dir" && as_dir=.
2129 for ac_exec_ext in '' $ac_executable_extensions; do
2130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2131 ac_cv_prog_ac_ct_CXX="$ac_prog"
2132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2133 break 2
2134 fi
2135 done
2136 done
2137 IFS=$as_save_IFS
2138
2139 fi
2140 fi
2141 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2142 if test -n "$ac_ct_CXX"; then
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2144 $as_echo "$ac_ct_CXX" >&6; }
2145 else
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2147 $as_echo "no" >&6; }
2148 fi
2149
2150
2151 test -n "$ac_ct_CXX" && break
2152 done
2153
2154 if test "x$ac_ct_CXX" = x; then
2155 CXX="g++"
2156 else
2157 case $cross_compiling:$ac_tool_warned in
2158 yes:)
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2160 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2161 ac_tool_warned=yes ;;
2162 esac
2163 CXX=$ac_ct_CXX
2164 fi
2165 fi
2166
2167 fi
2168 fi
2169 # Provide some information about the compiler.
2170 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2171 set X $ac_compile
2172 ac_compiler=$2
2173 for ac_option in --version -v -V -qversion; do
2174 { { ac_try="$ac_compiler $ac_option >&5"
2175 case "(($ac_try" in
2176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2177 *) ac_try_echo=$ac_try;;
2178 esac
2179 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2180 $as_echo "$ac_try_echo"; } >&5
2181 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2182 ac_status=$?
2183 if test -s conftest.err; then
2184 sed '10a\
2185 ... rest of stderr output deleted ...
2186 10q' conftest.err >conftest.er1
2187 cat conftest.er1 >&5
2188 fi
2189 rm -f conftest.er1 conftest.err
2190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2191 test $ac_status = 0; }
2192 done
2193
2194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2195 /* end confdefs.h. */
2196
2197 int
2198 main ()
2199 {
2200
2201 ;
2202 return 0;
2203 }
2204 _ACEOF
2205 ac_clean_files_save=$ac_clean_files
2206 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2207 # Try to create an executable without -o first, disregard a.out.
2208 # It will help us diagnose broken compilers, and finding out an intuition
2209 # of exeext.
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2211 $as_echo_n "checking whether the C++ compiler works... " >&6; }
2212 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2213
2214 # The possible output files:
2215 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2216
2217 ac_rmfiles=
2218 for ac_file in $ac_files
2219 do
2220 case $ac_file in
2221 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2222 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2223 esac
2224 done
2225 rm -f $ac_rmfiles
2226
2227 if { { ac_try="$ac_link_default"
2228 case "(($ac_try" in
2229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2230 *) ac_try_echo=$ac_try;;
2231 esac
2232 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2233 $as_echo "$ac_try_echo"; } >&5
2234 (eval "$ac_link_default") 2>&5
2235 ac_status=$?
2236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2237 test $ac_status = 0; }; then :
2238 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2239 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2240 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2241 # so that the user can short-circuit this test for compilers unknown to
2242 # Autoconf.
2243 for ac_file in $ac_files ''
2244 do
2245 test -f "$ac_file" || continue
2246 case $ac_file in
2247 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2248 ;;
2249 [ab].out )
2250 # We found the default executable, but exeext='' is most
2251 # certainly right.
2252 break;;
2253 *.* )
2254 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2255 then :; else
2256 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2257 fi
2258 # We set ac_cv_exeext here because the later test for it is not
2259 # safe: cross compilers may not add the suffix if given an `-o'
2260 # argument, so we may need to know it at that point already.
2261 # Even if this section looks crufty: it has the advantage of
2262 # actually working.
2263 break;;
2264 * )
2265 break;;
2266 esac
2267 done
2268 test "$ac_cv_exeext" = no && ac_cv_exeext=
2269
2270 else
2271 ac_file=''
2272 fi
2273 if test -z "$ac_file"; then :
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2275 $as_echo "no" >&6; }
2276 $as_echo "$as_me: failed program was:" >&5
2277 sed 's/^/| /' conftest.$ac_ext >&5
2278
2279 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2281 as_fn_error 77 "C++ compiler cannot create executables
2282 See \`config.log' for more details" "$LINENO" 5; }
2283 else
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2285 $as_echo "yes" >&6; }
2286 fi
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
2288 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2290 $as_echo "$ac_file" >&6; }
2291 ac_exeext=$ac_cv_exeext
2292
2293 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2294 ac_clean_files=$ac_clean_files_save
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2296 $as_echo_n "checking for suffix of executables... " >&6; }
2297 if { { ac_try="$ac_link"
2298 case "(($ac_try" in
2299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2300 *) ac_try_echo=$ac_try;;
2301 esac
2302 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2303 $as_echo "$ac_try_echo"; } >&5
2304 (eval "$ac_link") 2>&5
2305 ac_status=$?
2306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2307 test $ac_status = 0; }; then :
2308 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2309 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2310 # work properly (i.e., refer to `conftest.exe'), while it won't with
2311 # `rm'.
2312 for ac_file in conftest.exe conftest conftest.*; do
2313 test -f "$ac_file" || continue
2314 case $ac_file in
2315 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2316 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2317 break;;
2318 * ) break;;
2319 esac
2320 done
2321 else
2322 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2323 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2324 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2325 See \`config.log' for more details" "$LINENO" 5; }
2326 fi
2327 rm -f conftest conftest$ac_cv_exeext
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2329 $as_echo "$ac_cv_exeext" >&6; }
2330
2331 rm -f conftest.$ac_ext
2332 EXEEXT=$ac_cv_exeext
2333 ac_exeext=$EXEEXT
2334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2335 /* end confdefs.h. */
2336 #include <stdio.h>
2337 int
2338 main ()
2339 {
2340 FILE *f = fopen ("conftest.out", "w");
2341 return ferror (f) || fclose (f) != 0;
2342
2343 ;
2344 return 0;
2345 }
2346 _ACEOF
2347 ac_clean_files="$ac_clean_files conftest.out"
2348 # Check that the compiler produces executables we can run. If not, either
2349 # the compiler is broken, or we cross compile.
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2351 $as_echo_n "checking whether we are cross compiling... " >&6; }
2352 if test "$cross_compiling" != yes; then
2353 { { ac_try="$ac_link"
2354 case "(($ac_try" in
2355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2356 *) ac_try_echo=$ac_try;;
2357 esac
2358 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2359 $as_echo "$ac_try_echo"; } >&5
2360 (eval "$ac_link") 2>&5
2361 ac_status=$?
2362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2363 test $ac_status = 0; }
2364 if { ac_try='./conftest$ac_cv_exeext'
2365 { { case "(($ac_try" in
2366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2367 *) ac_try_echo=$ac_try;;
2368 esac
2369 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2370 $as_echo "$ac_try_echo"; } >&5
2371 (eval "$ac_try") 2>&5
2372 ac_status=$?
2373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2374 test $ac_status = 0; }; }; then
2375 cross_compiling=no
2376 else
2377 if test "$cross_compiling" = maybe; then
2378 cross_compiling=yes
2379 else
2380 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2381 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2382 as_fn_error $? "cannot run C++ compiled programs.
2383 If you meant to cross compile, use \`--host'.
2384 See \`config.log' for more details" "$LINENO" 5; }
2385 fi
2386 fi
2387 fi
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2389 $as_echo "$cross_compiling" >&6; }
2390
2391 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2392 ac_clean_files=$ac_clean_files_save
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2394 $as_echo_n "checking for suffix of object files... " >&6; }
2395 if ${ac_cv_objext+:} false; then :
2396 $as_echo_n "(cached) " >&6
2397 else
2398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2399 /* end confdefs.h. */
2400
2401 int
2402 main ()
2403 {
2404
2405 ;
2406 return 0;
2407 }
2408 _ACEOF
2409 rm -f conftest.o conftest.obj
2410 if { { ac_try="$ac_compile"
2411 case "(($ac_try" in
2412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2413 *) ac_try_echo=$ac_try;;
2414 esac
2415 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2416 $as_echo "$ac_try_echo"; } >&5
2417 (eval "$ac_compile") 2>&5
2418 ac_status=$?
2419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2420 test $ac_status = 0; }; then :
2421 for ac_file in conftest.o conftest.obj conftest.*; do
2422 test -f "$ac_file" || continue;
2423 case $ac_file in
2424 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2425 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2426 break;;
2427 esac
2428 done
2429 else
2430 $as_echo "$as_me: failed program was:" >&5
2431 sed 's/^/| /' conftest.$ac_ext >&5
2432
2433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2435 as_fn_error $? "cannot compute suffix of object files: cannot compile
2436 See \`config.log' for more details" "$LINENO" 5; }
2437 fi
2438 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2439 fi
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2441 $as_echo "$ac_cv_objext" >&6; }
2442 OBJEXT=$ac_cv_objext
2443 ac_objext=$OBJEXT
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
2445 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
2446 if ${ac_cv_cxx_compiler_gnu+:} false; then :
2447 $as_echo_n "(cached) " >&6
2448 else
2449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2450 /* end confdefs.h. */
2451
2452 int
2453 main ()
2454 {
2455 #ifndef __GNUC__
2456 choke me
2457 #endif
2458
2459 ;
2460 return 0;
2461 }
2462 _ACEOF
2463 if ac_fn_cxx_try_compile "$LINENO"; then :
2464 ac_compiler_gnu=yes
2465 else
2466 ac_compiler_gnu=no
2467 fi
2468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2469 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2470
2471 fi
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
2473 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
2474 if test $ac_compiler_gnu = yes; then
2475 GXX=yes
2476 else
2477 GXX=
2478 fi
2479 ac_test_CXXFLAGS=${CXXFLAGS+set}
2480 ac_save_CXXFLAGS=$CXXFLAGS
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
2482 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
2483 if ${ac_cv_prog_cxx_g+:} false; then :
2484 $as_echo_n "(cached) " >&6
2485 else
2486 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2487 ac_cxx_werror_flag=yes
2488 ac_cv_prog_cxx_g=no
2489 CXXFLAGS="-g"
2490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2491 /* end confdefs.h. */
2492
2493 int
2494 main ()
2495 {
2496
2497 ;
2498 return 0;
2499 }
2500 _ACEOF
2501 if ac_fn_cxx_try_compile "$LINENO"; then :
2502 ac_cv_prog_cxx_g=yes
2503 else
2504 CXXFLAGS=""
2505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2506 /* end confdefs.h. */
2507
2508 int
2509 main ()
2510 {
2511
2512 ;
2513 return 0;
2514 }
2515 _ACEOF
2516 if ac_fn_cxx_try_compile "$LINENO"; then :
2517
2518 else
2519 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2520 CXXFLAGS="-g"
2521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2522 /* end confdefs.h. */
2523
2524 int
2525 main ()
2526 {
2527
2528 ;
2529 return 0;
2530 }
2531 _ACEOF
2532 if ac_fn_cxx_try_compile "$LINENO"; then :
2533 ac_cv_prog_cxx_g=yes
2534 fi
2535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2536 fi
2537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2538 fi
2539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2540 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2541 fi
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
2543 $as_echo "$ac_cv_prog_cxx_g" >&6; }
2544 if test "$ac_test_CXXFLAGS" = set; then
2545 CXXFLAGS=$ac_save_CXXFLAGS
2546 elif test $ac_cv_prog_cxx_g = yes; then
2547 if test "$GXX" = yes; then
2548 CXXFLAGS="-g -O2"
2549 else
2550 CXXFLAGS="-g"
2551 fi
2552 else
2553 if test "$GXX" = yes; then
2554 CXXFLAGS="-O2"
2555 else
2556 CXXFLAGS=
2557 fi
2558 fi
2559 ac_ext=c
2560 ac_cpp='$CPP $CPPFLAGS'
2561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2564
2565 ac_ext=c
2566 ac_cpp='$CPP $CPPFLAGS'
2567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2570 if test -n "$ac_tool_prefix"; then
2571 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2572 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2574 $as_echo_n "checking for $ac_word... " >&6; }
2575 if ${ac_cv_prog_CC+:} false; then :
2576 $as_echo_n "(cached) " >&6
2577 else
2578 if test -n "$CC"; then
2579 ac_cv_prog_CC="$CC" # Let the user override the test.
2580 else
2581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582 for as_dir in $PATH
2583 do
2584 IFS=$as_save_IFS
2585 test -z "$as_dir" && as_dir=.
2586 for ac_exec_ext in '' $ac_executable_extensions; do
2587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2588 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2590 break 2
2591 fi
2592 done
2593 done
2594 IFS=$as_save_IFS
2595
2596 fi
2597 fi
2598 CC=$ac_cv_prog_CC
2599 if test -n "$CC"; then
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2601 $as_echo "$CC" >&6; }
2602 else
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2604 $as_echo "no" >&6; }
2605 fi
2606
2607
2608 fi
2609 if test -z "$ac_cv_prog_CC"; then
2610 ac_ct_CC=$CC
2611 # Extract the first word of "gcc", so it can be a program name with args.
2612 set dummy gcc; ac_word=$2
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2614 $as_echo_n "checking for $ac_word... " >&6; }
2615 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2616 $as_echo_n "(cached) " >&6
2617 else
2618 if test -n "$ac_ct_CC"; then
2619 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2620 else
2621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622 for as_dir in $PATH
2623 do
2624 IFS=$as_save_IFS
2625 test -z "$as_dir" && as_dir=.
2626 for ac_exec_ext in '' $ac_executable_extensions; do
2627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2628 ac_cv_prog_ac_ct_CC="gcc"
2629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2630 break 2
2631 fi
2632 done
2633 done
2634 IFS=$as_save_IFS
2635
2636 fi
2637 fi
2638 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2639 if test -n "$ac_ct_CC"; then
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2641 $as_echo "$ac_ct_CC" >&6; }
2642 else
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2644 $as_echo "no" >&6; }
2645 fi
2646
2647 if test "x$ac_ct_CC" = x; then
2648 CC=""
2649 else
2650 case $cross_compiling:$ac_tool_warned in
2651 yes:)
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2653 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2654 ac_tool_warned=yes ;;
2655 esac
2656 CC=$ac_ct_CC
2657 fi
2658 else
2659 CC="$ac_cv_prog_CC"
2660 fi
2661
2662 if test -z "$CC"; then
2663 if test -n "$ac_tool_prefix"; then
2664 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2665 set dummy ${ac_tool_prefix}cc; ac_word=$2
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2667 $as_echo_n "checking for $ac_word... " >&6; }
2668 if ${ac_cv_prog_CC+:} false; then :
2669 $as_echo_n "(cached) " >&6
2670 else
2671 if test -n "$CC"; then
2672 ac_cv_prog_CC="$CC" # Let the user override the test.
2673 else
2674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2675 for as_dir in $PATH
2676 do
2677 IFS=$as_save_IFS
2678 test -z "$as_dir" && as_dir=.
2679 for ac_exec_ext in '' $ac_executable_extensions; do
2680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2681 ac_cv_prog_CC="${ac_tool_prefix}cc"
2682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2683 break 2
2684 fi
2685 done
2686 done
2687 IFS=$as_save_IFS
2688
2689 fi
2690 fi
2691 CC=$ac_cv_prog_CC
2692 if test -n "$CC"; then
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2694 $as_echo "$CC" >&6; }
2695 else
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2697 $as_echo "no" >&6; }
2698 fi
2699
2700
2701 fi
2702 fi
2703 if test -z "$CC"; then
2704 # Extract the first word of "cc", so it can be a program name with args.
2705 set dummy cc; ac_word=$2
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2707 $as_echo_n "checking for $ac_word... " >&6; }
2708 if ${ac_cv_prog_CC+:} false; then :
2709 $as_echo_n "(cached) " >&6
2710 else
2711 if test -n "$CC"; then
2712 ac_cv_prog_CC="$CC" # Let the user override the test.
2713 else
2714 ac_prog_rejected=no
2715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716 for as_dir in $PATH
2717 do
2718 IFS=$as_save_IFS
2719 test -z "$as_dir" && as_dir=.
2720 for ac_exec_ext in '' $ac_executable_extensions; do
2721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2722 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2723 ac_prog_rejected=yes
2724 continue
2725 fi
2726 ac_cv_prog_CC="cc"
2727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2728 break 2
2729 fi
2730 done
2731 done
2732 IFS=$as_save_IFS
2733
2734 if test $ac_prog_rejected = yes; then
2735 # We found a bogon in the path, so make sure we never use it.
2736 set dummy $ac_cv_prog_CC
2737 shift
2738 if test $# != 0; then
2739 # We chose a different compiler from the bogus one.
2740 # However, it has the same basename, so the bogon will be chosen
2741 # first if we set CC to just the basename; use the full file name.
2742 shift
2743 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2744 fi
2745 fi
2746 fi
2747 fi
2748 CC=$ac_cv_prog_CC
2749 if test -n "$CC"; then
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2751 $as_echo "$CC" >&6; }
2752 else
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2754 $as_echo "no" >&6; }
2755 fi
2756
2757
2758 fi
2759 if test -z "$CC"; then
2760 if test -n "$ac_tool_prefix"; then
2761 for ac_prog in cl.exe
2762 do
2763 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2764 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2766 $as_echo_n "checking for $ac_word... " >&6; }
2767 if ${ac_cv_prog_CC+:} false; then :
2768 $as_echo_n "(cached) " >&6
2769 else
2770 if test -n "$CC"; then
2771 ac_cv_prog_CC="$CC" # Let the user override the test.
2772 else
2773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774 for as_dir in $PATH
2775 do
2776 IFS=$as_save_IFS
2777 test -z "$as_dir" && as_dir=.
2778 for ac_exec_ext in '' $ac_executable_extensions; do
2779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2780 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2782 break 2
2783 fi
2784 done
2785 done
2786 IFS=$as_save_IFS
2787
2788 fi
2789 fi
2790 CC=$ac_cv_prog_CC
2791 if test -n "$CC"; then
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2793 $as_echo "$CC" >&6; }
2794 else
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2796 $as_echo "no" >&6; }
2797 fi
2798
2799
2800 test -n "$CC" && break
2801 done
2802 fi
2803 if test -z "$CC"; then
2804 ac_ct_CC=$CC
2805 for ac_prog in cl.exe
2806 do
2807 # Extract the first word of "$ac_prog", so it can be a program name with args.
2808 set dummy $ac_prog; ac_word=$2
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2810 $as_echo_n "checking for $ac_word... " >&6; }
2811 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2812 $as_echo_n "(cached) " >&6
2813 else
2814 if test -n "$ac_ct_CC"; then
2815 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2816 else
2817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818 for as_dir in $PATH
2819 do
2820 IFS=$as_save_IFS
2821 test -z "$as_dir" && as_dir=.
2822 for ac_exec_ext in '' $ac_executable_extensions; do
2823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2824 ac_cv_prog_ac_ct_CC="$ac_prog"
2825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2826 break 2
2827 fi
2828 done
2829 done
2830 IFS=$as_save_IFS
2831
2832 fi
2833 fi
2834 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2835 if test -n "$ac_ct_CC"; then
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2837 $as_echo "$ac_ct_CC" >&6; }
2838 else
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2840 $as_echo "no" >&6; }
2841 fi
2842
2843
2844 test -n "$ac_ct_CC" && break
2845 done
2846
2847 if test "x$ac_ct_CC" = x; then
2848 CC=""
2849 else
2850 case $cross_compiling:$ac_tool_warned in
2851 yes:)
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2853 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2854 ac_tool_warned=yes ;;
2855 esac
2856 CC=$ac_ct_CC
2857 fi
2858 fi
2859
2860 fi
2861
2862
2863 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2864 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2865 as_fn_error $? "no acceptable C compiler found in \$PATH
2866 See \`config.log' for more details" "$LINENO" 5; }
2867
2868 # Provide some information about the compiler.
2869 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2870 set X $ac_compile
2871 ac_compiler=$2
2872 for ac_option in --version -v -V -qversion; do
2873 { { ac_try="$ac_compiler $ac_option >&5"
2874 case "(($ac_try" in
2875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876 *) ac_try_echo=$ac_try;;
2877 esac
2878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2879 $as_echo "$ac_try_echo"; } >&5
2880 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2881 ac_status=$?
2882 if test -s conftest.err; then
2883 sed '10a\
2884 ... rest of stderr output deleted ...
2885 10q' conftest.err >conftest.er1
2886 cat conftest.er1 >&5
2887 fi
2888 rm -f conftest.er1 conftest.err
2889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2890 test $ac_status = 0; }
2891 done
2892
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2894 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2895 if ${ac_cv_c_compiler_gnu+:} false; then :
2896 $as_echo_n "(cached) " >&6
2897 else
2898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2899 /* end confdefs.h. */
2900
2901 int
2902 main ()
2903 {
2904 #ifndef __GNUC__
2905 choke me
2906 #endif
2907
2908 ;
2909 return 0;
2910 }
2911 _ACEOF
2912 if ac_fn_c_try_compile "$LINENO"; then :
2913 ac_compiler_gnu=yes
2914 else
2915 ac_compiler_gnu=no
2916 fi
2917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2918 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2919
2920 fi
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2922 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2923 if test $ac_compiler_gnu = yes; then
2924 GCC=yes
2925 else
2926 GCC=
2927 fi
2928 ac_test_CFLAGS=${CFLAGS+set}
2929 ac_save_CFLAGS=$CFLAGS
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2931 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2932 if ${ac_cv_prog_cc_g+:} false; then :
2933 $as_echo_n "(cached) " >&6
2934 else
2935 ac_save_c_werror_flag=$ac_c_werror_flag
2936 ac_c_werror_flag=yes
2937 ac_cv_prog_cc_g=no
2938 CFLAGS="-g"
2939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2940 /* end confdefs.h. */
2941
2942 int
2943 main ()
2944 {
2945
2946 ;
2947 return 0;
2948 }
2949 _ACEOF
2950 if ac_fn_c_try_compile "$LINENO"; then :
2951 ac_cv_prog_cc_g=yes
2952 else
2953 CFLAGS=""
2954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2955 /* end confdefs.h. */
2956
2957 int
2958 main ()
2959 {
2960
2961 ;
2962 return 0;
2963 }
2964 _ACEOF
2965 if ac_fn_c_try_compile "$LINENO"; then :
2966
2967 else
2968 ac_c_werror_flag=$ac_save_c_werror_flag
2969 CFLAGS="-g"
2970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2971 /* end confdefs.h. */
2972
2973 int
2974 main ()
2975 {
2976
2977 ;
2978 return 0;
2979 }
2980 _ACEOF
2981 if ac_fn_c_try_compile "$LINENO"; then :
2982 ac_cv_prog_cc_g=yes
2983 fi
2984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2985 fi
2986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2987 fi
2988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2989 ac_c_werror_flag=$ac_save_c_werror_flag
2990 fi
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2992 $as_echo "$ac_cv_prog_cc_g" >&6; }
2993 if test "$ac_test_CFLAGS" = set; then
2994 CFLAGS=$ac_save_CFLAGS
2995 elif test $ac_cv_prog_cc_g = yes; then
2996 if test "$GCC" = yes; then
2997 CFLAGS="-g -O2"
2998 else
2999 CFLAGS="-g"
3000 fi
3001 else
3002 if test "$GCC" = yes; then
3003 CFLAGS="-O2"
3004 else
3005 CFLAGS=
3006 fi
3007 fi
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3009 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3010 if ${ac_cv_prog_cc_c89+:} false; then :
3011 $as_echo_n "(cached) " >&6
3012 else
3013 ac_cv_prog_cc_c89=no
3014 ac_save_CC=$CC
3015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3016 /* end confdefs.h. */
3017 #include <stdarg.h>
3018 #include <stdio.h>
3019 struct stat;
3020 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3021 struct buf { int x; };
3022 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3023 static char *e (p, i)
3024 char **p;
3025 int i;
3026 {
3027 return p[i];
3028 }
3029 static char *f (char * (*g) (char **, int), char **p, ...)
3030 {
3031 char *s;
3032 va_list v;
3033 va_start (v,p);
3034 s = g (p, va_arg (v,int));
3035 va_end (v);
3036 return s;
3037 }
3038
3039 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3040 function prototypes and stuff, but not '\xHH' hex character constants.
3041 These don't provoke an error unfortunately, instead are silently treated
3042 as 'x'. The following induces an error, until -std is added to get
3043 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3044 array size at least. It's necessary to write '\x00'==0 to get something
3045 that's true only with -std. */
3046 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3047
3048 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3049 inside strings and character constants. */
3050 #define FOO(x) 'x'
3051 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3052
3053 int test (int i, double x);
3054 struct s1 {int (*f) (int a);};
3055 struct s2 {int (*f) (double a);};
3056 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3057 int argc;
3058 char **argv;
3059 int
3060 main ()
3061 {
3062 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3063 ;
3064 return 0;
3065 }
3066 _ACEOF
3067 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3068 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3069 do
3070 CC="$ac_save_CC $ac_arg"
3071 if ac_fn_c_try_compile "$LINENO"; then :
3072 ac_cv_prog_cc_c89=$ac_arg
3073 fi
3074 rm -f core conftest.err conftest.$ac_objext
3075 test "x$ac_cv_prog_cc_c89" != "xno" && break
3076 done
3077 rm -f conftest.$ac_ext
3078 CC=$ac_save_CC
3079
3080 fi
3081 # AC_CACHE_VAL
3082 case "x$ac_cv_prog_cc_c89" in
3083 x)
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3085 $as_echo "none needed" >&6; } ;;
3086 xno)
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3088 $as_echo "unsupported" >&6; } ;;
3089 *)
3090 CC="$CC $ac_cv_prog_cc_c89"
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3092 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3093 esac
3094 if test "x$ac_cv_prog_cc_c89" != xno; then :
3095
3096 fi
3097
3098 ac_ext=c
3099 ac_cpp='$CPP $CPPFLAGS'
3100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3103
3104
3105 ac_ext=c
3106 ac_cpp='$CPP $CPPFLAGS'
3107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3111 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3112 # On Suns, sometimes $CPP names a directory.
3113 if test -n "$CPP" && test -d "$CPP"; then
3114 CPP=
3115 fi
3116 if test -z "$CPP"; then
3117 if ${ac_cv_prog_CPP+:} false; then :
3118 $as_echo_n "(cached) " >&6
3119 else
3120 # Double quotes because CPP needs to be expanded
3121 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3122 do
3123 ac_preproc_ok=false
3124 for ac_c_preproc_warn_flag in '' yes
3125 do
3126 # Use a header file that comes with gcc, so configuring glibc
3127 # with a fresh cross-compiler works.
3128 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3129 # <limits.h> exists even on freestanding compilers.
3130 # On the NeXT, cc -E runs the code through the compiler's parser,
3131 # not just through cpp. "Syntax error" is here to catch this case.
3132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3133 /* end confdefs.h. */
3134 #ifdef __STDC__
3135 # include <limits.h>
3136 #else
3137 # include <assert.h>
3138 #endif
3139 Syntax error
3140 _ACEOF
3141 if ac_fn_c_try_cpp "$LINENO"; then :
3142
3143 else
3144 # Broken: fails on valid input.
3145 continue
3146 fi
3147 rm -f conftest.err conftest.i conftest.$ac_ext
3148
3149 # OK, works on sane cases. Now check whether nonexistent headers
3150 # can be detected and how.
3151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3152 /* end confdefs.h. */
3153 #include <ac_nonexistent.h>
3154 _ACEOF
3155 if ac_fn_c_try_cpp "$LINENO"; then :
3156 # Broken: success on invalid input.
3157 continue
3158 else
3159 # Passes both tests.
3160 ac_preproc_ok=:
3161 break
3162 fi
3163 rm -f conftest.err conftest.i conftest.$ac_ext
3164
3165 done
3166 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3167 rm -f conftest.i conftest.err conftest.$ac_ext
3168 if $ac_preproc_ok; then :
3169 break
3170 fi
3171
3172 done
3173 ac_cv_prog_CPP=$CPP
3174
3175 fi
3176 CPP=$ac_cv_prog_CPP
3177 else
3178 ac_cv_prog_CPP=$CPP
3179 fi
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3181 $as_echo "$CPP" >&6; }
3182 ac_preproc_ok=false
3183 for ac_c_preproc_warn_flag in '' yes
3184 do
3185 # Use a header file that comes with gcc, so configuring glibc
3186 # with a fresh cross-compiler works.
3187 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3188 # <limits.h> exists even on freestanding compilers.
3189 # On the NeXT, cc -E runs the code through the compiler's parser,
3190 # not just through cpp. "Syntax error" is here to catch this case.
3191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3192 /* end confdefs.h. */
3193 #ifdef __STDC__
3194 # include <limits.h>
3195 #else
3196 # include <assert.h>
3197 #endif
3198 Syntax error
3199 _ACEOF
3200 if ac_fn_c_try_cpp "$LINENO"; then :
3201
3202 else
3203 # Broken: fails on valid input.
3204 continue
3205 fi
3206 rm -f conftest.err conftest.i conftest.$ac_ext
3207
3208 # OK, works on sane cases. Now check whether nonexistent headers
3209 # can be detected and how.
3210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3211 /* end confdefs.h. */
3212 #include <ac_nonexistent.h>
3213 _ACEOF
3214 if ac_fn_c_try_cpp "$LINENO"; then :
3215 # Broken: success on invalid input.
3216 continue
3217 else
3218 # Passes both tests.
3219 ac_preproc_ok=:
3220 break
3221 fi
3222 rm -f conftest.err conftest.i conftest.$ac_ext
3223
3224 done
3225 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3226 rm -f conftest.i conftest.err conftest.$ac_ext
3227 if $ac_preproc_ok; then :
3228
3229 else
3230 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3231 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3232 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3233 See \`config.log' for more details" "$LINENO" 5; }
3234 fi
3235
3236 ac_ext=c
3237 ac_cpp='$CPP $CPPFLAGS'
3238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3241
3242
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3244 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3245 if ${ac_cv_path_GREP+:} false; then :
3246 $as_echo_n "(cached) " >&6
3247 else
3248 if test -z "$GREP"; then
3249 ac_path_GREP_found=false
3250 # Loop through the user's path and test for each of PROGNAME-LIST
3251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3253 do
3254 IFS=$as_save_IFS
3255 test -z "$as_dir" && as_dir=.
3256 for ac_prog in grep ggrep; do
3257 for ac_exec_ext in '' $ac_executable_extensions; do
3258 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3259 as_fn_executable_p "$ac_path_GREP" || continue
3260 # Check for GNU ac_path_GREP and select it if it is found.
3261 # Check for GNU $ac_path_GREP
3262 case `"$ac_path_GREP" --version 2>&1` in
3263 *GNU*)
3264 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3265 *)
3266 ac_count=0
3267 $as_echo_n 0123456789 >"conftest.in"
3268 while :
3269 do
3270 cat "conftest.in" "conftest.in" >"conftest.tmp"
3271 mv "conftest.tmp" "conftest.in"
3272 cp "conftest.in" "conftest.nl"
3273 $as_echo 'GREP' >> "conftest.nl"
3274 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3275 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3276 as_fn_arith $ac_count + 1 && ac_count=$as_val
3277 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3278 # Best one so far, save it but keep looking for a better one
3279 ac_cv_path_GREP="$ac_path_GREP"
3280 ac_path_GREP_max=$ac_count
3281 fi
3282 # 10*(2^10) chars as input seems more than enough
3283 test $ac_count -gt 10 && break
3284 done
3285 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3286 esac
3287
3288 $ac_path_GREP_found && break 3
3289 done
3290 done
3291 done
3292 IFS=$as_save_IFS
3293 if test -z "$ac_cv_path_GREP"; then
3294 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3295 fi
3296 else
3297 ac_cv_path_GREP=$GREP
3298 fi
3299
3300 fi
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3302 $as_echo "$ac_cv_path_GREP" >&6; }
3303 GREP="$ac_cv_path_GREP"
3304
3305
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3307 $as_echo_n "checking for egrep... " >&6; }
3308 if ${ac_cv_path_EGREP+:} false; then :
3309 $as_echo_n "(cached) " >&6
3310 else
3311 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3312 then ac_cv_path_EGREP="$GREP -E"
3313 else
3314 if test -z "$EGREP"; then
3315 ac_path_EGREP_found=false
3316 # Loop through the user's path and test for each of PROGNAME-LIST
3317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3318 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3319 do
3320 IFS=$as_save_IFS
3321 test -z "$as_dir" && as_dir=.
3322 for ac_prog in egrep; do
3323 for ac_exec_ext in '' $ac_executable_extensions; do
3324 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3325 as_fn_executable_p "$ac_path_EGREP" || continue
3326 # Check for GNU ac_path_EGREP and select it if it is found.
3327 # Check for GNU $ac_path_EGREP
3328 case `"$ac_path_EGREP" --version 2>&1` in
3329 *GNU*)
3330 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3331 *)
3332 ac_count=0
3333 $as_echo_n 0123456789 >"conftest.in"
3334 while :
3335 do
3336 cat "conftest.in" "conftest.in" >"conftest.tmp"
3337 mv "conftest.tmp" "conftest.in"
3338 cp "conftest.in" "conftest.nl"
3339 $as_echo 'EGREP' >> "conftest.nl"
3340 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3341 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3342 as_fn_arith $ac_count + 1 && ac_count=$as_val
3343 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3344 # Best one so far, save it but keep looking for a better one
3345 ac_cv_path_EGREP="$ac_path_EGREP"
3346 ac_path_EGREP_max=$ac_count
3347 fi
3348 # 10*(2^10) chars as input seems more than enough
3349 test $ac_count -gt 10 && break
3350 done
3351 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3352 esac
3353
3354 $ac_path_EGREP_found && break 3
3355 done
3356 done
3357 done
3358 IFS=$as_save_IFS
3359 if test -z "$ac_cv_path_EGREP"; then
3360 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3361 fi
3362 else
3363 ac_cv_path_EGREP=$EGREP
3364 fi
3365
3366 fi
3367 fi
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3369 $as_echo "$ac_cv_path_EGREP" >&6; }
3370 EGREP="$ac_cv_path_EGREP"
3371
3372
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3374 $as_echo_n "checking for ANSI C header files... " >&6; }
3375 if ${ac_cv_header_stdc+:} false; then :
3376 $as_echo_n "(cached) " >&6
3377 else
3378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3379 /* end confdefs.h. */
3380 #include <stdlib.h>
3381 #include <stdarg.h>
3382 #include <string.h>
3383 #include <float.h>
3384
3385 int
3386 main ()
3387 {
3388
3389 ;
3390 return 0;
3391 }
3392 _ACEOF
3393 if ac_fn_c_try_compile "$LINENO"; then :
3394 ac_cv_header_stdc=yes
3395 else
3396 ac_cv_header_stdc=no
3397 fi
3398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3399
3400 if test $ac_cv_header_stdc = yes; then
3401 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3403 /* end confdefs.h. */
3404 #include <string.h>
3405
3406 _ACEOF
3407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3408 $EGREP "memchr" >/dev/null 2>&1; then :
3409
3410 else
3411 ac_cv_header_stdc=no
3412 fi
3413 rm -f conftest*
3414
3415 fi
3416
3417 if test $ac_cv_header_stdc = yes; then
3418 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3420 /* end confdefs.h. */
3421 #include <stdlib.h>
3422
3423 _ACEOF
3424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3425 $EGREP "free" >/dev/null 2>&1; then :
3426
3427 else
3428 ac_cv_header_stdc=no
3429 fi
3430 rm -f conftest*
3431
3432 fi
3433
3434 if test $ac_cv_header_stdc = yes; then
3435 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3436 if test "$cross_compiling" = yes; then :
3437 :
3438 else
3439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3440 /* end confdefs.h. */
3441 #include <ctype.h>
3442 #include <stdlib.h>
3443 #if ((' ' & 0x0FF) == 0x020)
3444 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3445 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3446 #else
3447 # define ISLOWER(c) \
3448 (('a' <= (c) && (c) <= 'i') \
3449 || ('j' <= (c) && (c) <= 'r') \
3450 || ('s' <= (c) && (c) <= 'z'))
3451 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3452 #endif
3453
3454 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3455 int
3456 main ()
3457 {
3458 int i;
3459 for (i = 0; i < 256; i++)
3460 if (XOR (islower (i), ISLOWER (i))
3461 || toupper (i) != TOUPPER (i))
3462 return 2;
3463 return 0;
3464 }
3465 _ACEOF
3466 if ac_fn_c_try_run "$LINENO"; then :
3467
3468 else
3469 ac_cv_header_stdc=no
3470 fi
3471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3472 conftest.$ac_objext conftest.beam conftest.$ac_ext
3473 fi
3474
3475 fi
3476 fi
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3478 $as_echo "$ac_cv_header_stdc" >&6; }
3479 if test $ac_cv_header_stdc = yes; then
3480
3481 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3482
3483 fi
3484
3485 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3486 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3487 inttypes.h stdint.h unistd.h
3488 do :
3489 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3490 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3491 "
3492 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3493 cat >>confdefs.h <<_ACEOF
3494 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3495 _ACEOF
3496
3497 fi
3498
3499 done
3500
3501
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3503 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
3504 if ${ac_cv_c_bigendian+:} false; then :
3505 $as_echo_n "(cached) " >&6
3506 else
3507 ac_cv_c_bigendian=unknown
3508 # See if we're dealing with a universal compiler.
3509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3510 /* end confdefs.h. */
3511 #ifndef __APPLE_CC__
3512 not a universal capable compiler
3513 #endif
3514 typedef int dummy;
3515
3516 _ACEOF
3517 if ac_fn_c_try_compile "$LINENO"; then :
3518
3519 # Check for potential -arch flags. It is not universal unless
3520 # there are at least two -arch flags with different values.
3521 ac_arch=
3522 ac_prev=
3523 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3524 if test -n "$ac_prev"; then
3525 case $ac_word in
3526 i?86 | x86_64 | ppc | ppc64)
3527 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
3528 ac_arch=$ac_word
3529 else
3530 ac_cv_c_bigendian=universal
3531 break
3532 fi
3533 ;;
3534 esac
3535 ac_prev=
3536 elif test "x$ac_word" = "x-arch"; then
3537 ac_prev=arch
3538 fi
3539 done
3540 fi
3541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3542 if test $ac_cv_c_bigendian = unknown; then
3543 # See if sys/param.h defines the BYTE_ORDER macro.
3544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3545 /* end confdefs.h. */
3546 #include <sys/types.h>
3547 #include <sys/param.h>
3548
3549 int
3550 main ()
3551 {
3552 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
3553 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
3554 && LITTLE_ENDIAN)
3555 bogus endian macros
3556 #endif
3557
3558 ;
3559 return 0;
3560 }
3561 _ACEOF
3562 if ac_fn_c_try_compile "$LINENO"; then :
3563 # It does; now see whether it defined to BIG_ENDIAN or not.
3564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3565 /* end confdefs.h. */
3566 #include <sys/types.h>
3567 #include <sys/param.h>
3568
3569 int
3570 main ()
3571 {
3572 #if BYTE_ORDER != BIG_ENDIAN
3573 not big endian
3574 #endif
3575
3576 ;
3577 return 0;
3578 }
3579 _ACEOF
3580 if ac_fn_c_try_compile "$LINENO"; then :
3581 ac_cv_c_bigendian=yes
3582 else
3583 ac_cv_c_bigendian=no
3584 fi
3585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3586 fi
3587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3588 fi
3589 if test $ac_cv_c_bigendian = unknown; then
3590 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
3591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3592 /* end confdefs.h. */
3593 #include <limits.h>
3594
3595 int
3596 main ()
3597 {
3598 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
3599 bogus endian macros
3600 #endif
3601
3602 ;
3603 return 0;
3604 }
3605 _ACEOF
3606 if ac_fn_c_try_compile "$LINENO"; then :
3607 # It does; now see whether it defined to _BIG_ENDIAN or not.
3608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3609 /* end confdefs.h. */
3610 #include <limits.h>
3611
3612 int
3613 main ()
3614 {
3615 #ifndef _BIG_ENDIAN
3616 not big endian
3617 #endif
3618
3619 ;
3620 return 0;
3621 }
3622 _ACEOF
3623 if ac_fn_c_try_compile "$LINENO"; then :
3624 ac_cv_c_bigendian=yes
3625 else
3626 ac_cv_c_bigendian=no
3627 fi
3628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3629 fi
3630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3631 fi
3632 if test $ac_cv_c_bigendian = unknown; then
3633 # Compile a test program.
3634 if test "$cross_compiling" = yes; then :
3635 # Try to guess by grepping values from an object file.
3636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3637 /* end confdefs.h. */
3638 short int ascii_mm[] =
3639 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3640 short int ascii_ii[] =
3641 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3642 int use_ascii (int i) {
3643 return ascii_mm[i] + ascii_ii[i];
3644 }
3645 short int ebcdic_ii[] =
3646 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3647 short int ebcdic_mm[] =
3648 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3649 int use_ebcdic (int i) {
3650 return ebcdic_mm[i] + ebcdic_ii[i];
3651 }
3652 extern int foo;
3653
3654 int
3655 main ()
3656 {
3657 return use_ascii (foo) == use_ebcdic (foo);
3658 ;
3659 return 0;
3660 }
3661 _ACEOF
3662 if ac_fn_c_try_compile "$LINENO"; then :
3663 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
3664 ac_cv_c_bigendian=yes
3665 fi
3666 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3667 if test "$ac_cv_c_bigendian" = unknown; then
3668 ac_cv_c_bigendian=no
3669 else
3670 # finding both strings is unlikely to happen, but who knows?
3671 ac_cv_c_bigendian=unknown
3672 fi
3673 fi
3674 fi
3675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3676 else
3677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3678 /* end confdefs.h. */
3679 $ac_includes_default
3680 int
3681 main ()
3682 {
3683
3684 /* Are we little or big endian? From Harbison&Steele. */
3685 union
3686 {
3687 long int l;
3688 char c[sizeof (long int)];
3689 } u;
3690 u.l = 1;
3691 return u.c[sizeof (long int) - 1] == 1;
3692
3693 ;
3694 return 0;
3695 }
3696 _ACEOF
3697 if ac_fn_c_try_run "$LINENO"; then :
3698 ac_cv_c_bigendian=no
3699 else
3700 ac_cv_c_bigendian=yes
3701 fi
3702 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3703 conftest.$ac_objext conftest.beam conftest.$ac_ext
3704 fi
3705
3706 fi
3707 fi
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
3709 $as_echo "$ac_cv_c_bigendian" >&6; }
3710 case $ac_cv_c_bigendian in #(
3711 yes)
3712 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
3713 ;; #(
3714 no)
3715 ;; #(
3716 universal)
3717
3718 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
3719
3720 ;; #(
3721 *)
3722 as_fn_error $? "unknown endianness
3723 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
3724 esac
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3735 if test -n "$ac_tool_prefix"; then
3736 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3737 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3739 $as_echo_n "checking for $ac_word... " >&6; }
3740 if ${ac_cv_path_PKG_CONFIG+:} false; then :
3741 $as_echo_n "(cached) " >&6
3742 else
3743 case $PKG_CONFIG in
3744 [\\/]* | ?:[\\/]*)
3745 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3746 ;;
3747 *)
3748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3749 for as_dir in $PATH
3750 do
3751 IFS=$as_save_IFS
3752 test -z "$as_dir" && as_dir=.
3753 for ac_exec_ext in '' $ac_executable_extensions; do
3754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3755 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3757 break 2
3758 fi
3759 done
3760 done
3761 IFS=$as_save_IFS
3762
3763 ;;
3764 esac
3765 fi
3766 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3767 if test -n "$PKG_CONFIG"; then
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3769 $as_echo "$PKG_CONFIG" >&6; }
3770 else
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3772 $as_echo "no" >&6; }
3773 fi
3774
3775
3776 fi
3777 if test -z "$ac_cv_path_PKG_CONFIG"; then
3778 ac_pt_PKG_CONFIG=$PKG_CONFIG
3779 # Extract the first word of "pkg-config", so it can be a program name with args.
3780 set dummy pkg-config; ac_word=$2
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3782 $as_echo_n "checking for $ac_word... " >&6; }
3783 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
3784 $as_echo_n "(cached) " >&6
3785 else
3786 case $ac_pt_PKG_CONFIG in
3787 [\\/]* | ?:[\\/]*)
3788 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3789 ;;
3790 *)
3791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3792 for as_dir in $PATH
3793 do
3794 IFS=$as_save_IFS
3795 test -z "$as_dir" && as_dir=.
3796 for ac_exec_ext in '' $ac_executable_extensions; do
3797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3798 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3800 break 2
3801 fi
3802 done
3803 done
3804 IFS=$as_save_IFS
3805
3806 ;;
3807 esac
3808 fi
3809 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3810 if test -n "$ac_pt_PKG_CONFIG"; then
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3812 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
3813 else
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3815 $as_echo "no" >&6; }
3816 fi
3817
3818 if test "x$ac_pt_PKG_CONFIG" = x; then
3819 PKG_CONFIG=""
3820 else
3821 case $cross_compiling:$ac_tool_warned in
3822 yes:)
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3825 ac_tool_warned=yes ;;
3826 esac
3827 PKG_CONFIG=$ac_pt_PKG_CONFIG
3828 fi
3829 else
3830 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3831 fi
3832
3833 fi
3834 if test -n "$PKG_CONFIG"; then
3835 _pkg_min_version=0.9.0
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3837 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3838 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3840 $as_echo "yes" >&6; }
3841 else
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3843 $as_echo "no" >&6; }
3844 PKG_CONFIG=""
3845 fi
3846 fi
3847
3848 pkg_failed=no
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SRC" >&5
3850 $as_echo_n "checking for SRC... " >&6; }
3851
3852 if test -n "$SRC_CFLAGS"; then
3853 pkg_cv_SRC_CFLAGS="$SRC_CFLAGS"
3854 elif test -n "$PKG_CONFIG"; then
3855 if test -n "$PKG_CONFIG" && \
3856 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"samplerate\""; } >&5
3857 ($PKG_CONFIG --exists --print-errors "samplerate") 2>&5
3858 ac_status=$?
3859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3860 test $ac_status = 0; }; then
3861 pkg_cv_SRC_CFLAGS=`$PKG_CONFIG --cflags "samplerate" 2>/dev/null`
3862 test "x$?" != "x0" && pkg_failed=yes
3863 else
3864 pkg_failed=yes
3865 fi
3866 else
3867 pkg_failed=untried
3868 fi
3869 if test -n "$SRC_LIBS"; then
3870 pkg_cv_SRC_LIBS="$SRC_LIBS"
3871 elif test -n "$PKG_CONFIG"; then
3872 if test -n "$PKG_CONFIG" && \
3873 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"samplerate\""; } >&5
3874 ($PKG_CONFIG --exists --print-errors "samplerate") 2>&5
3875 ac_status=$?
3876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3877 test $ac_status = 0; }; then
3878 pkg_cv_SRC_LIBS=`$PKG_CONFIG --libs "samplerate" 2>/dev/null`
3879 test "x$?" != "x0" && pkg_failed=yes
3880 else
3881 pkg_failed=yes
3882 fi
3883 else
3884 pkg_failed=untried
3885 fi
3886
3887
3888
3889 if test $pkg_failed = yes; then
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3891 $as_echo "no" >&6; }
3892
3893 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3894 _pkg_short_errors_supported=yes
3895 else
3896 _pkg_short_errors_supported=no
3897 fi
3898 if test $_pkg_short_errors_supported = yes; then
3899 SRC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "samplerate" 2>&1`
3900 else
3901 SRC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "samplerate" 2>&1`
3902 fi
3903 # Put the nasty error message in config.log where it belongs
3904 echo "$SRC_PKG_ERRORS" >&5
3905
3906 as_fn_error $? "Package requirements (samplerate) were not met:
3907
3908 $SRC_PKG_ERRORS
3909
3910 Consider adjusting the PKG_CONFIG_PATH environment variable if you
3911 installed software in a non-standard prefix.
3912
3913 Alternatively, you may set the environment variables SRC_CFLAGS
3914 and SRC_LIBS to avoid the need to call pkg-config.
3915 See the pkg-config man page for more details." "$LINENO" 5
3916 elif test $pkg_failed = untried; then
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3918 $as_echo "no" >&6; }
3919 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3920 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3921 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
3922 is in your PATH or set the PKG_CONFIG environment variable to the full
3923 path to pkg-config.
3924
3925 Alternatively, you may set the environment variables SRC_CFLAGS
3926 and SRC_LIBS to avoid the need to call pkg-config.
3927 See the pkg-config man page for more details.
3928
3929 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
3930 See \`config.log' for more details" "$LINENO" 5; }
3931 else
3932 SRC_CFLAGS=$pkg_cv_SRC_CFLAGS
3933 SRC_LIBS=$pkg_cv_SRC_LIBS
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3935 $as_echo "yes" >&6; }
3936
3937 fi
3938
3939
3940
3941
3942 pkg_failed=no
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SNDFILE" >&5
3944 $as_echo_n "checking for SNDFILE... " >&6; }
3945
3946 if test -n "$SNDFILE_CFLAGS"; then
3947 pkg_cv_SNDFILE_CFLAGS="$SNDFILE_CFLAGS"
3948 elif test -n "$PKG_CONFIG"; then
3949 if test -n "$PKG_CONFIG" && \
3950 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile\""; } >&5
3951 ($PKG_CONFIG --exists --print-errors "sndfile") 2>&5
3952 ac_status=$?
3953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3954 test $ac_status = 0; }; then
3955 pkg_cv_SNDFILE_CFLAGS=`$PKG_CONFIG --cflags "sndfile" 2>/dev/null`
3956 test "x$?" != "x0" && pkg_failed=yes
3957 else
3958 pkg_failed=yes
3959 fi
3960 else
3961 pkg_failed=untried
3962 fi
3963 if test -n "$SNDFILE_LIBS"; then
3964 pkg_cv_SNDFILE_LIBS="$SNDFILE_LIBS"
3965 elif test -n "$PKG_CONFIG"; then
3966 if test -n "$PKG_CONFIG" && \
3967 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile\""; } >&5
3968 ($PKG_CONFIG --exists --print-errors "sndfile") 2>&5
3969 ac_status=$?
3970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3971 test $ac_status = 0; }; then
3972 pkg_cv_SNDFILE_LIBS=`$PKG_CONFIG --libs "sndfile" 2>/dev/null`
3973 test "x$?" != "x0" && pkg_failed=yes
3974 else
3975 pkg_failed=yes
3976 fi
3977 else
3978 pkg_failed=untried
3979 fi
3980
3981
3982
3983 if test $pkg_failed = yes; then
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3985 $as_echo "no" >&6; }
3986
3987 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3988 _pkg_short_errors_supported=yes
3989 else
3990 _pkg_short_errors_supported=no
3991 fi
3992 if test $_pkg_short_errors_supported = yes; then
3993 SNDFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndfile" 2>&1`
3994 else
3995 SNDFILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndfile" 2>&1`
3996 fi
3997 # Put the nasty error message in config.log where it belongs
3998 echo "$SNDFILE_PKG_ERRORS" >&5
3999
4000 as_fn_error $? "Package requirements (sndfile) were not met:
4001
4002 $SNDFILE_PKG_ERRORS
4003
4004 Consider adjusting the PKG_CONFIG_PATH environment variable if you
4005 installed software in a non-standard prefix.
4006
4007 Alternatively, you may set the environment variables SNDFILE_CFLAGS
4008 and SNDFILE_LIBS to avoid the need to call pkg-config.
4009 See the pkg-config man page for more details." "$LINENO" 5
4010 elif test $pkg_failed = untried; then
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4012 $as_echo "no" >&6; }
4013 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4014 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4015 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
4016 is in your PATH or set the PKG_CONFIG environment variable to the full
4017 path to pkg-config.
4018
4019 Alternatively, you may set the environment variables SNDFILE_CFLAGS
4020 and SNDFILE_LIBS to avoid the need to call pkg-config.
4021 See the pkg-config man page for more details.
4022
4023 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
4024 See \`config.log' for more details" "$LINENO" 5; }
4025 else
4026 SNDFILE_CFLAGS=$pkg_cv_SNDFILE_CFLAGS
4027 SNDFILE_LIBS=$pkg_cv_SNDFILE_LIBS
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4029 $as_echo "yes" >&6; }
4030
4031 fi
4032
4033
4034
4035
4036 pkg_failed=no
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
4038 $as_echo_n "checking for FFTW... " >&6; }
4039
4040 if test -n "$FFTW_CFLAGS"; then
4041 pkg_cv_FFTW_CFLAGS="$FFTW_CFLAGS"
4042 elif test -n "$PKG_CONFIG"; then
4043 if test -n "$PKG_CONFIG" && \
4044 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3\""; } >&5
4045 ($PKG_CONFIG --exists --print-errors "fftw3") 2>&5
4046 ac_status=$?
4047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4048 test $ac_status = 0; }; then
4049 pkg_cv_FFTW_CFLAGS=`$PKG_CONFIG --cflags "fftw3" 2>/dev/null`
4050 test "x$?" != "x0" && pkg_failed=yes
4051 else
4052 pkg_failed=yes
4053 fi
4054 else
4055 pkg_failed=untried
4056 fi
4057 if test -n "$FFTW_LIBS"; then
4058 pkg_cv_FFTW_LIBS="$FFTW_LIBS"
4059 elif test -n "$PKG_CONFIG"; then
4060 if test -n "$PKG_CONFIG" && \
4061 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3\""; } >&5
4062 ($PKG_CONFIG --exists --print-errors "fftw3") 2>&5
4063 ac_status=$?
4064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4065 test $ac_status = 0; }; then
4066 pkg_cv_FFTW_LIBS=`$PKG_CONFIG --libs "fftw3" 2>/dev/null`
4067 test "x$?" != "x0" && pkg_failed=yes
4068 else
4069 pkg_failed=yes
4070 fi
4071 else
4072 pkg_failed=untried
4073 fi
4074
4075
4076
4077 if test $pkg_failed = yes; then
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4079 $as_echo "no" >&6; }
4080
4081 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4082 _pkg_short_errors_supported=yes
4083 else
4084 _pkg_short_errors_supported=no
4085 fi
4086 if test $_pkg_short_errors_supported = yes; then
4087 FFTW_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fftw3" 2>&1`
4088 else
4089 FFTW_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fftw3" 2>&1`
4090 fi
4091 # Put the nasty error message in config.log where it belongs
4092 echo "$FFTW_PKG_ERRORS" >&5
4093
4094 as_fn_error $? "Package requirements (fftw3) were not met:
4095
4096 $FFTW_PKG_ERRORS
4097
4098 Consider adjusting the PKG_CONFIG_PATH environment variable if you
4099 installed software in a non-standard prefix.
4100
4101 Alternatively, you may set the environment variables FFTW_CFLAGS
4102 and FFTW_LIBS to avoid the need to call pkg-config.
4103 See the pkg-config man page for more details." "$LINENO" 5
4104 elif test $pkg_failed = untried; then
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4106 $as_echo "no" >&6; }
4107 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4109 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
4110 is in your PATH or set the PKG_CONFIG environment variable to the full
4111 path to pkg-config.
4112
4113 Alternatively, you may set the environment variables FFTW_CFLAGS
4114 and FFTW_LIBS to avoid the need to call pkg-config.
4115 See the pkg-config man page for more details.
4116
4117 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
4118 See \`config.log' for more details" "$LINENO" 5; }
4119 else
4120 FFTW_CFLAGS=$pkg_cv_FFTW_CFLAGS
4121 FFTW_LIBS=$pkg_cv_FFTW_LIBS
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4123 $as_echo "yes" >&6; }
4124
4125 fi
4126
4127
4128
4129 for ac_header in ladspa.h
4130 do :
4131 ac_fn_c_check_header_mongrel "$LINENO" "ladspa.h" "ac_cv_header_ladspa_h" "$ac_includes_default"
4132 if test "x$ac_cv_header_ladspa_h" = xyes; then :
4133 cat >>confdefs.h <<_ACEOF
4134 #define HAVE_LADSPA_H 1
4135 _ACEOF
4136
4137 fi
4138
4139 done
4140
4141 for ac_header in pthread.h
4142 do :
4143 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
4144 if test "x$ac_cv_header_pthread_h" = xyes; then :
4145 cat >>confdefs.h <<_ACEOF
4146 #define HAVE_PTHREAD_H 1
4147 _ACEOF
4148
4149 fi
4150
4151 done
4152
4153
4154
4155 pkg_failed=no
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vamp" >&5
4157 $as_echo_n "checking for Vamp... " >&6; }
4158
4159 if test -n "$Vamp_CFLAGS"; then
4160 pkg_cv_Vamp_CFLAGS="$Vamp_CFLAGS"
4161 elif test -n "$PKG_CONFIG"; then
4162 if test -n "$PKG_CONFIG" && \
4163 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vamp-sdk\""; } >&5
4164 ($PKG_CONFIG --exists --print-errors "vamp-sdk") 2>&5
4165 ac_status=$?
4166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4167 test $ac_status = 0; }; then
4168 pkg_cv_Vamp_CFLAGS=`$PKG_CONFIG --cflags "vamp-sdk" 2>/dev/null`
4169 test "x$?" != "x0" && pkg_failed=yes
4170 else
4171 pkg_failed=yes
4172 fi
4173 else
4174 pkg_failed=untried
4175 fi
4176 if test -n "$Vamp_LIBS"; then
4177 pkg_cv_Vamp_LIBS="$Vamp_LIBS"
4178 elif test -n "$PKG_CONFIG"; then
4179 if test -n "$PKG_CONFIG" && \
4180 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vamp-sdk\""; } >&5
4181 ($PKG_CONFIG --exists --print-errors "vamp-sdk") 2>&5
4182 ac_status=$?
4183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4184 test $ac_status = 0; }; then
4185 pkg_cv_Vamp_LIBS=`$PKG_CONFIG --libs "vamp-sdk" 2>/dev/null`
4186 test "x$?" != "x0" && pkg_failed=yes
4187 else
4188 pkg_failed=yes
4189 fi
4190 else
4191 pkg_failed=untried
4192 fi
4193
4194
4195
4196 if test $pkg_failed = yes; then
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4198 $as_echo "no" >&6; }
4199
4200 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4201 _pkg_short_errors_supported=yes
4202 else
4203 _pkg_short_errors_supported=no
4204 fi
4205 if test $_pkg_short_errors_supported = yes; then
4206 Vamp_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "vamp-sdk" 2>&1`
4207 else
4208 Vamp_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "vamp-sdk" 2>&1`
4209 fi
4210 # Put the nasty error message in config.log where it belongs
4211 echo "$Vamp_PKG_ERRORS" >&5
4212
4213 as_fn_error $? "Package requirements (vamp-sdk) were not met:
4214
4215 $Vamp_PKG_ERRORS
4216
4217 Consider adjusting the PKG_CONFIG_PATH environment variable if you
4218 installed software in a non-standard prefix.
4219
4220 Alternatively, you may set the environment variables Vamp_CFLAGS
4221 and Vamp_LIBS to avoid the need to call pkg-config.
4222 See the pkg-config man page for more details." "$LINENO" 5
4223 elif test $pkg_failed = untried; then
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4225 $as_echo "no" >&6; }
4226 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4227 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4228 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
4229 is in your PATH or set the PKG_CONFIG environment variable to the full
4230 path to pkg-config.
4231
4232 Alternatively, you may set the environment variables Vamp_CFLAGS
4233 and Vamp_LIBS to avoid the need to call pkg-config.
4234 See the pkg-config man page for more details.
4235
4236 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
4237 See \`config.log' for more details" "$LINENO" 5; }
4238 else
4239 Vamp_CFLAGS=$pkg_cv_Vamp_CFLAGS
4240 Vamp_LIBS=$pkg_cv_Vamp_LIBS
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4242 $as_echo "yes" >&6; }
4243
4244 fi
4245
4246
4247
4248 if test "x$GCC" = "xyes"; then
4249 case " $CFLAGS " in
4250 *[\ \ ]-fPIC\ -Wall[\ \ ]*) ;;
4251 *) CFLAGS="$CFLAGS -fPIC -Wall" ;;
4252 esac
4253 case " $CXXFLAGS " in
4254 *[\ \ ]-fPIC\ -Wall[\ \ ]*) ;;
4255 *) CXXFLAGS="$CXXFLAGS -fPIC -Wall" ;;
4256 esac
4257 fi
4258
4259 ac_config_files="$ac_config_files Makefile"
4260
4261 cat >confcache <<\_ACEOF
4262 # This file is a shell script that caches the results of configure
4263 # tests run on this system so they can be shared between configure
4264 # scripts and configure runs, see configure's option --config-cache.
4265 # It is not useful on other systems. If it contains results you don't
4266 # want to keep, you may remove or edit it.
4267 #
4268 # config.status only pays attention to the cache file if you give it
4269 # the --recheck option to rerun configure.
4270 #
4271 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4272 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4273 # following values.
4274
4275 _ACEOF
4276
4277 # The following way of writing the cache mishandles newlines in values,
4278 # but we know of no workaround that is simple, portable, and efficient.
4279 # So, we kill variables containing newlines.
4280 # Ultrix sh set writes to stderr and can't be redirected directly,
4281 # and sets the high bit in the cache file unless we assign to the vars.
4282 (
4283 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4284 eval ac_val=\$$ac_var
4285 case $ac_val in #(
4286 *${as_nl}*)
4287 case $ac_var in #(
4288 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4289 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4290 esac
4291 case $ac_var in #(
4292 _ | IFS | as_nl) ;; #(
4293 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4294 *) { eval $ac_var=; unset $ac_var;} ;;
4295 esac ;;
4296 esac
4297 done
4298
4299 (set) 2>&1 |
4300 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4301 *${as_nl}ac_space=\ *)
4302 # `set' does not quote correctly, so add quotes: double-quote
4303 # substitution turns \\\\ into \\, and sed turns \\ into \.
4304 sed -n \
4305 "s/'/'\\\\''/g;
4306 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4307 ;; #(
4308 *)
4309 # `set' quotes correctly as required by POSIX, so do not add quotes.
4310 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4311 ;;
4312 esac |
4313 sort
4314 ) |
4315 sed '
4316 /^ac_cv_env_/b end
4317 t clear
4318 :clear
4319 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4320 t end
4321 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4322 :end' >>confcache
4323 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4324 if test -w "$cache_file"; then
4325 if test "x$cache_file" != "x/dev/null"; then
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4327 $as_echo "$as_me: updating cache $cache_file" >&6;}
4328 if test ! -f "$cache_file" || test -h "$cache_file"; then
4329 cat confcache >"$cache_file"
4330 else
4331 case $cache_file in #(
4332 */* | ?:*)
4333 mv -f confcache "$cache_file"$$ &&
4334 mv -f "$cache_file"$$ "$cache_file" ;; #(
4335 *)
4336 mv -f confcache "$cache_file" ;;
4337 esac
4338 fi
4339 fi
4340 else
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4342 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4343 fi
4344 fi
4345 rm -f confcache
4346
4347 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4348 # Let make expand exec_prefix.
4349 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4350
4351 # Transform confdefs.h into DEFS.
4352 # Protect against shell expansion while executing Makefile rules.
4353 # Protect against Makefile macro expansion.
4354 #
4355 # If the first sed substitution is executed (which looks for macros that
4356 # take arguments), then branch to the quote section. Otherwise,
4357 # look for a macro that doesn't take arguments.
4358 ac_script='
4359 :mline
4360 /\\$/{
4361 N
4362 s,\\\n,,
4363 b mline
4364 }
4365 t clear
4366 :clear
4367 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
4368 t quote
4369 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
4370 t quote
4371 b any
4372 :quote
4373 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
4374 s/\[/\\&/g
4375 s/\]/\\&/g
4376 s/\$/$$/g
4377 H
4378 :any
4379 ${
4380 g
4381 s/^\n//
4382 s/\n/ /g
4383 p
4384 }
4385 '
4386 DEFS=`sed -n "$ac_script" confdefs.h`
4387
4388
4389 ac_libobjs=
4390 ac_ltlibobjs=
4391 U=
4392 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4393 # 1. Remove the extension, and $U if already installed.
4394 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4395 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4396 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4397 # will be set to the directory where LIBOBJS objects are built.
4398 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4399 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4400 done
4401 LIBOBJS=$ac_libobjs
4402
4403 LTLIBOBJS=$ac_ltlibobjs
4404
4405
4406
4407
4408 : "${CONFIG_STATUS=./config.status}"
4409 ac_write_fail=0
4410 ac_clean_files_save=$ac_clean_files
4411 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4413 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4414 as_write_fail=0
4415 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4416 #! $SHELL
4417 # Generated by $as_me.
4418 # Run this file to recreate the current configuration.
4419 # Compiler output produced by configure, useful for debugging
4420 # configure, is in config.log if it exists.
4421
4422 debug=false
4423 ac_cs_recheck=false
4424 ac_cs_silent=false
4425
4426 SHELL=\${CONFIG_SHELL-$SHELL}
4427 export SHELL
4428 _ASEOF
4429 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4430 ## -------------------- ##
4431 ## M4sh Initialization. ##
4432 ## -------------------- ##
4433
4434 # Be more Bourne compatible
4435 DUALCASE=1; export DUALCASE # for MKS sh
4436 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4437 emulate sh
4438 NULLCMD=:
4439 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4440 # is contrary to our usage. Disable this feature.
4441 alias -g '${1+"$@"}'='"$@"'
4442 setopt NO_GLOB_SUBST
4443 else
4444 case `(set -o) 2>/dev/null` in #(
4445 *posix*) :
4446 set -o posix ;; #(
4447 *) :
4448 ;;
4449 esac
4450 fi
4451
4452
4453 as_nl='
4454 '
4455 export as_nl
4456 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4457 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4458 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4459 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4460 # Prefer a ksh shell builtin over an external printf program on Solaris,
4461 # but without wasting forks for bash or zsh.
4462 if test -z "$BASH_VERSION$ZSH_VERSION" \
4463 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4464 as_echo='print -r --'
4465 as_echo_n='print -rn --'
4466 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4467 as_echo='printf %s\n'
4468 as_echo_n='printf %s'
4469 else
4470 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4471 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4472 as_echo_n='/usr/ucb/echo -n'
4473 else
4474 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4475 as_echo_n_body='eval
4476 arg=$1;
4477 case $arg in #(
4478 *"$as_nl"*)
4479 expr "X$arg" : "X\\(.*\\)$as_nl";
4480 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4481 esac;
4482 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4483 '
4484 export as_echo_n_body
4485 as_echo_n='sh -c $as_echo_n_body as_echo'
4486 fi
4487 export as_echo_body
4488 as_echo='sh -c $as_echo_body as_echo'
4489 fi
4490
4491 # The user is always right.
4492 if test "${PATH_SEPARATOR+set}" != set; then
4493 PATH_SEPARATOR=:
4494 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4495 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4496 PATH_SEPARATOR=';'
4497 }
4498 fi
4499
4500
4501 # IFS
4502 # We need space, tab and new line, in precisely that order. Quoting is
4503 # there to prevent editors from complaining about space-tab.
4504 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4505 # splitting by setting IFS to empty value.)
4506 IFS=" "" $as_nl"
4507
4508 # Find who we are. Look in the path if we contain no directory separator.
4509 as_myself=
4510 case $0 in #((
4511 *[\\/]* ) as_myself=$0 ;;
4512 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4513 for as_dir in $PATH
4514 do
4515 IFS=$as_save_IFS
4516 test -z "$as_dir" && as_dir=.
4517 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4518 done
4519 IFS=$as_save_IFS
4520
4521 ;;
4522 esac
4523 # We did not find ourselves, most probably we were run as `sh COMMAND'
4524 # in which case we are not to be found in the path.
4525 if test "x$as_myself" = x; then
4526 as_myself=$0
4527 fi
4528 if test ! -f "$as_myself"; then
4529 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4530 exit 1
4531 fi
4532
4533 # Unset variables that we do not need and which cause bugs (e.g. in
4534 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4535 # suppresses any "Segmentation fault" message there. '((' could
4536 # trigger a bug in pdksh 5.2.14.
4537 for as_var in BASH_ENV ENV MAIL MAILPATH
4538 do eval test x\${$as_var+set} = xset \
4539 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4540 done
4541 PS1='$ '
4542 PS2='> '
4543 PS4='+ '
4544
4545 # NLS nuisances.
4546 LC_ALL=C
4547 export LC_ALL
4548 LANGUAGE=C
4549 export LANGUAGE
4550
4551 # CDPATH.
4552 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4553
4554
4555 # as_fn_error STATUS ERROR [LINENO LOG_FD]
4556 # ----------------------------------------
4557 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4558 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4559 # script with STATUS, using 1 if that was 0.
4560 as_fn_error ()
4561 {
4562 as_status=$1; test $as_status -eq 0 && as_status=1
4563 if test "$4"; then
4564 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4565 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4566 fi
4567 $as_echo "$as_me: error: $2" >&2
4568 as_fn_exit $as_status
4569 } # as_fn_error
4570
4571
4572 # as_fn_set_status STATUS
4573 # -----------------------
4574 # Set $? to STATUS, without forking.
4575 as_fn_set_status ()
4576 {
4577 return $1
4578 } # as_fn_set_status
4579
4580 # as_fn_exit STATUS
4581 # -----------------
4582 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4583 as_fn_exit ()
4584 {
4585 set +e
4586 as_fn_set_status $1
4587 exit $1
4588 } # as_fn_exit
4589
4590 # as_fn_unset VAR
4591 # ---------------
4592 # Portably unset VAR.
4593 as_fn_unset ()
4594 {
4595 { eval $1=; unset $1;}
4596 }
4597 as_unset=as_fn_unset
4598 # as_fn_append VAR VALUE
4599 # ----------------------
4600 # Append the text in VALUE to the end of the definition contained in VAR. Take
4601 # advantage of any shell optimizations that allow amortized linear growth over
4602 # repeated appends, instead of the typical quadratic growth present in naive
4603 # implementations.
4604 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4605 eval 'as_fn_append ()
4606 {
4607 eval $1+=\$2
4608 }'
4609 else
4610 as_fn_append ()
4611 {
4612 eval $1=\$$1\$2
4613 }
4614 fi # as_fn_append
4615
4616 # as_fn_arith ARG...
4617 # ------------------
4618 # Perform arithmetic evaluation on the ARGs, and store the result in the
4619 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4620 # must be portable across $(()) and expr.
4621 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4622 eval 'as_fn_arith ()
4623 {
4624 as_val=$(( $* ))
4625 }'
4626 else
4627 as_fn_arith ()
4628 {
4629 as_val=`expr "$@" || test $? -eq 1`
4630 }
4631 fi # as_fn_arith
4632
4633
4634 if expr a : '\(a\)' >/dev/null 2>&1 &&
4635 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4636 as_expr=expr
4637 else
4638 as_expr=false
4639 fi
4640
4641 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4642 as_basename=basename
4643 else
4644 as_basename=false
4645 fi
4646
4647 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4648 as_dirname=dirname
4649 else
4650 as_dirname=false
4651 fi
4652
4653 as_me=`$as_basename -- "$0" ||
4654 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4655 X"$0" : 'X\(//\)$' \| \
4656 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4657 $as_echo X/"$0" |
4658 sed '/^.*\/\([^/][^/]*\)\/*$/{
4659 s//\1/
4660 q
4661 }
4662 /^X\/\(\/\/\)$/{
4663 s//\1/
4664 q
4665 }
4666 /^X\/\(\/\).*/{
4667 s//\1/
4668 q
4669 }
4670 s/.*/./; q'`
4671
4672 # Avoid depending upon Character Ranges.
4673 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4674 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4675 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4676 as_cr_digits='0123456789'
4677 as_cr_alnum=$as_cr_Letters$as_cr_digits
4678
4679 ECHO_C= ECHO_N= ECHO_T=
4680 case `echo -n x` in #(((((
4681 -n*)
4682 case `echo 'xy\c'` in
4683 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4684 xy) ECHO_C='\c';;
4685 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4686 ECHO_T=' ';;
4687 esac;;
4688 *)
4689 ECHO_N='-n';;
4690 esac
4691
4692 rm -f conf$$ conf$$.exe conf$$.file
4693 if test -d conf$$.dir; then
4694 rm -f conf$$.dir/conf$$.file
4695 else
4696 rm -f conf$$.dir
4697 mkdir conf$$.dir 2>/dev/null
4698 fi
4699 if (echo >conf$$.file) 2>/dev/null; then
4700 if ln -s conf$$.file conf$$ 2>/dev/null; then
4701 as_ln_s='ln -s'
4702 # ... but there are two gotchas:
4703 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4704 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4705 # In both cases, we have to default to `cp -pR'.
4706 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4707 as_ln_s='cp -pR'
4708 elif ln conf$$.file conf$$ 2>/dev/null; then
4709 as_ln_s=ln
4710 else
4711 as_ln_s='cp -pR'
4712 fi
4713 else
4714 as_ln_s='cp -pR'
4715 fi
4716 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4717 rmdir conf$$.dir 2>/dev/null
4718
4719
4720 # as_fn_mkdir_p
4721 # -------------
4722 # Create "$as_dir" as a directory, including parents if necessary.
4723 as_fn_mkdir_p ()
4724 {
4725
4726 case $as_dir in #(
4727 -*) as_dir=./$as_dir;;
4728 esac
4729 test -d "$as_dir" || eval $as_mkdir_p || {
4730 as_dirs=
4731 while :; do
4732 case $as_dir in #(
4733 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4734 *) as_qdir=$as_dir;;
4735 esac
4736 as_dirs="'$as_qdir' $as_dirs"
4737 as_dir=`$as_dirname -- "$as_dir" ||
4738 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4739 X"$as_dir" : 'X\(//\)[^/]' \| \
4740 X"$as_dir" : 'X\(//\)$' \| \
4741 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4742 $as_echo X"$as_dir" |
4743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4744 s//\1/
4745 q
4746 }
4747 /^X\(\/\/\)[^/].*/{
4748 s//\1/
4749 q
4750 }
4751 /^X\(\/\/\)$/{
4752 s//\1/
4753 q
4754 }
4755 /^X\(\/\).*/{
4756 s//\1/
4757 q
4758 }
4759 s/.*/./; q'`
4760 test -d "$as_dir" && break
4761 done
4762 test -z "$as_dirs" || eval "mkdir $as_dirs"
4763 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4764
4765
4766 } # as_fn_mkdir_p
4767 if mkdir -p . 2>/dev/null; then
4768 as_mkdir_p='mkdir -p "$as_dir"'
4769 else
4770 test -d ./-p && rmdir ./-p
4771 as_mkdir_p=false
4772 fi
4773
4774
4775 # as_fn_executable_p FILE
4776 # -----------------------
4777 # Test if FILE is an executable regular file.
4778 as_fn_executable_p ()
4779 {
4780 test -f "$1" && test -x "$1"
4781 } # as_fn_executable_p
4782 as_test_x='test -x'
4783 as_executable_p=as_fn_executable_p
4784
4785 # Sed expression to map a string onto a valid CPP name.
4786 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4787
4788 # Sed expression to map a string onto a valid variable name.
4789 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4790
4791
4792 exec 6>&1
4793 ## ----------------------------------- ##
4794 ## Main body of $CONFIG_STATUS script. ##
4795 ## ----------------------------------- ##
4796 _ASEOF
4797 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4798
4799 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4800 # Save the log message, to keep $0 and so on meaningful, and to
4801 # report actual input values of CONFIG_FILES etc. instead of their
4802 # values after options handling.
4803 ac_log="
4804 This file was extended by RubberBand $as_me 1.7, which was
4805 generated by GNU Autoconf 2.69. Invocation command line was
4806
4807 CONFIG_FILES = $CONFIG_FILES
4808 CONFIG_HEADERS = $CONFIG_HEADERS
4809 CONFIG_LINKS = $CONFIG_LINKS
4810 CONFIG_COMMANDS = $CONFIG_COMMANDS
4811 $ $0 $@
4812
4813 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4814 "
4815
4816 _ACEOF
4817
4818 case $ac_config_files in *"
4819 "*) set x $ac_config_files; shift; ac_config_files=$*;;
4820 esac
4821
4822
4823
4824 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4825 # Files that config.status was made for.
4826 config_files="$ac_config_files"
4827
4828 _ACEOF
4829
4830 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4831 ac_cs_usage="\
4832 \`$as_me' instantiates files and other configuration actions
4833 from templates according to the current configuration. Unless the files
4834 and actions are specified as TAGs, all are instantiated by default.
4835
4836 Usage: $0 [OPTION]... [TAG]...
4837
4838 -h, --help print this help, then exit
4839 -V, --version print version number and configuration settings, then exit
4840 --config print configuration, then exit
4841 -q, --quiet, --silent
4842 do not print progress messages
4843 -d, --debug don't remove temporary files
4844 --recheck update $as_me by reconfiguring in the same conditions
4845 --file=FILE[:TEMPLATE]
4846 instantiate the configuration file FILE
4847
4848 Configuration files:
4849 $config_files
4850
4851 Report bugs to <chris.cannam@breakfastquay.com>."
4852
4853 _ACEOF
4854 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4855 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4856 ac_cs_version="\\
4857 RubberBand config.status 1.7
4858 configured by $0, generated by GNU Autoconf 2.69,
4859 with options \\"\$ac_cs_config\\"
4860
4861 Copyright (C) 2012 Free Software Foundation, Inc.
4862 This config.status script is free software; the Free Software Foundation
4863 gives unlimited permission to copy, distribute and modify it."
4864
4865 ac_pwd='$ac_pwd'
4866 srcdir='$srcdir'
4867 test -n "\$AWK" || AWK=awk
4868 _ACEOF
4869
4870 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4871 # The default lists apply if the user does not specify any file.
4872 ac_need_defaults=:
4873 while test $# != 0
4874 do
4875 case $1 in
4876 --*=?*)
4877 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4878 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4879 ac_shift=:
4880 ;;
4881 --*=)
4882 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4883 ac_optarg=
4884 ac_shift=:
4885 ;;
4886 *)
4887 ac_option=$1
4888 ac_optarg=$2
4889 ac_shift=shift
4890 ;;
4891 esac
4892
4893 case $ac_option in
4894 # Handling of the options.
4895 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4896 ac_cs_recheck=: ;;
4897 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4898 $as_echo "$ac_cs_version"; exit ;;
4899 --config | --confi | --conf | --con | --co | --c )
4900 $as_echo "$ac_cs_config"; exit ;;
4901 --debug | --debu | --deb | --de | --d | -d )
4902 debug=: ;;
4903 --file | --fil | --fi | --f )
4904 $ac_shift
4905 case $ac_optarg in
4906 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4907 '') as_fn_error $? "missing file argument" ;;
4908 esac
4909 as_fn_append CONFIG_FILES " '$ac_optarg'"
4910 ac_need_defaults=false;;
4911 --he | --h | --help | --hel | -h )
4912 $as_echo "$ac_cs_usage"; exit ;;
4913 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4914 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4915 ac_cs_silent=: ;;
4916
4917 # This is an error.
4918 -*) as_fn_error $? "unrecognized option: \`$1'
4919 Try \`$0 --help' for more information." ;;
4920
4921 *) as_fn_append ac_config_targets " $1"
4922 ac_need_defaults=false ;;
4923
4924 esac
4925 shift
4926 done
4927
4928 ac_configure_extra_args=
4929
4930 if $ac_cs_silent; then
4931 exec 6>/dev/null
4932 ac_configure_extra_args="$ac_configure_extra_args --silent"
4933 fi
4934
4935 _ACEOF
4936 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4937 if \$ac_cs_recheck; then
4938 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4939 shift
4940 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4941 CONFIG_SHELL='$SHELL'
4942 export CONFIG_SHELL
4943 exec "\$@"
4944 fi
4945
4946 _ACEOF
4947 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4948 exec 5>>config.log
4949 {
4950 echo
4951 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4952 ## Running $as_me. ##
4953 _ASBOX
4954 $as_echo "$ac_log"
4955 } >&5
4956
4957 _ACEOF
4958 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4959 _ACEOF
4960
4961 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4962
4963 # Handling of arguments.
4964 for ac_config_target in $ac_config_targets
4965 do
4966 case $ac_config_target in
4967 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4968
4969 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4970 esac
4971 done
4972
4973
4974 # If the user did not use the arguments to specify the items to instantiate,
4975 # then the envvar interface is used. Set only those that are not.
4976 # We use the long form for the default assignment because of an extremely
4977 # bizarre bug on SunOS 4.1.3.
4978 if $ac_need_defaults; then
4979 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4980 fi
4981
4982 # Have a temporary directory for convenience. Make it in the build tree
4983 # simply because there is no reason against having it here, and in addition,
4984 # creating and moving files from /tmp can sometimes cause problems.
4985 # Hook for its removal unless debugging.
4986 # Note that there is a small window in which the directory will not be cleaned:
4987 # after its creation but before its name has been assigned to `$tmp'.
4988 $debug ||
4989 {
4990 tmp= ac_tmp=
4991 trap 'exit_status=$?
4992 : "${ac_tmp:=$tmp}"
4993 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4994 ' 0
4995 trap 'as_fn_exit 1' 1 2 13 15
4996 }
4997 # Create a (secure) tmp directory for tmp files.
4998
4999 {
5000 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5001 test -d "$tmp"
5002 } ||
5003 {
5004 tmp=./conf$$-$RANDOM
5005 (umask 077 && mkdir "$tmp")
5006 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5007 ac_tmp=$tmp
5008
5009 # Set up the scripts for CONFIG_FILES section.
5010 # No need to generate them if there are no CONFIG_FILES.
5011 # This happens for instance with `./config.status config.h'.
5012 if test -n "$CONFIG_FILES"; then
5013
5014
5015 ac_cr=`echo X | tr X '\015'`
5016 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5017 # But we know of no other shell where ac_cr would be empty at this
5018 # point, so we can use a bashism as a fallback.
5019 if test "x$ac_cr" = x; then
5020 eval ac_cr=\$\'\\r\'
5021 fi
5022 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5023 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5024 ac_cs_awk_cr='\\r'
5025 else
5026 ac_cs_awk_cr=$ac_cr
5027 fi
5028
5029 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5030 _ACEOF
5031
5032
5033 {
5034 echo "cat >conf$$subs.awk <<_ACEOF" &&
5035 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5036 echo "_ACEOF"
5037 } >conf$$subs.sh ||
5038 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5039 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5040 ac_delim='%!_!# '
5041 for ac_last_try in false false false false false :; do
5042 . ./conf$$subs.sh ||
5043 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5044
5045 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5046 if test $ac_delim_n = $ac_delim_num; then
5047 break
5048 elif $ac_last_try; then
5049 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5050 else
5051 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5052 fi
5053 done
5054 rm -f conf$$subs.sh
5055
5056 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5057 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5058 _ACEOF
5059 sed -n '
5060 h
5061 s/^/S["/; s/!.*/"]=/
5062 p
5063 g
5064 s/^[^!]*!//
5065 :repl
5066 t repl
5067 s/'"$ac_delim"'$//
5068 t delim
5069 :nl
5070 h
5071 s/\(.\{148\}\)..*/\1/
5072 t more1
5073 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5074 p
5075 n
5076 b repl
5077 :more1
5078 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5079 p
5080 g
5081 s/.\{148\}//
5082 t nl
5083 :delim
5084 h
5085 s/\(.\{148\}\)..*/\1/
5086 t more2
5087 s/["\\]/\\&/g; s/^/"/; s/$/"/
5088 p
5089 b
5090 :more2
5091 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5092 p
5093 g
5094 s/.\{148\}//
5095 t delim
5096 ' <conf$$subs.awk | sed '
5097 /^[^""]/{
5098 N
5099 s/\n//
5100 }
5101 ' >>$CONFIG_STATUS || ac_write_fail=1
5102 rm -f conf$$subs.awk
5103 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5104 _ACAWK
5105 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5106 for (key in S) S_is_set[key] = 1
5107 FS = ""
5108
5109 }
5110 {
5111 line = $ 0
5112 nfields = split(line, field, "@")
5113 substed = 0
5114 len = length(field[1])
5115 for (i = 2; i < nfields; i++) {
5116 key = field[i]
5117 keylen = length(key)
5118 if (S_is_set[key]) {
5119 value = S[key]
5120 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5121 len += length(value) + length(field[++i])
5122 substed = 1
5123 } else
5124 len += 1 + keylen
5125 }
5126
5127 print line
5128 }
5129
5130 _ACAWK
5131 _ACEOF
5132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5133 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5134 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5135 else
5136 cat
5137 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5138 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5139 _ACEOF
5140
5141 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5142 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5143 # trailing colons and then remove the whole line if VPATH becomes empty
5144 # (actually we leave an empty line to preserve line numbers).
5145 if test "x$srcdir" = x.; then
5146 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5147 h
5148 s///
5149 s/^/:/
5150 s/[ ]*$/:/
5151 s/:\$(srcdir):/:/g
5152 s/:\${srcdir}:/:/g
5153 s/:@srcdir@:/:/g
5154 s/^:*//
5155 s/:*$//
5156 x
5157 s/\(=[ ]*\).*/\1/
5158 G
5159 s/\n//
5160 s/^[^=]*=[ ]*$//
5161 }'
5162 fi
5163
5164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5165 fi # test -n "$CONFIG_FILES"
5166
5167
5168 eval set X " :F $CONFIG_FILES "
5169 shift
5170 for ac_tag
5171 do
5172 case $ac_tag in
5173 :[FHLC]) ac_mode=$ac_tag; continue;;
5174 esac
5175 case $ac_mode$ac_tag in
5176 :[FHL]*:*);;
5177 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5178 :[FH]-) ac_tag=-:-;;
5179 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5180 esac
5181 ac_save_IFS=$IFS
5182 IFS=:
5183 set x $ac_tag
5184 IFS=$ac_save_IFS
5185 shift
5186 ac_file=$1
5187 shift
5188
5189 case $ac_mode in
5190 :L) ac_source=$1;;
5191 :[FH])
5192 ac_file_inputs=
5193 for ac_f
5194 do
5195 case $ac_f in
5196 -) ac_f="$ac_tmp/stdin";;
5197 *) # Look for the file first in the build tree, then in the source tree
5198 # (if the path is not absolute). The absolute path cannot be DOS-style,
5199 # because $ac_f cannot contain `:'.
5200 test -f "$ac_f" ||
5201 case $ac_f in
5202 [\\/$]*) false;;
5203 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5204 esac ||
5205 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5206 esac
5207 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5208 as_fn_append ac_file_inputs " '$ac_f'"
5209 done
5210
5211 # Let's still pretend it is `configure' which instantiates (i.e., don't
5212 # use $as_me), people would be surprised to read:
5213 # /* config.h. Generated by config.status. */
5214 configure_input='Generated from '`
5215 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5216 `' by configure.'
5217 if test x"$ac_file" != x-; then
5218 configure_input="$ac_file. $configure_input"
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5220 $as_echo "$as_me: creating $ac_file" >&6;}
5221 fi
5222 # Neutralize special characters interpreted by sed in replacement strings.
5223 case $configure_input in #(
5224 *\&* | *\|* | *\\* )
5225 ac_sed_conf_input=`$as_echo "$configure_input" |
5226 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5227 *) ac_sed_conf_input=$configure_input;;
5228 esac
5229
5230 case $ac_tag in
5231 *:-:* | *:-) cat >"$ac_tmp/stdin" \
5232 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5233 esac
5234 ;;
5235 esac
5236
5237 ac_dir=`$as_dirname -- "$ac_file" ||
5238 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5239 X"$ac_file" : 'X\(//\)[^/]' \| \
5240 X"$ac_file" : 'X\(//\)$' \| \
5241 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5242 $as_echo X"$ac_file" |
5243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5244 s//\1/
5245 q
5246 }
5247 /^X\(\/\/\)[^/].*/{
5248 s//\1/
5249 q
5250 }
5251 /^X\(\/\/\)$/{
5252 s//\1/
5253 q
5254 }
5255 /^X\(\/\).*/{
5256 s//\1/
5257 q
5258 }
5259 s/.*/./; q'`
5260 as_dir="$ac_dir"; as_fn_mkdir_p
5261 ac_builddir=.
5262
5263 case "$ac_dir" in
5264 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5265 *)
5266 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5267 # A ".." for each directory in $ac_dir_suffix.
5268 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5269 case $ac_top_builddir_sub in
5270 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5271 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5272 esac ;;
5273 esac
5274 ac_abs_top_builddir=$ac_pwd
5275 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5276 # for backward compatibility:
5277 ac_top_builddir=$ac_top_build_prefix
5278
5279 case $srcdir in
5280 .) # We are building in place.
5281 ac_srcdir=.
5282 ac_top_srcdir=$ac_top_builddir_sub
5283 ac_abs_top_srcdir=$ac_pwd ;;
5284 [\\/]* | ?:[\\/]* ) # Absolute name.
5285 ac_srcdir=$srcdir$ac_dir_suffix;
5286 ac_top_srcdir=$srcdir
5287 ac_abs_top_srcdir=$srcdir ;;
5288 *) # Relative name.
5289 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5290 ac_top_srcdir=$ac_top_build_prefix$srcdir
5291 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5292 esac
5293 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5294
5295
5296 case $ac_mode in
5297 :F)
5298 #
5299 # CONFIG_FILE
5300 #
5301
5302 _ACEOF
5303
5304 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5305 # If the template does not know about datarootdir, expand it.
5306 # FIXME: This hack should be removed a few years after 2.60.
5307 ac_datarootdir_hack=; ac_datarootdir_seen=
5308 ac_sed_dataroot='
5309 /datarootdir/ {
5310 p
5311 q
5312 }
5313 /@datadir@/p
5314 /@docdir@/p
5315 /@infodir@/p
5316 /@localedir@/p
5317 /@mandir@/p'
5318 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5319 *datarootdir*) ac_datarootdir_seen=yes;;
5320 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5322 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5323 _ACEOF
5324 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5325 ac_datarootdir_hack='
5326 s&@datadir@&$datadir&g
5327 s&@docdir@&$docdir&g
5328 s&@infodir@&$infodir&g
5329 s&@localedir@&$localedir&g
5330 s&@mandir@&$mandir&g
5331 s&\\\${datarootdir}&$datarootdir&g' ;;
5332 esac
5333 _ACEOF
5334
5335 # Neutralize VPATH when `$srcdir' = `.'.
5336 # Shell code in configure.ac might set extrasub.
5337 # FIXME: do we really want to maintain this feature?
5338 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5339 ac_sed_extra="$ac_vpsub
5340 $extrasub
5341 _ACEOF
5342 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5343 :t
5344 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5345 s|@configure_input@|$ac_sed_conf_input|;t t
5346 s&@top_builddir@&$ac_top_builddir_sub&;t t
5347 s&@top_build_prefix@&$ac_top_build_prefix&;t t
5348 s&@srcdir@&$ac_srcdir&;t t
5349 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5350 s&@top_srcdir@&$ac_top_srcdir&;t t
5351 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5352 s&@builddir@&$ac_builddir&;t t
5353 s&@abs_builddir@&$ac_abs_builddir&;t t
5354 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5355 $ac_datarootdir_hack
5356 "
5357 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5358 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5359
5360 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5361 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5362 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5363 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5365 which seems to be undefined. Please make sure it is defined" >&5
5366 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5367 which seems to be undefined. Please make sure it is defined" >&2;}
5368
5369 rm -f "$ac_tmp/stdin"
5370 case $ac_file in
5371 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5372 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5373 esac \
5374 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5375 ;;
5376
5377
5378
5379 esac
5380
5381 done # for ac_tag
5382
5383
5384 as_fn_exit 0
5385 _ACEOF
5386 ac_clean_files=$ac_clean_files_save
5387
5388 test $ac_write_fail = 0 ||
5389 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5390
5391
5392 # configure is writing to config.log, and then calls config.status.
5393 # config.status does its own redirection, appending to config.log.
5394 # Unfortunately, on DOS this fails, as config.log is still kept open
5395 # by configure, so config.status won't be able to write to it; its
5396 # output is simply discarded. So we exec the FD to /dev/null,
5397 # effectively closing config.log, so it can be properly (re)opened and
5398 # appended to by config.status. When coming back to configure, we
5399 # need to make the FD available again.
5400 if test "$no_create" != yes; then
5401 ac_cs_success=:
5402 ac_config_status_args=
5403 test "$silent" = yes &&
5404 ac_config_status_args="$ac_config_status_args --quiet"
5405 exec 5>/dev/null
5406 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5407 exec 5>>config.log
5408 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5409 # would make configure fail if this is the last instruction.
5410 $ac_cs_success || as_fn_exit 1
5411 fi
5412 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5414 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5415 fi
5416
5417