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 @ 526:459cddd7e64a

History | View | Annotate | Download (147 KB)

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

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

    
35

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

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

    
83

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

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

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

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

    
128
# NLS nuisances.
129
LC_ALL=C
130
export LC_ALL
131
LANGUAGE=C
132
export LANGUAGE
133

    
134
# CDPATH.
135
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136

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

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

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

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

    
239

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

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

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

    
297
# as_fn_set_status STATUS
298
# -----------------------
299
# Set $? to STATUS, without forking.
300
as_fn_set_status ()
301
{
302
  return $1
303
} # as_fn_set_status
304

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

    
315
# as_fn_mkdir_p
316
# -------------
317
# Create "$as_dir" as a directory, including parents if necessary.
318
as_fn_mkdir_p ()
319
{
320

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

    
360

    
361
} # as_fn_mkdir_p
362

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

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

    
405

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

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

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

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

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

    
460
# Avoid depending upon Character Ranges.
461
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464
as_cr_digits='0123456789'
465
as_cr_alnum=$as_cr_Letters$as_cr_digits
466

    
467

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

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

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

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

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

    
550
as_test_x='test -x'
551
as_executable_p=as_fn_executable_p
552

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

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

    
559

    
560
test -n "$DJDIR" || exec 7<&0 </dev/null
561
exec 6>&1
562

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

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

    
580
# Identity of this package.
581
PACKAGE_NAME='vamp-plugin-sdk'
582
PACKAGE_TARNAME='vamp-plugin-sdk'
583
PACKAGE_VERSION='2.8'
584
PACKAGE_STRING='vamp-plugin-sdk 2.8'
585
PACKAGE_BUGREPORT='cannam@all-day-breakfast.com'
586
PACKAGE_URL=''
587

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

    
625
ac_subst_vars='LTLIBOBJS
626
LIBOBJS
627
TARGETS
628
SNDFILE_LIBS
629
SNDFILE_CFLAGS
630
PKG_CONFIG_LIBDIR
631
PKG_CONFIG_PATH
632
PKG_CONFIG
633
HAVE_CXX11
634
EGREP
635
GREP
636
CPP
637
ac_ct_CC
638
CFLAGS
639
CC
640
OBJEXT
641
EXEEXT
642
ac_ct_CXX
643
CPPFLAGS
644
LDFLAGS
645
CXXFLAGS
646
CXX
647
target_alias
648
host_alias
649
build_alias
650
LIBS
651
ECHO_T
652
ECHO_N
653
ECHO_C
654
DEFS
655
mandir
656
localedir
657
libdir
658
psdir
659
pdfdir
660
dvidir
661
htmldir
662
infodir
663
docdir
664
oldincludedir
665
includedir
666
localstatedir
667
sharedstatedir
668
sysconfdir
669
datadir
670
datarootdir
671
libexecdir
672
sbindir
673
bindir
674
program_transform_name
675
prefix
676
exec_prefix
677
PACKAGE_URL
678
PACKAGE_BUGREPORT
679
PACKAGE_STRING
680
PACKAGE_VERSION
681
PACKAGE_TARNAME
682
PACKAGE_NAME
683
PATH_SEPARATOR
684
SHELL'
685
ac_subst_files=''
686
ac_user_opts='
687
enable_option_checking
688
enable_programs
689
'
690
      ac_precious_vars='build_alias
691
host_alias
692
target_alias
693
CXX
694
CXXFLAGS
695
LDFLAGS
696
LIBS
697
CPPFLAGS
698
CCC
699
CC
700
CFLAGS
701
CPP
702
PKG_CONFIG
703
PKG_CONFIG_PATH
704
PKG_CONFIG_LIBDIR
705
SNDFILE_CFLAGS
706
SNDFILE_LIBS'
707

    
708

    
709
# Initialize some variables set by options.
710
ac_init_help=
711
ac_init_version=false
712
ac_unrecognized_opts=
713
ac_unrecognized_sep=
714
# The variables have the same names as the options, with
715
# dashes changed to underlines.
716
cache_file=/dev/null
717
exec_prefix=NONE
718
no_create=
719
no_recursion=
720
prefix=NONE
721
program_prefix=NONE
722
program_suffix=NONE
723
program_transform_name=s,x,x,
724
silent=
725
site=
726
srcdir=
727
verbose=
728
x_includes=NONE
729
x_libraries=NONE
730

    
731
# Installation directory options.
732
# These are left unexpanded so users can "make install exec_prefix=/foo"
733
# and all the variables that are supposed to be based on exec_prefix
734
# by default will actually change.
735
# Use braces instead of parens because sh, perl, etc. also accept them.
736
# (The list follows the same order as the GNU Coding Standards.)
737
bindir='${exec_prefix}/bin'
738
sbindir='${exec_prefix}/sbin'
739
libexecdir='${exec_prefix}/libexec'
740
datarootdir='${prefix}/share'
741
datadir='${datarootdir}'
742
sysconfdir='${prefix}/etc'
743
sharedstatedir='${prefix}/com'
744
localstatedir='${prefix}/var'
745
includedir='${prefix}/include'
746
oldincludedir='/usr/include'
747
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
748
infodir='${datarootdir}/info'
749
htmldir='${docdir}'
750
dvidir='${docdir}'
751
pdfdir='${docdir}'
752
psdir='${docdir}'
753
libdir='${exec_prefix}/lib'
754
localedir='${datarootdir}/locale'
755
mandir='${datarootdir}/man'
756

    
757
ac_prev=
758
ac_dashdash=
759
for ac_option
760
do
761
  # If the previous option needs an argument, assign it.
762
  if test -n "$ac_prev"; then
763
    eval $ac_prev=\$ac_option
764
    ac_prev=
765
    continue
766
  fi
767

    
768
  case $ac_option in
769
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
770
  *=)   ac_optarg= ;;
771
  *)    ac_optarg=yes ;;
772
  esac
773

    
774
  # Accept the important Cygnus configure options, so we can diagnose typos.
775

    
776
  case $ac_dashdash$ac_option in
777
  --)
778
    ac_dashdash=yes ;;
779

    
780
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
781
    ac_prev=bindir ;;
782
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
783
    bindir=$ac_optarg ;;
784

    
785
  -build | --build | --buil | --bui | --bu)
786
    ac_prev=build_alias ;;
787
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
788
    build_alias=$ac_optarg ;;
789

    
790
  -cache-file | --cache-file | --cache-fil | --cache-fi \
791
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
792
    ac_prev=cache_file ;;
793
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
794
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
795
    cache_file=$ac_optarg ;;
796

    
797
  --config-cache | -C)
798
    cache_file=config.cache ;;
799

    
800
  -datadir | --datadir | --datadi | --datad)
801
    ac_prev=datadir ;;
802
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
803
    datadir=$ac_optarg ;;
804

    
805
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
806
  | --dataroo | --dataro | --datar)
807
    ac_prev=datarootdir ;;
808
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
809
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
810
    datarootdir=$ac_optarg ;;
811

    
812
  -disable-* | --disable-*)
813
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
814
    # Reject names that are not valid shell variable names.
815
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
816
      as_fn_error $? "invalid feature name: $ac_useropt"
817
    ac_useropt_orig=$ac_useropt
818
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
819
    case $ac_user_opts in
820
      *"
821
"enable_$ac_useropt"
822
"*) ;;
823
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
824
	 ac_unrecognized_sep=', ';;
825
    esac
826
    eval enable_$ac_useropt=no ;;
827

    
828
  -docdir | --docdir | --docdi | --doc | --do)
829
    ac_prev=docdir ;;
830
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
831
    docdir=$ac_optarg ;;
832

    
833
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
834
    ac_prev=dvidir ;;
835
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
836
    dvidir=$ac_optarg ;;
837

    
838
  -enable-* | --enable-*)
839
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
840
    # Reject names that are not valid shell variable names.
841
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
842
      as_fn_error $? "invalid feature name: $ac_useropt"
843
    ac_useropt_orig=$ac_useropt
844
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
845
    case $ac_user_opts in
846
      *"
847
"enable_$ac_useropt"
848
"*) ;;
849
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
850
	 ac_unrecognized_sep=', ';;
851
    esac
852
    eval enable_$ac_useropt=\$ac_optarg ;;
853

    
854
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
855
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
856
  | --exec | --exe | --ex)
857
    ac_prev=exec_prefix ;;
858
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
859
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
860
  | --exec=* | --exe=* | --ex=*)
861
    exec_prefix=$ac_optarg ;;
862

    
863
  -gas | --gas | --ga | --g)
864
    # Obsolete; use --with-gas.
865
    with_gas=yes ;;
866

    
867
  -help | --help | --hel | --he | -h)
868
    ac_init_help=long ;;
869
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
870
    ac_init_help=recursive ;;
871
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
872
    ac_init_help=short ;;
873

    
874
  -host | --host | --hos | --ho)
875
    ac_prev=host_alias ;;
876
  -host=* | --host=* | --hos=* | --ho=*)
877
    host_alias=$ac_optarg ;;
878

    
879
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
880
    ac_prev=htmldir ;;
881
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
882
  | --ht=*)
883
    htmldir=$ac_optarg ;;
884

    
885
  -includedir | --includedir | --includedi | --included | --include \
886
  | --includ | --inclu | --incl | --inc)
887
    ac_prev=includedir ;;
888
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
889
  | --includ=* | --inclu=* | --incl=* | --inc=*)
890
    includedir=$ac_optarg ;;
891

    
892
  -infodir | --infodir | --infodi | --infod | --info | --inf)
893
    ac_prev=infodir ;;
894
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
895
    infodir=$ac_optarg ;;
896

    
897
  -libdir | --libdir | --libdi | --libd)
898
    ac_prev=libdir ;;
899
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
900
    libdir=$ac_optarg ;;
901

    
902
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
903
  | --libexe | --libex | --libe)
904
    ac_prev=libexecdir ;;
905
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
906
  | --libexe=* | --libex=* | --libe=*)
907
    libexecdir=$ac_optarg ;;
908

    
909
  -localedir | --localedir | --localedi | --localed | --locale)
910
    ac_prev=localedir ;;
911
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
912
    localedir=$ac_optarg ;;
913

    
914
  -localstatedir | --localstatedir | --localstatedi | --localstated \
915
  | --localstate | --localstat | --localsta | --localst | --locals)
916
    ac_prev=localstatedir ;;
917
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
918
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
919
    localstatedir=$ac_optarg ;;
920

    
921
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
922
    ac_prev=mandir ;;
923
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
924
    mandir=$ac_optarg ;;
925

    
926
  -nfp | --nfp | --nf)
927
    # Obsolete; use --without-fp.
928
    with_fp=no ;;
929

    
930
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
931
  | --no-cr | --no-c | -n)
932
    no_create=yes ;;
933

    
934
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
935
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
936
    no_recursion=yes ;;
937

    
938
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
939
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
940
  | --oldin | --oldi | --old | --ol | --o)
941
    ac_prev=oldincludedir ;;
942
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
943
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
944
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
945
    oldincludedir=$ac_optarg ;;
946

    
947
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
948
    ac_prev=prefix ;;
949
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
950
    prefix=$ac_optarg ;;
951

    
952
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
953
  | --program-pre | --program-pr | --program-p)
954
    ac_prev=program_prefix ;;
955
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
956
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
957
    program_prefix=$ac_optarg ;;
958

    
959
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
960
  | --program-suf | --program-su | --program-s)
961
    ac_prev=program_suffix ;;
962
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
963
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
964
    program_suffix=$ac_optarg ;;
965

    
966
  -program-transform-name | --program-transform-name \
967
  | --program-transform-nam | --program-transform-na \
968
  | --program-transform-n | --program-transform- \
969
  | --program-transform | --program-transfor \
970
  | --program-transfo | --program-transf \
971
  | --program-trans | --program-tran \
972
  | --progr-tra | --program-tr | --program-t)
973
    ac_prev=program_transform_name ;;
974
  -program-transform-name=* | --program-transform-name=* \
975
  | --program-transform-nam=* | --program-transform-na=* \
976
  | --program-transform-n=* | --program-transform-=* \
977
  | --program-transform=* | --program-transfor=* \
978
  | --program-transfo=* | --program-transf=* \
979
  | --program-trans=* | --program-tran=* \
980
  | --progr-tra=* | --program-tr=* | --program-t=*)
981
    program_transform_name=$ac_optarg ;;
982

    
983
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
984
    ac_prev=pdfdir ;;
985
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
986
    pdfdir=$ac_optarg ;;
987

    
988
  -psdir | --psdir | --psdi | --psd | --ps)
989
    ac_prev=psdir ;;
990
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
991
    psdir=$ac_optarg ;;
992

    
993
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
994
  | -silent | --silent | --silen | --sile | --sil)
995
    silent=yes ;;
996

    
997
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
998
    ac_prev=sbindir ;;
999
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1000
  | --sbi=* | --sb=*)
1001
    sbindir=$ac_optarg ;;
1002

    
1003
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1004
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1005
  | --sharedst | --shareds | --shared | --share | --shar \
1006
  | --sha | --sh)
1007
    ac_prev=sharedstatedir ;;
1008
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1009
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1010
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1011
  | --sha=* | --sh=*)
1012
    sharedstatedir=$ac_optarg ;;
1013

    
1014
  -site | --site | --sit)
1015
    ac_prev=site ;;
1016
  -site=* | --site=* | --sit=*)
1017
    site=$ac_optarg ;;
1018

    
1019
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1020
    ac_prev=srcdir ;;
1021
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1022
    srcdir=$ac_optarg ;;
1023

    
1024
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1025
  | --syscon | --sysco | --sysc | --sys | --sy)
1026
    ac_prev=sysconfdir ;;
1027
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1028
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1029
    sysconfdir=$ac_optarg ;;
1030

    
1031
  -target | --target | --targe | --targ | --tar | --ta | --t)
1032
    ac_prev=target_alias ;;
1033
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1034
    target_alias=$ac_optarg ;;
1035

    
1036
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1037
    verbose=yes ;;
1038

    
1039
  -version | --version | --versio | --versi | --vers | -V)
1040
    ac_init_version=: ;;
1041

    
1042
  -with-* | --with-*)
1043
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1044
    # Reject names that are not valid shell variable names.
1045
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1046
      as_fn_error $? "invalid package name: $ac_useropt"
1047
    ac_useropt_orig=$ac_useropt
1048
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1049
    case $ac_user_opts in
1050
      *"
1051
"with_$ac_useropt"
1052
"*) ;;
1053
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1054
	 ac_unrecognized_sep=', ';;
1055
    esac
1056
    eval with_$ac_useropt=\$ac_optarg ;;
1057

    
1058
  -without-* | --without-*)
1059
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1060
    # Reject names that are not valid shell variable names.
1061
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1062
      as_fn_error $? "invalid package name: $ac_useropt"
1063
    ac_useropt_orig=$ac_useropt
1064
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1065
    case $ac_user_opts in
1066
      *"
1067
"with_$ac_useropt"
1068
"*) ;;
1069
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1070
	 ac_unrecognized_sep=', ';;
1071
    esac
1072
    eval with_$ac_useropt=no ;;
1073

    
1074
  --x)
1075
    # Obsolete; use --with-x.
1076
    with_x=yes ;;
1077

    
1078
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1079
  | --x-incl | --x-inc | --x-in | --x-i)
1080
    ac_prev=x_includes ;;
1081
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1082
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1083
    x_includes=$ac_optarg ;;
1084

    
1085
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1086
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1087
    ac_prev=x_libraries ;;
1088
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1089
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1090
    x_libraries=$ac_optarg ;;
1091

    
1092
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1093
Try \`$0 --help' for more information"
1094
    ;;
1095

    
1096
  *=*)
1097
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1098
    # Reject names that are not valid shell variable names.
1099
    case $ac_envvar in #(
1100
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1101
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1102
    esac
1103
    eval $ac_envvar=\$ac_optarg
1104
    export $ac_envvar ;;
1105

    
1106
  *)
1107
    # FIXME: should be removed in autoconf 3.0.
1108
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1109
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1110
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1111
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1112
    ;;
1113

    
1114
  esac
1115
done
1116

    
1117
if test -n "$ac_prev"; then
1118
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1119
  as_fn_error $? "missing argument to $ac_option"
1120
fi
1121

    
1122
if test -n "$ac_unrecognized_opts"; then
1123
  case $enable_option_checking in
1124
    no) ;;
1125
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1126
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1127
  esac
1128
fi
1129

    
1130
# Check all directory arguments for consistency.
1131
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1132
		datadir sysconfdir sharedstatedir localstatedir includedir \
1133
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1134
		libdir localedir mandir
1135
do
1136
  eval ac_val=\$$ac_var
1137
  # Remove trailing slashes.
1138
  case $ac_val in
1139
    */ )
1140
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1141
      eval $ac_var=\$ac_val;;
1142
  esac
1143
  # Be sure to have absolute directory names.
1144
  case $ac_val in
1145
    [\\/$]* | ?:[\\/]* )  continue;;
1146
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1147
  esac
1148
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1149
done
1150

    
1151
# There might be people who depend on the old broken behavior: `$host'
1152
# used to hold the argument of --host etc.
1153
# FIXME: To remove some day.
1154
build=$build_alias
1155
host=$host_alias
1156
target=$target_alias
1157

    
1158
# FIXME: To remove some day.
1159
if test "x$host_alias" != x; then
1160
  if test "x$build_alias" = x; then
1161
    cross_compiling=maybe
1162
  elif test "x$build_alias" != "x$host_alias"; then
1163
    cross_compiling=yes
1164
  fi
1165
fi
1166

    
1167
ac_tool_prefix=
1168
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1169

    
1170
test "$silent" = yes && exec 6>/dev/null
1171

    
1172

    
1173
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1174
ac_ls_di=`ls -di .` &&
1175
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1176
  as_fn_error $? "working directory cannot be determined"
1177
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1178
  as_fn_error $? "pwd does not report name of working directory"
1179

    
1180

    
1181
# Find the source files, if location was not specified.
1182
if test -z "$srcdir"; then
1183
  ac_srcdir_defaulted=yes
1184
  # Try the directory containing this script, then the parent directory.
1185
  ac_confdir=`$as_dirname -- "$as_myself" ||
1186
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1187
	 X"$as_myself" : 'X\(//\)[^/]' \| \
1188
	 X"$as_myself" : 'X\(//\)$' \| \
1189
	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1190
$as_echo X"$as_myself" |
1191
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1192
	    s//\1/
1193
	    q
1194
	  }
1195
	  /^X\(\/\/\)[^/].*/{
1196
	    s//\1/
1197
	    q
1198
	  }
1199
	  /^X\(\/\/\)$/{
1200
	    s//\1/
1201
	    q
1202
	  }
1203
	  /^X\(\/\).*/{
1204
	    s//\1/
1205
	    q
1206
	  }
1207
	  s/.*/./; q'`
1208
  srcdir=$ac_confdir
1209
  if test ! -r "$srcdir/$ac_unique_file"; then
1210
    srcdir=..
1211
  fi
1212
else
1213
  ac_srcdir_defaulted=no
1214
fi
1215
if test ! -r "$srcdir/$ac_unique_file"; then
1216
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1217
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1218
fi
1219
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1220
ac_abs_confdir=`(
1221
	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1222
	pwd)`
1223
# When building in place, set srcdir=.
1224
if test "$ac_abs_confdir" = "$ac_pwd"; then
1225
  srcdir=.
1226
fi
1227
# Remove unnecessary trailing slashes from srcdir.
1228
# Double slashes in file names in object file debugging info
1229
# mess up M-x gdb in Emacs.
1230
case $srcdir in
1231
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1232
esac
1233
for ac_var in $ac_precious_vars; do
1234
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1235
  eval ac_env_${ac_var}_value=\$${ac_var}
1236
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1237
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1238
done
1239

    
1240
#
1241
# Report the --help message.
1242
#
1243
if test "$ac_init_help" = "long"; then
1244
  # Omit some internal or obsolete options to make the list less imposing.
1245
  # This message is too long to be a string in the A/UX 3.1 sh.
1246
  cat <<_ACEOF
1247
\`configure' configures vamp-plugin-sdk 2.8 to adapt to many kinds of systems.
1248

    
1249
Usage: $0 [OPTION]... [VAR=VALUE]...
1250

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

    
1254
Defaults for the options are specified in brackets.
1255

    
1256
Configuration:
1257
  -h, --help              display this help and exit
1258
      --help=short        display options specific to this package
1259
      --help=recursive    display the short help of all the included packages
1260
  -V, --version           display version information and exit
1261
  -q, --quiet, --silent   do not print \`checking ...' messages
1262
      --cache-file=FILE   cache test results in FILE [disabled]
1263
  -C, --config-cache      alias for \`--cache-file=config.cache'
1264
  -n, --no-create         do not create output files
1265
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1266

    
1267
Installation directories:
1268
  --prefix=PREFIX         install architecture-independent files in PREFIX
1269
                          [$ac_default_prefix]
1270
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1271
                          [PREFIX]
1272

    
1273
By default, \`make install' will install all the files in
1274
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1275
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1276
for instance \`--prefix=\$HOME'.
1277

    
1278
For better control, use the options below.
1279

    
1280
Fine tuning of the installation directories:
1281
  --bindir=DIR            user executables [EPREFIX/bin]
1282
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1283
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1284
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1285
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1286
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1287
  --libdir=DIR            object code libraries [EPREFIX/lib]
1288
  --includedir=DIR        C header files [PREFIX/include]
1289
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1290
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1291
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1292
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1293
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1294
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1295
  --docdir=DIR            documentation root [DATAROOTDIR/doc/vamp-plugin-sdk]
1296
  --htmldir=DIR           html documentation [DOCDIR]
1297
  --dvidir=DIR            dvi documentation [DOCDIR]
1298
  --pdfdir=DIR            pdf documentation [DOCDIR]
1299
  --psdir=DIR             ps documentation [DOCDIR]
1300
_ACEOF
1301

    
1302
  cat <<\_ACEOF
1303
_ACEOF
1304
fi
1305

    
1306
if test -n "$ac_init_help"; then
1307
  case $ac_init_help in
1308
     short | recursive ) echo "Configuration of vamp-plugin-sdk 2.8:";;
1309
   esac
1310
  cat <<\_ACEOF
1311

    
1312
Optional Features:
1313
  --disable-option-checking  ignore unrecognized --enable/--with options
1314
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1315
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1316
  --enable-programs       enable building of example host and RDF generator
1317
                          [default=yes]
1318

    
1319
Some influential environment variables:
1320
  CXX         C++ compiler command
1321
  CXXFLAGS    C++ compiler flags
1322
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1323
              nonstandard directory <lib dir>
1324
  LIBS        libraries to pass to the linker, e.g. -l<library>
1325
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1326
              you have headers in a nonstandard directory <include dir>
1327
  CC          C compiler command
1328
  CFLAGS      C compiler flags
1329
  CPP         C preprocessor
1330
  PKG_CONFIG  path to pkg-config utility
1331
  PKG_CONFIG_PATH
1332
              directories to add to pkg-config's search path
1333
  PKG_CONFIG_LIBDIR
1334
              path overriding pkg-config's built-in search path
1335
  SNDFILE_CFLAGS
1336
              C compiler flags for SNDFILE, overriding pkg-config
1337
  SNDFILE_LIBS
1338
              linker flags for SNDFILE, overriding pkg-config
1339

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

    
1343
Report bugs to <cannam@all-day-breakfast.com>.
1344
_ACEOF
1345
ac_status=$?
1346
fi
1347

    
1348
if test "$ac_init_help" = "recursive"; then
1349
  # If there are subdirs, report their specific --help.
1350
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1351
    test -d "$ac_dir" ||
1352
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1353
      continue
1354
    ac_builddir=.
1355

    
1356
case "$ac_dir" in
1357
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1358
*)
1359
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1360
  # A ".." for each directory in $ac_dir_suffix.
1361
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1362
  case $ac_top_builddir_sub in
1363
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1364
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1365
  esac ;;
1366
esac
1367
ac_abs_top_builddir=$ac_pwd
1368
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1369
# for backward compatibility:
1370
ac_top_builddir=$ac_top_build_prefix
1371

    
1372
case $srcdir in
1373
  .)  # We are building in place.
1374
    ac_srcdir=.
1375
    ac_top_srcdir=$ac_top_builddir_sub
1376
    ac_abs_top_srcdir=$ac_pwd ;;
1377
  [\\/]* | ?:[\\/]* )  # Absolute name.
1378
    ac_srcdir=$srcdir$ac_dir_suffix;
1379
    ac_top_srcdir=$srcdir
1380
    ac_abs_top_srcdir=$srcdir ;;
1381
  *) # Relative name.
1382
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1383
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1384
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1385
esac
1386
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1387

    
1388
    cd "$ac_dir" || { ac_status=$?; continue; }
1389
    # Check for guested configure.
1390
    if test -f "$ac_srcdir/configure.gnu"; then
1391
      echo &&
1392
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1393
    elif test -f "$ac_srcdir/configure"; then
1394
      echo &&
1395
      $SHELL "$ac_srcdir/configure" --help=recursive
1396
    else
1397
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1398
    fi || ac_status=$?
1399
    cd "$ac_pwd" || { ac_status=$?; break; }
1400
  done
1401
fi
1402

    
1403
test -n "$ac_init_help" && exit $ac_status
1404
if $ac_init_version; then
1405
  cat <<\_ACEOF
1406
vamp-plugin-sdk configure 2.8
1407
generated by GNU Autoconf 2.69
1408

    
1409
Copyright (C) 2012 Free Software Foundation, Inc.
1410
This configure script is free software; the Free Software Foundation
1411
gives unlimited permission to copy, distribute and modify it.
1412
_ACEOF
1413
  exit
1414
fi
1415

    
1416
## ------------------------ ##
1417
## Autoconf initialization. ##
1418
## ------------------------ ##
1419

    
1420
# ac_fn_cxx_try_compile LINENO
1421
# ----------------------------
1422
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1423
ac_fn_cxx_try_compile ()
1424
{
1425
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1426
  rm -f conftest.$ac_objext
1427
  if { { ac_try="$ac_compile"
1428
case "(($ac_try" in
1429
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1430
  *) ac_try_echo=$ac_try;;
1431
esac
1432
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1433
$as_echo "$ac_try_echo"; } >&5
1434
  (eval "$ac_compile") 2>conftest.err
1435
  ac_status=$?
1436
  if test -s conftest.err; then
1437
    grep -v '^ *+' conftest.err >conftest.er1
1438
    cat conftest.er1 >&5
1439
    mv -f conftest.er1 conftest.err
1440
  fi
1441
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1442
  test $ac_status = 0; } && {
1443
	 test -z "$ac_cxx_werror_flag" ||
1444
	 test ! -s conftest.err
1445
       } && test -s conftest.$ac_objext; then :
1446
  ac_retval=0
1447
else
1448
  $as_echo "$as_me: failed program was:" >&5
1449
sed 's/^/| /' conftest.$ac_ext >&5
1450

    
1451
	ac_retval=1
1452
fi
1453
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1454
  as_fn_set_status $ac_retval
1455

    
1456
} # ac_fn_cxx_try_compile
1457

    
1458
# ac_fn_c_try_compile LINENO
1459
# --------------------------
1460
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1461
ac_fn_c_try_compile ()
1462
{
1463
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1464
  rm -f conftest.$ac_objext
1465
  if { { ac_try="$ac_compile"
1466
case "(($ac_try" in
1467
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1468
  *) ac_try_echo=$ac_try;;
1469
esac
1470
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1471
$as_echo "$ac_try_echo"; } >&5
1472
  (eval "$ac_compile") 2>conftest.err
1473
  ac_status=$?
1474
  if test -s conftest.err; then
1475
    grep -v '^ *+' conftest.err >conftest.er1
1476
    cat conftest.er1 >&5
1477
    mv -f conftest.er1 conftest.err
1478
  fi
1479
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1480
  test $ac_status = 0; } && {
1481
	 test -z "$ac_c_werror_flag" ||
1482
	 test ! -s conftest.err
1483
       } && test -s conftest.$ac_objext; then :
1484
  ac_retval=0
1485
else
1486
  $as_echo "$as_me: failed program was:" >&5
1487
sed 's/^/| /' conftest.$ac_ext >&5
1488

    
1489
	ac_retval=1
1490
fi
1491
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1492
  as_fn_set_status $ac_retval
1493

    
1494
} # ac_fn_c_try_compile
1495

    
1496
# ac_fn_c_try_cpp LINENO
1497
# ----------------------
1498
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1499
ac_fn_c_try_cpp ()
1500
{
1501
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1502
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1503
case "(($ac_try" in
1504
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1505
  *) ac_try_echo=$ac_try;;
1506
esac
1507
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1508
$as_echo "$ac_try_echo"; } >&5
1509
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1510
  ac_status=$?
1511
  if test -s conftest.err; then
1512
    grep -v '^ *+' conftest.err >conftest.er1
1513
    cat conftest.er1 >&5
1514
    mv -f conftest.er1 conftest.err
1515
  fi
1516
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1517
  test $ac_status = 0; } > conftest.i && {
1518
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1519
	 test ! -s conftest.err
1520
       }; then :
1521
  ac_retval=0
1522
else
1523
  $as_echo "$as_me: failed program was:" >&5
1524
sed 's/^/| /' conftest.$ac_ext >&5
1525

    
1526
    ac_retval=1
1527
fi
1528
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1529
  as_fn_set_status $ac_retval
1530

    
1531
} # ac_fn_c_try_cpp
1532

    
1533
# ac_fn_c_try_run LINENO
1534
# ----------------------
1535
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1536
# that executables *can* be run.
1537
ac_fn_c_try_run ()
1538
{
1539
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1540
  if { { ac_try="$ac_link"
1541
case "(($ac_try" in
1542
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1543
  *) ac_try_echo=$ac_try;;
1544
esac
1545
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1546
$as_echo "$ac_try_echo"; } >&5
1547
  (eval "$ac_link") 2>&5
1548
  ac_status=$?
1549
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1550
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1551
  { { case "(($ac_try" in
1552
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1553
  *) ac_try_echo=$ac_try;;
1554
esac
1555
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1556
$as_echo "$ac_try_echo"; } >&5
1557
  (eval "$ac_try") 2>&5
1558
  ac_status=$?
1559
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1560
  test $ac_status = 0; }; }; then :
1561
  ac_retval=0
1562
else
1563
  $as_echo "$as_me: program exited with status $ac_status" >&5
1564
       $as_echo "$as_me: failed program was:" >&5
1565
sed 's/^/| /' conftest.$ac_ext >&5
1566

    
1567
       ac_retval=$ac_status
1568
fi
1569
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1570
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1571
  as_fn_set_status $ac_retval
1572

    
1573
} # ac_fn_c_try_run
1574

    
1575
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1576
# -------------------------------------------------------
1577
# Tests whether HEADER exists and can be compiled using the include files in
1578
# INCLUDES, setting the cache variable VAR accordingly.
1579
ac_fn_c_check_header_compile ()
1580
{
1581
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1583
$as_echo_n "checking for $2... " >&6; }
1584
if eval \${$3+:} false; then :
1585
  $as_echo_n "(cached) " >&6
1586
else
1587
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1588
/* end confdefs.h.  */
1589
$4
1590
#include <$2>
1591
_ACEOF
1592
if ac_fn_c_try_compile "$LINENO"; then :
1593
  eval "$3=yes"
1594
else
1595
  eval "$3=no"
1596
fi
1597
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1598
fi
1599
eval ac_res=\$$3
1600
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1601
$as_echo "$ac_res" >&6; }
1602
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1603

    
1604
} # ac_fn_c_check_header_compile
1605

    
1606
# ac_fn_c_try_link LINENO
1607
# -----------------------
1608
# Try to link conftest.$ac_ext, and return whether this succeeded.
1609
ac_fn_c_try_link ()
1610
{
1611
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612
  rm -f conftest.$ac_objext conftest$ac_exeext
1613
  if { { ac_try="$ac_link"
1614
case "(($ac_try" in
1615
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616
  *) ac_try_echo=$ac_try;;
1617
esac
1618
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619
$as_echo "$ac_try_echo"; } >&5
1620
  (eval "$ac_link") 2>conftest.err
1621
  ac_status=$?
1622
  if test -s conftest.err; then
1623
    grep -v '^ *+' conftest.err >conftest.er1
1624
    cat conftest.er1 >&5
1625
    mv -f conftest.er1 conftest.err
1626
  fi
1627
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628
  test $ac_status = 0; } && {
1629
	 test -z "$ac_c_werror_flag" ||
1630
	 test ! -s conftest.err
1631
       } && test -s conftest$ac_exeext && {
1632
	 test "$cross_compiling" = yes ||
1633
	 test -x conftest$ac_exeext
1634
       }; then :
1635
  ac_retval=0
1636
else
1637
  $as_echo "$as_me: failed program was:" >&5
1638
sed 's/^/| /' conftest.$ac_ext >&5
1639

    
1640
	ac_retval=1
1641
fi
1642
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1643
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1644
  # interfere with the next link command; also delete a directory that is
1645
  # left behind by Apple's compiler.  We do this before executing the actions.
1646
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1647
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648
  as_fn_set_status $ac_retval
1649

    
1650
} # ac_fn_c_try_link
1651
cat >config.log <<_ACEOF
1652
This file contains any messages produced by compilers while
1653
running configure, to aid debugging if configure makes a mistake.
1654

    
1655
It was created by vamp-plugin-sdk $as_me 2.8, which was
1656
generated by GNU Autoconf 2.69.  Invocation command line was
1657

    
1658
  $ $0 $@
1659

    
1660
_ACEOF
1661
exec 5>>config.log
1662
{
1663
cat <<_ASUNAME
1664
## --------- ##
1665
## Platform. ##
1666
## --------- ##
1667

    
1668
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1669
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1670
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1671
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1672
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1673

    
1674
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1675
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1676

    
1677
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1678
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1679
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1680
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1681
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1682
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1683
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1684

    
1685
_ASUNAME
1686

    
1687
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1688
for as_dir in $PATH
1689
do
1690
  IFS=$as_save_IFS
1691
  test -z "$as_dir" && as_dir=.
1692
    $as_echo "PATH: $as_dir"
1693
  done
1694
IFS=$as_save_IFS
1695

    
1696
} >&5
1697

    
1698
cat >&5 <<_ACEOF
1699

    
1700

    
1701
## ----------- ##
1702
## Core tests. ##
1703
## ----------- ##
1704

    
1705
_ACEOF
1706

    
1707

    
1708
# Keep a trace of the command line.
1709
# Strip out --no-create and --no-recursion so they do not pile up.
1710
# Strip out --silent because we don't want to record it for future runs.
1711
# Also quote any args containing shell meta-characters.
1712
# Make two passes to allow for proper duplicate-argument suppression.
1713
ac_configure_args=
1714
ac_configure_args0=
1715
ac_configure_args1=
1716
ac_must_keep_next=false
1717
for ac_pass in 1 2
1718
do
1719
  for ac_arg
1720
  do
1721
    case $ac_arg in
1722
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1723
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1724
    | -silent | --silent | --silen | --sile | --sil)
1725
      continue ;;
1726
    *\'*)
1727
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1728
    esac
1729
    case $ac_pass in
1730
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1731
    2)
1732
      as_fn_append ac_configure_args1 " '$ac_arg'"
1733
      if test $ac_must_keep_next = true; then
1734
	ac_must_keep_next=false # Got value, back to normal.
1735
      else
1736
	case $ac_arg in
1737
	  *=* | --config-cache | -C | -disable-* | --disable-* \
1738
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1739
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1740
	  | -with-* | --with-* | -without-* | --without-* | --x)
1741
	    case "$ac_configure_args0 " in
1742
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1743
	    esac
1744
	    ;;
1745
	  -* ) ac_must_keep_next=true ;;
1746
	esac
1747
      fi
1748
      as_fn_append ac_configure_args " '$ac_arg'"
1749
      ;;
1750
    esac
1751
  done
1752
done
1753
{ ac_configure_args0=; unset ac_configure_args0;}
1754
{ ac_configure_args1=; unset ac_configure_args1;}
1755

    
1756
# When interrupted or exit'd, cleanup temporary files, and complete
1757
# config.log.  We remove comments because anyway the quotes in there
1758
# would cause problems or look ugly.
1759
# WARNING: Use '\'' to represent an apostrophe within the trap.
1760
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1761
trap 'exit_status=$?
1762
  # Save into config.log some information that might help in debugging.
1763
  {
1764
    echo
1765

    
1766
    $as_echo "## ---------------- ##
1767
## Cache variables. ##
1768
## ---------------- ##"
1769
    echo
1770
    # The following way of writing the cache mishandles newlines in values,
1771
(
1772
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1773
    eval ac_val=\$$ac_var
1774
    case $ac_val in #(
1775
    *${as_nl}*)
1776
      case $ac_var in #(
1777
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1778
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1779
      esac
1780
      case $ac_var in #(
1781
      _ | IFS | as_nl) ;; #(
1782
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1783
      *) { eval $ac_var=; unset $ac_var;} ;;
1784
      esac ;;
1785
    esac
1786
  done
1787
  (set) 2>&1 |
1788
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1789
    *${as_nl}ac_space=\ *)
1790
      sed -n \
1791
	"s/'\''/'\''\\\\'\'''\''/g;
1792
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1793
      ;; #(
1794
    *)
1795
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1796
      ;;
1797
    esac |
1798
    sort
1799
)
1800
    echo
1801

    
1802
    $as_echo "## ----------------- ##
1803
## Output variables. ##
1804
## ----------------- ##"
1805
    echo
1806
    for ac_var in $ac_subst_vars
1807
    do
1808
      eval ac_val=\$$ac_var
1809
      case $ac_val in
1810
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1811
      esac
1812
      $as_echo "$ac_var='\''$ac_val'\''"
1813
    done | sort
1814
    echo
1815

    
1816
    if test -n "$ac_subst_files"; then
1817
      $as_echo "## ------------------- ##
1818
## File substitutions. ##
1819
## ------------------- ##"
1820
      echo
1821
      for ac_var in $ac_subst_files
1822
      do
1823
	eval ac_val=\$$ac_var
1824
	case $ac_val in
1825
	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1826
	esac
1827
	$as_echo "$ac_var='\''$ac_val'\''"
1828
      done | sort
1829
      echo
1830
    fi
1831

    
1832
    if test -s confdefs.h; then
1833
      $as_echo "## ----------- ##
1834
## confdefs.h. ##
1835
## ----------- ##"
1836
      echo
1837
      cat confdefs.h
1838
      echo
1839
    fi
1840
    test "$ac_signal" != 0 &&
1841
      $as_echo "$as_me: caught signal $ac_signal"
1842
    $as_echo "$as_me: exit $exit_status"
1843
  } >&5
1844
  rm -f core *.core core.conftest.* &&
1845
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1846
    exit $exit_status
1847
' 0
1848
for ac_signal in 1 2 13 15; do
1849
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1850
done
1851
ac_signal=0
1852

    
1853
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1854
rm -f -r conftest* confdefs.h
1855

    
1856
$as_echo "/* confdefs.h */" > confdefs.h
1857

    
1858
# Predefined preprocessor variables.
1859

    
1860
cat >>confdefs.h <<_ACEOF
1861
#define PACKAGE_NAME "$PACKAGE_NAME"
1862
_ACEOF
1863

    
1864
cat >>confdefs.h <<_ACEOF
1865
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1866
_ACEOF
1867

    
1868
cat >>confdefs.h <<_ACEOF
1869
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1870
_ACEOF
1871

    
1872
cat >>confdefs.h <<_ACEOF
1873
#define PACKAGE_STRING "$PACKAGE_STRING"
1874
_ACEOF
1875

    
1876
cat >>confdefs.h <<_ACEOF
1877
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1878
_ACEOF
1879

    
1880
cat >>confdefs.h <<_ACEOF
1881
#define PACKAGE_URL "$PACKAGE_URL"
1882
_ACEOF
1883

    
1884

    
1885
# Let the site file select an alternate cache file if it wants to.
1886
# Prefer an explicitly selected file to automatically selected ones.
1887
ac_site_file1=NONE
1888
ac_site_file2=NONE
1889
if test -n "$CONFIG_SITE"; then
1890
  # We do not want a PATH search for config.site.
1891
  case $CONFIG_SITE in #((
1892
    -*)  ac_site_file1=./$CONFIG_SITE;;
1893
    */*) ac_site_file1=$CONFIG_SITE;;
1894
    *)   ac_site_file1=./$CONFIG_SITE;;
1895
  esac
1896
elif test "x$prefix" != xNONE; then
1897
  ac_site_file1=$prefix/share/config.site
1898
  ac_site_file2=$prefix/etc/config.site
1899
else
1900
  ac_site_file1=$ac_default_prefix/share/config.site
1901
  ac_site_file2=$ac_default_prefix/etc/config.site
1902
fi
1903
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1904
do
1905
  test "x$ac_site_file" = xNONE && continue
1906
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1907
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1908
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1909
    sed 's/^/| /' "$ac_site_file" >&5
1910
    . "$ac_site_file" \
1911
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1912
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1913
as_fn_error $? "failed to load site script $ac_site_file
1914
See \`config.log' for more details" "$LINENO" 5; }
1915
  fi
1916
done
1917

    
1918
if test -r "$cache_file"; then
1919
  # Some versions of bash will fail to source /dev/null (special files
1920
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
1921
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1922
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1923
$as_echo "$as_me: loading cache $cache_file" >&6;}
1924
    case $cache_file in
1925
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1926
      *)                      . "./$cache_file";;
1927
    esac
1928
  fi
1929
else
1930
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1931
$as_echo "$as_me: creating cache $cache_file" >&6;}
1932
  >$cache_file
1933
fi
1934

    
1935
# Check that the precious variables saved in the cache have kept the same
1936
# value.
1937
ac_cache_corrupted=false
1938
for ac_var in $ac_precious_vars; do
1939
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1940
  eval ac_new_set=\$ac_env_${ac_var}_set
1941
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1942
  eval ac_new_val=\$ac_env_${ac_var}_value
1943
  case $ac_old_set,$ac_new_set in
1944
    set,)
1945
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1946
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1947
      ac_cache_corrupted=: ;;
1948
    ,set)
1949
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1950
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1951
      ac_cache_corrupted=: ;;
1952
    ,);;
1953
    *)
1954
      if test "x$ac_old_val" != "x$ac_new_val"; then
1955
	# differences in whitespace do not lead to failure.
1956
	ac_old_val_w=`echo x $ac_old_val`
1957
	ac_new_val_w=`echo x $ac_new_val`
1958
	if test "$ac_old_val_w" != "$ac_new_val_w"; then
1959
	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1960
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1961
	  ac_cache_corrupted=:
1962
	else
1963
	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1964
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1965
	  eval $ac_var=\$ac_old_val
1966
	fi
1967
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
1968
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1969
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
1970
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1971
      fi;;
1972
  esac
1973
  # Pass precious variables to config.status.
1974
  if test "$ac_new_set" = set; then
1975
    case $ac_new_val in
1976
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1977
    *) ac_arg=$ac_var=$ac_new_val ;;
1978
    esac
1979
    case " $ac_configure_args " in
1980
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1981
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1982
    esac
1983
  fi
1984
done
1985
if $ac_cache_corrupted; then
1986
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1987
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1988
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1989
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1990
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1991
fi
1992
## -------------------- ##
1993
## Main body of script. ##
1994
## -------------------- ##
1995

    
1996
ac_ext=c
1997
ac_cpp='$CPP $CPPFLAGS'
1998
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1999
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2000
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2001

    
2002

    
2003

    
2004

    
2005
ac_ext=cpp
2006
ac_cpp='$CXXCPP $CPPFLAGS'
2007
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2008
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2009
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2010
if test -z "$CXX"; then
2011
  if test -n "$CCC"; then
2012
    CXX=$CCC
2013
  else
2014
    if test -n "$ac_tool_prefix"; then
2015
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2016
  do
2017
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2018
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2019
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2020
$as_echo_n "checking for $ac_word... " >&6; }
2021
if ${ac_cv_prog_CXX+:} false; then :
2022
  $as_echo_n "(cached) " >&6
2023
else
2024
  if test -n "$CXX"; then
2025
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2026
else
2027
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028
for as_dir in $PATH
2029
do
2030
  IFS=$as_save_IFS
2031
  test -z "$as_dir" && as_dir=.
2032
    for ac_exec_ext in '' $ac_executable_extensions; do
2033
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2034
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2035
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2036
    break 2
2037
  fi
2038
done
2039
  done
2040
IFS=$as_save_IFS
2041

    
2042
fi
2043
fi
2044
CXX=$ac_cv_prog_CXX
2045
if test -n "$CXX"; then
2046
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2047
$as_echo "$CXX" >&6; }
2048
else
2049
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2050
$as_echo "no" >&6; }
2051
fi
2052

    
2053

    
2054
    test -n "$CXX" && break
2055
  done
2056
fi
2057
if test -z "$CXX"; then
2058
  ac_ct_CXX=$CXX
2059
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2060
do
2061
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2062
set dummy $ac_prog; ac_word=$2
2063
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2064
$as_echo_n "checking for $ac_word... " >&6; }
2065
if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2066
  $as_echo_n "(cached) " >&6
2067
else
2068
  if test -n "$ac_ct_CXX"; then
2069
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2070
else
2071
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2072
for as_dir in $PATH
2073
do
2074
  IFS=$as_save_IFS
2075
  test -z "$as_dir" && as_dir=.
2076
    for ac_exec_ext in '' $ac_executable_extensions; do
2077
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2078
    ac_cv_prog_ac_ct_CXX="$ac_prog"
2079
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2080
    break 2
2081
  fi
2082
done
2083
  done
2084
IFS=$as_save_IFS
2085

    
2086
fi
2087
fi
2088
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2089
if test -n "$ac_ct_CXX"; then
2090
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2091
$as_echo "$ac_ct_CXX" >&6; }
2092
else
2093
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2094
$as_echo "no" >&6; }
2095
fi
2096

    
2097

    
2098
  test -n "$ac_ct_CXX" && break
2099
done
2100

    
2101
  if test "x$ac_ct_CXX" = x; then
2102
    CXX="g++"
2103
  else
2104
    case $cross_compiling:$ac_tool_warned in
2105
yes:)
2106
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2107
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2108
ac_tool_warned=yes ;;
2109
esac
2110
    CXX=$ac_ct_CXX
2111
  fi
2112
fi
2113

    
2114
  fi
2115
fi
2116
# Provide some information about the compiler.
2117
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2118
set X $ac_compile
2119
ac_compiler=$2
2120
for ac_option in --version -v -V -qversion; do
2121
  { { ac_try="$ac_compiler $ac_option >&5"
2122
case "(($ac_try" in
2123
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2124
  *) ac_try_echo=$ac_try;;
2125
esac
2126
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2127
$as_echo "$ac_try_echo"; } >&5
2128
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2129
  ac_status=$?
2130
  if test -s conftest.err; then
2131
    sed '10a\
2132
... rest of stderr output deleted ...
2133
         10q' conftest.err >conftest.er1
2134
    cat conftest.er1 >&5
2135
  fi
2136
  rm -f conftest.er1 conftest.err
2137
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2138
  test $ac_status = 0; }
2139
done
2140

    
2141
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142
/* end confdefs.h.  */
2143

    
2144
int
2145
main ()
2146
{
2147

    
2148
  ;
2149
  return 0;
2150
}
2151
_ACEOF
2152
ac_clean_files_save=$ac_clean_files
2153
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2154
# Try to create an executable without -o first, disregard a.out.
2155
# It will help us diagnose broken compilers, and finding out an intuition
2156
# of exeext.
2157
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2158
$as_echo_n "checking whether the C++ compiler works... " >&6; }
2159
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2160

    
2161
# The possible output files:
2162
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2163

    
2164
ac_rmfiles=
2165
for ac_file in $ac_files
2166
do
2167
  case $ac_file in
2168
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2169
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2170
  esac
2171
done
2172
rm -f $ac_rmfiles
2173

    
2174
if { { ac_try="$ac_link_default"
2175
case "(($ac_try" in
2176
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2177
  *) ac_try_echo=$ac_try;;
2178
esac
2179
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2180
$as_echo "$ac_try_echo"; } >&5
2181
  (eval "$ac_link_default") 2>&5
2182
  ac_status=$?
2183
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2184
  test $ac_status = 0; }; then :
2185
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2186
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2187
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2188
# so that the user can short-circuit this test for compilers unknown to
2189
# Autoconf.
2190
for ac_file in $ac_files ''
2191
do
2192
  test -f "$ac_file" || continue
2193
  case $ac_file in
2194
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2195
	;;
2196
    [ab].out )
2197
	# We found the default executable, but exeext='' is most
2198
	# certainly right.
2199
	break;;
2200
    *.* )
2201
	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2202
	then :; else
2203
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2204
	fi
2205
	# We set ac_cv_exeext here because the later test for it is not
2206
	# safe: cross compilers may not add the suffix if given an `-o'
2207
	# argument, so we may need to know it at that point already.
2208
	# Even if this section looks crufty: it has the advantage of
2209
	# actually working.
2210
	break;;
2211
    * )
2212
	break;;
2213
  esac
2214
done
2215
test "$ac_cv_exeext" = no && ac_cv_exeext=
2216

    
2217
else
2218
  ac_file=''
2219
fi
2220
if test -z "$ac_file"; then :
2221
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2222
$as_echo "no" >&6; }
2223
$as_echo "$as_me: failed program was:" >&5
2224
sed 's/^/| /' conftest.$ac_ext >&5
2225

    
2226
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2227
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2228
as_fn_error 77 "C++ compiler cannot create executables
2229
See \`config.log' for more details" "$LINENO" 5; }
2230
else
2231
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2232
$as_echo "yes" >&6; }
2233
fi
2234
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
2235
$as_echo_n "checking for C++ compiler default output file name... " >&6; }
2236
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2237
$as_echo "$ac_file" >&6; }
2238
ac_exeext=$ac_cv_exeext
2239

    
2240
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2241
ac_clean_files=$ac_clean_files_save
2242
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2243
$as_echo_n "checking for suffix of executables... " >&6; }
2244
if { { ac_try="$ac_link"
2245
case "(($ac_try" in
2246
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2247
  *) ac_try_echo=$ac_try;;
2248
esac
2249
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2250
$as_echo "$ac_try_echo"; } >&5
2251
  (eval "$ac_link") 2>&5
2252
  ac_status=$?
2253
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2254
  test $ac_status = 0; }; then :
2255
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2256
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2257
# work properly (i.e., refer to `conftest.exe'), while it won't with
2258
# `rm'.
2259
for ac_file in conftest.exe conftest conftest.*; do
2260
  test -f "$ac_file" || continue
2261
  case $ac_file in
2262
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2263
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2264
	  break;;
2265
    * ) break;;
2266
  esac
2267
done
2268
else
2269
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2270
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2271
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2272
See \`config.log' for more details" "$LINENO" 5; }
2273
fi
2274
rm -f conftest conftest$ac_cv_exeext
2275
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2276
$as_echo "$ac_cv_exeext" >&6; }
2277

    
2278
rm -f conftest.$ac_ext
2279
EXEEXT=$ac_cv_exeext
2280
ac_exeext=$EXEEXT
2281
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2282
/* end confdefs.h.  */
2283
#include <stdio.h>
2284
int
2285
main ()
2286
{
2287
FILE *f = fopen ("conftest.out", "w");
2288
 return ferror (f) || fclose (f) != 0;
2289

    
2290
  ;
2291
  return 0;
2292
}
2293
_ACEOF
2294
ac_clean_files="$ac_clean_files conftest.out"
2295
# Check that the compiler produces executables we can run.  If not, either
2296
# the compiler is broken, or we cross compile.
2297
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2298
$as_echo_n "checking whether we are cross compiling... " >&6; }
2299
if test "$cross_compiling" != yes; then
2300
  { { ac_try="$ac_link"
2301
case "(($ac_try" in
2302
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2303
  *) ac_try_echo=$ac_try;;
2304
esac
2305
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2306
$as_echo "$ac_try_echo"; } >&5
2307
  (eval "$ac_link") 2>&5
2308
  ac_status=$?
2309
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2310
  test $ac_status = 0; }
2311
  if { ac_try='./conftest$ac_cv_exeext'
2312
  { { case "(($ac_try" in
2313
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2314
  *) ac_try_echo=$ac_try;;
2315
esac
2316
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2317
$as_echo "$ac_try_echo"; } >&5
2318
  (eval "$ac_try") 2>&5
2319
  ac_status=$?
2320
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2321
  test $ac_status = 0; }; }; then
2322
    cross_compiling=no
2323
  else
2324
    if test "$cross_compiling" = maybe; then
2325
	cross_compiling=yes
2326
    else
2327
	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2328
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2329
as_fn_error $? "cannot run C++ compiled programs.
2330
If you meant to cross compile, use \`--host'.
2331
See \`config.log' for more details" "$LINENO" 5; }
2332
    fi
2333
  fi
2334
fi
2335
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2336
$as_echo "$cross_compiling" >&6; }
2337

    
2338
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2339
ac_clean_files=$ac_clean_files_save
2340
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2341
$as_echo_n "checking for suffix of object files... " >&6; }
2342
if ${ac_cv_objext+:} false; then :
2343
  $as_echo_n "(cached) " >&6
2344
else
2345
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2346
/* end confdefs.h.  */
2347

    
2348
int
2349
main ()
2350
{
2351

    
2352
  ;
2353
  return 0;
2354
}
2355
_ACEOF
2356
rm -f conftest.o conftest.obj
2357
if { { ac_try="$ac_compile"
2358
case "(($ac_try" in
2359
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2360
  *) ac_try_echo=$ac_try;;
2361
esac
2362
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2363
$as_echo "$ac_try_echo"; } >&5
2364
  (eval "$ac_compile") 2>&5
2365
  ac_status=$?
2366
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2367
  test $ac_status = 0; }; then :
2368
  for ac_file in conftest.o conftest.obj conftest.*; do
2369
  test -f "$ac_file" || continue;
2370
  case $ac_file in
2371
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2372
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2373
       break;;
2374
  esac
2375
done
2376
else
2377
  $as_echo "$as_me: failed program was:" >&5
2378
sed 's/^/| /' conftest.$ac_ext >&5
2379

    
2380
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2381
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2382
as_fn_error $? "cannot compute suffix of object files: cannot compile
2383
See \`config.log' for more details" "$LINENO" 5; }
2384
fi
2385
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2386
fi
2387
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2388
$as_echo "$ac_cv_objext" >&6; }
2389
OBJEXT=$ac_cv_objext
2390
ac_objext=$OBJEXT
2391
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
2392
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
2393
if ${ac_cv_cxx_compiler_gnu+:} false; then :
2394
  $as_echo_n "(cached) " >&6
2395
else
2396
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2397
/* end confdefs.h.  */
2398

    
2399
int
2400
main ()
2401
{
2402
#ifndef __GNUC__
2403
       choke me
2404
#endif
2405

    
2406
  ;
2407
  return 0;
2408
}
2409
_ACEOF
2410
if ac_fn_cxx_try_compile "$LINENO"; then :
2411
  ac_compiler_gnu=yes
2412
else
2413
  ac_compiler_gnu=no
2414
fi
2415
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2416
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2417

    
2418
fi
2419
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
2420
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
2421
if test $ac_compiler_gnu = yes; then
2422
  GXX=yes
2423
else
2424
  GXX=
2425
fi
2426
ac_test_CXXFLAGS=${CXXFLAGS+set}
2427
ac_save_CXXFLAGS=$CXXFLAGS
2428
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
2429
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
2430
if ${ac_cv_prog_cxx_g+:} false; then :
2431
  $as_echo_n "(cached) " >&6
2432
else
2433
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2434
   ac_cxx_werror_flag=yes
2435
   ac_cv_prog_cxx_g=no
2436
   CXXFLAGS="-g"
2437
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2438
/* end confdefs.h.  */
2439

    
2440
int
2441
main ()
2442
{
2443

    
2444
  ;
2445
  return 0;
2446
}
2447
_ACEOF
2448
if ac_fn_cxx_try_compile "$LINENO"; then :
2449
  ac_cv_prog_cxx_g=yes
2450
else
2451
  CXXFLAGS=""
2452
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2453
/* end confdefs.h.  */
2454

    
2455
int
2456
main ()
2457
{
2458

    
2459
  ;
2460
  return 0;
2461
}
2462
_ACEOF
2463
if ac_fn_cxx_try_compile "$LINENO"; then :
2464

    
2465
else
2466
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2467
	 CXXFLAGS="-g"
2468
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2469
/* end confdefs.h.  */
2470

    
2471
int
2472
main ()
2473
{
2474

    
2475
  ;
2476
  return 0;
2477
}
2478
_ACEOF
2479
if ac_fn_cxx_try_compile "$LINENO"; then :
2480
  ac_cv_prog_cxx_g=yes
2481
fi
2482
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2483
fi
2484
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2485
fi
2486
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2487
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2488
fi
2489
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
2490
$as_echo "$ac_cv_prog_cxx_g" >&6; }
2491
if test "$ac_test_CXXFLAGS" = set; then
2492
  CXXFLAGS=$ac_save_CXXFLAGS
2493
elif test $ac_cv_prog_cxx_g = yes; then
2494
  if test "$GXX" = yes; then
2495
    CXXFLAGS="-g -O2"
2496
  else
2497
    CXXFLAGS="-g"
2498
  fi
2499
else
2500
  if test "$GXX" = yes; then
2501
    CXXFLAGS="-O2"
2502
  else
2503
    CXXFLAGS=
2504
  fi
2505
fi
2506
ac_ext=c
2507
ac_cpp='$CPP $CPPFLAGS'
2508
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2509
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2510
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2511

    
2512
ac_ext=c
2513
ac_cpp='$CPP $CPPFLAGS'
2514
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2515
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2516
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2517
if test -n "$ac_tool_prefix"; then
2518
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2519
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2520
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2521
$as_echo_n "checking for $ac_word... " >&6; }
2522
if ${ac_cv_prog_CC+:} false; then :
2523
  $as_echo_n "(cached) " >&6
2524
else
2525
  if test -n "$CC"; then
2526
  ac_cv_prog_CC="$CC" # Let the user override the test.
2527
else
2528
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529
for as_dir in $PATH
2530
do
2531
  IFS=$as_save_IFS
2532
  test -z "$as_dir" && as_dir=.
2533
    for ac_exec_ext in '' $ac_executable_extensions; do
2534
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2535
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2536
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2537
    break 2
2538
  fi
2539
done
2540
  done
2541
IFS=$as_save_IFS
2542

    
2543
fi
2544
fi
2545
CC=$ac_cv_prog_CC
2546
if test -n "$CC"; then
2547
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2548
$as_echo "$CC" >&6; }
2549
else
2550
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2551
$as_echo "no" >&6; }
2552
fi
2553

    
2554

    
2555
fi
2556
if test -z "$ac_cv_prog_CC"; then
2557
  ac_ct_CC=$CC
2558
  # Extract the first word of "gcc", so it can be a program name with args.
2559
set dummy gcc; ac_word=$2
2560
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2561
$as_echo_n "checking for $ac_word... " >&6; }
2562
if ${ac_cv_prog_ac_ct_CC+:} false; then :
2563
  $as_echo_n "(cached) " >&6
2564
else
2565
  if test -n "$ac_ct_CC"; then
2566
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2567
else
2568
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569
for as_dir in $PATH
2570
do
2571
  IFS=$as_save_IFS
2572
  test -z "$as_dir" && as_dir=.
2573
    for ac_exec_ext in '' $ac_executable_extensions; do
2574
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2575
    ac_cv_prog_ac_ct_CC="gcc"
2576
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2577
    break 2
2578
  fi
2579
done
2580
  done
2581
IFS=$as_save_IFS
2582

    
2583
fi
2584
fi
2585
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2586
if test -n "$ac_ct_CC"; then
2587
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2588
$as_echo "$ac_ct_CC" >&6; }
2589
else
2590
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2591
$as_echo "no" >&6; }
2592
fi
2593

    
2594
  if test "x$ac_ct_CC" = x; then
2595
    CC=""
2596
  else
2597
    case $cross_compiling:$ac_tool_warned in
2598
yes:)
2599
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2600
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2601
ac_tool_warned=yes ;;
2602
esac
2603
    CC=$ac_ct_CC
2604
  fi
2605
else
2606
  CC="$ac_cv_prog_CC"
2607
fi
2608

    
2609
if test -z "$CC"; then
2610
          if test -n "$ac_tool_prefix"; then
2611
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2612
set dummy ${ac_tool_prefix}cc; ac_word=$2
2613
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2614
$as_echo_n "checking for $ac_word... " >&6; }
2615
if ${ac_cv_prog_CC+:} false; then :
2616
  $as_echo_n "(cached) " >&6
2617
else
2618
  if test -n "$CC"; then
2619
  ac_cv_prog_CC="$CC" # Let the user override the test.
2620
else
2621
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622
for as_dir in $PATH
2623
do
2624
  IFS=$as_save_IFS
2625
  test -z "$as_dir" && as_dir=.
2626
    for ac_exec_ext in '' $ac_executable_extensions; do
2627
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2628
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2629
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2630
    break 2
2631
  fi
2632
done
2633
  done
2634
IFS=$as_save_IFS
2635

    
2636
fi
2637
fi
2638
CC=$ac_cv_prog_CC
2639
if test -n "$CC"; then
2640
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2641
$as_echo "$CC" >&6; }
2642
else
2643
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2644
$as_echo "no" >&6; }
2645
fi
2646

    
2647

    
2648
  fi
2649
fi
2650
if test -z "$CC"; then
2651
  # Extract the first word of "cc", so it can be a program name with args.
2652
set dummy cc; ac_word=$2
2653
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2654
$as_echo_n "checking for $ac_word... " >&6; }
2655
if ${ac_cv_prog_CC+:} false; then :
2656
  $as_echo_n "(cached) " >&6
2657
else
2658
  if test -n "$CC"; then
2659
  ac_cv_prog_CC="$CC" # Let the user override the test.
2660
else
2661
  ac_prog_rejected=no
2662
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663
for as_dir in $PATH
2664
do
2665
  IFS=$as_save_IFS
2666
  test -z "$as_dir" && as_dir=.
2667
    for ac_exec_ext in '' $ac_executable_extensions; do
2668
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2669
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2670
       ac_prog_rejected=yes
2671
       continue
2672
     fi
2673
    ac_cv_prog_CC="cc"
2674
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2675
    break 2
2676
  fi
2677
done
2678
  done
2679
IFS=$as_save_IFS
2680

    
2681
if test $ac_prog_rejected = yes; then
2682
  # We found a bogon in the path, so make sure we never use it.
2683
  set dummy $ac_cv_prog_CC
2684
  shift
2685
  if test $# != 0; then
2686
    # We chose a different compiler from the bogus one.
2687
    # However, it has the same basename, so the bogon will be chosen
2688
    # first if we set CC to just the basename; use the full file name.
2689
    shift
2690
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2691
  fi
2692
fi
2693
fi
2694
fi
2695
CC=$ac_cv_prog_CC
2696
if test -n "$CC"; then
2697
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2698
$as_echo "$CC" >&6; }
2699
else
2700
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2701
$as_echo "no" >&6; }
2702
fi
2703

    
2704

    
2705
fi
2706
if test -z "$CC"; then
2707
  if test -n "$ac_tool_prefix"; then
2708
  for ac_prog in cl.exe
2709
  do
2710
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2711
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2712
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2713
$as_echo_n "checking for $ac_word... " >&6; }
2714
if ${ac_cv_prog_CC+:} false; then :
2715
  $as_echo_n "(cached) " >&6
2716
else
2717
  if test -n "$CC"; then
2718
  ac_cv_prog_CC="$CC" # Let the user override the test.
2719
else
2720
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2721
for as_dir in $PATH
2722
do
2723
  IFS=$as_save_IFS
2724
  test -z "$as_dir" && as_dir=.
2725
    for ac_exec_ext in '' $ac_executable_extensions; do
2726
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2727
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2728
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2729
    break 2
2730
  fi
2731
done
2732
  done
2733
IFS=$as_save_IFS
2734

    
2735
fi
2736
fi
2737
CC=$ac_cv_prog_CC
2738
if test -n "$CC"; then
2739
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2740
$as_echo "$CC" >&6; }
2741
else
2742
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2743
$as_echo "no" >&6; }
2744
fi
2745

    
2746

    
2747
    test -n "$CC" && break
2748
  done
2749
fi
2750
if test -z "$CC"; then
2751
  ac_ct_CC=$CC
2752
  for ac_prog in cl.exe
2753
do
2754
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2755
set dummy $ac_prog; ac_word=$2
2756
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2757
$as_echo_n "checking for $ac_word... " >&6; }
2758
if ${ac_cv_prog_ac_ct_CC+:} false; then :
2759
  $as_echo_n "(cached) " >&6
2760
else
2761
  if test -n "$ac_ct_CC"; then
2762
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2763
else
2764
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2765
for as_dir in $PATH
2766
do
2767
  IFS=$as_save_IFS
2768
  test -z "$as_dir" && as_dir=.
2769
    for ac_exec_ext in '' $ac_executable_extensions; do
2770
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2771
    ac_cv_prog_ac_ct_CC="$ac_prog"
2772
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2773
    break 2
2774
  fi
2775
done
2776
  done
2777
IFS=$as_save_IFS
2778

    
2779
fi
2780
fi
2781
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2782
if test -n "$ac_ct_CC"; then
2783
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2784
$as_echo "$ac_ct_CC" >&6; }
2785
else
2786
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2787
$as_echo "no" >&6; }
2788
fi
2789

    
2790

    
2791
  test -n "$ac_ct_CC" && break
2792
done
2793

    
2794
  if test "x$ac_ct_CC" = x; then
2795
    CC=""
2796
  else
2797
    case $cross_compiling:$ac_tool_warned in
2798
yes:)
2799
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2800
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2801
ac_tool_warned=yes ;;
2802
esac
2803
    CC=$ac_ct_CC
2804
  fi
2805
fi
2806

    
2807
fi
2808

    
2809

    
2810
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2811
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2812
as_fn_error $? "no acceptable C compiler found in \$PATH
2813
See \`config.log' for more details" "$LINENO" 5; }
2814

    
2815
# Provide some information about the compiler.
2816
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2817
set X $ac_compile
2818
ac_compiler=$2
2819
for ac_option in --version -v -V -qversion; do
2820
  { { ac_try="$ac_compiler $ac_option >&5"
2821
case "(($ac_try" in
2822
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2823
  *) ac_try_echo=$ac_try;;
2824
esac
2825
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2826
$as_echo "$ac_try_echo"; } >&5
2827
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2828
  ac_status=$?
2829
  if test -s conftest.err; then
2830
    sed '10a\
2831
... rest of stderr output deleted ...
2832
         10q' conftest.err >conftest.er1
2833
    cat conftest.er1 >&5
2834
  fi
2835
  rm -f conftest.er1 conftest.err
2836
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2837
  test $ac_status = 0; }
2838
done
2839

    
2840
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2841
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2842
if ${ac_cv_c_compiler_gnu+:} false; then :
2843
  $as_echo_n "(cached) " >&6
2844
else
2845
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2846
/* end confdefs.h.  */
2847

    
2848
int
2849
main ()
2850
{
2851
#ifndef __GNUC__
2852
       choke me
2853
#endif
2854

    
2855
  ;
2856
  return 0;
2857
}
2858
_ACEOF
2859
if ac_fn_c_try_compile "$LINENO"; then :
2860
  ac_compiler_gnu=yes
2861
else
2862
  ac_compiler_gnu=no
2863
fi
2864
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2865
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2866

    
2867
fi
2868
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2869
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2870
if test $ac_compiler_gnu = yes; then
2871
  GCC=yes
2872
else
2873
  GCC=
2874
fi
2875
ac_test_CFLAGS=${CFLAGS+set}
2876
ac_save_CFLAGS=$CFLAGS
2877
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2878
$as_echo_n "checking whether $CC accepts -g... " >&6; }
2879
if ${ac_cv_prog_cc_g+:} false; then :
2880
  $as_echo_n "(cached) " >&6
2881
else
2882
  ac_save_c_werror_flag=$ac_c_werror_flag
2883
   ac_c_werror_flag=yes
2884
   ac_cv_prog_cc_g=no
2885
   CFLAGS="-g"
2886
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2887
/* end confdefs.h.  */
2888

    
2889
int
2890
main ()
2891
{
2892

    
2893
  ;
2894
  return 0;
2895
}
2896
_ACEOF
2897
if ac_fn_c_try_compile "$LINENO"; then :
2898
  ac_cv_prog_cc_g=yes
2899
else
2900
  CFLAGS=""
2901
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2902
/* end confdefs.h.  */
2903

    
2904
int
2905
main ()
2906
{
2907

    
2908
  ;
2909
  return 0;
2910
}
2911
_ACEOF
2912
if ac_fn_c_try_compile "$LINENO"; then :
2913

    
2914
else
2915
  ac_c_werror_flag=$ac_save_c_werror_flag
2916
	 CFLAGS="-g"
2917
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2918
/* end confdefs.h.  */
2919

    
2920
int
2921
main ()
2922
{
2923

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

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

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

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

    
3027
fi
3028
# AC_CACHE_VAL
3029
case "x$ac_cv_prog_cc_c89" in
3030
  x)
3031
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3032
$as_echo "none needed" >&6; } ;;
3033
  xno)
3034
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3035
$as_echo "unsupported" >&6; } ;;
3036
  *)
3037
    CC="$CC $ac_cv_prog_cc_c89"
3038
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3039
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3040
esac
3041
if test "x$ac_cv_prog_cc_c89" != xno; then :
3042

    
3043
fi
3044

    
3045
ac_ext=c
3046
ac_cpp='$CPP $CPPFLAGS'
3047
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3048
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3049
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3050

    
3051

    
3052
ac_ext=c
3053
ac_cpp='$CPP $CPPFLAGS'
3054
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3055
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3056
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3057
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3058
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3059
# On Suns, sometimes $CPP names a directory.
3060
if test -n "$CPP" && test -d "$CPP"; then
3061
  CPP=
3062
fi
3063
if test -z "$CPP"; then
3064
  if ${ac_cv_prog_CPP+:} false; then :
3065
  $as_echo_n "(cached) " >&6
3066
else
3067
      # Double quotes because CPP needs to be expanded
3068
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3069
    do
3070
      ac_preproc_ok=false
3071
for ac_c_preproc_warn_flag in '' yes
3072
do
3073
  # Use a header file that comes with gcc, so configuring glibc
3074
  # with a fresh cross-compiler works.
3075
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3076
  # <limits.h> exists even on freestanding compilers.
3077
  # On the NeXT, cc -E runs the code through the compiler's parser,
3078
  # not just through cpp. "Syntax error" is here to catch this case.
3079
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3080
/* end confdefs.h.  */
3081
#ifdef __STDC__
3082
# include <limits.h>
3083
#else
3084
# include <assert.h>
3085
#endif
3086
		     Syntax error
3087
_ACEOF
3088
if ac_fn_c_try_cpp "$LINENO"; then :
3089

    
3090
else
3091
  # Broken: fails on valid input.
3092
continue
3093
fi
3094
rm -f conftest.err conftest.i conftest.$ac_ext
3095

    
3096
  # OK, works on sane cases.  Now check whether nonexistent headers
3097
  # can be detected and how.
3098
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3099
/* end confdefs.h.  */
3100
#include <ac_nonexistent.h>
3101
_ACEOF
3102
if ac_fn_c_try_cpp "$LINENO"; then :
3103
  # Broken: success on invalid input.
3104
continue
3105
else
3106
  # Passes both tests.
3107
ac_preproc_ok=:
3108
break
3109
fi
3110
rm -f conftest.err conftest.i conftest.$ac_ext
3111

    
3112
done
3113
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3114
rm -f conftest.i conftest.err conftest.$ac_ext
3115
if $ac_preproc_ok; then :
3116
  break
3117
fi
3118

    
3119
    done
3120
    ac_cv_prog_CPP=$CPP
3121

    
3122
fi
3123
  CPP=$ac_cv_prog_CPP
3124
else
3125
  ac_cv_prog_CPP=$CPP
3126
fi
3127
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3128
$as_echo "$CPP" >&6; }
3129
ac_preproc_ok=false
3130
for ac_c_preproc_warn_flag in '' yes
3131
do
3132
  # Use a header file that comes with gcc, so configuring glibc
3133
  # with a fresh cross-compiler works.
3134
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3135
  # <limits.h> exists even on freestanding compilers.
3136
  # On the NeXT, cc -E runs the code through the compiler's parser,
3137
  # not just through cpp. "Syntax error" is here to catch this case.
3138
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3139
/* end confdefs.h.  */
3140
#ifdef __STDC__
3141
# include <limits.h>
3142
#else
3143
# include <assert.h>
3144
#endif
3145
		     Syntax error
3146
_ACEOF
3147
if ac_fn_c_try_cpp "$LINENO"; then :
3148

    
3149
else
3150
  # Broken: fails on valid input.
3151
continue
3152
fi
3153
rm -f conftest.err conftest.i conftest.$ac_ext
3154

    
3155
  # OK, works on sane cases.  Now check whether nonexistent headers
3156
  # can be detected and how.
3157
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3158
/* end confdefs.h.  */
3159
#include <ac_nonexistent.h>
3160
_ACEOF
3161
if ac_fn_c_try_cpp "$LINENO"; then :
3162
  # Broken: success on invalid input.
3163
continue
3164
else
3165
  # Passes both tests.
3166
ac_preproc_ok=:
3167
break
3168
fi
3169
rm -f conftest.err conftest.i conftest.$ac_ext
3170

    
3171
done
3172
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3173
rm -f conftest.i conftest.err conftest.$ac_ext
3174
if $ac_preproc_ok; then :
3175

    
3176
else
3177
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3178
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3179
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3180
See \`config.log' for more details" "$LINENO" 5; }
3181
fi
3182

    
3183
ac_ext=c
3184
ac_cpp='$CPP $CPPFLAGS'
3185
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3186
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3187
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3188

    
3189

    
3190
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3191
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3192
if ${ac_cv_path_GREP+:} false; then :
3193
  $as_echo_n "(cached) " >&6
3194
else
3195
  if test -z "$GREP"; then
3196
  ac_path_GREP_found=false
3197
  # Loop through the user's path and test for each of PROGNAME-LIST
3198
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3200
do
3201
  IFS=$as_save_IFS
3202
  test -z "$as_dir" && as_dir=.
3203
    for ac_prog in grep ggrep; do
3204
    for ac_exec_ext in '' $ac_executable_extensions; do
3205
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3206
      as_fn_executable_p "$ac_path_GREP" || continue
3207
# Check for GNU ac_path_GREP and select it if it is found.
3208
  # Check for GNU $ac_path_GREP
3209
case `"$ac_path_GREP" --version 2>&1` in
3210
*GNU*)
3211
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3212
*)
3213
  ac_count=0
3214
  $as_echo_n 0123456789 >"conftest.in"
3215
  while :
3216
  do
3217
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3218
    mv "conftest.tmp" "conftest.in"
3219
    cp "conftest.in" "conftest.nl"
3220
    $as_echo 'GREP' >> "conftest.nl"
3221
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3222
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3223
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3224
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3225
      # Best one so far, save it but keep looking for a better one
3226
      ac_cv_path_GREP="$ac_path_GREP"
3227
      ac_path_GREP_max=$ac_count
3228
    fi
3229
    # 10*(2^10) chars as input seems more than enough
3230
    test $ac_count -gt 10 && break
3231
  done
3232
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3233
esac
3234

    
3235
      $ac_path_GREP_found && break 3
3236
    done
3237
  done
3238
  done
3239
IFS=$as_save_IFS
3240
  if test -z "$ac_cv_path_GREP"; then
3241
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3242
  fi
3243
else
3244
  ac_cv_path_GREP=$GREP
3245
fi
3246

    
3247
fi
3248
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3249
$as_echo "$ac_cv_path_GREP" >&6; }
3250
 GREP="$ac_cv_path_GREP"
3251

    
3252

    
3253
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3254
$as_echo_n "checking for egrep... " >&6; }
3255
if ${ac_cv_path_EGREP+:} false; then :
3256
  $as_echo_n "(cached) " >&6
3257
else
3258
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3259
   then ac_cv_path_EGREP="$GREP -E"
3260
   else
3261
     if test -z "$EGREP"; then
3262
  ac_path_EGREP_found=false
3263
  # Loop through the user's path and test for each of PROGNAME-LIST
3264
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3265
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3266
do
3267
  IFS=$as_save_IFS
3268
  test -z "$as_dir" && as_dir=.
3269
    for ac_prog in egrep; do
3270
    for ac_exec_ext in '' $ac_executable_extensions; do
3271
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3272
      as_fn_executable_p "$ac_path_EGREP" || continue
3273
# Check for GNU ac_path_EGREP and select it if it is found.
3274
  # Check for GNU $ac_path_EGREP
3275
case `"$ac_path_EGREP" --version 2>&1` in
3276
*GNU*)
3277
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3278
*)
3279
  ac_count=0
3280
  $as_echo_n 0123456789 >"conftest.in"
3281
  while :
3282
  do
3283
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3284
    mv "conftest.tmp" "conftest.in"
3285
    cp "conftest.in" "conftest.nl"
3286
    $as_echo 'EGREP' >> "conftest.nl"
3287
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3288
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3289
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3290
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3291
      # Best one so far, save it but keep looking for a better one
3292
      ac_cv_path_EGREP="$ac_path_EGREP"
3293
      ac_path_EGREP_max=$ac_count
3294
    fi
3295
    # 10*(2^10) chars as input seems more than enough
3296
    test $ac_count -gt 10 && break
3297
  done
3298
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3299
esac
3300

    
3301
      $ac_path_EGREP_found && break 3
3302
    done
3303
  done
3304
  done
3305
IFS=$as_save_IFS
3306
  if test -z "$ac_cv_path_EGREP"; then
3307
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3308
  fi
3309
else
3310
  ac_cv_path_EGREP=$EGREP
3311
fi
3312

    
3313
   fi
3314
fi
3315
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3316
$as_echo "$ac_cv_path_EGREP" >&6; }
3317
 EGREP="$ac_cv_path_EGREP"
3318

    
3319

    
3320
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3321
$as_echo_n "checking for ANSI C header files... " >&6; }
3322
if ${ac_cv_header_stdc+:} false; then :
3323
  $as_echo_n "(cached) " >&6
3324
else
3325
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3326
/* end confdefs.h.  */
3327
#include <stdlib.h>
3328
#include <stdarg.h>
3329
#include <string.h>
3330
#include <float.h>
3331

    
3332
int
3333
main ()
3334
{
3335

    
3336
  ;
3337
  return 0;
3338
}
3339
_ACEOF
3340
if ac_fn_c_try_compile "$LINENO"; then :
3341
  ac_cv_header_stdc=yes
3342
else
3343
  ac_cv_header_stdc=no
3344
fi
3345
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3346

    
3347
if test $ac_cv_header_stdc = yes; then
3348
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3349
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3350
/* end confdefs.h.  */
3351
#include <string.h>
3352

    
3353
_ACEOF
3354
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3355
  $EGREP "memchr" >/dev/null 2>&1; then :
3356

    
3357
else
3358
  ac_cv_header_stdc=no
3359
fi
3360
rm -f conftest*
3361

    
3362
fi
3363

    
3364
if test $ac_cv_header_stdc = yes; then
3365
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3366
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3367
/* end confdefs.h.  */
3368
#include <stdlib.h>
3369

    
3370
_ACEOF
3371
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3372
  $EGREP "free" >/dev/null 2>&1; then :
3373

    
3374
else
3375
  ac_cv_header_stdc=no
3376
fi
3377
rm -f conftest*
3378

    
3379
fi
3380

    
3381
if test $ac_cv_header_stdc = yes; then
3382
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3383
  if test "$cross_compiling" = yes; then :
3384
  :
3385
else
3386
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3387
/* end confdefs.h.  */
3388
#include <ctype.h>
3389
#include <stdlib.h>
3390
#if ((' ' & 0x0FF) == 0x020)
3391
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3392
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3393
#else
3394
# define ISLOWER(c) \
3395
		   (('a' <= (c) && (c) <= 'i') \
3396
		     || ('j' <= (c) && (c) <= 'r') \
3397
		     || ('s' <= (c) && (c) <= 'z'))
3398
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3399
#endif
3400

    
3401
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3402
int
3403
main ()
3404
{
3405
  int i;
3406
  for (i = 0; i < 256; i++)
3407
    if (XOR (islower (i), ISLOWER (i))
3408
	|| toupper (i) != TOUPPER (i))
3409
      return 2;
3410
  return 0;
3411
}
3412
_ACEOF
3413
if ac_fn_c_try_run "$LINENO"; then :
3414

    
3415
else
3416
  ac_cv_header_stdc=no
3417
fi
3418
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3419
  conftest.$ac_objext conftest.beam conftest.$ac_ext
3420
fi
3421

    
3422
fi
3423
fi
3424
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3425
$as_echo "$ac_cv_header_stdc" >&6; }
3426
if test $ac_cv_header_stdc = yes; then
3427

    
3428
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3429

    
3430
fi
3431

    
3432
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3433
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3434
		  inttypes.h stdint.h unistd.h
3435
do :
3436
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3437
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3438
"
3439
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3440
  cat >>confdefs.h <<_ACEOF
3441
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3442
_ACEOF
3443

    
3444
fi
3445

    
3446
done
3447

    
3448

    
3449
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3450
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
3451
if ${ac_cv_c_bigendian+:} false; then :
3452
  $as_echo_n "(cached) " >&6
3453
else
3454
  ac_cv_c_bigendian=unknown
3455
    # See if we're dealing with a universal compiler.
3456
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3457
/* end confdefs.h.  */
3458
#ifndef __APPLE_CC__
3459
	       not a universal capable compiler
3460
	     #endif
3461
	     typedef int dummy;
3462

    
3463
_ACEOF
3464
if ac_fn_c_try_compile "$LINENO"; then :
3465

    
3466
	# Check for potential -arch flags.  It is not universal unless
3467
	# there are at least two -arch flags with different values.
3468
	ac_arch=
3469
	ac_prev=
3470
	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3471
	 if test -n "$ac_prev"; then
3472
	   case $ac_word in
3473
	     i?86 | x86_64 | ppc | ppc64)
3474
	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
3475
		 ac_arch=$ac_word
3476
	       else
3477
		 ac_cv_c_bigendian=universal
3478
		 break
3479
	       fi
3480
	       ;;
3481
	   esac
3482
	   ac_prev=
3483
	 elif test "x$ac_word" = "x-arch"; then
3484
	   ac_prev=arch
3485
	 fi
3486
       done
3487
fi
3488
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3489
    if test $ac_cv_c_bigendian = unknown; then
3490
      # See if sys/param.h defines the BYTE_ORDER macro.
3491
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3492
/* end confdefs.h.  */
3493
#include <sys/types.h>
3494
	     #include <sys/param.h>
3495

    
3496
int
3497
main ()
3498
{
3499
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
3500
		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
3501
		     && LITTLE_ENDIAN)
3502
	      bogus endian macros
3503
	     #endif
3504

    
3505
  ;
3506
  return 0;
3507
}
3508
_ACEOF
3509
if ac_fn_c_try_compile "$LINENO"; then :
3510
  # It does; now see whether it defined to BIG_ENDIAN or not.
3511
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3512
/* end confdefs.h.  */
3513
#include <sys/types.h>
3514
		#include <sys/param.h>
3515

    
3516
int
3517
main ()
3518
{
3519
#if BYTE_ORDER != BIG_ENDIAN
3520
		 not big endian
3521
		#endif
3522

    
3523
  ;
3524
  return 0;
3525
}
3526
_ACEOF
3527
if ac_fn_c_try_compile "$LINENO"; then :
3528
  ac_cv_c_bigendian=yes
3529
else
3530
  ac_cv_c_bigendian=no
3531
fi
3532
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3533
fi
3534
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3535
    fi
3536
    if test $ac_cv_c_bigendian = unknown; then
3537
      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
3538
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3539
/* end confdefs.h.  */
3540
#include <limits.h>
3541

    
3542
int
3543
main ()
3544
{
3545
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
3546
	      bogus endian macros
3547
	     #endif
3548

    
3549
  ;
3550
  return 0;
3551
}
3552
_ACEOF
3553
if ac_fn_c_try_compile "$LINENO"; then :
3554
  # It does; now see whether it defined to _BIG_ENDIAN or not.
3555
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556
/* end confdefs.h.  */
3557
#include <limits.h>
3558

    
3559
int
3560
main ()
3561
{
3562
#ifndef _BIG_ENDIAN
3563
		 not big endian
3564
		#endif
3565

    
3566
  ;
3567
  return 0;
3568
}
3569
_ACEOF
3570
if ac_fn_c_try_compile "$LINENO"; then :
3571
  ac_cv_c_bigendian=yes
3572
else
3573
  ac_cv_c_bigendian=no
3574
fi
3575
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3576
fi
3577
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3578
    fi
3579
    if test $ac_cv_c_bigendian = unknown; then
3580
      # Compile a test program.
3581
      if test "$cross_compiling" = yes; then :
3582
  # Try to guess by grepping values from an object file.
3583
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3584
/* end confdefs.h.  */
3585
short int ascii_mm[] =
3586
		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3587
		short int ascii_ii[] =
3588
		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3589
		int use_ascii (int i) {
3590
		  return ascii_mm[i] + ascii_ii[i];
3591
		}
3592
		short int ebcdic_ii[] =
3593
		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3594
		short int ebcdic_mm[] =
3595
		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3596
		int use_ebcdic (int i) {
3597
		  return ebcdic_mm[i] + ebcdic_ii[i];
3598
		}
3599
		extern int foo;
3600

    
3601
int
3602
main ()
3603
{
3604
return use_ascii (foo) == use_ebcdic (foo);
3605
  ;
3606
  return 0;
3607
}
3608
_ACEOF
3609
if ac_fn_c_try_compile "$LINENO"; then :
3610
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
3611
	      ac_cv_c_bigendian=yes
3612
	    fi
3613
	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3614
	      if test "$ac_cv_c_bigendian" = unknown; then
3615
		ac_cv_c_bigendian=no
3616
	      else
3617
		# finding both strings is unlikely to happen, but who knows?
3618
		ac_cv_c_bigendian=unknown
3619
	      fi
3620
	    fi
3621
fi
3622
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3623
else
3624
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3625
/* end confdefs.h.  */
3626
$ac_includes_default
3627
int
3628
main ()
3629
{
3630

    
3631
	     /* Are we little or big endian?  From Harbison&Steele.  */
3632
	     union
3633
	     {
3634
	       long int l;
3635
	       char c[sizeof (long int)];
3636
	     } u;
3637
	     u.l = 1;
3638
	     return u.c[sizeof (long int) - 1] == 1;
3639

    
3640
  ;
3641
  return 0;
3642
}
3643
_ACEOF
3644
if ac_fn_c_try_run "$LINENO"; then :
3645
  ac_cv_c_bigendian=no
3646
else
3647
  ac_cv_c_bigendian=yes
3648
fi
3649
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3650
  conftest.$ac_objext conftest.beam conftest.$ac_ext
3651
fi
3652

    
3653
    fi
3654
fi
3655
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
3656
$as_echo "$ac_cv_c_bigendian" >&6; }
3657
 case $ac_cv_c_bigendian in #(
3658
   yes)
3659
     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
3660
;; #(
3661
   no)
3662
      ;; #(
3663
   universal)
3664

    
3665
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
3666

    
3667
     ;; #(
3668
   *)
3669
     as_fn_error $? "unknown endianness
3670
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
3671
 esac
3672

    
3673

    
3674
# We now require C++11
3675

    
3676
    ax_cxx_compile_cxx11_required=true
3677
  ac_ext=cpp
3678
ac_cpp='$CXXCPP $CPPFLAGS'
3679
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3680
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3681
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3682
  ac_success=no
3683
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
3684
$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
3685
if ${ax_cv_cxx_compile_cxx11+:} false; then :
3686
  $as_echo_n "(cached) " >&6
3687
else
3688
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3689
/* end confdefs.h.  */
3690

    
3691
  template <typename T>
3692
    struct check
3693
    {
3694
      static_assert(sizeof(int) <= sizeof(T), "not big enough");
3695
    };
3696

    
3697
    struct Base {
3698
    virtual void f() {}
3699
    };
3700
    struct Child : public Base {
3701
    virtual void f() override {}
3702
    };
3703

    
3704
    typedef check<check<bool>> right_angle_brackets;
3705

    
3706
    int a;
3707
    decltype(a) b;
3708

    
3709
    typedef check<int> check_type;
3710
    check_type c;
3711
    check_type&& cr = static_cast<check_type&&>(c);
3712

    
3713
    auto d = a;
3714
    auto l = [](){};
3715

    
3716
_ACEOF
3717
if ac_fn_cxx_try_compile "$LINENO"; then :
3718
  ax_cv_cxx_compile_cxx11=yes
3719
else
3720
  ax_cv_cxx_compile_cxx11=no
3721
fi
3722
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3723
fi
3724
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
3725
$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
3726
  if test x$ax_cv_cxx_compile_cxx11 = xyes; then
3727
    ac_success=yes
3728
  fi
3729

    
3730

    
3731

    
3732
    if test x$ac_success = xno; then
3733
    for switch in -std=c++11 -std=c++0x; do
3734
      cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
3735
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
3736
$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
3737
if eval \${$cachevar+:} false; then :
3738
  $as_echo_n "(cached) " >&6
3739
else
3740
  ac_save_CXXFLAGS="$CXXFLAGS"
3741
         CXXFLAGS="$CXXFLAGS $switch"
3742
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743
/* end confdefs.h.  */
3744

    
3745
  template <typename T>
3746
    struct check
3747
    {
3748
      static_assert(sizeof(int) <= sizeof(T), "not big enough");
3749
    };
3750

    
3751
    struct Base {
3752
    virtual void f() {}
3753
    };
3754
    struct Child : public Base {
3755
    virtual void f() override {}
3756
    };
3757

    
3758
    typedef check<check<bool>> right_angle_brackets;
3759

    
3760
    int a;
3761
    decltype(a) b;
3762

    
3763
    typedef check<int> check_type;
3764
    check_type c;
3765
    check_type&& cr = static_cast<check_type&&>(c);
3766

    
3767
    auto d = a;
3768
    auto l = [](){};
3769

    
3770
_ACEOF
3771
if ac_fn_cxx_try_compile "$LINENO"; then :
3772
  eval $cachevar=yes
3773
else
3774
  eval $cachevar=no
3775
fi
3776
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3777
         CXXFLAGS="$ac_save_CXXFLAGS"
3778
fi
3779
eval ac_res=\$$cachevar
3780
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3781
$as_echo "$ac_res" >&6; }
3782
      if eval test x\$$cachevar = xyes; then
3783
        CXXFLAGS="$CXXFLAGS $switch"
3784
        ac_success=yes
3785
        break
3786
      fi
3787
    done
3788
  fi
3789
  ac_ext=c
3790
ac_cpp='$CPP $CPPFLAGS'
3791
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3792
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3793
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3794

    
3795
  if test x$ax_cxx_compile_cxx11_required = xtrue; then
3796
    if test x$ac_success = xno; then
3797
      as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
3798
    fi
3799
  else
3800
    if test x$ac_success = xno; then
3801
      HAVE_CXX11=0
3802
      { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
3803
$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
3804
    else
3805
      HAVE_CXX11=1
3806

    
3807
$as_echo "#define HAVE_CXX11 1" >>confdefs.h
3808

    
3809
    fi
3810

    
3811

    
3812
  fi
3813

    
3814

    
3815
if pkg-config --modversion vamp-sdk >/dev/null 2>&1; then
3816
  echo "WARNING: A version of the Vamp plugin SDK is already installed."
3817
  echo "         Expect worries and sorrows if you install a new version"
3818
  echo "         without removing the old one first.  (Continuing)"
3819
fi
3820

    
3821
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
3822
$as_echo_n "checking for library containing dlopen... " >&6; }
3823
if ${ac_cv_search_dlopen+:} false; then :
3824
  $as_echo_n "(cached) " >&6
3825
else
3826
  ac_func_search_save_LIBS=$LIBS
3827
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3828
/* end confdefs.h.  */
3829

    
3830
/* Override any GCC internal prototype to avoid an error.
3831
   Use char because int might match the return type of a GCC
3832
   builtin and then its argument prototype would still apply.  */
3833
#ifdef __cplusplus
3834
extern "C"
3835
#endif
3836
char dlopen ();
3837
int
3838
main ()
3839
{
3840
return dlopen ();
3841
  ;
3842
  return 0;
3843
}
3844
_ACEOF
3845
for ac_lib in '' dl; do
3846
  if test -z "$ac_lib"; then
3847
    ac_res="none required"
3848
  else
3849
    ac_res=-l$ac_lib
3850
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3851
  fi
3852
  if ac_fn_c_try_link "$LINENO"; then :
3853
  ac_cv_search_dlopen=$ac_res
3854
fi
3855
rm -f core conftest.err conftest.$ac_objext \
3856
    conftest$ac_exeext
3857
  if ${ac_cv_search_dlopen+:} false; then :
3858
  break
3859
fi
3860
done
3861
if ${ac_cv_search_dlopen+:} false; then :
3862

    
3863
else
3864
  ac_cv_search_dlopen=no
3865
fi
3866
rm conftest.$ac_ext
3867
LIBS=$ac_func_search_save_LIBS
3868
fi
3869
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
3870
$as_echo "$ac_cv_search_dlopen" >&6; }
3871
ac_res=$ac_cv_search_dlopen
3872
if test "$ac_res" != no; then :
3873
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3874

    
3875
fi
3876

    
3877

    
3878
# Check whether --enable-programs was given.
3879
if test "${enable_programs+set}" = set; then :
3880
  enableval=$enable_programs; PROGS_ARGUMENT=$enableval
3881
else
3882
  PROGS_ARGUMENT="yes"
3883
fi
3884

    
3885

    
3886
if test "x$PROGS_ARGUMENT" = "xyes" ; then
3887

    
3888

    
3889

    
3890

    
3891

    
3892

    
3893

    
3894
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3895
	if test -n "$ac_tool_prefix"; then
3896
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3897
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3898
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3899
$as_echo_n "checking for $ac_word... " >&6; }
3900
if ${ac_cv_path_PKG_CONFIG+:} false; then :
3901
  $as_echo_n "(cached) " >&6
3902
else
3903
  case $PKG_CONFIG in
3904
  [\\/]* | ?:[\\/]*)
3905
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3906
  ;;
3907
  *)
3908
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909
for as_dir in $PATH
3910
do
3911
  IFS=$as_save_IFS
3912
  test -z "$as_dir" && as_dir=.
3913
    for ac_exec_ext in '' $ac_executable_extensions; do
3914
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3915
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3916
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3917
    break 2
3918
  fi
3919
done
3920
  done
3921
IFS=$as_save_IFS
3922

    
3923
  ;;
3924
esac
3925
fi
3926
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3927
if test -n "$PKG_CONFIG"; then
3928
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3929
$as_echo "$PKG_CONFIG" >&6; }
3930
else
3931
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3932
$as_echo "no" >&6; }
3933
fi
3934

    
3935

    
3936
fi
3937
if test -z "$ac_cv_path_PKG_CONFIG"; then
3938
  ac_pt_PKG_CONFIG=$PKG_CONFIG
3939
  # Extract the first word of "pkg-config", so it can be a program name with args.
3940
set dummy pkg-config; ac_word=$2
3941
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3942
$as_echo_n "checking for $ac_word... " >&6; }
3943
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
3944
  $as_echo_n "(cached) " >&6
3945
else
3946
  case $ac_pt_PKG_CONFIG in
3947
  [\\/]* | ?:[\\/]*)
3948
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3949
  ;;
3950
  *)
3951
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3952
for as_dir in $PATH
3953
do
3954
  IFS=$as_save_IFS
3955
  test -z "$as_dir" && as_dir=.
3956
    for ac_exec_ext in '' $ac_executable_extensions; do
3957
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3958
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3959
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3960
    break 2
3961
  fi
3962
done
3963
  done
3964
IFS=$as_save_IFS
3965

    
3966
  ;;
3967
esac
3968
fi
3969
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3970
if test -n "$ac_pt_PKG_CONFIG"; then
3971
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3972
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
3973
else
3974
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3975
$as_echo "no" >&6; }
3976
fi
3977

    
3978
  if test "x$ac_pt_PKG_CONFIG" = x; then
3979
    PKG_CONFIG=""
3980
  else
3981
    case $cross_compiling:$ac_tool_warned in
3982
yes:)
3983
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3984
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3985
ac_tool_warned=yes ;;
3986
esac
3987
    PKG_CONFIG=$ac_pt_PKG_CONFIG
3988
  fi
3989
else
3990
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3991
fi
3992

    
3993
fi
3994
if test -n "$PKG_CONFIG"; then
3995
	_pkg_min_version=0.9.0
3996
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3997
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3998
	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3999
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4000
$as_echo "yes" >&6; }
4001
	else
4002
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4003
$as_echo "no" >&6; }
4004
		PKG_CONFIG=""
4005
	fi
4006
fi
4007

    
4008
pkg_failed=no
4009
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SNDFILE" >&5
4010
$as_echo_n "checking for SNDFILE... " >&6; }
4011

    
4012
if test -n "$SNDFILE_CFLAGS"; then
4013
    pkg_cv_SNDFILE_CFLAGS="$SNDFILE_CFLAGS"
4014
 elif test -n "$PKG_CONFIG"; then
4015
    if test -n "$PKG_CONFIG" && \
4016
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile\""; } >&5
4017
  ($PKG_CONFIG --exists --print-errors "sndfile") 2>&5
4018
  ac_status=$?
4019
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4020
  test $ac_status = 0; }; then
4021
  pkg_cv_SNDFILE_CFLAGS=`$PKG_CONFIG --cflags "sndfile" 2>/dev/null`
4022
		      test "x$?" != "x0" && pkg_failed=yes
4023
else
4024
  pkg_failed=yes
4025
fi
4026
 else
4027
    pkg_failed=untried
4028
fi
4029
if test -n "$SNDFILE_LIBS"; then
4030
    pkg_cv_SNDFILE_LIBS="$SNDFILE_LIBS"
4031
 elif test -n "$PKG_CONFIG"; then
4032
    if test -n "$PKG_CONFIG" && \
4033
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile\""; } >&5
4034
  ($PKG_CONFIG --exists --print-errors "sndfile") 2>&5
4035
  ac_status=$?
4036
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4037
  test $ac_status = 0; }; then
4038
  pkg_cv_SNDFILE_LIBS=`$PKG_CONFIG --libs "sndfile" 2>/dev/null`
4039
		      test "x$?" != "x0" && pkg_failed=yes
4040
else
4041
  pkg_failed=yes
4042
fi
4043
 else
4044
    pkg_failed=untried
4045
fi
4046

    
4047

    
4048

    
4049
if test $pkg_failed = yes; then
4050
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4051
$as_echo "no" >&6; }
4052

    
4053
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4054
        _pkg_short_errors_supported=yes
4055
else
4056
        _pkg_short_errors_supported=no
4057
fi
4058
        if test $_pkg_short_errors_supported = yes; then
4059
	        SNDFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndfile" 2>&1`
4060
        else
4061
	        SNDFILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndfile" 2>&1`
4062
        fi
4063
	# Put the nasty error message in config.log where it belongs
4064
	echo "$SNDFILE_PKG_ERRORS" >&5
4065

    
4066
	have_sndfile="no"
4067
elif test $pkg_failed = untried; then
4068
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4069
$as_echo "no" >&6; }
4070
	have_sndfile="no"
4071
else
4072
	SNDFILE_CFLAGS=$pkg_cv_SNDFILE_CFLAGS
4073
	SNDFILE_LIBS=$pkg_cv_SNDFILE_LIBS
4074
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4075
$as_echo "yes" >&6; }
4076
	have_sndfile="yes"
4077
fi
4078
	if test "x$have_sndfile" = "xyes" ; then
4079
				TARGETS="sdk plugins host rdfgen test"
4080
	else
4081
				as_fn_error $? "libsndfile not found - cannot build example Vamp host!
4082
If you don't want to build the host, configure with --disable-programs." "$LINENO" 5
4083
	fi
4084
else
4085
		TARGETS="sdk plugins"
4086
fi
4087

    
4088

    
4089

    
4090

    
4091

    
4092
if test "x$GCC" = "xyes"; then
4093
  case " $CXXFLAGS " in
4094
    *[\ \	]-fPIC\ -Wall[\ \	]*) ;;
4095
    *) CXXFLAGS="$CXXFLAGS -fPIC -Wall -Wextra" ;;
4096
  esac
4097
  case " $CFLAGS " in
4098
    *[\ \	]-fPIC\ -Wall[\ \	]*) ;;
4099
    *) CFLAGS="$CFLAGS -fPIC -Wall -Wextra" ;;
4100
  esac
4101
  CXXFLAGS="$CXXFLAGS -std=c++11"
4102
fi
4103

    
4104

    
4105

    
4106
ac_config_files="$ac_config_files Makefile"
4107

    
4108
cat >confcache <<\_ACEOF
4109
# This file is a shell script that caches the results of configure
4110
# tests run on this system so they can be shared between configure
4111
# scripts and configure runs, see configure's option --config-cache.
4112
# It is not useful on other systems.  If it contains results you don't
4113
# want to keep, you may remove or edit it.
4114
#
4115
# config.status only pays attention to the cache file if you give it
4116
# the --recheck option to rerun configure.
4117
#
4118
# `ac_cv_env_foo' variables (set or unset) will be overridden when
4119
# loading this file, other *unset* `ac_cv_foo' will be assigned the
4120
# following values.
4121

    
4122
_ACEOF
4123

    
4124
# The following way of writing the cache mishandles newlines in values,
4125
# but we know of no workaround that is simple, portable, and efficient.
4126
# So, we kill variables containing newlines.
4127
# Ultrix sh set writes to stderr and can't be redirected directly,
4128
# and sets the high bit in the cache file unless we assign to the vars.
4129
(
4130
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4131
    eval ac_val=\$$ac_var
4132
    case $ac_val in #(
4133
    *${as_nl}*)
4134
      case $ac_var in #(
4135
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4136
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4137
      esac
4138
      case $ac_var in #(
4139
      _ | IFS | as_nl) ;; #(
4140
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4141
      *) { eval $ac_var=; unset $ac_var;} ;;
4142
      esac ;;
4143
    esac
4144
  done
4145

    
4146
  (set) 2>&1 |
4147
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
4148
    *${as_nl}ac_space=\ *)
4149
      # `set' does not quote correctly, so add quotes: double-quote
4150
      # substitution turns \\\\ into \\, and sed turns \\ into \.
4151
      sed -n \
4152
	"s/'/'\\\\''/g;
4153
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4154
      ;; #(
4155
    *)
4156
      # `set' quotes correctly as required by POSIX, so do not add quotes.
4157
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4158
      ;;
4159
    esac |
4160
    sort
4161
) |
4162
  sed '
4163
     /^ac_cv_env_/b end
4164
     t clear
4165
     :clear
4166
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4167
     t end
4168
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4169
     :end' >>confcache
4170
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4171
  if test -w "$cache_file"; then
4172
    if test "x$cache_file" != "x/dev/null"; then
4173
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4174
$as_echo "$as_me: updating cache $cache_file" >&6;}
4175
      if test ! -f "$cache_file" || test -h "$cache_file"; then
4176
	cat confcache >"$cache_file"
4177
      else
4178
        case $cache_file in #(
4179
        */* | ?:*)
4180
	  mv -f confcache "$cache_file"$$ &&
4181
	  mv -f "$cache_file"$$ "$cache_file" ;; #(
4182
        *)
4183
	  mv -f confcache "$cache_file" ;;
4184
	esac
4185
      fi
4186
    fi
4187
  else
4188
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4189
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4190
  fi
4191
fi
4192
rm -f confcache
4193

    
4194
test "x$prefix" = xNONE && prefix=$ac_default_prefix
4195
# Let make expand exec_prefix.
4196
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4197

    
4198
# Transform confdefs.h into DEFS.
4199
# Protect against shell expansion while executing Makefile rules.
4200
# Protect against Makefile macro expansion.
4201
#
4202
# If the first sed substitution is executed (which looks for macros that
4203
# take arguments), then branch to the quote section.  Otherwise,
4204
# look for a macro that doesn't take arguments.
4205
ac_script='
4206
:mline
4207
/\\$/{
4208
 N
4209
 s,\\\n,,
4210
 b mline
4211
}
4212
t clear
4213
:clear
4214
s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
4215
t quote
4216
s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
4217
t quote
4218
b any
4219
:quote
4220
s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
4221
s/\[/\\&/g
4222
s/\]/\\&/g
4223
s/\$/$$/g
4224
H
4225
:any
4226
${
4227
	g
4228
	s/^\n//
4229
	s/\n/ /g
4230
	p
4231
}
4232
'
4233
DEFS=`sed -n "$ac_script" confdefs.h`
4234

    
4235

    
4236
ac_libobjs=
4237
ac_ltlibobjs=
4238
U=
4239
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4240
  # 1. Remove the extension, and $U if already installed.
4241
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4242
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4243
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
4244
  #    will be set to the directory where LIBOBJS objects are built.
4245
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4246
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4247
done
4248
LIBOBJS=$ac_libobjs
4249

    
4250
LTLIBOBJS=$ac_ltlibobjs
4251

    
4252

    
4253

    
4254

    
4255
: "${CONFIG_STATUS=./config.status}"
4256
ac_write_fail=0
4257
ac_clean_files_save=$ac_clean_files
4258
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4259
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4260
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4261
as_write_fail=0
4262
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4263
#! $SHELL
4264
# Generated by $as_me.
4265
# Run this file to recreate the current configuration.
4266
# Compiler output produced by configure, useful for debugging
4267
# configure, is in config.log if it exists.
4268

    
4269
debug=false
4270
ac_cs_recheck=false
4271
ac_cs_silent=false
4272

    
4273
SHELL=\${CONFIG_SHELL-$SHELL}
4274
export SHELL
4275
_ASEOF
4276
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4277
## -------------------- ##
4278
## M4sh Initialization. ##
4279
## -------------------- ##
4280

    
4281
# Be more Bourne compatible
4282
DUALCASE=1; export DUALCASE # for MKS sh
4283
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4284
  emulate sh
4285
  NULLCMD=:
4286
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4287
  # is contrary to our usage.  Disable this feature.
4288
  alias -g '${1+"$@"}'='"$@"'
4289
  setopt NO_GLOB_SUBST
4290
else
4291
  case `(set -o) 2>/dev/null` in #(
4292
  *posix*) :
4293
    set -o posix ;; #(
4294
  *) :
4295
     ;;
4296
esac
4297
fi
4298

    
4299

    
4300
as_nl='
4301
'
4302
export as_nl
4303
# Printing a long string crashes Solaris 7 /usr/bin/printf.
4304
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4305
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4306
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4307
# Prefer a ksh shell builtin over an external printf program on Solaris,
4308
# but without wasting forks for bash or zsh.
4309
if test -z "$BASH_VERSION$ZSH_VERSION" \
4310
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4311
  as_echo='print -r --'
4312
  as_echo_n='print -rn --'
4313
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4314
  as_echo='printf %s\n'
4315
  as_echo_n='printf %s'
4316
else
4317
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4318
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4319
    as_echo_n='/usr/ucb/echo -n'
4320
  else
4321
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4322
    as_echo_n_body='eval
4323
      arg=$1;
4324
      case $arg in #(
4325
      *"$as_nl"*)
4326
	expr "X$arg" : "X\\(.*\\)$as_nl";
4327
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4328
      esac;
4329
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4330
    '
4331
    export as_echo_n_body
4332
    as_echo_n='sh -c $as_echo_n_body as_echo'
4333
  fi
4334
  export as_echo_body
4335
  as_echo='sh -c $as_echo_body as_echo'
4336
fi
4337

    
4338
# The user is always right.
4339
if test "${PATH_SEPARATOR+set}" != set; then
4340
  PATH_SEPARATOR=:
4341
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4342
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4343
      PATH_SEPARATOR=';'
4344
  }
4345
fi
4346

    
4347

    
4348
# IFS
4349
# We need space, tab and new line, in precisely that order.  Quoting is
4350
# there to prevent editors from complaining about space-tab.
4351
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
4352
# splitting by setting IFS to empty value.)
4353
IFS=" ""	$as_nl"
4354

    
4355
# Find who we are.  Look in the path if we contain no directory separator.
4356
as_myself=
4357
case $0 in #((
4358
  *[\\/]* ) as_myself=$0 ;;
4359
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4360
for as_dir in $PATH
4361
do
4362
  IFS=$as_save_IFS
4363
  test -z "$as_dir" && as_dir=.
4364
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4365
  done
4366
IFS=$as_save_IFS
4367

    
4368
     ;;
4369
esac
4370
# We did not find ourselves, most probably we were run as `sh COMMAND'
4371
# in which case we are not to be found in the path.
4372
if test "x$as_myself" = x; then
4373
  as_myself=$0
4374
fi
4375
if test ! -f "$as_myself"; then
4376
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4377
  exit 1
4378
fi
4379

    
4380
# Unset variables that we do not need and which cause bugs (e.g. in
4381
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
4382
# suppresses any "Segmentation fault" message there.  '((' could
4383
# trigger a bug in pdksh 5.2.14.
4384
for as_var in BASH_ENV ENV MAIL MAILPATH
4385
do eval test x\${$as_var+set} = xset \
4386
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4387
done
4388
PS1='$ '
4389
PS2='> '
4390
PS4='+ '
4391

    
4392
# NLS nuisances.
4393
LC_ALL=C
4394
export LC_ALL
4395
LANGUAGE=C
4396
export LANGUAGE
4397

    
4398
# CDPATH.
4399
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4400

    
4401

    
4402
# as_fn_error STATUS ERROR [LINENO LOG_FD]
4403
# ----------------------------------------
4404
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4405
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4406
# script with STATUS, using 1 if that was 0.
4407
as_fn_error ()
4408
{
4409
  as_status=$1; test $as_status -eq 0 && as_status=1
4410
  if test "$4"; then
4411
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4412
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4413
  fi
4414
  $as_echo "$as_me: error: $2" >&2
4415
  as_fn_exit $as_status
4416
} # as_fn_error
4417

    
4418

    
4419
# as_fn_set_status STATUS
4420
# -----------------------
4421
# Set $? to STATUS, without forking.
4422
as_fn_set_status ()
4423
{
4424
  return $1
4425
} # as_fn_set_status
4426

    
4427
# as_fn_exit STATUS
4428
# -----------------
4429
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4430
as_fn_exit ()
4431
{
4432
  set +e
4433
  as_fn_set_status $1
4434
  exit $1
4435
} # as_fn_exit
4436

    
4437
# as_fn_unset VAR
4438
# ---------------
4439
# Portably unset VAR.
4440
as_fn_unset ()
4441
{
4442
  { eval $1=; unset $1;}
4443
}
4444
as_unset=as_fn_unset
4445
# as_fn_append VAR VALUE
4446
# ----------------------
4447
# Append the text in VALUE to the end of the definition contained in VAR. Take
4448
# advantage of any shell optimizations that allow amortized linear growth over
4449
# repeated appends, instead of the typical quadratic growth present in naive
4450
# implementations.
4451
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4452
  eval 'as_fn_append ()
4453
  {
4454
    eval $1+=\$2
4455
  }'
4456
else
4457
  as_fn_append ()
4458
  {
4459
    eval $1=\$$1\$2
4460
  }
4461
fi # as_fn_append
4462

    
4463
# as_fn_arith ARG...
4464
# ------------------
4465
# Perform arithmetic evaluation on the ARGs, and store the result in the
4466
# global $as_val. Take advantage of shells that can avoid forks. The arguments
4467
# must be portable across $(()) and expr.
4468
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4469
  eval 'as_fn_arith ()
4470
  {
4471
    as_val=$(( $* ))
4472
  }'
4473
else
4474
  as_fn_arith ()
4475
  {
4476
    as_val=`expr "$@" || test $? -eq 1`
4477
  }
4478
fi # as_fn_arith
4479

    
4480

    
4481
if expr a : '\(a\)' >/dev/null 2>&1 &&
4482
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
4483
  as_expr=expr
4484
else
4485
  as_expr=false
4486
fi
4487

    
4488
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4489
  as_basename=basename
4490
else
4491
  as_basename=false
4492
fi
4493

    
4494
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4495
  as_dirname=dirname
4496
else
4497
  as_dirname=false
4498
fi
4499

    
4500
as_me=`$as_basename -- "$0" ||
4501
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4502
	 X"$0" : 'X\(//\)$' \| \
4503
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4504
$as_echo X/"$0" |
4505
    sed '/^.*\/\([^/][^/]*\)\/*$/{
4506
	    s//\1/
4507
	    q
4508
	  }
4509
	  /^X\/\(\/\/\)$/{
4510
	    s//\1/
4511
	    q
4512
	  }
4513
	  /^X\/\(\/\).*/{
4514
	    s//\1/
4515
	    q
4516
	  }
4517
	  s/.*/./; q'`
4518

    
4519
# Avoid depending upon Character Ranges.
4520
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4521
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4522
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4523
as_cr_digits='0123456789'
4524
as_cr_alnum=$as_cr_Letters$as_cr_digits
4525

    
4526
ECHO_C= ECHO_N= ECHO_T=
4527
case `echo -n x` in #(((((
4528
-n*)
4529
  case `echo 'xy\c'` in
4530
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
4531
  xy)  ECHO_C='\c';;
4532
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
4533
       ECHO_T='	';;
4534
  esac;;
4535
*)
4536
  ECHO_N='-n';;
4537
esac
4538

    
4539
rm -f conf$$ conf$$.exe conf$$.file
4540
if test -d conf$$.dir; then
4541
  rm -f conf$$.dir/conf$$.file
4542
else
4543
  rm -f conf$$.dir
4544
  mkdir conf$$.dir 2>/dev/null
4545
fi
4546
if (echo >conf$$.file) 2>/dev/null; then
4547
  if ln -s conf$$.file conf$$ 2>/dev/null; then
4548
    as_ln_s='ln -s'
4549
    # ... but there are two gotchas:
4550
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4551
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4552
    # In both cases, we have to default to `cp -pR'.
4553
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4554
      as_ln_s='cp -pR'
4555
  elif ln conf$$.file conf$$ 2>/dev/null; then
4556
    as_ln_s=ln
4557
  else
4558
    as_ln_s='cp -pR'
4559
  fi
4560
else
4561
  as_ln_s='cp -pR'
4562
fi
4563
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4564
rmdir conf$$.dir 2>/dev/null
4565

    
4566

    
4567
# as_fn_mkdir_p
4568
# -------------
4569
# Create "$as_dir" as a directory, including parents if necessary.
4570
as_fn_mkdir_p ()
4571
{
4572

    
4573
  case $as_dir in #(
4574
  -*) as_dir=./$as_dir;;
4575
  esac
4576
  test -d "$as_dir" || eval $as_mkdir_p || {
4577
    as_dirs=
4578
    while :; do
4579
      case $as_dir in #(
4580
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4581
      *) as_qdir=$as_dir;;
4582
      esac
4583
      as_dirs="'$as_qdir' $as_dirs"
4584
      as_dir=`$as_dirname -- "$as_dir" ||
4585
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4586
	 X"$as_dir" : 'X\(//\)[^/]' \| \
4587
	 X"$as_dir" : 'X\(//\)$' \| \
4588
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4589
$as_echo X"$as_dir" |
4590
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4591
	    s//\1/
4592
	    q
4593
	  }
4594
	  /^X\(\/\/\)[^/].*/{
4595
	    s//\1/
4596
	    q
4597
	  }
4598
	  /^X\(\/\/\)$/{
4599
	    s//\1/
4600
	    q
4601
	  }
4602
	  /^X\(\/\).*/{
4603
	    s//\1/
4604
	    q
4605
	  }
4606
	  s/.*/./; q'`
4607
      test -d "$as_dir" && break
4608
    done
4609
    test -z "$as_dirs" || eval "mkdir $as_dirs"
4610
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4611

    
4612

    
4613
} # as_fn_mkdir_p
4614
if mkdir -p . 2>/dev/null; then
4615
  as_mkdir_p='mkdir -p "$as_dir"'
4616
else
4617
  test -d ./-p && rmdir ./-p
4618
  as_mkdir_p=false
4619
fi
4620

    
4621

    
4622
# as_fn_executable_p FILE
4623
# -----------------------
4624
# Test if FILE is an executable regular file.
4625
as_fn_executable_p ()
4626
{
4627
  test -f "$1" && test -x "$1"
4628
} # as_fn_executable_p
4629
as_test_x='test -x'
4630
as_executable_p=as_fn_executable_p
4631

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

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

    
4638

    
4639
exec 6>&1
4640
## ----------------------------------- ##
4641
## Main body of $CONFIG_STATUS script. ##
4642
## ----------------------------------- ##
4643
_ASEOF
4644
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4645

    
4646
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4647
# Save the log message, to keep $0 and so on meaningful, and to
4648
# report actual input values of CONFIG_FILES etc. instead of their
4649
# values after options handling.
4650
ac_log="
4651
This file was extended by vamp-plugin-sdk $as_me 2.8, which was
4652
generated by GNU Autoconf 2.69.  Invocation command line was
4653

    
4654
  CONFIG_FILES    = $CONFIG_FILES
4655
  CONFIG_HEADERS  = $CONFIG_HEADERS
4656
  CONFIG_LINKS    = $CONFIG_LINKS
4657
  CONFIG_COMMANDS = $CONFIG_COMMANDS
4658
  $ $0 $@
4659

    
4660
on `(hostname || uname -n) 2>/dev/null | sed 1q`
4661
"
4662

    
4663
_ACEOF
4664

    
4665
case $ac_config_files in *"
4666
"*) set x $ac_config_files; shift; ac_config_files=$*;;
4667
esac
4668

    
4669

    
4670

    
4671
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4672
# Files that config.status was made for.
4673
config_files="$ac_config_files"
4674

    
4675
_ACEOF
4676

    
4677
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4678
ac_cs_usage="\
4679
\`$as_me' instantiates files and other configuration actions
4680
from templates according to the current configuration.  Unless the files
4681
and actions are specified as TAGs, all are instantiated by default.
4682

    
4683
Usage: $0 [OPTION]... [TAG]...
4684

    
4685
  -h, --help       print this help, then exit
4686
  -V, --version    print version number and configuration settings, then exit
4687
      --config     print configuration, then exit
4688
  -q, --quiet, --silent
4689
                   do not print progress messages
4690
  -d, --debug      don't remove temporary files
4691
      --recheck    update $as_me by reconfiguring in the same conditions
4692
      --file=FILE[:TEMPLATE]
4693
                   instantiate the configuration file FILE
4694

    
4695
Configuration files:
4696
$config_files
4697

    
4698
Report bugs to <cannam@all-day-breakfast.com>."
4699

    
4700
_ACEOF
4701
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4702
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4703
ac_cs_version="\\
4704
vamp-plugin-sdk config.status 2.8
4705
configured by $0, generated by GNU Autoconf 2.69,
4706
  with options \\"\$ac_cs_config\\"
4707

    
4708
Copyright (C) 2012 Free Software Foundation, Inc.
4709
This config.status script is free software; the Free Software Foundation
4710
gives unlimited permission to copy, distribute and modify it."
4711

    
4712
ac_pwd='$ac_pwd'
4713
srcdir='$srcdir'
4714
test -n "\$AWK" || AWK=awk
4715
_ACEOF
4716

    
4717
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4718
# The default lists apply if the user does not specify any file.
4719
ac_need_defaults=:
4720
while test $# != 0
4721
do
4722
  case $1 in
4723
  --*=?*)
4724
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
4725
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4726
    ac_shift=:
4727
    ;;
4728
  --*=)
4729
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
4730
    ac_optarg=
4731
    ac_shift=:
4732
    ;;
4733
  *)
4734
    ac_option=$1
4735
    ac_optarg=$2
4736
    ac_shift=shift
4737
    ;;
4738
  esac
4739

    
4740
  case $ac_option in
4741
  # Handling of the options.
4742
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4743
    ac_cs_recheck=: ;;
4744
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4745
    $as_echo "$ac_cs_version"; exit ;;
4746
  --config | --confi | --conf | --con | --co | --c )
4747
    $as_echo "$ac_cs_config"; exit ;;
4748
  --debug | --debu | --deb | --de | --d | -d )
4749
    debug=: ;;
4750
  --file | --fil | --fi | --f )
4751
    $ac_shift
4752
    case $ac_optarg in
4753
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4754
    '') as_fn_error $? "missing file argument" ;;
4755
    esac
4756
    as_fn_append CONFIG_FILES " '$ac_optarg'"
4757
    ac_need_defaults=false;;
4758
  --he | --h |  --help | --hel | -h )
4759
    $as_echo "$ac_cs_usage"; exit ;;
4760
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4761
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
4762
    ac_cs_silent=: ;;
4763

    
4764
  # This is an error.
4765
  -*) as_fn_error $? "unrecognized option: \`$1'
4766
Try \`$0 --help' for more information." ;;
4767

    
4768
  *) as_fn_append ac_config_targets " $1"
4769
     ac_need_defaults=false ;;
4770

    
4771
  esac
4772
  shift
4773
done
4774

    
4775
ac_configure_extra_args=
4776

    
4777
if $ac_cs_silent; then
4778
  exec 6>/dev/null
4779
  ac_configure_extra_args="$ac_configure_extra_args --silent"
4780
fi
4781

    
4782
_ACEOF
4783
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4784
if \$ac_cs_recheck; then
4785
  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4786
  shift
4787
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4788
  CONFIG_SHELL='$SHELL'
4789
  export CONFIG_SHELL
4790
  exec "\$@"
4791
fi
4792

    
4793
_ACEOF
4794
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4795
exec 5>>config.log
4796
{
4797
  echo
4798
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4799
## Running $as_me. ##
4800
_ASBOX
4801
  $as_echo "$ac_log"
4802
} >&5
4803

    
4804
_ACEOF
4805
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4806
_ACEOF
4807

    
4808
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4809

    
4810
# Handling of arguments.
4811
for ac_config_target in $ac_config_targets
4812
do
4813
  case $ac_config_target in
4814
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4815

    
4816
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4817
  esac
4818
done
4819

    
4820

    
4821
# If the user did not use the arguments to specify the items to instantiate,
4822
# then the envvar interface is used.  Set only those that are not.
4823
# We use the long form for the default assignment because of an extremely
4824
# bizarre bug on SunOS 4.1.3.
4825
if $ac_need_defaults; then
4826
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4827
fi
4828

    
4829
# Have a temporary directory for convenience.  Make it in the build tree
4830
# simply because there is no reason against having it here, and in addition,
4831
# creating and moving files from /tmp can sometimes cause problems.
4832
# Hook for its removal unless debugging.
4833
# Note that there is a small window in which the directory will not be cleaned:
4834
# after its creation but before its name has been assigned to `$tmp'.
4835
$debug ||
4836
{
4837
  tmp= ac_tmp=
4838
  trap 'exit_status=$?
4839
  : "${ac_tmp:=$tmp}"
4840
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4841
' 0
4842
  trap 'as_fn_exit 1' 1 2 13 15
4843
}
4844
# Create a (secure) tmp directory for tmp files.
4845

    
4846
{
4847
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4848
  test -d "$tmp"
4849
}  ||
4850
{
4851
  tmp=./conf$$-$RANDOM
4852
  (umask 077 && mkdir "$tmp")
4853
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4854
ac_tmp=$tmp
4855

    
4856
# Set up the scripts for CONFIG_FILES section.
4857
# No need to generate them if there are no CONFIG_FILES.
4858
# This happens for instance with `./config.status config.h'.
4859
if test -n "$CONFIG_FILES"; then
4860

    
4861

    
4862
ac_cr=`echo X | tr X '\015'`
4863
# On cygwin, bash can eat \r inside `` if the user requested igncr.
4864
# But we know of no other shell where ac_cr would be empty at this
4865
# point, so we can use a bashism as a fallback.
4866
if test "x$ac_cr" = x; then
4867
  eval ac_cr=\$\'\\r\'
4868
fi
4869
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4870
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4871
  ac_cs_awk_cr='\\r'
4872
else
4873
  ac_cs_awk_cr=$ac_cr
4874
fi
4875

    
4876
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
4877
_ACEOF
4878

    
4879

    
4880
{
4881
  echo "cat >conf$$subs.awk <<_ACEOF" &&
4882
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4883
  echo "_ACEOF"
4884
} >conf$$subs.sh ||
4885
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4886
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4887
ac_delim='%!_!# '
4888
for ac_last_try in false false false false false :; do
4889
  . ./conf$$subs.sh ||
4890
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4891

    
4892
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4893
  if test $ac_delim_n = $ac_delim_num; then
4894
    break
4895
  elif $ac_last_try; then
4896
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4897
  else
4898
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4899
  fi
4900
done
4901
rm -f conf$$subs.sh
4902

    
4903
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4904
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
4905
_ACEOF
4906
sed -n '
4907
h
4908
s/^/S["/; s/!.*/"]=/
4909
p
4910
g
4911
s/^[^!]*!//
4912
:repl
4913
t repl
4914
s/'"$ac_delim"'$//
4915
t delim
4916
:nl
4917
h
4918
s/\(.\{148\}\)..*/\1/
4919
t more1
4920
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4921
p
4922
n
4923
b repl
4924
:more1
4925
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4926
p
4927
g
4928
s/.\{148\}//
4929
t nl
4930
:delim
4931
h
4932
s/\(.\{148\}\)..*/\1/
4933
t more2
4934
s/["\\]/\\&/g; s/^/"/; s/$/"/
4935
p
4936
b
4937
:more2
4938
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4939
p
4940
g
4941
s/.\{148\}//
4942
t delim
4943
' <conf$$subs.awk | sed '
4944
/^[^""]/{
4945
  N
4946
  s/\n//
4947
}
4948
' >>$CONFIG_STATUS || ac_write_fail=1
4949
rm -f conf$$subs.awk
4950
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4951
_ACAWK
4952
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
4953
  for (key in S) S_is_set[key] = 1
4954
  FS = ""
4955

    
4956
}
4957
{
4958
  line = $ 0
4959
  nfields = split(line, field, "@")
4960
  substed = 0
4961
  len = length(field[1])
4962
  for (i = 2; i < nfields; i++) {
4963
    key = field[i]
4964
    keylen = length(key)
4965
    if (S_is_set[key]) {
4966
      value = S[key]
4967
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4968
      len += length(value) + length(field[++i])
4969
      substed = 1
4970
    } else
4971
      len += 1 + keylen
4972
  }
4973

    
4974
  print line
4975
}
4976

    
4977
_ACAWK
4978
_ACEOF
4979
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4980
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4981
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4982
else
4983
  cat
4984
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
4985
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
4986
_ACEOF
4987

    
4988
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
4989
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
4990
# trailing colons and then remove the whole line if VPATH becomes empty
4991
# (actually we leave an empty line to preserve line numbers).
4992
if test "x$srcdir" = x.; then
4993
  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
4994
h
4995
s///
4996
s/^/:/
4997
s/[	 ]*$/:/
4998
s/:\$(srcdir):/:/g
4999
s/:\${srcdir}:/:/g
5000
s/:@srcdir@:/:/g
5001
s/^:*//
5002
s/:*$//
5003
x
5004
s/\(=[	 ]*\).*/\1/
5005
G
5006
s/\n//
5007
s/^[^=]*=[	 ]*$//
5008
}'
5009
fi
5010

    
5011
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5012
fi # test -n "$CONFIG_FILES"
5013

    
5014

    
5015
eval set X "  :F $CONFIG_FILES      "
5016
shift
5017
for ac_tag
5018
do
5019
  case $ac_tag in
5020
  :[FHLC]) ac_mode=$ac_tag; continue;;
5021
  esac
5022
  case $ac_mode$ac_tag in
5023
  :[FHL]*:*);;
5024
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5025
  :[FH]-) ac_tag=-:-;;
5026
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5027
  esac
5028
  ac_save_IFS=$IFS
5029
  IFS=:
5030
  set x $ac_tag
5031
  IFS=$ac_save_IFS
5032
  shift
5033
  ac_file=$1
5034
  shift
5035

    
5036
  case $ac_mode in
5037
  :L) ac_source=$1;;
5038
  :[FH])
5039
    ac_file_inputs=
5040
    for ac_f
5041
    do
5042
      case $ac_f in
5043
      -) ac_f="$ac_tmp/stdin";;
5044
      *) # Look for the file first in the build tree, then in the source tree
5045
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
5046
	 # because $ac_f cannot contain `:'.
5047
	 test -f "$ac_f" ||
5048
	   case $ac_f in
5049
	   [\\/$]*) false;;
5050
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5051
	   esac ||
5052
	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5053
      esac
5054
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5055
      as_fn_append ac_file_inputs " '$ac_f'"
5056
    done
5057

    
5058
    # Let's still pretend it is `configure' which instantiates (i.e., don't
5059
    # use $as_me), people would be surprised to read:
5060
    #    /* config.h.  Generated by config.status.  */
5061
    configure_input='Generated from '`
5062
	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5063
	`' by configure.'
5064
    if test x"$ac_file" != x-; then
5065
      configure_input="$ac_file.  $configure_input"
5066
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5067
$as_echo "$as_me: creating $ac_file" >&6;}
5068
    fi
5069
    # Neutralize special characters interpreted by sed in replacement strings.
5070
    case $configure_input in #(
5071
    *\&* | *\|* | *\\* )
5072
       ac_sed_conf_input=`$as_echo "$configure_input" |
5073
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
5074
    *) ac_sed_conf_input=$configure_input;;
5075
    esac
5076

    
5077
    case $ac_tag in
5078
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
5079
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5080
    esac
5081
    ;;
5082
  esac
5083

    
5084
  ac_dir=`$as_dirname -- "$ac_file" ||
5085
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5086
	 X"$ac_file" : 'X\(//\)[^/]' \| \
5087
	 X"$ac_file" : 'X\(//\)$' \| \
5088
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5089
$as_echo X"$ac_file" |
5090
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5091
	    s//\1/
5092
	    q
5093
	  }
5094
	  /^X\(\/\/\)[^/].*/{
5095
	    s//\1/
5096
	    q
5097
	  }
5098
	  /^X\(\/\/\)$/{
5099
	    s//\1/
5100
	    q
5101
	  }
5102
	  /^X\(\/\).*/{
5103
	    s//\1/
5104
	    q
5105
	  }
5106
	  s/.*/./; q'`
5107
  as_dir="$ac_dir"; as_fn_mkdir_p
5108
  ac_builddir=.
5109

    
5110
case "$ac_dir" in
5111
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5112
*)
5113
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5114
  # A ".." for each directory in $ac_dir_suffix.
5115
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5116
  case $ac_top_builddir_sub in
5117
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5118
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5119
  esac ;;
5120
esac
5121
ac_abs_top_builddir=$ac_pwd
5122
ac_abs_builddir=$ac_pwd$ac_dir_suffix
5123
# for backward compatibility:
5124
ac_top_builddir=$ac_top_build_prefix
5125

    
5126
case $srcdir in
5127
  .)  # We are building in place.
5128
    ac_srcdir=.
5129
    ac_top_srcdir=$ac_top_builddir_sub
5130
    ac_abs_top_srcdir=$ac_pwd ;;
5131
  [\\/]* | ?:[\\/]* )  # Absolute name.
5132
    ac_srcdir=$srcdir$ac_dir_suffix;
5133
    ac_top_srcdir=$srcdir
5134
    ac_abs_top_srcdir=$srcdir ;;
5135
  *) # Relative name.
5136
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5137
    ac_top_srcdir=$ac_top_build_prefix$srcdir
5138
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5139
esac
5140
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5141

    
5142

    
5143
  case $ac_mode in
5144
  :F)
5145
  #
5146
  # CONFIG_FILE
5147
  #
5148

    
5149
_ACEOF
5150

    
5151
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5152
# If the template does not know about datarootdir, expand it.
5153
# FIXME: This hack should be removed a few years after 2.60.
5154
ac_datarootdir_hack=; ac_datarootdir_seen=
5155
ac_sed_dataroot='
5156
/datarootdir/ {
5157
  p
5158
  q
5159
}
5160
/@datadir@/p
5161
/@docdir@/p
5162
/@infodir@/p
5163
/@localedir@/p
5164
/@mandir@/p'
5165
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5166
*datarootdir*) ac_datarootdir_seen=yes;;
5167
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5168
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5169
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5170
_ACEOF
5171
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5172
  ac_datarootdir_hack='
5173
  s&@datadir@&$datadir&g
5174
  s&@docdir@&$docdir&g
5175
  s&@infodir@&$infodir&g
5176
  s&@localedir@&$localedir&g
5177
  s&@mandir@&$mandir&g
5178
  s&\\\${datarootdir}&$datarootdir&g' ;;
5179
esac
5180
_ACEOF
5181

    
5182
# Neutralize VPATH when `$srcdir' = `.'.
5183
# Shell code in configure.ac might set extrasub.
5184
# FIXME: do we really want to maintain this feature?
5185
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5186
ac_sed_extra="$ac_vpsub
5187
$extrasub
5188
_ACEOF
5189
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5190
:t
5191
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5192
s|@configure_input@|$ac_sed_conf_input|;t t
5193
s&@top_builddir@&$ac_top_builddir_sub&;t t
5194
s&@top_build_prefix@&$ac_top_build_prefix&;t t
5195
s&@srcdir@&$ac_srcdir&;t t
5196
s&@abs_srcdir@&$ac_abs_srcdir&;t t
5197
s&@top_srcdir@&$ac_top_srcdir&;t t
5198
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5199
s&@builddir@&$ac_builddir&;t t
5200
s&@abs_builddir@&$ac_abs_builddir&;t t
5201
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5202
$ac_datarootdir_hack
5203
"
5204
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5205
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5206

    
5207
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5208
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5209
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
5210
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
5211
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5212
which seems to be undefined.  Please make sure it is defined" >&5
5213
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5214
which seems to be undefined.  Please make sure it is defined" >&2;}
5215

    
5216
  rm -f "$ac_tmp/stdin"
5217
  case $ac_file in
5218
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5219
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5220
  esac \
5221
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5222
 ;;
5223

    
5224

    
5225

    
5226
  esac
5227

    
5228
done # for ac_tag
5229

    
5230

    
5231
as_fn_exit 0
5232
_ACEOF
5233
ac_clean_files=$ac_clean_files_save
5234

    
5235
test $ac_write_fail = 0 ||
5236
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5237

    
5238

    
5239
# configure is writing to config.log, and then calls config.status.
5240
# config.status does its own redirection, appending to config.log.
5241
# Unfortunately, on DOS this fails, as config.log is still kept open
5242
# by configure, so config.status won't be able to write to it; its
5243
# output is simply discarded.  So we exec the FD to /dev/null,
5244
# effectively closing config.log, so it can be properly (re)opened and
5245
# appended to by config.status.  When coming back to configure, we
5246
# need to make the FD available again.
5247
if test "$no_create" != yes; then
5248
  ac_cs_success=:
5249
  ac_config_status_args=
5250
  test "$silent" = yes &&
5251
    ac_config_status_args="$ac_config_status_args --quiet"
5252
  exec 5>/dev/null
5253
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5254
  exec 5>>config.log
5255
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5256
  # would make configure fail if this is the last instruction.
5257
  $ac_cs_success || as_fn_exit 1
5258
fi
5259
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5260
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5261
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5262
fi
5263

    
5264