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 @ 105:fa09c8e155ec

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

    
790

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

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

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

    
850
  case $ac_option in
851
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
852
  *=)   ac_optarg= ;;
853
  *)    ac_optarg=yes ;;
854
  esac
855

    
856
  # Accept the important Cygnus configure options, so we can diagnose typos.
857

    
858
  case $ac_dashdash$ac_option in
859
  --)
860
    ac_dashdash=yes ;;
861

    
862
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
863
    ac_prev=bindir ;;
864
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
865
    bindir=$ac_optarg ;;
866

    
867
  -build | --build | --buil | --bui | --bu)
868
    ac_prev=build_alias ;;
869
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
870
    build_alias=$ac_optarg ;;
871

    
872
  -cache-file | --cache-file | --cache-fil | --cache-fi \
873
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
874
    ac_prev=cache_file ;;
875
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
876
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
877
    cache_file=$ac_optarg ;;
878

    
879
  --config-cache | -C)
880
    cache_file=config.cache ;;
881

    
882
  -datadir | --datadir | --datadi | --datad)
883
    ac_prev=datadir ;;
884
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
885
    datadir=$ac_optarg ;;
886

    
887
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
888
  | --dataroo | --dataro | --datar)
889
    ac_prev=datarootdir ;;
890
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
891
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
892
    datarootdir=$ac_optarg ;;
893

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

    
910
  -docdir | --docdir | --docdi | --doc | --do)
911
    ac_prev=docdir ;;
912
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
913
    docdir=$ac_optarg ;;
914

    
915
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
916
    ac_prev=dvidir ;;
917
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
918
    dvidir=$ac_optarg ;;
919

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

    
936
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
937
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
938
  | --exec | --exe | --ex)
939
    ac_prev=exec_prefix ;;
940
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
941
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
942
  | --exec=* | --exe=* | --ex=*)
943
    exec_prefix=$ac_optarg ;;
944

    
945
  -gas | --gas | --ga | --g)
946
    # Obsolete; use --with-gas.
947
    with_gas=yes ;;
948

    
949
  -help | --help | --hel | --he | -h)
950
    ac_init_help=long ;;
951
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
952
    ac_init_help=recursive ;;
953
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
954
    ac_init_help=short ;;
955

    
956
  -host | --host | --hos | --ho)
957
    ac_prev=host_alias ;;
958
  -host=* | --host=* | --hos=* | --ho=*)
959
    host_alias=$ac_optarg ;;
960

    
961
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
962
    ac_prev=htmldir ;;
963
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
964
  | --ht=*)
965
    htmldir=$ac_optarg ;;
966

    
967
  -includedir | --includedir | --includedi | --included | --include \
968
  | --includ | --inclu | --incl | --inc)
969
    ac_prev=includedir ;;
970
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
971
  | --includ=* | --inclu=* | --incl=* | --inc=*)
972
    includedir=$ac_optarg ;;
973

    
974
  -infodir | --infodir | --infodi | --infod | --info | --inf)
975
    ac_prev=infodir ;;
976
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
977
    infodir=$ac_optarg ;;
978

    
979
  -libdir | --libdir | --libdi | --libd)
980
    ac_prev=libdir ;;
981
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
982
    libdir=$ac_optarg ;;
983

    
984
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
985
  | --libexe | --libex | --libe)
986
    ac_prev=libexecdir ;;
987
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
988
  | --libexe=* | --libex=* | --libe=*)
989
    libexecdir=$ac_optarg ;;
990

    
991
  -localedir | --localedir | --localedi | --localed | --locale)
992
    ac_prev=localedir ;;
993
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
994
    localedir=$ac_optarg ;;
995

    
996
  -localstatedir | --localstatedir | --localstatedi | --localstated \
997
  | --localstate | --localstat | --localsta | --localst | --locals)
998
    ac_prev=localstatedir ;;
999
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1000
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1001
    localstatedir=$ac_optarg ;;
1002

    
1003
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1004
    ac_prev=mandir ;;
1005
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1006
    mandir=$ac_optarg ;;
1007

    
1008
  -nfp | --nfp | --nf)
1009
    # Obsolete; use --without-fp.
1010
    with_fp=no ;;
1011

    
1012
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1013
  | --no-cr | --no-c | -n)
1014
    no_create=yes ;;
1015

    
1016
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1017
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1018
    no_recursion=yes ;;
1019

    
1020
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1021
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1022
  | --oldin | --oldi | --old | --ol | --o)
1023
    ac_prev=oldincludedir ;;
1024
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1025
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1026
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1027
    oldincludedir=$ac_optarg ;;
1028

    
1029
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1030
    ac_prev=prefix ;;
1031
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1032
    prefix=$ac_optarg ;;
1033

    
1034
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1035
  | --program-pre | --program-pr | --program-p)
1036
    ac_prev=program_prefix ;;
1037
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1038
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1039
    program_prefix=$ac_optarg ;;
1040

    
1041
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1042
  | --program-suf | --program-su | --program-s)
1043
    ac_prev=program_suffix ;;
1044
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1045
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1046
    program_suffix=$ac_optarg ;;
1047

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

    
1065
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1066
    ac_prev=pdfdir ;;
1067
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1068
    pdfdir=$ac_optarg ;;
1069

    
1070
  -psdir | --psdir | --psdi | --psd | --ps)
1071
    ac_prev=psdir ;;
1072
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1073
    psdir=$ac_optarg ;;
1074

    
1075
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076
  | -silent | --silent | --silen | --sile | --sil)
1077
    silent=yes ;;
1078

    
1079
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1080
    ac_prev=sbindir ;;
1081
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1082
  | --sbi=* | --sb=*)
1083
    sbindir=$ac_optarg ;;
1084

    
1085
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1086
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1087
  | --sharedst | --shareds | --shared | --share | --shar \
1088
  | --sha | --sh)
1089
    ac_prev=sharedstatedir ;;
1090
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1091
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1092
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1093
  | --sha=* | --sh=*)
1094
    sharedstatedir=$ac_optarg ;;
1095

    
1096
  -site | --site | --sit)
1097
    ac_prev=site ;;
1098
  -site=* | --site=* | --sit=*)
1099
    site=$ac_optarg ;;
1100

    
1101
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1102
    ac_prev=srcdir ;;
1103
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1104
    srcdir=$ac_optarg ;;
1105

    
1106
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1107
  | --syscon | --sysco | --sysc | --sys | --sy)
1108
    ac_prev=sysconfdir ;;
1109
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1110
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1111
    sysconfdir=$ac_optarg ;;
1112

    
1113
  -target | --target | --targe | --targ | --tar | --ta | --t)
1114
    ac_prev=target_alias ;;
1115
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1116
    target_alias=$ac_optarg ;;
1117

    
1118
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1119
    verbose=yes ;;
1120

    
1121
  -version | --version | --versio | --versi | --vers | -V)
1122
    ac_init_version=: ;;
1123

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

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

    
1156
  --x)
1157
    # Obsolete; use --with-x.
1158
    with_x=yes ;;
1159

    
1160
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1161
  | --x-incl | --x-inc | --x-in | --x-i)
1162
    ac_prev=x_includes ;;
1163
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1164
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1165
    x_includes=$ac_optarg ;;
1166

    
1167
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1168
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1169
    ac_prev=x_libraries ;;
1170
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1171
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1172
    x_libraries=$ac_optarg ;;
1173

    
1174
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1175
Try \`$0 --help' for more information"
1176
    ;;
1177

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

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

    
1196
  esac
1197
done
1198

    
1199
if test -n "$ac_prev"; then
1200
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1201
  as_fn_error $? "missing argument to $ac_option"
1202
fi
1203

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

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

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

    
1240
# FIXME: To remove some day.
1241
if test "x$host_alias" != x; then
1242
  if test "x$build_alias" = x; then
1243
    cross_compiling=maybe
1244
  elif test "x$build_alias" != "x$host_alias"; then
1245
    cross_compiling=yes
1246
  fi
1247
fi
1248

    
1249
ac_tool_prefix=
1250
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1251

    
1252
test "$silent" = yes && exec 6>/dev/null
1253

    
1254

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

    
1262

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

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

    
1331
Usage: $0 [OPTION]... [VAR=VALUE]...
1332

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

    
1336
Defaults for the options are specified in brackets.
1337

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

    
1349
Installation directories:
1350
  --prefix=PREFIX         install architecture-independent files in PREFIX
1351
                          [$ac_default_prefix]
1352
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1353
                          [PREFIX]
1354

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

    
1360
For better control, use the options below.
1361

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

    
1384
  cat <<\_ACEOF
1385
_ACEOF
1386
fi
1387

    
1388
if test -n "$ac_init_help"; then
1389

    
1390
  cat <<\_ACEOF
1391

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

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

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

    
1473
Report bugs to the package provider.
1474
_ACEOF
1475
ac_status=$?
1476
fi
1477

    
1478
if test "$ac_init_help" = "recursive"; then
1479
  # If there are subdirs, report their specific --help.
1480
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1481
    test -d "$ac_dir" ||
1482
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1483
      continue
1484
    ac_builddir=.
1485

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

    
1502
case $srcdir in
1503
  .)  # We are building in place.
1504
    ac_srcdir=.
1505
    ac_top_srcdir=$ac_top_builddir_sub
1506
    ac_abs_top_srcdir=$ac_pwd ;;
1507
  [\\/]* | ?:[\\/]* )  # Absolute name.
1508
    ac_srcdir=$srcdir$ac_dir_suffix;
1509
    ac_top_srcdir=$srcdir
1510
    ac_abs_top_srcdir=$srcdir ;;
1511
  *) # Relative name.
1512
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1514
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1515
esac
1516
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1517

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

    
1533
test -n "$ac_init_help" && exit $ac_status
1534
if $ac_init_version; then
1535
  cat <<\_ACEOF
1536
configure
1537
generated by GNU Autoconf 2.69
1538

    
1539
Copyright (C) 2012 Free Software Foundation, Inc.
1540
This configure script is free software; the Free Software Foundation
1541
gives unlimited permission to copy, distribute and modify it.
1542
_ACEOF
1543
  exit
1544
fi
1545

    
1546
## ------------------------ ##
1547
## Autoconf initialization. ##
1548
## ------------------------ ##
1549

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

    
1581
	ac_retval=1
1582
fi
1583
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1584
  as_fn_set_status $ac_retval
1585

    
1586
} # ac_fn_c_try_compile
1587

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

    
1619
	ac_retval=1
1620
fi
1621
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622
  as_fn_set_status $ac_retval
1623

    
1624
} # ac_fn_cxx_try_compile
1625

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

    
1656
    ac_retval=1
1657
fi
1658
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1659
  as_fn_set_status $ac_retval
1660

    
1661
} # ac_fn_cxx_try_cpp
1662

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

    
1697
       ac_retval=$ac_status
1698
fi
1699
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1700
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1701
  as_fn_set_status $ac_retval
1702

    
1703
} # ac_fn_cxx_try_run
1704

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

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

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

    
1790
} # ac_fn_cxx_check_header_mongrel
1791

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

    
1821
} # ac_fn_cxx_check_header_compile
1822

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

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

    
1867
} # ac_fn_cxx_try_link
1868
cat >config.log <<_ACEOF
1869
This file contains any messages produced by compilers while
1870
running configure, to aid debugging if configure makes a mistake.
1871

    
1872
It was created by $as_me, which was
1873
generated by GNU Autoconf 2.69.  Invocation command line was
1874

    
1875
  $ $0 $@
1876

    
1877
_ACEOF
1878
exec 5>>config.log
1879
{
1880
cat <<_ASUNAME
1881
## --------- ##
1882
## Platform. ##
1883
## --------- ##
1884

    
1885
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1886
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1887
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1888
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1889
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1890

    
1891
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1892
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1893

    
1894
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1895
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1896
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1897
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1898
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1899
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1900
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1901

    
1902
_ASUNAME
1903

    
1904
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1905
for as_dir in $PATH
1906
do
1907
  IFS=$as_save_IFS
1908
  test -z "$as_dir" && as_dir=.
1909
    $as_echo "PATH: $as_dir"
1910
  done
1911
IFS=$as_save_IFS
1912

    
1913
} >&5
1914

    
1915
cat >&5 <<_ACEOF
1916

    
1917

    
1918
## ----------- ##
1919
## Core tests. ##
1920
## ----------- ##
1921

    
1922
_ACEOF
1923

    
1924

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

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

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

    
2019
    $as_echo "## ----------------- ##
2020
## Output variables. ##
2021
## ----------------- ##"
2022
    echo
2023
    for ac_var in $ac_subst_vars
2024
    do
2025
      eval ac_val=\$$ac_var
2026
      case $ac_val in
2027
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2028
      esac
2029
      $as_echo "$ac_var='\''$ac_val'\''"
2030
    done | sort
2031
    echo
2032

    
2033
    if test -n "$ac_subst_files"; then
2034
      $as_echo "## ------------------- ##
2035
## File substitutions. ##
2036
## ------------------- ##"
2037
      echo
2038
      for ac_var in $ac_subst_files
2039
      do
2040
	eval ac_val=\$$ac_var
2041
	case $ac_val in
2042
	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2043
	esac
2044
	$as_echo "$ac_var='\''$ac_val'\''"
2045
      done | sort
2046
      echo
2047
    fi
2048

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

    
2070
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2071
rm -f -r conftest* confdefs.h
2072

    
2073
$as_echo "/* confdefs.h */" > confdefs.h
2074

    
2075
# Predefined preprocessor variables.
2076

    
2077
cat >>confdefs.h <<_ACEOF
2078
#define PACKAGE_NAME "$PACKAGE_NAME"
2079
_ACEOF
2080

    
2081
cat >>confdefs.h <<_ACEOF
2082
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2083
_ACEOF
2084

    
2085
cat >>confdefs.h <<_ACEOF
2086
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2087
_ACEOF
2088

    
2089
cat >>confdefs.h <<_ACEOF
2090
#define PACKAGE_STRING "$PACKAGE_STRING"
2091
_ACEOF
2092

    
2093
cat >>confdefs.h <<_ACEOF
2094
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2095
_ACEOF
2096

    
2097
cat >>confdefs.h <<_ACEOF
2098
#define PACKAGE_URL "$PACKAGE_URL"
2099
_ACEOF
2100

    
2101

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

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

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

    
2213
ac_ext=c
2214
ac_cpp='$CPP $CPPFLAGS'
2215
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2216
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2217
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2218

    
2219

    
2220

    
2221

    
2222

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

    
2231
# If the user supplied CFLAGS but not CXXFLAGS, use CFLAGS instead
2232
if test x"$USER_CXXFLAGS" = x; then
2233
   if test x"$CFLAGS" != x; then
2234
      USER_CXXFLAGS="$CFLAGS"
2235
   fi
2236
fi
2237

    
2238
ac_ext=cpp
2239
ac_cpp='$CXXCPP $CPPFLAGS'
2240
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2241
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2242
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2243

    
2244

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

    
2276
fi
2277
fi
2278
CC=$ac_cv_prog_CC
2279
if test -n "$CC"; then
2280
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2281
$as_echo "$CC" >&6; }
2282
else
2283
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2284
$as_echo "no" >&6; }
2285
fi
2286

    
2287

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

    
2316
fi
2317
fi
2318
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2319
if test -n "$ac_ct_CC"; then
2320
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2321
$as_echo "$ac_ct_CC" >&6; }
2322
else
2323
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2324
$as_echo "no" >&6; }
2325
fi
2326

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

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

    
2369
fi
2370
fi
2371
CC=$ac_cv_prog_CC
2372
if test -n "$CC"; then
2373
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2374
$as_echo "$CC" >&6; }
2375
else
2376
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2377
$as_echo "no" >&6; }
2378
fi
2379

    
2380

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

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

    
2437

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

    
2468
fi
2469
fi
2470
CC=$ac_cv_prog_CC
2471
if test -n "$CC"; then
2472
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2473
$as_echo "$CC" >&6; }
2474
else
2475
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2476
$as_echo "no" >&6; }
2477
fi
2478

    
2479

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

    
2512
fi
2513
fi
2514
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2515
if test -n "$ac_ct_CC"; then
2516
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2517
$as_echo "$ac_ct_CC" >&6; }
2518
else
2519
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2520
$as_echo "no" >&6; }
2521
fi
2522

    
2523

    
2524
  test -n "$ac_ct_CC" && break
2525
done
2526

    
2527
  if test "x$ac_ct_CC" = x; then
2528
    CC=""
2529
  else
2530
    case $cross_compiling:$ac_tool_warned in
2531
yes:)
2532
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2533
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2534
ac_tool_warned=yes ;;
2535
esac
2536
    CC=$ac_ct_CC
2537
  fi
2538
fi
2539

    
2540
fi
2541

    
2542

    
2543
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2544
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2545
as_fn_error $? "no acceptable C compiler found in \$PATH
2546
See \`config.log' for more details" "$LINENO" 5; }
2547

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

    
2573
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2574
/* end confdefs.h.  */
2575

    
2576
int
2577
main ()
2578
{
2579

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

    
2593
# The possible output files:
2594
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2595

    
2596
ac_rmfiles=
2597
for ac_file in $ac_files
2598
do
2599
  case $ac_file in
2600
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2601
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2602
  esac
2603
done
2604
rm -f $ac_rmfiles
2605

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

    
2649
else
2650
  ac_file=''
2651
fi
2652
if test -z "$ac_file"; then :
2653
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2654
$as_echo "no" >&6; }
2655
$as_echo "$as_me: failed program was:" >&5
2656
sed 's/^/| /' conftest.$ac_ext >&5
2657

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

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

    
2710
rm -f conftest.$ac_ext
2711
EXEEXT=$ac_cv_exeext
2712
ac_exeext=$EXEEXT
2713
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2714
/* end confdefs.h.  */
2715
#include <stdio.h>
2716
int
2717
main ()
2718
{
2719
FILE *f = fopen ("conftest.out", "w");
2720
 return ferror (f) || fclose (f) != 0;
2721

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

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

    
2780
int
2781
main ()
2782
{
2783

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

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

    
2831
int
2832
main ()
2833
{
2834
#ifndef __GNUC__
2835
       choke me
2836
#endif
2837

    
2838
  ;
2839
  return 0;
2840
}
2841
_ACEOF
2842
if ac_fn_c_try_compile "$LINENO"; then :
2843
  ac_compiler_gnu=yes
2844
else
2845
  ac_compiler_gnu=no
2846
fi
2847
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2848
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2849

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

    
2872
int
2873
main ()
2874
{
2875

    
2876
  ;
2877
  return 0;
2878
}
2879
_ACEOF
2880
if ac_fn_c_try_compile "$LINENO"; then :
2881
  ac_cv_prog_cc_g=yes
2882
else
2883
  CFLAGS=""
2884
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2885
/* end confdefs.h.  */
2886

    
2887
int
2888
main ()
2889
{
2890

    
2891
  ;
2892
  return 0;
2893
}
2894
_ACEOF
2895
if ac_fn_c_try_compile "$LINENO"; then :
2896

    
2897
else
2898
  ac_c_werror_flag=$ac_save_c_werror_flag
2899
	 CFLAGS="-g"
2900
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2901
/* end confdefs.h.  */
2902

    
2903
int
2904
main ()
2905
{
2906

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

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

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

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

    
3010
fi
3011
# AC_CACHE_VAL
3012
case "x$ac_cv_prog_cc_c89" in
3013
  x)
3014
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3015
$as_echo "none needed" >&6; } ;;
3016
  xno)
3017
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3018
$as_echo "unsupported" >&6; } ;;
3019
  *)
3020
    CC="$CC $ac_cv_prog_cc_c89"
3021
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3022
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3023
esac
3024
if test "x$ac_cv_prog_cc_c89" != xno; then :
3025

    
3026
fi
3027

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

    
3071
fi
3072
fi
3073
CXX=$ac_cv_prog_CXX
3074
if test -n "$CXX"; then
3075
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3076
$as_echo "$CXX" >&6; }
3077
else
3078
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3079
$as_echo "no" >&6; }
3080
fi
3081

    
3082

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

    
3115
fi
3116
fi
3117
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3118
if test -n "$ac_ct_CXX"; then
3119
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3120
$as_echo "$ac_ct_CXX" >&6; }
3121
else
3122
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3123
$as_echo "no" >&6; }
3124
fi
3125

    
3126

    
3127
  test -n "$ac_ct_CXX" && break
3128
done
3129

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

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

    
3170
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3171
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3172
if ${ac_cv_cxx_compiler_gnu+:} false; then :
3173
  $as_echo_n "(cached) " >&6
3174
else
3175
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3176
/* end confdefs.h.  */
3177

    
3178
int
3179
main ()
3180
{
3181
#ifndef __GNUC__
3182
       choke me
3183
#endif
3184

    
3185
  ;
3186
  return 0;
3187
}
3188
_ACEOF
3189
if ac_fn_cxx_try_compile "$LINENO"; then :
3190
  ac_compiler_gnu=yes
3191
else
3192
  ac_compiler_gnu=no
3193
fi
3194
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3195
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3196

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

    
3219
int
3220
main ()
3221
{
3222

    
3223
  ;
3224
  return 0;
3225
}
3226
_ACEOF
3227
if ac_fn_cxx_try_compile "$LINENO"; then :
3228
  ac_cv_prog_cxx_g=yes
3229
else
3230
  CXXFLAGS=""
3231
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3232
/* end confdefs.h.  */
3233

    
3234
int
3235
main ()
3236
{
3237

    
3238
  ;
3239
  return 0;
3240
}
3241
_ACEOF
3242
if ac_fn_cxx_try_compile "$LINENO"; then :
3243

    
3244
else
3245
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3246
	 CXXFLAGS="-g"
3247
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3248
/* end confdefs.h.  */
3249

    
3250
int
3251
main ()
3252
{
3253

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

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

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

    
3319

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

    
3386
  done
3387
IFS=$as_save_IFS
3388

    
3389
rm -rf conftest.one conftest.two conftest.dir
3390

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

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

    
3409
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3410

    
3411
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3412

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

    
3439
fi
3440

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

    
3455

    
3456
# We are daringly making use of C++11 now
3457

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

    
3473
  template <typename T>
3474
    struct check
3475
    {
3476
      static_assert(sizeof(int) <= sizeof(T), "not big enough");
3477
    };
3478

    
3479
    struct Base {
3480
    virtual void f() {}
3481
    };
3482
    struct Child : public Base {
3483
    virtual void f() override {}
3484
    };
3485

    
3486
    typedef check<check<bool>> right_angle_brackets;
3487

    
3488
    int a;
3489
    decltype(a) b;
3490

    
3491
    typedef check<int> check_type;
3492
    check_type c;
3493
    check_type&& cr = static_cast<check_type&&>(c);
3494

    
3495
    auto d = a;
3496
    auto l = [](){};
3497

    
3498
_ACEOF
3499
if ac_fn_cxx_try_compile "$LINENO"; then :
3500
  ax_cv_cxx_compile_cxx11=yes
3501
else
3502
  ax_cv_cxx_compile_cxx11=no
3503
fi
3504
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3505
fi
3506
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
3507
$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
3508
  if test x$ax_cv_cxx_compile_cxx11 = xyes; then
3509
    ac_success=yes
3510
  fi
3511

    
3512

    
3513

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

    
3527
  template <typename T>
3528
    struct check
3529
    {
3530
      static_assert(sizeof(int) <= sizeof(T), "not big enough");
3531
    };
3532

    
3533
    struct Base {
3534
    virtual void f() {}
3535
    };
3536
    struct Child : public Base {
3537
    virtual void f() override {}
3538
    };
3539

    
3540
    typedef check<check<bool>> right_angle_brackets;
3541

    
3542
    int a;
3543
    decltype(a) b;
3544

    
3545
    typedef check<int> check_type;
3546
    check_type c;
3547
    check_type&& cr = static_cast<check_type&&>(c);
3548

    
3549
    auto d = a;
3550
    auto l = [](){};
3551

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

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

    
3589
$as_echo "#define HAVE_CXX11 1" >>confdefs.h
3590

    
3591
    fi
3592

    
3593

    
3594
  fi
3595

    
3596

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

    
3631
else
3632
  # Broken: fails on valid input.
3633
continue
3634
fi
3635
rm -f conftest.err conftest.i conftest.$ac_ext
3636

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

    
3653
done
3654
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3655
rm -f conftest.i conftest.err conftest.$ac_ext
3656
if $ac_preproc_ok; then :
3657
  break
3658
fi
3659

    
3660
    done
3661
    ac_cv_prog_CXXCPP=$CXXCPP
3662

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

    
3690
else
3691
  # Broken: fails on valid input.
3692
continue
3693
fi
3694
rm -f conftest.err conftest.i conftest.$ac_ext
3695

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

    
3712
done
3713
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3714
rm -f conftest.i conftest.err conftest.$ac_ext
3715
if $ac_preproc_ok; then :
3716

    
3717
else
3718
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3719
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3720
as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
3721
See \`config.log' for more details" "$LINENO" 5; }
3722
fi
3723

    
3724
ac_ext=cpp
3725
ac_cpp='$CXXCPP $CPPFLAGS'
3726
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3727
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3728
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3729

    
3730

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

    
3776
      $ac_path_GREP_found && break 3
3777
    done
3778
  done
3779
  done
3780
IFS=$as_save_IFS
3781
  if test -z "$ac_cv_path_GREP"; then
3782
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3783
  fi
3784
else
3785
  ac_cv_path_GREP=$GREP
3786
fi
3787

    
3788
fi
3789
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3790
$as_echo "$ac_cv_path_GREP" >&6; }
3791
 GREP="$ac_cv_path_GREP"
3792

    
3793

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

    
3842
      $ac_path_EGREP_found && break 3
3843
    done
3844
  done
3845
  done
3846
IFS=$as_save_IFS
3847
  if test -z "$ac_cv_path_EGREP"; then
3848
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3849
  fi
3850
else
3851
  ac_cv_path_EGREP=$EGREP
3852
fi
3853

    
3854
   fi
3855
fi
3856
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3857
$as_echo "$ac_cv_path_EGREP" >&6; }
3858
 EGREP="$ac_cv_path_EGREP"
3859

    
3860

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

    
3873
int
3874
main ()
3875
{
3876

    
3877
  ;
3878
  return 0;
3879
}
3880
_ACEOF
3881
if ac_fn_cxx_try_compile "$LINENO"; then :
3882
  ac_cv_header_stdc=yes
3883
else
3884
  ac_cv_header_stdc=no
3885
fi
3886
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3887

    
3888
if test $ac_cv_header_stdc = yes; then
3889
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3890
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891
/* end confdefs.h.  */
3892
#include <string.h>
3893

    
3894
_ACEOF
3895
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3896
  $EGREP "memchr" >/dev/null 2>&1; then :
3897

    
3898
else
3899
  ac_cv_header_stdc=no
3900
fi
3901
rm -f conftest*
3902

    
3903
fi
3904

    
3905
if test $ac_cv_header_stdc = yes; then
3906
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3907
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3908
/* end confdefs.h.  */
3909
#include <stdlib.h>
3910

    
3911
_ACEOF
3912
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3913
  $EGREP "free" >/dev/null 2>&1; then :
3914

    
3915
else
3916
  ac_cv_header_stdc=no
3917
fi
3918
rm -f conftest*
3919

    
3920
fi
3921

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

    
3942
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3943
int
3944
main ()
3945
{
3946
  int i;
3947
  for (i = 0; i < 256; i++)
3948
    if (XOR (islower (i), ISLOWER (i))
3949
	|| toupper (i) != TOUPPER (i))
3950
      return 2;
3951
  return 0;
3952
}
3953
_ACEOF
3954
if ac_fn_cxx_try_run "$LINENO"; then :
3955

    
3956
else
3957
  ac_cv_header_stdc=no
3958
fi
3959
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3960
  conftest.$ac_objext conftest.beam conftest.$ac_ext
3961
fi
3962

    
3963
fi
3964
fi
3965
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3966
$as_echo "$ac_cv_header_stdc" >&6; }
3967
if test $ac_cv_header_stdc = yes; then
3968

    
3969
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3970

    
3971
fi
3972

    
3973

    
3974
# These are the flags Autoconf guesses for us; we use them later if
3975
# the user has set none and we are not using GCC (so lack our own
3976
# preferred flags)
3977
AUTOCONF_CXXFLAGS="$CXXFLAGS"
3978

    
3979

    
3980

    
3981

    
3982

    
3983

    
3984

    
3985

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

    
4015
  ;;
4016
esac
4017
fi
4018
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4019
if test -n "$PKG_CONFIG"; then
4020
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4021
$as_echo "$PKG_CONFIG" >&6; }
4022
else
4023
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4024
$as_echo "no" >&6; }
4025
fi
4026

    
4027

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

    
4058
  ;;
4059
esac
4060
fi
4061
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4062
if test -n "$ac_pt_PKG_CONFIG"; then
4063
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4064
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4065
else
4066
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4067
$as_echo "no" >&6; }
4068
fi
4069

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

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

    
4100

    
4101

    
4102

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

    
4129
fi
4130
fi
4131
QMAKE=$ac_cv_prog_QMAKE
4132
if test -n "$QMAKE"; then
4133
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
4134
$as_echo "$QMAKE" >&6; }
4135
else
4136
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4137
$as_echo "no" >&6; }
4138
fi
4139

    
4140

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

    
4168
fi
4169
fi
4170
QMAKE=$ac_cv_prog_QMAKE
4171
if test -n "$QMAKE"; then
4172
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
4173
$as_echo "$QMAKE" >&6; }
4174
else
4175
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4176
$as_echo "no" >&6; }
4177
fi
4178

    
4179

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

    
4207
fi
4208
fi
4209
QMAKE=$ac_cv_prog_QMAKE
4210
if test -n "$QMAKE"; then
4211
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
4212
$as_echo "$QMAKE" >&6; }
4213
else
4214
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4215
$as_echo "no" >&6; }
4216
fi
4217

    
4218

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

    
4246
fi
4247
fi
4248
QMAKE=$ac_cv_prog_QMAKE
4249
if test -n "$QMAKE"; then
4250
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
4251
$as_echo "$QMAKE" >&6; }
4252
else
4253
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4254
$as_echo "no" >&6; }
4255
fi
4256

    
4257

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

    
4285
fi
4286
fi
4287
QMAKE=$ac_cv_prog_QMAKE
4288
if test -n "$QMAKE"; then
4289
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
4290
$as_echo "$QMAKE" >&6; }
4291
else
4292
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4293
$as_echo "no" >&6; }
4294
fi
4295

    
4296

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

    
4324
fi
4325
fi
4326
QMAKE=$ac_cv_prog_QMAKE
4327
if test -n "$QMAKE"; then
4328
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
4329
$as_echo "$QMAKE" >&6; }
4330
else
4331
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4332
$as_echo "no" >&6; }
4333
fi
4334

    
4335

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

    
4363
fi
4364
fi
4365
QMAKE=$ac_cv_prog_QMAKE
4366
if test -n "$QMAKE"; then
4367
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
4368
$as_echo "$QMAKE" >&6; }
4369
else
4370
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4371
$as_echo "no" >&6; }
4372
fi
4373

    
4374

    
4375
fi
4376
if test x$QMAKE = x ; then
4377
   	as_fn_error $? "
4378
Failed to find the required qmake-qt5 or qmake program.  Please
4379
ensure you have the necessary Qt5 development files installed, and
4380
if necessary set QTDIR to the location of your Qt5 installation.
4381
" "$LINENO" 5
4382
fi
4383

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

    
4407
case "`uname`" in
4408
     *Darwin*) QMAKE="$QMAKE -spec macx-g++";;
4409
esac
4410

    
4411

    
4412

    
4413
SV_DEFINES_DEBUG="-DDEBUG -DBUILD_DEBUG -DWANT_TIMING"
4414
SV_DEFINES_RELEASE="-DNDEBUG -DBUILD_RELEASE -DNO_TIMING"
4415
SV_DEFINES_MINIMAL="$SV_DEFINES_RELEASE"
4416

    
4417
# Now we have: USER_CXXFLAGS contains any flags the user set
4418
# explicitly; AUTOCONF_CXXFLAGS contains flags that Autoconf thought
4419
# we should use.  If we have GCC, we override the latter but then
4420
# allow ourselves to be overridden (later) by the former
4421

    
4422
CXXFLAGS_DEBUG="$AUTOCONF_CXXFLAGS"
4423
CXXFLAGS_RELEASE="$AUTOCONF_CXXFLAGS"
4424
CXXFLAGS_MINIMAL="$AUTOCONF_CXXFLAGS"
4425

    
4426
if test "x$GCC" = "xyes"; then
4427
   	CXXFLAGS_ANY="-std=c++11 -fpic -Wall -Wextra -Woverloaded-virtual -Wformat-nonliteral -Wformat-security -Winit-self -Wswitch-enum -Wconversion -pipe"
4428
        CXXFLAGS_DEBUG="$CXXFLAGS_ANY -g -Werror"
4429
   	CXXFLAGS_RELEASE="$CXXFLAGS_ANY -g0 -O3 -ffast-math"
4430
   	CXXFLAGS_MINIMAL="$CXXFLAGS_ANY -g0 -O0"
4431
fi
4432

    
4433
CXXFLAGS_BUILD="$CXXFLAGS_RELEASE"
4434
SV_DEFINES_BUILD="$SV_DEFINES_RELEASE"
4435

    
4436
QMAKE_CONFIG="release"
4437

    
4438
# Check whether --enable-debug was given.
4439
if test "${enable_debug+set}" = set; then :
4440
  enableval=$enable_debug; { $as_echo "$as_me:${as_lineno-$LINENO}: enabling debug build" >&5
4441
$as_echo "$as_me: enabling debug build" >&6;}
4442
QMAKE_CONFIG="debug"
4443
CXXFLAGS_BUILD="$CXXFLAGS_DEBUG"
4444
SV_DEFINES_BUILD="$SV_DEFINES_DEBUG"
4445
fi
4446

    
4447

    
4448
if test x"$USER_CXXFLAGS" != x; then
4449
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: The CXXFLAGS environment variable is set to \"$USER_CXXFLAGS\"." >&5
4450
$as_echo "$as_me: The CXXFLAGS environment variable is set to \"$USER_CXXFLAGS\"." >&6;}
4451
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Overriding default compiler flags with the above user setting." >&5
4452
$as_echo "$as_me: Overriding default compiler flags with the above user setting." >&6;}
4453
	CXXFLAGS_BUILD="$USER_CXXFLAGS"
4454
	CXXFLAGS_MINIMAL="$USER_CXXFLAGS"
4455
fi
4456

    
4457
CXXFLAGS="$CXXFLAGS_BUILD $SV_DEFINES_BUILD"
4458

    
4459
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4460
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4461
		  inttypes.h stdint.h unistd.h
4462
do :
4463
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4464
ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4465
"
4466
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4467
  cat >>confdefs.h <<_ACEOF
4468
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4469
_ACEOF
4470

    
4471
fi
4472

    
4473
done
4474

    
4475

    
4476

    
4477
SV_MODULE_MODULE=bz2
4478
SV_MODULE_VERSION_TEST=""
4479
SV_MODULE_HEADER=bzlib.h
4480
SV_MODULE_LIB=bz2
4481
SV_MODULE_FUNC=BZ2_bzReadOpen
4482
SV_MODULE_HAVE=HAVE_$(echo bz2 | tr 'a-z' 'A-Z')
4483
SV_MODULE_FAILED=1
4484
if test -n "$bz2_LIBS" ; then
4485
   { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
4486
$as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
4487
   CXXFLAGS="$CXXFLAGS $bz2_CFLAGS"
4488
   LIBS="$LIBS $bz2_LIBS"
4489
   SV_MODULE_FAILED=""
4490
fi
4491
if test -z "$SV_MODULE_VERSION_TEST" ; then
4492
   SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
4493
fi
4494
if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
4495

    
4496
pkg_failed=no
4497
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_VERSION_TEST" >&5
4498
$as_echo_n "checking for $SV_MODULE_VERSION_TEST... " >&6; }
4499

    
4500
if test -n "$bz2_CFLAGS"; then
4501
    pkg_cv_bz2_CFLAGS="$bz2_CFLAGS"
4502
 elif test -n "$PKG_CONFIG"; then
4503
    if test -n "$PKG_CONFIG" && \
4504
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
4505
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
4506
  ac_status=$?
4507
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4508
  test $ac_status = 0; }; then
4509
  pkg_cv_bz2_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
4510
		      test "x$?" != "x0" && pkg_failed=yes
4511
else
4512
  pkg_failed=yes
4513
fi
4514
 else
4515
    pkg_failed=untried
4516
fi
4517
if test -n "$bz2_LIBS"; then
4518
    pkg_cv_bz2_LIBS="$bz2_LIBS"
4519
 elif test -n "$PKG_CONFIG"; then
4520
    if test -n "$PKG_CONFIG" && \
4521
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
4522
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
4523
  ac_status=$?
4524
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4525
  test $ac_status = 0; }; then
4526
  pkg_cv_bz2_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
4527
		      test "x$?" != "x0" && pkg_failed=yes
4528
else
4529
  pkg_failed=yes
4530
fi
4531
 else
4532
    pkg_failed=untried
4533
fi
4534

    
4535

    
4536

    
4537
if test $pkg_failed = yes; then
4538
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4539
$as_echo "no" >&6; }
4540

    
4541
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4542
        _pkg_short_errors_supported=yes
4543
else
4544
        _pkg_short_errors_supported=no
4545
fi
4546
        if test $_pkg_short_errors_supported = yes; then
4547
	        bz2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
4548
        else
4549
	        bz2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
4550
        fi
4551
	# Put the nasty error message in config.log where it belongs
4552
	echo "$bz2_PKG_ERRORS" >&5
4553

    
4554
	{ $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
4555
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
4556
elif test $pkg_failed = untried; then
4557
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4558
$as_echo "no" >&6; }
4559
	{ $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
4560
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
4561
else
4562
	bz2_CFLAGS=$pkg_cv_bz2_CFLAGS
4563
	bz2_LIBS=$pkg_cv_bz2_LIBS
4564
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4565
$as_echo "yes" >&6; }
4566
	HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $bz2_CFLAGS";LIBS="$LIBS $bz2_LIBS";SV_MODULE_FAILED=""
4567
fi
4568
fi
4569
if test -n "$SV_MODULE_FAILED"; then
4570
   as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
4571
ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
4572
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4573
  HAVES="$HAVES $SV_MODULE_HAVE"
4574
else
4575
  as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5
4576
fi
4577

    
4578

    
4579
   if test -n "$SV_MODULE_LIB"; then
4580
     as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
4581
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
4582
$as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
4583
if eval \${$as_ac_Lib+:} false; then :
4584
  $as_echo_n "(cached) " >&6
4585
else
4586
  ac_check_lib_save_LIBS=$LIBS
4587
LIBS="-l$SV_MODULE_LIB  $LIBS"
4588
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4589
/* end confdefs.h.  */
4590

    
4591
/* Override any GCC internal prototype to avoid an error.
4592
   Use char because int might match the return type of a GCC
4593
   builtin and then its argument prototype would still apply.  */
4594
#ifdef __cplusplus
4595
extern "C"
4596
#endif
4597
char $SV_MODULE_FUNC ();
4598
int
4599
main ()
4600
{
4601
return $SV_MODULE_FUNC ();
4602
  ;
4603
  return 0;
4604
}
4605
_ACEOF
4606
if ac_fn_cxx_try_link "$LINENO"; then :
4607
  eval "$as_ac_Lib=yes"
4608
else
4609
  eval "$as_ac_Lib=no"
4610
fi
4611
rm -f core conftest.err conftest.$ac_objext \
4612
    conftest$ac_exeext conftest.$ac_ext
4613
LIBS=$ac_check_lib_save_LIBS
4614
fi
4615
eval ac_res=\$$as_ac_Lib
4616
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4617
$as_echo "$ac_res" >&6; }
4618
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
4619
  LIBS="$LIBS -l$SV_MODULE_LIB"
4620
else
4621
  as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5
4622
fi
4623

    
4624
   fi
4625
fi
4626

    
4627

    
4628
SV_MODULE_MODULE=fftw3
4629
SV_MODULE_VERSION_TEST="fftw3 >= 3.0.0"
4630
SV_MODULE_HEADER=fftw3.h
4631
SV_MODULE_LIB=fftw3
4632
SV_MODULE_FUNC=fftw_execute
4633
SV_MODULE_HAVE=HAVE_$(echo fftw3 | tr 'a-z' 'A-Z')
4634
SV_MODULE_FAILED=1
4635
if test -n "$fftw3_LIBS" ; then
4636
   { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
4637
$as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
4638
   CXXFLAGS="$CXXFLAGS $fftw3_CFLAGS"
4639
   LIBS="$LIBS $fftw3_LIBS"
4640
   SV_MODULE_FAILED=""
4641
fi
4642
if test -z "$SV_MODULE_VERSION_TEST" ; then
4643
   SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
4644
fi
4645
if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
4646

    
4647
pkg_failed=no
4648
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_VERSION_TEST" >&5
4649
$as_echo_n "checking for $SV_MODULE_VERSION_TEST... " >&6; }
4650

    
4651
if test -n "$fftw3_CFLAGS"; then
4652
    pkg_cv_fftw3_CFLAGS="$fftw3_CFLAGS"
4653
 elif test -n "$PKG_CONFIG"; then
4654
    if test -n "$PKG_CONFIG" && \
4655
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
4656
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
4657
  ac_status=$?
4658
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4659
  test $ac_status = 0; }; then
4660
  pkg_cv_fftw3_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
4661
		      test "x$?" != "x0" && pkg_failed=yes
4662
else
4663
  pkg_failed=yes
4664
fi
4665
 else
4666
    pkg_failed=untried
4667
fi
4668
if test -n "$fftw3_LIBS"; then
4669
    pkg_cv_fftw3_LIBS="$fftw3_LIBS"
4670
 elif test -n "$PKG_CONFIG"; then
4671
    if test -n "$PKG_CONFIG" && \
4672
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
4673
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
4674
  ac_status=$?
4675
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4676
  test $ac_status = 0; }; then
4677
  pkg_cv_fftw3_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
4678
		      test "x$?" != "x0" && pkg_failed=yes
4679
else
4680
  pkg_failed=yes
4681
fi
4682
 else
4683
    pkg_failed=untried
4684
fi
4685

    
4686

    
4687

    
4688
if test $pkg_failed = yes; then
4689
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4690
$as_echo "no" >&6; }
4691

    
4692
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4693
        _pkg_short_errors_supported=yes
4694
else
4695
        _pkg_short_errors_supported=no
4696
fi
4697
        if test $_pkg_short_errors_supported = yes; then
4698
	        fftw3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
4699
        else
4700
	        fftw3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
4701
        fi
4702
	# Put the nasty error message in config.log where it belongs
4703
	echo "$fftw3_PKG_ERRORS" >&5
4704

    
4705
	{ $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
4706
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
4707
elif test $pkg_failed = untried; then
4708
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4709
$as_echo "no" >&6; }
4710
	{ $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
4711
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
4712
else
4713
	fftw3_CFLAGS=$pkg_cv_fftw3_CFLAGS
4714
	fftw3_LIBS=$pkg_cv_fftw3_LIBS
4715
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4716
$as_echo "yes" >&6; }
4717
	HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $fftw3_CFLAGS";LIBS="$LIBS $fftw3_LIBS";SV_MODULE_FAILED=""
4718
fi
4719
fi
4720
if test -n "$SV_MODULE_FAILED"; then
4721
   as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
4722
ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
4723
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4724
  HAVES="$HAVES $SV_MODULE_HAVE"
4725
else
4726
  as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5
4727
fi
4728

    
4729

    
4730
   if test -n "$SV_MODULE_LIB"; then
4731
     as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
4732
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
4733
$as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
4734
if eval \${$as_ac_Lib+:} false; then :
4735
  $as_echo_n "(cached) " >&6
4736
else
4737
  ac_check_lib_save_LIBS=$LIBS
4738
LIBS="-l$SV_MODULE_LIB  $LIBS"
4739
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4740
/* end confdefs.h.  */
4741

    
4742
/* Override any GCC internal prototype to avoid an error.
4743
   Use char because int might match the return type of a GCC
4744
   builtin and then its argument prototype would still apply.  */
4745
#ifdef __cplusplus
4746
extern "C"
4747
#endif
4748
char $SV_MODULE_FUNC ();
4749
int
4750
main ()
4751
{
4752
return $SV_MODULE_FUNC ();
4753
  ;
4754
  return 0;
4755
}
4756
_ACEOF
4757
if ac_fn_cxx_try_link "$LINENO"; then :
4758
  eval "$as_ac_Lib=yes"
4759
else
4760
  eval "$as_ac_Lib=no"
4761
fi
4762
rm -f core conftest.err conftest.$ac_objext \
4763
    conftest$ac_exeext conftest.$ac_ext
4764
LIBS=$ac_check_lib_save_LIBS
4765
fi
4766
eval ac_res=\$$as_ac_Lib
4767
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4768
$as_echo "$ac_res" >&6; }
4769
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
4770
  LIBS="$LIBS -l$SV_MODULE_LIB"
4771
else
4772
  as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5
4773
fi
4774

    
4775
   fi
4776
fi
4777

    
4778

    
4779
SV_MODULE_MODULE=fftw3f
4780
SV_MODULE_VERSION_TEST="fftw3f >= 3.0.0"
4781
SV_MODULE_HEADER=fftw3.h
4782
SV_MODULE_LIB=fftw3f
4783
SV_MODULE_FUNC=fftwf_execute
4784
SV_MODULE_HAVE=HAVE_$(echo fftw3f | tr 'a-z' 'A-Z')
4785
SV_MODULE_FAILED=1
4786
if test -n "$fftw3f_LIBS" ; then
4787
   { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
4788
$as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
4789
   CXXFLAGS="$CXXFLAGS $fftw3f_CFLAGS"
4790
   LIBS="$LIBS $fftw3f_LIBS"
4791
   SV_MODULE_FAILED=""
4792
fi
4793
if test -z "$SV_MODULE_VERSION_TEST" ; then
4794
   SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
4795
fi
4796
if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
4797

    
4798
pkg_failed=no
4799
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_VERSION_TEST" >&5
4800
$as_echo_n "checking for $SV_MODULE_VERSION_TEST... " >&6; }
4801

    
4802
if test -n "$fftw3f_CFLAGS"; then
4803
    pkg_cv_fftw3f_CFLAGS="$fftw3f_CFLAGS"
4804
 elif test -n "$PKG_CONFIG"; then
4805
    if test -n "$PKG_CONFIG" && \
4806
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
4807
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
4808
  ac_status=$?
4809
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4810
  test $ac_status = 0; }; then
4811
  pkg_cv_fftw3f_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
4812
		      test "x$?" != "x0" && pkg_failed=yes
4813
else
4814
  pkg_failed=yes
4815
fi
4816
 else
4817
    pkg_failed=untried
4818
fi
4819
if test -n "$fftw3f_LIBS"; then
4820
    pkg_cv_fftw3f_LIBS="$fftw3f_LIBS"
4821
 elif test -n "$PKG_CONFIG"; then
4822
    if test -n "$PKG_CONFIG" && \
4823
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
4824
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
4825
  ac_status=$?
4826
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4827
  test $ac_status = 0; }; then
4828
  pkg_cv_fftw3f_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
4829
		      test "x$?" != "x0" && pkg_failed=yes
4830
else
4831
  pkg_failed=yes
4832
fi
4833
 else
4834
    pkg_failed=untried
4835
fi
4836

    
4837

    
4838

    
4839
if test $pkg_failed = yes; then
4840
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4841
$as_echo "no" >&6; }
4842

    
4843
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4844
        _pkg_short_errors_supported=yes
4845
else
4846
        _pkg_short_errors_supported=no
4847
fi
4848
        if test $_pkg_short_errors_supported = yes; then
4849
	        fftw3f_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
4850
        else
4851
	        fftw3f_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
4852
        fi
4853
	# Put the nasty error message in config.log where it belongs
4854
	echo "$fftw3f_PKG_ERRORS" >&5
4855

    
4856
	{ $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
4857
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
4858
elif test $pkg_failed = untried; then
4859
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4860
$as_echo "no" >&6; }
4861
	{ $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
4862
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
4863
else
4864
	fftw3f_CFLAGS=$pkg_cv_fftw3f_CFLAGS
4865
	fftw3f_LIBS=$pkg_cv_fftw3f_LIBS
4866
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4867
$as_echo "yes" >&6; }
4868
	HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $fftw3f_CFLAGS";LIBS="$LIBS $fftw3f_LIBS";SV_MODULE_FAILED=""
4869
fi
4870
fi
4871
if test -n "$SV_MODULE_FAILED"; then
4872
   as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
4873
ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
4874
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4875
  HAVES="$HAVES $SV_MODULE_HAVE"
4876
else
4877
  as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5
4878
fi
4879

    
4880

    
4881
   if test -n "$SV_MODULE_LIB"; then
4882
     as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
4883
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
4884
$as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
4885
if eval \${$as_ac_Lib+:} false; then :
4886
  $as_echo_n "(cached) " >&6
4887
else
4888
  ac_check_lib_save_LIBS=$LIBS
4889
LIBS="-l$SV_MODULE_LIB  $LIBS"
4890
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4891
/* end confdefs.h.  */
4892

    
4893
/* Override any GCC internal prototype to avoid an error.
4894
   Use char because int might match the return type of a GCC
4895
   builtin and then its argument prototype would still apply.  */
4896
#ifdef __cplusplus
4897
extern "C"
4898
#endif
4899
char $SV_MODULE_FUNC ();
4900
int
4901
main ()
4902
{
4903
return $SV_MODULE_FUNC ();
4904
  ;
4905
  return 0;
4906
}
4907
_ACEOF
4908
if ac_fn_cxx_try_link "$LINENO"; then :
4909
  eval "$as_ac_Lib=yes"
4910
else
4911
  eval "$as_ac_Lib=no"
4912
fi
4913
rm -f core conftest.err conftest.$ac_objext \
4914
    conftest$ac_exeext conftest.$ac_ext
4915
LIBS=$ac_check_lib_save_LIBS
4916
fi
4917
eval ac_res=\$$as_ac_Lib
4918
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4919
$as_echo "$ac_res" >&6; }
4920
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
4921
  LIBS="$LIBS -l$SV_MODULE_LIB"
4922
else
4923
  as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5
4924
fi
4925

    
4926
   fi
4927
fi
4928

    
4929

    
4930
SV_MODULE_MODULE=sndfile
4931
SV_MODULE_VERSION_TEST="sndfile >= 1.0.16"
4932
SV_MODULE_HEADER=sndfile.h
4933
SV_MODULE_LIB=sndfile
4934
SV_MODULE_FUNC=sf_open
4935
SV_MODULE_HAVE=HAVE_$(echo sndfile | tr 'a-z' 'A-Z')
4936
SV_MODULE_FAILED=1
4937
if test -n "$sndfile_LIBS" ; then
4938
   { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
4939
$as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
4940
   CXXFLAGS="$CXXFLAGS $sndfile_CFLAGS"
4941
   LIBS="$LIBS $sndfile_LIBS"
4942
   SV_MODULE_FAILED=""
4943
fi
4944
if test -z "$SV_MODULE_VERSION_TEST" ; then
4945
   SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
4946
fi
4947
if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
4948

    
4949
pkg_failed=no
4950
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_VERSION_TEST" >&5
4951
$as_echo_n "checking for $SV_MODULE_VERSION_TEST... " >&6; }
4952

    
4953
if test -n "$sndfile_CFLAGS"; then
4954
    pkg_cv_sndfile_CFLAGS="$sndfile_CFLAGS"
4955
 elif test -n "$PKG_CONFIG"; then
4956
    if test -n "$PKG_CONFIG" && \
4957
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
4958
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
4959
  ac_status=$?
4960
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4961
  test $ac_status = 0; }; then
4962
  pkg_cv_sndfile_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
4963
		      test "x$?" != "x0" && pkg_failed=yes
4964
else
4965
  pkg_failed=yes
4966
fi
4967
 else
4968
    pkg_failed=untried
4969
fi
4970
if test -n "$sndfile_LIBS"; then
4971
    pkg_cv_sndfile_LIBS="$sndfile_LIBS"
4972
 elif test -n "$PKG_CONFIG"; then
4973
    if test -n "$PKG_CONFIG" && \
4974
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
4975
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
4976
  ac_status=$?
4977
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4978
  test $ac_status = 0; }; then
4979
  pkg_cv_sndfile_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
4980
		      test "x$?" != "x0" && pkg_failed=yes
4981
else
4982
  pkg_failed=yes
4983
fi
4984
 else
4985
    pkg_failed=untried
4986
fi
4987

    
4988

    
4989

    
4990
if test $pkg_failed = yes; then
4991
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4992
$as_echo "no" >&6; }
4993

    
4994
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4995
        _pkg_short_errors_supported=yes
4996
else
4997
        _pkg_short_errors_supported=no
4998
fi
4999
        if test $_pkg_short_errors_supported = yes; then
5000
	        sndfile_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5001
        else
5002
	        sndfile_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5003
        fi
5004
	# Put the nasty error message in config.log where it belongs
5005
	echo "$sndfile_PKG_ERRORS" >&5
5006

    
5007
	{ $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
5008
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5009
elif test $pkg_failed = untried; then
5010
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5011
$as_echo "no" >&6; }
5012
	{ $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
5013
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5014
else
5015
	sndfile_CFLAGS=$pkg_cv_sndfile_CFLAGS
5016
	sndfile_LIBS=$pkg_cv_sndfile_LIBS
5017
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5018
$as_echo "yes" >&6; }
5019
	HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $sndfile_CFLAGS";LIBS="$LIBS $sndfile_LIBS";SV_MODULE_FAILED=""
5020
fi
5021
fi
5022
if test -n "$SV_MODULE_FAILED"; then
5023
   as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
5024
ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
5025
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5026
  HAVES="$HAVES $SV_MODULE_HAVE"
5027
else
5028
  as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5
5029
fi
5030

    
5031

    
5032
   if test -n "$SV_MODULE_LIB"; then
5033
     as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
5034
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
5035
$as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
5036
if eval \${$as_ac_Lib+:} false; then :
5037
  $as_echo_n "(cached) " >&6
5038
else
5039
  ac_check_lib_save_LIBS=$LIBS
5040
LIBS="-l$SV_MODULE_LIB  $LIBS"
5041
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5042
/* end confdefs.h.  */
5043

    
5044
/* Override any GCC internal prototype to avoid an error.
5045
   Use char because int might match the return type of a GCC
5046
   builtin and then its argument prototype would still apply.  */
5047
#ifdef __cplusplus
5048
extern "C"
5049
#endif
5050
char $SV_MODULE_FUNC ();
5051
int
5052
main ()
5053
{
5054
return $SV_MODULE_FUNC ();
5055
  ;
5056
  return 0;
5057
}
5058
_ACEOF
5059
if ac_fn_cxx_try_link "$LINENO"; then :
5060
  eval "$as_ac_Lib=yes"
5061
else
5062
  eval "$as_ac_Lib=no"
5063
fi
5064
rm -f core conftest.err conftest.$ac_objext \
5065
    conftest$ac_exeext conftest.$ac_ext
5066
LIBS=$ac_check_lib_save_LIBS
5067
fi
5068
eval ac_res=\$$as_ac_Lib
5069
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5070
$as_echo "$ac_res" >&6; }
5071
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
5072
  LIBS="$LIBS -l$SV_MODULE_LIB"
5073
else
5074
  as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5
5075
fi
5076

    
5077
   fi
5078
fi
5079

    
5080

    
5081
SV_MODULE_MODULE=samplerate
5082
SV_MODULE_VERSION_TEST="samplerate >= 0.1.2"
5083
SV_MODULE_HEADER=samplerate.h
5084
SV_MODULE_LIB=samplerate
5085
SV_MODULE_FUNC=src_new
5086
SV_MODULE_HAVE=HAVE_$(echo samplerate | tr 'a-z' 'A-Z')
5087
SV_MODULE_FAILED=1
5088
if test -n "$samplerate_LIBS" ; then
5089
   { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
5090
$as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
5091
   CXXFLAGS="$CXXFLAGS $samplerate_CFLAGS"
5092
   LIBS="$LIBS $samplerate_LIBS"
5093
   SV_MODULE_FAILED=""
5094
fi
5095
if test -z "$SV_MODULE_VERSION_TEST" ; then
5096
   SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
5097
fi
5098
if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
5099

    
5100
pkg_failed=no
5101
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_VERSION_TEST" >&5
5102
$as_echo_n "checking for $SV_MODULE_VERSION_TEST... " >&6; }
5103

    
5104
if test -n "$samplerate_CFLAGS"; then
5105
    pkg_cv_samplerate_CFLAGS="$samplerate_CFLAGS"
5106
 elif test -n "$PKG_CONFIG"; then
5107
    if test -n "$PKG_CONFIG" && \
5108
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5109
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5110
  ac_status=$?
5111
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5112
  test $ac_status = 0; }; then
5113
  pkg_cv_samplerate_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5114
		      test "x$?" != "x0" && pkg_failed=yes
5115
else
5116
  pkg_failed=yes
5117
fi
5118
 else
5119
    pkg_failed=untried
5120
fi
5121
if test -n "$samplerate_LIBS"; then
5122
    pkg_cv_samplerate_LIBS="$samplerate_LIBS"
5123
 elif test -n "$PKG_CONFIG"; then
5124
    if test -n "$PKG_CONFIG" && \
5125
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5126
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5127
  ac_status=$?
5128
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5129
  test $ac_status = 0; }; then
5130
  pkg_cv_samplerate_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5131
		      test "x$?" != "x0" && pkg_failed=yes
5132
else
5133
  pkg_failed=yes
5134
fi
5135
 else
5136
    pkg_failed=untried
5137
fi
5138

    
5139

    
5140

    
5141
if test $pkg_failed = yes; then
5142
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5143
$as_echo "no" >&6; }
5144

    
5145
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5146
        _pkg_short_errors_supported=yes
5147
else
5148
        _pkg_short_errors_supported=no
5149
fi
5150
        if test $_pkg_short_errors_supported = yes; then
5151
	        samplerate_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5152
        else
5153
	        samplerate_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5154
        fi
5155
	# Put the nasty error message in config.log where it belongs
5156
	echo "$samplerate_PKG_ERRORS" >&5
5157

    
5158
	{ $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
5159
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5160
elif test $pkg_failed = untried; then
5161
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5162
$as_echo "no" >&6; }
5163
	{ $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
5164
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5165
else
5166
	samplerate_CFLAGS=$pkg_cv_samplerate_CFLAGS
5167
	samplerate_LIBS=$pkg_cv_samplerate_LIBS
5168
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5169
$as_echo "yes" >&6; }
5170
	HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $samplerate_CFLAGS";LIBS="$LIBS $samplerate_LIBS";SV_MODULE_FAILED=""
5171
fi
5172
fi
5173
if test -n "$SV_MODULE_FAILED"; then
5174
   as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
5175
ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
5176
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5177
  HAVES="$HAVES $SV_MODULE_HAVE"
5178
else
5179
  as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5
5180
fi
5181

    
5182

    
5183
   if test -n "$SV_MODULE_LIB"; then
5184
     as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
5185
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
5186
$as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
5187
if eval \${$as_ac_Lib+:} false; then :
5188
  $as_echo_n "(cached) " >&6
5189
else
5190
  ac_check_lib_save_LIBS=$LIBS
5191
LIBS="-l$SV_MODULE_LIB  $LIBS"
5192
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5193
/* end confdefs.h.  */
5194

    
5195
/* Override any GCC internal prototype to avoid an error.
5196
   Use char because int might match the return type of a GCC
5197
   builtin and then its argument prototype would still apply.  */
5198
#ifdef __cplusplus
5199
extern "C"
5200
#endif
5201
char $SV_MODULE_FUNC ();
5202
int
5203
main ()
5204
{
5205
return $SV_MODULE_FUNC ();
5206
  ;
5207
  return 0;
5208
}
5209
_ACEOF
5210
if ac_fn_cxx_try_link "$LINENO"; then :
5211
  eval "$as_ac_Lib=yes"
5212
else
5213
  eval "$as_ac_Lib=no"
5214
fi
5215
rm -f core conftest.err conftest.$ac_objext \
5216
    conftest$ac_exeext conftest.$ac_ext
5217
LIBS=$ac_check_lib_save_LIBS
5218
fi
5219
eval ac_res=\$$as_ac_Lib
5220
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5221
$as_echo "$ac_res" >&6; }
5222
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
5223
  LIBS="$LIBS -l$SV_MODULE_LIB"
5224
else
5225
  as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5
5226
fi
5227

    
5228
   fi
5229
fi
5230

    
5231

    
5232
SV_MODULE_MODULE=rubberband
5233
SV_MODULE_VERSION_TEST="rubberband"
5234
SV_MODULE_HEADER=rubberband/RubberBandStretcher.h
5235
SV_MODULE_LIB=rubberband
5236
SV_MODULE_FUNC=rubberband_new
5237
SV_MODULE_HAVE=HAVE_$(echo rubberband | tr 'a-z' 'A-Z')
5238
SV_MODULE_FAILED=1
5239
if test -n "$rubberband_LIBS" ; then
5240
   { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
5241
$as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
5242
   CXXFLAGS="$CXXFLAGS $rubberband_CFLAGS"
5243
   LIBS="$LIBS $rubberband_LIBS"
5244
   SV_MODULE_FAILED=""
5245
fi
5246
if test -z "$SV_MODULE_VERSION_TEST" ; then
5247
   SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
5248
fi
5249
if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
5250

    
5251
pkg_failed=no
5252
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_VERSION_TEST" >&5
5253
$as_echo_n "checking for $SV_MODULE_VERSION_TEST... " >&6; }
5254

    
5255
if test -n "$rubberband_CFLAGS"; then
5256
    pkg_cv_rubberband_CFLAGS="$rubberband_CFLAGS"
5257
 elif test -n "$PKG_CONFIG"; then
5258
    if test -n "$PKG_CONFIG" && \
5259
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5260
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5261
  ac_status=$?
5262
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5263
  test $ac_status = 0; }; then
5264
  pkg_cv_rubberband_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5265
		      test "x$?" != "x0" && pkg_failed=yes
5266
else
5267
  pkg_failed=yes
5268
fi
5269
 else
5270
    pkg_failed=untried
5271
fi
5272
if test -n "$rubberband_LIBS"; then
5273
    pkg_cv_rubberband_LIBS="$rubberband_LIBS"
5274
 elif test -n "$PKG_CONFIG"; then
5275
    if test -n "$PKG_CONFIG" && \
5276
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5277
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5278
  ac_status=$?
5279
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5280
  test $ac_status = 0; }; then
5281
  pkg_cv_rubberband_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5282
		      test "x$?" != "x0" && pkg_failed=yes
5283
else
5284
  pkg_failed=yes
5285
fi
5286
 else
5287
    pkg_failed=untried
5288
fi
5289

    
5290

    
5291

    
5292
if test $pkg_failed = yes; then
5293
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5294
$as_echo "no" >&6; }
5295

    
5296
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5297
        _pkg_short_errors_supported=yes
5298
else
5299
        _pkg_short_errors_supported=no
5300
fi
5301
        if test $_pkg_short_errors_supported = yes; then
5302
	        rubberband_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5303
        else
5304
	        rubberband_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5305
        fi
5306
	# Put the nasty error message in config.log where it belongs
5307
	echo "$rubberband_PKG_ERRORS" >&5
5308

    
5309
	{ $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
5310
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5311
elif test $pkg_failed = untried; then
5312
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5313
$as_echo "no" >&6; }
5314
	{ $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
5315
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5316
else
5317
	rubberband_CFLAGS=$pkg_cv_rubberband_CFLAGS
5318
	rubberband_LIBS=$pkg_cv_rubberband_LIBS
5319
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5320
$as_echo "yes" >&6; }
5321
	HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $rubberband_CFLAGS";LIBS="$LIBS $rubberband_LIBS";SV_MODULE_FAILED=""
5322
fi
5323
fi
5324
if test -n "$SV_MODULE_FAILED"; then
5325
   as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
5326
ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
5327
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5328
  HAVES="$HAVES $SV_MODULE_HAVE"
5329
else
5330
  as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5
5331
fi
5332

    
5333

    
5334
   if test -n "$SV_MODULE_LIB"; then
5335
     as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
5336
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
5337
$as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
5338
if eval \${$as_ac_Lib+:} false; then :
5339
  $as_echo_n "(cached) " >&6
5340
else
5341
  ac_check_lib_save_LIBS=$LIBS
5342
LIBS="-l$SV_MODULE_LIB  $LIBS"
5343
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5344
/* end confdefs.h.  */
5345

    
5346
/* Override any GCC internal prototype to avoid an error.
5347
   Use char because int might match the return type of a GCC
5348
   builtin and then its argument prototype would still apply.  */
5349
#ifdef __cplusplus
5350
extern "C"
5351
#endif
5352
char $SV_MODULE_FUNC ();
5353
int
5354
main ()
5355
{
5356
return $SV_MODULE_FUNC ();
5357
  ;
5358
  return 0;
5359
}
5360
_ACEOF
5361
if ac_fn_cxx_try_link "$LINENO"; then :
5362
  eval "$as_ac_Lib=yes"
5363
else
5364
  eval "$as_ac_Lib=no"
5365
fi
5366
rm -f core conftest.err conftest.$ac_objext \
5367
    conftest$ac_exeext conftest.$ac_ext
5368
LIBS=$ac_check_lib_save_LIBS
5369
fi
5370
eval ac_res=\$$as_ac_Lib
5371
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5372
$as_echo "$ac_res" >&6; }
5373
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
5374
  LIBS="$LIBS -l$SV_MODULE_LIB"
5375
else
5376
  as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5
5377
fi
5378

    
5379
   fi
5380
fi
5381

    
5382

    
5383
SV_MODULE_MODULE=sord
5384
SV_MODULE_VERSION_TEST="sord-0 >= 0.5"
5385
SV_MODULE_HEADER=sord/sord.h
5386
SV_MODULE_LIB=sord-0
5387
SV_MODULE_FUNC=sord_world_new
5388
SV_MODULE_HAVE=HAVE_$(echo sord | tr 'a-z' 'A-Z')
5389
SV_MODULE_FAILED=1
5390
if test -n "$sord_LIBS" ; then
5391
   { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
5392
$as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
5393
   CXXFLAGS="$CXXFLAGS $sord_CFLAGS"
5394
   LIBS="$LIBS $sord_LIBS"
5395
   SV_MODULE_FAILED=""
5396
fi
5397
if test -z "$SV_MODULE_VERSION_TEST" ; then
5398
   SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
5399
fi
5400
if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
5401

    
5402
pkg_failed=no
5403
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_VERSION_TEST" >&5
5404
$as_echo_n "checking for $SV_MODULE_VERSION_TEST... " >&6; }
5405

    
5406
if test -n "$sord_CFLAGS"; then
5407
    pkg_cv_sord_CFLAGS="$sord_CFLAGS"
5408
 elif test -n "$PKG_CONFIG"; then
5409
    if test -n "$PKG_CONFIG" && \
5410
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5411
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5412
  ac_status=$?
5413
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5414
  test $ac_status = 0; }; then
5415
  pkg_cv_sord_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5416
		      test "x$?" != "x0" && pkg_failed=yes
5417
else
5418
  pkg_failed=yes
5419
fi
5420
 else
5421
    pkg_failed=untried
5422
fi
5423
if test -n "$sord_LIBS"; then
5424
    pkg_cv_sord_LIBS="$sord_LIBS"
5425
 elif test -n "$PKG_CONFIG"; then
5426
    if test -n "$PKG_CONFIG" && \
5427
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5428
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5429
  ac_status=$?
5430
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5431
  test $ac_status = 0; }; then
5432
  pkg_cv_sord_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5433
		      test "x$?" != "x0" && pkg_failed=yes
5434
else
5435
  pkg_failed=yes
5436
fi
5437
 else
5438
    pkg_failed=untried
5439
fi
5440

    
5441

    
5442

    
5443
if test $pkg_failed = yes; then
5444
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5445
$as_echo "no" >&6; }
5446

    
5447
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5448
        _pkg_short_errors_supported=yes
5449
else
5450
        _pkg_short_errors_supported=no
5451
fi
5452
        if test $_pkg_short_errors_supported = yes; then
5453
	        sord_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5454
        else
5455
	        sord_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5456
        fi
5457
	# Put the nasty error message in config.log where it belongs
5458
	echo "$sord_PKG_ERRORS" >&5
5459

    
5460
	{ $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
5461
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5462
elif test $pkg_failed = untried; then
5463
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5464
$as_echo "no" >&6; }
5465
	{ $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
5466
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5467
else
5468
	sord_CFLAGS=$pkg_cv_sord_CFLAGS
5469
	sord_LIBS=$pkg_cv_sord_LIBS
5470
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5471
$as_echo "yes" >&6; }
5472
	HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $sord_CFLAGS";LIBS="$LIBS $sord_LIBS";SV_MODULE_FAILED=""
5473
fi
5474
fi
5475
if test -n "$SV_MODULE_FAILED"; then
5476
   as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
5477
ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
5478
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5479
  HAVES="$HAVES $SV_MODULE_HAVE"
5480
else
5481
  as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5
5482
fi
5483

    
5484

    
5485
   if test -n "$SV_MODULE_LIB"; then
5486
     as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
5487
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
5488
$as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
5489
if eval \${$as_ac_Lib+:} false; then :
5490
  $as_echo_n "(cached) " >&6
5491
else
5492
  ac_check_lib_save_LIBS=$LIBS
5493
LIBS="-l$SV_MODULE_LIB  $LIBS"
5494
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5495
/* end confdefs.h.  */
5496

    
5497
/* Override any GCC internal prototype to avoid an error.
5498
   Use char because int might match the return type of a GCC
5499
   builtin and then its argument prototype would still apply.  */
5500
#ifdef __cplusplus
5501
extern "C"
5502
#endif
5503
char $SV_MODULE_FUNC ();
5504
int
5505
main ()
5506
{
5507
return $SV_MODULE_FUNC ();
5508
  ;
5509
  return 0;
5510
}
5511
_ACEOF
5512
if ac_fn_cxx_try_link "$LINENO"; then :
5513
  eval "$as_ac_Lib=yes"
5514
else
5515
  eval "$as_ac_Lib=no"
5516
fi
5517
rm -f core conftest.err conftest.$ac_objext \
5518
    conftest$ac_exeext conftest.$ac_ext
5519
LIBS=$ac_check_lib_save_LIBS
5520
fi
5521
eval ac_res=\$$as_ac_Lib
5522
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5523
$as_echo "$ac_res" >&6; }
5524
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
5525
  LIBS="$LIBS -l$SV_MODULE_LIB"
5526
else
5527
  as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5
5528
fi
5529

    
5530
   fi
5531
fi
5532

    
5533

    
5534
SV_MODULE_MODULE=serd
5535
SV_MODULE_VERSION_TEST="serd-0 >= 0.5"
5536
SV_MODULE_HEADER=serd/serd.h
5537
SV_MODULE_LIB=serd-0
5538
SV_MODULE_FUNC=serd_reader_read_file
5539
SV_MODULE_HAVE=HAVE_$(echo serd | tr 'a-z' 'A-Z')
5540
SV_MODULE_FAILED=1
5541
if test -n "$serd_LIBS" ; then
5542
   { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
5543
$as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
5544
   CXXFLAGS="$CXXFLAGS $serd_CFLAGS"
5545
   LIBS="$LIBS $serd_LIBS"
5546
   SV_MODULE_FAILED=""
5547
fi
5548
if test -z "$SV_MODULE_VERSION_TEST" ; then
5549
   SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
5550
fi
5551
if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
5552

    
5553
pkg_failed=no
5554
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_VERSION_TEST" >&5
5555
$as_echo_n "checking for $SV_MODULE_VERSION_TEST... " >&6; }
5556

    
5557
if test -n "$serd_CFLAGS"; then
5558
    pkg_cv_serd_CFLAGS="$serd_CFLAGS"
5559
 elif test -n "$PKG_CONFIG"; then
5560
    if test -n "$PKG_CONFIG" && \
5561
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5562
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5563
  ac_status=$?
5564
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5565
  test $ac_status = 0; }; then
5566
  pkg_cv_serd_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5567
		      test "x$?" != "x0" && pkg_failed=yes
5568
else
5569
  pkg_failed=yes
5570
fi
5571
 else
5572
    pkg_failed=untried
5573
fi
5574
if test -n "$serd_LIBS"; then
5575
    pkg_cv_serd_LIBS="$serd_LIBS"
5576
 elif test -n "$PKG_CONFIG"; then
5577
    if test -n "$PKG_CONFIG" && \
5578
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5579
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5580
  ac_status=$?
5581
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5582
  test $ac_status = 0; }; then
5583
  pkg_cv_serd_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5584
		      test "x$?" != "x0" && pkg_failed=yes
5585
else
5586
  pkg_failed=yes
5587
fi
5588
 else
5589
    pkg_failed=untried
5590
fi
5591

    
5592

    
5593

    
5594
if test $pkg_failed = yes; then
5595
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5596
$as_echo "no" >&6; }
5597

    
5598
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5599
        _pkg_short_errors_supported=yes
5600
else
5601
        _pkg_short_errors_supported=no
5602
fi
5603
        if test $_pkg_short_errors_supported = yes; then
5604
	        serd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5605
        else
5606
	        serd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5607
        fi
5608
	# Put the nasty error message in config.log where it belongs
5609
	echo "$serd_PKG_ERRORS" >&5
5610

    
5611
	{ $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
5612
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5613
elif test $pkg_failed = untried; then
5614
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5615
$as_echo "no" >&6; }
5616
	{ $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
5617
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5618
else
5619
	serd_CFLAGS=$pkg_cv_serd_CFLAGS
5620
	serd_LIBS=$pkg_cv_serd_LIBS
5621
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5622
$as_echo "yes" >&6; }
5623
	HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $serd_CFLAGS";LIBS="$LIBS $serd_LIBS";SV_MODULE_FAILED=""
5624
fi
5625
fi
5626
if test -n "$SV_MODULE_FAILED"; then
5627
   as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
5628
ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
5629
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5630
  HAVES="$HAVES $SV_MODULE_HAVE"
5631
else
5632
  as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5
5633
fi
5634

    
5635

    
5636
   if test -n "$SV_MODULE_LIB"; then
5637
     as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
5638
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
5639
$as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
5640
if eval \${$as_ac_Lib+:} false; then :
5641
  $as_echo_n "(cached) " >&6
5642
else
5643
  ac_check_lib_save_LIBS=$LIBS
5644
LIBS="-l$SV_MODULE_LIB  $LIBS"
5645
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5646
/* end confdefs.h.  */
5647

    
5648
/* Override any GCC internal prototype to avoid an error.
5649
   Use char because int might match the return type of a GCC
5650
   builtin and then its argument prototype would still apply.  */
5651
#ifdef __cplusplus
5652
extern "C"
5653
#endif
5654
char $SV_MODULE_FUNC ();
5655
int
5656
main ()
5657
{
5658
return $SV_MODULE_FUNC ();
5659
  ;
5660
  return 0;
5661
}
5662
_ACEOF
5663
if ac_fn_cxx_try_link "$LINENO"; then :
5664
  eval "$as_ac_Lib=yes"
5665
else
5666
  eval "$as_ac_Lib=no"
5667
fi
5668
rm -f core conftest.err conftest.$ac_objext \
5669
    conftest$ac_exeext conftest.$ac_ext
5670
LIBS=$ac_check_lib_save_LIBS
5671
fi
5672
eval ac_res=\$$as_ac_Lib
5673
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5674
$as_echo "$ac_res" >&6; }
5675
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
5676
  LIBS="$LIBS -l$SV_MODULE_LIB"
5677
else
5678
  as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5
5679
fi
5680

    
5681
   fi
5682
fi
5683

    
5684

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

    
5689
pkg_failed=no
5690
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for capnp >= 0.6" >&5
5691
$as_echo_n "checking for capnp >= 0.6... " >&6; }
5692

    
5693
if test -n "$capnp_CFLAGS"; then
5694
    pkg_cv_capnp_CFLAGS="$capnp_CFLAGS"
5695
 elif test -n "$PKG_CONFIG"; then
5696
    if test -n "$PKG_CONFIG" && \
5697
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"capnp >= 0.6\""; } >&5
5698
  ($PKG_CONFIG --exists --print-errors "capnp >= 0.6") 2>&5
5699
  ac_status=$?
5700
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5701
  test $ac_status = 0; }; then
5702
  pkg_cv_capnp_CFLAGS=`$PKG_CONFIG --cflags "capnp >= 0.6" 2>/dev/null`
5703
		      test "x$?" != "x0" && pkg_failed=yes
5704
else
5705
  pkg_failed=yes
5706
fi
5707
 else
5708
    pkg_failed=untried
5709
fi
5710
if test -n "$capnp_LIBS"; then
5711
    pkg_cv_capnp_LIBS="$capnp_LIBS"
5712
 elif test -n "$PKG_CONFIG"; then
5713
    if test -n "$PKG_CONFIG" && \
5714
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"capnp >= 0.6\""; } >&5
5715
  ($PKG_CONFIG --exists --print-errors "capnp >= 0.6") 2>&5
5716
  ac_status=$?
5717
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5718
  test $ac_status = 0; }; then
5719
  pkg_cv_capnp_LIBS=`$PKG_CONFIG --libs "capnp >= 0.6" 2>/dev/null`
5720
		      test "x$?" != "x0" && pkg_failed=yes
5721
else
5722
  pkg_failed=yes
5723
fi
5724
 else
5725
    pkg_failed=untried
5726
fi
5727

    
5728

    
5729

    
5730
if test $pkg_failed = yes; then
5731
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5732
$as_echo "no" >&6; }
5733

    
5734
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5735
        _pkg_short_errors_supported=yes
5736
else
5737
        _pkg_short_errors_supported=no
5738
fi
5739
        if test $_pkg_short_errors_supported = yes; then
5740
	        capnp_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "capnp >= 0.6" 2>&1`
5741
        else
5742
	        capnp_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "capnp >= 0.6" 2>&1`
5743
        fi
5744
	# Put the nasty error message in config.log where it belongs
5745
	echo "$capnp_PKG_ERRORS" >&5
5746

    
5747
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module capnp using pkg-config, trying again by old-fashioned means" >&5
5748
$as_echo "$as_me: Failed to find required module capnp using pkg-config, trying again by old-fashioned means" >&6;}
5749
elif test $pkg_failed = untried; then
5750
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5751
$as_echo "no" >&6; }
5752
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module capnp using pkg-config, trying again by old-fashioned means" >&5
5753
$as_echo "$as_me: Failed to find required module capnp using pkg-config, trying again by old-fashioned means" >&6;}
5754
else
5755
	capnp_CFLAGS=$pkg_cv_capnp_CFLAGS
5756
	capnp_LIBS=$pkg_cv_capnp_LIBS
5757
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5758
$as_echo "yes" >&6; }
5759
	HAVES="$HAVES HAVE_CAPNP";CXXFLAGS="$CXXFLAGS $capnp_CFLAGS";LIBS="$LIBS $capnp_LIBS"
5760
fi
5761
if test -z "$capnp_LIBS" ; then
5762
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5763
/* end confdefs.h.  */
5764

    
5765

    
5766
        #include <capnp/serialize.h>
5767
        int main() {
5768
            kj::Array<capnp::word> prefix;
5769
            return capnp::expectedSizeInWordsFromPrefix(prefix.asPtr());
5770
        }
5771
_ACEOF
5772
if ac_fn_cxx_try_compile "$LINENO"; then :
5773
  HAVES="$HAVES HAVE_CAPNP";LIBS="$LIBS -lcapnp -lkj"
5774
else
5775
  as_fn_error $? "Failed to find appropriate capnp library" "$LINENO" 5
5776

    
5777
fi
5778
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5779
fi
5780

    
5781

    
5782
SV_MODULE_MODULE=liblo
5783
SV_MODULE_VERSION_TEST=""
5784
SV_MODULE_HEADER=lo/lo.h
5785
SV_MODULE_LIB=lo
5786
SV_MODULE_FUNC=lo_address_new
5787
SV_MODULE_HAVE=HAVE_$(echo liblo | tr 'a-z' 'A-Z')
5788
SV_MODULE_FAILED=1
5789
if test -n "$liblo_LIBS" ; then
5790
   { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
5791
$as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
5792
   CXXFLAGS="$CXXFLAGS $liblo_CFLAGS"
5793
   LIBS="$LIBS $liblo_LIBS"
5794
   SV_MODULE_FAILED=""
5795
fi
5796
if test -z "$SV_MODULE_VERSION_TEST" ; then
5797
   SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
5798
fi
5799
if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
5800

    
5801
pkg_failed=no
5802
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_VERSION_TEST" >&5
5803
$as_echo_n "checking for $SV_MODULE_VERSION_TEST... " >&6; }
5804

    
5805
if test -n "$liblo_CFLAGS"; then
5806
    pkg_cv_liblo_CFLAGS="$liblo_CFLAGS"
5807
 elif test -n "$PKG_CONFIG"; then
5808
    if test -n "$PKG_CONFIG" && \
5809
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5810
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5811
  ac_status=$?
5812
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5813
  test $ac_status = 0; }; then
5814
  pkg_cv_liblo_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5815
		      test "x$?" != "x0" && pkg_failed=yes
5816
else
5817
  pkg_failed=yes
5818
fi
5819
 else
5820
    pkg_failed=untried
5821
fi
5822
if test -n "$liblo_LIBS"; then
5823
    pkg_cv_liblo_LIBS="$liblo_LIBS"
5824
 elif test -n "$PKG_CONFIG"; then
5825
    if test -n "$PKG_CONFIG" && \
5826
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5827
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5828
  ac_status=$?
5829
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5830
  test $ac_status = 0; }; then
5831
  pkg_cv_liblo_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5832
		      test "x$?" != "x0" && pkg_failed=yes
5833
else
5834
  pkg_failed=yes
5835
fi
5836
 else
5837
    pkg_failed=untried
5838
fi
5839

    
5840

    
5841

    
5842
if test $pkg_failed = yes; then
5843
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5844
$as_echo "no" >&6; }
5845

    
5846
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5847
        _pkg_short_errors_supported=yes
5848
else
5849
        _pkg_short_errors_supported=no
5850
fi
5851
        if test $_pkg_short_errors_supported = yes; then
5852
	        liblo_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5853
        else
5854
	        liblo_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5855
        fi
5856
	# Put the nasty error message in config.log where it belongs
5857
	echo "$liblo_PKG_ERRORS" >&5
5858

    
5859
	{ $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
5860
$as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5861
elif test $pkg_failed = untried; then
5862
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5863
$as_echo "no" >&6; }
5864
	{ $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
5865
$as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5866
else
5867
	liblo_CFLAGS=$pkg_cv_liblo_CFLAGS
5868
	liblo_LIBS=$pkg_cv_liblo_LIBS
5869
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5870
$as_echo "yes" >&6; }
5871
	HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $liblo_CFLAGS";LIBS="$LIBS $liblo_LIBS";SV_MODULE_FAILED=""
5872
fi
5873
fi
5874
if test -n "$SV_MODULE_FAILED"; then
5875
   as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
5876
ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
5877
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5878
  HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""
5879
else
5880
  { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5
5881
$as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;}
5882
fi
5883

    
5884

    
5885
   if test -z "$SV_MODULE_FAILED"; then
5886
      if test -n "$SV_MODULE_LIB"; then
5887
           as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
5888
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
5889
$as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
5890
if eval \${$as_ac_Lib+:} false; then :
5891
  $as_echo_n "(cached) " >&6
5892
else
5893
  ac_check_lib_save_LIBS=$LIBS
5894
LIBS="-l$SV_MODULE_LIB  $LIBS"
5895
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5896
/* end confdefs.h.  */
5897

    
5898
/* Override any GCC internal prototype to avoid an error.
5899
   Use char because int might match the return type of a GCC
5900
   builtin and then its argument prototype would still apply.  */
5901
#ifdef __cplusplus
5902
extern "C"
5903
#endif
5904
char $SV_MODULE_FUNC ();
5905
int
5906
main ()
5907
{
5908
return $SV_MODULE_FUNC ();
5909
  ;
5910
  return 0;
5911
}
5912
_ACEOF
5913
if ac_fn_cxx_try_link "$LINENO"; then :
5914
  eval "$as_ac_Lib=yes"
5915
else
5916
  eval "$as_ac_Lib=no"
5917
fi
5918
rm -f core conftest.err conftest.$ac_objext \
5919
    conftest$ac_exeext conftest.$ac_ext
5920
LIBS=$ac_check_lib_save_LIBS
5921
fi
5922
eval ac_res=\$$as_ac_Lib
5923
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5924
$as_echo "$ac_res" >&6; }
5925
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
5926
  LIBS="$LIBS -l$SV_MODULE_LIB"
5927
else
5928
  { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5
5929
$as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;}
5930
fi
5931

    
5932
      fi
5933
   fi
5934
fi
5935

    
5936

    
5937
SV_MODULE_MODULE=portaudio_2_0
5938
SV_MODULE_VERSION_TEST="portaudio-2.0 >= 19"
5939
SV_MODULE_HEADER=portaudio.h
5940
SV_MODULE_LIB=portaudio
5941
SV_MODULE_FUNC=Pa_IsFormatSupported
5942
SV_MODULE_HAVE=HAVE_$(echo portaudio_2_0 | tr 'a-z' 'A-Z')
5943
SV_MODULE_FAILED=1
5944
if test -n "$portaudio_2_0_LIBS" ; then
5945
   { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
5946
$as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
5947
   CXXFLAGS="$CXXFLAGS $portaudio_2_0_CFLAGS"
5948
   LIBS="$LIBS $portaudio_2_0_LIBS"
5949
   SV_MODULE_FAILED=""
5950
fi
5951
if test -z "$SV_MODULE_VERSION_TEST" ; then
5952
   SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
5953
fi
5954
if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
5955

    
5956
pkg_failed=no
5957
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_VERSION_TEST" >&5
5958
$as_echo_n "checking for $SV_MODULE_VERSION_TEST... " >&6; }
5959

    
5960
if test -n "$portaudio_2_0_CFLAGS"; then
5961
    pkg_cv_portaudio_2_0_CFLAGS="$portaudio_2_0_CFLAGS"
5962
 elif test -n "$PKG_CONFIG"; then
5963
    if test -n "$PKG_CONFIG" && \
5964
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5965
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5966
  ac_status=$?
5967
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5968
  test $ac_status = 0; }; then
5969
  pkg_cv_portaudio_2_0_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5970
		      test "x$?" != "x0" && pkg_failed=yes
5971
else
5972
  pkg_failed=yes
5973
fi
5974
 else
5975
    pkg_failed=untried
5976
fi
5977
if test -n "$portaudio_2_0_LIBS"; then
5978
    pkg_cv_portaudio_2_0_LIBS="$portaudio_2_0_LIBS"
5979
 elif test -n "$PKG_CONFIG"; then
5980
    if test -n "$PKG_CONFIG" && \
5981
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5982
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5983
  ac_status=$?
5984
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5985
  test $ac_status = 0; }; then
5986
  pkg_cv_portaudio_2_0_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5987
		      test "x$?" != "x0" && pkg_failed=yes
5988
else
5989
  pkg_failed=yes
5990
fi
5991
 else
5992
    pkg_failed=untried
5993
fi
5994

    
5995

    
5996

    
5997
if test $pkg_failed = yes; then
5998
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5999
$as_echo "no" >&6; }
6000

    
6001
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6002
        _pkg_short_errors_supported=yes
6003
else
6004
        _pkg_short_errors_supported=no
6005
fi
6006
        if test $_pkg_short_errors_supported = yes; then
6007
	        portaudio_2_0_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
6008
        else
6009
	        portaudio_2_0_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
6010
        fi
6011
	# Put the nasty error message in config.log where it belongs
6012
	echo "$portaudio_2_0_PKG_ERRORS" >&5
6013

    
6014
	{ $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
6015
$as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
6016
elif test $pkg_failed = untried; then
6017
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6018
$as_echo "no" >&6; }
6019
	{ $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
6020
$as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
6021
else
6022
	portaudio_2_0_CFLAGS=$pkg_cv_portaudio_2_0_CFLAGS
6023
	portaudio_2_0_LIBS=$pkg_cv_portaudio_2_0_LIBS
6024
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6025
$as_echo "yes" >&6; }
6026
	HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $portaudio_2_0_CFLAGS";LIBS="$LIBS $portaudio_2_0_LIBS";SV_MODULE_FAILED=""
6027
fi
6028
fi
6029
if test -n "$SV_MODULE_FAILED"; then
6030
   as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
6031
ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
6032
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6033
  HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""
6034
else
6035
  { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5
6036
$as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;}
6037
fi
6038

    
6039

    
6040
   if test -z "$SV_MODULE_FAILED"; then
6041
      if test -n "$SV_MODULE_LIB"; then
6042
           as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
6043
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
6044
$as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
6045
if eval \${$as_ac_Lib+:} false; then :
6046
  $as_echo_n "(cached) " >&6
6047
else
6048
  ac_check_lib_save_LIBS=$LIBS
6049
LIBS="-l$SV_MODULE_LIB  $LIBS"
6050
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6051
/* end confdefs.h.  */
6052

    
6053
/* Override any GCC internal prototype to avoid an error.
6054
   Use char because int might match the return type of a GCC
6055
   builtin and then its argument prototype would still apply.  */
6056
#ifdef __cplusplus
6057
extern "C"
6058
#endif
6059
char $SV_MODULE_FUNC ();
6060
int
6061
main ()
6062
{
6063
return $SV_MODULE_FUNC ();
6064
  ;
6065
  return 0;
6066
}
6067
_ACEOF
6068
if ac_fn_cxx_try_link "$LINENO"; then :
6069
  eval "$as_ac_Lib=yes"
6070
else
6071
  eval "$as_ac_Lib=no"
6072
fi
6073
rm -f core conftest.err conftest.$ac_objext \
6074
    conftest$ac_exeext conftest.$ac_ext
6075
LIBS=$ac_check_lib_save_LIBS
6076
fi
6077
eval ac_res=\$$as_ac_Lib
6078
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6079
$as_echo "$ac_res" >&6; }
6080
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6081
  LIBS="$LIBS -l$SV_MODULE_LIB"
6082
else
6083
  { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5
6084
$as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;}
6085
fi
6086

    
6087
      fi
6088
   fi
6089
fi
6090

    
6091

    
6092
SV_MODULE_MODULE=JACK
6093
SV_MODULE_VERSION_TEST="jack >= 0.100"
6094
SV_MODULE_HEADER=jack/jack.h
6095
SV_MODULE_LIB=jack
6096
SV_MODULE_FUNC=jack_client_open
6097
SV_MODULE_HAVE=HAVE_$(echo JACK | tr 'a-z' 'A-Z')
6098
SV_MODULE_FAILED=1
6099
if test -n "$JACK_LIBS" ; then
6100
   { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
6101
$as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
6102
   CXXFLAGS="$CXXFLAGS $JACK_CFLAGS"
6103
   LIBS="$LIBS $JACK_LIBS"
6104
   SV_MODULE_FAILED=""
6105
fi
6106
if test -z "$SV_MODULE_VERSION_TEST" ; then
6107
   SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
6108
fi
6109
if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
6110

    
6111
pkg_failed=no
6112
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_VERSION_TEST" >&5
6113
$as_echo_n "checking for $SV_MODULE_VERSION_TEST... " >&6; }
6114

    
6115
if test -n "$JACK_CFLAGS"; then
6116
    pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
6117
 elif test -n "$PKG_CONFIG"; then
6118
    if test -n "$PKG_CONFIG" && \
6119
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
6120
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
6121
  ac_status=$?
6122
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6123
  test $ac_status = 0; }; then
6124
  pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
6125
		      test "x$?" != "x0" && pkg_failed=yes
6126
else
6127
  pkg_failed=yes
6128
fi
6129
 else
6130
    pkg_failed=untried
6131
fi
6132
if test -n "$JACK_LIBS"; then
6133
    pkg_cv_JACK_LIBS="$JACK_LIBS"
6134
 elif test -n "$PKG_CONFIG"; then
6135
    if test -n "$PKG_CONFIG" && \
6136
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
6137
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
6138
  ac_status=$?
6139
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6140
  test $ac_status = 0; }; then
6141
  pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
6142
		      test "x$?" != "x0" && pkg_failed=yes
6143
else
6144
  pkg_failed=yes
6145
fi
6146
 else
6147
    pkg_failed=untried
6148
fi
6149

    
6150

    
6151

    
6152
if test $pkg_failed = yes; then
6153
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6154
$as_echo "no" >&6; }
6155

    
6156
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6157
        _pkg_short_errors_supported=yes
6158
else
6159
        _pkg_short_errors_supported=no
6160
fi
6161
        if test $_pkg_short_errors_supported = yes; then
6162
	        JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
6163
        else
6164
	        JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
6165
        fi
6166
	# Put the nasty error message in config.log where it belongs
6167
	echo "$JACK_PKG_ERRORS" >&5
6168

    
6169
	{ $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
6170
$as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
6171
elif test $pkg_failed = untried; then
6172
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6173
$as_echo "no" >&6; }
6174
	{ $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
6175
$as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
6176
else
6177
	JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
6178
	JACK_LIBS=$pkg_cv_JACK_LIBS
6179
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6180
$as_echo "yes" >&6; }
6181
	HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $JACK_CFLAGS";LIBS="$LIBS $JACK_LIBS";SV_MODULE_FAILED=""
6182
fi
6183
fi
6184
if test -n "$SV_MODULE_FAILED"; then
6185
   as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
6186
ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
6187
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6188
  HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""
6189
else
6190
  { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5
6191
$as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;}
6192
fi
6193

    
6194

    
6195
   if test -z "$SV_MODULE_FAILED"; then
6196
      if test -n "$SV_MODULE_LIB"; then
6197
           as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
6198
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
6199
$as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
6200
if eval \${$as_ac_Lib+:} false; then :
6201
  $as_echo_n "(cached) " >&6
6202
else
6203
  ac_check_lib_save_LIBS=$LIBS
6204
LIBS="-l$SV_MODULE_LIB  $LIBS"
6205
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6206
/* end confdefs.h.  */
6207

    
6208
/* Override any GCC internal prototype to avoid an error.
6209
   Use char because int might match the return type of a GCC
6210
   builtin and then its argument prototype would still apply.  */
6211
#ifdef __cplusplus
6212
extern "C"
6213
#endif
6214
char $SV_MODULE_FUNC ();
6215
int
6216
main ()
6217
{
6218
return $SV_MODULE_FUNC ();
6219
  ;
6220
  return 0;
6221
}
6222
_ACEOF
6223
if ac_fn_cxx_try_link "$LINENO"; then :
6224
  eval "$as_ac_Lib=yes"
6225
else
6226
  eval "$as_ac_Lib=no"
6227
fi
6228
rm -f core conftest.err conftest.$ac_objext \
6229
    conftest$ac_exeext conftest.$ac_ext
6230
LIBS=$ac_check_lib_save_LIBS
6231
fi
6232
eval ac_res=\$$as_ac_Lib
6233
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6234
$as_echo "$ac_res" >&6; }
6235
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6236
  LIBS="$LIBS -l$SV_MODULE_LIB"
6237
else
6238
  { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5
6239
$as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;}
6240
fi
6241

    
6242
      fi
6243
   fi
6244
fi
6245

    
6246

    
6247
SV_MODULE_MODULE=libpulse
6248
SV_MODULE_VERSION_TEST="libpulse >= 0.9"
6249
SV_MODULE_HEADER=pulse/pulseaudio.h
6250
SV_MODULE_LIB=pulse
6251
SV_MODULE_FUNC=pa_stream_new
6252
SV_MODULE_HAVE=HAVE_$(echo libpulse | tr 'a-z' 'A-Z')
6253
SV_MODULE_FAILED=1
6254
if test -n "$libpulse_LIBS" ; then
6255
   { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
6256
$as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
6257
   CXXFLAGS="$CXXFLAGS $libpulse_CFLAGS"
6258
   LIBS="$LIBS $libpulse_LIBS"
6259
   SV_MODULE_FAILED=""
6260
fi
6261
if test -z "$SV_MODULE_VERSION_TEST" ; then
6262
   SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
6263
fi
6264
if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
6265

    
6266
pkg_failed=no
6267
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_VERSION_TEST" >&5
6268
$as_echo_n "checking for $SV_MODULE_VERSION_TEST... " >&6; }
6269

    
6270
if test -n "$libpulse_CFLAGS"; then
6271
    pkg_cv_libpulse_CFLAGS="$libpulse_CFLAGS"
6272
 elif test -n "$PKG_CONFIG"; then
6273
    if test -n "$PKG_CONFIG" && \
6274
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
6275
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
6276
  ac_status=$?
6277
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6278
  test $ac_status = 0; }; then
6279
  pkg_cv_libpulse_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
6280
		      test "x$?" != "x0" && pkg_failed=yes
6281
else
6282
  pkg_failed=yes
6283
fi
6284
 else
6285
    pkg_failed=untried
6286
fi
6287
if test -n "$libpulse_LIBS"; then
6288
    pkg_cv_libpulse_LIBS="$libpulse_LIBS"
6289
 elif test -n "$PKG_CONFIG"; then
6290
    if test -n "$PKG_CONFIG" && \
6291
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
6292
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
6293
  ac_status=$?
6294
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6295
  test $ac_status = 0; }; then
6296
  pkg_cv_libpulse_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
6297
		      test "x$?" != "x0" && pkg_failed=yes
6298
else
6299
  pkg_failed=yes
6300
fi
6301
 else
6302
    pkg_failed=untried
6303
fi
6304

    
6305

    
6306

    
6307
if test $pkg_failed = yes; then
6308
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6309
$as_echo "no" >&6; }
6310

    
6311
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6312
        _pkg_short_errors_supported=yes
6313
else
6314
        _pkg_short_errors_supported=no
6315
fi
6316
        if test $_pkg_short_errors_supported = yes; then
6317
	        libpulse_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
6318
        else
6319
	        libpulse_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
6320
        fi
6321
	# Put the nasty error message in config.log where it belongs
6322
	echo "$libpulse_PKG_ERRORS" >&5
6323

    
6324
	{ $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
6325
$as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
6326
elif test $pkg_failed = untried; then
6327
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6328
$as_echo "no" >&6; }
6329
	{ $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
6330
$as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
6331
else
6332
	libpulse_CFLAGS=$pkg_cv_libpulse_CFLAGS
6333
	libpulse_LIBS=$pkg_cv_libpulse_LIBS
6334
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6335
$as_echo "yes" >&6; }
6336
	HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $libpulse_CFLAGS";LIBS="$LIBS $libpulse_LIBS";SV_MODULE_FAILED=""
6337
fi
6338
fi
6339
if test -n "$SV_MODULE_FAILED"; then
6340
   as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
6341
ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
6342
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6343
  HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""
6344
else
6345
  { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5
6346
$as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;}
6347
fi
6348

    
6349

    
6350
   if test -z "$SV_MODULE_FAILED"; then
6351
      if test -n "$SV_MODULE_LIB"; then
6352
           as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
6353
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
6354
$as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
6355
if eval \${$as_ac_Lib+:} false; then :
6356
  $as_echo_n "(cached) " >&6
6357
else
6358
  ac_check_lib_save_LIBS=$LIBS
6359
LIBS="-l$SV_MODULE_LIB  $LIBS"
6360
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6361
/* end confdefs.h.  */
6362

    
6363
/* Override any GCC internal prototype to avoid an error.
6364
   Use char because int might match the return type of a GCC
6365
   builtin and then its argument prototype would still apply.  */
6366
#ifdef __cplusplus
6367
extern "C"
6368
#endif
6369
char $SV_MODULE_FUNC ();
6370
int
6371
main ()
6372
{
6373
return $SV_MODULE_FUNC ();
6374
  ;
6375
  return 0;
6376
}
6377
_ACEOF
6378
if ac_fn_cxx_try_link "$LINENO"; then :
6379
  eval "$as_ac_Lib=yes"
6380
else
6381
  eval "$as_ac_Lib=no"
6382
fi
6383
rm -f core conftest.err conftest.$ac_objext \
6384
    conftest$ac_exeext conftest.$ac_ext
6385
LIBS=$ac_check_lib_save_LIBS
6386
fi
6387
eval ac_res=\$$as_ac_Lib
6388
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6389
$as_echo "$ac_res" >&6; }
6390
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6391
  LIBS="$LIBS -l$SV_MODULE_LIB"
6392
else
6393
  { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5
6394
$as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;}
6395
fi
6396

    
6397
      fi
6398
   fi
6399
fi
6400

    
6401

    
6402
SV_MODULE_MODULE=lrdf
6403
SV_MODULE_VERSION_TEST="lrdf >= 0.2"
6404
SV_MODULE_HEADER=lrdf.h
6405
SV_MODULE_LIB=lrdf
6406
SV_MODULE_FUNC=lrdf_init
6407
SV_MODULE_HAVE=HAVE_$(echo lrdf | tr 'a-z' 'A-Z')
6408
SV_MODULE_FAILED=1
6409
if test -n "$lrdf_LIBS" ; then
6410
   { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
6411
$as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
6412
   CXXFLAGS="$CXXFLAGS $lrdf_CFLAGS"
6413
   LIBS="$LIBS $lrdf_LIBS"
6414
   SV_MODULE_FAILED=""
6415
fi
6416
if test -z "$SV_MODULE_VERSION_TEST" ; then
6417
   SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
6418
fi
6419
if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
6420

    
6421
pkg_failed=no
6422
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_VERSION_TEST" >&5
6423
$as_echo_n "checking for $SV_MODULE_VERSION_TEST... " >&6; }
6424

    
6425
if test -n "$lrdf_CFLAGS"; then
6426
    pkg_cv_lrdf_CFLAGS="$lrdf_CFLAGS"
6427
 elif test -n "$PKG_CONFIG"; then
6428
    if test -n "$PKG_CONFIG" && \
6429
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
6430
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
6431
  ac_status=$?
6432
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6433
  test $ac_status = 0; }; then
6434
  pkg_cv_lrdf_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
6435
		      test "x$?" != "x0" && pkg_failed=yes
6436
else
6437
  pkg_failed=yes
6438
fi
6439
 else
6440
    pkg_failed=untried
6441
fi
6442
if test -n "$lrdf_LIBS"; then
6443
    pkg_cv_lrdf_LIBS="$lrdf_LIBS"
6444
 elif test -n "$PKG_CONFIG"; then
6445
    if test -n "$PKG_CONFIG" && \
6446
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
6447
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
6448
  ac_status=$?
6449
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6450
  test $ac_status = 0; }; then
6451
  pkg_cv_lrdf_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
6452
		      test "x$?" != "x0" && pkg_failed=yes
6453
else
6454
  pkg_failed=yes
6455
fi
6456
 else
6457
    pkg_failed=untried
6458
fi
6459

    
6460

    
6461

    
6462
if test $pkg_failed = yes; then
6463
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6464
$as_echo "no" >&6; }
6465

    
6466
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6467
        _pkg_short_errors_supported=yes
6468
else
6469
        _pkg_short_errors_supported=no
6470
fi
6471
        if test $_pkg_short_errors_supported = yes; then
6472
	        lrdf_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
6473
        else
6474
	        lrdf_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
6475
        fi
6476
	# Put the nasty error message in config.log where it belongs
6477
	echo "$lrdf_PKG_ERRORS" >&5
6478

    
6479
	{ $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
6480
$as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
6481
elif test $pkg_failed = untried; then
6482
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6483
$as_echo "no" >&6; }
6484
	{ $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
6485
$as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
6486
else
6487
	lrdf_CFLAGS=$pkg_cv_lrdf_CFLAGS
6488
	lrdf_LIBS=$pkg_cv_lrdf_LIBS
6489
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6490
$as_echo "yes" >&6; }
6491
	HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $lrdf_CFLAGS";LIBS="$LIBS $lrdf_LIBS";SV_MODULE_FAILED=""
6492
fi
6493
fi
6494
if test -n "$SV_MODULE_FAILED"; then
6495
   as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
6496
ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
6497
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6498
  HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""
6499
else
6500
  { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5
6501
$as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;}
6502
fi
6503

    
6504

    
6505
   if test -z "$SV_MODULE_FAILED"; then
6506
      if test -n "$SV_MODULE_LIB"; then
6507
           as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
6508
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
6509
$as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
6510
if eval \${$as_ac_Lib+:} false; then :
6511
  $as_echo_n "(cached) " >&6
6512
else
6513
  ac_check_lib_save_LIBS=$LIBS
6514
LIBS="-l$SV_MODULE_LIB  $LIBS"
6515
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6516
/* end confdefs.h.  */
6517

    
6518
/* Override any GCC internal prototype to avoid an error.
6519
   Use char because int might match the return type of a GCC
6520
   builtin and then its argument prototype would still apply.  */
6521
#ifdef __cplusplus
6522
extern "C"
6523
#endif
6524
char $SV_MODULE_FUNC ();
6525
int
6526
main ()
6527
{
6528
return $SV_MODULE_FUNC ();
6529
  ;
6530
  return 0;
6531
}
6532
_ACEOF
6533
if ac_fn_cxx_try_link "$LINENO"; then :
6534
  eval "$as_ac_Lib=yes"
6535
else
6536
  eval "$as_ac_Lib=no"
6537
fi
6538
rm -f core conftest.err conftest.$ac_objext \
6539
    conftest$ac_exeext conftest.$ac_ext
6540
LIBS=$ac_check_lib_save_LIBS
6541
fi
6542
eval ac_res=\$$as_ac_Lib
6543
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6544
$as_echo "$ac_res" >&6; }
6545
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6546
  LIBS="$LIBS -l$SV_MODULE_LIB"
6547
else
6548
  { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5
6549
$as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;}
6550
fi
6551

    
6552
      fi
6553
   fi
6554
fi
6555

    
6556

    
6557
SV_MODULE_MODULE=oggz
6558
SV_MODULE_VERSION_TEST="oggz >= 1.0.0"
6559
SV_MODULE_HEADER=oggz/oggz.h
6560
SV_MODULE_LIB=oggz
6561
SV_MODULE_FUNC=oggz_run
6562
SV_MODULE_HAVE=HAVE_$(echo oggz | tr 'a-z' 'A-Z')
6563
SV_MODULE_FAILED=1
6564
if test -n "$oggz_LIBS" ; then
6565
   { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
6566
$as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
6567
   CXXFLAGS="$CXXFLAGS $oggz_CFLAGS"
6568
   LIBS="$LIBS $oggz_LIBS"
6569
   SV_MODULE_FAILED=""
6570
fi
6571
if test -z "$SV_MODULE_VERSION_TEST" ; then
6572
   SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
6573
fi
6574
if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
6575

    
6576
pkg_failed=no
6577
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_VERSION_TEST" >&5
6578
$as_echo_n "checking for $SV_MODULE_VERSION_TEST... " >&6; }
6579

    
6580
if test -n "$oggz_CFLAGS"; then
6581
    pkg_cv_oggz_CFLAGS="$oggz_CFLAGS"
6582
 elif test -n "$PKG_CONFIG"; then
6583
    if test -n "$PKG_CONFIG" && \
6584
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
6585
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
6586
  ac_status=$?
6587
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6588
  test $ac_status = 0; }; then
6589
  pkg_cv_oggz_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
6590
		      test "x$?" != "x0" && pkg_failed=yes
6591
else
6592
  pkg_failed=yes
6593
fi
6594
 else
6595
    pkg_failed=untried
6596
fi
6597
if test -n "$oggz_LIBS"; then
6598
    pkg_cv_oggz_LIBS="$oggz_LIBS"
6599
 elif test -n "$PKG_CONFIG"; then
6600
    if test -n "$PKG_CONFIG" && \
6601
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
6602
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
6603
  ac_status=$?
6604
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6605
  test $ac_status = 0; }; then
6606
  pkg_cv_oggz_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
6607
		      test "x$?" != "x0" && pkg_failed=yes
6608
else
6609
  pkg_failed=yes
6610
fi
6611
 else
6612
    pkg_failed=untried
6613
fi
6614

    
6615

    
6616

    
6617
if test $pkg_failed = yes; then
6618
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6619
$as_echo "no" >&6; }
6620

    
6621
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6622
        _pkg_short_errors_supported=yes
6623
else
6624
        _pkg_short_errors_supported=no
6625
fi
6626
        if test $_pkg_short_errors_supported = yes; then
6627
	        oggz_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
6628
        else
6629
	        oggz_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
6630
        fi
6631
	# Put the nasty error message in config.log where it belongs
6632
	echo "$oggz_PKG_ERRORS" >&5
6633

    
6634
	{ $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
6635
$as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
6636
elif test $pkg_failed = untried; then
6637
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6638
$as_echo "no" >&6; }
6639
	{ $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
6640
$as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
6641
else
6642
	oggz_CFLAGS=$pkg_cv_oggz_CFLAGS
6643
	oggz_LIBS=$pkg_cv_oggz_LIBS
6644
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6645
$as_echo "yes" >&6; }
6646
	HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $oggz_CFLAGS";LIBS="$LIBS $oggz_LIBS";SV_MODULE_FAILED=""
6647
fi
6648
fi
6649
if test -n "$SV_MODULE_FAILED"; then
6650
   as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
6651
ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
6652
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6653
  HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""
6654
else
6655
  { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5
6656
$as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;}
6657
fi
6658

    
6659

    
6660
   if test -z "$SV_MODULE_FAILED"; then
6661
      if test -n "$SV_MODULE_LIB"; then
6662
           as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
6663
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
6664
$as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
6665
if eval \${$as_ac_Lib+:} false; then :
6666
  $as_echo_n "(cached) " >&6
6667
else
6668
  ac_check_lib_save_LIBS=$LIBS
6669
LIBS="-l$SV_MODULE_LIB  $LIBS"
6670
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6671
/* end confdefs.h.  */
6672

    
6673
/* Override any GCC internal prototype to avoid an error.
6674
   Use char because int might match the return type of a GCC
6675
   builtin and then its argument prototype would still apply.  */
6676
#ifdef __cplusplus
6677
extern "C"
6678
#endif
6679
char $SV_MODULE_FUNC ();
6680
int
6681
main ()
6682
{
6683
return $SV_MODULE_FUNC ();
6684
  ;
6685
  return 0;
6686
}
6687
_ACEOF
6688
if ac_fn_cxx_try_link "$LINENO"; then :
6689
  eval "$as_ac_Lib=yes"
6690
else
6691
  eval "$as_ac_Lib=no"
6692
fi
6693
rm -f core conftest.err conftest.$ac_objext \
6694
    conftest$ac_exeext conftest.$ac_ext
6695
LIBS=$ac_check_lib_save_LIBS
6696
fi
6697
eval ac_res=\$$as_ac_Lib
6698
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6699
$as_echo "$ac_res" >&6; }
6700
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6701
  LIBS="$LIBS -l$SV_MODULE_LIB"
6702
else
6703
  { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5
6704
$as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;}
6705
fi
6706

    
6707
      fi
6708
   fi
6709
fi
6710

    
6711

    
6712
SV_MODULE_MODULE=fishsound
6713
SV_MODULE_VERSION_TEST="fishsound >= 1.0.0"
6714
SV_MODULE_HEADER=fishsound/fishsound.h
6715
SV_MODULE_LIB=fishsound
6716
SV_MODULE_FUNC=fish_sound_new
6717
SV_MODULE_HAVE=HAVE_$(echo fishsound | tr 'a-z' 'A-Z')
6718
SV_MODULE_FAILED=1
6719
if test -n "$fishsound_LIBS" ; then
6720
   { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
6721
$as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
6722
   CXXFLAGS="$CXXFLAGS $fishsound_CFLAGS"
6723
   LIBS="$LIBS $fishsound_LIBS"
6724
   SV_MODULE_FAILED=""
6725
fi
6726
if test -z "$SV_MODULE_VERSION_TEST" ; then
6727
   SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
6728
fi
6729
if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
6730

    
6731
pkg_failed=no
6732
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_VERSION_TEST" >&5
6733
$as_echo_n "checking for $SV_MODULE_VERSION_TEST... " >&6; }
6734

    
6735
if test -n "$fishsound_CFLAGS"; then
6736
    pkg_cv_fishsound_CFLAGS="$fishsound_CFLAGS"
6737
 elif test -n "$PKG_CONFIG"; then
6738
    if test -n "$PKG_CONFIG" && \
6739
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
6740
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
6741
  ac_status=$?
6742
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6743
  test $ac_status = 0; }; then
6744
  pkg_cv_fishsound_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
6745
		      test "x$?" != "x0" && pkg_failed=yes
6746
else
6747
  pkg_failed=yes
6748
fi
6749
 else
6750
    pkg_failed=untried
6751
fi
6752
if test -n "$fishsound_LIBS"; then
6753
    pkg_cv_fishsound_LIBS="$fishsound_LIBS"
6754
 elif test -n "$PKG_CONFIG"; then
6755
    if test -n "$PKG_CONFIG" && \
6756
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
6757
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
6758
  ac_status=$?
6759
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6760
  test $ac_status = 0; }; then
6761
  pkg_cv_fishsound_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
6762
		      test "x$?" != "x0" && pkg_failed=yes
6763
else
6764
  pkg_failed=yes
6765
fi
6766
 else
6767
    pkg_failed=untried
6768
fi
6769

    
6770

    
6771

    
6772
if test $pkg_failed = yes; then
6773
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6774
$as_echo "no" >&6; }
6775

    
6776
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6777
        _pkg_short_errors_supported=yes
6778
else
6779
        _pkg_short_errors_supported=no
6780
fi
6781
        if test $_pkg_short_errors_supported = yes; then
6782
	        fishsound_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
6783
        else
6784
	        fishsound_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
6785
        fi
6786
	# Put the nasty error message in config.log where it belongs
6787
	echo "$fishsound_PKG_ERRORS" >&5
6788

    
6789
	{ $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
6790
$as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
6791
elif test $pkg_failed = untried; then
6792
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6793
$as_echo "no" >&6; }
6794
	{ $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
6795
$as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
6796
else
6797
	fishsound_CFLAGS=$pkg_cv_fishsound_CFLAGS
6798
	fishsound_LIBS=$pkg_cv_fishsound_LIBS
6799
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6800
$as_echo "yes" >&6; }
6801
	HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $fishsound_CFLAGS";LIBS="$LIBS $fishsound_LIBS";SV_MODULE_FAILED=""
6802
fi
6803
fi
6804
if test -n "$SV_MODULE_FAILED"; then
6805
   as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
6806
ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
6807
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6808
  HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""
6809
else
6810
  { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5
6811
$as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;}
6812
fi
6813

    
6814

    
6815
   if test -z "$SV_MODULE_FAILED"; then
6816
      if test -n "$SV_MODULE_LIB"; then
6817
           as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
6818
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
6819
$as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
6820
if eval \${$as_ac_Lib+:} false; then :
6821
  $as_echo_n "(cached) " >&6
6822
else
6823
  ac_check_lib_save_LIBS=$LIBS
6824
LIBS="-l$SV_MODULE_LIB  $LIBS"
6825
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6826
/* end confdefs.h.  */
6827

    
6828
/* Override any GCC internal prototype to avoid an error.
6829
   Use char because int might match the return type of a GCC
6830
   builtin and then its argument prototype would still apply.  */
6831
#ifdef __cplusplus
6832
extern "C"
6833
#endif
6834
char $SV_MODULE_FUNC ();
6835
int
6836
main ()
6837
{
6838
return $SV_MODULE_FUNC ();
6839
  ;
6840
  return 0;
6841
}
6842
_ACEOF
6843
if ac_fn_cxx_try_link "$LINENO"; then :
6844
  eval "$as_ac_Lib=yes"
6845
else
6846
  eval "$as_ac_Lib=no"
6847
fi
6848
rm -f core conftest.err conftest.$ac_objext \
6849
    conftest$ac_exeext conftest.$ac_ext
6850
LIBS=$ac_check_lib_save_LIBS
6851
fi
6852
eval ac_res=\$$as_ac_Lib
6853
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6854
$as_echo "$ac_res" >&6; }
6855
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6856
  LIBS="$LIBS -l$SV_MODULE_LIB"
6857
else
6858
  { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5
6859
$as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;}
6860
fi
6861

    
6862
      fi
6863
   fi
6864
fi
6865

    
6866

    
6867
SV_MODULE_MODULE=mad
6868
SV_MODULE_VERSION_TEST="mad >= 0.15.0"
6869
SV_MODULE_HEADER=mad.h
6870
SV_MODULE_LIB=mad
6871
SV_MODULE_FUNC=mad_decoder_init
6872
SV_MODULE_HAVE=HAVE_$(echo mad | tr 'a-z' 'A-Z')
6873
SV_MODULE_FAILED=1
6874
if test -n "$mad_LIBS" ; then
6875
   { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
6876
$as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
6877
   CXXFLAGS="$CXXFLAGS $mad_CFLAGS"
6878
   LIBS="$LIBS $mad_LIBS"
6879
   SV_MODULE_FAILED=""
6880
fi
6881
if test -z "$SV_MODULE_VERSION_TEST" ; then
6882
   SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
6883
fi
6884
if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
6885

    
6886
pkg_failed=no
6887
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_VERSION_TEST" >&5
6888
$as_echo_n "checking for $SV_MODULE_VERSION_TEST... " >&6; }
6889

    
6890
if test -n "$mad_CFLAGS"; then
6891
    pkg_cv_mad_CFLAGS="$mad_CFLAGS"
6892
 elif test -n "$PKG_CONFIG"; then
6893
    if test -n "$PKG_CONFIG" && \
6894
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
6895
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
6896
  ac_status=$?
6897
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6898
  test $ac_status = 0; }; then
6899
  pkg_cv_mad_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
6900
		      test "x$?" != "x0" && pkg_failed=yes
6901
else
6902
  pkg_failed=yes
6903
fi
6904
 else
6905
    pkg_failed=untried
6906
fi
6907
if test -n "$mad_LIBS"; then
6908
    pkg_cv_mad_LIBS="$mad_LIBS"
6909
 elif test -n "$PKG_CONFIG"; then
6910
    if test -n "$PKG_CONFIG" && \
6911
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
6912
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
6913
  ac_status=$?
6914
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6915
  test $ac_status = 0; }; then
6916
  pkg_cv_mad_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
6917
		      test "x$?" != "x0" && pkg_failed=yes
6918
else
6919
  pkg_failed=yes
6920
fi
6921
 else
6922
    pkg_failed=untried
6923
fi
6924

    
6925

    
6926

    
6927
if test $pkg_failed = yes; then
6928
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6929
$as_echo "no" >&6; }
6930

    
6931
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6932
        _pkg_short_errors_supported=yes
6933
else
6934
        _pkg_short_errors_supported=no
6935
fi
6936
        if test $_pkg_short_errors_supported = yes; then
6937
	        mad_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
6938
        else
6939
	        mad_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
6940
        fi
6941
	# Put the nasty error message in config.log where it belongs
6942
	echo "$mad_PKG_ERRORS" >&5
6943

    
6944
	{ $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
6945
$as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
6946
elif test $pkg_failed = untried; then
6947
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6948
$as_echo "no" >&6; }
6949
	{ $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
6950
$as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
6951
else
6952
	mad_CFLAGS=$pkg_cv_mad_CFLAGS
6953
	mad_LIBS=$pkg_cv_mad_LIBS
6954
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6955
$as_echo "yes" >&6; }
6956
	HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $mad_CFLAGS";LIBS="$LIBS $mad_LIBS";SV_MODULE_FAILED=""
6957
fi
6958
fi
6959
if test -n "$SV_MODULE_FAILED"; then
6960
   as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
6961
ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
6962
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6963
  HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""
6964
else
6965
  { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5
6966
$as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;}
6967
fi
6968

    
6969

    
6970
   if test -z "$SV_MODULE_FAILED"; then
6971
      if test -n "$SV_MODULE_LIB"; then
6972
           as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
6973
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
6974
$as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
6975
if eval \${$as_ac_Lib+:} false; then :
6976
  $as_echo_n "(cached) " >&6
6977
else
6978
  ac_check_lib_save_LIBS=$LIBS
6979
LIBS="-l$SV_MODULE_LIB  $LIBS"
6980
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6981
/* end confdefs.h.  */
6982

    
6983
/* Override any GCC internal prototype to avoid an error.
6984
   Use char because int might match the return type of a GCC
6985
   builtin and then its argument prototype would still apply.  */
6986
#ifdef __cplusplus
6987
extern "C"
6988
#endif
6989
char $SV_MODULE_FUNC ();
6990
int
6991
main ()
6992
{
6993
return $SV_MODULE_FUNC ();
6994
  ;
6995
  return 0;
6996
}
6997
_ACEOF
6998
if ac_fn_cxx_try_link "$LINENO"; then :
6999
  eval "$as_ac_Lib=yes"
7000
else
7001
  eval "$as_ac_Lib=no"
7002
fi
7003
rm -f core conftest.err conftest.$ac_objext \
7004
    conftest$ac_exeext conftest.$ac_ext
7005
LIBS=$ac_check_lib_save_LIBS
7006
fi
7007
eval ac_res=\$$as_ac_Lib
7008
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7009
$as_echo "$ac_res" >&6; }
7010
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7011
  LIBS="$LIBS -l$SV_MODULE_LIB"
7012
else
7013
  { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5
7014
$as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;}
7015
fi
7016

    
7017
      fi
7018
   fi
7019
fi
7020

    
7021

    
7022
SV_MODULE_MODULE=id3tag
7023
SV_MODULE_VERSION_TEST="id3tag >= 0.15.0"
7024
SV_MODULE_HEADER=id3tag.h
7025
SV_MODULE_LIB=id3tag
7026
SV_MODULE_FUNC=id3_tag_new
7027
SV_MODULE_HAVE=HAVE_$(echo id3tag | tr 'a-z' 'A-Z')
7028
SV_MODULE_FAILED=1
7029
if test -n "$id3tag_LIBS" ; then
7030
   { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
7031
$as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
7032
   CXXFLAGS="$CXXFLAGS $id3tag_CFLAGS"
7033
   LIBS="$LIBS $id3tag_LIBS"
7034
   SV_MODULE_FAILED=""
7035
fi
7036
if test -z "$SV_MODULE_VERSION_TEST" ; then
7037
   SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
7038
fi
7039
if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
7040

    
7041
pkg_failed=no
7042
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_VERSION_TEST" >&5
7043
$as_echo_n "checking for $SV_MODULE_VERSION_TEST... " >&6; }
7044

    
7045
if test -n "$id3tag_CFLAGS"; then
7046
    pkg_cv_id3tag_CFLAGS="$id3tag_CFLAGS"
7047
 elif test -n "$PKG_CONFIG"; then
7048
    if test -n "$PKG_CONFIG" && \
7049
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
7050
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
7051
  ac_status=$?
7052
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7053
  test $ac_status = 0; }; then
7054
  pkg_cv_id3tag_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
7055
		      test "x$?" != "x0" && pkg_failed=yes
7056
else
7057
  pkg_failed=yes
7058
fi
7059
 else
7060
    pkg_failed=untried
7061
fi
7062
if test -n "$id3tag_LIBS"; then
7063
    pkg_cv_id3tag_LIBS="$id3tag_LIBS"
7064
 elif test -n "$PKG_CONFIG"; then
7065
    if test -n "$PKG_CONFIG" && \
7066
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
7067
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
7068
  ac_status=$?
7069
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7070
  test $ac_status = 0; }; then
7071
  pkg_cv_id3tag_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
7072
		      test "x$?" != "x0" && pkg_failed=yes
7073
else
7074
  pkg_failed=yes
7075
fi
7076
 else
7077
    pkg_failed=untried
7078
fi
7079

    
7080

    
7081

    
7082
if test $pkg_failed = yes; then
7083
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7084
$as_echo "no" >&6; }
7085

    
7086
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7087
        _pkg_short_errors_supported=yes
7088
else
7089
        _pkg_short_errors_supported=no
7090
fi
7091
        if test $_pkg_short_errors_supported = yes; then
7092
	        id3tag_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
7093
        else
7094
	        id3tag_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
7095
        fi
7096
	# Put the nasty error message in config.log where it belongs
7097
	echo "$id3tag_PKG_ERRORS" >&5
7098

    
7099
	{ $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
7100
$as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
7101
elif test $pkg_failed = untried; then
7102
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7103
$as_echo "no" >&6; }
7104
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
7105
$as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
7106
else
7107
	id3tag_CFLAGS=$pkg_cv_id3tag_CFLAGS
7108
	id3tag_LIBS=$pkg_cv_id3tag_LIBS
7109
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7110
$as_echo "yes" >&6; }
7111
	HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $id3tag_CFLAGS";LIBS="$LIBS $id3tag_LIBS";SV_MODULE_FAILED=""
7112
fi
7113
fi
7114
if test -n "$SV_MODULE_FAILED"; then
7115
   as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
7116
ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
7117
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7118
  HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""
7119
else
7120
  { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5
7121
$as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;}
7122
fi
7123

    
7124

    
7125
   if test -z "$SV_MODULE_FAILED"; then
7126
      if test -n "$SV_MODULE_LIB"; then
7127
           as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
7128
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
7129
$as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
7130
if eval \${$as_ac_Lib+:} false; then :
7131
  $as_echo_n "(cached) " >&6
7132
else
7133
  ac_check_lib_save_LIBS=$LIBS
7134
LIBS="-l$SV_MODULE_LIB  $LIBS"
7135
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7136
/* end confdefs.h.  */
7137

    
7138
/* Override any GCC internal prototype to avoid an error.
7139
   Use char because int might match the return type of a GCC
7140
   builtin and then its argument prototype would still apply.  */
7141
#ifdef __cplusplus
7142
extern "C"
7143
#endif
7144
char $SV_MODULE_FUNC ();
7145
int
7146
main ()
7147
{
7148
return $SV_MODULE_FUNC ();
7149
  ;
7150
  return 0;
7151
}
7152
_ACEOF
7153
if ac_fn_cxx_try_link "$LINENO"; then :
7154
  eval "$as_ac_Lib=yes"
7155
else
7156
  eval "$as_ac_Lib=no"
7157
fi
7158
rm -f core conftest.err conftest.$ac_objext \
7159
    conftest$ac_exeext conftest.$ac_ext
7160
LIBS=$ac_check_lib_save_LIBS
7161
fi
7162
eval ac_res=\$$as_ac_Lib
7163
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7164
$as_echo "$ac_res" >&6; }
7165
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7166
  LIBS="$LIBS -l$SV_MODULE_LIB"
7167
else
7168
  { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5
7169
$as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;}
7170
fi
7171

    
7172
      fi
7173
   fi
7174
fi
7175

    
7176

    
7177
# Link in -lX11 if it exists -- this is for the X error handler
7178

    
7179
SV_MODULE_MODULE=X11
7180
SV_MODULE_VERSION_TEST="x11 >= 1.0.0"
7181
SV_MODULE_HEADER=X11/X.h
7182
SV_MODULE_LIB=x11
7183
SV_MODULE_FUNC=XGetErrorText
7184
SV_MODULE_HAVE=HAVE_$(echo X11 | tr 'a-z' 'A-Z')
7185
SV_MODULE_FAILED=1
7186
if test -n "$X11_LIBS" ; then
7187
   { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
7188
$as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
7189
   CXXFLAGS="$CXXFLAGS $X11_CFLAGS"
7190
   LIBS="$LIBS $X11_LIBS"
7191
   SV_MODULE_FAILED=""
7192
fi
7193
if test -z "$SV_MODULE_VERSION_TEST" ; then
7194
   SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
7195
fi
7196
if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
7197

    
7198
pkg_failed=no
7199
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_VERSION_TEST" >&5
7200
$as_echo_n "checking for $SV_MODULE_VERSION_TEST... " >&6; }
7201

    
7202
if test -n "$X11_CFLAGS"; then
7203
    pkg_cv_X11_CFLAGS="$X11_CFLAGS"
7204
 elif test -n "$PKG_CONFIG"; then
7205
    if test -n "$PKG_CONFIG" && \
7206
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
7207
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
7208
  ac_status=$?
7209
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7210
  test $ac_status = 0; }; then
7211
  pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
7212
		      test "x$?" != "x0" && pkg_failed=yes
7213
else
7214
  pkg_failed=yes
7215
fi
7216
 else
7217
    pkg_failed=untried
7218
fi
7219
if test -n "$X11_LIBS"; then
7220
    pkg_cv_X11_LIBS="$X11_LIBS"
7221
 elif test -n "$PKG_CONFIG"; then
7222
    if test -n "$PKG_CONFIG" && \
7223
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
7224
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
7225
  ac_status=$?
7226
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7227
  test $ac_status = 0; }; then
7228
  pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
7229
		      test "x$?" != "x0" && pkg_failed=yes
7230
else
7231
  pkg_failed=yes
7232
fi
7233
 else
7234
    pkg_failed=untried
7235
fi
7236

    
7237

    
7238

    
7239
if test $pkg_failed = yes; then
7240
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7241
$as_echo "no" >&6; }
7242

    
7243
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7244
        _pkg_short_errors_supported=yes
7245
else
7246
        _pkg_short_errors_supported=no
7247
fi
7248
        if test $_pkg_short_errors_supported = yes; then
7249
	        X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
7250
        else
7251
	        X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
7252
        fi
7253
	# Put the nasty error message in config.log where it belongs
7254
	echo "$X11_PKG_ERRORS" >&5
7255

    
7256
	{ $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
7257
$as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
7258
elif test $pkg_failed = untried; then
7259
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7260
$as_echo "no" >&6; }
7261
	{ $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
7262
$as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
7263
else
7264
	X11_CFLAGS=$pkg_cv_X11_CFLAGS
7265
	X11_LIBS=$pkg_cv_X11_LIBS
7266
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7267
$as_echo "yes" >&6; }
7268
	HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $X11_CFLAGS";LIBS="$LIBS $X11_LIBS";SV_MODULE_FAILED=""
7269
fi
7270
fi
7271
if test -n "$SV_MODULE_FAILED"; then
7272
   as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
7273
ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
7274
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7275
  HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""
7276
else
7277
  { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5
7278
$as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;}
7279
fi
7280

    
7281

    
7282
   if test -z "$SV_MODULE_FAILED"; then
7283
      if test -n "$SV_MODULE_LIB"; then
7284
           as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
7285
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
7286
$as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
7287
if eval \${$as_ac_Lib+:} false; then :
7288
  $as_echo_n "(cached) " >&6
7289
else
7290
  ac_check_lib_save_LIBS=$LIBS
7291
LIBS="-l$SV_MODULE_LIB  $LIBS"
7292
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7293
/* end confdefs.h.  */
7294

    
7295
/* Override any GCC internal prototype to avoid an error.
7296
   Use char because int might match the return type of a GCC
7297
   builtin and then its argument prototype would still apply.  */
7298
#ifdef __cplusplus
7299
extern "C"
7300
#endif
7301
char $SV_MODULE_FUNC ();
7302
int
7303
main ()
7304
{
7305
return $SV_MODULE_FUNC ();
7306
  ;
7307
  return 0;
7308
}
7309
_ACEOF
7310
if ac_fn_cxx_try_link "$LINENO"; then :
7311
  eval "$as_ac_Lib=yes"
7312
else
7313
  eval "$as_ac_Lib=no"
7314
fi
7315
rm -f core conftest.err conftest.$ac_objext \
7316
    conftest$ac_exeext conftest.$ac_ext
7317
LIBS=$ac_check_lib_save_LIBS
7318
fi
7319
eval ac_res=\$$as_ac_Lib
7320
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7321
$as_echo "$ac_res" >&6; }
7322
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7323
  LIBS="$LIBS -l$SV_MODULE_LIB"
7324
else
7325
  { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5
7326
$as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;}
7327
fi
7328

    
7329
      fi
7330
   fi
7331
fi
7332

    
7333

    
7334

    
7335

    
7336

    
7337

    
7338

    
7339

    
7340

    
7341

    
7342

    
7343

    
7344

    
7345

    
7346

    
7347

    
7348

    
7349

    
7350

    
7351

    
7352
ac_config_files="$ac_config_files config.pri"
7353

    
7354

    
7355
cat >confcache <<\_ACEOF
7356
# This file is a shell script that caches the results of configure
7357
# tests run on this system so they can be shared between configure
7358
# scripts and configure runs, see configure's option --config-cache.
7359
# It is not useful on other systems.  If it contains results you don't
7360
# want to keep, you may remove or edit it.
7361
#
7362
# config.status only pays attention to the cache file if you give it
7363
# the --recheck option to rerun configure.
7364
#
7365
# `ac_cv_env_foo' variables (set or unset) will be overridden when
7366
# loading this file, other *unset* `ac_cv_foo' will be assigned the
7367
# following values.
7368

    
7369
_ACEOF
7370

    
7371
# The following way of writing the cache mishandles newlines in values,
7372
# but we know of no workaround that is simple, portable, and efficient.
7373
# So, we kill variables containing newlines.
7374
# Ultrix sh set writes to stderr and can't be redirected directly,
7375
# and sets the high bit in the cache file unless we assign to the vars.
7376
(
7377
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7378
    eval ac_val=\$$ac_var
7379
    case $ac_val in #(
7380
    *${as_nl}*)
7381
      case $ac_var in #(
7382
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7383
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7384
      esac
7385
      case $ac_var in #(
7386
      _ | IFS | as_nl) ;; #(
7387
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7388
      *) { eval $ac_var=; unset $ac_var;} ;;
7389
      esac ;;
7390
    esac
7391
  done
7392

    
7393
  (set) 2>&1 |
7394
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
7395
    *${as_nl}ac_space=\ *)
7396
      # `set' does not quote correctly, so add quotes: double-quote
7397
      # substitution turns \\\\ into \\, and sed turns \\ into \.
7398
      sed -n \
7399
	"s/'/'\\\\''/g;
7400
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7401
      ;; #(
7402
    *)
7403
      # `set' quotes correctly as required by POSIX, so do not add quotes.
7404
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7405
      ;;
7406
    esac |
7407
    sort
7408
) |
7409
  sed '
7410
     /^ac_cv_env_/b end
7411
     t clear
7412
     :clear
7413
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7414
     t end
7415
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7416
     :end' >>confcache
7417
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7418
  if test -w "$cache_file"; then
7419
    if test "x$cache_file" != "x/dev/null"; then
7420
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7421
$as_echo "$as_me: updating cache $cache_file" >&6;}
7422
      if test ! -f "$cache_file" || test -h "$cache_file"; then
7423
	cat confcache >"$cache_file"
7424
      else
7425
        case $cache_file in #(
7426
        */* | ?:*)
7427
	  mv -f confcache "$cache_file"$$ &&
7428
	  mv -f "$cache_file"$$ "$cache_file" ;; #(
7429
        *)
7430
	  mv -f confcache "$cache_file" ;;
7431
	esac
7432
      fi
7433
    fi
7434
  else
7435
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7436
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7437
  fi
7438
fi
7439
rm -f confcache
7440

    
7441
test "x$prefix" = xNONE && prefix=$ac_default_prefix
7442
# Let make expand exec_prefix.
7443
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7444

    
7445
# Transform confdefs.h into DEFS.
7446
# Protect against shell expansion while executing Makefile rules.
7447
# Protect against Makefile macro expansion.
7448
#
7449
# If the first sed substitution is executed (which looks for macros that
7450
# take arguments), then branch to the quote section.  Otherwise,
7451
# look for a macro that doesn't take arguments.
7452
ac_script='
7453
:mline
7454
/\\$/{
7455
 N
7456
 s,\\\n,,
7457
 b mline
7458
}
7459
t clear
7460
:clear
7461
s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
7462
t quote
7463
s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
7464
t quote
7465
b any
7466
:quote
7467
s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
7468
s/\[/\\&/g
7469
s/\]/\\&/g
7470
s/\$/$$/g
7471
H
7472
:any
7473
${
7474
	g
7475
	s/^\n//
7476
	s/\n/ /g
7477
	p
7478
}
7479
'
7480
DEFS=`sed -n "$ac_script" confdefs.h`
7481

    
7482

    
7483
ac_libobjs=
7484
ac_ltlibobjs=
7485
U=
7486
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7487
  # 1. Remove the extension, and $U if already installed.
7488
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7489
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7490
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
7491
  #    will be set to the directory where LIBOBJS objects are built.
7492
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7493
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7494
done
7495
LIBOBJS=$ac_libobjs
7496

    
7497
LTLIBOBJS=$ac_ltlibobjs
7498

    
7499

    
7500

    
7501
: "${CONFIG_STATUS=./config.status}"
7502
ac_write_fail=0
7503
ac_clean_files_save=$ac_clean_files
7504
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7505
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7506
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7507
as_write_fail=0
7508
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7509
#! $SHELL
7510
# Generated by $as_me.
7511
# Run this file to recreate the current configuration.
7512
# Compiler output produced by configure, useful for debugging
7513
# configure, is in config.log if it exists.
7514

    
7515
debug=false
7516
ac_cs_recheck=false
7517
ac_cs_silent=false
7518

    
7519
SHELL=\${CONFIG_SHELL-$SHELL}
7520
export SHELL
7521
_ASEOF
7522
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7523
## -------------------- ##
7524
## M4sh Initialization. ##
7525
## -------------------- ##
7526

    
7527
# Be more Bourne compatible
7528
DUALCASE=1; export DUALCASE # for MKS sh
7529
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7530
  emulate sh
7531
  NULLCMD=:
7532
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7533
  # is contrary to our usage.  Disable this feature.
7534
  alias -g '${1+"$@"}'='"$@"'
7535
  setopt NO_GLOB_SUBST
7536
else
7537
  case `(set -o) 2>/dev/null` in #(
7538
  *posix*) :
7539
    set -o posix ;; #(
7540
  *) :
7541
     ;;
7542
esac
7543
fi
7544

    
7545

    
7546
as_nl='
7547
'
7548
export as_nl
7549
# Printing a long string crashes Solaris 7 /usr/bin/printf.
7550
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7551
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7552
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7553
# Prefer a ksh shell builtin over an external printf program on Solaris,
7554
# but without wasting forks for bash or zsh.
7555
if test -z "$BASH_VERSION$ZSH_VERSION" \
7556
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7557
  as_echo='print -r --'
7558
  as_echo_n='print -rn --'
7559
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7560
  as_echo='printf %s\n'
7561
  as_echo_n='printf %s'
7562
else
7563
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7564
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7565
    as_echo_n='/usr/ucb/echo -n'
7566
  else
7567
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7568
    as_echo_n_body='eval
7569
      arg=$1;
7570
      case $arg in #(
7571
      *"$as_nl"*)
7572
	expr "X$arg" : "X\\(.*\\)$as_nl";
7573
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7574
      esac;
7575
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7576
    '
7577
    export as_echo_n_body
7578
    as_echo_n='sh -c $as_echo_n_body as_echo'
7579
  fi
7580
  export as_echo_body
7581
  as_echo='sh -c $as_echo_body as_echo'
7582
fi
7583

    
7584
# The user is always right.
7585
if test "${PATH_SEPARATOR+set}" != set; then
7586
  PATH_SEPARATOR=:
7587
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7588
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7589
      PATH_SEPARATOR=';'
7590
  }
7591
fi
7592

    
7593

    
7594
# IFS
7595
# We need space, tab and new line, in precisely that order.  Quoting is
7596
# there to prevent editors from complaining about space-tab.
7597
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
7598
# splitting by setting IFS to empty value.)
7599
IFS=" ""	$as_nl"
7600

    
7601
# Find who we are.  Look in the path if we contain no directory separator.
7602
as_myself=
7603
case $0 in #((
7604
  *[\\/]* ) as_myself=$0 ;;
7605
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7606
for as_dir in $PATH
7607
do
7608
  IFS=$as_save_IFS
7609
  test -z "$as_dir" && as_dir=.
7610
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7611
  done
7612
IFS=$as_save_IFS
7613

    
7614
     ;;
7615
esac
7616
# We did not find ourselves, most probably we were run as `sh COMMAND'
7617
# in which case we are not to be found in the path.
7618
if test "x$as_myself" = x; then
7619
  as_myself=$0
7620
fi
7621
if test ! -f "$as_myself"; then
7622
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7623
  exit 1
7624
fi
7625

    
7626
# Unset variables that we do not need and which cause bugs (e.g. in
7627
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
7628
# suppresses any "Segmentation fault" message there.  '((' could
7629
# trigger a bug in pdksh 5.2.14.
7630
for as_var in BASH_ENV ENV MAIL MAILPATH
7631
do eval test x\${$as_var+set} = xset \
7632
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7633
done
7634
PS1='$ '
7635
PS2='> '
7636
PS4='+ '
7637

    
7638
# NLS nuisances.
7639
LC_ALL=C
7640
export LC_ALL
7641
LANGUAGE=C
7642
export LANGUAGE
7643

    
7644
# CDPATH.
7645
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7646

    
7647

    
7648
# as_fn_error STATUS ERROR [LINENO LOG_FD]
7649
# ----------------------------------------
7650
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7651
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7652
# script with STATUS, using 1 if that was 0.
7653
as_fn_error ()
7654
{
7655
  as_status=$1; test $as_status -eq 0 && as_status=1
7656
  if test "$4"; then
7657
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7658
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7659
  fi
7660
  $as_echo "$as_me: error: $2" >&2
7661
  as_fn_exit $as_status
7662
} # as_fn_error
7663

    
7664

    
7665
# as_fn_set_status STATUS
7666
# -----------------------
7667
# Set $? to STATUS, without forking.
7668
as_fn_set_status ()
7669
{
7670
  return $1
7671
} # as_fn_set_status
7672

    
7673
# as_fn_exit STATUS
7674
# -----------------
7675
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7676
as_fn_exit ()
7677
{
7678
  set +e
7679
  as_fn_set_status $1
7680
  exit $1
7681
} # as_fn_exit
7682

    
7683
# as_fn_unset VAR
7684
# ---------------
7685
# Portably unset VAR.
7686
as_fn_unset ()
7687
{
7688
  { eval $1=; unset $1;}
7689
}
7690
as_unset=as_fn_unset
7691
# as_fn_append VAR VALUE
7692
# ----------------------
7693
# Append the text in VALUE to the end of the definition contained in VAR. Take
7694
# advantage of any shell optimizations that allow amortized linear growth over
7695
# repeated appends, instead of the typical quadratic growth present in naive
7696
# implementations.
7697
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7698
  eval 'as_fn_append ()
7699
  {
7700
    eval $1+=\$2
7701
  }'
7702
else
7703
  as_fn_append ()
7704
  {
7705
    eval $1=\$$1\$2
7706
  }
7707
fi # as_fn_append
7708

    
7709
# as_fn_arith ARG...
7710
# ------------------
7711
# Perform arithmetic evaluation on the ARGs, and store the result in the
7712
# global $as_val. Take advantage of shells that can avoid forks. The arguments
7713
# must be portable across $(()) and expr.
7714
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7715
  eval 'as_fn_arith ()
7716
  {
7717
    as_val=$(( $* ))
7718
  }'
7719
else
7720
  as_fn_arith ()
7721
  {
7722
    as_val=`expr "$@" || test $? -eq 1`
7723
  }
7724
fi # as_fn_arith
7725

    
7726

    
7727
if expr a : '\(a\)' >/dev/null 2>&1 &&
7728
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
7729
  as_expr=expr
7730
else
7731
  as_expr=false
7732
fi
7733

    
7734
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7735
  as_basename=basename
7736
else
7737
  as_basename=false
7738
fi
7739

    
7740
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7741
  as_dirname=dirname
7742
else
7743
  as_dirname=false
7744
fi
7745

    
7746
as_me=`$as_basename -- "$0" ||
7747
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7748
	 X"$0" : 'X\(//\)$' \| \
7749
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7750
$as_echo X/"$0" |
7751
    sed '/^.*\/\([^/][^/]*\)\/*$/{
7752
	    s//\1/
7753
	    q
7754
	  }
7755
	  /^X\/\(\/\/\)$/{
7756
	    s//\1/
7757
	    q
7758
	  }
7759
	  /^X\/\(\/\).*/{
7760
	    s//\1/
7761
	    q
7762
	  }
7763
	  s/.*/./; q'`
7764

    
7765
# Avoid depending upon Character Ranges.
7766
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7767
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7768
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7769
as_cr_digits='0123456789'
7770
as_cr_alnum=$as_cr_Letters$as_cr_digits
7771

    
7772
ECHO_C= ECHO_N= ECHO_T=
7773
case `echo -n x` in #(((((
7774
-n*)
7775
  case `echo 'xy\c'` in
7776
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
7777
  xy)  ECHO_C='\c';;
7778
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
7779
       ECHO_T='	';;
7780
  esac;;
7781
*)
7782
  ECHO_N='-n';;
7783
esac
7784

    
7785
rm -f conf$$ conf$$.exe conf$$.file
7786
if test -d conf$$.dir; then
7787
  rm -f conf$$.dir/conf$$.file
7788
else
7789
  rm -f conf$$.dir
7790
  mkdir conf$$.dir 2>/dev/null
7791
fi
7792
if (echo >conf$$.file) 2>/dev/null; then
7793
  if ln -s conf$$.file conf$$ 2>/dev/null; then
7794
    as_ln_s='ln -s'
7795
    # ... but there are two gotchas:
7796
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7797
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7798
    # In both cases, we have to default to `cp -pR'.
7799
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7800
      as_ln_s='cp -pR'
7801
  elif ln conf$$.file conf$$ 2>/dev/null; then
7802
    as_ln_s=ln
7803
  else
7804
    as_ln_s='cp -pR'
7805
  fi
7806
else
7807
  as_ln_s='cp -pR'
7808
fi
7809
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7810
rmdir conf$$.dir 2>/dev/null
7811

    
7812

    
7813
# as_fn_mkdir_p
7814
# -------------
7815
# Create "$as_dir" as a directory, including parents if necessary.
7816
as_fn_mkdir_p ()
7817
{
7818

    
7819
  case $as_dir in #(
7820
  -*) as_dir=./$as_dir;;
7821
  esac
7822
  test -d "$as_dir" || eval $as_mkdir_p || {
7823
    as_dirs=
7824
    while :; do
7825
      case $as_dir in #(
7826
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7827
      *) as_qdir=$as_dir;;
7828
      esac
7829
      as_dirs="'$as_qdir' $as_dirs"
7830
      as_dir=`$as_dirname -- "$as_dir" ||
7831
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7832
	 X"$as_dir" : 'X\(//\)[^/]' \| \
7833
	 X"$as_dir" : 'X\(//\)$' \| \
7834
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7835
$as_echo X"$as_dir" |
7836
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7837
	    s//\1/
7838
	    q
7839
	  }
7840
	  /^X\(\/\/\)[^/].*/{
7841
	    s//\1/
7842
	    q
7843
	  }
7844
	  /^X\(\/\/\)$/{
7845
	    s//\1/
7846
	    q
7847
	  }
7848
	  /^X\(\/\).*/{
7849
	    s//\1/
7850
	    q
7851
	  }
7852
	  s/.*/./; q'`
7853
      test -d "$as_dir" && break
7854
    done
7855
    test -z "$as_dirs" || eval "mkdir $as_dirs"
7856
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7857

    
7858

    
7859
} # as_fn_mkdir_p
7860
if mkdir -p . 2>/dev/null; then
7861
  as_mkdir_p='mkdir -p "$as_dir"'
7862
else
7863
  test -d ./-p && rmdir ./-p
7864
  as_mkdir_p=false
7865
fi
7866

    
7867

    
7868
# as_fn_executable_p FILE
7869
# -----------------------
7870
# Test if FILE is an executable regular file.
7871
as_fn_executable_p ()
7872
{
7873
  test -f "$1" && test -x "$1"
7874
} # as_fn_executable_p
7875
as_test_x='test -x'
7876
as_executable_p=as_fn_executable_p
7877

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

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

    
7884

    
7885
exec 6>&1
7886
## ----------------------------------- ##
7887
## Main body of $CONFIG_STATUS script. ##
7888
## ----------------------------------- ##
7889
_ASEOF
7890
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7891

    
7892
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7893
# Save the log message, to keep $0 and so on meaningful, and to
7894
# report actual input values of CONFIG_FILES etc. instead of their
7895
# values after options handling.
7896
ac_log="
7897
This file was extended by $as_me, which was
7898
generated by GNU Autoconf 2.69.  Invocation command line was
7899

    
7900
  CONFIG_FILES    = $CONFIG_FILES
7901
  CONFIG_HEADERS  = $CONFIG_HEADERS
7902
  CONFIG_LINKS    = $CONFIG_LINKS
7903
  CONFIG_COMMANDS = $CONFIG_COMMANDS
7904
  $ $0 $@
7905

    
7906
on `(hostname || uname -n) 2>/dev/null | sed 1q`
7907
"
7908

    
7909
_ACEOF
7910

    
7911
case $ac_config_files in *"
7912
"*) set x $ac_config_files; shift; ac_config_files=$*;;
7913
esac
7914

    
7915

    
7916

    
7917
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7918
# Files that config.status was made for.
7919
config_files="$ac_config_files"
7920

    
7921
_ACEOF
7922

    
7923
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7924
ac_cs_usage="\
7925
\`$as_me' instantiates files and other configuration actions
7926
from templates according to the current configuration.  Unless the files
7927
and actions are specified as TAGs, all are instantiated by default.
7928

    
7929
Usage: $0 [OPTION]... [TAG]...
7930

    
7931
  -h, --help       print this help, then exit
7932
  -V, --version    print version number and configuration settings, then exit
7933
      --config     print configuration, then exit
7934
  -q, --quiet, --silent
7935
                   do not print progress messages
7936
  -d, --debug      don't remove temporary files
7937
      --recheck    update $as_me by reconfiguring in the same conditions
7938
      --file=FILE[:TEMPLATE]
7939
                   instantiate the configuration file FILE
7940

    
7941
Configuration files:
7942
$config_files
7943

    
7944
Report bugs to the package provider."
7945

    
7946
_ACEOF
7947
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7948
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7949
ac_cs_version="\\
7950
config.status
7951
configured by $0, generated by GNU Autoconf 2.69,
7952
  with options \\"\$ac_cs_config\\"
7953

    
7954
Copyright (C) 2012 Free Software Foundation, Inc.
7955
This config.status script is free software; the Free Software Foundation
7956
gives unlimited permission to copy, distribute and modify it."
7957

    
7958
ac_pwd='$ac_pwd'
7959
srcdir='$srcdir'
7960
INSTALL='$INSTALL'
7961
MKDIR_P='$MKDIR_P'
7962
test -n "\$AWK" || AWK=awk
7963
_ACEOF
7964

    
7965
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7966
# The default lists apply if the user does not specify any file.
7967
ac_need_defaults=:
7968
while test $# != 0
7969
do
7970
  case $1 in
7971
  --*=?*)
7972
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
7973
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7974
    ac_shift=:
7975
    ;;
7976
  --*=)
7977
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
7978
    ac_optarg=
7979
    ac_shift=:
7980
    ;;
7981
  *)
7982
    ac_option=$1
7983
    ac_optarg=$2
7984
    ac_shift=shift
7985
    ;;
7986
  esac
7987

    
7988
  case $ac_option in
7989
  # Handling of the options.
7990
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7991
    ac_cs_recheck=: ;;
7992
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7993
    $as_echo "$ac_cs_version"; exit ;;
7994
  --config | --confi | --conf | --con | --co | --c )
7995
    $as_echo "$ac_cs_config"; exit ;;
7996
  --debug | --debu | --deb | --de | --d | -d )
7997
    debug=: ;;
7998
  --file | --fil | --fi | --f )
7999
    $ac_shift
8000
    case $ac_optarg in
8001
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8002
    '') as_fn_error $? "missing file argument" ;;
8003
    esac
8004
    as_fn_append CONFIG_FILES " '$ac_optarg'"
8005
    ac_need_defaults=false;;
8006
  --he | --h |  --help | --hel | -h )
8007
    $as_echo "$ac_cs_usage"; exit ;;
8008
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8009
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
8010
    ac_cs_silent=: ;;
8011

    
8012
  # This is an error.
8013
  -*) as_fn_error $? "unrecognized option: \`$1'
8014
Try \`$0 --help' for more information." ;;
8015

    
8016
  *) as_fn_append ac_config_targets " $1"
8017
     ac_need_defaults=false ;;
8018

    
8019
  esac
8020
  shift
8021
done
8022

    
8023
ac_configure_extra_args=
8024

    
8025
if $ac_cs_silent; then
8026
  exec 6>/dev/null
8027
  ac_configure_extra_args="$ac_configure_extra_args --silent"
8028
fi
8029

    
8030
_ACEOF
8031
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8032
if \$ac_cs_recheck; then
8033
  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8034
  shift
8035
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8036
  CONFIG_SHELL='$SHELL'
8037
  export CONFIG_SHELL
8038
  exec "\$@"
8039
fi
8040

    
8041
_ACEOF
8042
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8043
exec 5>>config.log
8044
{
8045
  echo
8046
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8047
## Running $as_me. ##
8048
_ASBOX
8049
  $as_echo "$ac_log"
8050
} >&5
8051

    
8052
_ACEOF
8053
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8054
_ACEOF
8055

    
8056
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8057

    
8058
# Handling of arguments.
8059
for ac_config_target in $ac_config_targets
8060
do
8061
  case $ac_config_target in
8062
    "config.pri") CONFIG_FILES="$CONFIG_FILES config.pri" ;;
8063

    
8064
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8065
  esac
8066
done
8067

    
8068

    
8069
# If the user did not use the arguments to specify the items to instantiate,
8070
# then the envvar interface is used.  Set only those that are not.
8071
# We use the long form for the default assignment because of an extremely
8072
# bizarre bug on SunOS 4.1.3.
8073
if $ac_need_defaults; then
8074
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8075
fi
8076

    
8077
# Have a temporary directory for convenience.  Make it in the build tree
8078
# simply because there is no reason against having it here, and in addition,
8079
# creating and moving files from /tmp can sometimes cause problems.
8080
# Hook for its removal unless debugging.
8081
# Note that there is a small window in which the directory will not be cleaned:
8082
# after its creation but before its name has been assigned to `$tmp'.
8083
$debug ||
8084
{
8085
  tmp= ac_tmp=
8086
  trap 'exit_status=$?
8087
  : "${ac_tmp:=$tmp}"
8088
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8089
' 0
8090
  trap 'as_fn_exit 1' 1 2 13 15
8091
}
8092
# Create a (secure) tmp directory for tmp files.
8093

    
8094
{
8095
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8096
  test -d "$tmp"
8097
}  ||
8098
{
8099
  tmp=./conf$$-$RANDOM
8100
  (umask 077 && mkdir "$tmp")
8101
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8102
ac_tmp=$tmp
8103

    
8104
# Set up the scripts for CONFIG_FILES section.
8105
# No need to generate them if there are no CONFIG_FILES.
8106
# This happens for instance with `./config.status config.h'.
8107
if test -n "$CONFIG_FILES"; then
8108

    
8109

    
8110
ac_cr=`echo X | tr X '\015'`
8111
# On cygwin, bash can eat \r inside `` if the user requested igncr.
8112
# But we know of no other shell where ac_cr would be empty at this
8113
# point, so we can use a bashism as a fallback.
8114
if test "x$ac_cr" = x; then
8115
  eval ac_cr=\$\'\\r\'
8116
fi
8117
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8118
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8119
  ac_cs_awk_cr='\\r'
8120
else
8121
  ac_cs_awk_cr=$ac_cr
8122
fi
8123

    
8124
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8125
_ACEOF
8126

    
8127

    
8128
{
8129
  echo "cat >conf$$subs.awk <<_ACEOF" &&
8130
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8131
  echo "_ACEOF"
8132
} >conf$$subs.sh ||
8133
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8134
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8135
ac_delim='%!_!# '
8136
for ac_last_try in false false false false false :; do
8137
  . ./conf$$subs.sh ||
8138
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8139

    
8140
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8141
  if test $ac_delim_n = $ac_delim_num; then
8142
    break
8143
  elif $ac_last_try; then
8144
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8145
  else
8146
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8147
  fi
8148
done
8149
rm -f conf$$subs.sh
8150

    
8151
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8152
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8153
_ACEOF
8154
sed -n '
8155
h
8156
s/^/S["/; s/!.*/"]=/
8157
p
8158
g
8159
s/^[^!]*!//
8160
:repl
8161
t repl
8162
s/'"$ac_delim"'$//
8163
t delim
8164
:nl
8165
h
8166
s/\(.\{148\}\)..*/\1/
8167
t more1
8168
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8169
p
8170
n
8171
b repl
8172
:more1
8173
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8174
p
8175
g
8176
s/.\{148\}//
8177
t nl
8178
:delim
8179
h
8180
s/\(.\{148\}\)..*/\1/
8181
t more2
8182
s/["\\]/\\&/g; s/^/"/; s/$/"/
8183
p
8184
b
8185
:more2
8186
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8187
p
8188
g
8189
s/.\{148\}//
8190
t delim
8191
' <conf$$subs.awk | sed '
8192
/^[^""]/{
8193
  N
8194
  s/\n//
8195
}
8196
' >>$CONFIG_STATUS || ac_write_fail=1
8197
rm -f conf$$subs.awk
8198
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8199
_ACAWK
8200
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8201
  for (key in S) S_is_set[key] = 1
8202
  FS = ""
8203

    
8204
}
8205
{
8206
  line = $ 0
8207
  nfields = split(line, field, "@")
8208
  substed = 0
8209
  len = length(field[1])
8210
  for (i = 2; i < nfields; i++) {
8211
    key = field[i]
8212
    keylen = length(key)
8213
    if (S_is_set[key]) {
8214
      value = S[key]
8215
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8216
      len += length(value) + length(field[++i])
8217
      substed = 1
8218
    } else
8219
      len += 1 + keylen
8220
  }
8221

    
8222
  print line
8223
}
8224

    
8225
_ACAWK
8226
_ACEOF
8227
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8228
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8229
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8230
else
8231
  cat
8232
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8233
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8234
_ACEOF
8235

    
8236
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8237
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8238
# trailing colons and then remove the whole line if VPATH becomes empty
8239
# (actually we leave an empty line to preserve line numbers).
8240
if test "x$srcdir" = x.; then
8241
  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
8242
h
8243
s///
8244
s/^/:/
8245
s/[	 ]*$/:/
8246
s/:\$(srcdir):/:/g
8247
s/:\${srcdir}:/:/g
8248
s/:@srcdir@:/:/g
8249
s/^:*//
8250
s/:*$//
8251
x
8252
s/\(=[	 ]*\).*/\1/
8253
G
8254
s/\n//
8255
s/^[^=]*=[	 ]*$//
8256
}'
8257
fi
8258

    
8259
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8260
fi # test -n "$CONFIG_FILES"
8261

    
8262

    
8263
eval set X "  :F $CONFIG_FILES      "
8264
shift
8265
for ac_tag
8266
do
8267
  case $ac_tag in
8268
  :[FHLC]) ac_mode=$ac_tag; continue;;
8269
  esac
8270
  case $ac_mode$ac_tag in
8271
  :[FHL]*:*);;
8272
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8273
  :[FH]-) ac_tag=-:-;;
8274
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8275
  esac
8276
  ac_save_IFS=$IFS
8277
  IFS=:
8278
  set x $ac_tag
8279
  IFS=$ac_save_IFS
8280
  shift
8281
  ac_file=$1
8282
  shift
8283

    
8284
  case $ac_mode in
8285
  :L) ac_source=$1;;
8286
  :[FH])
8287
    ac_file_inputs=
8288
    for ac_f
8289
    do
8290
      case $ac_f in
8291
      -) ac_f="$ac_tmp/stdin";;
8292
      *) # Look for the file first in the build tree, then in the source tree
8293
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
8294
	 # because $ac_f cannot contain `:'.
8295
	 test -f "$ac_f" ||
8296
	   case $ac_f in
8297
	   [\\/$]*) false;;
8298
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8299
	   esac ||
8300
	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8301
      esac
8302
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8303
      as_fn_append ac_file_inputs " '$ac_f'"
8304
    done
8305

    
8306
    # Let's still pretend it is `configure' which instantiates (i.e., don't
8307
    # use $as_me), people would be surprised to read:
8308
    #    /* config.h.  Generated by config.status.  */
8309
    configure_input='Generated from '`
8310
	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8311
	`' by configure.'
8312
    if test x"$ac_file" != x-; then
8313
      configure_input="$ac_file.  $configure_input"
8314
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8315
$as_echo "$as_me: creating $ac_file" >&6;}
8316
    fi
8317
    # Neutralize special characters interpreted by sed in replacement strings.
8318
    case $configure_input in #(
8319
    *\&* | *\|* | *\\* )
8320
       ac_sed_conf_input=`$as_echo "$configure_input" |
8321
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
8322
    *) ac_sed_conf_input=$configure_input;;
8323
    esac
8324

    
8325
    case $ac_tag in
8326
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
8327
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8328
    esac
8329
    ;;
8330
  esac
8331

    
8332
  ac_dir=`$as_dirname -- "$ac_file" ||
8333
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8334
	 X"$ac_file" : 'X\(//\)[^/]' \| \
8335
	 X"$ac_file" : 'X\(//\)$' \| \
8336
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8337
$as_echo X"$ac_file" |
8338
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8339
	    s//\1/
8340
	    q
8341
	  }
8342
	  /^X\(\/\/\)[^/].*/{
8343
	    s//\1/
8344
	    q
8345
	  }
8346
	  /^X\(\/\/\)$/{
8347
	    s//\1/
8348
	    q
8349
	  }
8350
	  /^X\(\/\).*/{
8351
	    s//\1/
8352
	    q
8353
	  }
8354
	  s/.*/./; q'`
8355
  as_dir="$ac_dir"; as_fn_mkdir_p
8356
  ac_builddir=.
8357

    
8358
case "$ac_dir" in
8359
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8360
*)
8361
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8362
  # A ".." for each directory in $ac_dir_suffix.
8363
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8364
  case $ac_top_builddir_sub in
8365
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8366
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8367
  esac ;;
8368
esac
8369
ac_abs_top_builddir=$ac_pwd
8370
ac_abs_builddir=$ac_pwd$ac_dir_suffix
8371
# for backward compatibility:
8372
ac_top_builddir=$ac_top_build_prefix
8373

    
8374
case $srcdir in
8375
  .)  # We are building in place.
8376
    ac_srcdir=.
8377
    ac_top_srcdir=$ac_top_builddir_sub
8378
    ac_abs_top_srcdir=$ac_pwd ;;
8379
  [\\/]* | ?:[\\/]* )  # Absolute name.
8380
    ac_srcdir=$srcdir$ac_dir_suffix;
8381
    ac_top_srcdir=$srcdir
8382
    ac_abs_top_srcdir=$srcdir ;;
8383
  *) # Relative name.
8384
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8385
    ac_top_srcdir=$ac_top_build_prefix$srcdir
8386
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8387
esac
8388
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8389

    
8390

    
8391
  case $ac_mode in
8392
  :F)
8393
  #
8394
  # CONFIG_FILE
8395
  #
8396

    
8397
  case $INSTALL in
8398
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8399
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8400
  esac
8401
  ac_MKDIR_P=$MKDIR_P
8402
  case $MKDIR_P in
8403
  [\\/$]* | ?:[\\/]* ) ;;
8404
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8405
  esac
8406
_ACEOF
8407

    
8408
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8409
# If the template does not know about datarootdir, expand it.
8410
# FIXME: This hack should be removed a few years after 2.60.
8411
ac_datarootdir_hack=; ac_datarootdir_seen=
8412
ac_sed_dataroot='
8413
/datarootdir/ {
8414
  p
8415
  q
8416
}
8417
/@datadir@/p
8418
/@docdir@/p
8419
/@infodir@/p
8420
/@localedir@/p
8421
/@mandir@/p'
8422
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8423
*datarootdir*) ac_datarootdir_seen=yes;;
8424
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8425
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8426
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8427
_ACEOF
8428
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8429
  ac_datarootdir_hack='
8430
  s&@datadir@&$datadir&g
8431
  s&@docdir@&$docdir&g
8432
  s&@infodir@&$infodir&g
8433
  s&@localedir@&$localedir&g
8434
  s&@mandir@&$mandir&g
8435
  s&\\\${datarootdir}&$datarootdir&g' ;;
8436
esac
8437
_ACEOF
8438

    
8439
# Neutralize VPATH when `$srcdir' = `.'.
8440
# Shell code in configure.ac might set extrasub.
8441
# FIXME: do we really want to maintain this feature?
8442
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8443
ac_sed_extra="$ac_vpsub
8444
$extrasub
8445
_ACEOF
8446
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8447
:t
8448
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8449
s|@configure_input@|$ac_sed_conf_input|;t t
8450
s&@top_builddir@&$ac_top_builddir_sub&;t t
8451
s&@top_build_prefix@&$ac_top_build_prefix&;t t
8452
s&@srcdir@&$ac_srcdir&;t t
8453
s&@abs_srcdir@&$ac_abs_srcdir&;t t
8454
s&@top_srcdir@&$ac_top_srcdir&;t t
8455
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8456
s&@builddir@&$ac_builddir&;t t
8457
s&@abs_builddir@&$ac_abs_builddir&;t t
8458
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8459
s&@INSTALL@&$ac_INSTALL&;t t
8460
s&@MKDIR_P@&$ac_MKDIR_P&;t t
8461
$ac_datarootdir_hack
8462
"
8463
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8464
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8465

    
8466
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8467
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8468
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
8469
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
8470
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8471
which seems to be undefined.  Please make sure it is defined" >&5
8472
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8473
which seems to be undefined.  Please make sure it is defined" >&2;}
8474

    
8475
  rm -f "$ac_tmp/stdin"
8476
  case $ac_file in
8477
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8478
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8479
  esac \
8480
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8481
 ;;
8482

    
8483

    
8484

    
8485
  esac
8486

    
8487
done # for ac_tag
8488

    
8489

    
8490
as_fn_exit 0
8491
_ACEOF
8492
ac_clean_files=$ac_clean_files_save
8493

    
8494
test $ac_write_fail = 0 ||
8495
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8496

    
8497

    
8498
# configure is writing to config.log, and then calls config.status.
8499
# config.status does its own redirection, appending to config.log.
8500
# Unfortunately, on DOS this fails, as config.log is still kept open
8501
# by configure, so config.status won't be able to write to it; its
8502
# output is simply discarded.  So we exec the FD to /dev/null,
8503
# effectively closing config.log, so it can be properly (re)opened and
8504
# appended to by config.status.  When coming back to configure, we
8505
# need to make the FD available again.
8506
if test "$no_create" != yes; then
8507
  ac_cs_success=:
8508
  ac_config_status_args=
8509
  test "$silent" = yes &&
8510
    ac_config_status_args="$ac_config_status_args --quiet"
8511
  exec 5>/dev/null
8512
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8513
  exec 5>>config.log
8514
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8515
  # would make configure fail if this is the last instruction.
8516
  $ac_cs_success || as_fn_exit 1
8517
fi
8518
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8519
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8520
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8521
fi
8522

    
8523

    
8524
if test -x repoint ; then
8525
   if test -d .hg -o -d .git ; then
8526
      if ! ./repoint install; then
8527
         as_fn_error $? "Repoint failed; please fix any reported errors and try again" "$LINENO" 5
8528
      fi
8529
   else
8530
      { $as_echo "$as_me:${as_lineno-$LINENO}: Repoint executable found but not in an Hg or Git working-copy: not running it" >&5
8531
$as_echo "$as_me: Repoint executable found but not in an Hg or Git working-copy: not running it" >&6;}
8532
      if ! test -d vamp-plugin-sdk ; then
8533
          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No vamp-plugin-sdk directory present, so external libraries might not have been updated" >&5
8534
$as_echo "$as_me: WARNING: No vamp-plugin-sdk directory present, so external libraries might not have been updated" >&2;}
8535
      fi
8536
   fi
8537
else
8538
   { $as_echo "$as_me:${as_lineno-$LINENO}: No Repoint executable found: assuming external libraries are already here" >&5
8539
$as_echo "$as_me: No Repoint executable found: assuming external libraries are already here" >&6;}
8540
   if ! test -d vamp-plugin-sdk ; then
8541
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No vamp-plugin-sdk directory present, so external libraries might not have been updated" >&5
8542
$as_echo "$as_me: WARNING: No vamp-plugin-sdk directory present, so external libraries might not have been updated" >&2;}
8543
   fi
8544
fi
8545

    
8546
if ! $QMAKE -r vect.pro; then
8547
   as_fn_error $? "qmake failed: Command was \"$QMAKE -r\"" "$LINENO" 5
8548
fi
8549

    
8550
{ $as_echo "$as_me:${as_lineno-$LINENO}:
8551

    
8552
Configuration complete.
8553
Please check the above messages for any warnings that you
8554
might care about, and then run \"make\".
8555

    
8556
The file config.pri contains the configuration settings for
8557
qmake.  If you want to adjust these by hand, edit config.pri
8558
and run \"$QMAKE -r\" again to regenerate the Makefile.
8559
" >&5
8560
$as_echo "$as_me:
8561

    
8562
Configuration complete.
8563
Please check the above messages for any warnings that you
8564
might care about, and then run \"make\".
8565

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