To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / configure @ 110:125520c3dc05

History | View | Annotate | Download (273 KB)

1
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.69.
4
#
5
#
6
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7
#
8
#
9
# This configure script is free software; the Free Software Foundation
10
# gives unlimited permission to copy, distribute and modify it.
11
## -------------------- ##
12
## M4sh Initialization. ##
13
## -------------------- ##
14

    
15
# Be more Bourne compatible
16
DUALCASE=1; export DUALCASE # for MKS sh
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18
  emulate sh
19
  NULLCMD=:
20
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21
  # is contrary to our usage.  Disable this feature.
22
  alias -g '${1+"$@"}'='"$@"'
23
  setopt NO_GLOB_SUBST
24
else
25
  case `(set -o) 2>/dev/null` in #(
26
  *posix*) :
27
    set -o posix ;; #(
28
  *) :
29
     ;;
30
esac
31
fi
32

    
33

    
34
as_nl='
35
'
36
export as_nl
37
# Printing a long string crashes Solaris 7 /usr/bin/printf.
38
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41
# Prefer a ksh shell builtin over an external printf program on Solaris,
42
# but without wasting forks for bash or zsh.
43
if test -z "$BASH_VERSION$ZSH_VERSION" \
44
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45
  as_echo='print -r --'
46
  as_echo_n='print -rn --'
47
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48
  as_echo='printf %s\n'
49
  as_echo_n='printf %s'
50
else
51
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53
    as_echo_n='/usr/ucb/echo -n'
54
  else
55
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56
    as_echo_n_body='eval
57
      arg=$1;
58
      case $arg in #(
59
      *"$as_nl"*)
60
	expr "X$arg" : "X\\(.*\\)$as_nl";
61
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62
      esac;
63
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64
    '
65
    export as_echo_n_body
66
    as_echo_n='sh -c $as_echo_n_body as_echo'
67
  fi
68
  export as_echo_body
69
  as_echo='sh -c $as_echo_body as_echo'
70
fi
71

    
72
# The user is always right.
73
if test "${PATH_SEPARATOR+set}" != set; then
74
  PATH_SEPARATOR=:
75
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77
      PATH_SEPARATOR=';'
78
  }
79
fi
80

    
81

    
82
# IFS
83
# We need space, tab and new line, in precisely that order.  Quoting is
84
# there to prevent editors from complaining about space-tab.
85
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86
# splitting by setting IFS to empty value.)
87
IFS=" ""	$as_nl"
88

    
89
# Find who we are.  Look in the path if we contain no directory separator.
90
as_myself=
91
case $0 in #((
92
  *[\\/]* ) as_myself=$0 ;;
93
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94
for as_dir in $PATH
95
do
96
  IFS=$as_save_IFS
97
  test -z "$as_dir" && as_dir=.
98
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99
  done
100
IFS=$as_save_IFS
101

    
102
     ;;
103
esac
104
# We did not find ourselves, most probably we were run as `sh COMMAND'
105
# in which case we are not to be found in the path.
106
if test "x$as_myself" = x; then
107
  as_myself=$0
108
fi
109
if test ! -f "$as_myself"; then
110
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111
  exit 1
112
fi
113

    
114
# Unset variables that we do not need and which cause bugs (e.g. in
115
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116
# suppresses any "Segmentation fault" message there.  '((' could
117
# trigger a bug in pdksh 5.2.14.
118
for as_var in BASH_ENV ENV MAIL MAILPATH
119
do eval test x\${$as_var+set} = xset \
120
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121
done
122
PS1='$ '
123
PS2='> '
124
PS4='+ '
125

    
126
# NLS nuisances.
127
LC_ALL=C
128
export LC_ALL
129
LANGUAGE=C
130
export LANGUAGE
131

    
132
# CDPATH.
133
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134

    
135
# Use a proper internal environment variable to ensure we don't fall
136
  # into an infinite loop, continuously re-executing ourselves.
137
  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138
    _as_can_reexec=no; export _as_can_reexec;
139
    # We cannot yet assume a decent shell, so we have to provide a
140
# neutralization value for shells without unset; and this also
141
# works around shells that cannot unset nonexistent variables.
142
# Preserve -v and -x to the replacement shell.
143
BASH_ENV=/dev/null
144
ENV=/dev/null
145
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146
case $- in # ((((
147
  *v*x* | *x*v* ) as_opts=-vx ;;
148
  *v* ) as_opts=-v ;;
149
  *x* ) as_opts=-x ;;
150
  * ) as_opts= ;;
151
esac
152
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153
# Admittedly, this is quite paranoid, since all the known shells bail
154
# out after a failed `exec'.
155
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156
as_fn_exit 255
157
  fi
158
  # We don't want this to propagate to other subprocesses.
159
          { _as_can_reexec=; unset _as_can_reexec;}
160
if test "x$CONFIG_SHELL" = x; then
161
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162
  emulate sh
163
  NULLCMD=:
164
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165
  # is contrary to our usage.  Disable this feature.
166
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167
  setopt NO_GLOB_SUBST
168
else
169
  case \`(set -o) 2>/dev/null\` in #(
170
  *posix*) :
171
    set -o posix ;; #(
172
  *) :
173
     ;;
174
esac
175
fi
176
"
177
  as_required="as_fn_return () { (exit \$1); }
178
as_fn_success () { as_fn_return 0; }
179
as_fn_failure () { as_fn_return 1; }
180
as_fn_ret_success () { return 0; }
181
as_fn_ret_failure () { return 1; }
182

    
183
exitcode=0
184
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189

    
190
else
191
  exitcode=1; echo positional parameters were not saved.
192
fi
193
test x\$exitcode = x0 || exit 1
194
test -x / || exit 1"
195
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
test \$(( 1 + 1 )) = 2 || exit 1"
200
  if (eval "$as_required") 2>/dev/null; then :
201
  as_have_required=yes
202
else
203
  as_have_required=no
204
fi
205
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206

    
207
else
208
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209
as_found=false
210
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211
do
212
  IFS=$as_save_IFS
213
  test -z "$as_dir" && as_dir=.
214
  as_found=:
215
  case $as_dir in #(
216
	 /*)
217
	   for as_base in sh bash ksh sh5; do
218
	     # Try only shells that exist, to save several forks.
219
	     as_shell=$as_dir/$as_base
220
	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221
		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222
  CONFIG_SHELL=$as_shell as_have_required=yes
223
		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224
  break 2
225
fi
226
fi
227
	   done;;
228
       esac
229
  as_found=false
230
done
231
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232
	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233
  CONFIG_SHELL=$SHELL as_have_required=yes
234
fi; }
235
IFS=$as_save_IFS
236

    
237

    
238
      if test "x$CONFIG_SHELL" != x; then :
239
  export CONFIG_SHELL
240
             # We cannot yet assume a decent shell, so we have to provide a
241
# neutralization value for shells without unset; and this also
242
# works around shells that cannot unset nonexistent variables.
243
# Preserve -v and -x to the replacement shell.
244
BASH_ENV=/dev/null
245
ENV=/dev/null
246
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247
case $- in # ((((
248
  *v*x* | *x*v* ) as_opts=-vx ;;
249
  *v* ) as_opts=-v ;;
250
  *x* ) as_opts=-x ;;
251
  * ) as_opts= ;;
252
esac
253
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254
# Admittedly, this is quite paranoid, since all the known shells bail
255
# out after a failed `exec'.
256
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257
exit 255
258
fi
259

    
260
    if test x$as_have_required = xno; then :
261
  $as_echo "$0: This script requires a shell more modern than all"
262
  $as_echo "$0: the shells that I found on your system."
263
  if test x${ZSH_VERSION+set} = xset ; then
264
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266
  else
267
    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268
$0: including any error possibly output before this
269
$0: message. Then install a modern shell, or manually run
270
$0: the script under such a shell if you do have one."
271
  fi
272
  exit 1
273
fi
274
fi
275
fi
276
SHELL=${CONFIG_SHELL-/bin/sh}
277
export SHELL
278
# Unset more variables known to interfere with behavior of common tools.
279
CLICOLOR_FORCE= GREP_OPTIONS=
280
unset CLICOLOR_FORCE GREP_OPTIONS
281

    
282
## --------------------- ##
283
## M4sh Shell Functions. ##
284
## --------------------- ##
285
# as_fn_unset VAR
286
# ---------------
287
# Portably unset VAR.
288
as_fn_unset ()
289
{
290
  { eval $1=; unset $1;}
291
}
292
as_unset=as_fn_unset
293

    
294
# as_fn_set_status STATUS
295
# -----------------------
296
# Set $? to STATUS, without forking.
297
as_fn_set_status ()
298
{
299
  return $1
300
} # as_fn_set_status
301

    
302
# as_fn_exit STATUS
303
# -----------------
304
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305
as_fn_exit ()
306
{
307
  set +e
308
  as_fn_set_status $1
309
  exit $1
310
} # as_fn_exit
311

    
312
# as_fn_mkdir_p
313
# -------------
314
# Create "$as_dir" as a directory, including parents if necessary.
315
as_fn_mkdir_p ()
316
{
317

    
318
  case $as_dir in #(
319
  -*) as_dir=./$as_dir;;
320
  esac
321
  test -d "$as_dir" || eval $as_mkdir_p || {
322
    as_dirs=
323
    while :; do
324
      case $as_dir in #(
325
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326
      *) as_qdir=$as_dir;;
327
      esac
328
      as_dirs="'$as_qdir' $as_dirs"
329
      as_dir=`$as_dirname -- "$as_dir" ||
330
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331
	 X"$as_dir" : 'X\(//\)[^/]' \| \
332
	 X"$as_dir" : 'X\(//\)$' \| \
333
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334
$as_echo X"$as_dir" |
335
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336
	    s//\1/
337
	    q
338
	  }
339
	  /^X\(\/\/\)[^/].*/{
340
	    s//\1/
341
	    q
342
	  }
343
	  /^X\(\/\/\)$/{
344
	    s//\1/
345
	    q
346
	  }
347
	  /^X\(\/\).*/{
348
	    s//\1/
349
	    q
350
	  }
351
	  s/.*/./; q'`
352
      test -d "$as_dir" && break
353
    done
354
    test -z "$as_dirs" || eval "mkdir $as_dirs"
355
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356

    
357

    
358
} # as_fn_mkdir_p
359

    
360
# as_fn_executable_p FILE
361
# -----------------------
362
# Test if FILE is an executable regular file.
363
as_fn_executable_p ()
364
{
365
  test -f "$1" && test -x "$1"
366
} # as_fn_executable_p
367
# as_fn_append VAR VALUE
368
# ----------------------
369
# Append the text in VALUE to the end of the definition contained in VAR. Take
370
# advantage of any shell optimizations that allow amortized linear growth over
371
# repeated appends, instead of the typical quadratic growth present in naive
372
# implementations.
373
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374
  eval 'as_fn_append ()
375
  {
376
    eval $1+=\$2
377
  }'
378
else
379
  as_fn_append ()
380
  {
381
    eval $1=\$$1\$2
382
  }
383
fi # as_fn_append
384

    
385
# as_fn_arith ARG...
386
# ------------------
387
# Perform arithmetic evaluation on the ARGs, and store the result in the
388
# global $as_val. Take advantage of shells that can avoid forks. The arguments
389
# must be portable across $(()) and expr.
390
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391
  eval 'as_fn_arith ()
392
  {
393
    as_val=$(( $* ))
394
  }'
395
else
396
  as_fn_arith ()
397
  {
398
    as_val=`expr "$@" || test $? -eq 1`
399
  }
400
fi # as_fn_arith
401

    
402

    
403
# as_fn_error STATUS ERROR [LINENO LOG_FD]
404
# ----------------------------------------
405
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407
# script with STATUS, using 1 if that was 0.
408
as_fn_error ()
409
{
410
  as_status=$1; test $as_status -eq 0 && as_status=1
411
  if test "$4"; then
412
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414
  fi
415
  $as_echo "$as_me: error: $2" >&2
416
  as_fn_exit $as_status
417
} # as_fn_error
418

    
419
if expr a : '\(a\)' >/dev/null 2>&1 &&
420
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
421
  as_expr=expr
422
else
423
  as_expr=false
424
fi
425

    
426
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427
  as_basename=basename
428
else
429
  as_basename=false
430
fi
431

    
432
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433
  as_dirname=dirname
434
else
435
  as_dirname=false
436
fi
437

    
438
as_me=`$as_basename -- "$0" ||
439
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440
	 X"$0" : 'X\(//\)$' \| \
441
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442
$as_echo X/"$0" |
443
    sed '/^.*\/\([^/][^/]*\)\/*$/{
444
	    s//\1/
445
	    q
446
	  }
447
	  /^X\/\(\/\/\)$/{
448
	    s//\1/
449
	    q
450
	  }
451
	  /^X\/\(\/\).*/{
452
	    s//\1/
453
	    q
454
	  }
455
	  s/.*/./; q'`
456

    
457
# Avoid depending upon Character Ranges.
458
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461
as_cr_digits='0123456789'
462
as_cr_alnum=$as_cr_Letters$as_cr_digits
463

    
464

    
465
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
466
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
467
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470
  sed -n '
471
    p
472
    /[$]LINENO/=
473
  ' <$as_myself |
474
    sed '
475
      s/[$]LINENO.*/&-/
476
      t lineno
477
      b
478
      :lineno
479
      N
480
      :loop
481
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482
      t loop
483
      s/-\n.*//
484
    ' >$as_me.lineno &&
485
  chmod +x "$as_me.lineno" ||
486
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487

    
488
  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489
  # already done that, so ensure we don't try to do so again and fall
490
  # in an infinite loop.  This has already happened in practice.
491
  _as_can_reexec=no; export _as_can_reexec
492
  # Don't try to exec as it changes $[0], causing all sort of problems
493
  # (the dirname of $[0] is not the place where we might find the
494
  # original and so on.  Autoconf is especially sensitive to this).
495
  . "./$as_me.lineno"
496
  # Exit status is that of the last command.
497
  exit
498
}
499

    
500
ECHO_C= ECHO_N= ECHO_T=
501
case `echo -n x` in #(((((
502
-n*)
503
  case `echo 'xy\c'` in
504
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
505
  xy)  ECHO_C='\c';;
506
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507
       ECHO_T='	';;
508
  esac;;
509
*)
510
  ECHO_N='-n';;
511
esac
512

    
513
rm -f conf$$ conf$$.exe conf$$.file
514
if test -d conf$$.dir; then
515
  rm -f conf$$.dir/conf$$.file
516
else
517
  rm -f conf$$.dir
518
  mkdir conf$$.dir 2>/dev/null
519
fi
520
if (echo >conf$$.file) 2>/dev/null; then
521
  if ln -s conf$$.file conf$$ 2>/dev/null; then
522
    as_ln_s='ln -s'
523
    # ... but there are two gotchas:
524
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526
    # In both cases, we have to default to `cp -pR'.
527
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528
      as_ln_s='cp -pR'
529
  elif ln conf$$.file conf$$ 2>/dev/null; then
530
    as_ln_s=ln
531
  else
532
    as_ln_s='cp -pR'
533
  fi
534
else
535
  as_ln_s='cp -pR'
536
fi
537
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538
rmdir conf$$.dir 2>/dev/null
539

    
540
if mkdir -p . 2>/dev/null; then
541
  as_mkdir_p='mkdir -p "$as_dir"'
542
else
543
  test -d ./-p && rmdir ./-p
544
  as_mkdir_p=false
545
fi
546

    
547
as_test_x='test -x'
548
as_executable_p=as_fn_executable_p
549

    
550
# Sed expression to map a string onto a valid CPP name.
551
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552

    
553
# Sed expression to map a string onto a valid variable name.
554
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555

    
556

    
557
test -n "$DJDIR" || exec 7<&0 </dev/null
558
exec 6>&1
559

    
560
# Name of the host.
561
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562
# so uname gets run too.
563
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564

    
565
#
566
# Initializations.
567
#
568
ac_default_prefix=/usr/local
569
ac_clean_files=
570
ac_config_libobj_dir=.
571
LIBOBJS=
572
cross_compiling=no
573
subdirs=
574
MFLAGS=
575
MAKEFLAGS=
576

    
577
# Identity of this package.
578
PACKAGE_NAME=
579
PACKAGE_TARNAME=
580
PACKAGE_VERSION=
581
PACKAGE_STRING=
582
PACKAGE_BUGREPORT=
583
PACKAGE_URL=
584

    
585
ac_unique_file="Sonic Vector"
586
ac_unique_file="main/main.cpp"
587
# Factoring default headers for most tests.
588
ac_includes_default="\
589
#include <stdio.h>
590
#ifdef HAVE_SYS_TYPES_H
591
# include <sys/types.h>
592
#endif
593
#ifdef HAVE_SYS_STAT_H
594
# include <sys/stat.h>
595
#endif
596
#ifdef STDC_HEADERS
597
# include <stdlib.h>
598
# include <stddef.h>
599
#else
600
# ifdef HAVE_STDLIB_H
601
#  include <stdlib.h>
602
# endif
603
#endif
604
#ifdef HAVE_STRING_H
605
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
606
#  include <memory.h>
607
# endif
608
# include <string.h>
609
#endif
610
#ifdef HAVE_STRINGS_H
611
# include <strings.h>
612
#endif
613
#ifdef HAVE_INTTYPES_H
614
# include <inttypes.h>
615
#endif
616
#ifdef HAVE_STDINT_H
617
# include <stdint.h>
618
#endif
619
#ifdef HAVE_UNISTD_H
620
# include <unistd.h>
621
#endif"
622

    
623
ac_subst_vars='LTLIBOBJS
624
LIBOBJS
625
QMAKE_CONFIG
626
HAVES
627
CXXSTANDARD
628
CUT
629
SHA1SUM
630
MAKEDEPEND
631
XARGS
632
PERL
633
X11_LIBS
634
X11_CFLAGS
635
opus_LIBS
636
opus_CFLAGS
637
id3tag_LIBS
638
id3tag_CFLAGS
639
mad_LIBS
640
mad_CFLAGS
641
fishsound_LIBS
642
fishsound_CFLAGS
643
oggz_LIBS
644
oggz_CFLAGS
645
lrdf_LIBS
646
lrdf_CFLAGS
647
libpulse_LIBS
648
libpulse_CFLAGS
649
JACK_LIBS
650
JACK_CFLAGS
651
portaudio_2_0_LIBS
652
portaudio_2_0_CFLAGS
653
liblo_LIBS
654
liblo_CFLAGS
655
capnp_LIBS
656
capnp_CFLAGS
657
serd_LIBS
658
serd_CFLAGS
659
sord_LIBS
660
sord_CFLAGS
661
rubberband_LIBS
662
rubberband_CFLAGS
663
samplerate_LIBS
664
samplerate_CFLAGS
665
sndfile_LIBS
666
sndfile_CFLAGS
667
fftw3f_LIBS
668
fftw3f_CFLAGS
669
fftw3_LIBS
670
fftw3_CFLAGS
671
bz2_LIBS
672
bz2_CFLAGS
673
QMAKE
674
PKG_CONFIG_LIBDIR
675
PKG_CONFIG_PATH
676
PKG_CONFIG
677
EGREP
678
GREP
679
CXXCPP
680
HAVE_CXX11
681
MKDIR_P
682
INSTALL_DATA
683
INSTALL_SCRIPT
684
INSTALL_PROGRAM
685
ac_ct_CXX
686
CXXFLAGS
687
CXX
688
OBJEXT
689
EXEEXT
690
ac_ct_CC
691
CPPFLAGS
692
LDFLAGS
693
CFLAGS
694
CC
695
target_alias
696
host_alias
697
build_alias
698
LIBS
699
ECHO_T
700
ECHO_N
701
ECHO_C
702
DEFS
703
mandir
704
localedir
705
libdir
706
psdir
707
pdfdir
708
dvidir
709
htmldir
710
infodir
711
docdir
712
oldincludedir
713
includedir
714
localstatedir
715
sharedstatedir
716
sysconfdir
717
datadir
718
datarootdir
719
libexecdir
720
sbindir
721
bindir
722
program_transform_name
723
prefix
724
exec_prefix
725
PACKAGE_URL
726
PACKAGE_BUGREPORT
727
PACKAGE_STRING
728
PACKAGE_VERSION
729
PACKAGE_TARNAME
730
PACKAGE_NAME
731
PATH_SEPARATOR
732
SHELL'
733
ac_subst_files=''
734
ac_user_opts='
735
enable_option_checking
736
enable_debug
737
'
738
      ac_precious_vars='build_alias
739
host_alias
740
target_alias
741
CC
742
CFLAGS
743
LDFLAGS
744
LIBS
745
CPPFLAGS
746
CXX
747
CXXFLAGS
748
CCC
749
CXXCPP
750
PKG_CONFIG
751
PKG_CONFIG_PATH
752
PKG_CONFIG_LIBDIR
753
bz2_CFLAGS
754
bz2_LIBS
755
fftw3_CFLAGS
756
fftw3_LIBS
757
fftw3f_CFLAGS
758
fftw3f_LIBS
759
sndfile_CFLAGS
760
sndfile_LIBS
761
samplerate_CFLAGS
762
samplerate_LIBS
763
rubberband_CFLAGS
764
rubberband_LIBS
765
sord_CFLAGS
766
sord_LIBS
767
serd_CFLAGS
768
serd_LIBS
769
capnp_CFLAGS
770
capnp_LIBS
771
liblo_CFLAGS
772
liblo_LIBS
773
portaudio_2_0_CFLAGS
774
portaudio_2_0_LIBS
775
JACK_CFLAGS
776
JACK_LIBS
777
libpulse_CFLAGS
778
libpulse_LIBS
779
lrdf_CFLAGS
780
lrdf_LIBS
781
oggz_CFLAGS
782
oggz_LIBS
783
fishsound_CFLAGS
784
fishsound_LIBS
785
mad_CFLAGS
786
mad_LIBS
787
id3tag_CFLAGS
788
id3tag_LIBS
789
opus_CFLAGS
790
opus_LIBS
791
X11_CFLAGS
792
X11_LIBS'
793

    
794

    
795
# Initialize some variables set by options.
796
ac_init_help=
797
ac_init_version=false
798
ac_unrecognized_opts=
799
ac_unrecognized_sep=
800
# The variables have the same names as the options, with
801
# dashes changed to underlines.
802
cache_file=/dev/null
803
exec_prefix=NONE
804
no_create=
805
no_recursion=
806
prefix=NONE
807
program_prefix=NONE
808
program_suffix=NONE
809
program_transform_name=s,x,x,
810
silent=
811
site=
812
srcdir=
813
verbose=
814
x_includes=NONE
815
x_libraries=NONE
816

    
817
# Installation directory options.
818
# These are left unexpanded so users can "make install exec_prefix=/foo"
819
# and all the variables that are supposed to be based on exec_prefix
820
# by default will actually change.
821
# Use braces instead of parens because sh, perl, etc. also accept them.
822
# (The list follows the same order as the GNU Coding Standards.)
823
bindir='${exec_prefix}/bin'
824
sbindir='${exec_prefix}/sbin'
825
libexecdir='${exec_prefix}/libexec'
826
datarootdir='${prefix}/share'
827
datadir='${datarootdir}'
828
sysconfdir='${prefix}/etc'
829
sharedstatedir='${prefix}/com'
830
localstatedir='${prefix}/var'
831
includedir='${prefix}/include'
832
oldincludedir='/usr/include'
833
docdir='${datarootdir}/doc/${PACKAGE}'
834
infodir='${datarootdir}/info'
835
htmldir='${docdir}'
836
dvidir='${docdir}'
837
pdfdir='${docdir}'
838
psdir='${docdir}'
839
libdir='${exec_prefix}/lib'
840
localedir='${datarootdir}/locale'
841
mandir='${datarootdir}/man'
842

    
843
ac_prev=
844
ac_dashdash=
845
for ac_option
846
do
847
  # If the previous option needs an argument, assign it.
848
  if test -n "$ac_prev"; then
849
    eval $ac_prev=\$ac_option
850
    ac_prev=
851
    continue
852
  fi
853

    
854
  case $ac_option in
855
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
856
  *=)   ac_optarg= ;;
857
  *)    ac_optarg=yes ;;
858
  esac
859

    
860
  # Accept the important Cygnus configure options, so we can diagnose typos.
861

    
862
  case $ac_dashdash$ac_option in
863
  --)
864
    ac_dashdash=yes ;;
865

    
866
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
867
    ac_prev=bindir ;;
868
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
869
    bindir=$ac_optarg ;;
870

    
871
  -build | --build | --buil | --bui | --bu)
872
    ac_prev=build_alias ;;
873
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
874
    build_alias=$ac_optarg ;;
875

    
876
  -cache-file | --cache-file | --cache-fil | --cache-fi \
877
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
878
    ac_prev=cache_file ;;
879
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
880
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
881
    cache_file=$ac_optarg ;;
882

    
883
  --config-cache | -C)
884
    cache_file=config.cache ;;
885

    
886
  -datadir | --datadir | --datadi | --datad)
887
    ac_prev=datadir ;;
888
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
889
    datadir=$ac_optarg ;;
890

    
891
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
892
  | --dataroo | --dataro | --datar)
893
    ac_prev=datarootdir ;;
894
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
895
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
896
    datarootdir=$ac_optarg ;;
897

    
898
  -disable-* | --disable-*)
899
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
900
    # Reject names that are not valid shell variable names.
901
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
902
      as_fn_error $? "invalid feature name: $ac_useropt"
903
    ac_useropt_orig=$ac_useropt
904
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
905
    case $ac_user_opts in
906
      *"
907
"enable_$ac_useropt"
908
"*) ;;
909
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
910
	 ac_unrecognized_sep=', ';;
911
    esac
912
    eval enable_$ac_useropt=no ;;
913

    
914
  -docdir | --docdir | --docdi | --doc | --do)
915
    ac_prev=docdir ;;
916
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
917
    docdir=$ac_optarg ;;
918

    
919
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
920
    ac_prev=dvidir ;;
921
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
922
    dvidir=$ac_optarg ;;
923

    
924
  -enable-* | --enable-*)
925
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
926
    # Reject names that are not valid shell variable names.
927
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928
      as_fn_error $? "invalid feature name: $ac_useropt"
929
    ac_useropt_orig=$ac_useropt
930
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931
    case $ac_user_opts in
932
      *"
933
"enable_$ac_useropt"
934
"*) ;;
935
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
936
	 ac_unrecognized_sep=', ';;
937
    esac
938
    eval enable_$ac_useropt=\$ac_optarg ;;
939

    
940
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
941
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
942
  | --exec | --exe | --ex)
943
    ac_prev=exec_prefix ;;
944
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
945
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
946
  | --exec=* | --exe=* | --ex=*)
947
    exec_prefix=$ac_optarg ;;
948

    
949
  -gas | --gas | --ga | --g)
950
    # Obsolete; use --with-gas.
951
    with_gas=yes ;;
952

    
953
  -help | --help | --hel | --he | -h)
954
    ac_init_help=long ;;
955
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
956
    ac_init_help=recursive ;;
957
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
958
    ac_init_help=short ;;
959

    
960
  -host | --host | --hos | --ho)
961
    ac_prev=host_alias ;;
962
  -host=* | --host=* | --hos=* | --ho=*)
963
    host_alias=$ac_optarg ;;
964

    
965
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
966
    ac_prev=htmldir ;;
967
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
968
  | --ht=*)
969
    htmldir=$ac_optarg ;;
970

    
971
  -includedir | --includedir | --includedi | --included | --include \
972
  | --includ | --inclu | --incl | --inc)
973
    ac_prev=includedir ;;
974
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
975
  | --includ=* | --inclu=* | --incl=* | --inc=*)
976
    includedir=$ac_optarg ;;
977

    
978
  -infodir | --infodir | --infodi | --infod | --info | --inf)
979
    ac_prev=infodir ;;
980
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
981
    infodir=$ac_optarg ;;
982

    
983
  -libdir | --libdir | --libdi | --libd)
984
    ac_prev=libdir ;;
985
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
986
    libdir=$ac_optarg ;;
987

    
988
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
989
  | --libexe | --libex | --libe)
990
    ac_prev=libexecdir ;;
991
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
992
  | --libexe=* | --libex=* | --libe=*)
993
    libexecdir=$ac_optarg ;;
994

    
995
  -localedir | --localedir | --localedi | --localed | --locale)
996
    ac_prev=localedir ;;
997
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
998
    localedir=$ac_optarg ;;
999

    
1000
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1001
  | --localstate | --localstat | --localsta | --localst | --locals)
1002
    ac_prev=localstatedir ;;
1003
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1004
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1005
    localstatedir=$ac_optarg ;;
1006

    
1007
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1008
    ac_prev=mandir ;;
1009
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1010
    mandir=$ac_optarg ;;
1011

    
1012
  -nfp | --nfp | --nf)
1013
    # Obsolete; use --without-fp.
1014
    with_fp=no ;;
1015

    
1016
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1017
  | --no-cr | --no-c | -n)
1018
    no_create=yes ;;
1019

    
1020
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1021
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1022
    no_recursion=yes ;;
1023

    
1024
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1025
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1026
  | --oldin | --oldi | --old | --ol | --o)
1027
    ac_prev=oldincludedir ;;
1028
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1029
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1030
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1031
    oldincludedir=$ac_optarg ;;
1032

    
1033
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1034
    ac_prev=prefix ;;
1035
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1036
    prefix=$ac_optarg ;;
1037

    
1038
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1039
  | --program-pre | --program-pr | --program-p)
1040
    ac_prev=program_prefix ;;
1041
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1042
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1043
    program_prefix=$ac_optarg ;;
1044

    
1045
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1046
  | --program-suf | --program-su | --program-s)
1047
    ac_prev=program_suffix ;;
1048
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1049
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1050
    program_suffix=$ac_optarg ;;
1051

    
1052
  -program-transform-name | --program-transform-name \
1053
  | --program-transform-nam | --program-transform-na \
1054
  | --program-transform-n | --program-transform- \
1055
  | --program-transform | --program-transfor \
1056
  | --program-transfo | --program-transf \
1057
  | --program-trans | --program-tran \
1058
  | --progr-tra | --program-tr | --program-t)
1059
    ac_prev=program_transform_name ;;
1060
  -program-transform-name=* | --program-transform-name=* \
1061
  | --program-transform-nam=* | --program-transform-na=* \
1062
  | --program-transform-n=* | --program-transform-=* \
1063
  | --program-transform=* | --program-transfor=* \
1064
  | --program-transfo=* | --program-transf=* \
1065
  | --program-trans=* | --program-tran=* \
1066
  | --progr-tra=* | --program-tr=* | --program-t=*)
1067
    program_transform_name=$ac_optarg ;;
1068

    
1069
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1070
    ac_prev=pdfdir ;;
1071
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1072
    pdfdir=$ac_optarg ;;
1073

    
1074
  -psdir | --psdir | --psdi | --psd | --ps)
1075
    ac_prev=psdir ;;
1076
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1077
    psdir=$ac_optarg ;;
1078

    
1079
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1080
  | -silent | --silent | --silen | --sile | --sil)
1081
    silent=yes ;;
1082

    
1083
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1084
    ac_prev=sbindir ;;
1085
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1086
  | --sbi=* | --sb=*)
1087
    sbindir=$ac_optarg ;;
1088

    
1089
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1090
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1091
  | --sharedst | --shareds | --shared | --share | --shar \
1092
  | --sha | --sh)
1093
    ac_prev=sharedstatedir ;;
1094
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1095
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1096
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1097
  | --sha=* | --sh=*)
1098
    sharedstatedir=$ac_optarg ;;
1099

    
1100
  -site | --site | --sit)
1101
    ac_prev=site ;;
1102
  -site=* | --site=* | --sit=*)
1103
    site=$ac_optarg ;;
1104

    
1105
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1106
    ac_prev=srcdir ;;
1107
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1108
    srcdir=$ac_optarg ;;
1109

    
1110
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1111
  | --syscon | --sysco | --sysc | --sys | --sy)
1112
    ac_prev=sysconfdir ;;
1113
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1114
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1115
    sysconfdir=$ac_optarg ;;
1116

    
1117
  -target | --target | --targe | --targ | --tar | --ta | --t)
1118
    ac_prev=target_alias ;;
1119
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1120
    target_alias=$ac_optarg ;;
1121

    
1122
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1123
    verbose=yes ;;
1124

    
1125
  -version | --version | --versio | --versi | --vers | -V)
1126
    ac_init_version=: ;;
1127

    
1128
  -with-* | --with-*)
1129
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1130
    # Reject names that are not valid shell variable names.
1131
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132
      as_fn_error $? "invalid package name: $ac_useropt"
1133
    ac_useropt_orig=$ac_useropt
1134
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135
    case $ac_user_opts in
1136
      *"
1137
"with_$ac_useropt"
1138
"*) ;;
1139
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1140
	 ac_unrecognized_sep=', ';;
1141
    esac
1142
    eval with_$ac_useropt=\$ac_optarg ;;
1143

    
1144
  -without-* | --without-*)
1145
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1146
    # Reject names that are not valid shell variable names.
1147
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148
      as_fn_error $? "invalid package name: $ac_useropt"
1149
    ac_useropt_orig=$ac_useropt
1150
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151
    case $ac_user_opts in
1152
      *"
1153
"with_$ac_useropt"
1154
"*) ;;
1155
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1156
	 ac_unrecognized_sep=', ';;
1157
    esac
1158
    eval with_$ac_useropt=no ;;
1159

    
1160
  --x)
1161
    # Obsolete; use --with-x.
1162
    with_x=yes ;;
1163

    
1164
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1165
  | --x-incl | --x-inc | --x-in | --x-i)
1166
    ac_prev=x_includes ;;
1167
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1168
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1169
    x_includes=$ac_optarg ;;
1170

    
1171
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1172
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1173
    ac_prev=x_libraries ;;
1174
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1175
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1176
    x_libraries=$ac_optarg ;;
1177

    
1178
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1179
Try \`$0 --help' for more information"
1180
    ;;
1181

    
1182
  *=*)
1183
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1184
    # Reject names that are not valid shell variable names.
1185
    case $ac_envvar in #(
1186
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1187
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1188
    esac
1189
    eval $ac_envvar=\$ac_optarg
1190
    export $ac_envvar ;;
1191

    
1192
  *)
1193
    # FIXME: should be removed in autoconf 3.0.
1194
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1195
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1196
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1197
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1198
    ;;
1199

    
1200
  esac
1201
done
1202

    
1203
if test -n "$ac_prev"; then
1204
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1205
  as_fn_error $? "missing argument to $ac_option"
1206
fi
1207

    
1208
if test -n "$ac_unrecognized_opts"; then
1209
  case $enable_option_checking in
1210
    no) ;;
1211
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1212
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1213
  esac
1214
fi
1215

    
1216
# Check all directory arguments for consistency.
1217
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1218
		datadir sysconfdir sharedstatedir localstatedir includedir \
1219
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1220
		libdir localedir mandir
1221
do
1222
  eval ac_val=\$$ac_var
1223
  # Remove trailing slashes.
1224
  case $ac_val in
1225
    */ )
1226
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1227
      eval $ac_var=\$ac_val;;
1228
  esac
1229
  # Be sure to have absolute directory names.
1230
  case $ac_val in
1231
    [\\/$]* | ?:[\\/]* )  continue;;
1232
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1233
  esac
1234
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1235
done
1236

    
1237
# There might be people who depend on the old broken behavior: `$host'
1238
# used to hold the argument of --host etc.
1239
# FIXME: To remove some day.
1240
build=$build_alias
1241
host=$host_alias
1242
target=$target_alias
1243

    
1244
# FIXME: To remove some day.
1245
if test "x$host_alias" != x; then
1246
  if test "x$build_alias" = x; then
1247
    cross_compiling=maybe
1248
  elif test "x$build_alias" != "x$host_alias"; then
1249
    cross_compiling=yes
1250
  fi
1251
fi
1252

    
1253
ac_tool_prefix=
1254
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1255

    
1256
test "$silent" = yes && exec 6>/dev/null
1257

    
1258

    
1259
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1260
ac_ls_di=`ls -di .` &&
1261
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1262
  as_fn_error $? "working directory cannot be determined"
1263
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1264
  as_fn_error $? "pwd does not report name of working directory"
1265

    
1266

    
1267
# Find the source files, if location was not specified.
1268
if test -z "$srcdir"; then
1269
  ac_srcdir_defaulted=yes
1270
  # Try the directory containing this script, then the parent directory.
1271
  ac_confdir=`$as_dirname -- "$as_myself" ||
1272
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1273
	 X"$as_myself" : 'X\(//\)[^/]' \| \
1274
	 X"$as_myself" : 'X\(//\)$' \| \
1275
	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1276
$as_echo X"$as_myself" |
1277
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1278
	    s//\1/
1279
	    q
1280
	  }
1281
	  /^X\(\/\/\)[^/].*/{
1282
	    s//\1/
1283
	    q
1284
	  }
1285
	  /^X\(\/\/\)$/{
1286
	    s//\1/
1287
	    q
1288
	  }
1289
	  /^X\(\/\).*/{
1290
	    s//\1/
1291
	    q
1292
	  }
1293
	  s/.*/./; q'`
1294
  srcdir=$ac_confdir
1295
  if test ! -r "$srcdir/$ac_unique_file"; then
1296
    srcdir=..
1297
  fi
1298
else
1299
  ac_srcdir_defaulted=no
1300
fi
1301
if test ! -r "$srcdir/$ac_unique_file"; then
1302
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1303
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1304
fi
1305
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1306
ac_abs_confdir=`(
1307
	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1308
	pwd)`
1309
# When building in place, set srcdir=.
1310
if test "$ac_abs_confdir" = "$ac_pwd"; then
1311
  srcdir=.
1312
fi
1313
# Remove unnecessary trailing slashes from srcdir.
1314
# Double slashes in file names in object file debugging info
1315
# mess up M-x gdb in Emacs.
1316
case $srcdir in
1317
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1318
esac
1319
for ac_var in $ac_precious_vars; do
1320
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1321
  eval ac_env_${ac_var}_value=\$${ac_var}
1322
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1323
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1324
done
1325

    
1326
#
1327
# Report the --help message.
1328
#
1329
if test "$ac_init_help" = "long"; then
1330
  # Omit some internal or obsolete options to make the list less imposing.
1331
  # This message is too long to be a string in the A/UX 3.1 sh.
1332
  cat <<_ACEOF
1333
\`configure' configures this package to adapt to many kinds of systems.
1334

    
1335
Usage: $0 [OPTION]... [VAR=VALUE]...
1336

    
1337
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1338
VAR=VALUE.  See below for descriptions of some of the useful variables.
1339

    
1340
Defaults for the options are specified in brackets.
1341

    
1342
Configuration:
1343
  -h, --help              display this help and exit
1344
      --help=short        display options specific to this package
1345
      --help=recursive    display the short help of all the included packages
1346
  -V, --version           display version information and exit
1347
  -q, --quiet, --silent   do not print \`checking ...' messages
1348
      --cache-file=FILE   cache test results in FILE [disabled]
1349
  -C, --config-cache      alias for \`--cache-file=config.cache'
1350
  -n, --no-create         do not create output files
1351
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1352

    
1353
Installation directories:
1354
  --prefix=PREFIX         install architecture-independent files in PREFIX
1355
                          [$ac_default_prefix]
1356
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1357
                          [PREFIX]
1358

    
1359
By default, \`make install' will install all the files in
1360
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1361
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1362
for instance \`--prefix=\$HOME'.
1363

    
1364
For better control, use the options below.
1365

    
1366
Fine tuning of the installation directories:
1367
  --bindir=DIR            user executables [EPREFIX/bin]
1368
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1369
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1370
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1371
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1372
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1373
  --libdir=DIR            object code libraries [EPREFIX/lib]
1374
  --includedir=DIR        C header files [PREFIX/include]
1375
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1376
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1377
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1378
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1379
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1380
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1381
  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1382
  --htmldir=DIR           html documentation [DOCDIR]
1383
  --dvidir=DIR            dvi documentation [DOCDIR]
1384
  --pdfdir=DIR            pdf documentation [DOCDIR]
1385
  --psdir=DIR             ps documentation [DOCDIR]
1386
_ACEOF
1387

    
1388
  cat <<\_ACEOF
1389
_ACEOF
1390
fi
1391

    
1392
if test -n "$ac_init_help"; then
1393

    
1394
  cat <<\_ACEOF
1395

    
1396
Optional Features:
1397
  --disable-option-checking  ignore unrecognized --enable/--with options
1398
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1399
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1400
  --enable-debug          enable debug support [default=no]
1401

    
1402
Some influential environment variables:
1403
  CC          C compiler command
1404
  CFLAGS      C compiler flags
1405
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1406
              nonstandard directory <lib dir>
1407
  LIBS        libraries to pass to the linker, e.g. -l<library>
1408
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1409
              you have headers in a nonstandard directory <include dir>
1410
  CXX         C++ compiler command
1411
  CXXFLAGS    C++ compiler flags
1412
  CXXCPP      C++ preprocessor
1413
  PKG_CONFIG  path to pkg-config utility
1414
  PKG_CONFIG_PATH
1415
              directories to add to pkg-config's search path
1416
  PKG_CONFIG_LIBDIR
1417
              path overriding pkg-config's built-in search path
1418
  bz2_CFLAGS  C compiler flags for bz2, overriding pkg-config
1419
  bz2_LIBS    linker flags for bz2, overriding pkg-config
1420
  fftw3_CFLAGS
1421
              C compiler flags for fftw3, overriding pkg-config
1422
  fftw3_LIBS  linker flags for fftw3, overriding pkg-config
1423
  fftw3f_CFLAGS
1424
              C compiler flags for fftw3f, overriding pkg-config
1425
  fftw3f_LIBS linker flags for fftw3f, overriding pkg-config
1426
  sndfile_CFLAGS
1427
              C compiler flags for sndfile, overriding pkg-config
1428
  sndfile_LIBS
1429
              linker flags for sndfile, overriding pkg-config
1430
  samplerate_CFLAGS
1431
              C compiler flags for samplerate, overriding pkg-config
1432
  samplerate_LIBS
1433
              linker flags for samplerate, overriding pkg-config
1434
  rubberband_CFLAGS
1435
              C compiler flags for rubberband, overriding pkg-config
1436
  rubberband_LIBS
1437
              linker flags for rubberband, overriding pkg-config
1438
  sord_CFLAGS C compiler flags for sord, overriding pkg-config
1439
  sord_LIBS   linker flags for sord, overriding pkg-config
1440
  serd_CFLAGS C compiler flags for serd, overriding pkg-config
1441
  serd_LIBS   linker flags for serd, overriding pkg-config
1442
  capnp_CFLAGS
1443
              C compiler flags for capnp, overriding pkg-config
1444
  capnp_LIBS  linker flags for capnp, overriding pkg-config
1445
  liblo_CFLAGS
1446
              C compiler flags for liblo, overriding pkg-config
1447
  liblo_LIBS  linker flags for liblo, overriding pkg-config
1448
  portaudio_2_0_CFLAGS
1449
              C compiler flags for portaudio_2_0, overriding pkg-config
1450
  portaudio_2_0_LIBS
1451
              linker flags for portaudio_2_0, overriding pkg-config
1452
  JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
1453
  JACK_LIBS   linker flags for JACK, overriding pkg-config
1454
  libpulse_CFLAGS
1455
              C compiler flags for libpulse, overriding pkg-config
1456
  libpulse_LIBS
1457
              linker flags for libpulse, overriding pkg-config
1458
  lrdf_CFLAGS C compiler flags for lrdf, overriding pkg-config
1459
  lrdf_LIBS   linker flags for lrdf, overriding pkg-config
1460
  oggz_CFLAGS C compiler flags for oggz, overriding pkg-config
1461
  oggz_LIBS   linker flags for oggz, overriding pkg-config
1462
  fishsound_CFLAGS
1463
              C compiler flags for fishsound, overriding pkg-config
1464
  fishsound_LIBS
1465
              linker flags for fishsound, overriding pkg-config
1466
  mad_CFLAGS  C compiler flags for mad, overriding pkg-config
1467
  mad_LIBS    linker flags for mad, overriding pkg-config
1468
  id3tag_CFLAGS
1469
              C compiler flags for id3tag, overriding pkg-config
1470
  id3tag_LIBS linker flags for id3tag, overriding pkg-config
1471
  opus_CFLAGS C compiler flags for opus, overriding pkg-config
1472
  opus_LIBS   linker flags for opus, overriding pkg-config
1473
  X11_CFLAGS  C compiler flags for X11, overriding pkg-config
1474
  X11_LIBS    linker flags for X11, overriding pkg-config
1475

    
1476
Use these variables to override the choices made by `configure' or to help
1477
it to find libraries and programs with nonstandard names/locations.
1478

    
1479
Report bugs to the package provider.
1480
_ACEOF
1481
ac_status=$?
1482
fi
1483

    
1484
if test "$ac_init_help" = "recursive"; then
1485
  # If there are subdirs, report their specific --help.
1486
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1487
    test -d "$ac_dir" ||
1488
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1489
      continue
1490
    ac_builddir=.
1491

    
1492
case "$ac_dir" in
1493
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494
*)
1495
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1496
  # A ".." for each directory in $ac_dir_suffix.
1497
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1498
  case $ac_top_builddir_sub in
1499
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1501
  esac ;;
1502
esac
1503
ac_abs_top_builddir=$ac_pwd
1504
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1505
# for backward compatibility:
1506
ac_top_builddir=$ac_top_build_prefix
1507

    
1508
case $srcdir in
1509
  .)  # We are building in place.
1510
    ac_srcdir=.
1511
    ac_top_srcdir=$ac_top_builddir_sub
1512
    ac_abs_top_srcdir=$ac_pwd ;;
1513
  [\\/]* | ?:[\\/]* )  # Absolute name.
1514
    ac_srcdir=$srcdir$ac_dir_suffix;
1515
    ac_top_srcdir=$srcdir
1516
    ac_abs_top_srcdir=$srcdir ;;
1517
  *) # Relative name.
1518
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1519
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1520
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1521
esac
1522
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1523

    
1524
    cd "$ac_dir" || { ac_status=$?; continue; }
1525
    # Check for guested configure.
1526
    if test -f "$ac_srcdir/configure.gnu"; then
1527
      echo &&
1528
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1529
    elif test -f "$ac_srcdir/configure"; then
1530
      echo &&
1531
      $SHELL "$ac_srcdir/configure" --help=recursive
1532
    else
1533
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1534
    fi || ac_status=$?
1535
    cd "$ac_pwd" || { ac_status=$?; break; }
1536
  done
1537
fi
1538

    
1539
test -n "$ac_init_help" && exit $ac_status
1540
if $ac_init_version; then
1541
  cat <<\_ACEOF
1542
configure
1543
generated by GNU Autoconf 2.69
1544

    
1545
Copyright (C) 2012 Free Software Foundation, Inc.
1546
This configure script is free software; the Free Software Foundation
1547
gives unlimited permission to copy, distribute and modify it.
1548
_ACEOF
1549
  exit
1550
fi
1551

    
1552
## ------------------------ ##
1553
## Autoconf initialization. ##
1554
## ------------------------ ##
1555

    
1556
# ac_fn_c_try_compile LINENO
1557
# --------------------------
1558
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1559
ac_fn_c_try_compile ()
1560
{
1561
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1562
  rm -f conftest.$ac_objext
1563
  if { { ac_try="$ac_compile"
1564
case "(($ac_try" in
1565
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1566
  *) ac_try_echo=$ac_try;;
1567
esac
1568
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1569
$as_echo "$ac_try_echo"; } >&5
1570
  (eval "$ac_compile") 2>conftest.err
1571
  ac_status=$?
1572
  if test -s conftest.err; then
1573
    grep -v '^ *+' conftest.err >conftest.er1
1574
    cat conftest.er1 >&5
1575
    mv -f conftest.er1 conftest.err
1576
  fi
1577
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1578
  test $ac_status = 0; } && {
1579
	 test -z "$ac_c_werror_flag" ||
1580
	 test ! -s conftest.err
1581
       } && test -s conftest.$ac_objext; then :
1582
  ac_retval=0
1583
else
1584
  $as_echo "$as_me: failed program was:" >&5
1585
sed 's/^/| /' conftest.$ac_ext >&5
1586

    
1587
	ac_retval=1
1588
fi
1589
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1590
  as_fn_set_status $ac_retval
1591

    
1592
} # ac_fn_c_try_compile
1593

    
1594
# ac_fn_cxx_try_compile LINENO
1595
# ----------------------------
1596
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1597
ac_fn_cxx_try_compile ()
1598
{
1599
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600
  rm -f conftest.$ac_objext
1601
  if { { ac_try="$ac_compile"
1602
case "(($ac_try" in
1603
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604
  *) ac_try_echo=$ac_try;;
1605
esac
1606
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607
$as_echo "$ac_try_echo"; } >&5
1608
  (eval "$ac_compile") 2>conftest.err
1609
  ac_status=$?
1610
  if test -s conftest.err; then
1611
    grep -v '^ *+' conftest.err >conftest.er1
1612
    cat conftest.er1 >&5
1613
    mv -f conftest.er1 conftest.err
1614
  fi
1615
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616
  test $ac_status = 0; } && {
1617
	 test -z "$ac_cxx_werror_flag" ||
1618
	 test ! -s conftest.err
1619
       } && test -s conftest.$ac_objext; then :
1620
  ac_retval=0
1621
else
1622
  $as_echo "$as_me: failed program was:" >&5
1623
sed 's/^/| /' conftest.$ac_ext >&5
1624

    
1625
	ac_retval=1
1626
fi
1627
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1628
  as_fn_set_status $ac_retval
1629

    
1630
} # ac_fn_cxx_try_compile
1631

    
1632
# ac_fn_cxx_try_cpp LINENO
1633
# ------------------------
1634
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1635
ac_fn_cxx_try_cpp ()
1636
{
1637
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1639
case "(($ac_try" in
1640
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641
  *) ac_try_echo=$ac_try;;
1642
esac
1643
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644
$as_echo "$ac_try_echo"; } >&5
1645
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1646
  ac_status=$?
1647
  if test -s conftest.err; then
1648
    grep -v '^ *+' conftest.err >conftest.er1
1649
    cat conftest.er1 >&5
1650
    mv -f conftest.er1 conftest.err
1651
  fi
1652
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1653
  test $ac_status = 0; } > conftest.i && {
1654
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1655
	 test ! -s conftest.err
1656
       }; then :
1657
  ac_retval=0
1658
else
1659
  $as_echo "$as_me: failed program was:" >&5
1660
sed 's/^/| /' conftest.$ac_ext >&5
1661

    
1662
    ac_retval=1
1663
fi
1664
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1665
  as_fn_set_status $ac_retval
1666

    
1667
} # ac_fn_cxx_try_cpp
1668

    
1669
# ac_fn_cxx_try_run LINENO
1670
# ------------------------
1671
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1672
# that executables *can* be run.
1673
ac_fn_cxx_try_run ()
1674
{
1675
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676
  if { { ac_try="$ac_link"
1677
case "(($ac_try" in
1678
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679
  *) ac_try_echo=$ac_try;;
1680
esac
1681
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682
$as_echo "$ac_try_echo"; } >&5
1683
  (eval "$ac_link") 2>&5
1684
  ac_status=$?
1685
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1687
  { { case "(($ac_try" in
1688
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689
  *) ac_try_echo=$ac_try;;
1690
esac
1691
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692
$as_echo "$ac_try_echo"; } >&5
1693
  (eval "$ac_try") 2>&5
1694
  ac_status=$?
1695
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696
  test $ac_status = 0; }; }; then :
1697
  ac_retval=0
1698
else
1699
  $as_echo "$as_me: program exited with status $ac_status" >&5
1700
       $as_echo "$as_me: failed program was:" >&5
1701
sed 's/^/| /' conftest.$ac_ext >&5
1702

    
1703
       ac_retval=$ac_status
1704
fi
1705
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1706
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1707
  as_fn_set_status $ac_retval
1708

    
1709
} # ac_fn_cxx_try_run
1710

    
1711
# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1712
# ---------------------------------------------------------
1713
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1714
# the include files in INCLUDES and setting the cache variable VAR
1715
# accordingly.
1716
ac_fn_cxx_check_header_mongrel ()
1717
{
1718
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719
  if eval \${$3+:} false; then :
1720
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1721
$as_echo_n "checking for $2... " >&6; }
1722
if eval \${$3+:} false; then :
1723
  $as_echo_n "(cached) " >&6
1724
fi
1725
eval ac_res=\$$3
1726
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727
$as_echo "$ac_res" >&6; }
1728
else
1729
  # Is the header compilable?
1730
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1731
$as_echo_n "checking $2 usability... " >&6; }
1732
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1733
/* end confdefs.h.  */
1734
$4
1735
#include <$2>
1736
_ACEOF
1737
if ac_fn_cxx_try_compile "$LINENO"; then :
1738
  ac_header_compiler=yes
1739
else
1740
  ac_header_compiler=no
1741
fi
1742
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1743
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1744
$as_echo "$ac_header_compiler" >&6; }
1745

    
1746
# Is the header present?
1747
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1748
$as_echo_n "checking $2 presence... " >&6; }
1749
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750
/* end confdefs.h.  */
1751
#include <$2>
1752
_ACEOF
1753
if ac_fn_cxx_try_cpp "$LINENO"; then :
1754
  ac_header_preproc=yes
1755
else
1756
  ac_header_preproc=no
1757
fi
1758
rm -f conftest.err conftest.i conftest.$ac_ext
1759
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1760
$as_echo "$ac_header_preproc" >&6; }
1761

    
1762
# So?  What about this header?
1763
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1764
  yes:no: )
1765
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1766
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1767
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1768
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1769
    ;;
1770
  no:yes:* )
1771
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1772
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1773
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1774
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1775
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1776
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1777
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1778
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1779
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1780
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1781
    ;;
1782
esac
1783
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784
$as_echo_n "checking for $2... " >&6; }
1785
if eval \${$3+:} false; then :
1786
  $as_echo_n "(cached) " >&6
1787
else
1788
  eval "$3=\$ac_header_compiler"
1789
fi
1790
eval ac_res=\$$3
1791
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792
$as_echo "$ac_res" >&6; }
1793
fi
1794
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795

    
1796
} # ac_fn_cxx_check_header_mongrel
1797

    
1798
# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1799
# ---------------------------------------------------------
1800
# Tests whether HEADER exists and can be compiled using the include files in
1801
# INCLUDES, setting the cache variable VAR accordingly.
1802
ac_fn_cxx_check_header_compile ()
1803
{
1804
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1806
$as_echo_n "checking for $2... " >&6; }
1807
if eval \${$3+:} false; then :
1808
  $as_echo_n "(cached) " >&6
1809
else
1810
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811
/* end confdefs.h.  */
1812
$4
1813
#include <$2>
1814
_ACEOF
1815
if ac_fn_cxx_try_compile "$LINENO"; then :
1816
  eval "$3=yes"
1817
else
1818
  eval "$3=no"
1819
fi
1820
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1821
fi
1822
eval ac_res=\$$3
1823
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1824
$as_echo "$ac_res" >&6; }
1825
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826

    
1827
} # ac_fn_cxx_check_header_compile
1828

    
1829
# ac_fn_cxx_try_link LINENO
1830
# -------------------------
1831
# Try to link conftest.$ac_ext, and return whether this succeeded.
1832
ac_fn_cxx_try_link ()
1833
{
1834
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835
  rm -f conftest.$ac_objext conftest$ac_exeext
1836
  if { { ac_try="$ac_link"
1837
case "(($ac_try" in
1838
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839
  *) ac_try_echo=$ac_try;;
1840
esac
1841
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842
$as_echo "$ac_try_echo"; } >&5
1843
  (eval "$ac_link") 2>conftest.err
1844
  ac_status=$?
1845
  if test -s conftest.err; then
1846
    grep -v '^ *+' conftest.err >conftest.er1
1847
    cat conftest.er1 >&5
1848
    mv -f conftest.er1 conftest.err
1849
  fi
1850
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851
  test $ac_status = 0; } && {
1852
	 test -z "$ac_cxx_werror_flag" ||
1853
	 test ! -s conftest.err
1854
       } && test -s conftest$ac_exeext && {
1855
	 test "$cross_compiling" = yes ||
1856
	 test -x conftest$ac_exeext
1857
       }; then :
1858
  ac_retval=0
1859
else
1860
  $as_echo "$as_me: failed program was:" >&5
1861
sed 's/^/| /' conftest.$ac_ext >&5
1862

    
1863
	ac_retval=1
1864
fi
1865
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1866
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1867
  # interfere with the next link command; also delete a directory that is
1868
  # left behind by Apple's compiler.  We do this before executing the actions.
1869
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1870
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871
  as_fn_set_status $ac_retval
1872

    
1873
} # ac_fn_cxx_try_link
1874
cat >config.log <<_ACEOF
1875
This file contains any messages produced by compilers while
1876
running configure, to aid debugging if configure makes a mistake.
1877

    
1878
It was created by $as_me, which was
1879
generated by GNU Autoconf 2.69.  Invocation command line was
1880

    
1881
  $ $0 $@
1882

    
1883
_ACEOF
1884
exec 5>>config.log
1885
{
1886
cat <<_ASUNAME
1887
## --------- ##
1888
## Platform. ##
1889
## --------- ##
1890

    
1891
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1892
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1893
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1894
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1895
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1896

    
1897
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1898
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1899

    
1900
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1901
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1902
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1903
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1904
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1905
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1906
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1907

    
1908
_ASUNAME
1909

    
1910
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1911
for as_dir in $PATH
1912
do
1913
  IFS=$as_save_IFS
1914
  test -z "$as_dir" && as_dir=.
1915
    $as_echo "PATH: $as_dir"
1916
  done
1917
IFS=$as_save_IFS
1918

    
1919
} >&5
1920

    
1921
cat >&5 <<_ACEOF
1922

    
1923

    
1924
## ----------- ##
1925
## Core tests. ##
1926
## ----------- ##
1927

    
1928
_ACEOF
1929

    
1930

    
1931
# Keep a trace of the command line.
1932
# Strip out --no-create and --no-recursion so they do not pile up.
1933
# Strip out --silent because we don't want to record it for future runs.
1934
# Also quote any args containing shell meta-characters.
1935
# Make two passes to allow for proper duplicate-argument suppression.
1936
ac_configure_args=
1937
ac_configure_args0=
1938
ac_configure_args1=
1939
ac_must_keep_next=false
1940
for ac_pass in 1 2
1941
do
1942
  for ac_arg
1943
  do
1944
    case $ac_arg in
1945
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1946
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1947
    | -silent | --silent | --silen | --sile | --sil)
1948
      continue ;;
1949
    *\'*)
1950
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1951
    esac
1952
    case $ac_pass in
1953
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1954
    2)
1955
      as_fn_append ac_configure_args1 " '$ac_arg'"
1956
      if test $ac_must_keep_next = true; then
1957
	ac_must_keep_next=false # Got value, back to normal.
1958
      else
1959
	case $ac_arg in
1960
	  *=* | --config-cache | -C | -disable-* | --disable-* \
1961
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1962
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1963
	  | -with-* | --with-* | -without-* | --without-* | --x)
1964
	    case "$ac_configure_args0 " in
1965
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1966
	    esac
1967
	    ;;
1968
	  -* ) ac_must_keep_next=true ;;
1969
	esac
1970
      fi
1971
      as_fn_append ac_configure_args " '$ac_arg'"
1972
      ;;
1973
    esac
1974
  done
1975
done
1976
{ ac_configure_args0=; unset ac_configure_args0;}
1977
{ ac_configure_args1=; unset ac_configure_args1;}
1978

    
1979
# When interrupted or exit'd, cleanup temporary files, and complete
1980
# config.log.  We remove comments because anyway the quotes in there
1981
# would cause problems or look ugly.
1982
# WARNING: Use '\'' to represent an apostrophe within the trap.
1983
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1984
trap 'exit_status=$?
1985
  # Save into config.log some information that might help in debugging.
1986
  {
1987
    echo
1988

    
1989
    $as_echo "## ---------------- ##
1990
## Cache variables. ##
1991
## ---------------- ##"
1992
    echo
1993
    # The following way of writing the cache mishandles newlines in values,
1994
(
1995
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1996
    eval ac_val=\$$ac_var
1997
    case $ac_val in #(
1998
    *${as_nl}*)
1999
      case $ac_var in #(
2000
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2001
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2002
      esac
2003
      case $ac_var in #(
2004
      _ | IFS | as_nl) ;; #(
2005
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2006
      *) { eval $ac_var=; unset $ac_var;} ;;
2007
      esac ;;
2008
    esac
2009
  done
2010
  (set) 2>&1 |
2011
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2012
    *${as_nl}ac_space=\ *)
2013
      sed -n \
2014
	"s/'\''/'\''\\\\'\'''\''/g;
2015
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2016
      ;; #(
2017
    *)
2018
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2019
      ;;
2020
    esac |
2021
    sort
2022
)
2023
    echo
2024

    
2025
    $as_echo "## ----------------- ##
2026
## Output variables. ##
2027
## ----------------- ##"
2028
    echo
2029
    for ac_var in $ac_subst_vars
2030
    do
2031
      eval ac_val=\$$ac_var
2032
      case $ac_val in
2033
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2034
      esac
2035
      $as_echo "$ac_var='\''$ac_val'\''"
2036
    done | sort
2037
    echo
2038

    
2039
    if test -n "$ac_subst_files"; then
2040
      $as_echo "## ------------------- ##
2041
## File substitutions. ##
2042
## ------------------- ##"
2043
      echo
2044
      for ac_var in $ac_subst_files
2045
      do
2046
	eval ac_val=\$$ac_var
2047
	case $ac_val in
2048
	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2049
	esac
2050
	$as_echo "$ac_var='\''$ac_val'\''"
2051
      done | sort
2052
      echo
2053
    fi
2054

    
2055
    if test -s confdefs.h; then
2056
      $as_echo "## ----------- ##
2057
## confdefs.h. ##
2058
## ----------- ##"
2059
      echo
2060
      cat confdefs.h
2061
      echo
2062
    fi
2063
    test "$ac_signal" != 0 &&
2064
      $as_echo "$as_me: caught signal $ac_signal"
2065
    $as_echo "$as_me: exit $exit_status"
2066
  } >&5
2067
  rm -f core *.core core.conftest.* &&
2068
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2069
    exit $exit_status
2070
' 0
2071
for ac_signal in 1 2 13 15; do
2072
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2073
done
2074
ac_signal=0
2075

    
2076
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2077
rm -f -r conftest* confdefs.h
2078

    
2079
$as_echo "/* confdefs.h */" > confdefs.h
2080

    
2081
# Predefined preprocessor variables.
2082

    
2083
cat >>confdefs.h <<_ACEOF
2084
#define PACKAGE_NAME "$PACKAGE_NAME"
2085
_ACEOF
2086

    
2087
cat >>confdefs.h <<_ACEOF
2088
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2089
_ACEOF
2090

    
2091
cat >>confdefs.h <<_ACEOF
2092
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2093
_ACEOF
2094

    
2095
cat >>confdefs.h <<_ACEOF
2096
#define PACKAGE_STRING "$PACKAGE_STRING"
2097
_ACEOF
2098

    
2099
cat >>confdefs.h <<_ACEOF
2100
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2101
_ACEOF
2102

    
2103
cat >>confdefs.h <<_ACEOF
2104
#define PACKAGE_URL "$PACKAGE_URL"
2105
_ACEOF
2106

    
2107

    
2108
# Let the site file select an alternate cache file if it wants to.
2109
# Prefer an explicitly selected file to automatically selected ones.
2110
ac_site_file1=NONE
2111
ac_site_file2=NONE
2112
if test -n "$CONFIG_SITE"; then
2113
  # We do not want a PATH search for config.site.
2114
  case $CONFIG_SITE in #((
2115
    -*)  ac_site_file1=./$CONFIG_SITE;;
2116
    */*) ac_site_file1=$CONFIG_SITE;;
2117
    *)   ac_site_file1=./$CONFIG_SITE;;
2118
  esac
2119
elif test "x$prefix" != xNONE; then
2120
  ac_site_file1=$prefix/share/config.site
2121
  ac_site_file2=$prefix/etc/config.site
2122
else
2123
  ac_site_file1=$ac_default_prefix/share/config.site
2124
  ac_site_file2=$ac_default_prefix/etc/config.site
2125
fi
2126
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2127
do
2128
  test "x$ac_site_file" = xNONE && continue
2129
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2130
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2131
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2132
    sed 's/^/| /' "$ac_site_file" >&5
2133
    . "$ac_site_file" \
2134
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2135
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2136
as_fn_error $? "failed to load site script $ac_site_file
2137
See \`config.log' for more details" "$LINENO" 5; }
2138
  fi
2139
done
2140

    
2141
if test -r "$cache_file"; then
2142
  # Some versions of bash will fail to source /dev/null (special files
2143
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2144
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2145
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2146
$as_echo "$as_me: loading cache $cache_file" >&6;}
2147
    case $cache_file in
2148
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2149
      *)                      . "./$cache_file";;
2150
    esac
2151
  fi
2152
else
2153
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2154
$as_echo "$as_me: creating cache $cache_file" >&6;}
2155
  >$cache_file
2156
fi
2157

    
2158
# Check that the precious variables saved in the cache have kept the same
2159
# value.
2160
ac_cache_corrupted=false
2161
for ac_var in $ac_precious_vars; do
2162
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2163
  eval ac_new_set=\$ac_env_${ac_var}_set
2164
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2165
  eval ac_new_val=\$ac_env_${ac_var}_value
2166
  case $ac_old_set,$ac_new_set in
2167
    set,)
2168
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2169
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2170
      ac_cache_corrupted=: ;;
2171
    ,set)
2172
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2173
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2174
      ac_cache_corrupted=: ;;
2175
    ,);;
2176
    *)
2177
      if test "x$ac_old_val" != "x$ac_new_val"; then
2178
	# differences in whitespace do not lead to failure.
2179
	ac_old_val_w=`echo x $ac_old_val`
2180
	ac_new_val_w=`echo x $ac_new_val`
2181
	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2182
	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2183
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2184
	  ac_cache_corrupted=:
2185
	else
2186
	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2187
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2188
	  eval $ac_var=\$ac_old_val
2189
	fi
2190
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2191
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2192
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2193
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2194
      fi;;
2195
  esac
2196
  # Pass precious variables to config.status.
2197
  if test "$ac_new_set" = set; then
2198
    case $ac_new_val in
2199
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2200
    *) ac_arg=$ac_var=$ac_new_val ;;
2201
    esac
2202
    case " $ac_configure_args " in
2203
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2204
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2205
    esac
2206
  fi
2207
done
2208
if $ac_cache_corrupted; then
2209
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2210
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2211
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2212
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2213
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2214
fi
2215
## -------------------- ##
2216
## Main body of script. ##
2217
## -------------------- ##
2218

    
2219
ac_ext=c
2220
ac_cpp='$CPP $CPPFLAGS'
2221
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2222
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2223
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2224

    
2225

    
2226

    
2227

    
2228

    
2229
# Autoconf will set CXXFLAGS; we don't usually want it to, because we
2230
# either define our own flags (at least if GCC is in use) or else use
2231
# the user's preferences.  We need to ensure CXXFLAGS is only set if
2232
# the user has expressly set it.  So, save the user's (or empty)
2233
# setting now and restore it after Autoconf has done its bit of
2234
# piddling about.
2235
USER_CXXFLAGS="$CXXFLAGS"
2236

    
2237
# If the user supplied CFLAGS but not CXXFLAGS, use CFLAGS instead
2238
if test x"$USER_CXXFLAGS" = x; then
2239
   if test x"$CFLAGS" != x; then
2240
      USER_CXXFLAGS="$CFLAGS"
2241
   fi
2242
fi
2243

    
2244
ac_ext=cpp
2245
ac_cpp='$CXXCPP $CPPFLAGS'
2246
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2247
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2248
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2249

    
2250

    
2251
ac_ext=c
2252
ac_cpp='$CPP $CPPFLAGS'
2253
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2254
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2255
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2256
if test -n "$ac_tool_prefix"; then
2257
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2258
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2259
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2260
$as_echo_n "checking for $ac_word... " >&6; }
2261
if ${ac_cv_prog_CC+:} false; then :
2262
  $as_echo_n "(cached) " >&6
2263
else
2264
  if test -n "$CC"; then
2265
  ac_cv_prog_CC="$CC" # Let the user override the test.
2266
else
2267
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2268
for as_dir in $PATH
2269
do
2270
  IFS=$as_save_IFS
2271
  test -z "$as_dir" && as_dir=.
2272
    for ac_exec_ext in '' $ac_executable_extensions; do
2273
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2274
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2275
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2276
    break 2
2277
  fi
2278
done
2279
  done
2280
IFS=$as_save_IFS
2281

    
2282
fi
2283
fi
2284
CC=$ac_cv_prog_CC
2285
if test -n "$CC"; then
2286
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2287
$as_echo "$CC" >&6; }
2288
else
2289
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2290
$as_echo "no" >&6; }
2291
fi
2292

    
2293

    
2294
fi
2295
if test -z "$ac_cv_prog_CC"; then
2296
  ac_ct_CC=$CC
2297
  # Extract the first word of "gcc", so it can be a program name with args.
2298
set dummy gcc; ac_word=$2
2299
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2300
$as_echo_n "checking for $ac_word... " >&6; }
2301
if ${ac_cv_prog_ac_ct_CC+:} false; then :
2302
  $as_echo_n "(cached) " >&6
2303
else
2304
  if test -n "$ac_ct_CC"; then
2305
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2306
else
2307
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2308
for as_dir in $PATH
2309
do
2310
  IFS=$as_save_IFS
2311
  test -z "$as_dir" && as_dir=.
2312
    for ac_exec_ext in '' $ac_executable_extensions; do
2313
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2314
    ac_cv_prog_ac_ct_CC="gcc"
2315
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2316
    break 2
2317
  fi
2318
done
2319
  done
2320
IFS=$as_save_IFS
2321

    
2322
fi
2323
fi
2324
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2325
if test -n "$ac_ct_CC"; then
2326
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2327
$as_echo "$ac_ct_CC" >&6; }
2328
else
2329
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2330
$as_echo "no" >&6; }
2331
fi
2332

    
2333
  if test "x$ac_ct_CC" = x; then
2334
    CC=""
2335
  else
2336
    case $cross_compiling:$ac_tool_warned in
2337
yes:)
2338
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2339
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2340
ac_tool_warned=yes ;;
2341
esac
2342
    CC=$ac_ct_CC
2343
  fi
2344
else
2345
  CC="$ac_cv_prog_CC"
2346
fi
2347

    
2348
if test -z "$CC"; then
2349
          if test -n "$ac_tool_prefix"; then
2350
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2351
set dummy ${ac_tool_prefix}cc; ac_word=$2
2352
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2353
$as_echo_n "checking for $ac_word... " >&6; }
2354
if ${ac_cv_prog_CC+:} false; then :
2355
  $as_echo_n "(cached) " >&6
2356
else
2357
  if test -n "$CC"; then
2358
  ac_cv_prog_CC="$CC" # Let the user override the test.
2359
else
2360
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2361
for as_dir in $PATH
2362
do
2363
  IFS=$as_save_IFS
2364
  test -z "$as_dir" && as_dir=.
2365
    for ac_exec_ext in '' $ac_executable_extensions; do
2366
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2367
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2368
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2369
    break 2
2370
  fi
2371
done
2372
  done
2373
IFS=$as_save_IFS
2374

    
2375
fi
2376
fi
2377
CC=$ac_cv_prog_CC
2378
if test -n "$CC"; then
2379
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2380
$as_echo "$CC" >&6; }
2381
else
2382
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2383
$as_echo "no" >&6; }
2384
fi
2385

    
2386

    
2387
  fi
2388
fi
2389
if test -z "$CC"; then
2390
  # Extract the first word of "cc", so it can be a program name with args.
2391
set dummy cc; ac_word=$2
2392
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2393
$as_echo_n "checking for $ac_word... " >&6; }
2394
if ${ac_cv_prog_CC+:} false; then :
2395
  $as_echo_n "(cached) " >&6
2396
else
2397
  if test -n "$CC"; then
2398
  ac_cv_prog_CC="$CC" # Let the user override the test.
2399
else
2400
  ac_prog_rejected=no
2401
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2402
for as_dir in $PATH
2403
do
2404
  IFS=$as_save_IFS
2405
  test -z "$as_dir" && as_dir=.
2406
    for ac_exec_ext in '' $ac_executable_extensions; do
2407
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2408
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2409
       ac_prog_rejected=yes
2410
       continue
2411
     fi
2412
    ac_cv_prog_CC="cc"
2413
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2414
    break 2
2415
  fi
2416
done
2417
  done
2418
IFS=$as_save_IFS
2419

    
2420
if test $ac_prog_rejected = yes; then
2421
  # We found a bogon in the path, so make sure we never use it.
2422
  set dummy $ac_cv_prog_CC
2423
  shift
2424
  if test $# != 0; then
2425
    # We chose a different compiler from the bogus one.
2426
    # However, it has the same basename, so the bogon will be chosen
2427
    # first if we set CC to just the basename; use the full file name.
2428
    shift
2429
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2430
  fi
2431
fi
2432
fi
2433
fi
2434
CC=$ac_cv_prog_CC
2435
if test -n "$CC"; then
2436
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2437
$as_echo "$CC" >&6; }
2438
else
2439
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2440
$as_echo "no" >&6; }
2441
fi
2442

    
2443

    
2444
fi
2445
if test -z "$CC"; then
2446
  if test -n "$ac_tool_prefix"; then
2447
  for ac_prog in cl.exe
2448
  do
2449
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2450
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2451
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2452
$as_echo_n "checking for $ac_word... " >&6; }
2453
if ${ac_cv_prog_CC+:} false; then :
2454
  $as_echo_n "(cached) " >&6
2455
else
2456
  if test -n "$CC"; then
2457
  ac_cv_prog_CC="$CC" # Let the user override the test.
2458
else
2459
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2460
for as_dir in $PATH
2461
do
2462
  IFS=$as_save_IFS
2463
  test -z "$as_dir" && as_dir=.
2464
    for ac_exec_ext in '' $ac_executable_extensions; do
2465
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2466
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2467
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2468
    break 2
2469
  fi
2470
done
2471
  done
2472
IFS=$as_save_IFS
2473

    
2474
fi
2475
fi
2476
CC=$ac_cv_prog_CC
2477
if test -n "$CC"; then
2478
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2479
$as_echo "$CC" >&6; }
2480
else
2481
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2482
$as_echo "no" >&6; }
2483
fi
2484

    
2485

    
2486
    test -n "$CC" && break
2487
  done
2488
fi
2489
if test -z "$CC"; then
2490
  ac_ct_CC=$CC
2491
  for ac_prog in cl.exe
2492
do
2493
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2494
set dummy $ac_prog; ac_word=$2
2495
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2496
$as_echo_n "checking for $ac_word... " >&6; }
2497
if ${ac_cv_prog_ac_ct_CC+:} false; then :
2498
  $as_echo_n "(cached) " >&6
2499
else
2500
  if test -n "$ac_ct_CC"; then
2501
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2502
else
2503
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2504
for as_dir in $PATH
2505
do
2506
  IFS=$as_save_IFS
2507
  test -z "$as_dir" && as_dir=.
2508
    for ac_exec_ext in '' $ac_executable_extensions; do
2509
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2510
    ac_cv_prog_ac_ct_CC="$ac_prog"
2511
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2512
    break 2
2513
  fi
2514
done
2515
  done
2516
IFS=$as_save_IFS
2517

    
2518
fi
2519
fi
2520
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2521
if test -n "$ac_ct_CC"; then
2522
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2523
$as_echo "$ac_ct_CC" >&6; }
2524
else
2525
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2526
$as_echo "no" >&6; }
2527
fi
2528

    
2529

    
2530
  test -n "$ac_ct_CC" && break
2531
done
2532

    
2533
  if test "x$ac_ct_CC" = x; then
2534
    CC=""
2535
  else
2536
    case $cross_compiling:$ac_tool_warned in
2537
yes:)
2538
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2539
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2540
ac_tool_warned=yes ;;
2541
esac
2542
    CC=$ac_ct_CC
2543
  fi
2544
fi
2545

    
2546
fi
2547

    
2548

    
2549
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2550
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2551
as_fn_error $? "no acceptable C compiler found in \$PATH
2552
See \`config.log' for more details" "$LINENO" 5; }
2553

    
2554
# Provide some information about the compiler.
2555
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2556
set X $ac_compile
2557
ac_compiler=$2
2558
for ac_option in --version -v -V -qversion; do
2559
  { { ac_try="$ac_compiler $ac_option >&5"
2560
case "(($ac_try" in
2561
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2562
  *) ac_try_echo=$ac_try;;
2563
esac
2564
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2565
$as_echo "$ac_try_echo"; } >&5
2566
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2567
  ac_status=$?
2568
  if test -s conftest.err; then
2569
    sed '10a\
2570
... rest of stderr output deleted ...
2571
         10q' conftest.err >conftest.er1
2572
    cat conftest.er1 >&5
2573
  fi
2574
  rm -f conftest.er1 conftest.err
2575
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2576
  test $ac_status = 0; }
2577
done
2578

    
2579
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2580
/* end confdefs.h.  */
2581

    
2582
int
2583
main ()
2584
{
2585

    
2586
  ;
2587
  return 0;
2588
}
2589
_ACEOF
2590
ac_clean_files_save=$ac_clean_files
2591
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2592
# Try to create an executable without -o first, disregard a.out.
2593
# It will help us diagnose broken compilers, and finding out an intuition
2594
# of exeext.
2595
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2596
$as_echo_n "checking whether the C compiler works... " >&6; }
2597
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2598

    
2599
# The possible output files:
2600
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2601

    
2602
ac_rmfiles=
2603
for ac_file in $ac_files
2604
do
2605
  case $ac_file in
2606
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2607
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2608
  esac
2609
done
2610
rm -f $ac_rmfiles
2611

    
2612
if { { ac_try="$ac_link_default"
2613
case "(($ac_try" in
2614
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2615
  *) ac_try_echo=$ac_try;;
2616
esac
2617
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2618
$as_echo "$ac_try_echo"; } >&5
2619
  (eval "$ac_link_default") 2>&5
2620
  ac_status=$?
2621
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2622
  test $ac_status = 0; }; then :
2623
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2624
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2625
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2626
# so that the user can short-circuit this test for compilers unknown to
2627
# Autoconf.
2628
for ac_file in $ac_files ''
2629
do
2630
  test -f "$ac_file" || continue
2631
  case $ac_file in
2632
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2633
	;;
2634
    [ab].out )
2635
	# We found the default executable, but exeext='' is most
2636
	# certainly right.
2637
	break;;
2638
    *.* )
2639
	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2640
	then :; else
2641
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2642
	fi
2643
	# We set ac_cv_exeext here because the later test for it is not
2644
	# safe: cross compilers may not add the suffix if given an `-o'
2645
	# argument, so we may need to know it at that point already.
2646
	# Even if this section looks crufty: it has the advantage of
2647
	# actually working.
2648
	break;;
2649
    * )
2650
	break;;
2651
  esac
2652
done
2653
test "$ac_cv_exeext" = no && ac_cv_exeext=
2654

    
2655
else
2656
  ac_file=''
2657
fi
2658
if test -z "$ac_file"; then :
2659
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2660
$as_echo "no" >&6; }
2661
$as_echo "$as_me: failed program was:" >&5
2662
sed 's/^/| /' conftest.$ac_ext >&5
2663

    
2664
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2665
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2666
as_fn_error 77 "C compiler cannot create executables
2667
See \`config.log' for more details" "$LINENO" 5; }
2668
else
2669
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2670
$as_echo "yes" >&6; }
2671
fi
2672
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2673
$as_echo_n "checking for C compiler default output file name... " >&6; }
2674
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2675
$as_echo "$ac_file" >&6; }
2676
ac_exeext=$ac_cv_exeext
2677

    
2678
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2679
ac_clean_files=$ac_clean_files_save
2680
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2681
$as_echo_n "checking for suffix of executables... " >&6; }
2682
if { { ac_try="$ac_link"
2683
case "(($ac_try" in
2684
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2685
  *) ac_try_echo=$ac_try;;
2686
esac
2687
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2688
$as_echo "$ac_try_echo"; } >&5
2689
  (eval "$ac_link") 2>&5
2690
  ac_status=$?
2691
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2692
  test $ac_status = 0; }; then :
2693
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2694
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2695
# work properly (i.e., refer to `conftest.exe'), while it won't with
2696
# `rm'.
2697
for ac_file in conftest.exe conftest conftest.*; do
2698
  test -f "$ac_file" || continue
2699
  case $ac_file in
2700
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2701
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2702
	  break;;
2703
    * ) break;;
2704
  esac
2705
done
2706
else
2707
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2708
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2709
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2710
See \`config.log' for more details" "$LINENO" 5; }
2711
fi
2712
rm -f conftest conftest$ac_cv_exeext
2713
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2714
$as_echo "$ac_cv_exeext" >&6; }
2715

    
2716
rm -f conftest.$ac_ext
2717
EXEEXT=$ac_cv_exeext
2718
ac_exeext=$EXEEXT
2719
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2720
/* end confdefs.h.  */
2721
#include <stdio.h>
2722
int
2723
main ()
2724
{
2725
FILE *f = fopen ("conftest.out", "w");
2726
 return ferror (f) || fclose (f) != 0;
2727

    
2728
  ;
2729
  return 0;
2730
}
2731
_ACEOF
2732
ac_clean_files="$ac_clean_files conftest.out"
2733
# Check that the compiler produces executables we can run.  If not, either
2734
# the compiler is broken, or we cross compile.
2735
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2736
$as_echo_n "checking whether we are cross compiling... " >&6; }
2737
if test "$cross_compiling" != yes; then
2738
  { { ac_try="$ac_link"
2739
case "(($ac_try" in
2740
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741
  *) ac_try_echo=$ac_try;;
2742
esac
2743
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2744
$as_echo "$ac_try_echo"; } >&5
2745
  (eval "$ac_link") 2>&5
2746
  ac_status=$?
2747
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2748
  test $ac_status = 0; }
2749
  if { ac_try='./conftest$ac_cv_exeext'
2750
  { { case "(($ac_try" in
2751
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2752
  *) ac_try_echo=$ac_try;;
2753
esac
2754
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2755
$as_echo "$ac_try_echo"; } >&5
2756
  (eval "$ac_try") 2>&5
2757
  ac_status=$?
2758
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2759
  test $ac_status = 0; }; }; then
2760
    cross_compiling=no
2761
  else
2762
    if test "$cross_compiling" = maybe; then
2763
	cross_compiling=yes
2764
    else
2765
	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2766
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2767
as_fn_error $? "cannot run C compiled programs.
2768
If you meant to cross compile, use \`--host'.
2769
See \`config.log' for more details" "$LINENO" 5; }
2770
    fi
2771
  fi
2772
fi
2773
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2774
$as_echo "$cross_compiling" >&6; }
2775

    
2776
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2777
ac_clean_files=$ac_clean_files_save
2778
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2779
$as_echo_n "checking for suffix of object files... " >&6; }
2780
if ${ac_cv_objext+:} false; then :
2781
  $as_echo_n "(cached) " >&6
2782
else
2783
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2784
/* end confdefs.h.  */
2785

    
2786
int
2787
main ()
2788
{
2789

    
2790
  ;
2791
  return 0;
2792
}
2793
_ACEOF
2794
rm -f conftest.o conftest.obj
2795
if { { ac_try="$ac_compile"
2796
case "(($ac_try" in
2797
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2798
  *) ac_try_echo=$ac_try;;
2799
esac
2800
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2801
$as_echo "$ac_try_echo"; } >&5
2802
  (eval "$ac_compile") 2>&5
2803
  ac_status=$?
2804
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2805
  test $ac_status = 0; }; then :
2806
  for ac_file in conftest.o conftest.obj conftest.*; do
2807
  test -f "$ac_file" || continue;
2808
  case $ac_file in
2809
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2810
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2811
       break;;
2812
  esac
2813
done
2814
else
2815
  $as_echo "$as_me: failed program was:" >&5
2816
sed 's/^/| /' conftest.$ac_ext >&5
2817

    
2818
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2819
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2820
as_fn_error $? "cannot compute suffix of object files: cannot compile
2821
See \`config.log' for more details" "$LINENO" 5; }
2822
fi
2823
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2824
fi
2825
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2826
$as_echo "$ac_cv_objext" >&6; }
2827
OBJEXT=$ac_cv_objext
2828
ac_objext=$OBJEXT
2829
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2830
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2831
if ${ac_cv_c_compiler_gnu+:} false; then :
2832
  $as_echo_n "(cached) " >&6
2833
else
2834
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2835
/* end confdefs.h.  */
2836

    
2837
int
2838
main ()
2839
{
2840
#ifndef __GNUC__
2841
       choke me
2842
#endif
2843

    
2844
  ;
2845
  return 0;
2846
}
2847
_ACEOF
2848
if ac_fn_c_try_compile "$LINENO"; then :
2849
  ac_compiler_gnu=yes
2850
else
2851
  ac_compiler_gnu=no
2852
fi
2853
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2854
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2855

    
2856
fi
2857
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2858
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2859
if test $ac_compiler_gnu = yes; then
2860
  GCC=yes
2861
else
2862
  GCC=
2863
fi
2864
ac_test_CFLAGS=${CFLAGS+set}
2865
ac_save_CFLAGS=$CFLAGS
2866
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2867
$as_echo_n "checking whether $CC accepts -g... " >&6; }
2868
if ${ac_cv_prog_cc_g+:} false; then :
2869
  $as_echo_n "(cached) " >&6
2870
else
2871
  ac_save_c_werror_flag=$ac_c_werror_flag
2872
   ac_c_werror_flag=yes
2873
   ac_cv_prog_cc_g=no
2874
   CFLAGS="-g"
2875
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2876
/* end confdefs.h.  */
2877

    
2878
int
2879
main ()
2880
{
2881

    
2882
  ;
2883
  return 0;
2884
}
2885
_ACEOF
2886
if ac_fn_c_try_compile "$LINENO"; then :
2887
  ac_cv_prog_cc_g=yes
2888
else
2889
  CFLAGS=""
2890
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2891
/* end confdefs.h.  */
2892

    
2893
int
2894
main ()
2895
{
2896

    
2897
  ;
2898
  return 0;
2899
}
2900
_ACEOF
2901
if ac_fn_c_try_compile "$LINENO"; then :
2902

    
2903
else
2904
  ac_c_werror_flag=$ac_save_c_werror_flag
2905
	 CFLAGS="-g"
2906
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2907
/* end confdefs.h.  */
2908

    
2909
int
2910
main ()
2911
{
2912

    
2913
  ;
2914
  return 0;
2915
}
2916
_ACEOF
2917
if ac_fn_c_try_compile "$LINENO"; then :
2918
  ac_cv_prog_cc_g=yes
2919
fi
2920
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2921
fi
2922
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2923
fi
2924
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2925
   ac_c_werror_flag=$ac_save_c_werror_flag
2926
fi
2927
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2928
$as_echo "$ac_cv_prog_cc_g" >&6; }
2929
if test "$ac_test_CFLAGS" = set; then
2930
  CFLAGS=$ac_save_CFLAGS
2931
elif test $ac_cv_prog_cc_g = yes; then
2932
  if test "$GCC" = yes; then
2933
    CFLAGS="-g -O2"
2934
  else
2935
    CFLAGS="-g"
2936
  fi
2937
else
2938
  if test "$GCC" = yes; then
2939
    CFLAGS="-O2"
2940
  else
2941
    CFLAGS=
2942
  fi
2943
fi
2944
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2945
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2946
if ${ac_cv_prog_cc_c89+:} false; then :
2947
  $as_echo_n "(cached) " >&6
2948
else
2949
  ac_cv_prog_cc_c89=no
2950
ac_save_CC=$CC
2951
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2952
/* end confdefs.h.  */
2953
#include <stdarg.h>
2954
#include <stdio.h>
2955
struct stat;
2956
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2957
struct buf { int x; };
2958
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2959
static char *e (p, i)
2960
     char **p;
2961
     int i;
2962
{
2963
  return p[i];
2964
}
2965
static char *f (char * (*g) (char **, int), char **p, ...)
2966
{
2967
  char *s;
2968
  va_list v;
2969
  va_start (v,p);
2970
  s = g (p, va_arg (v,int));
2971
  va_end (v);
2972
  return s;
2973
}
2974

    
2975
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2976
   function prototypes and stuff, but not '\xHH' hex character constants.
2977
   These don't provoke an error unfortunately, instead are silently treated
2978
   as 'x'.  The following induces an error, until -std is added to get
2979
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2980
   array size at least.  It's necessary to write '\x00'==0 to get something
2981
   that's true only with -std.  */
2982
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2983

    
2984
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2985
   inside strings and character constants.  */
2986
#define FOO(x) 'x'
2987
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2988

    
2989
int test (int i, double x);
2990
struct s1 {int (*f) (int a);};
2991
struct s2 {int (*f) (double a);};
2992
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2993
int argc;
2994
char **argv;
2995
int
2996
main ()
2997
{
2998
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2999
  ;
3000
  return 0;
3001
}
3002
_ACEOF
3003
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3004
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3005
do
3006
  CC="$ac_save_CC $ac_arg"
3007
  if ac_fn_c_try_compile "$LINENO"; then :
3008
  ac_cv_prog_cc_c89=$ac_arg
3009
fi
3010
rm -f core conftest.err conftest.$ac_objext
3011
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3012
done
3013
rm -f conftest.$ac_ext
3014
CC=$ac_save_CC
3015

    
3016
fi
3017
# AC_CACHE_VAL
3018
case "x$ac_cv_prog_cc_c89" in
3019
  x)
3020
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3021
$as_echo "none needed" >&6; } ;;
3022
  xno)
3023
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3024
$as_echo "unsupported" >&6; } ;;
3025
  *)
3026
    CC="$CC $ac_cv_prog_cc_c89"
3027
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3028
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3029
esac
3030
if test "x$ac_cv_prog_cc_c89" != xno; then :
3031

    
3032
fi
3033

    
3034
ac_ext=cpp
3035
ac_cpp='$CXXCPP $CPPFLAGS'
3036
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3037
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3038
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3039

    
3040
ac_ext=cpp
3041
ac_cpp='$CXXCPP $CPPFLAGS'
3042
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3043
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3044
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3045
if test -z "$CXX"; then
3046
  if test -n "$CCC"; then
3047
    CXX=$CCC
3048
  else
3049
    if test -n "$ac_tool_prefix"; then
3050
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3051
  do
3052
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3053
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3054
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3055
$as_echo_n "checking for $ac_word... " >&6; }
3056
if ${ac_cv_prog_CXX+:} false; then :
3057
  $as_echo_n "(cached) " >&6
3058
else
3059
  if test -n "$CXX"; then
3060
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3061
else
3062
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063
for as_dir in $PATH
3064
do
3065
  IFS=$as_save_IFS
3066
  test -z "$as_dir" && as_dir=.
3067
    for ac_exec_ext in '' $ac_executable_extensions; do
3068
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3069
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3070
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3071
    break 2
3072
  fi
3073
done
3074
  done
3075
IFS=$as_save_IFS
3076

    
3077
fi
3078
fi
3079
CXX=$ac_cv_prog_CXX
3080
if test -n "$CXX"; then
3081
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3082
$as_echo "$CXX" >&6; }
3083
else
3084
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3085
$as_echo "no" >&6; }
3086
fi
3087

    
3088

    
3089
    test -n "$CXX" && break
3090
  done
3091
fi
3092
if test -z "$CXX"; then
3093
  ac_ct_CXX=$CXX
3094
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3095
do
3096
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3097
set dummy $ac_prog; ac_word=$2
3098
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3099
$as_echo_n "checking for $ac_word... " >&6; }
3100
if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3101
  $as_echo_n "(cached) " >&6
3102
else
3103
  if test -n "$ac_ct_CXX"; then
3104
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3105
else
3106
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107
for as_dir in $PATH
3108
do
3109
  IFS=$as_save_IFS
3110
  test -z "$as_dir" && as_dir=.
3111
    for ac_exec_ext in '' $ac_executable_extensions; do
3112
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3113
    ac_cv_prog_ac_ct_CXX="$ac_prog"
3114
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3115
    break 2
3116
  fi
3117
done
3118
  done
3119
IFS=$as_save_IFS
3120

    
3121
fi
3122
fi
3123
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3124
if test -n "$ac_ct_CXX"; then
3125
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3126
$as_echo "$ac_ct_CXX" >&6; }
3127
else
3128
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3129
$as_echo "no" >&6; }
3130
fi
3131

    
3132

    
3133
  test -n "$ac_ct_CXX" && break
3134
done
3135

    
3136
  if test "x$ac_ct_CXX" = x; then
3137
    CXX="g++"
3138
  else
3139
    case $cross_compiling:$ac_tool_warned in
3140
yes:)
3141
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3142
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3143
ac_tool_warned=yes ;;
3144
esac
3145
    CXX=$ac_ct_CXX
3146
  fi
3147
fi
3148

    
3149
  fi
3150
fi
3151
# Provide some information about the compiler.
3152
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3153
set X $ac_compile
3154
ac_compiler=$2
3155
for ac_option in --version -v -V -qversion; do
3156
  { { ac_try="$ac_compiler $ac_option >&5"
3157
case "(($ac_try" in
3158
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159
  *) ac_try_echo=$ac_try;;
3160
esac
3161
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3162
$as_echo "$ac_try_echo"; } >&5
3163
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3164
  ac_status=$?
3165
  if test -s conftest.err; then
3166
    sed '10a\
3167
... rest of stderr output deleted ...
3168
         10q' conftest.err >conftest.er1
3169
    cat conftest.er1 >&5
3170
  fi
3171
  rm -f conftest.er1 conftest.err
3172
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3173
  test $ac_status = 0; }
3174
done
3175

    
3176
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3177
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3178
if ${ac_cv_cxx_compiler_gnu+:} false; then :
3179
  $as_echo_n "(cached) " >&6
3180
else
3181
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3182
/* end confdefs.h.  */
3183

    
3184
int
3185
main ()
3186
{
3187
#ifndef __GNUC__
3188
       choke me
3189
#endif
3190

    
3191
  ;
3192
  return 0;
3193
}
3194
_ACEOF
3195
if ac_fn_cxx_try_compile "$LINENO"; then :
3196
  ac_compiler_gnu=yes
3197
else
3198
  ac_compiler_gnu=no
3199
fi
3200
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3202

    
3203
fi
3204
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3205
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3206
if test $ac_compiler_gnu = yes; then
3207
  GXX=yes
3208
else
3209
  GXX=
3210
fi
3211
ac_test_CXXFLAGS=${CXXFLAGS+set}
3212
ac_save_CXXFLAGS=$CXXFLAGS
3213
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3214
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3215
if ${ac_cv_prog_cxx_g+:} false; then :
3216
  $as_echo_n "(cached) " >&6
3217
else
3218
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3219
   ac_cxx_werror_flag=yes
3220
   ac_cv_prog_cxx_g=no
3221
   CXXFLAGS="-g"
3222
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3223
/* end confdefs.h.  */
3224

    
3225
int
3226
main ()
3227
{
3228

    
3229
  ;
3230
  return 0;
3231
}
3232
_ACEOF
3233
if ac_fn_cxx_try_compile "$LINENO"; then :
3234
  ac_cv_prog_cxx_g=yes
3235
else
3236
  CXXFLAGS=""
3237
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3238
/* end confdefs.h.  */
3239

    
3240
int
3241
main ()
3242
{
3243

    
3244
  ;
3245
  return 0;
3246
}
3247
_ACEOF
3248
if ac_fn_cxx_try_compile "$LINENO"; then :
3249

    
3250
else
3251
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3252
	 CXXFLAGS="-g"
3253
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3254
/* end confdefs.h.  */
3255

    
3256
int
3257
main ()
3258
{
3259

    
3260
  ;
3261
  return 0;
3262
}
3263
_ACEOF
3264
if ac_fn_cxx_try_compile "$LINENO"; then :
3265
  ac_cv_prog_cxx_g=yes
3266
fi
3267
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3268
fi
3269
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3270
fi
3271
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3272
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3273
fi
3274
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3275
$as_echo "$ac_cv_prog_cxx_g" >&6; }
3276
if test "$ac_test_CXXFLAGS" = set; then
3277
  CXXFLAGS=$ac_save_CXXFLAGS
3278
elif test $ac_cv_prog_cxx_g = yes; then
3279
  if test "$GXX" = yes; then
3280
    CXXFLAGS="-g -O2"
3281
  else
3282
    CXXFLAGS="-g"
3283
  fi
3284
else
3285
  if test "$GXX" = yes; then
3286
    CXXFLAGS="-O2"
3287
  else
3288
    CXXFLAGS=
3289
  fi
3290
fi
3291
ac_ext=cpp
3292
ac_cpp='$CXXCPP $CPPFLAGS'
3293
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3294
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3295
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3296

    
3297
ac_aux_dir=
3298
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3299
  if test -f "$ac_dir/install-sh"; then
3300
    ac_aux_dir=$ac_dir
3301
    ac_install_sh="$ac_aux_dir/install-sh -c"
3302
    break
3303
  elif test -f "$ac_dir/install.sh"; then
3304
    ac_aux_dir=$ac_dir
3305
    ac_install_sh="$ac_aux_dir/install.sh -c"
3306
    break
3307
  elif test -f "$ac_dir/shtool"; then
3308
    ac_aux_dir=$ac_dir
3309
    ac_install_sh="$ac_aux_dir/shtool install -c"
3310
    break
3311
  fi
3312
done
3313
if test -z "$ac_aux_dir"; then
3314
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3315
fi
3316

    
3317
# These three variables are undocumented and unsupported,
3318
# and are intended to be withdrawn in a future Autoconf release.
3319
# They can cause serious problems if a builder's source tree is in a directory
3320
# whose full name contains unusual characters.
3321
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3322
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3323
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3324

    
3325

    
3326
# Find a good install program.  We prefer a C program (faster),
3327
# so one script is as good as another.  But avoid the broken or
3328
# incompatible versions:
3329
# SysV /etc/install, /usr/sbin/install
3330
# SunOS /usr/etc/install
3331
# IRIX /sbin/install
3332
# AIX /bin/install
3333
# AmigaOS /C/install, which installs bootblocks on floppy discs
3334
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3335
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3336
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3337
# OS/2's system install, which has a completely different semantic
3338
# ./install, which can be erroneously created by make from ./install.sh.
3339
# Reject install programs that cannot install multiple files.
3340
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3341
$as_echo_n "checking for a BSD-compatible install... " >&6; }
3342
if test -z "$INSTALL"; then
3343
if ${ac_cv_path_install+:} false; then :
3344
  $as_echo_n "(cached) " >&6
3345
else
3346
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347
for as_dir in $PATH
3348
do
3349
  IFS=$as_save_IFS
3350
  test -z "$as_dir" && as_dir=.
3351
    # Account for people who put trailing slashes in PATH elements.
3352
case $as_dir/ in #((
3353
  ./ | .// | /[cC]/* | \
3354
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3355
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3356
  /usr/ucb/* ) ;;
3357
  *)
3358
    # OSF1 and SCO ODT 3.0 have their own names for install.
3359
    # Don't use installbsd from OSF since it installs stuff as root
3360
    # by default.
3361
    for ac_prog in ginstall scoinst install; do
3362
      for ac_exec_ext in '' $ac_executable_extensions; do
3363
	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3364
	  if test $ac_prog = install &&
3365
	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3366
	    # AIX install.  It has an incompatible calling convention.
3367
	    :
3368
	  elif test $ac_prog = install &&
3369
	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3370
	    # program-specific install script used by HP pwplus--don't use.
3371
	    :
3372
	  else
3373
	    rm -rf conftest.one conftest.two conftest.dir
3374
	    echo one > conftest.one
3375
	    echo two > conftest.two
3376
	    mkdir conftest.dir
3377
	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3378
	      test -s conftest.one && test -s conftest.two &&
3379
	      test -s conftest.dir/conftest.one &&
3380
	      test -s conftest.dir/conftest.two
3381
	    then
3382
	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3383
	      break 3
3384
	    fi
3385
	  fi
3386
	fi
3387
      done
3388
    done
3389
    ;;
3390
esac
3391

    
3392
  done
3393
IFS=$as_save_IFS
3394

    
3395
rm -rf conftest.one conftest.two conftest.dir
3396

    
3397
fi
3398
  if test "${ac_cv_path_install+set}" = set; then
3399
    INSTALL=$ac_cv_path_install
3400
  else
3401
    # As a last resort, use the slow shell script.  Don't cache a
3402
    # value for INSTALL within a source directory, because that will
3403
    # break other packages using the cache if that directory is
3404
    # removed, or if the value is a relative name.
3405
    INSTALL=$ac_install_sh
3406
  fi
3407
fi
3408
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3409
$as_echo "$INSTALL" >&6; }
3410

    
3411
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3412
# It thinks the first close brace ends the variable substitution.
3413
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3414

    
3415
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3416

    
3417
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3418

    
3419
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3420
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3421
if test -z "$MKDIR_P"; then
3422
  if ${ac_cv_path_mkdir+:} false; then :
3423
  $as_echo_n "(cached) " >&6
3424
else
3425
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3426
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3427
do
3428
  IFS=$as_save_IFS
3429
  test -z "$as_dir" && as_dir=.
3430
    for ac_prog in mkdir gmkdir; do
3431
	 for ac_exec_ext in '' $ac_executable_extensions; do
3432
	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3433
	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3434
	     'mkdir (GNU coreutils) '* | \
3435
	     'mkdir (coreutils) '* | \
3436
	     'mkdir (fileutils) '4.1*)
3437
	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3438
	       break 3;;
3439
	   esac
3440
	 done
3441
       done
3442
  done
3443
IFS=$as_save_IFS
3444

    
3445
fi
3446

    
3447
  test -d ./--version && rmdir ./--version
3448
  if test "${ac_cv_path_mkdir+set}" = set; then
3449
    MKDIR_P="$ac_cv_path_mkdir -p"
3450
  else
3451
    # As a last resort, use the slow shell script.  Don't cache a
3452
    # value for MKDIR_P within a source directory, because that will
3453
    # break other packages using the cache if that directory is
3454
    # removed, or if the value is a relative name.
3455
    MKDIR_P="$ac_install_sh -d"
3456
  fi
3457
fi
3458
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3459
$as_echo "$MKDIR_P" >&6; }
3460

    
3461

    
3462
# We are daringly making use of C++11 now
3463

    
3464
    ax_cxx_compile_cxx11_required=true
3465
  ac_ext=cpp
3466
ac_cpp='$CXXCPP $CPPFLAGS'
3467
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3468
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3469
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3470
  ac_success=no
3471
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
3472
$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
3473
if ${ax_cv_cxx_compile_cxx11+:} false; then :
3474
  $as_echo_n "(cached) " >&6
3475
else
3476
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3477
/* end confdefs.h.  */
3478

    
3479
  template <typename T>
3480
    struct check
3481
    {
3482
      static_assert(sizeof(int) <= sizeof(T), "not big enough");
3483
    };
3484

    
3485
    struct Base {
3486
    virtual void f() {}
3487
    };
3488
    struct Child : public Base {
3489
    virtual void f() override {}
3490
    };
3491

    
3492
    typedef check<check<bool>> right_angle_brackets;
3493

    
3494
    int a;
3495
    decltype(a) b;
3496

    
3497
    typedef check<int> check_type;
3498
    check_type c;
3499
    check_type&& cr = static_cast<check_type&&>(c);
3500

    
3501
    auto d = a;
3502
    auto l = [](){};
3503

    
3504
_ACEOF
3505
if ac_fn_cxx_try_compile "$LINENO"; then :
3506
  ax_cv_cxx_compile_cxx11=yes
3507
else
3508
  ax_cv_cxx_compile_cxx11=no
3509
fi
3510
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3511
fi
3512
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
3513
$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
3514
  if test x$ax_cv_cxx_compile_cxx11 = xyes; then
3515
    ac_success=yes
3516
  fi
3517

    
3518

    
3519

    
3520
    if test x$ac_success = xno; then
3521
    for switch in -std=c++11 -std=c++0x; do
3522
      cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
3523
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
3524
$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
3525
if eval \${$cachevar+:} false; then :
3526
  $as_echo_n "(cached) " >&6
3527
else
3528
  ac_save_CXXFLAGS="$CXXFLAGS"
3529
         CXXFLAGS="$CXXFLAGS $switch"
3530
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3531
/* end confdefs.h.  */
3532

    
3533
  template <typename T>
3534
    struct check
3535
    {
3536
      static_assert(sizeof(int) <= sizeof(T), "not big enough");
3537
    };
3538

    
3539
    struct Base {
3540
    virtual void f() {}
3541
    };
3542
    struct Child : public Base {
3543
    virtual void f() override {}
3544
    };
3545

    
3546
    typedef check<check<bool>> right_angle_brackets;
3547

    
3548
    int a;
3549
    decltype(a) b;
3550

    
3551
    typedef check<int> check_type;
3552
    check_type c;
3553
    check_type&& cr = static_cast<check_type&&>(c);
3554

    
3555
    auto d = a;
3556
    auto l = [](){};
3557

    
3558
_ACEOF
3559
if ac_fn_cxx_try_compile "$LINENO"; then :
3560
  eval $cachevar=yes
3561
else
3562
  eval $cachevar=no
3563
fi
3564
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3565
         CXXFLAGS="$ac_save_CXXFLAGS"
3566
fi
3567
eval ac_res=\$$cachevar
3568
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3569
$as_echo "$ac_res" >&6; }
3570
      if eval test x\$$cachevar = xyes; then
3571
        CXXFLAGS="$CXXFLAGS $switch"
3572
        ac_success=yes
3573
        break
3574
      fi
3575
    done
3576
  fi
3577
  ac_ext=cpp
3578
ac_cpp='$CXXCPP $CPPFLAGS'
3579
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3580
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3581
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3582

    
3583
  if test x$ax_cxx_compile_cxx11_required = xtrue; then
3584
    if test x$ac_success = xno; then
3585
      as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
3586
    fi
3587
  else
3588
    if test x$ac_success = xno; then
3589
      HAVE_CXX11=0
3590
      { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
3591
$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
3592
    else
3593
      HAVE_CXX11=1
3594

    
3595
$as_echo "#define HAVE_CXX11 1" >>confdefs.h
3596

    
3597
    fi
3598

    
3599

    
3600
  fi
3601

    
3602

    
3603
ac_ext=cpp
3604
ac_cpp='$CXXCPP $CPPFLAGS'
3605
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3606
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3607
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3608
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
3609
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
3610
if test -z "$CXXCPP"; then
3611
  if ${ac_cv_prog_CXXCPP+:} false; then :
3612
  $as_echo_n "(cached) " >&6
3613
else
3614
      # Double quotes because CXXCPP needs to be expanded
3615
    for CXXCPP in "$CXX -E" "/lib/cpp"
3616
    do
3617
      ac_preproc_ok=false
3618
for ac_cxx_preproc_warn_flag in '' yes
3619
do
3620
  # Use a header file that comes with gcc, so configuring glibc
3621
  # with a fresh cross-compiler works.
3622
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3623
  # <limits.h> exists even on freestanding compilers.
3624
  # On the NeXT, cc -E runs the code through the compiler's parser,
3625
  # not just through cpp. "Syntax error" is here to catch this case.
3626
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3627
/* end confdefs.h.  */
3628
#ifdef __STDC__
3629
# include <limits.h>
3630
#else
3631
# include <assert.h>
3632
#endif
3633
		     Syntax error
3634
_ACEOF
3635
if ac_fn_cxx_try_cpp "$LINENO"; then :
3636

    
3637
else
3638
  # Broken: fails on valid input.
3639
continue
3640
fi
3641
rm -f conftest.err conftest.i conftest.$ac_ext
3642

    
3643
  # OK, works on sane cases.  Now check whether nonexistent headers
3644
  # can be detected and how.
3645
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3646
/* end confdefs.h.  */
3647
#include <ac_nonexistent.h>
3648
_ACEOF
3649
if ac_fn_cxx_try_cpp "$LINENO"; then :
3650
  # Broken: success on invalid input.
3651
continue
3652
else
3653
  # Passes both tests.
3654
ac_preproc_ok=:
3655
break
3656
fi
3657
rm -f conftest.err conftest.i conftest.$ac_ext
3658

    
3659
done
3660
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3661
rm -f conftest.i conftest.err conftest.$ac_ext
3662
if $ac_preproc_ok; then :
3663
  break
3664
fi
3665

    
3666
    done
3667
    ac_cv_prog_CXXCPP=$CXXCPP
3668

    
3669
fi
3670
  CXXCPP=$ac_cv_prog_CXXCPP
3671
else
3672
  ac_cv_prog_CXXCPP=$CXXCPP
3673
fi
3674
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
3675
$as_echo "$CXXCPP" >&6; }
3676
ac_preproc_ok=false
3677
for ac_cxx_preproc_warn_flag in '' yes
3678
do
3679
  # Use a header file that comes with gcc, so configuring glibc
3680
  # with a fresh cross-compiler works.
3681
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3682
  # <limits.h> exists even on freestanding compilers.
3683
  # On the NeXT, cc -E runs the code through the compiler's parser,
3684
  # not just through cpp. "Syntax error" is here to catch this case.
3685
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3686
/* end confdefs.h.  */
3687
#ifdef __STDC__
3688
# include <limits.h>
3689
#else
3690
# include <assert.h>
3691
#endif
3692
		     Syntax error
3693
_ACEOF
3694
if ac_fn_cxx_try_cpp "$LINENO"; then :
3695

    
3696
else
3697
  # Broken: fails on valid input.
3698
continue
3699
fi
3700
rm -f conftest.err conftest.i conftest.$ac_ext
3701

    
3702
  # OK, works on sane cases.  Now check whether nonexistent headers
3703
  # can be detected and how.
3704
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3705
/* end confdefs.h.  */
3706
#include <ac_nonexistent.h>
3707
_ACEOF
3708
if ac_fn_cxx_try_cpp "$LINENO"; then :
3709
  # Broken: success on invalid input.
3710
continue
3711
else
3712
  # Passes both tests.
3713
ac_preproc_ok=:
3714
break
3715
fi
3716
rm -f conftest.err conftest.i conftest.$ac_ext
3717

    
3718
done
3719
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3720
rm -f conftest.i conftest.err conftest.$ac_ext
3721
if $ac_preproc_ok; then :
3722

    
3723
else
3724
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3725
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3726
as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
3727
See \`config.log' for more details" "$LINENO" 5; }
3728
fi
3729

    
3730
ac_ext=cpp
3731
ac_cpp='$CXXCPP $CPPFLAGS'
3732
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3733
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3734
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3735

    
3736

    
3737
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3738
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3739
if ${ac_cv_path_GREP+:} false; then :
3740
  $as_echo_n "(cached) " >&6
3741
else
3742
  if test -z "$GREP"; then
3743
  ac_path_GREP_found=false
3744
  # Loop through the user's path and test for each of PROGNAME-LIST
3745
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3746
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3747
do
3748
  IFS=$as_save_IFS
3749
  test -z "$as_dir" && as_dir=.
3750
    for ac_prog in grep ggrep; do
3751
    for ac_exec_ext in '' $ac_executable_extensions; do
3752
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3753
      as_fn_executable_p "$ac_path_GREP" || continue
3754
# Check for GNU ac_path_GREP and select it if it is found.
3755
  # Check for GNU $ac_path_GREP
3756
case `"$ac_path_GREP" --version 2>&1` in
3757
*GNU*)
3758
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3759
*)
3760
  ac_count=0
3761
  $as_echo_n 0123456789 >"conftest.in"
3762
  while :
3763
  do
3764
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3765
    mv "conftest.tmp" "conftest.in"
3766
    cp "conftest.in" "conftest.nl"
3767
    $as_echo 'GREP' >> "conftest.nl"
3768
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3769
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3770
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3771
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3772
      # Best one so far, save it but keep looking for a better one
3773
      ac_cv_path_GREP="$ac_path_GREP"
3774
      ac_path_GREP_max=$ac_count
3775
    fi
3776
    # 10*(2^10) chars as input seems more than enough
3777
    test $ac_count -gt 10 && break
3778
  done
3779
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3780
esac
3781

    
3782
      $ac_path_GREP_found && break 3
3783
    done
3784
  done
3785
  done
3786
IFS=$as_save_IFS
3787
  if test -z "$ac_cv_path_GREP"; then
3788
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3789
  fi
3790
else
3791
  ac_cv_path_GREP=$GREP
3792
fi
3793

    
3794
fi
3795
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3796
$as_echo "$ac_cv_path_GREP" >&6; }
3797
 GREP="$ac_cv_path_GREP"
3798

    
3799

    
3800
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3801
$as_echo_n "checking for egrep... " >&6; }
3802
if ${ac_cv_path_EGREP+:} false; then :
3803
  $as_echo_n "(cached) " >&6
3804
else
3805
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3806
   then ac_cv_path_EGREP="$GREP -E"
3807
   else
3808
     if test -z "$EGREP"; then
3809
  ac_path_EGREP_found=false
3810
  # Loop through the user's path and test for each of PROGNAME-LIST
3811
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3812
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3813
do
3814
  IFS=$as_save_IFS
3815
  test -z "$as_dir" && as_dir=.
3816
    for ac_prog in egrep; do
3817
    for ac_exec_ext in '' $ac_executable_extensions; do
3818
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3819
      as_fn_executable_p "$ac_path_EGREP" || continue
3820
# Check for GNU ac_path_EGREP and select it if it is found.
3821
  # Check for GNU $ac_path_EGREP
3822
case `"$ac_path_EGREP" --version 2>&1` in
3823
*GNU*)
3824
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3825
*)
3826
  ac_count=0
3827
  $as_echo_n 0123456789 >"conftest.in"
3828
  while :
3829
  do
3830
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3831
    mv "conftest.tmp" "conftest.in"
3832
    cp "conftest.in" "conftest.nl"
3833
    $as_echo 'EGREP' >> "conftest.nl"
3834
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3835
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3836
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3837
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3838
      # Best one so far, save it but keep looking for a better one
3839
      ac_cv_path_EGREP="$ac_path_EGREP"
3840
      ac_path_EGREP_max=$ac_count
3841
    fi
3842
    # 10*(2^10) chars as input seems more than enough
3843
    test $ac_count -gt 10 && break
3844
  done
3845
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3846
esac
3847

    
3848
      $ac_path_EGREP_found && break 3
3849
    done
3850
  done
3851
  done
3852
IFS=$as_save_IFS
3853
  if test -z "$ac_cv_path_EGREP"; then
3854
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3855
  fi
3856
else
3857
  ac_cv_path_EGREP=$EGREP
3858
fi
3859

    
3860
   fi
3861
fi
3862
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3863
$as_echo "$ac_cv_path_EGREP" >&6; }
3864
 EGREP="$ac_cv_path_EGREP"
3865

    
3866

    
3867
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3868
$as_echo_n "checking for ANSI C header files... " >&6; }
3869
if ${ac_cv_header_stdc+:} false; then :
3870
  $as_echo_n "(cached) " >&6
3871
else
3872
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3873
/* end confdefs.h.  */
3874
#include <stdlib.h>
3875
#include <stdarg.h>
3876
#include <string.h>
3877
#include <float.h>
3878

    
3879
int
3880
main ()
3881
{
3882

    
3883
  ;
3884
  return 0;
3885
}
3886
_ACEOF
3887
if ac_fn_cxx_try_compile "$LINENO"; then :
3888
  ac_cv_header_stdc=yes
3889
else
3890
  ac_cv_header_stdc=no
3891
fi
3892
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3893

    
3894
if test $ac_cv_header_stdc = yes; then
3895
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3896
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897
/* end confdefs.h.  */
3898
#include <string.h>
3899

    
3900
_ACEOF
3901
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3902
  $EGREP "memchr" >/dev/null 2>&1; then :
3903

    
3904
else
3905
  ac_cv_header_stdc=no
3906
fi
3907
rm -f conftest*
3908

    
3909
fi
3910

    
3911
if test $ac_cv_header_stdc = yes; then
3912
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3913
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3914
/* end confdefs.h.  */
3915
#include <stdlib.h>
3916

    
3917
_ACEOF
3918
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3919
  $EGREP "free" >/dev/null 2>&1; then :
3920

    
3921
else
3922
  ac_cv_header_stdc=no
3923
fi
3924
rm -f conftest*
3925

    
3926
fi
3927

    
3928
if test $ac_cv_header_stdc = yes; then
3929
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3930
  if test "$cross_compiling" = yes; then :
3931
  :
3932
else
3933
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3934
/* end confdefs.h.  */
3935
#include <ctype.h>
3936
#include <stdlib.h>
3937
#if ((' ' & 0x0FF) == 0x020)
3938
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3939
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3940
#else
3941
# define ISLOWER(c) \
3942
		   (('a' <= (c) && (c) <= 'i') \
3943
		     || ('j' <= (c) && (c) <= 'r') \
3944
		     || ('s' <= (c) && (c) <= 'z'))
3945
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3946
#endif
3947

    
3948
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3949
int
3950
main ()
3951
{
3952
  int i;
3953
  for (i = 0; i < 256; i++)
3954
    if (XOR (islower (i), ISLOWER (i))
3955
	|| toupper (i) != TOUPPER (i))
3956
      return 2;
3957
  return 0;
3958
}
3959
_ACEOF
3960
if ac_fn_cxx_try_run "$LINENO"; then :
3961

    
3962
else
3963
  ac_cv_header_stdc=no
3964
fi
3965
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3966
  conftest.$ac_objext conftest.beam conftest.$ac_ext
3967
fi
3968

    
3969
fi
3970
fi
3971
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3972
$as_echo "$ac_cv_header_stdc" >&6; }
3973
if test $ac_cv_header_stdc = yes; then
3974

    
3975
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3976

    
3977
fi
3978

    
3979

    
3980
# These are the flags Autoconf guesses for us; we use them later if
3981
# the user has set none and we are not using GCC (so lack our own
3982
# preferred flags)
3983
AUTOCONF_CXXFLAGS="$CXXFLAGS"
3984

    
3985

    
3986

    
3987

    
3988

    
3989

    
3990

    
3991

    
3992
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3993
	if test -n "$ac_tool_prefix"; then
3994
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3995
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3996
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3997
$as_echo_n "checking for $ac_word... " >&6; }
3998
if ${ac_cv_path_PKG_CONFIG+:} false; then :
3999
  $as_echo_n "(cached) " >&6
4000
else
4001
  case $PKG_CONFIG in
4002
  [\\/]* | ?:[\\/]*)
4003
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4004
  ;;
4005
  *)
4006
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4007
for as_dir in $PATH
4008
do
4009
  IFS=$as_save_IFS
4010
  test -z "$as_dir" && as_dir=.
4011
    for ac_exec_ext in '' $ac_executable_extensions; do
4012
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4013
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4014
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4015
    break 2
4016
  fi
4017
done
4018
  done
4019
IFS=$as_save_IFS
4020

    
4021
  ;;
4022
esac
4023
fi
4024
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4025
if test -n "$PKG_CONFIG"; then
4026
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4027
$as_echo "$PKG_CONFIG" >&6; }
4028
else
4029
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4030
$as_echo "no" >&6; }
4031
fi
4032

    
4033

    
4034
fi
4035
if test -z "$ac_cv_path_PKG_CONFIG"; then
4036
  ac_pt_PKG_CONFIG=$PKG_CONFIG
4037
  # Extract the first word of "pkg-config", so it can be a program name with args.
4038
set dummy pkg-config; ac_word=$2
4039
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4040
$as_echo_n "checking for $ac_word... " >&6; }
4041
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4042
  $as_echo_n "(cached) " >&6
4043
else
4044
  case $ac_pt_PKG_CONFIG in
4045
  [\\/]* | ?:[\\/]*)
4046
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4047
  ;;
4048
  *)
4049
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050
for as_dir in $PATH
4051
do
4052
  IFS=$as_save_IFS
4053
  test -z "$as_dir" && as_dir=.
4054
    for ac_exec_ext in '' $ac_executable_extensions; do
4055
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4056
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4057
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4058
    break 2
4059
  fi
4060
done
4061
  done
4062
IFS=$as_save_IFS
4063

    
4064
  ;;
4065
esac
4066
fi
4067
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4068
if test -n "$ac_pt_PKG_CONFIG"; then
4069
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4070
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4071
else
4072
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4073
$as_echo "no" >&6; }
4074
fi
4075

    
4076
  if test "x$ac_pt_PKG_CONFIG" = x; then
4077
    PKG_CONFIG=""
4078
  else
4079
    case $cross_compiling:$ac_tool_warned in
4080
yes:)
4081
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4082
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4083
ac_tool_warned=yes ;;
4084
esac
4085
    PKG_CONFIG=$ac_pt_PKG_CONFIG
4086
  fi
4087
else
4088
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4089
fi
4090

    
4091
fi
4092
if test -n "$PKG_CONFIG"; then
4093
	_pkg_min_version=0.9.0
4094
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4095
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4096
	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4097
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4098
$as_echo "yes" >&6; }
4099
	else
4100
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4101
$as_echo "no" >&6; }
4102
		PKG_CONFIG=""
4103
	fi
4104
fi
4105

    
4106

    
4107

    
4108

    
4109
if test x$QMAKE = x ; then
4110
   	# Extract the first word of "qmake-qt5", so it can be a program name with args.
4111
set dummy qmake-qt5; ac_word=$2
4112
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4113
$as_echo_n "checking for $ac_word... " >&6; }
4114
if ${ac_cv_prog_QMAKE+:} false; then :
4115
  $as_echo_n "(cached) " >&6
4116
else
4117
  if test -n "$QMAKE"; then
4118
  ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test.
4119
else
4120
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121
for as_dir in $QTDIR/bin/
4122
do
4123
  IFS=$as_save_IFS
4124
  test -z "$as_dir" && as_dir=.
4125
    for ac_exec_ext in '' $ac_executable_extensions; do
4126
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4127
    ac_cv_prog_QMAKE="$QTDIR/bin/qmake-qt5"
4128
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4129
    break 2
4130
  fi
4131
done
4132
  done
4133
IFS=$as_save_IFS
4134

    
4135
fi
4136
fi
4137
QMAKE=$ac_cv_prog_QMAKE
4138
if test -n "$QMAKE"; then
4139
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
4140
$as_echo "$QMAKE" >&6; }
4141
else
4142
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4143
$as_echo "no" >&6; }
4144
fi
4145

    
4146

    
4147
fi
4148
if test x$QMAKE = x ; then
4149
   	# Extract the first word of "qt5-qmake", so it can be a program name with args.
4150
set dummy qt5-qmake; ac_word=$2
4151
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4152
$as_echo_n "checking for $ac_word... " >&6; }
4153
if ${ac_cv_prog_QMAKE+:} false; then :
4154
  $as_echo_n "(cached) " >&6
4155
else
4156
  if test -n "$QMAKE"; then
4157
  ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test.
4158
else
4159
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4160
for as_dir in $QTDIR/bin/
4161
do
4162
  IFS=$as_save_IFS
4163
  test -z "$as_dir" && as_dir=.
4164
    for ac_exec_ext in '' $ac_executable_extensions; do
4165
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4166
    ac_cv_prog_QMAKE="$QTDIR/bin/qt5-qmake"
4167
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4168
    break 2
4169
  fi
4170
done
4171
  done
4172
IFS=$as_save_IFS
4173

    
4174
fi
4175
fi
4176
QMAKE=$ac_cv_prog_QMAKE
4177
if test -n "$QMAKE"; then
4178
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
4179
$as_echo "$QMAKE" >&6; }
4180
else
4181
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4182
$as_echo "no" >&6; }
4183
fi
4184

    
4185

    
4186
fi
4187
if test x$QMAKE = x ; then
4188
   	# Extract the first word of "qmake", so it can be a program name with args.
4189
set dummy qmake; ac_word=$2
4190
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4191
$as_echo_n "checking for $ac_word... " >&6; }
4192
if ${ac_cv_prog_QMAKE+:} false; then :
4193
  $as_echo_n "(cached) " >&6
4194
else
4195
  if test -n "$QMAKE"; then
4196
  ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test.
4197
else
4198
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4199
for as_dir in $QTDIR/bin/
4200
do
4201
  IFS=$as_save_IFS
4202
  test -z "$as_dir" && as_dir=.
4203
    for ac_exec_ext in '' $ac_executable_extensions; do
4204
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4205
    ac_cv_prog_QMAKE="$QTDIR/bin/qmake"
4206
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4207
    break 2
4208
  fi
4209
done
4210
  done
4211
IFS=$as_save_IFS
4212

    
4213
fi
4214
fi
4215
QMAKE=$ac_cv_prog_QMAKE
4216
if test -n "$QMAKE"; then
4217
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
4218
$as_echo "$QMAKE" >&6; }
4219
else
4220
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4221
$as_echo "no" >&6; }
4222
fi
4223

    
4224

    
4225
fi
4226
if test x$QMAKE = x ; then
4227
	# Extract the first word of "qmake.exe", so it can be a program name with args.
4228
set dummy qmake.exe; ac_word=$2
4229
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4230
$as_echo_n "checking for $ac_word... " >&6; }
4231
if ${ac_cv_prog_QMAKE+:} false; then :
4232
  $as_echo_n "(cached) " >&6
4233
else
4234
  if test -n "$QMAKE"; then
4235
  ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test.
4236
else
4237
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4238
for as_dir in $QTDIR/bin/
4239
do
4240
  IFS=$as_save_IFS
4241
  test -z "$as_dir" && as_dir=.
4242
    for ac_exec_ext in '' $ac_executable_extensions; do
4243
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4244
    ac_cv_prog_QMAKE="$QTDIR/bin/qmake.exe"
4245
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4246
    break 2
4247
  fi
4248
done
4249
  done
4250
IFS=$as_save_IFS
4251

    
4252
fi
4253
fi
4254
QMAKE=$ac_cv_prog_QMAKE
4255
if test -n "$QMAKE"; then
4256
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
4257
$as_echo "$QMAKE" >&6; }
4258
else
4259
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4260
$as_echo "no" >&6; }
4261
fi
4262

    
4263

    
4264
fi
4265
if test x$QMAKE = x ; then
4266
   	# Extract the first word of "qmake-qt5", so it can be a program name with args.
4267
set dummy qmake-qt5; ac_word=$2
4268
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4269
$as_echo_n "checking for $ac_word... " >&6; }
4270
if ${ac_cv_prog_QMAKE+:} false; then :
4271
  $as_echo_n "(cached) " >&6
4272
else
4273
  if test -n "$QMAKE"; then
4274
  ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test.
4275
else
4276
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277
for as_dir in $PATH
4278
do
4279
  IFS=$as_save_IFS
4280
  test -z "$as_dir" && as_dir=.
4281
    for ac_exec_ext in '' $ac_executable_extensions; do
4282
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4283
    ac_cv_prog_QMAKE="qmake-qt5"
4284
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4285
    break 2
4286
  fi
4287
done
4288
  done
4289
IFS=$as_save_IFS
4290

    
4291
fi
4292
fi
4293
QMAKE=$ac_cv_prog_QMAKE
4294
if test -n "$QMAKE"; then
4295
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
4296
$as_echo "$QMAKE" >&6; }
4297
else
4298
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4299
$as_echo "no" >&6; }
4300
fi
4301

    
4302

    
4303
fi
4304
if test x$QMAKE = x ; then
4305
   	# Extract the first word of "qt5-qmake", so it can be a program name with args.
4306
set dummy qt5-qmake; ac_word=$2
4307
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4308
$as_echo_n "checking for $ac_word... " >&6; }
4309
if ${ac_cv_prog_QMAKE+:} false; then :
4310
  $as_echo_n "(cached) " >&6
4311
else
4312
  if test -n "$QMAKE"; then
4313
  ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test.
4314
else
4315
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316
for as_dir in $PATH
4317
do
4318
  IFS=$as_save_IFS
4319
  test -z "$as_dir" && as_dir=.
4320
    for ac_exec_ext in '' $ac_executable_extensions; do
4321
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4322
    ac_cv_prog_QMAKE="qt5-qmake"
4323
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4324
    break 2
4325
  fi
4326
done
4327
  done
4328
IFS=$as_save_IFS
4329

    
4330
fi
4331
fi
4332
QMAKE=$ac_cv_prog_QMAKE
4333
if test -n "$QMAKE"; then
4334
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
4335
$as_echo "$QMAKE" >&6; }
4336
else
4337
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4338
$as_echo "no" >&6; }
4339
fi
4340

    
4341

    
4342
fi
4343
if test x$QMAKE = x ; then
4344
   	# Extract the first word of "qmake", so it can be a program name with args.
4345
set dummy qmake; ac_word=$2
4346
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4347
$as_echo_n "checking for $ac_word... " >&6; }
4348
if ${ac_cv_prog_QMAKE+:} false; then :
4349
  $as_echo_n "(cached) " >&6
4350
else
4351
  if test -n "$QMAKE"; then
4352
  ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test.
4353
else
4354
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4355
for as_dir in $PATH
4356
do
4357
  IFS=$as_save_IFS
4358
  test -z "$as_dir" && as_dir=.
4359
    for ac_exec_ext in '' $ac_executable_extensions; do
4360
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4361
    ac_cv_prog_QMAKE="qmake"
4362
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4363
    break 2
4364
  fi
4365
done
4366
  done
4367
IFS=$as_save_IFS
4368

    
4369
fi
4370
fi
4371
QMAKE=$ac_cv_prog_QMAKE
4372
if test -n "$QMAKE"; then
4373
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
4374
$as_echo "$QMAKE" >&6; }
4375
else
4376
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4377
$as_echo "no" >&6; }
4378
fi
4379

    
4380

    
4381
fi
4382
if test x$QMAKE = x ; then
4383
   	as_fn_error $? "
4384
Failed to find the required qmake-qt5 or qmake program.  Please
4385
ensure you have the necessary Qt5 development files installed, and
4386
if necessary set QTDIR to the location of your Qt5 installation.
4387
" "$LINENO" 5
4388
fi
4389

    
4390
# Suitable versions of qmake should print out something like:
4391
#
4392
#   QMake version 2.01a
4393
#   Using Qt version 4.6.3 in /usr/lib
4394
#
4395
# This may be translated, so we check only for the numbers (2.x and 4.x
4396
# in that order).
4397
#
4398
QMAKE_VERSION_OUTPUT=`$QMAKE -v`
4399
case "$QMAKE_VERSION_OUTPUT" in
4400
     *5.*) ;;
4401
     *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
4402
 *** The version of qmake found in \"$QMAKE\" looks like it might be
4403
     from the wrong version of Qt (Qt5 is required).  Please check
4404
     that this is the correct version of qmake for Qt5 builds.
4405
" >&5
4406
$as_echo "$as_me: WARNING:
4407
 *** The version of qmake found in \"$QMAKE\" looks like it might be
4408
     from the wrong version of Qt (Qt5 is required).  Please check
4409
     that this is the correct version of qmake for Qt5 builds.
4410
" >&2;}
4411
esac
4412

    
4413
case "`uname`" in
4414
     *Darwin*) QMAKE="$QMAKE -spec macx-g++";;
4415
esac
4416

    
4417

    
4418

    
4419
SV_DEFINES_DEBUG="-DDEBUG -DBUILD_DEBUG -DWANT_TIMING"
4420
SV_DEFINES_RELEASE="-DNDEBUG -DBUILD_RELEASE -DNO_TIMING -DNO_HIT_COUNTS"
4421

    
4422
# Now we have: USER_CXXFLAGS contains any flags the user set
4423
# explicitly; AUTOCONF_CXXFLAGS contains flags that Autoconf thought
4424
# we should use.  If we have GCC, we override the latter but then
4425
# allow ourselves to be overridden (later) by the former
4426

    
4427
CXXFLAGS_DEBUG="$AUTOCONF_CXXFLAGS"
4428
OPTFLAGS_DEBUG="-O2"
4429
LDFLAGS_DEBUG=""
4430
CXXFLAGS_RELEASE="$AUTOCONF_CXXFLAGS"
4431
OPTFLAGS_RELEASE="-O2"
4432
LDFLAGS_RELEASE=""
4433
CXXSTANDARD=c++14
4434

    
4435
if test "x$GCC" = "xyes"; then
4436
   	CXXFLAGS_ANY="-fpic -Wall -Wextra -Woverloaded-virtual -Wformat-nonliteral -Wformat-security -Winit-self -Wswitch-enum -Wconversion -pipe"
4437
        CXXFLAGS_DEBUG="$CXXFLAGS_ANY -g -Werror"
4438
        OPTFLAGS_DEBUG="-O2"
4439
   	CXXFLAGS_RELEASE="$CXXFLAGS_ANY -g0"
4440
        OPTFLAGS_RELEASE="-O3 -ffast-math"
4441
        LIBS_DEBUG="$LIBS"
4442
        as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags__--std=$CXXSTANDARD" | $as_tr_sh`
4443
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts --std=$CXXSTANDARD" >&5
4444
$as_echo_n "checking whether C++ compiler accepts --std=$CXXSTANDARD... " >&6; }
4445
if eval \${$as_CACHEVAR+:} false; then :
4446
  $as_echo_n "(cached) " >&6
4447
else
4448

    
4449
  ax_check_save_flags=$CXXFLAGS
4450
  CXXFLAGS="$CXXFLAGS  --std=$CXXSTANDARD"
4451
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4452
/* end confdefs.h.  */
4453

    
4454
int
4455
main ()
4456
{
4457

    
4458
  ;
4459
  return 0;
4460
}
4461
_ACEOF
4462
if ac_fn_cxx_try_compile "$LINENO"; then :
4463
  eval "$as_CACHEVAR=yes"
4464
else
4465
  eval "$as_CACHEVAR=no"
4466
fi
4467
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4468
  CXXFLAGS=$ax_check_save_flags
4469
fi
4470
eval ac_res=\$$as_CACHEVAR
4471
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4472
$as_echo "$ac_res" >&6; }
4473
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
4474
  :
4475
else
4476
  { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not appear to support $CXXSTANDARD, falling back to c++11" >&5
4477
$as_echo "$as_me: Compiler does not appear to support $CXXSTANDARD, falling back to c++11" >&6;}
4478
        CXXSTANDARD=c++11
4479
fi
4480

    
4481
fi
4482

    
4483
CXXFLAGS_BUILD="$CXXFLAGS_RELEASE $OPTFLAGS_RELEASE"
4484
LDFLAGS_BUILD="$LDFLAGS_RELEASE $OPTFLAGS_RELEASE"
4485
SV_DEFINES_BUILD="$SV_DEFINES_RELEASE"
4486

    
4487
QMAKE_CONFIG="release"
4488

    
4489
# Check whether --enable-debug was given.
4490
if test "${enable_debug+set}" = set; then :
4491
  enableval=$enable_debug; { $as_echo "$as_me:${as_lineno-$LINENO}: enabling debug build" >&5
4492
$as_echo "$as_me: enabling debug build" >&6;}
4493
QMAKE_CONFIG="debug"
4494
CXXFLAGS_BUILD="$CXXFLAGS_DEBUG $OPTFLAGS_DEBUG"
4495
LDFLAGS_BUILD="$LDFLAGS_DEBUG"
4496
SV_DEFINES_BUILD="$SV_DEFINES_DEBUG"
4497
LIBS="$LIBS_DEBUG"
4498
fi
4499

    
4500

    
4501
if test x"$USER_CXXFLAGS" != x; then
4502
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: The CXXFLAGS environment variable is set to \"$USER_CXXFLAGS\"." >&5
4503
$as_echo "$as_me: The CXXFLAGS environment variable is set to \"$USER_CXXFLAGS\"." >&6;}
4504
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Overriding default compiler flags with the above user setting." >&5
4505
$as_echo "$as_me: Overriding default compiler flags with the above user setting." >&6;}
4506
	CXXFLAGS_BUILD="$USER_CXXFLAGS"
4507
        LDFLAGS_BUILD=""
4508
fi
4509

    
4510
CXXFLAGS="$CXXFLAGS_BUILD $SV_DEFINES_BUILD"
4511
LDFLAGS="$LDFLAGS_BUILD"
4512

    
4513
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4514
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4515
		  inttypes.h stdint.h unistd.h
4516
do :
4517
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4518
ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4519
"
4520
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4521
  cat >>confdefs.h <<_ACEOF
4522
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4523
_ACEOF
4524

    
4525
fi
4526

    
4527
done
4528

    
4529

    
4530

    
4531
SV_MODULE_MODULE=bz2
4532
SV_MODULE_VERSION_TEST=""
4533
SV_MODULE_HEADER=bzlib.h
4534
SV_MODULE_LIB=bz2
4535
SV_MODULE_FUNC=BZ2_bzReadOpen
4536
SV_MODULE_HAVE=HAVE_$(echo bz2 | tr 'a-z' 'A-Z')
4537
SV_MODULE_FAILED=1
4538
if test -n "$bz2_LIBS" ; then
4539
   { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
4540
$as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
4541
   CXXFLAGS="$CXXFLAGS $bz2_CFLAGS"
4542
   LIBS="$LIBS $bz2_LIBS"
4543
   SV_MODULE_FAILED=""
4544
fi
4545
if test -z "$SV_MODULE_VERSION_TEST" ; then
4546
   SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
4547
fi
4548
if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
4549

    
4550
pkg_failed=no
4551
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bz2" >&5
4552
$as_echo_n "checking for bz2... " >&6; }
4553

    
4554
if test -n "$bz2_CFLAGS"; then
4555
    pkg_cv_bz2_CFLAGS="$bz2_CFLAGS"
4556
 elif test -n "$PKG_CONFIG"; then
4557
    if test -n "$PKG_CONFIG" && \
4558
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
4559
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
4560
  ac_status=$?
4561
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4562
  test $ac_status = 0; }; then
4563
  pkg_cv_bz2_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
4564
		      test "x$?" != "x0" && pkg_failed=yes
4565
else
4566
  pkg_failed=yes
4567
fi
4568
 else
4569
    pkg_failed=untried
4570
fi
4571
if test -n "$bz2_LIBS"; then
4572
    pkg_cv_bz2_LIBS="$bz2_LIBS"
4573
 elif test -n "$PKG_CONFIG"; then
4574
    if test -n "$PKG_CONFIG" && \
4575
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
4576
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
4577
  ac_status=$?
4578
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4579
  test $ac_status = 0; }; then
4580
  pkg_cv_bz2_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
4581
		      test "x$?" != "x0" && pkg_failed=yes
4582
else
4583
  pkg_failed=yes
4584
fi
4585
 else
4586
    pkg_failed=untried
4587
fi
4588

    
4589

    
4590

    
4591
if test $pkg_failed = yes; then
4592
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4593
$as_echo "no" >&6; }
4594

    
4595
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4596
        _pkg_short_errors_supported=yes
4597
else
4598
        _pkg_short_errors_supported=no
4599
fi
4600
        if test $_pkg_short_errors_supported = yes; then
4601
	        bz2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
4602
        else
4603
	        bz2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
4604
        fi
4605
	# Put the nasty error message in config.log where it belongs
4606
	echo "$bz2_PKG_ERRORS" >&5
4607

    
4608
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
4609
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
4610
elif test $pkg_failed = untried; then
4611
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4612
$as_echo "no" >&6; }
4613
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
4614
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
4615
else
4616
	bz2_CFLAGS=$pkg_cv_bz2_CFLAGS
4617
	bz2_LIBS=$pkg_cv_bz2_LIBS
4618
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4619
$as_echo "yes" >&6; }
4620
	HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $bz2_CFLAGS";LIBS="$LIBS $bz2_LIBS";SV_MODULE_FAILED=""
4621
fi
4622
fi
4623
if test -n "$SV_MODULE_FAILED"; then
4624
   as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
4625
ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
4626
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4627
  HAVES="$HAVES $SV_MODULE_HAVE"
4628
else
4629
  as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5
4630
fi
4631

    
4632

    
4633
   if test -n "$SV_MODULE_LIB"; then
4634
     as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
4635
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
4636
$as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
4637
if eval \${$as_ac_Lib+:} false; then :
4638
  $as_echo_n "(cached) " >&6
4639
else
4640
  ac_check_lib_save_LIBS=$LIBS
4641
LIBS="-l$SV_MODULE_LIB  $LIBS"
4642
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4643
/* end confdefs.h.  */
4644

    
4645
/* Override any GCC internal prototype to avoid an error.
4646
   Use char because int might match the return type of a GCC
4647
   builtin and then its argument prototype would still apply.  */
4648
#ifdef __cplusplus
4649
extern "C"
4650
#endif
4651
char $SV_MODULE_FUNC ();
4652
int
4653
main ()
4654
{
4655
return $SV_MODULE_FUNC ();
4656
  ;
4657
  return 0;
4658
}
4659
_ACEOF
4660
if ac_fn_cxx_try_link "$LINENO"; then :
4661
  eval "$as_ac_Lib=yes"
4662
else
4663
  eval "$as_ac_Lib=no"
4664
fi
4665
rm -f core conftest.err conftest.$ac_objext \
4666
    conftest$ac_exeext conftest.$ac_ext
4667
LIBS=$ac_check_lib_save_LIBS
4668
fi
4669
eval ac_res=\$$as_ac_Lib
4670
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4671
$as_echo "$ac_res" >&6; }
4672
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
4673
  LIBS="$LIBS -l$SV_MODULE_LIB"
4674
else
4675
  as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5
4676
fi
4677

    
4678
   fi
4679
fi
4680

    
4681

    
4682
SV_MODULE_MODULE=fftw3
4683
SV_MODULE_VERSION_TEST="fftw3 >= 3.0.0"
4684
SV_MODULE_HEADER=fftw3.h
4685
SV_MODULE_LIB=fftw3
4686
SV_MODULE_FUNC=fftw_execute
4687
SV_MODULE_HAVE=HAVE_$(echo fftw3 | tr 'a-z' 'A-Z')
4688
SV_MODULE_FAILED=1
4689
if test -n "$fftw3_LIBS" ; then
4690
   { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
4691
$as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
4692
   CXXFLAGS="$CXXFLAGS $fftw3_CFLAGS"
4693
   LIBS="$LIBS $fftw3_LIBS"
4694
   SV_MODULE_FAILED=""
4695
fi
4696
if test -z "$SV_MODULE_VERSION_TEST" ; then
4697
   SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
4698
fi
4699
if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
4700

    
4701
pkg_failed=no
4702
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw3" >&5
4703
$as_echo_n "checking for fftw3... " >&6; }
4704

    
4705
if test -n "$fftw3_CFLAGS"; then
4706
    pkg_cv_fftw3_CFLAGS="$fftw3_CFLAGS"
4707
 elif test -n "$PKG_CONFIG"; then
4708
    if test -n "$PKG_CONFIG" && \
4709
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
4710
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
4711
  ac_status=$?
4712
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4713
  test $ac_status = 0; }; then
4714
  pkg_cv_fftw3_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
4715
		      test "x$?" != "x0" && pkg_failed=yes
4716
else
4717
  pkg_failed=yes
4718
fi
4719
 else
4720
    pkg_failed=untried
4721
fi
4722
if test -n "$fftw3_LIBS"; then
4723
    pkg_cv_fftw3_LIBS="$fftw3_LIBS"
4724
 elif test -n "$PKG_CONFIG"; then
4725
    if test -n "$PKG_CONFIG" && \
4726
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
4727
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
4728
  ac_status=$?
4729
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4730
  test $ac_status = 0; }; then
4731
  pkg_cv_fftw3_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
4732
		      test "x$?" != "x0" && pkg_failed=yes
4733
else
4734
  pkg_failed=yes
4735
fi
4736
 else
4737
    pkg_failed=untried
4738
fi
4739

    
4740

    
4741

    
4742
if test $pkg_failed = yes; then
4743
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4744
$as_echo "no" >&6; }
4745

    
4746
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4747
        _pkg_short_errors_supported=yes
4748
else
4749
        _pkg_short_errors_supported=no
4750
fi
4751
        if test $_pkg_short_errors_supported = yes; then
4752
	        fftw3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
4753
        else
4754
	        fftw3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
4755
        fi
4756
	# Put the nasty error message in config.log where it belongs
4757
	echo "$fftw3_PKG_ERRORS" >&5
4758

    
4759
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
4760
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
4761
elif test $pkg_failed = untried; then
4762
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4763
$as_echo "no" >&6; }
4764
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
4765
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
4766
else
4767
	fftw3_CFLAGS=$pkg_cv_fftw3_CFLAGS
4768
	fftw3_LIBS=$pkg_cv_fftw3_LIBS
4769
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4770
$as_echo "yes" >&6; }
4771
	HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $fftw3_CFLAGS";LIBS="$LIBS $fftw3_LIBS";SV_MODULE_FAILED=""
4772
fi
4773
fi
4774
if test -n "$SV_MODULE_FAILED"; then
4775
   as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
4776
ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
4777
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4778
  HAVES="$HAVES $SV_MODULE_HAVE"
4779
else
4780
  as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5
4781
fi
4782

    
4783

    
4784
   if test -n "$SV_MODULE_LIB"; then
4785
     as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
4786
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
4787
$as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
4788
if eval \${$as_ac_Lib+:} false; then :
4789
  $as_echo_n "(cached) " >&6
4790
else
4791
  ac_check_lib_save_LIBS=$LIBS
4792
LIBS="-l$SV_MODULE_LIB  $LIBS"
4793
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4794
/* end confdefs.h.  */
4795

    
4796
/* Override any GCC internal prototype to avoid an error.
4797
   Use char because int might match the return type of a GCC
4798
   builtin and then its argument prototype would still apply.  */
4799
#ifdef __cplusplus
4800
extern "C"
4801
#endif
4802
char $SV_MODULE_FUNC ();
4803
int
4804
main ()
4805
{
4806
return $SV_MODULE_FUNC ();
4807
  ;
4808
  return 0;
4809
}
4810
_ACEOF
4811
if ac_fn_cxx_try_link "$LINENO"; then :
4812
  eval "$as_ac_Lib=yes"
4813
else
4814
  eval "$as_ac_Lib=no"
4815
fi
4816
rm -f core conftest.err conftest.$ac_objext \
4817
    conftest$ac_exeext conftest.$ac_ext
4818
LIBS=$ac_check_lib_save_LIBS
4819
fi
4820
eval ac_res=\$$as_ac_Lib
4821
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4822
$as_echo "$ac_res" >&6; }
4823
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
4824
  LIBS="$LIBS -l$SV_MODULE_LIB"
4825
else
4826
  as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5
4827
fi
4828

    
4829
   fi
4830
fi
4831

    
4832

    
4833
SV_MODULE_MODULE=fftw3f
4834
SV_MODULE_VERSION_TEST="fftw3f >= 3.0.0"
4835
SV_MODULE_HEADER=fftw3.h
4836
SV_MODULE_LIB=fftw3f
4837
SV_MODULE_FUNC=fftwf_execute
4838
SV_MODULE_HAVE=HAVE_$(echo fftw3f | tr 'a-z' 'A-Z')
4839
SV_MODULE_FAILED=1
4840
if test -n "$fftw3f_LIBS" ; then
4841
   { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
4842
$as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
4843
   CXXFLAGS="$CXXFLAGS $fftw3f_CFLAGS"
4844
   LIBS="$LIBS $fftw3f_LIBS"
4845
   SV_MODULE_FAILED=""
4846
fi
4847
if test -z "$SV_MODULE_VERSION_TEST" ; then
4848
   SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
4849
fi
4850
if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
4851

    
4852
pkg_failed=no
4853
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw3f" >&5
4854
$as_echo_n "checking for fftw3f... " >&6; }
4855

    
4856
if test -n "$fftw3f_CFLAGS"; then
4857
    pkg_cv_fftw3f_CFLAGS="$fftw3f_CFLAGS"
4858
 elif test -n "$PKG_CONFIG"; then
4859
    if test -n "$PKG_CONFIG" && \
4860
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
4861
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
4862
  ac_status=$?
4863
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4864
  test $ac_status = 0; }; then
4865
  pkg_cv_fftw3f_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
4866
		      test "x$?" != "x0" && pkg_failed=yes
4867
else
4868
  pkg_failed=yes
4869
fi
4870
 else
4871
    pkg_failed=untried
4872
fi
4873
if test -n "$fftw3f_LIBS"; then
4874
    pkg_cv_fftw3f_LIBS="$fftw3f_LIBS"
4875
 elif test -n "$PKG_CONFIG"; then
4876
    if test -n "$PKG_CONFIG" && \
4877
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
4878
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
4879
  ac_status=$?
4880
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4881
  test $ac_status = 0; }; then
4882
  pkg_cv_fftw3f_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
4883
		      test "x$?" != "x0" && pkg_failed=yes
4884
else
4885
  pkg_failed=yes
4886
fi
4887
 else
4888
    pkg_failed=untried
4889
fi
4890

    
4891

    
4892

    
4893
if test $pkg_failed = yes; then
4894
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4895
$as_echo "no" >&6; }
4896

    
4897
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4898
        _pkg_short_errors_supported=yes
4899
else
4900
        _pkg_short_errors_supported=no
4901
fi
4902
        if test $_pkg_short_errors_supported = yes; then
4903
	        fftw3f_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
4904
        else
4905
	        fftw3f_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
4906
        fi
4907
	# Put the nasty error message in config.log where it belongs
4908
	echo "$fftw3f_PKG_ERRORS" >&5
4909

    
4910
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
4911
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
4912
elif test $pkg_failed = untried; then
4913
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4914
$as_echo "no" >&6; }
4915
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
4916
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
4917
else
4918
	fftw3f_CFLAGS=$pkg_cv_fftw3f_CFLAGS
4919
	fftw3f_LIBS=$pkg_cv_fftw3f_LIBS
4920
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4921
$as_echo "yes" >&6; }
4922
	HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $fftw3f_CFLAGS";LIBS="$LIBS $fftw3f_LIBS";SV_MODULE_FAILED=""
4923
fi
4924
fi
4925
if test -n "$SV_MODULE_FAILED"; then
4926
   as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
4927
ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
4928
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4929
  HAVES="$HAVES $SV_MODULE_HAVE"
4930
else
4931
  as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5
4932
fi
4933

    
4934

    
4935
   if test -n "$SV_MODULE_LIB"; then
4936
     as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
4937
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
4938
$as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
4939
if eval \${$as_ac_Lib+:} false; then :
4940
  $as_echo_n "(cached) " >&6
4941
else
4942
  ac_check_lib_save_LIBS=$LIBS
4943
LIBS="-l$SV_MODULE_LIB  $LIBS"
4944
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4945
/* end confdefs.h.  */
4946

    
4947
/* Override any GCC internal prototype to avoid an error.
4948
   Use char because int might match the return type of a GCC
4949
   builtin and then its argument prototype would still apply.  */
4950
#ifdef __cplusplus
4951
extern "C"
4952
#endif
4953
char $SV_MODULE_FUNC ();
4954
int
4955
main ()
4956
{
4957
return $SV_MODULE_FUNC ();
4958
  ;
4959
  return 0;
4960
}
4961
_ACEOF
4962
if ac_fn_cxx_try_link "$LINENO"; then :
4963
  eval "$as_ac_Lib=yes"
4964
else
4965
  eval "$as_ac_Lib=no"
4966
fi
4967
rm -f core conftest.err conftest.$ac_objext \
4968
    conftest$ac_exeext conftest.$ac_ext
4969
LIBS=$ac_check_lib_save_LIBS
4970
fi
4971
eval ac_res=\$$as_ac_Lib
4972
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4973
$as_echo "$ac_res" >&6; }
4974
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
4975
  LIBS="$LIBS -l$SV_MODULE_LIB"
4976
else
4977
  as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5
4978
fi
4979

    
4980
   fi
4981
fi
4982

    
4983

    
4984
SV_MODULE_MODULE=sndfile
4985
SV_MODULE_VERSION_TEST="sndfile >= 1.0.16"
4986
SV_MODULE_HEADER=sndfile.h
4987
SV_MODULE_LIB=sndfile
4988
SV_MODULE_FUNC=sf_open
4989
SV_MODULE_HAVE=HAVE_$(echo sndfile | tr 'a-z' 'A-Z')
4990
SV_MODULE_FAILED=1
4991
if test -n "$sndfile_LIBS" ; then
4992
   { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
4993
$as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
4994
   CXXFLAGS="$CXXFLAGS $sndfile_CFLAGS"
4995
   LIBS="$LIBS $sndfile_LIBS"
4996
   SV_MODULE_FAILED=""
4997
fi
4998
if test -z "$SV_MODULE_VERSION_TEST" ; then
4999
   SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
5000
fi
5001
if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
5002

    
5003
pkg_failed=no
5004
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndfile" >&5
5005
$as_echo_n "checking for sndfile... " >&6; }
5006

    
5007
if test -n "$sndfile_CFLAGS"; then
5008
    pkg_cv_sndfile_CFLAGS="$sndfile_CFLAGS"
5009
 elif test -n "$PKG_CONFIG"; then
5010
    if test -n "$PKG_CONFIG" && \
5011
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5012
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5013
  ac_status=$?
5014
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5015
  test $ac_status = 0; }; then
5016
  pkg_cv_sndfile_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5017
		      test "x$?" != "x0" && pkg_failed=yes
5018
else
5019
  pkg_failed=yes
5020
fi
5021
 else
5022
    pkg_failed=untried
5023
fi
5024
if test -n "$sndfile_LIBS"; then
5025
    pkg_cv_sndfile_LIBS="$sndfile_LIBS"
5026
 elif test -n "$PKG_CONFIG"; then
5027
    if test -n "$PKG_CONFIG" && \
5028
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5029
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5030
  ac_status=$?
5031
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5032
  test $ac_status = 0; }; then
5033
  pkg_cv_sndfile_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5034
		      test "x$?" != "x0" && pkg_failed=yes
5035
else
5036
  pkg_failed=yes
5037
fi
5038
 else
5039
    pkg_failed=untried
5040
fi
5041

    
5042

    
5043

    
5044
if test $pkg_failed = yes; then
5045
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5046
$as_echo "no" >&6; }
5047

    
5048
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5049
        _pkg_short_errors_supported=yes
5050
else
5051
        _pkg_short_errors_supported=no
5052
fi
5053
        if test $_pkg_short_errors_supported = yes; then
5054
	        sndfile_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5055
        else
5056
	        sndfile_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5057
        fi
5058
	# Put the nasty error message in config.log where it belongs
5059
	echo "$sndfile_PKG_ERRORS" >&5
5060

    
5061
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
5062
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5063
elif test $pkg_failed = untried; then
5064
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5065
$as_echo "no" >&6; }
5066
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
5067
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5068
else
5069
	sndfile_CFLAGS=$pkg_cv_sndfile_CFLAGS
5070
	sndfile_LIBS=$pkg_cv_sndfile_LIBS
5071
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5072
$as_echo "yes" >&6; }
5073
	HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $sndfile_CFLAGS";LIBS="$LIBS $sndfile_LIBS";SV_MODULE_FAILED=""
5074
fi
5075
fi
5076
if test -n "$SV_MODULE_FAILED"; then
5077
   as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
5078
ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
5079
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5080
  HAVES="$HAVES $SV_MODULE_HAVE"
5081
else
5082
  as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5
5083
fi
5084

    
5085

    
5086
   if test -n "$SV_MODULE_LIB"; then
5087
     as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
5088
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
5089
$as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
5090
if eval \${$as_ac_Lib+:} false; then :
5091
  $as_echo_n "(cached) " >&6
5092
else
5093
  ac_check_lib_save_LIBS=$LIBS
5094
LIBS="-l$SV_MODULE_LIB  $LIBS"
5095
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5096
/* end confdefs.h.  */
5097

    
5098
/* Override any GCC internal prototype to avoid an error.
5099
   Use char because int might match the return type of a GCC
5100
   builtin and then its argument prototype would still apply.  */
5101
#ifdef __cplusplus
5102
extern "C"
5103
#endif
5104
char $SV_MODULE_FUNC ();
5105
int
5106
main ()
5107
{
5108
return $SV_MODULE_FUNC ();
5109
  ;
5110
  return 0;
5111
}
5112
_ACEOF
5113
if ac_fn_cxx_try_link "$LINENO"; then :
5114
  eval "$as_ac_Lib=yes"
5115
else
5116
  eval "$as_ac_Lib=no"
5117
fi
5118
rm -f core conftest.err conftest.$ac_objext \
5119
    conftest$ac_exeext conftest.$ac_ext
5120
LIBS=$ac_check_lib_save_LIBS
5121
fi
5122
eval ac_res=\$$as_ac_Lib
5123
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5124
$as_echo "$ac_res" >&6; }
5125
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
5126
  LIBS="$LIBS -l$SV_MODULE_LIB"
5127
else
5128
  as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5
5129
fi
5130

    
5131
   fi
5132
fi
5133

    
5134

    
5135
SV_MODULE_MODULE=samplerate
5136
SV_MODULE_VERSION_TEST="samplerate >= 0.1.2"
5137
SV_MODULE_HEADER=samplerate.h
5138
SV_MODULE_LIB=samplerate
5139
SV_MODULE_FUNC=src_new
5140
SV_MODULE_HAVE=HAVE_$(echo samplerate | tr 'a-z' 'A-Z')
5141
SV_MODULE_FAILED=1
5142
if test -n "$samplerate_LIBS" ; then
5143
   { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
5144
$as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
5145
   CXXFLAGS="$CXXFLAGS $samplerate_CFLAGS"
5146
   LIBS="$LIBS $samplerate_LIBS"
5147
   SV_MODULE_FAILED=""
5148
fi
5149
if test -z "$SV_MODULE_VERSION_TEST" ; then
5150
   SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
5151
fi
5152
if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
5153

    
5154
pkg_failed=no
5155
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for samplerate" >&5
5156
$as_echo_n "checking for samplerate... " >&6; }
5157

    
5158
if test -n "$samplerate_CFLAGS"; then
5159
    pkg_cv_samplerate_CFLAGS="$samplerate_CFLAGS"
5160
 elif test -n "$PKG_CONFIG"; then
5161
    if test -n "$PKG_CONFIG" && \
5162
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5163
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5164
  ac_status=$?
5165
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5166
  test $ac_status = 0; }; then
5167
  pkg_cv_samplerate_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5168
		      test "x$?" != "x0" && pkg_failed=yes
5169
else
5170
  pkg_failed=yes
5171
fi
5172
 else
5173
    pkg_failed=untried
5174
fi
5175
if test -n "$samplerate_LIBS"; then
5176
    pkg_cv_samplerate_LIBS="$samplerate_LIBS"
5177
 elif test -n "$PKG_CONFIG"; then
5178
    if test -n "$PKG_CONFIG" && \
5179
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5180
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5181
  ac_status=$?
5182
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5183
  test $ac_status = 0; }; then
5184
  pkg_cv_samplerate_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5185
		      test "x$?" != "x0" && pkg_failed=yes
5186
else
5187
  pkg_failed=yes
5188
fi
5189
 else
5190
    pkg_failed=untried
5191
fi
5192

    
5193

    
5194

    
5195
if test $pkg_failed = yes; then
5196
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5197
$as_echo "no" >&6; }
5198

    
5199
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5200
        _pkg_short_errors_supported=yes
5201
else
5202
        _pkg_short_errors_supported=no
5203
fi
5204
        if test $_pkg_short_errors_supported = yes; then
5205
	        samplerate_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5206
        else
5207
	        samplerate_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5208
        fi
5209
	# Put the nasty error message in config.log where it belongs
5210
	echo "$samplerate_PKG_ERRORS" >&5
5211

    
5212
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
5213
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5214
elif test $pkg_failed = untried; then
5215
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5216
$as_echo "no" >&6; }
5217
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
5218
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5219
else
5220
	samplerate_CFLAGS=$pkg_cv_samplerate_CFLAGS
5221
	samplerate_LIBS=$pkg_cv_samplerate_LIBS
5222
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5223
$as_echo "yes" >&6; }
5224
	HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $samplerate_CFLAGS";LIBS="$LIBS $samplerate_LIBS";SV_MODULE_FAILED=""
5225
fi
5226
fi
5227
if test -n "$SV_MODULE_FAILED"; then
5228
   as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
5229
ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
5230
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5231
  HAVES="$HAVES $SV_MODULE_HAVE"
5232
else
5233
  as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5
5234
fi
5235

    
5236

    
5237
   if test -n "$SV_MODULE_LIB"; then
5238
     as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
5239
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
5240
$as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
5241
if eval \${$as_ac_Lib+:} false; then :
5242
  $as_echo_n "(cached) " >&6
5243
else
5244
  ac_check_lib_save_LIBS=$LIBS
5245
LIBS="-l$SV_MODULE_LIB  $LIBS"
5246
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5247
/* end confdefs.h.  */
5248

    
5249
/* Override any GCC internal prototype to avoid an error.
5250
   Use char because int might match the return type of a GCC
5251
   builtin and then its argument prototype would still apply.  */
5252
#ifdef __cplusplus
5253
extern "C"
5254
#endif
5255
char $SV_MODULE_FUNC ();
5256
int
5257
main ()
5258
{
5259
return $SV_MODULE_FUNC ();
5260
  ;
5261
  return 0;
5262
}
5263
_ACEOF
5264
if ac_fn_cxx_try_link "$LINENO"; then :
5265
  eval "$as_ac_Lib=yes"
5266
else
5267
  eval "$as_ac_Lib=no"
5268
fi
5269
rm -f core conftest.err conftest.$ac_objext \
5270
    conftest$ac_exeext conftest.$ac_ext
5271
LIBS=$ac_check_lib_save_LIBS
5272
fi
5273
eval ac_res=\$$as_ac_Lib
5274
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5275
$as_echo "$ac_res" >&6; }
5276
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
5277
  LIBS="$LIBS -l$SV_MODULE_LIB"
5278
else
5279
  as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5
5280
fi
5281

    
5282
   fi
5283
fi
5284

    
5285

    
5286
SV_MODULE_MODULE=rubberband
5287
SV_MODULE_VERSION_TEST="rubberband"
5288
SV_MODULE_HEADER=rubberband/RubberBandStretcher.h
5289
SV_MODULE_LIB=rubberband
5290
SV_MODULE_FUNC=rubberband_new
5291
SV_MODULE_HAVE=HAVE_$(echo rubberband | tr 'a-z' 'A-Z')
5292
SV_MODULE_FAILED=1
5293
if test -n "$rubberband_LIBS" ; then
5294
   { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
5295
$as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
5296
   CXXFLAGS="$CXXFLAGS $rubberband_CFLAGS"
5297
   LIBS="$LIBS $rubberband_LIBS"
5298
   SV_MODULE_FAILED=""
5299
fi
5300
if test -z "$SV_MODULE_VERSION_TEST" ; then
5301
   SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
5302
fi
5303
if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
5304

    
5305
pkg_failed=no
5306
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rubberband" >&5
5307
$as_echo_n "checking for rubberband... " >&6; }
5308

    
5309
if test -n "$rubberband_CFLAGS"; then
5310
    pkg_cv_rubberband_CFLAGS="$rubberband_CFLAGS"
5311
 elif test -n "$PKG_CONFIG"; then
5312
    if test -n "$PKG_CONFIG" && \
5313
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5314
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5315
  ac_status=$?
5316
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5317
  test $ac_status = 0; }; then
5318
  pkg_cv_rubberband_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5319
		      test "x$?" != "x0" && pkg_failed=yes
5320
else
5321
  pkg_failed=yes
5322
fi
5323
 else
5324
    pkg_failed=untried
5325
fi
5326
if test -n "$rubberband_LIBS"; then
5327
    pkg_cv_rubberband_LIBS="$rubberband_LIBS"
5328
 elif test -n "$PKG_CONFIG"; then
5329
    if test -n "$PKG_CONFIG" && \
5330
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5331
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5332
  ac_status=$?
5333
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5334
  test $ac_status = 0; }; then
5335
  pkg_cv_rubberband_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5336
		      test "x$?" != "x0" && pkg_failed=yes
5337
else
5338
  pkg_failed=yes
5339
fi
5340
 else
5341
    pkg_failed=untried
5342
fi
5343

    
5344

    
5345

    
5346
if test $pkg_failed = yes; then
5347
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5348
$as_echo "no" >&6; }
5349

    
5350
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5351
        _pkg_short_errors_supported=yes
5352
else
5353
        _pkg_short_errors_supported=no
5354
fi
5355
        if test $_pkg_short_errors_supported = yes; then
5356
	        rubberband_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5357
        else
5358
	        rubberband_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5359
        fi
5360
	# Put the nasty error message in config.log where it belongs
5361
	echo "$rubberband_PKG_ERRORS" >&5
5362

    
5363
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
5364
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5365
elif test $pkg_failed = untried; then
5366
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5367
$as_echo "no" >&6; }
5368
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
5369
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5370
else
5371
	rubberband_CFLAGS=$pkg_cv_rubberband_CFLAGS
5372
	rubberband_LIBS=$pkg_cv_rubberband_LIBS
5373
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5374
$as_echo "yes" >&6; }
5375
	HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $rubberband_CFLAGS";LIBS="$LIBS $rubberband_LIBS";SV_MODULE_FAILED=""
5376
fi
5377
fi
5378
if test -n "$SV_MODULE_FAILED"; then
5379
   as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
5380
ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
5381
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5382
  HAVES="$HAVES $SV_MODULE_HAVE"
5383
else
5384
  as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5
5385
fi
5386

    
5387

    
5388
   if test -n "$SV_MODULE_LIB"; then
5389
     as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
5390
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
5391
$as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
5392
if eval \${$as_ac_Lib+:} false; then :
5393
  $as_echo_n "(cached) " >&6
5394
else
5395
  ac_check_lib_save_LIBS=$LIBS
5396
LIBS="-l$SV_MODULE_LIB  $LIBS"
5397
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5398
/* end confdefs.h.  */
5399

    
5400
/* Override any GCC internal prototype to avoid an error.
5401
   Use char because int might match the return type of a GCC
5402
   builtin and then its argument prototype would still apply.  */
5403
#ifdef __cplusplus
5404
extern "C"
5405
#endif
5406
char $SV_MODULE_FUNC ();
5407
int
5408
main ()
5409
{
5410
return $SV_MODULE_FUNC ();
5411
  ;
5412
  return 0;
5413
}
5414
_ACEOF
5415
if ac_fn_cxx_try_link "$LINENO"; then :
5416
  eval "$as_ac_Lib=yes"
5417
else
5418
  eval "$as_ac_Lib=no"
5419
fi
5420
rm -f core conftest.err conftest.$ac_objext \
5421
    conftest$ac_exeext conftest.$ac_ext
5422
LIBS=$ac_check_lib_save_LIBS
5423
fi
5424
eval ac_res=\$$as_ac_Lib
5425
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5426
$as_echo "$ac_res" >&6; }
5427
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
5428
  LIBS="$LIBS -l$SV_MODULE_LIB"
5429
else
5430
  as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5
5431
fi
5432

    
5433
   fi
5434
fi
5435

    
5436

    
5437
SV_MODULE_MODULE=sord
5438
SV_MODULE_VERSION_TEST="sord-0 >= 0.5"
5439
SV_MODULE_HEADER=sord/sord.h
5440
SV_MODULE_LIB=sord-0
5441
SV_MODULE_FUNC=sord_world_new
5442
SV_MODULE_HAVE=HAVE_$(echo sord | tr 'a-z' 'A-Z')
5443
SV_MODULE_FAILED=1
5444
if test -n "$sord_LIBS" ; then
5445
   { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
5446
$as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
5447
   CXXFLAGS="$CXXFLAGS $sord_CFLAGS"
5448
   LIBS="$LIBS $sord_LIBS"
5449
   SV_MODULE_FAILED=""
5450
fi
5451
if test -z "$SV_MODULE_VERSION_TEST" ; then
5452
   SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
5453
fi
5454
if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
5455

    
5456
pkg_failed=no
5457
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sord" >&5
5458
$as_echo_n "checking for sord... " >&6; }
5459

    
5460
if test -n "$sord_CFLAGS"; then
5461
    pkg_cv_sord_CFLAGS="$sord_CFLAGS"
5462
 elif test -n "$PKG_CONFIG"; then
5463
    if test -n "$PKG_CONFIG" && \
5464
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5465
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5466
  ac_status=$?
5467
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5468
  test $ac_status = 0; }; then
5469
  pkg_cv_sord_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5470
		      test "x$?" != "x0" && pkg_failed=yes
5471
else
5472
  pkg_failed=yes
5473
fi
5474
 else
5475
    pkg_failed=untried
5476
fi
5477
if test -n "$sord_LIBS"; then
5478
    pkg_cv_sord_LIBS="$sord_LIBS"
5479
 elif test -n "$PKG_CONFIG"; then
5480
    if test -n "$PKG_CONFIG" && \
5481
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5482
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5483
  ac_status=$?
5484
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5485
  test $ac_status = 0; }; then
5486
  pkg_cv_sord_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5487
		      test "x$?" != "x0" && pkg_failed=yes
5488
else
5489
  pkg_failed=yes
5490
fi
5491
 else
5492
    pkg_failed=untried
5493
fi
5494

    
5495

    
5496

    
5497
if test $pkg_failed = yes; then
5498
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5499
$as_echo "no" >&6; }
5500

    
5501
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5502
        _pkg_short_errors_supported=yes
5503
else
5504
        _pkg_short_errors_supported=no
5505
fi
5506
        if test $_pkg_short_errors_supported = yes; then
5507
	        sord_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5508
        else
5509
	        sord_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5510
        fi
5511
	# Put the nasty error message in config.log where it belongs
5512
	echo "$sord_PKG_ERRORS" >&5
5513

    
5514
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
5515
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5516
elif test $pkg_failed = untried; then
5517
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5518
$as_echo "no" >&6; }
5519
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
5520
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5521
else
5522
	sord_CFLAGS=$pkg_cv_sord_CFLAGS
5523
	sord_LIBS=$pkg_cv_sord_LIBS
5524
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5525
$as_echo "yes" >&6; }
5526
	HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $sord_CFLAGS";LIBS="$LIBS $sord_LIBS";SV_MODULE_FAILED=""
5527
fi
5528
fi
5529
if test -n "$SV_MODULE_FAILED"; then
5530
   as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
5531
ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
5532
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5533
  HAVES="$HAVES $SV_MODULE_HAVE"
5534
else
5535
  as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5
5536
fi
5537

    
5538

    
5539
   if test -n "$SV_MODULE_LIB"; then
5540
     as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
5541
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
5542
$as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
5543
if eval \${$as_ac_Lib+:} false; then :
5544
  $as_echo_n "(cached) " >&6
5545
else
5546
  ac_check_lib_save_LIBS=$LIBS
5547
LIBS="-l$SV_MODULE_LIB  $LIBS"
5548
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5549
/* end confdefs.h.  */
5550

    
5551
/* Override any GCC internal prototype to avoid an error.
5552
   Use char because int might match the return type of a GCC
5553
   builtin and then its argument prototype would still apply.  */
5554
#ifdef __cplusplus
5555
extern "C"
5556
#endif
5557
char $SV_MODULE_FUNC ();
5558
int
5559
main ()
5560
{
5561
return $SV_MODULE_FUNC ();
5562
  ;
5563
  return 0;
5564
}
5565
_ACEOF
5566
if ac_fn_cxx_try_link "$LINENO"; then :
5567
  eval "$as_ac_Lib=yes"
5568
else
5569
  eval "$as_ac_Lib=no"
5570
fi
5571
rm -f core conftest.err conftest.$ac_objext \
5572
    conftest$ac_exeext conftest.$ac_ext
5573
LIBS=$ac_check_lib_save_LIBS
5574
fi
5575
eval ac_res=\$$as_ac_Lib
5576
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5577
$as_echo "$ac_res" >&6; }
5578
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
5579
  LIBS="$LIBS -l$SV_MODULE_LIB"
5580
else
5581
  as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5
5582
fi
5583

    
5584
   fi
5585
fi
5586

    
5587

    
5588
SV_MODULE_MODULE=serd
5589
SV_MODULE_VERSION_TEST="serd-0 >= 0.5"
5590
SV_MODULE_HEADER=serd/serd.h
5591
SV_MODULE_LIB=serd-0
5592
SV_MODULE_FUNC=serd_reader_read_file
5593
SV_MODULE_HAVE=HAVE_$(echo serd | tr 'a-z' 'A-Z')
5594
SV_MODULE_FAILED=1
5595
if test -n "$serd_LIBS" ; then
5596
   { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
5597
$as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
5598
   CXXFLAGS="$CXXFLAGS $serd_CFLAGS"
5599
   LIBS="$LIBS $serd_LIBS"
5600
   SV_MODULE_FAILED=""
5601
fi
5602
if test -z "$SV_MODULE_VERSION_TEST" ; then
5603
   SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
5604
fi
5605
if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
5606

    
5607
pkg_failed=no
5608
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for serd" >&5
5609
$as_echo_n "checking for serd... " >&6; }
5610

    
5611
if test -n "$serd_CFLAGS"; then
5612
    pkg_cv_serd_CFLAGS="$serd_CFLAGS"
5613
 elif test -n "$PKG_CONFIG"; then
5614
    if test -n "$PKG_CONFIG" && \
5615
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5616
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5617
  ac_status=$?
5618
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5619
  test $ac_status = 0; }; then
5620
  pkg_cv_serd_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5621
		      test "x$?" != "x0" && pkg_failed=yes
5622
else
5623
  pkg_failed=yes
5624
fi
5625
 else
5626
    pkg_failed=untried
5627
fi
5628
if test -n "$serd_LIBS"; then
5629
    pkg_cv_serd_LIBS="$serd_LIBS"
5630
 elif test -n "$PKG_CONFIG"; then
5631
    if test -n "$PKG_CONFIG" && \
5632
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5633
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5634
  ac_status=$?
5635
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5636
  test $ac_status = 0; }; then
5637
  pkg_cv_serd_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5638
		      test "x$?" != "x0" && pkg_failed=yes
5639
else
5640
  pkg_failed=yes
5641
fi
5642
 else
5643
    pkg_failed=untried
5644
fi
5645

    
5646

    
5647

    
5648
if test $pkg_failed = yes; then
5649
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5650
$as_echo "no" >&6; }
5651

    
5652
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5653
        _pkg_short_errors_supported=yes
5654
else
5655
        _pkg_short_errors_supported=no
5656
fi
5657
        if test $_pkg_short_errors_supported = yes; then
5658
	        serd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5659
        else
5660
	        serd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5661
        fi
5662
	# Put the nasty error message in config.log where it belongs
5663
	echo "$serd_PKG_ERRORS" >&5
5664

    
5665
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
5666
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5667
elif test $pkg_failed = untried; then
5668
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5669
$as_echo "no" >&6; }
5670
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
5671
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5672
else
5673
	serd_CFLAGS=$pkg_cv_serd_CFLAGS
5674
	serd_LIBS=$pkg_cv_serd_LIBS
5675
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5676
$as_echo "yes" >&6; }
5677
	HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $serd_CFLAGS";LIBS="$LIBS $serd_LIBS";SV_MODULE_FAILED=""
5678
fi
5679
fi
5680
if test -n "$SV_MODULE_FAILED"; then
5681
   as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
5682
ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
5683
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5684
  HAVES="$HAVES $SV_MODULE_HAVE"
5685
else
5686
  as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5
5687
fi
5688

    
5689

    
5690
   if test -n "$SV_MODULE_LIB"; then
5691
     as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
5692
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
5693
$as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
5694
if eval \${$as_ac_Lib+:} false; then :
5695
  $as_echo_n "(cached) " >&6
5696
else
5697
  ac_check_lib_save_LIBS=$LIBS
5698
LIBS="-l$SV_MODULE_LIB  $LIBS"
5699
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5700
/* end confdefs.h.  */
5701

    
5702
/* Override any GCC internal prototype to avoid an error.
5703
   Use char because int might match the return type of a GCC
5704
   builtin and then its argument prototype would still apply.  */
5705
#ifdef __cplusplus
5706
extern "C"
5707
#endif
5708
char $SV_MODULE_FUNC ();
5709
int
5710
main ()
5711
{
5712
return $SV_MODULE_FUNC ();
5713
  ;
5714
  return 0;
5715
}
5716
_ACEOF
5717
if ac_fn_cxx_try_link "$LINENO"; then :
5718
  eval "$as_ac_Lib=yes"
5719
else
5720
  eval "$as_ac_Lib=no"
5721
fi
5722
rm -f core conftest.err conftest.$ac_objext \
5723
    conftest$ac_exeext conftest.$ac_ext
5724
LIBS=$ac_check_lib_save_LIBS
5725
fi
5726
eval ac_res=\$$as_ac_Lib
5727
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5728
$as_echo "$ac_res" >&6; }
5729
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
5730
  LIBS="$LIBS -l$SV_MODULE_LIB"
5731
else
5732
  as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5
5733
fi
5734

    
5735
   fi
5736
fi
5737

    
5738

    
5739
# We need a Cap'n Proto version with the expectedSizeInWordsFromPrefix
5740
# function, which appeared in v0.6. If we can't find at least that
5741
# version with pkg-config, we check for the symbol with the compiler.
5742

    
5743
pkg_failed=no
5744
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for capnp" >&5
5745
$as_echo_n "checking for capnp... " >&6; }
5746

    
5747
if test -n "$capnp_CFLAGS"; then
5748
    pkg_cv_capnp_CFLAGS="$capnp_CFLAGS"
5749
 elif test -n "$PKG_CONFIG"; then
5750
    if test -n "$PKG_CONFIG" && \
5751
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"capnp >= 0.6\""; } >&5
5752
  ($PKG_CONFIG --exists --print-errors "capnp >= 0.6") 2>&5
5753
  ac_status=$?
5754
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5755
  test $ac_status = 0; }; then
5756
  pkg_cv_capnp_CFLAGS=`$PKG_CONFIG --cflags "capnp >= 0.6" 2>/dev/null`
5757
		      test "x$?" != "x0" && pkg_failed=yes
5758
else
5759
  pkg_failed=yes
5760
fi
5761
 else
5762
    pkg_failed=untried
5763
fi
5764
if test -n "$capnp_LIBS"; then
5765
    pkg_cv_capnp_LIBS="$capnp_LIBS"
5766
 elif test -n "$PKG_CONFIG"; then
5767
    if test -n "$PKG_CONFIG" && \
5768
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"capnp >= 0.6\""; } >&5
5769
  ($PKG_CONFIG --exists --print-errors "capnp >= 0.6") 2>&5
5770
  ac_status=$?
5771
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5772
  test $ac_status = 0; }; then
5773
  pkg_cv_capnp_LIBS=`$PKG_CONFIG --libs "capnp >= 0.6" 2>/dev/null`
5774
		      test "x$?" != "x0" && pkg_failed=yes
5775
else
5776
  pkg_failed=yes
5777
fi
5778
 else
5779
    pkg_failed=untried
5780
fi
5781

    
5782

    
5783

    
5784
if test $pkg_failed = yes; then
5785
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5786
$as_echo "no" >&6; }
5787

    
5788
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5789
        _pkg_short_errors_supported=yes
5790
else
5791
        _pkg_short_errors_supported=no
5792
fi
5793
        if test $_pkg_short_errors_supported = yes; then
5794
	        capnp_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "capnp >= 0.6" 2>&1`
5795
        else
5796
	        capnp_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "capnp >= 0.6" 2>&1`
5797
        fi
5798
	# Put the nasty error message in config.log where it belongs
5799
	echo "$capnp_PKG_ERRORS" >&5
5800

    
5801
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module capnp using pkg-config, trying again by old-fashioned means" >&5
5802
$as_echo "$as_me: Failed to find required module capnp using pkg-config, trying again by old-fashioned means" >&6;}
5803
elif test $pkg_failed = untried; then
5804
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5805
$as_echo "no" >&6; }
5806
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module capnp using pkg-config, trying again by old-fashioned means" >&5
5807
$as_echo "$as_me: Failed to find required module capnp using pkg-config, trying again by old-fashioned means" >&6;}
5808
else
5809
	capnp_CFLAGS=$pkg_cv_capnp_CFLAGS
5810
	capnp_LIBS=$pkg_cv_capnp_LIBS
5811
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5812
$as_echo "yes" >&6; }
5813
	HAVES="$HAVES HAVE_CAPNP";CXXFLAGS="$CXXFLAGS $capnp_CFLAGS";LIBS="$LIBS $capnp_LIBS"
5814
fi
5815
if test -z "$capnp_LIBS" ; then
5816
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5817
/* end confdefs.h.  */
5818

    
5819

    
5820
        #include <capnp/serialize.h>
5821
        int main() {
5822
            kj::Array<capnp::word> prefix;
5823
            return capnp::expectedSizeInWordsFromPrefix(prefix.asPtr());
5824
        }
5825
_ACEOF
5826
if ac_fn_cxx_try_compile "$LINENO"; then :
5827
  HAVES="$HAVES HAVE_CAPNP";LIBS="$LIBS -lcapnp -lkj"
5828
else
5829
  as_fn_error $? "Failed to find appropriate capnp library" "$LINENO" 5
5830

    
5831
fi
5832
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5833
fi
5834

    
5835

    
5836
SV_MODULE_MODULE=liblo
5837
SV_MODULE_VERSION_TEST=""
5838
SV_MODULE_HEADER=lo/lo.h
5839
SV_MODULE_LIB=lo
5840
SV_MODULE_FUNC=lo_address_new
5841
SV_MODULE_HAVE=HAVE_$(echo liblo | tr 'a-z' 'A-Z')
5842
SV_MODULE_FAILED=1
5843
if test -n "$liblo_LIBS" ; then
5844
   { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
5845
$as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
5846
   CXXFLAGS="$CXXFLAGS $liblo_CFLAGS"
5847
   LIBS="$LIBS $liblo_LIBS"
5848
   SV_MODULE_FAILED=""
5849
fi
5850
if test -z "$SV_MODULE_VERSION_TEST" ; then
5851
   SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
5852
fi
5853
if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
5854

    
5855
pkg_failed=no
5856
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblo" >&5
5857
$as_echo_n "checking for liblo... " >&6; }
5858

    
5859
if test -n "$liblo_CFLAGS"; then
5860
    pkg_cv_liblo_CFLAGS="$liblo_CFLAGS"
5861
 elif test -n "$PKG_CONFIG"; then
5862
    if test -n "$PKG_CONFIG" && \
5863
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5864
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5865
  ac_status=$?
5866
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5867
  test $ac_status = 0; }; then
5868
  pkg_cv_liblo_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5869
		      test "x$?" != "x0" && pkg_failed=yes
5870
else
5871
  pkg_failed=yes
5872
fi
5873
 else
5874
    pkg_failed=untried
5875
fi
5876
if test -n "$liblo_LIBS"; then
5877
    pkg_cv_liblo_LIBS="$liblo_LIBS"
5878
 elif test -n "$PKG_CONFIG"; then
5879
    if test -n "$PKG_CONFIG" && \
5880
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5881
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5882
  ac_status=$?
5883
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5884
  test $ac_status = 0; }; then
5885
  pkg_cv_liblo_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5886
		      test "x$?" != "x0" && pkg_failed=yes
5887
else
5888
  pkg_failed=yes
5889
fi
5890
 else
5891
    pkg_failed=untried
5892
fi
5893

    
5894

    
5895

    
5896
if test $pkg_failed = yes; then
5897
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5898
$as_echo "no" >&6; }
5899

    
5900
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5901
        _pkg_short_errors_supported=yes
5902
else
5903
        _pkg_short_errors_supported=no
5904
fi
5905
        if test $_pkg_short_errors_supported = yes; then
5906
	        liblo_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5907
        else
5908
	        liblo_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5909
        fi
5910
	# Put the nasty error message in config.log where it belongs
5911
	echo "$liblo_PKG_ERRORS" >&5
5912

    
5913
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
5914
$as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5915
elif test $pkg_failed = untried; then
5916
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5917
$as_echo "no" >&6; }
5918
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
5919
$as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5920
else
5921
	liblo_CFLAGS=$pkg_cv_liblo_CFLAGS
5922
	liblo_LIBS=$pkg_cv_liblo_LIBS
5923
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5924
$as_echo "yes" >&6; }
5925
	HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $liblo_CFLAGS";LIBS="$LIBS $liblo_LIBS";SV_MODULE_FAILED=""
5926
fi
5927
fi
5928
if test -n "$SV_MODULE_FAILED"; then
5929
   as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
5930
ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
5931
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5932
  HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""
5933
else
5934
  { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5
5935
$as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;}
5936
fi
5937

    
5938

    
5939
   if test -z "$SV_MODULE_FAILED"; then
5940
      if test -n "$SV_MODULE_LIB"; then
5941
           as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
5942
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
5943
$as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
5944
if eval \${$as_ac_Lib+:} false; then :
5945
  $as_echo_n "(cached) " >&6
5946
else
5947
  ac_check_lib_save_LIBS=$LIBS
5948
LIBS="-l$SV_MODULE_LIB  $LIBS"
5949
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5950
/* end confdefs.h.  */
5951

    
5952
/* Override any GCC internal prototype to avoid an error.
5953
   Use char because int might match the return type of a GCC
5954
   builtin and then its argument prototype would still apply.  */
5955
#ifdef __cplusplus
5956
extern "C"
5957
#endif
5958
char $SV_MODULE_FUNC ();
5959
int
5960
main ()
5961
{
5962
return $SV_MODULE_FUNC ();
5963
  ;
5964
  return 0;
5965
}
5966
_ACEOF
5967
if ac_fn_cxx_try_link "$LINENO"; then :
5968
  eval "$as_ac_Lib=yes"
5969
else
5970
  eval "$as_ac_Lib=no"
5971
fi
5972
rm -f core conftest.err conftest.$ac_objext \
5973
    conftest$ac_exeext conftest.$ac_ext
5974
LIBS=$ac_check_lib_save_LIBS
5975
fi
5976
eval ac_res=\$$as_ac_Lib
5977
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5978
$as_echo "$ac_res" >&6; }
5979
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
5980
  LIBS="$LIBS -l$SV_MODULE_LIB"
5981
else
5982
  { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5
5983
$as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;}
5984
fi
5985

    
5986
      fi
5987
   fi
5988
fi
5989

    
5990

    
5991
SV_MODULE_MODULE=portaudio_2_0
5992
SV_MODULE_VERSION_TEST="portaudio-2.0 >= 19"
5993
SV_MODULE_HEADER=portaudio.h
5994
SV_MODULE_LIB=portaudio
5995
SV_MODULE_FUNC=Pa_IsFormatSupported
5996
SV_MODULE_HAVE=HAVE_$(echo portaudio_2_0 | tr 'a-z' 'A-Z')
5997
SV_MODULE_FAILED=1
5998
if test -n "$portaudio_2_0_LIBS" ; then
5999
   { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
6000
$as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
6001
   CXXFLAGS="$CXXFLAGS $portaudio_2_0_CFLAGS"
6002
   LIBS="$LIBS $portaudio_2_0_LIBS"
6003
   SV_MODULE_FAILED=""
6004
fi
6005
if test -z "$SV_MODULE_VERSION_TEST" ; then
6006
   SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
6007
fi
6008
if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
6009

    
6010
pkg_failed=no
6011
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for portaudio_2_0" >&5
6012
$as_echo_n "checking for portaudio_2_0... " >&6; }
6013

    
6014
if test -n "$portaudio_2_0_CFLAGS"; then
6015
    pkg_cv_portaudio_2_0_CFLAGS="$portaudio_2_0_CFLAGS"
6016
 elif test -n "$PKG_CONFIG"; then
6017
    if test -n "$PKG_CONFIG" && \
6018
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
6019
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
6020
  ac_status=$?
6021
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6022
  test $ac_status = 0; }; then
6023
  pkg_cv_portaudio_2_0_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
6024
		      test "x$?" != "x0" && pkg_failed=yes
6025
else
6026
  pkg_failed=yes
6027
fi
6028
 else
6029
    pkg_failed=untried
6030
fi
6031
if test -n "$portaudio_2_0_LIBS"; then
6032
    pkg_cv_portaudio_2_0_LIBS="$portaudio_2_0_LIBS"
6033
 elif test -n "$PKG_CONFIG"; then
6034
    if test -n "$PKG_CONFIG" && \
6035
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
6036
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
6037
  ac_status=$?
6038
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6039
  test $ac_status = 0; }; then
6040
  pkg_cv_portaudio_2_0_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
6041
		      test "x$?" != "x0" && pkg_failed=yes
6042
else
6043
  pkg_failed=yes
6044
fi
6045
 else
6046
    pkg_failed=untried
6047
fi
6048

    
6049

    
6050

    
6051
if test $pkg_failed = yes; then
6052
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6053
$as_echo "no" >&6; }
6054

    
6055
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6056
        _pkg_short_errors_supported=yes
6057
else
6058
        _pkg_short_errors_supported=no
6059
fi
6060
        if test $_pkg_short_errors_supported = yes; then
6061
	        portaudio_2_0_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
6062
        else
6063
	        portaudio_2_0_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
6064
        fi
6065
	# Put the nasty error message in config.log where it belongs
6066
	echo "$portaudio_2_0_PKG_ERRORS" >&5
6067

    
6068
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
6069
$as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
6070
elif test $pkg_failed = untried; then
6071
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6072
$as_echo "no" >&6; }
6073
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
6074
$as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
6075
else
6076
	portaudio_2_0_CFLAGS=$pkg_cv_portaudio_2_0_CFLAGS
6077
	portaudio_2_0_LIBS=$pkg_cv_portaudio_2_0_LIBS
6078
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6079
$as_echo "yes" >&6; }
6080
	HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $portaudio_2_0_CFLAGS";LIBS="$LIBS $portaudio_2_0_LIBS";SV_MODULE_FAILED=""
6081
fi
6082
fi
6083
if test -n "$SV_MODULE_FAILED"; then
6084
   as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
6085
ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
6086
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6087
  HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""
6088
else
6089
  { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5
6090
$as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;}
6091
fi
6092

    
6093

    
6094
   if test -z "$SV_MODULE_FAILED"; then
6095
      if test -n "$SV_MODULE_LIB"; then
6096
           as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
6097
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
6098
$as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
6099
if eval \${$as_ac_Lib+:} false; then :
6100
  $as_echo_n "(cached) " >&6
6101
else
6102
  ac_check_lib_save_LIBS=$LIBS
6103
LIBS="-l$SV_MODULE_LIB  $LIBS"
6104
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6105
/* end confdefs.h.  */
6106

    
6107
/* Override any GCC internal prototype to avoid an error.
6108
   Use char because int might match the return type of a GCC
6109
   builtin and then its argument prototype would still apply.  */
6110
#ifdef __cplusplus
6111
extern "C"
6112
#endif
6113
char $SV_MODULE_FUNC ();
6114
int
6115
main ()
6116
{
6117
return $SV_MODULE_FUNC ();
6118
  ;
6119
  return 0;
6120
}
6121
_ACEOF
6122
if ac_fn_cxx_try_link "$LINENO"; then :
6123
  eval "$as_ac_Lib=yes"
6124
else
6125
  eval "$as_ac_Lib=no"
6126
fi
6127
rm -f core conftest.err conftest.$ac_objext \
6128
    conftest$ac_exeext conftest.$ac_ext
6129
LIBS=$ac_check_lib_save_LIBS
6130
fi
6131
eval ac_res=\$$as_ac_Lib
6132
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6133
$as_echo "$ac_res" >&6; }
6134
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6135
  LIBS="$LIBS -l$SV_MODULE_LIB"
6136
else
6137
  { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5
6138
$as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;}
6139
fi
6140

    
6141
      fi
6142
   fi
6143
fi
6144

    
6145

    
6146
SV_MODULE_MODULE=JACK
6147
SV_MODULE_VERSION_TEST="jack >= 0.100"
6148
SV_MODULE_HEADER=jack/jack.h
6149
SV_MODULE_LIB=jack
6150
SV_MODULE_FUNC=jack_client_open
6151
SV_MODULE_HAVE=HAVE_$(echo JACK | tr 'a-z' 'A-Z')
6152
SV_MODULE_FAILED=1
6153
if test -n "$JACK_LIBS" ; then
6154
   { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
6155
$as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
6156
   CXXFLAGS="$CXXFLAGS $JACK_CFLAGS"
6157
   LIBS="$LIBS $JACK_LIBS"
6158
   SV_MODULE_FAILED=""
6159
fi
6160
if test -z "$SV_MODULE_VERSION_TEST" ; then
6161
   SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
6162
fi
6163
if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
6164

    
6165
pkg_failed=no
6166
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK" >&5
6167
$as_echo_n "checking for JACK... " >&6; }
6168

    
6169
if test -n "$JACK_CFLAGS"; then
6170
    pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
6171
 elif test -n "$PKG_CONFIG"; then
6172
    if test -n "$PKG_CONFIG" && \
6173
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
6174
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
6175
  ac_status=$?
6176
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6177
  test $ac_status = 0; }; then
6178
  pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
6179
		      test "x$?" != "x0" && pkg_failed=yes
6180
else
6181
  pkg_failed=yes
6182
fi
6183
 else
6184
    pkg_failed=untried
6185
fi
6186
if test -n "$JACK_LIBS"; then
6187
    pkg_cv_JACK_LIBS="$JACK_LIBS"
6188
 elif test -n "$PKG_CONFIG"; then
6189
    if test -n "$PKG_CONFIG" && \
6190
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
6191
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
6192
  ac_status=$?
6193
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6194
  test $ac_status = 0; }; then
6195
  pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
6196
		      test "x$?" != "x0" && pkg_failed=yes
6197
else
6198
  pkg_failed=yes
6199
fi
6200
 else
6201
    pkg_failed=untried
6202
fi
6203

    
6204

    
6205

    
6206
if test $pkg_failed = yes; then
6207
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6208
$as_echo "no" >&6; }
6209

    
6210
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6211
        _pkg_short_errors_supported=yes
6212
else
6213
        _pkg_short_errors_supported=no
6214
fi
6215
        if test $_pkg_short_errors_supported = yes; then
6216
	        JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
6217
        else
6218
	        JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
6219
        fi
6220
	# Put the nasty error message in config.log where it belongs
6221
	echo "$JACK_PKG_ERRORS" >&5
6222

    
6223
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
6224
$as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
6225
elif test $pkg_failed = untried; then
6226
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6227
$as_echo "no" >&6; }
6228
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
6229
$as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
6230
else
6231
	JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
6232
	JACK_LIBS=$pkg_cv_JACK_LIBS
6233
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6234
$as_echo "yes" >&6; }
6235
	HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $JACK_CFLAGS";LIBS="$LIBS $JACK_LIBS";SV_MODULE_FAILED=""
6236
fi
6237
fi
6238
if test -n "$SV_MODULE_FAILED"; then
6239
   as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
6240
ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
6241
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6242
  HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""
6243
else
6244
  { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5
6245
$as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;}
6246
fi
6247

    
6248

    
6249
   if test -z "$SV_MODULE_FAILED"; then
6250
      if test -n "$SV_MODULE_LIB"; then
6251
           as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
6252
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
6253
$as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
6254
if eval \${$as_ac_Lib+:} false; then :
6255
  $as_echo_n "(cached) " >&6
6256
else
6257
  ac_check_lib_save_LIBS=$LIBS
6258
LIBS="-l$SV_MODULE_LIB  $LIBS"
6259
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6260
/* end confdefs.h.  */
6261

    
6262
/* Override any GCC internal prototype to avoid an error.
6263
   Use char because int might match the return type of a GCC
6264
   builtin and then its argument prototype would still apply.  */
6265
#ifdef __cplusplus
6266
extern "C"
6267
#endif
6268
char $SV_MODULE_FUNC ();
6269
int
6270
main ()
6271
{
6272
return $SV_MODULE_FUNC ();
6273
  ;
6274
  return 0;
6275
}
6276
_ACEOF
6277
if ac_fn_cxx_try_link "$LINENO"; then :
6278
  eval "$as_ac_Lib=yes"
6279
else
6280
  eval "$as_ac_Lib=no"
6281
fi
6282
rm -f core conftest.err conftest.$ac_objext \
6283
    conftest$ac_exeext conftest.$ac_ext
6284
LIBS=$ac_check_lib_save_LIBS
6285
fi
6286
eval ac_res=\$$as_ac_Lib
6287
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6288
$as_echo "$ac_res" >&6; }
6289
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6290
  LIBS="$LIBS -l$SV_MODULE_LIB"
6291
else
6292
  { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5
6293
$as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;}
6294
fi
6295

    
6296
      fi
6297
   fi
6298
fi
6299

    
6300

    
6301
SV_MODULE_MODULE=libpulse
6302
SV_MODULE_VERSION_TEST="libpulse >= 0.9"
6303
SV_MODULE_HEADER=pulse/pulseaudio.h
6304
SV_MODULE_LIB=pulse
6305
SV_MODULE_FUNC=pa_stream_new
6306
SV_MODULE_HAVE=HAVE_$(echo libpulse | tr 'a-z' 'A-Z')
6307
SV_MODULE_FAILED=1
6308
if test -n "$libpulse_LIBS" ; then
6309
   { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
6310
$as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
6311
   CXXFLAGS="$CXXFLAGS $libpulse_CFLAGS"
6312
   LIBS="$LIBS $libpulse_LIBS"
6313
   SV_MODULE_FAILED=""
6314
fi
6315
if test -z "$SV_MODULE_VERSION_TEST" ; then
6316
   SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
6317
fi
6318
if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
6319

    
6320
pkg_failed=no
6321
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpulse" >&5
6322
$as_echo_n "checking for libpulse... " >&6; }
6323

    
6324
if test -n "$libpulse_CFLAGS"; then
6325
    pkg_cv_libpulse_CFLAGS="$libpulse_CFLAGS"
6326
 elif test -n "$PKG_CONFIG"; then
6327
    if test -n "$PKG_CONFIG" && \
6328
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
6329
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
6330
  ac_status=$?
6331
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6332
  test $ac_status = 0; }; then
6333
  pkg_cv_libpulse_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
6334
		      test "x$?" != "x0" && pkg_failed=yes
6335
else
6336
  pkg_failed=yes
6337
fi
6338
 else
6339
    pkg_failed=untried
6340
fi
6341
if test -n "$libpulse_LIBS"; then
6342
    pkg_cv_libpulse_LIBS="$libpulse_LIBS"
6343
 elif test -n "$PKG_CONFIG"; then
6344
    if test -n "$PKG_CONFIG" && \
6345
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
6346
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
6347
  ac_status=$?
6348
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6349
  test $ac_status = 0; }; then
6350
  pkg_cv_libpulse_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
6351
		      test "x$?" != "x0" && pkg_failed=yes
6352
else
6353
  pkg_failed=yes
6354
fi
6355
 else
6356
    pkg_failed=untried
6357
fi
6358

    
6359

    
6360

    
6361
if test $pkg_failed = yes; then
6362
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6363
$as_echo "no" >&6; }
6364

    
6365
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6366
        _pkg_short_errors_supported=yes
6367
else
6368
        _pkg_short_errors_supported=no
6369
fi
6370
        if test $_pkg_short_errors_supported = yes; then
6371
	        libpulse_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
6372
        else
6373
	        libpulse_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
6374
        fi
6375
	# Put the nasty error message in config.log where it belongs
6376
	echo "$libpulse_PKG_ERRORS" >&5
6377

    
6378
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
6379
$as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
6380
elif test $pkg_failed = untried; then
6381
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6382
$as_echo "no" >&6; }
6383
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
6384
$as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
6385
else
6386
	libpulse_CFLAGS=$pkg_cv_libpulse_CFLAGS
6387
	libpulse_LIBS=$pkg_cv_libpulse_LIBS
6388
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6389
$as_echo "yes" >&6; }
6390
	HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $libpulse_CFLAGS";LIBS="$LIBS $libpulse_LIBS";SV_MODULE_FAILED=""
6391
fi
6392
fi
6393
if test -n "$SV_MODULE_FAILED"; then
6394
   as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
6395
ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
6396
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6397
  HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""
6398
else
6399
  { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5
6400
$as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;}
6401
fi
6402

    
6403

    
6404
   if test -z "$SV_MODULE_FAILED"; then
6405
      if test -n "$SV_MODULE_LIB"; then
6406
           as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
6407
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
6408
$as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
6409
if eval \${$as_ac_Lib+:} false; then :
6410
  $as_echo_n "(cached) " >&6
6411
else
6412
  ac_check_lib_save_LIBS=$LIBS
6413
LIBS="-l$SV_MODULE_LIB  $LIBS"
6414
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6415
/* end confdefs.h.  */
6416

    
6417
/* Override any GCC internal prototype to avoid an error.
6418
   Use char because int might match the return type of a GCC
6419
   builtin and then its argument prototype would still apply.  */
6420
#ifdef __cplusplus
6421
extern "C"
6422
#endif
6423
char $SV_MODULE_FUNC ();
6424
int
6425
main ()
6426
{
6427
return $SV_MODULE_FUNC ();
6428
  ;
6429
  return 0;
6430
}
6431
_ACEOF
6432
if ac_fn_cxx_try_link "$LINENO"; then :
6433
  eval "$as_ac_Lib=yes"
6434
else
6435
  eval "$as_ac_Lib=no"
6436
fi
6437
rm -f core conftest.err conftest.$ac_objext \
6438
    conftest$ac_exeext conftest.$ac_ext
6439
LIBS=$ac_check_lib_save_LIBS
6440
fi
6441
eval ac_res=\$$as_ac_Lib
6442
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6443
$as_echo "$ac_res" >&6; }
6444
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6445
  LIBS="$LIBS -l$SV_MODULE_LIB"
6446
else
6447
  { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5
6448
$as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;}
6449
fi
6450

    
6451
      fi
6452
   fi
6453
fi
6454

    
6455

    
6456
SV_MODULE_MODULE=lrdf
6457
SV_MODULE_VERSION_TEST="lrdf >= 0.2"
6458
SV_MODULE_HEADER=lrdf.h
6459
SV_MODULE_LIB=lrdf
6460
SV_MODULE_FUNC=lrdf_init
6461
SV_MODULE_HAVE=HAVE_$(echo lrdf | tr 'a-z' 'A-Z')
6462
SV_MODULE_FAILED=1
6463
if test -n "$lrdf_LIBS" ; then
6464
   { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
6465
$as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
6466
   CXXFLAGS="$CXXFLAGS $lrdf_CFLAGS"
6467
   LIBS="$LIBS $lrdf_LIBS"
6468
   SV_MODULE_FAILED=""
6469
fi
6470
if test -z "$SV_MODULE_VERSION_TEST" ; then
6471
   SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
6472
fi
6473
if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
6474

    
6475
pkg_failed=no
6476
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lrdf" >&5
6477
$as_echo_n "checking for lrdf... " >&6; }
6478

    
6479
if test -n "$lrdf_CFLAGS"; then
6480
    pkg_cv_lrdf_CFLAGS="$lrdf_CFLAGS"
6481
 elif test -n "$PKG_CONFIG"; then
6482
    if test -n "$PKG_CONFIG" && \
6483
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
6484
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
6485
  ac_status=$?
6486
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6487
  test $ac_status = 0; }; then
6488
  pkg_cv_lrdf_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
6489
		      test "x$?" != "x0" && pkg_failed=yes
6490
else
6491
  pkg_failed=yes
6492
fi
6493
 else
6494
    pkg_failed=untried
6495
fi
6496
if test -n "$lrdf_LIBS"; then
6497
    pkg_cv_lrdf_LIBS="$lrdf_LIBS"
6498
 elif test -n "$PKG_CONFIG"; then
6499
    if test -n "$PKG_CONFIG" && \
6500
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
6501
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
6502
  ac_status=$?
6503
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6504
  test $ac_status = 0; }; then
6505
  pkg_cv_lrdf_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
6506
		      test "x$?" != "x0" && pkg_failed=yes
6507
else
6508
  pkg_failed=yes
6509
fi
6510
 else
6511
    pkg_failed=untried
6512
fi
6513

    
6514

    
6515

    
6516
if test $pkg_failed = yes; then
6517
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6518
$as_echo "no" >&6; }
6519

    
6520
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6521
        _pkg_short_errors_supported=yes
6522
else
6523
        _pkg_short_errors_supported=no
6524
fi
6525
        if test $_pkg_short_errors_supported = yes; then
6526
	        lrdf_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
6527
        else
6528
	        lrdf_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
6529
        fi
6530
	# Put the nasty error message in config.log where it belongs
6531
	echo "$lrdf_PKG_ERRORS" >&5
6532

    
6533
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
6534
$as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
6535
elif test $pkg_failed = untried; then
6536
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6537
$as_echo "no" >&6; }
6538
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
6539
$as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
6540
else
6541
	lrdf_CFLAGS=$pkg_cv_lrdf_CFLAGS
6542
	lrdf_LIBS=$pkg_cv_lrdf_LIBS
6543
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6544
$as_echo "yes" >&6; }
6545
	HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $lrdf_CFLAGS";LIBS="$LIBS $lrdf_LIBS";SV_MODULE_FAILED=""
6546
fi
6547
fi
6548
if test -n "$SV_MODULE_FAILED"; then
6549
   as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
6550
ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
6551
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6552
  HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""
6553
else
6554
  { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5
6555
$as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;}
6556
fi
6557

    
6558

    
6559
   if test -z "$SV_MODULE_FAILED"; then
6560
      if test -n "$SV_MODULE_LIB"; then
6561
           as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
6562
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
6563
$as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
6564
if eval \${$as_ac_Lib+:} false; then :
6565
  $as_echo_n "(cached) " >&6
6566
else
6567
  ac_check_lib_save_LIBS=$LIBS
6568
LIBS="-l$SV_MODULE_LIB  $LIBS"
6569
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6570
/* end confdefs.h.  */
6571

    
6572
/* Override any GCC internal prototype to avoid an error.
6573
   Use char because int might match the return type of a GCC
6574
   builtin and then its argument prototype would still apply.  */
6575
#ifdef __cplusplus
6576
extern "C"
6577
#endif
6578
char $SV_MODULE_FUNC ();
6579
int
6580
main ()
6581
{
6582
return $SV_MODULE_FUNC ();
6583
  ;
6584
  return 0;
6585
}
6586
_ACEOF
6587
if ac_fn_cxx_try_link "$LINENO"; then :
6588
  eval "$as_ac_Lib=yes"
6589
else
6590
  eval "$as_ac_Lib=no"
6591
fi
6592
rm -f core conftest.err conftest.$ac_objext \
6593
    conftest$ac_exeext conftest.$ac_ext
6594
LIBS=$ac_check_lib_save_LIBS
6595
fi
6596
eval ac_res=\$$as_ac_Lib
6597
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6598
$as_echo "$ac_res" >&6; }
6599
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6600
  LIBS="$LIBS -l$SV_MODULE_LIB"
6601
else
6602
  { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5
6603
$as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;}
6604
fi
6605

    
6606
      fi
6607
   fi
6608
fi
6609

    
6610

    
6611
SV_MODULE_MODULE=oggz
6612
SV_MODULE_VERSION_TEST="oggz >= 1.0.0"
6613
SV_MODULE_HEADER=oggz/oggz.h
6614
SV_MODULE_LIB=oggz
6615
SV_MODULE_FUNC=oggz_run
6616
SV_MODULE_HAVE=HAVE_$(echo oggz | tr 'a-z' 'A-Z')
6617
SV_MODULE_FAILED=1
6618
if test -n "$oggz_LIBS" ; then
6619
   { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
6620
$as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
6621
   CXXFLAGS="$CXXFLAGS $oggz_CFLAGS"
6622
   LIBS="$LIBS $oggz_LIBS"
6623
   SV_MODULE_FAILED=""
6624
fi
6625
if test -z "$SV_MODULE_VERSION_TEST" ; then
6626
   SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
6627
fi
6628
if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
6629

    
6630
pkg_failed=no
6631
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for oggz" >&5
6632
$as_echo_n "checking for oggz... " >&6; }
6633

    
6634
if test -n "$oggz_CFLAGS"; then
6635
    pkg_cv_oggz_CFLAGS="$oggz_CFLAGS"
6636
 elif test -n "$PKG_CONFIG"; then
6637
    if test -n "$PKG_CONFIG" && \
6638
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
6639
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
6640
  ac_status=$?
6641
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6642
  test $ac_status = 0; }; then
6643
  pkg_cv_oggz_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
6644
		      test "x$?" != "x0" && pkg_failed=yes
6645
else
6646
  pkg_failed=yes
6647
fi
6648
 else
6649
    pkg_failed=untried
6650
fi
6651
if test -n "$oggz_LIBS"; then
6652
    pkg_cv_oggz_LIBS="$oggz_LIBS"
6653
 elif test -n "$PKG_CONFIG"; then
6654
    if test -n "$PKG_CONFIG" && \
6655
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
6656
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
6657
  ac_status=$?
6658
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6659
  test $ac_status = 0; }; then
6660
  pkg_cv_oggz_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
6661
		      test "x$?" != "x0" && pkg_failed=yes
6662
else
6663
  pkg_failed=yes
6664
fi
6665
 else
6666
    pkg_failed=untried
6667
fi
6668

    
6669

    
6670

    
6671
if test $pkg_failed = yes; then
6672
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6673
$as_echo "no" >&6; }
6674

    
6675
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6676
        _pkg_short_errors_supported=yes
6677
else
6678
        _pkg_short_errors_supported=no
6679
fi
6680
        if test $_pkg_short_errors_supported = yes; then
6681
	        oggz_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
6682
        else
6683
	        oggz_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
6684
        fi
6685
	# Put the nasty error message in config.log where it belongs
6686
	echo "$oggz_PKG_ERRORS" >&5
6687

    
6688
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
6689
$as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
6690
elif test $pkg_failed = untried; then
6691
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6692
$as_echo "no" >&6; }
6693
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
6694
$as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
6695
else
6696
	oggz_CFLAGS=$pkg_cv_oggz_CFLAGS
6697
	oggz_LIBS=$pkg_cv_oggz_LIBS
6698
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6699
$as_echo "yes" >&6; }
6700
	HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $oggz_CFLAGS";LIBS="$LIBS $oggz_LIBS";SV_MODULE_FAILED=""
6701
fi
6702
fi
6703
if test -n "$SV_MODULE_FAILED"; then
6704
   as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
6705
ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
6706
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6707
  HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""
6708
else
6709
  { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5
6710
$as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;}
6711
fi
6712

    
6713

    
6714
   if test -z "$SV_MODULE_FAILED"; then
6715
      if test -n "$SV_MODULE_LIB"; then
6716
           as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
6717
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
6718
$as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
6719
if eval \${$as_ac_Lib+:} false; then :
6720
  $as_echo_n "(cached) " >&6
6721
else
6722
  ac_check_lib_save_LIBS=$LIBS
6723
LIBS="-l$SV_MODULE_LIB  $LIBS"
6724
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6725
/* end confdefs.h.  */
6726

    
6727
/* Override any GCC internal prototype to avoid an error.
6728
   Use char because int might match the return type of a GCC
6729
   builtin and then its argument prototype would still apply.  */
6730
#ifdef __cplusplus
6731
extern "C"
6732
#endif
6733
char $SV_MODULE_FUNC ();
6734
int
6735
main ()
6736
{
6737
return $SV_MODULE_FUNC ();
6738
  ;
6739
  return 0;
6740
}
6741
_ACEOF
6742
if ac_fn_cxx_try_link "$LINENO"; then :
6743
  eval "$as_ac_Lib=yes"
6744
else
6745
  eval "$as_ac_Lib=no"
6746
fi
6747
rm -f core conftest.err conftest.$ac_objext \
6748
    conftest$ac_exeext conftest.$ac_ext
6749
LIBS=$ac_check_lib_save_LIBS
6750
fi
6751
eval ac_res=\$$as_ac_Lib
6752
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6753
$as_echo "$ac_res" >&6; }
6754
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6755
  LIBS="$LIBS -l$SV_MODULE_LIB"
6756
else
6757
  { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5
6758
$as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;}
6759
fi
6760

    
6761
      fi
6762
   fi
6763
fi
6764

    
6765

    
6766
SV_MODULE_MODULE=fishsound
6767
SV_MODULE_VERSION_TEST="fishsound >= 1.0.0"
6768
SV_MODULE_HEADER=fishsound/fishsound.h
6769
SV_MODULE_LIB=fishsound
6770
SV_MODULE_FUNC=fish_sound_new
6771
SV_MODULE_HAVE=HAVE_$(echo fishsound | tr 'a-z' 'A-Z')
6772
SV_MODULE_FAILED=1
6773
if test -n "$fishsound_LIBS" ; then
6774
   { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
6775
$as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
6776
   CXXFLAGS="$CXXFLAGS $fishsound_CFLAGS"
6777
   LIBS="$LIBS $fishsound_LIBS"
6778
   SV_MODULE_FAILED=""
6779
fi
6780
if test -z "$SV_MODULE_VERSION_TEST" ; then
6781
   SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
6782
fi
6783
if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
6784

    
6785
pkg_failed=no
6786
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fishsound" >&5
6787
$as_echo_n "checking for fishsound... " >&6; }
6788

    
6789
if test -n "$fishsound_CFLAGS"; then
6790
    pkg_cv_fishsound_CFLAGS="$fishsound_CFLAGS"
6791
 elif test -n "$PKG_CONFIG"; then
6792
    if test -n "$PKG_CONFIG" && \
6793
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
6794
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
6795
  ac_status=$?
6796
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6797
  test $ac_status = 0; }; then
6798
  pkg_cv_fishsound_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
6799
		      test "x$?" != "x0" && pkg_failed=yes
6800
else
6801
  pkg_failed=yes
6802
fi
6803
 else
6804
    pkg_failed=untried
6805
fi
6806
if test -n "$fishsound_LIBS"; then
6807
    pkg_cv_fishsound_LIBS="$fishsound_LIBS"
6808
 elif test -n "$PKG_CONFIG"; then
6809
    if test -n "$PKG_CONFIG" && \
6810
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
6811
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
6812
  ac_status=$?
6813
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6814
  test $ac_status = 0; }; then
6815
  pkg_cv_fishsound_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
6816
		      test "x$?" != "x0" && pkg_failed=yes
6817
else
6818
  pkg_failed=yes
6819
fi
6820
 else
6821
    pkg_failed=untried
6822
fi
6823

    
6824

    
6825

    
6826
if test $pkg_failed = yes; then
6827
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6828
$as_echo "no" >&6; }
6829

    
6830
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6831
        _pkg_short_errors_supported=yes
6832
else
6833
        _pkg_short_errors_supported=no
6834
fi
6835
        if test $_pkg_short_errors_supported = yes; then
6836
	        fishsound_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
6837
        else
6838
	        fishsound_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
6839
        fi
6840
	# Put the nasty error message in config.log where it belongs
6841
	echo "$fishsound_PKG_ERRORS" >&5
6842

    
6843
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
6844
$as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
6845
elif test $pkg_failed = untried; then
6846
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6847
$as_echo "no" >&6; }
6848
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
6849
$as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
6850
else
6851
	fishsound_CFLAGS=$pkg_cv_fishsound_CFLAGS
6852
	fishsound_LIBS=$pkg_cv_fishsound_LIBS
6853
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6854
$as_echo "yes" >&6; }
6855
	HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $fishsound_CFLAGS";LIBS="$LIBS $fishsound_LIBS";SV_MODULE_FAILED=""
6856
fi
6857
fi
6858
if test -n "$SV_MODULE_FAILED"; then
6859
   as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
6860
ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
6861
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6862
  HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""
6863
else
6864
  { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5
6865
$as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;}
6866
fi
6867

    
6868

    
6869
   if test -z "$SV_MODULE_FAILED"; then
6870
      if test -n "$SV_MODULE_LIB"; then
6871
           as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
6872
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
6873
$as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
6874
if eval \${$as_ac_Lib+:} false; then :
6875
  $as_echo_n "(cached) " >&6
6876
else
6877
  ac_check_lib_save_LIBS=$LIBS
6878
LIBS="-l$SV_MODULE_LIB  $LIBS"
6879
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6880
/* end confdefs.h.  */
6881

    
6882
/* Override any GCC internal prototype to avoid an error.
6883
   Use char because int might match the return type of a GCC
6884
   builtin and then its argument prototype would still apply.  */
6885
#ifdef __cplusplus
6886
extern "C"
6887
#endif
6888
char $SV_MODULE_FUNC ();
6889
int
6890
main ()
6891
{
6892
return $SV_MODULE_FUNC ();
6893
  ;
6894
  return 0;
6895
}
6896
_ACEOF
6897
if ac_fn_cxx_try_link "$LINENO"; then :
6898
  eval "$as_ac_Lib=yes"
6899
else
6900
  eval "$as_ac_Lib=no"
6901
fi
6902
rm -f core conftest.err conftest.$ac_objext \
6903
    conftest$ac_exeext conftest.$ac_ext
6904
LIBS=$ac_check_lib_save_LIBS
6905
fi
6906
eval ac_res=\$$as_ac_Lib
6907
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6908
$as_echo "$ac_res" >&6; }
6909
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6910
  LIBS="$LIBS -l$SV_MODULE_LIB"
6911
else
6912
  { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5
6913
$as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;}
6914
fi
6915

    
6916
      fi
6917
   fi
6918
fi
6919

    
6920

    
6921
SV_MODULE_MODULE=mad
6922
SV_MODULE_VERSION_TEST="mad >= 0.15.0"
6923
SV_MODULE_HEADER=mad.h
6924
SV_MODULE_LIB=mad
6925
SV_MODULE_FUNC=mad_decoder_init
6926
SV_MODULE_HAVE=HAVE_$(echo mad | tr 'a-z' 'A-Z')
6927
SV_MODULE_FAILED=1
6928
if test -n "$mad_LIBS" ; then
6929
   { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
6930
$as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
6931
   CXXFLAGS="$CXXFLAGS $mad_CFLAGS"
6932
   LIBS="$LIBS $mad_LIBS"
6933
   SV_MODULE_FAILED=""
6934
fi
6935
if test -z "$SV_MODULE_VERSION_TEST" ; then
6936
   SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
6937
fi
6938
if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
6939

    
6940
pkg_failed=no
6941
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mad" >&5
6942
$as_echo_n "checking for mad... " >&6; }
6943

    
6944
if test -n "$mad_CFLAGS"; then
6945
    pkg_cv_mad_CFLAGS="$mad_CFLAGS"
6946
 elif test -n "$PKG_CONFIG"; then
6947
    if test -n "$PKG_CONFIG" && \
6948
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
6949
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
6950
  ac_status=$?
6951
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6952
  test $ac_status = 0; }; then
6953
  pkg_cv_mad_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
6954
		      test "x$?" != "x0" && pkg_failed=yes
6955
else
6956
  pkg_failed=yes
6957
fi
6958
 else
6959
    pkg_failed=untried
6960
fi
6961
if test -n "$mad_LIBS"; then
6962
    pkg_cv_mad_LIBS="$mad_LIBS"
6963
 elif test -n "$PKG_CONFIG"; then
6964
    if test -n "$PKG_CONFIG" && \
6965
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
6966
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
6967
  ac_status=$?
6968
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6969
  test $ac_status = 0; }; then
6970
  pkg_cv_mad_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
6971
		      test "x$?" != "x0" && pkg_failed=yes
6972
else
6973
  pkg_failed=yes
6974
fi
6975
 else
6976
    pkg_failed=untried
6977
fi
6978

    
6979

    
6980

    
6981
if test $pkg_failed = yes; then
6982
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6983
$as_echo "no" >&6; }
6984

    
6985
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6986
        _pkg_short_errors_supported=yes
6987
else
6988
        _pkg_short_errors_supported=no
6989
fi
6990
        if test $_pkg_short_errors_supported = yes; then
6991
	        mad_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
6992
        else
6993
	        mad_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
6994
        fi
6995
	# Put the nasty error message in config.log where it belongs
6996
	echo "$mad_PKG_ERRORS" >&5
6997

    
6998
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
6999
$as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
7000
elif test $pkg_failed = untried; then
7001
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7002
$as_echo "no" >&6; }
7003
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
7004
$as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
7005
else
7006
	mad_CFLAGS=$pkg_cv_mad_CFLAGS
7007
	mad_LIBS=$pkg_cv_mad_LIBS
7008
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7009
$as_echo "yes" >&6; }
7010
	HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $mad_CFLAGS";LIBS="$LIBS $mad_LIBS";SV_MODULE_FAILED=""
7011
fi
7012
fi
7013
if test -n "$SV_MODULE_FAILED"; then
7014
   as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
7015
ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
7016
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7017
  HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""
7018
else
7019
  { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5
7020
$as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;}
7021
fi
7022

    
7023

    
7024
   if test -z "$SV_MODULE_FAILED"; then
7025
      if test -n "$SV_MODULE_LIB"; then
7026
           as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
7027
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
7028
$as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
7029
if eval \${$as_ac_Lib+:} false; then :
7030
  $as_echo_n "(cached) " >&6
7031
else
7032
  ac_check_lib_save_LIBS=$LIBS
7033
LIBS="-l$SV_MODULE_LIB  $LIBS"
7034
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7035
/* end confdefs.h.  */
7036

    
7037
/* Override any GCC internal prototype to avoid an error.
7038
   Use char because int might match the return type of a GCC
7039
   builtin and then its argument prototype would still apply.  */
7040
#ifdef __cplusplus
7041
extern "C"
7042
#endif
7043
char $SV_MODULE_FUNC ();
7044
int
7045
main ()
7046
{
7047
return $SV_MODULE_FUNC ();
7048
  ;
7049
  return 0;
7050
}
7051
_ACEOF
7052
if ac_fn_cxx_try_link "$LINENO"; then :
7053
  eval "$as_ac_Lib=yes"
7054
else
7055
  eval "$as_ac_Lib=no"
7056
fi
7057
rm -f core conftest.err conftest.$ac_objext \
7058
    conftest$ac_exeext conftest.$ac_ext
7059
LIBS=$ac_check_lib_save_LIBS
7060
fi
7061
eval ac_res=\$$as_ac_Lib
7062
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7063
$as_echo "$ac_res" >&6; }
7064
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7065
  LIBS="$LIBS -l$SV_MODULE_LIB"
7066
else
7067
  { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5
7068
$as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;}
7069
fi
7070

    
7071
      fi
7072
   fi
7073
fi
7074

    
7075

    
7076
SV_MODULE_MODULE=id3tag
7077
SV_MODULE_VERSION_TEST="id3tag >= 0.15.0"
7078
SV_MODULE_HEADER=id3tag.h
7079
SV_MODULE_LIB=id3tag
7080
SV_MODULE_FUNC=id3_tag_new
7081
SV_MODULE_HAVE=HAVE_$(echo id3tag | tr 'a-z' 'A-Z')
7082
SV_MODULE_FAILED=1
7083
if test -n "$id3tag_LIBS" ; then
7084
   { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
7085
$as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
7086
   CXXFLAGS="$CXXFLAGS $id3tag_CFLAGS"
7087
   LIBS="$LIBS $id3tag_LIBS"
7088
   SV_MODULE_FAILED=""
7089
fi
7090
if test -z "$SV_MODULE_VERSION_TEST" ; then
7091
   SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
7092
fi
7093
if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
7094

    
7095
pkg_failed=no
7096
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for id3tag" >&5
7097
$as_echo_n "checking for id3tag... " >&6; }
7098

    
7099
if test -n "$id3tag_CFLAGS"; then
7100
    pkg_cv_id3tag_CFLAGS="$id3tag_CFLAGS"
7101
 elif test -n "$PKG_CONFIG"; then
7102
    if test -n "$PKG_CONFIG" && \
7103
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
7104
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
7105
  ac_status=$?
7106
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7107
  test $ac_status = 0; }; then
7108
  pkg_cv_id3tag_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
7109
		      test "x$?" != "x0" && pkg_failed=yes
7110
else
7111
  pkg_failed=yes
7112
fi
7113
 else
7114
    pkg_failed=untried
7115
fi
7116
if test -n "$id3tag_LIBS"; then
7117
    pkg_cv_id3tag_LIBS="$id3tag_LIBS"
7118
 elif test -n "$PKG_CONFIG"; then
7119
    if test -n "$PKG_CONFIG" && \
7120
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
7121
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
7122
  ac_status=$?
7123
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7124
  test $ac_status = 0; }; then
7125
  pkg_cv_id3tag_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
7126
		      test "x$?" != "x0" && pkg_failed=yes
7127
else
7128
  pkg_failed=yes
7129
fi
7130
 else
7131
    pkg_failed=untried
7132
fi
7133

    
7134

    
7135

    
7136
if test $pkg_failed = yes; then
7137
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7138
$as_echo "no" >&6; }
7139

    
7140
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7141
        _pkg_short_errors_supported=yes
7142
else
7143
        _pkg_short_errors_supported=no
7144
fi
7145
        if test $_pkg_short_errors_supported = yes; then
7146
	        id3tag_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
7147
        else
7148
	        id3tag_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
7149
        fi
7150
	# Put the nasty error message in config.log where it belongs
7151
	echo "$id3tag_PKG_ERRORS" >&5
7152

    
7153
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
7154
$as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
7155
elif test $pkg_failed = untried; then
7156
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7157
$as_echo "no" >&6; }
7158
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
7159
$as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
7160
else
7161
	id3tag_CFLAGS=$pkg_cv_id3tag_CFLAGS
7162
	id3tag_LIBS=$pkg_cv_id3tag_LIBS
7163
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7164
$as_echo "yes" >&6; }
7165
	HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $id3tag_CFLAGS";LIBS="$LIBS $id3tag_LIBS";SV_MODULE_FAILED=""
7166
fi
7167
fi
7168
if test -n "$SV_MODULE_FAILED"; then
7169
   as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
7170
ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
7171
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7172
  HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""
7173
else
7174
  { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5
7175
$as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;}
7176
fi
7177

    
7178

    
7179
   if test -z "$SV_MODULE_FAILED"; then
7180
      if test -n "$SV_MODULE_LIB"; then
7181
           as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
7182
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
7183
$as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
7184
if eval \${$as_ac_Lib+:} false; then :
7185
  $as_echo_n "(cached) " >&6
7186
else
7187
  ac_check_lib_save_LIBS=$LIBS
7188
LIBS="-l$SV_MODULE_LIB  $LIBS"
7189
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7190
/* end confdefs.h.  */
7191

    
7192
/* Override any GCC internal prototype to avoid an error.
7193
   Use char because int might match the return type of a GCC
7194
   builtin and then its argument prototype would still apply.  */
7195
#ifdef __cplusplus
7196
extern "C"
7197
#endif
7198
char $SV_MODULE_FUNC ();
7199
int
7200
main ()
7201
{
7202
return $SV_MODULE_FUNC ();
7203
  ;
7204
  return 0;
7205
}
7206
_ACEOF
7207
if ac_fn_cxx_try_link "$LINENO"; then :
7208
  eval "$as_ac_Lib=yes"
7209
else
7210
  eval "$as_ac_Lib=no"
7211
fi
7212
rm -f core conftest.err conftest.$ac_objext \
7213
    conftest$ac_exeext conftest.$ac_ext
7214
LIBS=$ac_check_lib_save_LIBS
7215
fi
7216
eval ac_res=\$$as_ac_Lib
7217
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7218
$as_echo "$ac_res" >&6; }
7219
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7220
  LIBS="$LIBS -l$SV_MODULE_LIB"
7221
else
7222
  { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5
7223
$as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;}
7224
fi
7225

    
7226
      fi
7227
   fi
7228
fi
7229

    
7230

    
7231
SV_MODULE_MODULE=opus
7232
SV_MODULE_VERSION_TEST="opusfile"
7233
SV_MODULE_HEADER=opus/opusfile.h
7234
SV_MODULE_LIB=opusfile
7235
SV_MODULE_FUNC=op_read_float
7236
SV_MODULE_HAVE=HAVE_$(echo opus | tr 'a-z' 'A-Z')
7237
SV_MODULE_FAILED=1
7238
if test -n "$opus_LIBS" ; then
7239
   { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
7240
$as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
7241
   CXXFLAGS="$CXXFLAGS $opus_CFLAGS"
7242
   LIBS="$LIBS $opus_LIBS"
7243
   SV_MODULE_FAILED=""
7244
fi
7245
if test -z "$SV_MODULE_VERSION_TEST" ; then
7246
   SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
7247
fi
7248
if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
7249

    
7250
pkg_failed=no
7251
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for opus" >&5
7252
$as_echo_n "checking for opus... " >&6; }
7253

    
7254
if test -n "$opus_CFLAGS"; then
7255
    pkg_cv_opus_CFLAGS="$opus_CFLAGS"
7256
 elif test -n "$PKG_CONFIG"; then
7257
    if test -n "$PKG_CONFIG" && \
7258
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
7259
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
7260
  ac_status=$?
7261
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7262
  test $ac_status = 0; }; then
7263
  pkg_cv_opus_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
7264
		      test "x$?" != "x0" && pkg_failed=yes
7265
else
7266
  pkg_failed=yes
7267
fi
7268
 else
7269
    pkg_failed=untried
7270
fi
7271
if test -n "$opus_LIBS"; then
7272
    pkg_cv_opus_LIBS="$opus_LIBS"
7273
 elif test -n "$PKG_CONFIG"; then
7274
    if test -n "$PKG_CONFIG" && \
7275
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
7276
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
7277
  ac_status=$?
7278
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7279
  test $ac_status = 0; }; then
7280
  pkg_cv_opus_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
7281
		      test "x$?" != "x0" && pkg_failed=yes
7282
else
7283
  pkg_failed=yes
7284
fi
7285
 else
7286
    pkg_failed=untried
7287
fi
7288

    
7289

    
7290

    
7291
if test $pkg_failed = yes; then
7292
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7293
$as_echo "no" >&6; }
7294

    
7295
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7296
        _pkg_short_errors_supported=yes
7297
else
7298
        _pkg_short_errors_supported=no
7299
fi
7300
        if test $_pkg_short_errors_supported = yes; then
7301
	        opus_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
7302
        else
7303
	        opus_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
7304
        fi
7305
	# Put the nasty error message in config.log where it belongs
7306
	echo "$opus_PKG_ERRORS" >&5
7307

    
7308
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
7309
$as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
7310
elif test $pkg_failed = untried; then
7311
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7312
$as_echo "no" >&6; }
7313
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
7314
$as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
7315
else
7316
	opus_CFLAGS=$pkg_cv_opus_CFLAGS
7317
	opus_LIBS=$pkg_cv_opus_LIBS
7318
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7319
$as_echo "yes" >&6; }
7320
	HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $opus_CFLAGS";LIBS="$LIBS $opus_LIBS";SV_MODULE_FAILED=""
7321
fi
7322
fi
7323
if test -n "$SV_MODULE_FAILED"; then
7324
   as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
7325
ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
7326
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7327
  HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""
7328
else
7329
  { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5
7330
$as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;}
7331
fi
7332

    
7333

    
7334
   if test -z "$SV_MODULE_FAILED"; then
7335
      if test -n "$SV_MODULE_LIB"; then
7336
           as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
7337
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
7338
$as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
7339
if eval \${$as_ac_Lib+:} false; then :
7340
  $as_echo_n "(cached) " >&6
7341
else
7342
  ac_check_lib_save_LIBS=$LIBS
7343
LIBS="-l$SV_MODULE_LIB  $LIBS"
7344
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7345
/* end confdefs.h.  */
7346

    
7347
/* Override any GCC internal prototype to avoid an error.
7348
   Use char because int might match the return type of a GCC
7349
   builtin and then its argument prototype would still apply.  */
7350
#ifdef __cplusplus
7351
extern "C"
7352
#endif
7353
char $SV_MODULE_FUNC ();
7354
int
7355
main ()
7356
{
7357
return $SV_MODULE_FUNC ();
7358
  ;
7359
  return 0;
7360
}
7361
_ACEOF
7362
if ac_fn_cxx_try_link "$LINENO"; then :
7363
  eval "$as_ac_Lib=yes"
7364
else
7365
  eval "$as_ac_Lib=no"
7366
fi
7367
rm -f core conftest.err conftest.$ac_objext \
7368
    conftest$ac_exeext conftest.$ac_ext
7369
LIBS=$ac_check_lib_save_LIBS
7370
fi
7371
eval ac_res=\$$as_ac_Lib
7372
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7373
$as_echo "$ac_res" >&6; }
7374
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7375
  LIBS="$LIBS -l$SV_MODULE_LIB"
7376
else
7377
  { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5
7378
$as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;}
7379
fi
7380

    
7381
      fi
7382
   fi
7383
fi
7384

    
7385

    
7386
# Link in -lX11 if it exists -- this is for the X error handler
7387

    
7388
SV_MODULE_MODULE=X11
7389
SV_MODULE_VERSION_TEST="x11 >= 1.0.0"
7390
SV_MODULE_HEADER=X11/X.h
7391
SV_MODULE_LIB=x11
7392
SV_MODULE_FUNC=XGetErrorText
7393
SV_MODULE_HAVE=HAVE_$(echo X11 | tr 'a-z' 'A-Z')
7394
SV_MODULE_FAILED=1
7395
if test -n "$X11_LIBS" ; then
7396
   { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
7397
$as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
7398
   CXXFLAGS="$CXXFLAGS $X11_CFLAGS"
7399
   LIBS="$LIBS $X11_LIBS"
7400
   SV_MODULE_FAILED=""
7401
fi
7402
if test -z "$SV_MODULE_VERSION_TEST" ; then
7403
   SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
7404
fi
7405
if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
7406

    
7407
pkg_failed=no
7408
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
7409
$as_echo_n "checking for X11... " >&6; }
7410

    
7411
if test -n "$X11_CFLAGS"; then
7412
    pkg_cv_X11_CFLAGS="$X11_CFLAGS"
7413
 elif test -n "$PKG_CONFIG"; then
7414
    if test -n "$PKG_CONFIG" && \
7415
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
7416
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
7417
  ac_status=$?
7418
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7419
  test $ac_status = 0; }; then
7420
  pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
7421
		      test "x$?" != "x0" && pkg_failed=yes
7422
else
7423
  pkg_failed=yes
7424
fi
7425
 else
7426
    pkg_failed=untried
7427
fi
7428
if test -n "$X11_LIBS"; then
7429
    pkg_cv_X11_LIBS="$X11_LIBS"
7430
 elif test -n "$PKG_CONFIG"; then
7431
    if test -n "$PKG_CONFIG" && \
7432
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
7433
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
7434
  ac_status=$?
7435
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7436
  test $ac_status = 0; }; then
7437
  pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
7438
		      test "x$?" != "x0" && pkg_failed=yes
7439
else
7440
  pkg_failed=yes
7441
fi
7442
 else
7443
    pkg_failed=untried
7444
fi
7445

    
7446

    
7447

    
7448
if test $pkg_failed = yes; then
7449
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7450
$as_echo "no" >&6; }
7451

    
7452
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7453
        _pkg_short_errors_supported=yes
7454
else
7455
        _pkg_short_errors_supported=no
7456
fi
7457
        if test $_pkg_short_errors_supported = yes; then
7458
	        X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
7459
        else
7460
	        X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
7461
        fi
7462
	# Put the nasty error message in config.log where it belongs
7463
	echo "$X11_PKG_ERRORS" >&5
7464

    
7465
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
7466
$as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
7467
elif test $pkg_failed = untried; then
7468
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7469
$as_echo "no" >&6; }
7470
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
7471
$as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
7472
else
7473
	X11_CFLAGS=$pkg_cv_X11_CFLAGS
7474
	X11_LIBS=$pkg_cv_X11_LIBS
7475
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7476
$as_echo "yes" >&6; }
7477
	HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $X11_CFLAGS";LIBS="$LIBS $X11_LIBS";SV_MODULE_FAILED=""
7478
fi
7479
fi
7480
if test -n "$SV_MODULE_FAILED"; then
7481
   as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
7482
ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
7483
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7484
  HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""
7485
else
7486
  { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5
7487
$as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;}
7488
fi
7489

    
7490

    
7491
   if test -z "$SV_MODULE_FAILED"; then
7492
      if test -n "$SV_MODULE_LIB"; then
7493
           as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
7494
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
7495
$as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
7496
if eval \${$as_ac_Lib+:} false; then :
7497
  $as_echo_n "(cached) " >&6
7498
else
7499
  ac_check_lib_save_LIBS=$LIBS
7500
LIBS="-l$SV_MODULE_LIB  $LIBS"
7501
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7502
/* end confdefs.h.  */
7503

    
7504
/* Override any GCC internal prototype to avoid an error.
7505
   Use char because int might match the return type of a GCC
7506
   builtin and then its argument prototype would still apply.  */
7507
#ifdef __cplusplus
7508
extern "C"
7509
#endif
7510
char $SV_MODULE_FUNC ();
7511
int
7512
main ()
7513
{
7514
return $SV_MODULE_FUNC ();
7515
  ;
7516
  return 0;
7517
}
7518
_ACEOF
7519
if ac_fn_cxx_try_link "$LINENO"; then :
7520
  eval "$as_ac_Lib=yes"
7521
else
7522
  eval "$as_ac_Lib=no"
7523
fi
7524
rm -f core conftest.err conftest.$ac_objext \
7525
    conftest$ac_exeext conftest.$ac_ext
7526
LIBS=$ac_check_lib_save_LIBS
7527
fi
7528
eval ac_res=\$$as_ac_Lib
7529
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7530
$as_echo "$ac_res" >&6; }
7531
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7532
  LIBS="$LIBS -l$SV_MODULE_LIB"
7533
else
7534
  { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5
7535
$as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;}
7536
fi
7537

    
7538
      fi
7539
   fi
7540
fi
7541

    
7542

    
7543

    
7544

    
7545

    
7546

    
7547

    
7548

    
7549

    
7550

    
7551

    
7552

    
7553

    
7554

    
7555

    
7556

    
7557

    
7558

    
7559

    
7560

    
7561
ac_config_files="$ac_config_files config.pri"
7562

    
7563

    
7564
cat >confcache <<\_ACEOF
7565
# This file is a shell script that caches the results of configure
7566
# tests run on this system so they can be shared between configure
7567
# scripts and configure runs, see configure's option --config-cache.
7568
# It is not useful on other systems.  If it contains results you don't
7569
# want to keep, you may remove or edit it.
7570
#
7571
# config.status only pays attention to the cache file if you give it
7572
# the --recheck option to rerun configure.
7573
#
7574
# `ac_cv_env_foo' variables (set or unset) will be overridden when
7575
# loading this file, other *unset* `ac_cv_foo' will be assigned the
7576
# following values.
7577

    
7578
_ACEOF
7579

    
7580
# The following way of writing the cache mishandles newlines in values,
7581
# but we know of no workaround that is simple, portable, and efficient.
7582
# So, we kill variables containing newlines.
7583
# Ultrix sh set writes to stderr and can't be redirected directly,
7584
# and sets the high bit in the cache file unless we assign to the vars.
7585
(
7586
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7587
    eval ac_val=\$$ac_var
7588
    case $ac_val in #(
7589
    *${as_nl}*)
7590
      case $ac_var in #(
7591
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7592
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7593
      esac
7594
      case $ac_var in #(
7595
      _ | IFS | as_nl) ;; #(
7596
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7597
      *) { eval $ac_var=; unset $ac_var;} ;;
7598
      esac ;;
7599
    esac
7600
  done
7601

    
7602
  (set) 2>&1 |
7603
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
7604
    *${as_nl}ac_space=\ *)
7605
      # `set' does not quote correctly, so add quotes: double-quote
7606
      # substitution turns \\\\ into \\, and sed turns \\ into \.
7607
      sed -n \
7608
	"s/'/'\\\\''/g;
7609
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7610
      ;; #(
7611
    *)
7612
      # `set' quotes correctly as required by POSIX, so do not add quotes.
7613
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7614
      ;;
7615
    esac |
7616
    sort
7617
) |
7618
  sed '
7619
     /^ac_cv_env_/b end
7620
     t clear
7621
     :clear
7622
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7623
     t end
7624
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7625
     :end' >>confcache
7626
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7627
  if test -w "$cache_file"; then
7628
    if test "x$cache_file" != "x/dev/null"; then
7629
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7630
$as_echo "$as_me: updating cache $cache_file" >&6;}
7631
      if test ! -f "$cache_file" || test -h "$cache_file"; then
7632
	cat confcache >"$cache_file"
7633
      else
7634
        case $cache_file in #(
7635
        */* | ?:*)
7636
	  mv -f confcache "$cache_file"$$ &&
7637
	  mv -f "$cache_file"$$ "$cache_file" ;; #(
7638
        *)
7639
	  mv -f confcache "$cache_file" ;;
7640
	esac
7641
      fi
7642
    fi
7643
  else
7644
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7645
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7646
  fi
7647
fi
7648
rm -f confcache
7649

    
7650
test "x$prefix" = xNONE && prefix=$ac_default_prefix
7651
# Let make expand exec_prefix.
7652
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7653

    
7654
# Transform confdefs.h into DEFS.
7655
# Protect against shell expansion while executing Makefile rules.
7656
# Protect against Makefile macro expansion.
7657
#
7658
# If the first sed substitution is executed (which looks for macros that
7659
# take arguments), then branch to the quote section.  Otherwise,
7660
# look for a macro that doesn't take arguments.
7661
ac_script='
7662
:mline
7663
/\\$/{
7664
 N
7665
 s,\\\n,,
7666
 b mline
7667
}
7668
t clear
7669
:clear
7670
s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
7671
t quote
7672
s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
7673
t quote
7674
b any
7675
:quote
7676
s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
7677
s/\[/\\&/g
7678
s/\]/\\&/g
7679
s/\$/$$/g
7680
H
7681
:any
7682
${
7683
	g
7684
	s/^\n//
7685
	s/\n/ /g
7686
	p
7687
}
7688
'
7689
DEFS=`sed -n "$ac_script" confdefs.h`
7690

    
7691

    
7692
ac_libobjs=
7693
ac_ltlibobjs=
7694
U=
7695
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7696
  # 1. Remove the extension, and $U if already installed.
7697
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7698
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7699
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
7700
  #    will be set to the directory where LIBOBJS objects are built.
7701
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7702
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7703
done
7704
LIBOBJS=$ac_libobjs
7705

    
7706
LTLIBOBJS=$ac_ltlibobjs
7707

    
7708

    
7709

    
7710
: "${CONFIG_STATUS=./config.status}"
7711
ac_write_fail=0
7712
ac_clean_files_save=$ac_clean_files
7713
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7714
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7715
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7716
as_write_fail=0
7717
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7718
#! $SHELL
7719
# Generated by $as_me.
7720
# Run this file to recreate the current configuration.
7721
# Compiler output produced by configure, useful for debugging
7722
# configure, is in config.log if it exists.
7723

    
7724
debug=false
7725
ac_cs_recheck=false
7726
ac_cs_silent=false
7727

    
7728
SHELL=\${CONFIG_SHELL-$SHELL}
7729
export SHELL
7730
_ASEOF
7731
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7732
## -------------------- ##
7733
## M4sh Initialization. ##
7734
## -------------------- ##
7735

    
7736
# Be more Bourne compatible
7737
DUALCASE=1; export DUALCASE # for MKS sh
7738
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7739
  emulate sh
7740
  NULLCMD=:
7741
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7742
  # is contrary to our usage.  Disable this feature.
7743
  alias -g '${1+"$@"}'='"$@"'
7744
  setopt NO_GLOB_SUBST
7745
else
7746
  case `(set -o) 2>/dev/null` in #(
7747
  *posix*) :
7748
    set -o posix ;; #(
7749
  *) :
7750
     ;;
7751
esac
7752
fi
7753

    
7754

    
7755
as_nl='
7756
'
7757
export as_nl
7758
# Printing a long string crashes Solaris 7 /usr/bin/printf.
7759
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7760
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7761
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7762
# Prefer a ksh shell builtin over an external printf program on Solaris,
7763
# but without wasting forks for bash or zsh.
7764
if test -z "$BASH_VERSION$ZSH_VERSION" \
7765
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7766
  as_echo='print -r --'
7767
  as_echo_n='print -rn --'
7768
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7769
  as_echo='printf %s\n'
7770
  as_echo_n='printf %s'
7771
else
7772
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7773
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7774
    as_echo_n='/usr/ucb/echo -n'
7775
  else
7776
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7777
    as_echo_n_body='eval
7778
      arg=$1;
7779
      case $arg in #(
7780
      *"$as_nl"*)
7781
	expr "X$arg" : "X\\(.*\\)$as_nl";
7782
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7783
      esac;
7784
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7785
    '
7786
    export as_echo_n_body
7787
    as_echo_n='sh -c $as_echo_n_body as_echo'
7788
  fi
7789
  export as_echo_body
7790
  as_echo='sh -c $as_echo_body as_echo'
7791
fi
7792

    
7793
# The user is always right.
7794
if test "${PATH_SEPARATOR+set}" != set; then
7795
  PATH_SEPARATOR=:
7796
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7797
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7798
      PATH_SEPARATOR=';'
7799
  }
7800
fi
7801

    
7802

    
7803
# IFS
7804
# We need space, tab and new line, in precisely that order.  Quoting is
7805
# there to prevent editors from complaining about space-tab.
7806
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
7807
# splitting by setting IFS to empty value.)
7808
IFS=" ""	$as_nl"
7809

    
7810
# Find who we are.  Look in the path if we contain no directory separator.
7811
as_myself=
7812
case $0 in #((
7813
  *[\\/]* ) as_myself=$0 ;;
7814
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7815
for as_dir in $PATH
7816
do
7817
  IFS=$as_save_IFS
7818
  test -z "$as_dir" && as_dir=.
7819
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7820
  done
7821
IFS=$as_save_IFS
7822

    
7823
     ;;
7824
esac
7825
# We did not find ourselves, most probably we were run as `sh COMMAND'
7826
# in which case we are not to be found in the path.
7827
if test "x$as_myself" = x; then
7828
  as_myself=$0
7829
fi
7830
if test ! -f "$as_myself"; then
7831
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7832
  exit 1
7833
fi
7834

    
7835
# Unset variables that we do not need and which cause bugs (e.g. in
7836
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
7837
# suppresses any "Segmentation fault" message there.  '((' could
7838
# trigger a bug in pdksh 5.2.14.
7839
for as_var in BASH_ENV ENV MAIL MAILPATH
7840
do eval test x\${$as_var+set} = xset \
7841
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7842
done
7843
PS1='$ '
7844
PS2='> '
7845
PS4='+ '
7846

    
7847
# NLS nuisances.
7848
LC_ALL=C
7849
export LC_ALL
7850
LANGUAGE=C
7851
export LANGUAGE
7852

    
7853
# CDPATH.
7854
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7855

    
7856

    
7857
# as_fn_error STATUS ERROR [LINENO LOG_FD]
7858
# ----------------------------------------
7859
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7860
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7861
# script with STATUS, using 1 if that was 0.
7862
as_fn_error ()
7863
{
7864
  as_status=$1; test $as_status -eq 0 && as_status=1
7865
  if test "$4"; then
7866
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7867
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7868
  fi
7869
  $as_echo "$as_me: error: $2" >&2
7870
  as_fn_exit $as_status
7871
} # as_fn_error
7872

    
7873

    
7874
# as_fn_set_status STATUS
7875
# -----------------------
7876
# Set $? to STATUS, without forking.
7877
as_fn_set_status ()
7878
{
7879
  return $1
7880
} # as_fn_set_status
7881

    
7882
# as_fn_exit STATUS
7883
# -----------------
7884
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7885
as_fn_exit ()
7886
{
7887
  set +e
7888
  as_fn_set_status $1
7889
  exit $1
7890
} # as_fn_exit
7891

    
7892
# as_fn_unset VAR
7893
# ---------------
7894
# Portably unset VAR.
7895
as_fn_unset ()
7896
{
7897
  { eval $1=; unset $1;}
7898
}
7899
as_unset=as_fn_unset
7900
# as_fn_append VAR VALUE
7901
# ----------------------
7902
# Append the text in VALUE to the end of the definition contained in VAR. Take
7903
# advantage of any shell optimizations that allow amortized linear growth over
7904
# repeated appends, instead of the typical quadratic growth present in naive
7905
# implementations.
7906
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7907
  eval 'as_fn_append ()
7908
  {
7909
    eval $1+=\$2
7910
  }'
7911
else
7912
  as_fn_append ()
7913
  {
7914
    eval $1=\$$1\$2
7915
  }
7916
fi # as_fn_append
7917

    
7918
# as_fn_arith ARG...
7919
# ------------------
7920
# Perform arithmetic evaluation on the ARGs, and store the result in the
7921
# global $as_val. Take advantage of shells that can avoid forks. The arguments
7922
# must be portable across $(()) and expr.
7923
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7924
  eval 'as_fn_arith ()
7925
  {
7926
    as_val=$(( $* ))
7927
  }'
7928
else
7929
  as_fn_arith ()
7930
  {
7931
    as_val=`expr "$@" || test $? -eq 1`
7932
  }
7933
fi # as_fn_arith
7934

    
7935

    
7936
if expr a : '\(a\)' >/dev/null 2>&1 &&
7937
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
7938
  as_expr=expr
7939
else
7940
  as_expr=false
7941
fi
7942

    
7943
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7944
  as_basename=basename
7945
else
7946
  as_basename=false
7947
fi
7948

    
7949
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7950
  as_dirname=dirname
7951
else
7952
  as_dirname=false
7953
fi
7954

    
7955
as_me=`$as_basename -- "$0" ||
7956
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7957
	 X"$0" : 'X\(//\)$' \| \
7958
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7959
$as_echo X/"$0" |
7960
    sed '/^.*\/\([^/][^/]*\)\/*$/{
7961
	    s//\1/
7962
	    q
7963
	  }
7964
	  /^X\/\(\/\/\)$/{
7965
	    s//\1/
7966
	    q
7967
	  }
7968
	  /^X\/\(\/\).*/{
7969
	    s//\1/
7970
	    q
7971
	  }
7972
	  s/.*/./; q'`
7973

    
7974
# Avoid depending upon Character Ranges.
7975
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7976
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7977
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7978
as_cr_digits='0123456789'
7979
as_cr_alnum=$as_cr_Letters$as_cr_digits
7980

    
7981
ECHO_C= ECHO_N= ECHO_T=
7982
case `echo -n x` in #(((((
7983
-n*)
7984
  case `echo 'xy\c'` in
7985
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
7986
  xy)  ECHO_C='\c';;
7987
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
7988
       ECHO_T='	';;
7989
  esac;;
7990
*)
7991
  ECHO_N='-n';;
7992
esac
7993

    
7994
rm -f conf$$ conf$$.exe conf$$.file
7995
if test -d conf$$.dir; then
7996
  rm -f conf$$.dir/conf$$.file
7997
else
7998
  rm -f conf$$.dir
7999
  mkdir conf$$.dir 2>/dev/null
8000
fi
8001
if (echo >conf$$.file) 2>/dev/null; then
8002
  if ln -s conf$$.file conf$$ 2>/dev/null; then
8003
    as_ln_s='ln -s'
8004
    # ... but there are two gotchas:
8005
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8006
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8007
    # In both cases, we have to default to `cp -pR'.
8008
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8009
      as_ln_s='cp -pR'
8010
  elif ln conf$$.file conf$$ 2>/dev/null; then
8011
    as_ln_s=ln
8012
  else
8013
    as_ln_s='cp -pR'
8014
  fi
8015
else
8016
  as_ln_s='cp -pR'
8017
fi
8018
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8019
rmdir conf$$.dir 2>/dev/null
8020

    
8021

    
8022
# as_fn_mkdir_p
8023
# -------------
8024
# Create "$as_dir" as a directory, including parents if necessary.
8025
as_fn_mkdir_p ()
8026
{
8027

    
8028
  case $as_dir in #(
8029
  -*) as_dir=./$as_dir;;
8030
  esac
8031
  test -d "$as_dir" || eval $as_mkdir_p || {
8032
    as_dirs=
8033
    while :; do
8034
      case $as_dir in #(
8035
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8036
      *) as_qdir=$as_dir;;
8037
      esac
8038
      as_dirs="'$as_qdir' $as_dirs"
8039
      as_dir=`$as_dirname -- "$as_dir" ||
8040
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8041
	 X"$as_dir" : 'X\(//\)[^/]' \| \
8042
	 X"$as_dir" : 'X\(//\)$' \| \
8043
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8044
$as_echo X"$as_dir" |
8045
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8046
	    s//\1/
8047
	    q
8048
	  }
8049
	  /^X\(\/\/\)[^/].*/{
8050
	    s//\1/
8051
	    q
8052
	  }
8053
	  /^X\(\/\/\)$/{
8054
	    s//\1/
8055
	    q
8056
	  }
8057
	  /^X\(\/\).*/{
8058
	    s//\1/
8059
	    q
8060
	  }
8061
	  s/.*/./; q'`
8062
      test -d "$as_dir" && break
8063
    done
8064
    test -z "$as_dirs" || eval "mkdir $as_dirs"
8065
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8066

    
8067

    
8068
} # as_fn_mkdir_p
8069
if mkdir -p . 2>/dev/null; then
8070
  as_mkdir_p='mkdir -p "$as_dir"'
8071
else
8072
  test -d ./-p && rmdir ./-p
8073
  as_mkdir_p=false
8074
fi
8075

    
8076

    
8077
# as_fn_executable_p FILE
8078
# -----------------------
8079
# Test if FILE is an executable regular file.
8080
as_fn_executable_p ()
8081
{
8082
  test -f "$1" && test -x "$1"
8083
} # as_fn_executable_p
8084
as_test_x='test -x'
8085
as_executable_p=as_fn_executable_p
8086

    
8087
# Sed expression to map a string onto a valid CPP name.
8088
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8089

    
8090
# Sed expression to map a string onto a valid variable name.
8091
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8092

    
8093

    
8094
exec 6>&1
8095
## ----------------------------------- ##
8096
## Main body of $CONFIG_STATUS script. ##
8097
## ----------------------------------- ##
8098
_ASEOF
8099
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8100

    
8101
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8102
# Save the log message, to keep $0 and so on meaningful, and to
8103
# report actual input values of CONFIG_FILES etc. instead of their
8104
# values after options handling.
8105
ac_log="
8106
This file was extended by $as_me, which was
8107
generated by GNU Autoconf 2.69.  Invocation command line was
8108

    
8109
  CONFIG_FILES    = $CONFIG_FILES
8110
  CONFIG_HEADERS  = $CONFIG_HEADERS
8111
  CONFIG_LINKS    = $CONFIG_LINKS
8112
  CONFIG_COMMANDS = $CONFIG_COMMANDS
8113
  $ $0 $@
8114

    
8115
on `(hostname || uname -n) 2>/dev/null | sed 1q`
8116
"
8117

    
8118
_ACEOF
8119

    
8120
case $ac_config_files in *"
8121
"*) set x $ac_config_files; shift; ac_config_files=$*;;
8122
esac
8123

    
8124

    
8125

    
8126
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8127
# Files that config.status was made for.
8128
config_files="$ac_config_files"
8129

    
8130
_ACEOF
8131

    
8132
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8133
ac_cs_usage="\
8134
\`$as_me' instantiates files and other configuration actions
8135
from templates according to the current configuration.  Unless the files
8136
and actions are specified as TAGs, all are instantiated by default.
8137

    
8138
Usage: $0 [OPTION]... [TAG]...
8139

    
8140
  -h, --help       print this help, then exit
8141
  -V, --version    print version number and configuration settings, then exit
8142
      --config     print configuration, then exit
8143
  -q, --quiet, --silent
8144
                   do not print progress messages
8145
  -d, --debug      don't remove temporary files
8146
      --recheck    update $as_me by reconfiguring in the same conditions
8147
      --file=FILE[:TEMPLATE]
8148
                   instantiate the configuration file FILE
8149

    
8150
Configuration files:
8151
$config_files
8152

    
8153
Report bugs to the package provider."
8154

    
8155
_ACEOF
8156
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8157
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8158
ac_cs_version="\\
8159
config.status
8160
configured by $0, generated by GNU Autoconf 2.69,
8161
  with options \\"\$ac_cs_config\\"
8162

    
8163
Copyright (C) 2012 Free Software Foundation, Inc.
8164
This config.status script is free software; the Free Software Foundation
8165
gives unlimited permission to copy, distribute and modify it."
8166

    
8167
ac_pwd='$ac_pwd'
8168
srcdir='$srcdir'
8169
INSTALL='$INSTALL'
8170
MKDIR_P='$MKDIR_P'
8171
test -n "\$AWK" || AWK=awk
8172
_ACEOF
8173

    
8174
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8175
# The default lists apply if the user does not specify any file.
8176
ac_need_defaults=:
8177
while test $# != 0
8178
do
8179
  case $1 in
8180
  --*=?*)
8181
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
8182
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8183
    ac_shift=:
8184
    ;;
8185
  --*=)
8186
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
8187
    ac_optarg=
8188
    ac_shift=:
8189
    ;;
8190
  *)
8191
    ac_option=$1
8192
    ac_optarg=$2
8193
    ac_shift=shift
8194
    ;;
8195
  esac
8196

    
8197
  case $ac_option in
8198
  # Handling of the options.
8199
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8200
    ac_cs_recheck=: ;;
8201
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8202
    $as_echo "$ac_cs_version"; exit ;;
8203
  --config | --confi | --conf | --con | --co | --c )
8204
    $as_echo "$ac_cs_config"; exit ;;
8205
  --debug | --debu | --deb | --de | --d | -d )
8206
    debug=: ;;
8207
  --file | --fil | --fi | --f )
8208
    $ac_shift
8209
    case $ac_optarg in
8210
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8211
    '') as_fn_error $? "missing file argument" ;;
8212
    esac
8213
    as_fn_append CONFIG_FILES " '$ac_optarg'"
8214
    ac_need_defaults=false;;
8215
  --he | --h |  --help | --hel | -h )
8216
    $as_echo "$ac_cs_usage"; exit ;;
8217
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8218
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
8219
    ac_cs_silent=: ;;
8220

    
8221
  # This is an error.
8222
  -*) as_fn_error $? "unrecognized option: \`$1'
8223
Try \`$0 --help' for more information." ;;
8224

    
8225
  *) as_fn_append ac_config_targets " $1"
8226
     ac_need_defaults=false ;;
8227

    
8228
  esac
8229
  shift
8230
done
8231

    
8232
ac_configure_extra_args=
8233

    
8234
if $ac_cs_silent; then
8235
  exec 6>/dev/null
8236
  ac_configure_extra_args="$ac_configure_extra_args --silent"
8237
fi
8238

    
8239
_ACEOF
8240
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8241
if \$ac_cs_recheck; then
8242
  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8243
  shift
8244
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8245
  CONFIG_SHELL='$SHELL'
8246
  export CONFIG_SHELL
8247
  exec "\$@"
8248
fi
8249

    
8250
_ACEOF
8251
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8252
exec 5>>config.log
8253
{
8254
  echo
8255
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8256
## Running $as_me. ##
8257
_ASBOX
8258
  $as_echo "$ac_log"
8259
} >&5
8260

    
8261
_ACEOF
8262
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8263
_ACEOF
8264

    
8265
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8266

    
8267
# Handling of arguments.
8268
for ac_config_target in $ac_config_targets
8269
do
8270
  case $ac_config_target in
8271
    "config.pri") CONFIG_FILES="$CONFIG_FILES config.pri" ;;
8272

    
8273
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8274
  esac
8275
done
8276

    
8277

    
8278
# If the user did not use the arguments to specify the items to instantiate,
8279
# then the envvar interface is used.  Set only those that are not.
8280
# We use the long form for the default assignment because of an extremely
8281
# bizarre bug on SunOS 4.1.3.
8282
if $ac_need_defaults; then
8283
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8284
fi
8285

    
8286
# Have a temporary directory for convenience.  Make it in the build tree
8287
# simply because there is no reason against having it here, and in addition,
8288
# creating and moving files from /tmp can sometimes cause problems.
8289
# Hook for its removal unless debugging.
8290
# Note that there is a small window in which the directory will not be cleaned:
8291
# after its creation but before its name has been assigned to `$tmp'.
8292
$debug ||
8293
{
8294
  tmp= ac_tmp=
8295
  trap 'exit_status=$?
8296
  : "${ac_tmp:=$tmp}"
8297
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8298
' 0
8299
  trap 'as_fn_exit 1' 1 2 13 15
8300
}
8301
# Create a (secure) tmp directory for tmp files.
8302

    
8303
{
8304
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8305
  test -d "$tmp"
8306
}  ||
8307
{
8308
  tmp=./conf$$-$RANDOM
8309
  (umask 077 && mkdir "$tmp")
8310
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8311
ac_tmp=$tmp
8312

    
8313
# Set up the scripts for CONFIG_FILES section.
8314
# No need to generate them if there are no CONFIG_FILES.
8315
# This happens for instance with `./config.status config.h'.
8316
if test -n "$CONFIG_FILES"; then
8317

    
8318

    
8319
ac_cr=`echo X | tr X '\015'`
8320
# On cygwin, bash can eat \r inside `` if the user requested igncr.
8321
# But we know of no other shell where ac_cr would be empty at this
8322
# point, so we can use a bashism as a fallback.
8323
if test "x$ac_cr" = x; then
8324
  eval ac_cr=\$\'\\r\'
8325
fi
8326
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8327
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8328
  ac_cs_awk_cr='\\r'
8329
else
8330
  ac_cs_awk_cr=$ac_cr
8331
fi
8332

    
8333
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8334
_ACEOF
8335

    
8336

    
8337
{
8338
  echo "cat >conf$$subs.awk <<_ACEOF" &&
8339
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8340
  echo "_ACEOF"
8341
} >conf$$subs.sh ||
8342
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8343
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8344
ac_delim='%!_!# '
8345
for ac_last_try in false false false false false :; do
8346
  . ./conf$$subs.sh ||
8347
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8348

    
8349
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8350
  if test $ac_delim_n = $ac_delim_num; then
8351
    break
8352
  elif $ac_last_try; then
8353
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8354
  else
8355
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8356
  fi
8357
done
8358
rm -f conf$$subs.sh
8359

    
8360
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8361
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8362
_ACEOF
8363
sed -n '
8364
h
8365
s/^/S["/; s/!.*/"]=/
8366
p
8367
g
8368
s/^[^!]*!//
8369
:repl
8370
t repl
8371
s/'"$ac_delim"'$//
8372
t delim
8373
:nl
8374
h
8375
s/\(.\{148\}\)..*/\1/
8376
t more1
8377
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8378
p
8379
n
8380
b repl
8381
:more1
8382
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8383
p
8384
g
8385
s/.\{148\}//
8386
t nl
8387
:delim
8388
h
8389
s/\(.\{148\}\)..*/\1/
8390
t more2
8391
s/["\\]/\\&/g; s/^/"/; s/$/"/
8392
p
8393
b
8394
:more2
8395
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8396
p
8397
g
8398
s/.\{148\}//
8399
t delim
8400
' <conf$$subs.awk | sed '
8401
/^[^""]/{
8402
  N
8403
  s/\n//
8404
}
8405
' >>$CONFIG_STATUS || ac_write_fail=1
8406
rm -f conf$$subs.awk
8407
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8408
_ACAWK
8409
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8410
  for (key in S) S_is_set[key] = 1
8411
  FS = ""
8412

    
8413
}
8414
{
8415
  line = $ 0
8416
  nfields = split(line, field, "@")
8417
  substed = 0
8418
  len = length(field[1])
8419
  for (i = 2; i < nfields; i++) {
8420
    key = field[i]
8421
    keylen = length(key)
8422
    if (S_is_set[key]) {
8423
      value = S[key]
8424
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8425
      len += length(value) + length(field[++i])
8426
      substed = 1
8427
    } else
8428
      len += 1 + keylen
8429
  }
8430

    
8431
  print line
8432
}
8433

    
8434
_ACAWK
8435
_ACEOF
8436
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8437
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8438
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8439
else
8440
  cat
8441
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8442
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8443
_ACEOF
8444

    
8445
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8446
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8447
# trailing colons and then remove the whole line if VPATH becomes empty
8448
# (actually we leave an empty line to preserve line numbers).
8449
if test "x$srcdir" = x.; then
8450
  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
8451
h
8452
s///
8453
s/^/:/
8454
s/[	 ]*$/:/
8455
s/:\$(srcdir):/:/g
8456
s/:\${srcdir}:/:/g
8457
s/:@srcdir@:/:/g
8458
s/^:*//
8459
s/:*$//
8460
x
8461
s/\(=[	 ]*\).*/\1/
8462
G
8463
s/\n//
8464
s/^[^=]*=[	 ]*$//
8465
}'
8466
fi
8467

    
8468
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8469
fi # test -n "$CONFIG_FILES"
8470

    
8471

    
8472
eval set X "  :F $CONFIG_FILES      "
8473
shift
8474
for ac_tag
8475
do
8476
  case $ac_tag in
8477
  :[FHLC]) ac_mode=$ac_tag; continue;;
8478
  esac
8479
  case $ac_mode$ac_tag in
8480
  :[FHL]*:*);;
8481
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8482
  :[FH]-) ac_tag=-:-;;
8483
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8484
  esac
8485
  ac_save_IFS=$IFS
8486
  IFS=:
8487
  set x $ac_tag
8488
  IFS=$ac_save_IFS
8489
  shift
8490
  ac_file=$1
8491
  shift
8492

    
8493
  case $ac_mode in
8494
  :L) ac_source=$1;;
8495
  :[FH])
8496
    ac_file_inputs=
8497
    for ac_f
8498
    do
8499
      case $ac_f in
8500
      -) ac_f="$ac_tmp/stdin";;
8501
      *) # Look for the file first in the build tree, then in the source tree
8502
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
8503
	 # because $ac_f cannot contain `:'.
8504
	 test -f "$ac_f" ||
8505
	   case $ac_f in
8506
	   [\\/$]*) false;;
8507
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8508
	   esac ||
8509
	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8510
      esac
8511
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8512
      as_fn_append ac_file_inputs " '$ac_f'"
8513
    done
8514

    
8515
    # Let's still pretend it is `configure' which instantiates (i.e., don't
8516
    # use $as_me), people would be surprised to read:
8517
    #    /* config.h.  Generated by config.status.  */
8518
    configure_input='Generated from '`
8519
	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8520
	`' by configure.'
8521
    if test x"$ac_file" != x-; then
8522
      configure_input="$ac_file.  $configure_input"
8523
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8524
$as_echo "$as_me: creating $ac_file" >&6;}
8525
    fi
8526
    # Neutralize special characters interpreted by sed in replacement strings.
8527
    case $configure_input in #(
8528
    *\&* | *\|* | *\\* )
8529
       ac_sed_conf_input=`$as_echo "$configure_input" |
8530
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
8531
    *) ac_sed_conf_input=$configure_input;;
8532
    esac
8533

    
8534
    case $ac_tag in
8535
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
8536
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8537
    esac
8538
    ;;
8539
  esac
8540

    
8541
  ac_dir=`$as_dirname -- "$ac_file" ||
8542
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8543
	 X"$ac_file" : 'X\(//\)[^/]' \| \
8544
	 X"$ac_file" : 'X\(//\)$' \| \
8545
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8546
$as_echo X"$ac_file" |
8547
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8548
	    s//\1/
8549
	    q
8550
	  }
8551
	  /^X\(\/\/\)[^/].*/{
8552
	    s//\1/
8553
	    q
8554
	  }
8555
	  /^X\(\/\/\)$/{
8556
	    s//\1/
8557
	    q
8558
	  }
8559
	  /^X\(\/\).*/{
8560
	    s//\1/
8561
	    q
8562
	  }
8563
	  s/.*/./; q'`
8564
  as_dir="$ac_dir"; as_fn_mkdir_p
8565
  ac_builddir=.
8566

    
8567
case "$ac_dir" in
8568
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8569
*)
8570
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8571
  # A ".." for each directory in $ac_dir_suffix.
8572
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8573
  case $ac_top_builddir_sub in
8574
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8575
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8576
  esac ;;
8577
esac
8578
ac_abs_top_builddir=$ac_pwd
8579
ac_abs_builddir=$ac_pwd$ac_dir_suffix
8580
# for backward compatibility:
8581
ac_top_builddir=$ac_top_build_prefix
8582

    
8583
case $srcdir in
8584
  .)  # We are building in place.
8585
    ac_srcdir=.
8586
    ac_top_srcdir=$ac_top_builddir_sub
8587
    ac_abs_top_srcdir=$ac_pwd ;;
8588
  [\\/]* | ?:[\\/]* )  # Absolute name.
8589
    ac_srcdir=$srcdir$ac_dir_suffix;
8590
    ac_top_srcdir=$srcdir
8591
    ac_abs_top_srcdir=$srcdir ;;
8592
  *) # Relative name.
8593
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8594
    ac_top_srcdir=$ac_top_build_prefix$srcdir
8595
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8596
esac
8597
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8598

    
8599

    
8600
  case $ac_mode in
8601
  :F)
8602
  #
8603
  # CONFIG_FILE
8604
  #
8605

    
8606
  case $INSTALL in
8607
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8608
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8609
  esac
8610
  ac_MKDIR_P=$MKDIR_P
8611
  case $MKDIR_P in
8612
  [\\/$]* | ?:[\\/]* ) ;;
8613
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8614
  esac
8615
_ACEOF
8616

    
8617
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8618
# If the template does not know about datarootdir, expand it.
8619
# FIXME: This hack should be removed a few years after 2.60.
8620
ac_datarootdir_hack=; ac_datarootdir_seen=
8621
ac_sed_dataroot='
8622
/datarootdir/ {
8623
  p
8624
  q
8625
}
8626
/@datadir@/p
8627
/@docdir@/p
8628
/@infodir@/p
8629
/@localedir@/p
8630
/@mandir@/p'
8631
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8632
*datarootdir*) ac_datarootdir_seen=yes;;
8633
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8634
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8635
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8636
_ACEOF
8637
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8638
  ac_datarootdir_hack='
8639
  s&@datadir@&$datadir&g
8640
  s&@docdir@&$docdir&g
8641
  s&@infodir@&$infodir&g
8642
  s&@localedir@&$localedir&g
8643
  s&@mandir@&$mandir&g
8644
  s&\\\${datarootdir}&$datarootdir&g' ;;
8645
esac
8646
_ACEOF
8647

    
8648
# Neutralize VPATH when `$srcdir' = `.'.
8649
# Shell code in configure.ac might set extrasub.
8650
# FIXME: do we really want to maintain this feature?
8651
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8652
ac_sed_extra="$ac_vpsub
8653
$extrasub
8654
_ACEOF
8655
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8656
:t
8657
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8658
s|@configure_input@|$ac_sed_conf_input|;t t
8659
s&@top_builddir@&$ac_top_builddir_sub&;t t
8660
s&@top_build_prefix@&$ac_top_build_prefix&;t t
8661
s&@srcdir@&$ac_srcdir&;t t
8662
s&@abs_srcdir@&$ac_abs_srcdir&;t t
8663
s&@top_srcdir@&$ac_top_srcdir&;t t
8664
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8665
s&@builddir@&$ac_builddir&;t t
8666
s&@abs_builddir@&$ac_abs_builddir&;t t
8667
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8668
s&@INSTALL@&$ac_INSTALL&;t t
8669
s&@MKDIR_P@&$ac_MKDIR_P&;t t
8670
$ac_datarootdir_hack
8671
"
8672
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8673
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8674

    
8675
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8676
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8677
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
8678
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
8679
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8680
which seems to be undefined.  Please make sure it is defined" >&5
8681
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8682
which seems to be undefined.  Please make sure it is defined" >&2;}
8683

    
8684
  rm -f "$ac_tmp/stdin"
8685
  case $ac_file in
8686
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8687
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8688
  esac \
8689
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8690
 ;;
8691

    
8692

    
8693

    
8694
  esac
8695

    
8696
done # for ac_tag
8697

    
8698

    
8699
as_fn_exit 0
8700
_ACEOF
8701
ac_clean_files=$ac_clean_files_save
8702

    
8703
test $ac_write_fail = 0 ||
8704
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8705

    
8706

    
8707
# configure is writing to config.log, and then calls config.status.
8708
# config.status does its own redirection, appending to config.log.
8709
# Unfortunately, on DOS this fails, as config.log is still kept open
8710
# by configure, so config.status won't be able to write to it; its
8711
# output is simply discarded.  So we exec the FD to /dev/null,
8712
# effectively closing config.log, so it can be properly (re)opened and
8713
# appended to by config.status.  When coming back to configure, we
8714
# need to make the FD available again.
8715
if test "$no_create" != yes; then
8716
  ac_cs_success=:
8717
  ac_config_status_args=
8718
  test "$silent" = yes &&
8719
    ac_config_status_args="$ac_config_status_args --quiet"
8720
  exec 5>/dev/null
8721
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8722
  exec 5>>config.log
8723
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8724
  # would make configure fail if this is the last instruction.
8725
  $ac_cs_success || as_fn_exit 1
8726
fi
8727
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8728
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8729
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8730
fi
8731

    
8732

    
8733
if test -x repoint ; then
8734
   if test -d .hg -o -d .git ; then
8735
      if ! ./repoint install; then
8736
         as_fn_error $? "Repoint failed; please fix any reported errors and try again" "$LINENO" 5
8737
      fi
8738
   else
8739
      { $as_echo "$as_me:${as_lineno-$LINENO}: Repoint executable found but not in an Hg or Git working-copy: not running it" >&5
8740
$as_echo "$as_me: Repoint executable found but not in an Hg or Git working-copy: not running it" >&6;}
8741
      if ! test -d vamp-plugin-sdk ; then
8742
          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No vamp-plugin-sdk directory present, so external libraries might not have been updated" >&5
8743
$as_echo "$as_me: WARNING: No vamp-plugin-sdk directory present, so external libraries might not have been updated" >&2;}
8744
      fi
8745
   fi
8746
else
8747
   { $as_echo "$as_me:${as_lineno-$LINENO}: No Repoint executable found: assuming external libraries are already here" >&5
8748
$as_echo "$as_me: No Repoint executable found: assuming external libraries are already here" >&6;}
8749
   if ! test -d vamp-plugin-sdk ; then
8750
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No vamp-plugin-sdk directory present, so external libraries might not have been updated" >&5
8751
$as_echo "$as_me: WARNING: No vamp-plugin-sdk directory present, so external libraries might not have been updated" >&2;}
8752
   fi
8753
fi
8754

    
8755
if ! $QMAKE -r vect.pro; then
8756
   as_fn_error $? "qmake failed: Command was \"$QMAKE -r\"" "$LINENO" 5
8757
fi
8758

    
8759
{ $as_echo "$as_me:${as_lineno-$LINENO}:
8760

    
8761
Configuration complete.
8762
Please check the above messages for any warnings that you
8763
might care about, and then run \"make\".
8764

    
8765
The file config.pri contains the configuration settings for
8766
qmake.  If you want to adjust these by hand, edit config.pri
8767
and run \"$QMAKE -r\" again to regenerate the Makefile.
8768
" >&5
8769
$as_echo "$as_me:
8770

    
8771
Configuration complete.
8772
Please check the above messages for any warnings that you
8773
might care about, and then run \"make\".
8774

    
8775
The file config.pri contains the configuration settings for
8776
qmake.  If you want to adjust these by hand, edit config.pri
8777
and run \"$QMAKE -r\" again to regenerate the Makefile.
8778
" >&6;}